1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.62 (OpenPKG-CURRENT).
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21  setopt NO_GLOB_SUBST
22else
23  case `(set -o) 2>/dev/null` in
24  *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83  as_unset=unset
84else
85  as_unset=false
86fi
87
88
89# IFS
90# We need space, tab and new line, in precisely that order.  Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
94IFS=" ""	$as_nl"
95
96# Find who we are.  Look in the path if we contain no directory separator.
97case $0 in
98  *[\\/]* ) as_myself=$0 ;;
99  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100for as_dir in $PATH
101do
102  IFS=$as_save_IFS
103  test -z "$as_dir" && as_dir=.
104  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
106IFS=$as_save_IFS
107
108     ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113  as_myself=$0
114fi
115if test ! -f "$as_myself"; then
116  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117  { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136   test "X`expr 00001 : '.*\(...\)'`" = X001; then
137  as_expr=expr
138else
139  as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143  as_basename=basename
144else
145  as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152	 X"$0" : 'X\(//\)$' \| \
153	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155    sed '/^.*\/\([^/][^/]*\)\/*$/{
156	    s//\1/
157	    q
158	  }
159	  /^X\/\(\/\/\)$/{
160	    s//\1/
161	    q
162	  }
163	  /^X\/\(\/\).*/{
164	    s//\1/
165	    q
166	  }
167	  s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174  if (eval ":") 2>/dev/null; then
175  as_have_required=yes
176else
177  as_have_required=no
178fi
179
180  if test $as_have_required = yes &&	 (eval ":
181(as_func_return () {
182  (exit \$1)
183}
184as_func_success () {
185  as_func_return 0
186}
187as_func_failure () {
188  as_func_return 1
189}
190as_func_ret_success () {
191  return 0
192}
193as_func_ret_failure () {
194  return 1
195}
196
197exitcode=0
198if as_func_success; then
199  :
200else
201  exitcode=1
202  echo as_func_success failed.
203fi
204
205if as_func_failure; then
206  exitcode=1
207  echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211  :
212else
213  exitcode=1
214  echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218  exitcode=1
219  echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223  :
224else
225  exitcode=1
226  echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232  as_lineno_1=\$LINENO
233  as_lineno_2=\$LINENO
234  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237  :
238else
239  as_candidate_shells=
240    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242do
243  IFS=$as_save_IFS
244  test -z "$as_dir" && as_dir=.
245  case $as_dir in
246	 /*)
247	   for as_base in sh bash ksh sh5; do
248	     as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249	   done;;
250       esac
251done
252IFS=$as_save_IFS
253
254
255      for as_shell in $as_candidate_shells $SHELL; do
256	 # Try only shells that exist, to save several forks.
257	 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258		{ ("$as_shell") 2> /dev/null <<\_ASEOF
259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260  emulate sh
261  NULLCMD=:
262  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263  # is contrary to our usage.  Disable this feature.
264  alias -g '${1+"$@"}'='"$@"'
265  setopt NO_GLOB_SUBST
266else
267  case `(set -o) 2>/dev/null` in
268  *posix*) set -o posix ;;
269esac
270
271fi
272
273
274:
275_ASEOF
276}; then
277  CONFIG_SHELL=$as_shell
278	       as_have_required=yes
279	       if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281  emulate sh
282  NULLCMD=:
283  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284  # is contrary to our usage.  Disable this feature.
285  alias -g '${1+"$@"}'='"$@"'
286  setopt NO_GLOB_SUBST
287else
288  case `(set -o) 2>/dev/null` in
289  *posix*) set -o posix ;;
290esac
291
292fi
293
294
295:
296(as_func_return () {
297  (exit $1)
298}
299as_func_success () {
300  as_func_return 0
301}
302as_func_failure () {
303  as_func_return 1
304}
305as_func_ret_success () {
306  return 0
307}
308as_func_ret_failure () {
309  return 1
310}
311
312exitcode=0
313if as_func_success; then
314  :
315else
316  exitcode=1
317  echo as_func_success failed.
318fi
319
320if as_func_failure; then
321  exitcode=1
322  echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326  :
327else
328  exitcode=1
329  echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333  exitcode=1
334  echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338  :
339else
340  exitcode=1
341  echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
347  as_lineno_1=$LINENO
348  as_lineno_2=$LINENO
349  test "x$as_lineno_1" != "x$as_lineno_2" &&
350  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354  break
355fi
356
357fi
358
359      done
360
361      if test "x$CONFIG_SHELL" != x; then
362  for as_var in BASH_ENV ENV
363	do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364	done
365	export CONFIG_SHELL
366	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370    if test $as_have_required = no; then
371  echo This script requires a shell more modern than all the
372      echo shells that I found on your system.  Please install a
373      echo modern shell, or manually run the script under such a
374      echo shell if you do have one.
375      { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386  (exit \$1)
387}
388as_func_success () {
389  as_func_return 0
390}
391as_func_failure () {
392  as_func_return 1
393}
394as_func_ret_success () {
395  return 0
396}
397as_func_ret_failure () {
398  return 1
399}
400
401exitcode=0
402if as_func_success; then
403  :
404else
405  exitcode=1
406  echo as_func_success failed.
407fi
408
409if as_func_failure; then
410  exitcode=1
411  echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415  :
416else
417  exitcode=1
418  echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422  exitcode=1
423  echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427  :
428else
429  exitcode=1
430  echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434  echo No shell found that supports shell functions.
435  echo Please tell bug-autoconf@gnu.org about your system,
436  echo including any error possibly output before this message.
437  echo This can help us improve future autoconf versions.
438  echo Configuration will now proceed without shell functions.
439}
440
441
442
443  as_lineno_1=$LINENO
444  as_lineno_2=$LINENO
445  test "x$as_lineno_1" != "x$as_lineno_2" &&
446  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449  # uniformly replaced by the line number.  The first 'sed' inserts a
450  # line-number line after each line using $LINENO; the second 'sed'
451  # does the real work.  The second script uses 'N' to pair each
452  # line-number line with the line containing $LINENO, and appends
453  # trailing '-' during substitution so that $LINENO is not a special
454  # case at line end.
455  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456  # scripts with optimization help from Paolo Bonzini.  Blame Lee
457  # E. McMahon (1931-1989) for sed's syntax.  :-)
458  sed -n '
459    p
460    /[$]LINENO/=
461  ' <$as_myself |
462    sed '
463      s/[$]LINENO.*/&-/
464      t lineno
465      b
466      :lineno
467      N
468      :loop
469      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470      t loop
471      s/-\n.*//
472    ' >$as_me.lineno &&
473  chmod +x "$as_me.lineno" ||
474    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475   { (exit 1); exit 1; }; }
476
477  # Don't try to exec as it changes $[0], causing all sort of problems
478  # (the dirname of $[0] is not the place where we might find the
479  # original and so on.  Autoconf is especially sensitive to this).
480  . "./$as_me.lineno"
481  # Exit status is that of the last command.
482  exit
483}
484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487  as_dirname=dirname
488else
489  as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495  case `echo 'x\c'` in
496  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
497  *)   ECHO_C='\c';;
498  esac;;
499*)
500  ECHO_N='-n';;
501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503   test "X`expr 00001 : '.*\(...\)'`" = X001; then
504  as_expr=expr
505else
506  as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
510if test -d conf$$.dir; then
511  rm -f conf$$.dir/conf$$.file
512else
513  rm -f conf$$.dir
514  mkdir conf$$.dir 2>/dev/null
515fi
516if (echo >conf$$.file) 2>/dev/null; then
517  if ln -s conf$$.file conf$$ 2>/dev/null; then
518    as_ln_s='ln -s'
519    # ... but there are two gotchas:
520    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522    # In both cases, we have to default to `cp -p'.
523    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524      as_ln_s='cp -p'
525  elif ln conf$$.file conf$$ 2>/dev/null; then
526    as_ln_s=ln
527  else
528    as_ln_s='cp -p'
529  fi
530else
531  as_ln_s='cp -p'
532fi
533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
535
536if mkdir -p . 2>/dev/null; then
537  as_mkdir_p=:
538else
539  test -d ./-p && rmdir ./-p
540  as_mkdir_p=false
541fi
542
543if test -x / >/dev/null 2>&1; then
544  as_test_x='test -x'
545else
546  if ls -dL / >/dev/null 2>&1; then
547    as_ls_L_option=L
548  else
549    as_ls_L_option=
550  fi
551  as_test_x='
552    eval sh -c '\''
553      if test -d "$1"; then
554	test -d "$1/.";
555      else
556	case $1 in
557	-*)set "./$1";;
558	esac;
559	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560	???[sx]*):;;*)false;;esac;fi
561    '\'' sh
562  '
563fi
564as_executable_p=$as_test_x
565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574
575# Check that we are running under the correct shell.
576SHELL=${CONFIG_SHELL-/bin/sh}
577
578case X$lt_ECHO in
579X*--fallback-echo)
580  # Remove one level of quotation (which was required for Make).
581  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
582  ;;
583esac
584
585ECHO=${lt_ECHO-echo}
586if test "X$1" = X--no-reexec; then
587  # Discard the --no-reexec flag, and continue.
588  shift
589elif test "X$1" = X--fallback-echo; then
590  # Avoid inline document here, it may be left over
591  :
592elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
593  # Yippee, $ECHO works!
594  :
595else
596  # Restart under the correct shell.
597  exec $SHELL "$0" --no-reexec ${1+"$@"}
598fi
599
600if test "X$1" = X--fallback-echo; then
601  # used as fallback echo
602  shift
603  cat <<_LT_EOF
604$*
605_LT_EOF
606  exit 0
607fi
608
609# The HP-UX ksh and POSIX shell print the target directory to stdout
610# if CDPATH is set.
611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
612
613if test -z "$lt_ECHO"; then
614  if test "X${echo_test_string+set}" != Xset; then
615    # find a string as large as possible, as long as the shell can cope with it
616    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
619	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
620      then
621        break
622      fi
623    done
624  fi
625
626  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628     test "X$echo_testing_string" = "X$echo_test_string"; then
629    :
630  else
631    # The Solaris, AIX, and Digital Unix default echo programs unquote
632    # backslashes.  This makes it impossible to quote backslashes using
633    #   echo "$something" | sed 's/\\/\\\\/g'
634    #
635    # So, first we look for a working echo in the user's PATH.
636
637    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
638    for dir in $PATH /usr/ucb; do
639      IFS="$lt_save_ifs"
640      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
641         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
642         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
643         test "X$echo_testing_string" = "X$echo_test_string"; then
644        ECHO="$dir/echo"
645        break
646      fi
647    done
648    IFS="$lt_save_ifs"
649
650    if test "X$ECHO" = Xecho; then
651      # We didn't find a better echo, so look for alternatives.
652      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
653         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
654         test "X$echo_testing_string" = "X$echo_test_string"; then
655        # This shell has a builtin print -r that does the trick.
656        ECHO='print -r'
657      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
658	   test "X$CONFIG_SHELL" != X/bin/ksh; then
659        # If we have ksh, try running configure again with it.
660        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
661        export ORIGINAL_CONFIG_SHELL
662        CONFIG_SHELL=/bin/ksh
663        export CONFIG_SHELL
664        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
665      else
666        # Try using printf.
667        ECHO='printf %s\n'
668        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
669	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
670	   test "X$echo_testing_string" = "X$echo_test_string"; then
671	  # Cool, printf works
672	  :
673        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
674	     test "X$echo_testing_string" = 'X\t' &&
675	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
676	     test "X$echo_testing_string" = "X$echo_test_string"; then
677	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
678	  export CONFIG_SHELL
679	  SHELL="$CONFIG_SHELL"
680	  export SHELL
681	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
682        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
683	     test "X$echo_testing_string" = 'X\t' &&
684	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
685	     test "X$echo_testing_string" = "X$echo_test_string"; then
686	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
687        else
688	  # maybe with a smaller string...
689	  prev=:
690
691	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
692	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
693	    then
694	      break
695	    fi
696	    prev="$cmd"
697	  done
698
699	  if test "$prev" != 'sed 50q "$0"'; then
700	    echo_test_string=`eval $prev`
701	    export echo_test_string
702	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
703	  else
704	    # Oops.  We lost completely, so just stick with echo.
705	    ECHO=echo
706	  fi
707        fi
708      fi
709    fi
710  fi
711fi
712
713# Copy echo and quote the copy suitably for passing to libtool from
714# the Makefile, instead of quoting the original, which is used later.
715lt_ECHO=$ECHO
716if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
717   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
718fi
719
720
721
722
723exec 7<&0 </dev/null 6>&1
724
725# Name of the host.
726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
727# so uname gets run too.
728ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
729
730#
731# Initializations.
732#
733ac_default_prefix=/usr/local
734ac_clean_files=
735ac_config_libobj_dir=.
736LIBOBJS=
737cross_compiling=no
738subdirs=
739MFLAGS=
740MAKEFLAGS=
741SHELL=${CONFIG_SHELL-/bin/sh}
742
743# Identity of this package.
744PACKAGE_NAME=
745PACKAGE_TARNAME=
746PACKAGE_VERSION=
747PACKAGE_STRING=
748PACKAGE_BUGREPORT=
749
750# Factoring default headers for most tests.
751ac_includes_default="\
752#include <stdio.h>
753#ifdef HAVE_SYS_TYPES_H
754# include <sys/types.h>
755#endif
756#ifdef HAVE_SYS_STAT_H
757# include <sys/stat.h>
758#endif
759#ifdef STDC_HEADERS
760# include <stdlib.h>
761# include <stddef.h>
762#else
763# ifdef HAVE_STDLIB_H
764#  include <stdlib.h>
765# endif
766#endif
767#ifdef HAVE_STRING_H
768# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
769#  include <memory.h>
770# endif
771# include <string.h>
772#endif
773#ifdef HAVE_STRINGS_H
774# include <strings.h>
775#endif
776#ifdef HAVE_INTTYPES_H
777# include <inttypes.h>
778#endif
779#ifdef HAVE_STDINT_H
780# include <stdint.h>
781#endif
782#ifdef HAVE_UNISTD_H
783# include <unistd.h>
784#endif"
785
786ac_subst_vars='SHELL
787PATH_SEPARATOR
788PACKAGE_NAME
789PACKAGE_TARNAME
790PACKAGE_VERSION
791PACKAGE_STRING
792PACKAGE_BUGREPORT
793exec_prefix
794prefix
795program_transform_name
796bindir
797sbindir
798libexecdir
799datarootdir
800datadir
801sysconfdir
802sharedstatedir
803localstatedir
804includedir
805oldincludedir
806docdir
807infodir
808htmldir
809dvidir
810pdfdir
811psdir
812libdir
813localedir
814mandir
815DEFS
816ECHO_C
817ECHO_N
818ECHO_T
819LIBS
820build_alias
821host_alias
822target_alias
823UUID_VERSION_RAW
824UUID_VERSION_STR
825UUID_VERSION_HEX
826SET_MAKE
827CC
828CFLAGS
829LDFLAGS
830CPPFLAGS
831ac_ct_CC
832EXEEXT
833OBJEXT
834CPP
835GREP
836EGREP
837LIBTOOL
838build
839build_cpu
840build_vendor
841build_os
842host
843host_cpu
844host_vendor
845host_os
846SED
847FGREP
848LD
849DUMPBIN
850ac_ct_DUMPBIN
851NM
852LN_S
853AR
854STRIP
855RANLIB
856lt_ECHO
857DSYMUTIL
858NMEDIT
859LIPO
860OTOOL
861OTOOL64
862WITH_DCE
863DCE_NAME
864CXX
865CXXFLAGS
866ac_ct_CXX
867CXXCPP
868CXX_NAME
869WITH_CXX
870PERL_NAME
871WITH_PERL
872WITH_PERL_COMPAT
873PERL
874PHP_NAME
875WITH_PHP
876PHP
877PGSQL_NAME
878WITH_PGSQL
879PG_CONFIG
880LIBOBJS
881LTLIBOBJS'
882ac_subst_files=''
883ac_user_opts='
884enable_option_checking
885enable_debug
886with_dmalloc
887enable_shared
888enable_static
889with_pic
890enable_fast_install
891with_gnu_ld
892enable_libtool_lock
893with_dce
894with_cxx
895with_perl
896with_perl_compat
897with_php
898with_pgsql
899'
900      ac_precious_vars='build_alias
901host_alias
902target_alias
903CC
904CFLAGS
905LDFLAGS
906LIBS
907CPPFLAGS
908CPP
909CXX
910CXXFLAGS
911CCC
912CXXCPP'
913
914
915# Initialize some variables set by options.
916ac_init_help=
917ac_init_version=false
918ac_unrecognized_opts=
919ac_unrecognized_sep=
920# The variables have the same names as the options, with
921# dashes changed to underlines.
922cache_file=/dev/null
923exec_prefix=NONE
924no_create=
925no_recursion=
926prefix=NONE
927program_prefix=NONE
928program_suffix=NONE
929program_transform_name=s,x,x,
930silent=
931site=
932srcdir=
933verbose=
934x_includes=NONE
935x_libraries=NONE
936
937# Installation directory options.
938# These are left unexpanded so users can "make install exec_prefix=/foo"
939# and all the variables that are supposed to be based on exec_prefix
940# by default will actually change.
941# Use braces instead of parens because sh, perl, etc. also accept them.
942# (The list follows the same order as the GNU Coding Standards.)
943bindir='${exec_prefix}/bin'
944sbindir='${exec_prefix}/sbin'
945libexecdir='${exec_prefix}/libexec'
946datarootdir='${prefix}/share'
947datadir='${datarootdir}'
948sysconfdir='${prefix}/etc'
949sharedstatedir='${prefix}/com'
950localstatedir='${prefix}/var'
951includedir='${prefix}/include'
952oldincludedir='/usr/include'
953docdir='${datarootdir}/doc/${PACKAGE}'
954infodir='${datarootdir}/info'
955htmldir='${docdir}'
956dvidir='${docdir}'
957pdfdir='${docdir}'
958psdir='${docdir}'
959libdir='${exec_prefix}/lib'
960localedir='${datarootdir}/locale'
961mandir='${datarootdir}/man'
962
963ac_prev=
964ac_dashdash=
965for ac_option
966do
967  # If the previous option needs an argument, assign it.
968  if test -n "$ac_prev"; then
969    eval $ac_prev=\$ac_option
970    ac_prev=
971    continue
972  fi
973
974  case $ac_option in
975  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976  *)	ac_optarg=yes ;;
977  esac
978
979  # Accept the important Cygnus configure options, so we can diagnose typos.
980
981  case $ac_dashdash$ac_option in
982  --)
983    ac_dashdash=yes ;;
984
985  -bindir | --bindir | --bindi | --bind | --bin | --bi)
986    ac_prev=bindir ;;
987  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988    bindir=$ac_optarg ;;
989
990  -build | --build | --buil | --bui | --bu)
991    ac_prev=build_alias ;;
992  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993    build_alias=$ac_optarg ;;
994
995  -cache-file | --cache-file | --cache-fil | --cache-fi \
996  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997    ac_prev=cache_file ;;
998  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000    cache_file=$ac_optarg ;;
1001
1002  --config-cache | -C)
1003    cache_file=config.cache ;;
1004
1005  -datadir | --datadir | --datadi | --datad)
1006    ac_prev=datadir ;;
1007  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008    datadir=$ac_optarg ;;
1009
1010  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011  | --dataroo | --dataro | --datar)
1012    ac_prev=datarootdir ;;
1013  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015    datarootdir=$ac_optarg ;;
1016
1017  -disable-* | --disable-*)
1018    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019    # Reject names that are not valid shell variable names.
1020    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1022   { (exit 1); exit 1; }; }
1023    ac_useropt_orig=$ac_useropt
1024    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1025    case $ac_user_opts in
1026      *"
1027"enable_$ac_useropt"
1028"*) ;;
1029      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1030	 ac_unrecognized_sep=', ';;
1031    esac
1032    eval enable_$ac_useropt=no ;;
1033
1034  -docdir | --docdir | --docdi | --doc | --do)
1035    ac_prev=docdir ;;
1036  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1037    docdir=$ac_optarg ;;
1038
1039  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1040    ac_prev=dvidir ;;
1041  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1042    dvidir=$ac_optarg ;;
1043
1044  -enable-* | --enable-*)
1045    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1046    # Reject names that are not valid shell variable names.
1047    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1049   { (exit 1); exit 1; }; }
1050    ac_useropt_orig=$ac_useropt
1051    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052    case $ac_user_opts in
1053      *"
1054"enable_$ac_useropt"
1055"*) ;;
1056      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057	 ac_unrecognized_sep=', ';;
1058    esac
1059    eval enable_$ac_useropt=\$ac_optarg ;;
1060
1061  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1062  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1063  | --exec | --exe | --ex)
1064    ac_prev=exec_prefix ;;
1065  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1066  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1067  | --exec=* | --exe=* | --ex=*)
1068    exec_prefix=$ac_optarg ;;
1069
1070  -gas | --gas | --ga | --g)
1071    # Obsolete; use --with-gas.
1072    with_gas=yes ;;
1073
1074  -help | --help | --hel | --he | -h)
1075    ac_init_help=long ;;
1076  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1077    ac_init_help=recursive ;;
1078  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1079    ac_init_help=short ;;
1080
1081  -host | --host | --hos | --ho)
1082    ac_prev=host_alias ;;
1083  -host=* | --host=* | --hos=* | --ho=*)
1084    host_alias=$ac_optarg ;;
1085
1086  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1087    ac_prev=htmldir ;;
1088  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1089  | --ht=*)
1090    htmldir=$ac_optarg ;;
1091
1092  -includedir | --includedir | --includedi | --included | --include \
1093  | --includ | --inclu | --incl | --inc)
1094    ac_prev=includedir ;;
1095  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1096  | --includ=* | --inclu=* | --incl=* | --inc=*)
1097    includedir=$ac_optarg ;;
1098
1099  -infodir | --infodir | --infodi | --infod | --info | --inf)
1100    ac_prev=infodir ;;
1101  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1102    infodir=$ac_optarg ;;
1103
1104  -libdir | --libdir | --libdi | --libd)
1105    ac_prev=libdir ;;
1106  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1107    libdir=$ac_optarg ;;
1108
1109  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1110  | --libexe | --libex | --libe)
1111    ac_prev=libexecdir ;;
1112  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1113  | --libexe=* | --libex=* | --libe=*)
1114    libexecdir=$ac_optarg ;;
1115
1116  -localedir | --localedir | --localedi | --localed | --locale)
1117    ac_prev=localedir ;;
1118  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1119    localedir=$ac_optarg ;;
1120
1121  -localstatedir | --localstatedir | --localstatedi | --localstated \
1122  | --localstate | --localstat | --localsta | --localst | --locals)
1123    ac_prev=localstatedir ;;
1124  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1125  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1126    localstatedir=$ac_optarg ;;
1127
1128  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1129    ac_prev=mandir ;;
1130  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1131    mandir=$ac_optarg ;;
1132
1133  -nfp | --nfp | --nf)
1134    # Obsolete; use --without-fp.
1135    with_fp=no ;;
1136
1137  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1138  | --no-cr | --no-c | -n)
1139    no_create=yes ;;
1140
1141  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1142  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1143    no_recursion=yes ;;
1144
1145  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1146  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1147  | --oldin | --oldi | --old | --ol | --o)
1148    ac_prev=oldincludedir ;;
1149  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1150  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1151  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1152    oldincludedir=$ac_optarg ;;
1153
1154  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1155    ac_prev=prefix ;;
1156  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1157    prefix=$ac_optarg ;;
1158
1159  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1160  | --program-pre | --program-pr | --program-p)
1161    ac_prev=program_prefix ;;
1162  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1163  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1164    program_prefix=$ac_optarg ;;
1165
1166  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1167  | --program-suf | --program-su | --program-s)
1168    ac_prev=program_suffix ;;
1169  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1170  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1171    program_suffix=$ac_optarg ;;
1172
1173  -program-transform-name | --program-transform-name \
1174  | --program-transform-nam | --program-transform-na \
1175  | --program-transform-n | --program-transform- \
1176  | --program-transform | --program-transfor \
1177  | --program-transfo | --program-transf \
1178  | --program-trans | --program-tran \
1179  | --progr-tra | --program-tr | --program-t)
1180    ac_prev=program_transform_name ;;
1181  -program-transform-name=* | --program-transform-name=* \
1182  | --program-transform-nam=* | --program-transform-na=* \
1183  | --program-transform-n=* | --program-transform-=* \
1184  | --program-transform=* | --program-transfor=* \
1185  | --program-transfo=* | --program-transf=* \
1186  | --program-trans=* | --program-tran=* \
1187  | --progr-tra=* | --program-tr=* | --program-t=*)
1188    program_transform_name=$ac_optarg ;;
1189
1190  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1191    ac_prev=pdfdir ;;
1192  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1193    pdfdir=$ac_optarg ;;
1194
1195  -psdir | --psdir | --psdi | --psd | --ps)
1196    ac_prev=psdir ;;
1197  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1198    psdir=$ac_optarg ;;
1199
1200  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1201  | -silent | --silent | --silen | --sile | --sil)
1202    silent=yes ;;
1203
1204  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205    ac_prev=sbindir ;;
1206  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207  | --sbi=* | --sb=*)
1208    sbindir=$ac_optarg ;;
1209
1210  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212  | --sharedst | --shareds | --shared | --share | --shar \
1213  | --sha | --sh)
1214    ac_prev=sharedstatedir ;;
1215  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218  | --sha=* | --sh=*)
1219    sharedstatedir=$ac_optarg ;;
1220
1221  -site | --site | --sit)
1222    ac_prev=site ;;
1223  -site=* | --site=* | --sit=*)
1224    site=$ac_optarg ;;
1225
1226  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227    ac_prev=srcdir ;;
1228  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1229    srcdir=$ac_optarg ;;
1230
1231  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232  | --syscon | --sysco | --sysc | --sys | --sy)
1233    ac_prev=sysconfdir ;;
1234  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1236    sysconfdir=$ac_optarg ;;
1237
1238  -target | --target | --targe | --targ | --tar | --ta | --t)
1239    ac_prev=target_alias ;;
1240  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1241    target_alias=$ac_optarg ;;
1242
1243  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244    verbose=yes ;;
1245
1246  -version | --version | --versio | --versi | --vers | -V)
1247    ac_init_version=: ;;
1248
1249  -with-* | --with-*)
1250    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251    # Reject names that are not valid shell variable names.
1252    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1253      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1254   { (exit 1); exit 1; }; }
1255    ac_useropt_orig=$ac_useropt
1256    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257    case $ac_user_opts in
1258      *"
1259"with_$ac_useropt"
1260"*) ;;
1261      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262	 ac_unrecognized_sep=', ';;
1263    esac
1264    eval with_$ac_useropt=\$ac_optarg ;;
1265
1266  -without-* | --without-*)
1267    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268    # Reject names that are not valid shell variable names.
1269    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1271   { (exit 1); exit 1; }; }
1272    ac_useropt_orig=$ac_useropt
1273    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274    case $ac_user_opts in
1275      *"
1276"with_$ac_useropt"
1277"*) ;;
1278      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279	 ac_unrecognized_sep=', ';;
1280    esac
1281    eval with_$ac_useropt=no ;;
1282
1283  --x)
1284    # Obsolete; use --with-x.
1285    with_x=yes ;;
1286
1287  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288  | --x-incl | --x-inc | --x-in | --x-i)
1289    ac_prev=x_includes ;;
1290  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292    x_includes=$ac_optarg ;;
1293
1294  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296    ac_prev=x_libraries ;;
1297  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299    x_libraries=$ac_optarg ;;
1300
1301  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1302Try \`$0 --help' for more information." >&2
1303   { (exit 1); exit 1; }; }
1304    ;;
1305
1306  *=*)
1307    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308    # Reject names that are not valid shell variable names.
1309    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1310      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1311   { (exit 1); exit 1; }; }
1312    eval $ac_envvar=\$ac_optarg
1313    export $ac_envvar ;;
1314
1315  *)
1316    # FIXME: should be removed in autoconf 3.0.
1317    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1321    ;;
1322
1323  esac
1324done
1325
1326if test -n "$ac_prev"; then
1327  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1329   { (exit 1); exit 1; }; }
1330fi
1331
1332if test -n "$ac_unrecognized_opts"; then
1333  case $enable_option_checking in
1334    no) ;;
1335    fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1336   { (exit 1); exit 1; }; } ;;
1337    *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338  esac
1339fi
1340
1341# Check all directory arguments for consistency.
1342for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343		datadir sysconfdir sharedstatedir localstatedir includedir \
1344		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345		libdir localedir mandir
1346do
1347  eval ac_val=\$$ac_var
1348  # Remove trailing slashes.
1349  case $ac_val in
1350    */ )
1351      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352      eval $ac_var=\$ac_val;;
1353  esac
1354  # Be sure to have absolute directory names.
1355  case $ac_val in
1356    [\\/$]* | ?:[\\/]* )  continue;;
1357    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1358  esac
1359  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1360   { (exit 1); exit 1; }; }
1361done
1362
1363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
1369
1370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372  if test "x$build_alias" = x; then
1373    cross_compiling=maybe
1374    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1375    If a cross compiler is detected then cross compile mode will be used." >&2
1376  elif test "x$build_alias" != "x$host_alias"; then
1377    cross_compiling=yes
1378  fi
1379fi
1380
1381ac_tool_prefix=
1382test -n "$host_alias" && ac_tool_prefix=$host_alias-
1383
1384test "$silent" = yes && exec 6>/dev/null
1385
1386
1387ac_pwd=`pwd` && test -n "$ac_pwd" &&
1388ac_ls_di=`ls -di .` &&
1389ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1390  { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1391   { (exit 1); exit 1; }; }
1392test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1394   { (exit 1); exit 1; }; }
1395
1396
1397# Find the source files, if location was not specified.
1398if test -z "$srcdir"; then
1399  ac_srcdir_defaulted=yes
1400  # Try the directory containing this script, then the parent directory.
1401  ac_confdir=`$as_dirname -- "$as_myself" ||
1402$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1403	 X"$as_myself" : 'X\(//\)[^/]' \| \
1404	 X"$as_myself" : 'X\(//\)$' \| \
1405	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1406$as_echo X"$as_myself" |
1407    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408	    s//\1/
1409	    q
1410	  }
1411	  /^X\(\/\/\)[^/].*/{
1412	    s//\1/
1413	    q
1414	  }
1415	  /^X\(\/\/\)$/{
1416	    s//\1/
1417	    q
1418	  }
1419	  /^X\(\/\).*/{
1420	    s//\1/
1421	    q
1422	  }
1423	  s/.*/./; q'`
1424  srcdir=$ac_confdir
1425  if test ! -r "$srcdir/$ac_unique_file"; then
1426    srcdir=..
1427  fi
1428else
1429  ac_srcdir_defaulted=no
1430fi
1431if test ! -r "$srcdir/$ac_unique_file"; then
1432  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1433  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1434   { (exit 1); exit 1; }; }
1435fi
1436ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437ac_abs_confdir=`(
1438	cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1439   { (exit 1); exit 1; }; }
1440	pwd)`
1441# When building in place, set srcdir=.
1442if test "$ac_abs_confdir" = "$ac_pwd"; then
1443  srcdir=.
1444fi
1445# Remove unnecessary trailing slashes from srcdir.
1446# Double slashes in file names in object file debugging info
1447# mess up M-x gdb in Emacs.
1448case $srcdir in
1449*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450esac
1451for ac_var in $ac_precious_vars; do
1452  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453  eval ac_env_${ac_var}_value=\$${ac_var}
1454  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456done
1457
1458#
1459# Report the --help message.
1460#
1461if test "$ac_init_help" = "long"; then
1462  # Omit some internal or obsolete options to make the list less imposing.
1463  # This message is too long to be a string in the A/UX 3.1 sh.
1464  cat <<_ACEOF
1465\`configure' configures this package to adapt to many kinds of systems.
1466
1467Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470VAR=VALUE.  See below for descriptions of some of the useful variables.
1471
1472Defaults for the options are specified in brackets.
1473
1474Configuration:
1475  -h, --help              display this help and exit
1476      --help=short        display options specific to this package
1477      --help=recursive    display the short help of all the included packages
1478  -V, --version           display version information and exit
1479  -q, --quiet, --silent   do not print \`checking...' messages
1480      --cache-file=FILE   cache test results in FILE [disabled]
1481  -C, --config-cache      alias for \`--cache-file=config.cache'
1482  -n, --no-create         do not create output files
1483      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1484
1485Installation directories:
1486  --prefix=PREFIX         install architecture-independent files in PREFIX
1487                          [$ac_default_prefix]
1488  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1489                          [PREFIX]
1490
1491By default, \`make install' will install all the files in
1492\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1493an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494for instance \`--prefix=\$HOME'.
1495
1496For better control, use the options below.
1497
1498Fine tuning of the installation directories:
1499  --bindir=DIR            user executables [EPREFIX/bin]
1500  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1501  --libexecdir=DIR        program executables [EPREFIX/libexec]
1502  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1503  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1504  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1505  --libdir=DIR            object code libraries [EPREFIX/lib]
1506  --includedir=DIR        C header files [PREFIX/include]
1507  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1508  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1509  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1510  --infodir=DIR           info documentation [DATAROOTDIR/info]
1511  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1512  --mandir=DIR            man documentation [DATAROOTDIR/man]
1513  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1514  --htmldir=DIR           html documentation [DOCDIR]
1515  --dvidir=DIR            dvi documentation [DOCDIR]
1516  --pdfdir=DIR            pdf documentation [DOCDIR]
1517  --psdir=DIR             ps documentation [DOCDIR]
1518_ACEOF
1519
1520  cat <<\_ACEOF
1521
1522System types:
1523  --build=BUILD     configure for building on BUILD [guessed]
1524  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1525_ACEOF
1526fi
1527
1528if test -n "$ac_init_help"; then
1529
1530  cat <<\_ACEOF
1531
1532Optional Features:
1533  --disable-option-checking  ignore unrecognized --enable/--with options
1534  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1535  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1536  --enable-debug          build for debugging (default=no)
1537  --enable-shared[=PKGS]  build shared libraries [default=yes]
1538  --enable-static[=PKGS]  build static libraries [default=yes]
1539  --enable-fast-install[=PKGS]
1540                          optimize for fast installation [default=yes]
1541  --disable-libtool-lock  avoid locking (might break parallel builds)
1542
1543Optional Packages:
1544  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1545  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1546  --with-dmalloc[=DIR]    build with external Dmalloc library (default=no)
1547  --with-pic              try to use only PIC/non-PIC objects [default=use
1548                          both]
1549  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1550  --with-dce              build DCE 1.1 backward compatibility API
1551  --with-cxx              build C++ bindings to C API
1552  --with-perl             build Perl bindings to C API
1553  --with-perl-compat      build Perl compatibility API
1554  --with-php              build PHP bindings to C API
1555  --with-pgsql            build PostgreSQL bindings to C API
1556
1557Some influential environment variables:
1558  CC          C compiler command
1559  CFLAGS      C compiler flags
1560  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1561              nonstandard directory <lib dir>
1562  LIBS        libraries to pass to the linker, e.g. -l<library>
1563  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1564              you have headers in a nonstandard directory <include dir>
1565  CPP         C preprocessor
1566  CXX         C++ compiler command
1567  CXXFLAGS    C++ compiler flags
1568  CXXCPP      C++ preprocessor
1569
1570Use these variables to override the choices made by `configure' or to help
1571it to find libraries and programs with nonstandard names/locations.
1572
1573_ACEOF
1574ac_status=$?
1575fi
1576
1577if test "$ac_init_help" = "recursive"; then
1578  # If there are subdirs, report their specific --help.
1579  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580    test -d "$ac_dir" ||
1581      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582      continue
1583    ac_builddir=.
1584
1585case "$ac_dir" in
1586.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587*)
1588  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1589  # A ".." for each directory in $ac_dir_suffix.
1590  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591  case $ac_top_builddir_sub in
1592  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594  esac ;;
1595esac
1596ac_abs_top_builddir=$ac_pwd
1597ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598# for backward compatibility:
1599ac_top_builddir=$ac_top_build_prefix
1600
1601case $srcdir in
1602  .)  # We are building in place.
1603    ac_srcdir=.
1604    ac_top_srcdir=$ac_top_builddir_sub
1605    ac_abs_top_srcdir=$ac_pwd ;;
1606  [\\/]* | ?:[\\/]* )  # Absolute name.
1607    ac_srcdir=$srcdir$ac_dir_suffix;
1608    ac_top_srcdir=$srcdir
1609    ac_abs_top_srcdir=$srcdir ;;
1610  *) # Relative name.
1611    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612    ac_top_srcdir=$ac_top_build_prefix$srcdir
1613    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614esac
1615ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1616
1617    cd "$ac_dir" || { ac_status=$?; continue; }
1618    # Check for guested configure.
1619    if test -f "$ac_srcdir/configure.gnu"; then
1620      echo &&
1621      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622    elif test -f "$ac_srcdir/configure"; then
1623      echo &&
1624      $SHELL "$ac_srcdir/configure" --help=recursive
1625    else
1626      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627    fi || ac_status=$?
1628    cd "$ac_pwd" || { ac_status=$?; break; }
1629  done
1630fi
1631
1632test -n "$ac_init_help" && exit $ac_status
1633if $ac_init_version; then
1634  cat <<\_ACEOF
1635configure
1636generated by GNU Autoconf 2.62 (OpenPKG-CURRENT)
1637
1638Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16392002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1640This configure script is free software; the Free Software Foundation
1641gives unlimited permission to copy, distribute and modify it.
1642_ACEOF
1643  exit
1644fi
1645cat >config.log <<_ACEOF
1646This file contains any messages produced by compilers while
1647running configure, to aid debugging if configure makes a mistake.
1648
1649It was created by $as_me, which was
1650generated by GNU Autoconf 2.62 (OpenPKG-CURRENT).  Invocation command line was
1651
1652  $ $0 $@
1653
1654_ACEOF
1655exec 5>>config.log
1656{
1657cat <<_ASUNAME
1658## --------- ##
1659## Platform. ##
1660## --------- ##
1661
1662hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1663uname -m = `(uname -m) 2>/dev/null || echo unknown`
1664uname -r = `(uname -r) 2>/dev/null || echo unknown`
1665uname -s = `(uname -s) 2>/dev/null || echo unknown`
1666uname -v = `(uname -v) 2>/dev/null || echo unknown`
1667
1668/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1669/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1670
1671/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1672/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1673/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1674/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1675/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1676/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1677/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1678
1679_ASUNAME
1680
1681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1682for as_dir in $PATH
1683do
1684  IFS=$as_save_IFS
1685  test -z "$as_dir" && as_dir=.
1686  $as_echo "PATH: $as_dir"
1687done
1688IFS=$as_save_IFS
1689
1690} >&5
1691
1692cat >&5 <<_ACEOF
1693
1694
1695## ----------- ##
1696## Core tests. ##
1697## ----------- ##
1698
1699_ACEOF
1700
1701
1702# Keep a trace of the command line.
1703# Strip out --no-create and --no-recursion so they do not pile up.
1704# Strip out --silent because we don't want to record it for future runs.
1705# Also quote any args containing shell meta-characters.
1706# Make two passes to allow for proper duplicate-argument suppression.
1707ac_configure_args=
1708ac_configure_args0=
1709ac_configure_args1=
1710ac_must_keep_next=false
1711for ac_pass in 1 2
1712do
1713  for ac_arg
1714  do
1715    case $ac_arg in
1716    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1717    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1718    | -silent | --silent | --silen | --sile | --sil)
1719      continue ;;
1720    *\'*)
1721      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1722    esac
1723    case $ac_pass in
1724    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1725    2)
1726      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1727      if test $ac_must_keep_next = true; then
1728	ac_must_keep_next=false # Got value, back to normal.
1729      else
1730	case $ac_arg in
1731	  *=* | --config-cache | -C | -disable-* | --disable-* \
1732	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1733	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1734	  | -with-* | --with-* | -without-* | --without-* | --x)
1735	    case "$ac_configure_args0 " in
1736	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1737	    esac
1738	    ;;
1739	  -* ) ac_must_keep_next=true ;;
1740	esac
1741      fi
1742      ac_configure_args="$ac_configure_args '$ac_arg'"
1743      ;;
1744    esac
1745  done
1746done
1747$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1748$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1749
1750# When interrupted or exit'd, cleanup temporary files, and complete
1751# config.log.  We remove comments because anyway the quotes in there
1752# would cause problems or look ugly.
1753# WARNING: Use '\'' to represent an apostrophe within the trap.
1754# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1755trap 'exit_status=$?
1756  # Save into config.log some information that might help in debugging.
1757  {
1758    echo
1759
1760    cat <<\_ASBOX
1761## ---------------- ##
1762## Cache variables. ##
1763## ---------------- ##
1764_ASBOX
1765    echo
1766    # The following way of writing the cache mishandles newlines in values,
1767(
1768  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1769    eval ac_val=\$$ac_var
1770    case $ac_val in #(
1771    *${as_nl}*)
1772      case $ac_var in #(
1773      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1774$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1775      esac
1776      case $ac_var in #(
1777      _ | IFS | as_nl) ;; #(
1778      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1779      *) $as_unset $ac_var ;;
1780      esac ;;
1781    esac
1782  done
1783  (set) 2>&1 |
1784    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1785    *${as_nl}ac_space=\ *)
1786      sed -n \
1787	"s/'\''/'\''\\\\'\'''\''/g;
1788	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789      ;; #(
1790    *)
1791      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1792      ;;
1793    esac |
1794    sort
1795)
1796    echo
1797
1798    cat <<\_ASBOX
1799## ----------------- ##
1800## Output variables. ##
1801## ----------------- ##
1802_ASBOX
1803    echo
1804    for ac_var in $ac_subst_vars
1805    do
1806      eval ac_val=\$$ac_var
1807      case $ac_val in
1808      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1809      esac
1810      $as_echo "$ac_var='\''$ac_val'\''"
1811    done | sort
1812    echo
1813
1814    if test -n "$ac_subst_files"; then
1815      cat <<\_ASBOX
1816## ------------------- ##
1817## File substitutions. ##
1818## ------------------- ##
1819_ASBOX
1820      echo
1821      for ac_var in $ac_subst_files
1822      do
1823	eval ac_val=\$$ac_var
1824	case $ac_val in
1825	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1826	esac
1827	$as_echo "$ac_var='\''$ac_val'\''"
1828      done | sort
1829      echo
1830    fi
1831
1832    if test -s confdefs.h; then
1833      cat <<\_ASBOX
1834## ----------- ##
1835## confdefs.h. ##
1836## ----------- ##
1837_ASBOX
1838      echo
1839      cat confdefs.h
1840      echo
1841    fi
1842    test "$ac_signal" != 0 &&
1843      $as_echo "$as_me: caught signal $ac_signal"
1844    $as_echo "$as_me: exit $exit_status"
1845  } >&5
1846  rm -f core *.core core.conftest.* &&
1847    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1848    exit $exit_status
1849' 0
1850for ac_signal in 1 2 13 15; do
1851  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1852done
1853ac_signal=0
1854
1855# confdefs.h avoids OS command line length limits that DEFS can exceed.
1856rm -f -r conftest* confdefs.h
1857
1858# Predefined preprocessor variables.
1859
1860cat >>confdefs.h <<_ACEOF
1861#define PACKAGE_NAME "$PACKAGE_NAME"
1862_ACEOF
1863
1864
1865cat >>confdefs.h <<_ACEOF
1866#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1867_ACEOF
1868
1869
1870cat >>confdefs.h <<_ACEOF
1871#define PACKAGE_VERSION "$PACKAGE_VERSION"
1872_ACEOF
1873
1874
1875cat >>confdefs.h <<_ACEOF
1876#define PACKAGE_STRING "$PACKAGE_STRING"
1877_ACEOF
1878
1879
1880cat >>confdefs.h <<_ACEOF
1881#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1882_ACEOF
1883
1884
1885# Let the site file select an alternate cache file if it wants to.
1886# Prefer an explicitly selected file to automatically selected ones.
1887ac_site_file1=NONE
1888ac_site_file2=NONE
1889if test -n "$CONFIG_SITE"; then
1890  ac_site_file1=$CONFIG_SITE
1891elif test "x$prefix" != xNONE; then
1892  ac_site_file1=$prefix/share/config.site
1893  ac_site_file2=$prefix/etc/config.site
1894else
1895  ac_site_file1=$ac_default_prefix/share/config.site
1896  ac_site_file2=$ac_default_prefix/etc/config.site
1897fi
1898for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1899do
1900  test "x$ac_site_file" = xNONE && continue
1901  if test -r "$ac_site_file"; then
1902    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1904    sed 's/^/| /' "$ac_site_file" >&5
1905    . "$ac_site_file"
1906  fi
1907done
1908
1909if test -r "$cache_file"; then
1910  # Some versions of bash will fail to source /dev/null (special
1911  # files actually), so we avoid doing that.
1912  if test -f "$cache_file"; then
1913    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914$as_echo "$as_me: loading cache $cache_file" >&6;}
1915    case $cache_file in
1916      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917      *)                      . "./$cache_file";;
1918    esac
1919  fi
1920else
1921  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922$as_echo "$as_me: creating cache $cache_file" >&6;}
1923  >$cache_file
1924fi
1925
1926# Check that the precious variables saved in the cache have kept the same
1927# value.
1928ac_cache_corrupted=false
1929for ac_var in $ac_precious_vars; do
1930  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1931  eval ac_new_set=\$ac_env_${ac_var}_set
1932  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1933  eval ac_new_val=\$ac_env_${ac_var}_value
1934  case $ac_old_set,$ac_new_set in
1935    set,)
1936      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1937$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1938      ac_cache_corrupted=: ;;
1939    ,set)
1940      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1941$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1942      ac_cache_corrupted=: ;;
1943    ,);;
1944    *)
1945      if test "x$ac_old_val" != "x$ac_new_val"; then
1946	# differences in whitespace do not lead to failure.
1947	ac_old_val_w=`echo x $ac_old_val`
1948	ac_new_val_w=`echo x $ac_new_val`
1949	if test "$ac_old_val_w" != "$ac_new_val_w"; then
1950	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1951$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1952	  ac_cache_corrupted=:
1953	else
1954	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1955$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1956	  eval $ac_var=\$ac_old_val
1957	fi
1958	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1959$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1960	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1961$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1962      fi;;
1963  esac
1964  # Pass precious variables to config.status.
1965  if test "$ac_new_set" = set; then
1966    case $ac_new_val in
1967    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1968    *) ac_arg=$ac_var=$ac_new_val ;;
1969    esac
1970    case " $ac_configure_args " in
1971      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1972      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1973    esac
1974  fi
1975done
1976if $ac_cache_corrupted; then
1977  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1978$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1979  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1980$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1981   { (exit 1); exit 1; }; }
1982fi
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000ac_ext=c
2001ac_cpp='$CPP $CPPFLAGS'
2002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005
2006
2007UUID_VERSION_RAW=`$ac_confdir/shtool version -l c -d short uuid_vers.h`
2008UUID_VERSION_STR=`$ac_confdir/shtool version -l c -d long  uuid_vers.h`
2009UUID_VERSION_HEX=`$ac_confdir/shtool version -l c -d hex   uuid_vers.h`
2010$ac_confdir/shtool echo -e \
2011    "Configuring %BOSSP uuid%b (Universally Unique Identifier), version %B${UUID_VERSION_STR}%b"
2012
2013
2014
2015
2016{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2017$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2018set x ${MAKE-make}
2019ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2020if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2021  $as_echo_n "(cached) " >&6
2022else
2023  cat >conftest.make <<\_ACEOF
2024SHELL = /bin/sh
2025all:
2026	@echo '@@@%%%=$(MAKE)=@@@%%%'
2027_ACEOF
2028# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2029case `${MAKE-make} -f conftest.make 2>/dev/null` in
2030  *@@@%%%=?*=@@@%%%*)
2031    eval ac_cv_prog_make_${ac_make}_set=yes;;
2032  *)
2033    eval ac_cv_prog_make_${ac_make}_set=no;;
2034esac
2035rm -f conftest.make
2036fi
2037if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2038  { $as_echo "$as_me:$LINENO: result: yes" >&5
2039$as_echo "yes" >&6; }
2040  SET_MAKE=
2041else
2042  { $as_echo "$as_me:$LINENO: result: no" >&5
2043$as_echo "no" >&6; }
2044  SET_MAKE="MAKE=${MAKE-make}"
2045fi
2046
2047ac_ext=c
2048ac_cpp='$CPP $CPPFLAGS'
2049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2051ac_compiler_gnu=$ac_cv_c_compiler_gnu
2052if test -n "$ac_tool_prefix"; then
2053  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2054set dummy ${ac_tool_prefix}gcc; ac_word=$2
2055{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2056$as_echo_n "checking for $ac_word... " >&6; }
2057if test "${ac_cv_prog_CC+set}" = set; then
2058  $as_echo_n "(cached) " >&6
2059else
2060  if test -n "$CC"; then
2061  ac_cv_prog_CC="$CC" # Let the user override the test.
2062else
2063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064for as_dir in $PATH
2065do
2066  IFS=$as_save_IFS
2067  test -z "$as_dir" && as_dir=.
2068  for ac_exec_ext in '' $ac_executable_extensions; do
2069  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2070    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2071    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2072    break 2
2073  fi
2074done
2075done
2076IFS=$as_save_IFS
2077
2078fi
2079fi
2080CC=$ac_cv_prog_CC
2081if test -n "$CC"; then
2082  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2083$as_echo "$CC" >&6; }
2084else
2085  { $as_echo "$as_me:$LINENO: result: no" >&5
2086$as_echo "no" >&6; }
2087fi
2088
2089
2090fi
2091if test -z "$ac_cv_prog_CC"; then
2092  ac_ct_CC=$CC
2093  # Extract the first word of "gcc", so it can be a program name with args.
2094set dummy gcc; ac_word=$2
2095{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2096$as_echo_n "checking for $ac_word... " >&6; }
2097if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2098  $as_echo_n "(cached) " >&6
2099else
2100  if test -n "$ac_ct_CC"; then
2101  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2102else
2103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2104for as_dir in $PATH
2105do
2106  IFS=$as_save_IFS
2107  test -z "$as_dir" && as_dir=.
2108  for ac_exec_ext in '' $ac_executable_extensions; do
2109  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2110    ac_cv_prog_ac_ct_CC="gcc"
2111    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112    break 2
2113  fi
2114done
2115done
2116IFS=$as_save_IFS
2117
2118fi
2119fi
2120ac_ct_CC=$ac_cv_prog_ac_ct_CC
2121if test -n "$ac_ct_CC"; then
2122  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2123$as_echo "$ac_ct_CC" >&6; }
2124else
2125  { $as_echo "$as_me:$LINENO: result: no" >&5
2126$as_echo "no" >&6; }
2127fi
2128
2129  if test "x$ac_ct_CC" = x; then
2130    CC=""
2131  else
2132    case $cross_compiling:$ac_tool_warned in
2133yes:)
2134{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2135whose name does not start with the host triplet.  If you think this
2136configuration is useful to you, please write to autoconf@gnu.org." >&5
2137$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2138whose name does not start with the host triplet.  If you think this
2139configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2140ac_tool_warned=yes ;;
2141esac
2142    CC=$ac_ct_CC
2143  fi
2144else
2145  CC="$ac_cv_prog_CC"
2146fi
2147
2148if test -z "$CC"; then
2149          if test -n "$ac_tool_prefix"; then
2150    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2151set dummy ${ac_tool_prefix}cc; ac_word=$2
2152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2153$as_echo_n "checking for $ac_word... " >&6; }
2154if test "${ac_cv_prog_CC+set}" = set; then
2155  $as_echo_n "(cached) " >&6
2156else
2157  if test -n "$CC"; then
2158  ac_cv_prog_CC="$CC" # Let the user override the test.
2159else
2160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161for as_dir in $PATH
2162do
2163  IFS=$as_save_IFS
2164  test -z "$as_dir" && as_dir=.
2165  for ac_exec_ext in '' $ac_executable_extensions; do
2166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2167    ac_cv_prog_CC="${ac_tool_prefix}cc"
2168    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2169    break 2
2170  fi
2171done
2172done
2173IFS=$as_save_IFS
2174
2175fi
2176fi
2177CC=$ac_cv_prog_CC
2178if test -n "$CC"; then
2179  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2180$as_echo "$CC" >&6; }
2181else
2182  { $as_echo "$as_me:$LINENO: result: no" >&5
2183$as_echo "no" >&6; }
2184fi
2185
2186
2187  fi
2188fi
2189if test -z "$CC"; then
2190  # Extract the first word of "cc", so it can be a program name with args.
2191set dummy cc; ac_word=$2
2192{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2193$as_echo_n "checking for $ac_word... " >&6; }
2194if test "${ac_cv_prog_CC+set}" = set; then
2195  $as_echo_n "(cached) " >&6
2196else
2197  if test -n "$CC"; then
2198  ac_cv_prog_CC="$CC" # Let the user override the test.
2199else
2200  ac_prog_rejected=no
2201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202for as_dir in $PATH
2203do
2204  IFS=$as_save_IFS
2205  test -z "$as_dir" && as_dir=.
2206  for ac_exec_ext in '' $ac_executable_extensions; do
2207  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2208    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2209       ac_prog_rejected=yes
2210       continue
2211     fi
2212    ac_cv_prog_CC="cc"
2213    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214    break 2
2215  fi
2216done
2217done
2218IFS=$as_save_IFS
2219
2220if test $ac_prog_rejected = yes; then
2221  # We found a bogon in the path, so make sure we never use it.
2222  set dummy $ac_cv_prog_CC
2223  shift
2224  if test $# != 0; then
2225    # We chose a different compiler from the bogus one.
2226    # However, it has the same basename, so the bogon will be chosen
2227    # first if we set CC to just the basename; use the full file name.
2228    shift
2229    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2230  fi
2231fi
2232fi
2233fi
2234CC=$ac_cv_prog_CC
2235if test -n "$CC"; then
2236  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2237$as_echo "$CC" >&6; }
2238else
2239  { $as_echo "$as_me:$LINENO: result: no" >&5
2240$as_echo "no" >&6; }
2241fi
2242
2243
2244fi
2245if test -z "$CC"; then
2246  if test -n "$ac_tool_prefix"; then
2247  for ac_prog in cl.exe
2248  do
2249    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2250set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2251{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2252$as_echo_n "checking for $ac_word... " >&6; }
2253if test "${ac_cv_prog_CC+set}" = set; then
2254  $as_echo_n "(cached) " >&6
2255else
2256  if test -n "$CC"; then
2257  ac_cv_prog_CC="$CC" # Let the user override the test.
2258else
2259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH
2261do
2262  IFS=$as_save_IFS
2263  test -z "$as_dir" && as_dir=.
2264  for ac_exec_ext in '' $ac_executable_extensions; do
2265  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2267    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268    break 2
2269  fi
2270done
2271done
2272IFS=$as_save_IFS
2273
2274fi
2275fi
2276CC=$ac_cv_prog_CC
2277if test -n "$CC"; then
2278  { $as_echo "$as_me:$LINENO: result: $CC" >&5
2279$as_echo "$CC" >&6; }
2280else
2281  { $as_echo "$as_me:$LINENO: result: no" >&5
2282$as_echo "no" >&6; }
2283fi
2284
2285
2286    test -n "$CC" && break
2287  done
2288fi
2289if test -z "$CC"; then
2290  ac_ct_CC=$CC
2291  for ac_prog in cl.exe
2292do
2293  # Extract the first word of "$ac_prog", so it can be a program name with args.
2294set dummy $ac_prog; ac_word=$2
2295{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2296$as_echo_n "checking for $ac_word... " >&6; }
2297if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2298  $as_echo_n "(cached) " >&6
2299else
2300  if test -n "$ac_ct_CC"; then
2301  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2302else
2303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304for as_dir in $PATH
2305do
2306  IFS=$as_save_IFS
2307  test -z "$as_dir" && as_dir=.
2308  for ac_exec_ext in '' $ac_executable_extensions; do
2309  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310    ac_cv_prog_ac_ct_CC="$ac_prog"
2311    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312    break 2
2313  fi
2314done
2315done
2316IFS=$as_save_IFS
2317
2318fi
2319fi
2320ac_ct_CC=$ac_cv_prog_ac_ct_CC
2321if test -n "$ac_ct_CC"; then
2322  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2323$as_echo "$ac_ct_CC" >&6; }
2324else
2325  { $as_echo "$as_me:$LINENO: result: no" >&5
2326$as_echo "no" >&6; }
2327fi
2328
2329
2330  test -n "$ac_ct_CC" && break
2331done
2332
2333  if test "x$ac_ct_CC" = x; then
2334    CC=""
2335  else
2336    case $cross_compiling:$ac_tool_warned in
2337yes:)
2338{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2339whose name does not start with the host triplet.  If you think this
2340configuration is useful to you, please write to autoconf@gnu.org." >&5
2341$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2342whose name does not start with the host triplet.  If you think this
2343configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2344ac_tool_warned=yes ;;
2345esac
2346    CC=$ac_ct_CC
2347  fi
2348fi
2349
2350fi
2351
2352
2353test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2354See \`config.log' for more details." >&5
2355$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2356See \`config.log' for more details." >&2;}
2357   { (exit 1); exit 1; }; }
2358
2359# Provide some information about the compiler.
2360$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2361set X $ac_compile
2362ac_compiler=$2
2363{ (ac_try="$ac_compiler --version >&5"
2364case "(($ac_try" in
2365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366  *) ac_try_echo=$ac_try;;
2367esac
2368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2369$as_echo "$ac_try_echo") >&5
2370  (eval "$ac_compiler --version >&5") 2>&5
2371  ac_status=$?
2372  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373  (exit $ac_status); }
2374{ (ac_try="$ac_compiler -v >&5"
2375case "(($ac_try" in
2376  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377  *) ac_try_echo=$ac_try;;
2378esac
2379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2380$as_echo "$ac_try_echo") >&5
2381  (eval "$ac_compiler -v >&5") 2>&5
2382  ac_status=$?
2383  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); }
2385{ (ac_try="$ac_compiler -V >&5"
2386case "(($ac_try" in
2387  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388  *) ac_try_echo=$ac_try;;
2389esac
2390eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2391$as_echo "$ac_try_echo") >&5
2392  (eval "$ac_compiler -V >&5") 2>&5
2393  ac_status=$?
2394  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395  (exit $ac_status); }
2396
2397cat >conftest.$ac_ext <<_ACEOF
2398/* confdefs.h.  */
2399_ACEOF
2400cat confdefs.h >>conftest.$ac_ext
2401cat >>conftest.$ac_ext <<_ACEOF
2402/* end confdefs.h.  */
2403
2404int
2405main ()
2406{
2407
2408  ;
2409  return 0;
2410}
2411_ACEOF
2412ac_clean_files_save=$ac_clean_files
2413ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2414# Try to create an executable without -o first, disregard a.out.
2415# It will help us diagnose broken compilers, and finding out an intuition
2416# of exeext.
2417{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2418$as_echo_n "checking for C compiler default output file name... " >&6; }
2419ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2420
2421# The possible output files:
2422ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2423
2424ac_rmfiles=
2425for ac_file in $ac_files
2426do
2427  case $ac_file in
2428    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2429    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2430  esac
2431done
2432rm -f $ac_rmfiles
2433
2434if { (ac_try="$ac_link_default"
2435case "(($ac_try" in
2436  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437  *) ac_try_echo=$ac_try;;
2438esac
2439eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2440$as_echo "$ac_try_echo") >&5
2441  (eval "$ac_link_default") 2>&5
2442  ac_status=$?
2443  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); }; then
2445  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2446# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2447# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2448# so that the user can short-circuit this test for compilers unknown to
2449# Autoconf.
2450for ac_file in $ac_files ''
2451do
2452  test -f "$ac_file" || continue
2453  case $ac_file in
2454    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2455	;;
2456    [ab].out )
2457	# We found the default executable, but exeext='' is most
2458	# certainly right.
2459	break;;
2460    *.* )
2461        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2462	then :; else
2463	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2464	fi
2465	# We set ac_cv_exeext here because the later test for it is not
2466	# safe: cross compilers may not add the suffix if given an `-o'
2467	# argument, so we may need to know it at that point already.
2468	# Even if this section looks crufty: it has the advantage of
2469	# actually working.
2470	break;;
2471    * )
2472	break;;
2473  esac
2474done
2475test "$ac_cv_exeext" = no && ac_cv_exeext=
2476
2477else
2478  ac_file=''
2479fi
2480
2481{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2482$as_echo "$ac_file" >&6; }
2483if test -z "$ac_file"; then
2484  $as_echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
2487{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2488See \`config.log' for more details." >&5
2489$as_echo "$as_me: error: C compiler cannot create executables
2490See \`config.log' for more details." >&2;}
2491   { (exit 77); exit 77; }; }
2492fi
2493
2494ac_exeext=$ac_cv_exeext
2495
2496# Check that the compiler produces executables we can run.  If not, either
2497# the compiler is broken, or we cross compile.
2498{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2499$as_echo_n "checking whether the C compiler works... " >&6; }
2500# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2501# If not cross compiling, check that we can run a simple program.
2502if test "$cross_compiling" != yes; then
2503  if { ac_try='./$ac_file'
2504  { (case "(($ac_try" in
2505  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506  *) ac_try_echo=$ac_try;;
2507esac
2508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2509$as_echo "$ac_try_echo") >&5
2510  (eval "$ac_try") 2>&5
2511  ac_status=$?
2512  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513  (exit $ac_status); }; }; then
2514    cross_compiling=no
2515  else
2516    if test "$cross_compiling" = maybe; then
2517	cross_compiling=yes
2518    else
2519	{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2520If you meant to cross compile, use \`--host'.
2521See \`config.log' for more details." >&5
2522$as_echo "$as_me: error: cannot run C compiled programs.
2523If you meant to cross compile, use \`--host'.
2524See \`config.log' for more details." >&2;}
2525   { (exit 1); exit 1; }; }
2526    fi
2527  fi
2528fi
2529{ $as_echo "$as_me:$LINENO: result: yes" >&5
2530$as_echo "yes" >&6; }
2531
2532rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2533ac_clean_files=$ac_clean_files_save
2534# Check that the compiler produces executables we can run.  If not, either
2535# the compiler is broken, or we cross compile.
2536{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2537$as_echo_n "checking whether we are cross compiling... " >&6; }
2538{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2539$as_echo "$cross_compiling" >&6; }
2540
2541{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2542$as_echo_n "checking for suffix of executables... " >&6; }
2543if { (ac_try="$ac_link"
2544case "(($ac_try" in
2545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546  *) ac_try_echo=$ac_try;;
2547esac
2548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2549$as_echo "$ac_try_echo") >&5
2550  (eval "$ac_link") 2>&5
2551  ac_status=$?
2552  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553  (exit $ac_status); }; then
2554  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2555# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2556# work properly (i.e., refer to `conftest.exe'), while it won't with
2557# `rm'.
2558for ac_file in conftest.exe conftest conftest.*; do
2559  test -f "$ac_file" || continue
2560  case $ac_file in
2561    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2562    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2563	  break;;
2564    * ) break;;
2565  esac
2566done
2567else
2568  { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2569See \`config.log' for more details." >&5
2570$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2571See \`config.log' for more details." >&2;}
2572   { (exit 1); exit 1; }; }
2573fi
2574
2575rm -f conftest$ac_cv_exeext
2576{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2577$as_echo "$ac_cv_exeext" >&6; }
2578
2579rm -f conftest.$ac_ext
2580EXEEXT=$ac_cv_exeext
2581ac_exeext=$EXEEXT
2582{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2583$as_echo_n "checking for suffix of object files... " >&6; }
2584if test "${ac_cv_objext+set}" = set; then
2585  $as_echo_n "(cached) " >&6
2586else
2587  cat >conftest.$ac_ext <<_ACEOF
2588/* confdefs.h.  */
2589_ACEOF
2590cat confdefs.h >>conftest.$ac_ext
2591cat >>conftest.$ac_ext <<_ACEOF
2592/* end confdefs.h.  */
2593
2594int
2595main ()
2596{
2597
2598  ;
2599  return 0;
2600}
2601_ACEOF
2602rm -f conftest.o conftest.obj
2603if { (ac_try="$ac_compile"
2604case "(($ac_try" in
2605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606  *) ac_try_echo=$ac_try;;
2607esac
2608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2609$as_echo "$ac_try_echo") >&5
2610  (eval "$ac_compile") 2>&5
2611  ac_status=$?
2612  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613  (exit $ac_status); }; then
2614  for ac_file in conftest.o conftest.obj conftest.*; do
2615  test -f "$ac_file" || continue;
2616  case $ac_file in
2617    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2618    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2619       break;;
2620  esac
2621done
2622else
2623  $as_echo "$as_me: failed program was:" >&5
2624sed 's/^/| /' conftest.$ac_ext >&5
2625
2626{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2627See \`config.log' for more details." >&5
2628$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2629See \`config.log' for more details." >&2;}
2630   { (exit 1); exit 1; }; }
2631fi
2632
2633rm -f conftest.$ac_cv_objext conftest.$ac_ext
2634fi
2635{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2636$as_echo "$ac_cv_objext" >&6; }
2637OBJEXT=$ac_cv_objext
2638ac_objext=$OBJEXT
2639{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2640$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2641if test "${ac_cv_c_compiler_gnu+set}" = set; then
2642  $as_echo_n "(cached) " >&6
2643else
2644  cat >conftest.$ac_ext <<_ACEOF
2645/* confdefs.h.  */
2646_ACEOF
2647cat confdefs.h >>conftest.$ac_ext
2648cat >>conftest.$ac_ext <<_ACEOF
2649/* end confdefs.h.  */
2650
2651int
2652main ()
2653{
2654#ifndef __GNUC__
2655       choke me
2656#endif
2657
2658  ;
2659  return 0;
2660}
2661_ACEOF
2662rm -f conftest.$ac_objext
2663if { (ac_try="$ac_compile"
2664case "(($ac_try" in
2665  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666  *) ac_try_echo=$ac_try;;
2667esac
2668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2669$as_echo "$ac_try_echo") >&5
2670  (eval "$ac_compile") 2>conftest.er1
2671  ac_status=$?
2672  grep -v '^ *+' conftest.er1 >conftest.err
2673  rm -f conftest.er1
2674  cat conftest.err >&5
2675  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676  (exit $ac_status); } && {
2677	 test -z "$ac_c_werror_flag" ||
2678	 test ! -s conftest.err
2679       } && test -s conftest.$ac_objext; then
2680  ac_compiler_gnu=yes
2681else
2682  $as_echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685	ac_compiler_gnu=no
2686fi
2687
2688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2689ac_cv_c_compiler_gnu=$ac_compiler_gnu
2690
2691fi
2692{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2693$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2694if test $ac_compiler_gnu = yes; then
2695  GCC=yes
2696else
2697  GCC=
2698fi
2699ac_test_CFLAGS=${CFLAGS+set}
2700ac_save_CFLAGS=$CFLAGS
2701{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2702$as_echo_n "checking whether $CC accepts -g... " >&6; }
2703if test "${ac_cv_prog_cc_g+set}" = set; then
2704  $as_echo_n "(cached) " >&6
2705else
2706  ac_save_c_werror_flag=$ac_c_werror_flag
2707   ac_c_werror_flag=yes
2708   ac_cv_prog_cc_g=no
2709   CFLAGS="-g"
2710   cat >conftest.$ac_ext <<_ACEOF
2711/* confdefs.h.  */
2712_ACEOF
2713cat confdefs.h >>conftest.$ac_ext
2714cat >>conftest.$ac_ext <<_ACEOF
2715/* end confdefs.h.  */
2716
2717int
2718main ()
2719{
2720
2721  ;
2722  return 0;
2723}
2724_ACEOF
2725rm -f conftest.$ac_objext
2726if { (ac_try="$ac_compile"
2727case "(($ac_try" in
2728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729  *) ac_try_echo=$ac_try;;
2730esac
2731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2732$as_echo "$ac_try_echo") >&5
2733  (eval "$ac_compile") 2>conftest.er1
2734  ac_status=$?
2735  grep -v '^ *+' conftest.er1 >conftest.err
2736  rm -f conftest.er1
2737  cat conftest.err >&5
2738  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739  (exit $ac_status); } && {
2740	 test -z "$ac_c_werror_flag" ||
2741	 test ! -s conftest.err
2742       } && test -s conftest.$ac_objext; then
2743  ac_cv_prog_cc_g=yes
2744else
2745  $as_echo "$as_me: failed program was:" >&5
2746sed 's/^/| /' conftest.$ac_ext >&5
2747
2748	CFLAGS=""
2749      cat >conftest.$ac_ext <<_ACEOF
2750/* confdefs.h.  */
2751_ACEOF
2752cat confdefs.h >>conftest.$ac_ext
2753cat >>conftest.$ac_ext <<_ACEOF
2754/* end confdefs.h.  */
2755
2756int
2757main ()
2758{
2759
2760  ;
2761  return 0;
2762}
2763_ACEOF
2764rm -f conftest.$ac_objext
2765if { (ac_try="$ac_compile"
2766case "(($ac_try" in
2767  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2768  *) ac_try_echo=$ac_try;;
2769esac
2770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2771$as_echo "$ac_try_echo") >&5
2772  (eval "$ac_compile") 2>conftest.er1
2773  ac_status=$?
2774  grep -v '^ *+' conftest.er1 >conftest.err
2775  rm -f conftest.er1
2776  cat conftest.err >&5
2777  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778  (exit $ac_status); } && {
2779	 test -z "$ac_c_werror_flag" ||
2780	 test ! -s conftest.err
2781       } && test -s conftest.$ac_objext; then
2782  :
2783else
2784  $as_echo "$as_me: failed program was:" >&5
2785sed 's/^/| /' conftest.$ac_ext >&5
2786
2787	ac_c_werror_flag=$ac_save_c_werror_flag
2788	 CFLAGS="-g"
2789	 cat >conftest.$ac_ext <<_ACEOF
2790/* confdefs.h.  */
2791_ACEOF
2792cat confdefs.h >>conftest.$ac_ext
2793cat >>conftest.$ac_ext <<_ACEOF
2794/* end confdefs.h.  */
2795
2796int
2797main ()
2798{
2799
2800  ;
2801  return 0;
2802}
2803_ACEOF
2804rm -f conftest.$ac_objext
2805if { (ac_try="$ac_compile"
2806case "(($ac_try" in
2807  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808  *) ac_try_echo=$ac_try;;
2809esac
2810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2811$as_echo "$ac_try_echo") >&5
2812  (eval "$ac_compile") 2>conftest.er1
2813  ac_status=$?
2814  grep -v '^ *+' conftest.er1 >conftest.err
2815  rm -f conftest.er1
2816  cat conftest.err >&5
2817  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); } && {
2819	 test -z "$ac_c_werror_flag" ||
2820	 test ! -s conftest.err
2821       } && test -s conftest.$ac_objext; then
2822  ac_cv_prog_cc_g=yes
2823else
2824  $as_echo "$as_me: failed program was:" >&5
2825sed 's/^/| /' conftest.$ac_ext >&5
2826
2827
2828fi
2829
2830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2831fi
2832
2833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2834fi
2835
2836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837   ac_c_werror_flag=$ac_save_c_werror_flag
2838fi
2839{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2840$as_echo "$ac_cv_prog_cc_g" >&6; }
2841if test "$ac_test_CFLAGS" = set; then
2842  CFLAGS=$ac_save_CFLAGS
2843elif test $ac_cv_prog_cc_g = yes; then
2844  if test "$GCC" = yes; then
2845    CFLAGS="-g -O2"
2846  else
2847    CFLAGS="-g"
2848  fi
2849else
2850  if test "$GCC" = yes; then
2851    CFLAGS="-O2"
2852  else
2853    CFLAGS=
2854  fi
2855fi
2856{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2857$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2858if test "${ac_cv_prog_cc_c89+set}" = set; then
2859  $as_echo_n "(cached) " >&6
2860else
2861  ac_cv_prog_cc_c89=no
2862ac_save_CC=$CC
2863cat >conftest.$ac_ext <<_ACEOF
2864/* confdefs.h.  */
2865_ACEOF
2866cat confdefs.h >>conftest.$ac_ext
2867cat >>conftest.$ac_ext <<_ACEOF
2868/* end confdefs.h.  */
2869#include <stdarg.h>
2870#include <stdio.h>
2871#include <sys/types.h>
2872#include <sys/stat.h>
2873/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2874struct buf { int x; };
2875FILE * (*rcsopen) (struct buf *, struct stat *, int);
2876static char *e (p, i)
2877     char **p;
2878     int i;
2879{
2880  return p[i];
2881}
2882static char *f (char * (*g) (char **, int), char **p, ...)
2883{
2884  char *s;
2885  va_list v;
2886  va_start (v,p);
2887  s = g (p, va_arg (v,int));
2888  va_end (v);
2889  return s;
2890}
2891
2892/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2893   function prototypes and stuff, but not '\xHH' hex character constants.
2894   These don't provoke an error unfortunately, instead are silently treated
2895   as 'x'.  The following induces an error, until -std is added to get
2896   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2897   array size at least.  It's necessary to write '\x00'==0 to get something
2898   that's true only with -std.  */
2899int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2900
2901/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2902   inside strings and character constants.  */
2903#define FOO(x) 'x'
2904int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2905
2906int test (int i, double x);
2907struct s1 {int (*f) (int a);};
2908struct s2 {int (*f) (double a);};
2909int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2910int argc;
2911char **argv;
2912int
2913main ()
2914{
2915return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2916  ;
2917  return 0;
2918}
2919_ACEOF
2920for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2921	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2922do
2923  CC="$ac_save_CC $ac_arg"
2924  rm -f conftest.$ac_objext
2925if { (ac_try="$ac_compile"
2926case "(($ac_try" in
2927  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928  *) ac_try_echo=$ac_try;;
2929esac
2930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2931$as_echo "$ac_try_echo") >&5
2932  (eval "$ac_compile") 2>conftest.er1
2933  ac_status=$?
2934  grep -v '^ *+' conftest.er1 >conftest.err
2935  rm -f conftest.er1
2936  cat conftest.err >&5
2937  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); } && {
2939	 test -z "$ac_c_werror_flag" ||
2940	 test ! -s conftest.err
2941       } && test -s conftest.$ac_objext; then
2942  ac_cv_prog_cc_c89=$ac_arg
2943else
2944  $as_echo "$as_me: failed program was:" >&5
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
2947
2948fi
2949
2950rm -f core conftest.err conftest.$ac_objext
2951  test "x$ac_cv_prog_cc_c89" != "xno" && break
2952done
2953rm -f conftest.$ac_ext
2954CC=$ac_save_CC
2955
2956fi
2957# AC_CACHE_VAL
2958case "x$ac_cv_prog_cc_c89" in
2959  x)
2960    { $as_echo "$as_me:$LINENO: result: none needed" >&5
2961$as_echo "none needed" >&6; } ;;
2962  xno)
2963    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2964$as_echo "unsupported" >&6; } ;;
2965  *)
2966    CC="$CC $ac_cv_prog_cc_c89"
2967    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2968$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2969esac
2970
2971
2972ac_ext=c
2973ac_cpp='$CPP $CPPFLAGS'
2974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2976ac_compiler_gnu=$ac_cv_c_compiler_gnu
2977
2978
2979# Check whether --enable-debug was given.
2980if test "${enable_debug+set}" = set; then
2981  enableval=$enable_debug; if test ".$ac_cv_c_compiler_gnu" = ".yes"; then
2982    case "$CFLAGS" in
2983        *-O* ) ;;
2984           * ) CFLAGS="$CFLAGS -O2" ;;
2985    esac
2986    case "$CFLAGS" in
2987        *-g* ) ;;
2988           * ) CFLAGS="$CFLAGS -g" ;;
2989    esac
2990    case "$CFLAGS" in
2991        *-pipe* ) ;;
2992              * ) { $as_echo "$as_me:$LINENO: checking whether compiler option(s) -pipe work" >&5
2993$as_echo_n "checking whether compiler option(s) -pipe work... " >&6; }
2994if test "${ac_cv_compiler_option_pipe+set}" = set; then
2995  $as_echo_n "(cached) " >&6
2996else
2997
2998SAVE_CFLAGS="$CFLAGS"
2999CFLAGS="$CFLAGS -pipe"
3000cat >conftest.$ac_ext <<_ACEOF
3001/* confdefs.h.  */
3002_ACEOF
3003cat confdefs.h >>conftest.$ac_ext
3004cat >>conftest.$ac_ext <<_ACEOF
3005/* end confdefs.h.  */
3006
3007int
3008main ()
3009{
3010
3011  ;
3012  return 0;
3013}
3014_ACEOF
3015rm -f conftest.$ac_objext
3016if { (ac_try="$ac_compile"
3017case "(($ac_try" in
3018  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019  *) ac_try_echo=$ac_try;;
3020esac
3021eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3022$as_echo "$ac_try_echo") >&5
3023  (eval "$ac_compile") 2>conftest.er1
3024  ac_status=$?
3025  grep -v '^ *+' conftest.er1 >conftest.err
3026  rm -f conftest.er1
3027  cat conftest.err >&5
3028  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029  (exit $ac_status); } && {
3030	 test -z "$ac_c_werror_flag" ||
3031	 test ! -s conftest.err
3032       } && test -s conftest.$ac_objext; then
3033  ac_cv_compiler_option_pipe=yes
3034else
3035  $as_echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
3038	ac_cv_compiler_option_pipe=no
3039fi
3040
3041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042CFLAGS="$SAVE_CFLAGS"
3043
3044fi
3045if test ".$ac_cv_compiler_option_pipe" = .yes; then
3046    CFLAGS="$CFLAGS -pipe"
3047else
3048    :
3049fi
3050{ $as_echo "$as_me:$LINENO: result: $ac_cv_compiler_option_pipe" >&5
3051$as_echo "$ac_cv_compiler_option_pipe" >&6; }
3052 ;;
3053    esac
3054    { $as_echo "$as_me:$LINENO: checking whether compiler option(s) -DDEBUG work" >&5
3055$as_echo_n "checking whether compiler option(s) -DDEBUG work... " >&6; }
3056if test "${ac_cv_compiler_option_defdbg+set}" = set; then
3057  $as_echo_n "(cached) " >&6
3058else
3059
3060SAVE_CFLAGS="$CFLAGS"
3061CFLAGS="$CFLAGS -DDEBUG"
3062cat >conftest.$ac_ext <<_ACEOF
3063/* confdefs.h.  */
3064_ACEOF
3065cat confdefs.h >>conftest.$ac_ext
3066cat >>conftest.$ac_ext <<_ACEOF
3067/* end confdefs.h.  */
3068
3069int
3070main ()
3071{
3072
3073  ;
3074  return 0;
3075}
3076_ACEOF
3077rm -f conftest.$ac_objext
3078if { (ac_try="$ac_compile"
3079case "(($ac_try" in
3080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081  *) ac_try_echo=$ac_try;;
3082esac
3083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3084$as_echo "$ac_try_echo") >&5
3085  (eval "$ac_compile") 2>conftest.er1
3086  ac_status=$?
3087  grep -v '^ *+' conftest.er1 >conftest.err
3088  rm -f conftest.er1
3089  cat conftest.err >&5
3090  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091  (exit $ac_status); } && {
3092	 test -z "$ac_c_werror_flag" ||
3093	 test ! -s conftest.err
3094       } && test -s conftest.$ac_objext; then
3095  ac_cv_compiler_option_defdbg=yes
3096else
3097  $as_echo "$as_me: failed program was:" >&5
3098sed 's/^/| /' conftest.$ac_ext >&5
3099
3100	ac_cv_compiler_option_defdbg=no
3101fi
3102
3103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3104CFLAGS="$SAVE_CFLAGS"
3105
3106fi
3107if test ".$ac_cv_compiler_option_defdbg" = .yes; then
3108    CFLAGS="$CFLAGS -DDEBUG"
3109else
3110    :
3111fi
3112{ $as_echo "$as_me:$LINENO: result: $ac_cv_compiler_option_defdbg" >&5
3113$as_echo "$ac_cv_compiler_option_defdbg" >&6; }
3114
3115    CFLAGS="$CFLAGS -pedantic"
3116    CFLAGS="$CFLAGS -Wall"
3117    WMORE="-Wshadow -Wpointer-arith -Wcast-align -Winline"
3118    WMORE="$WMORE -Wmissing-prototypes -Wmissing-declarations -Wnested-externs"
3119    { $as_echo "$as_me:$LINENO: checking whether compiler option(s) -W<xxx> work" >&5
3120$as_echo_n "checking whether compiler option(s) -W<xxx> work... " >&6; }
3121if test "${ac_cv_compiler_option_wmore+set}" = set; then
3122  $as_echo_n "(cached) " >&6
3123else
3124
3125SAVE_CFLAGS="$CFLAGS"
3126CFLAGS="$CFLAGS $WMORE"
3127cat >conftest.$ac_ext <<_ACEOF
3128/* confdefs.h.  */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h.  */
3133
3134int
3135main ()
3136{
3137
3138  ;
3139  return 0;
3140}
3141_ACEOF
3142rm -f conftest.$ac_objext
3143if { (ac_try="$ac_compile"
3144case "(($ac_try" in
3145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146  *) ac_try_echo=$ac_try;;
3147esac
3148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3149$as_echo "$ac_try_echo") >&5
3150  (eval "$ac_compile") 2>conftest.er1
3151  ac_status=$?
3152  grep -v '^ *+' conftest.er1 >conftest.err
3153  rm -f conftest.er1
3154  cat conftest.err >&5
3155  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156  (exit $ac_status); } && {
3157	 test -z "$ac_c_werror_flag" ||
3158	 test ! -s conftest.err
3159       } && test -s conftest.$ac_objext; then
3160  ac_cv_compiler_option_wmore=yes
3161else
3162  $as_echo "$as_me: failed program was:" >&5
3163sed 's/^/| /' conftest.$ac_ext >&5
3164
3165	ac_cv_compiler_option_wmore=no
3166fi
3167
3168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3169CFLAGS="$SAVE_CFLAGS"
3170
3171fi
3172if test ".$ac_cv_compiler_option_wmore" = .yes; then
3173    CFLAGS="$CFLAGS $WMORE"
3174else
3175    :
3176fi
3177{ $as_echo "$as_me:$LINENO: result: $ac_cv_compiler_option_wmore" >&5
3178$as_echo "$ac_cv_compiler_option_wmore" >&6; }
3179
3180    { $as_echo "$as_me:$LINENO: checking whether compiler option(s) -Wno-long-long work" >&5
3181$as_echo_n "checking whether compiler option(s) -Wno-long-long work... " >&6; }
3182if test "${ac_cv_compiler_option_wnolonglong+set}" = set; then
3183  $as_echo_n "(cached) " >&6
3184else
3185
3186SAVE_CFLAGS="$CFLAGS"
3187CFLAGS="$CFLAGS -Wno-long-long"
3188cat >conftest.$ac_ext <<_ACEOF
3189/* confdefs.h.  */
3190_ACEOF
3191cat confdefs.h >>conftest.$ac_ext
3192cat >>conftest.$ac_ext <<_ACEOF
3193/* end confdefs.h.  */
3194
3195int
3196main ()
3197{
3198
3199  ;
3200  return 0;
3201}
3202_ACEOF
3203rm -f conftest.$ac_objext
3204if { (ac_try="$ac_compile"
3205case "(($ac_try" in
3206  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207  *) ac_try_echo=$ac_try;;
3208esac
3209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3210$as_echo "$ac_try_echo") >&5
3211  (eval "$ac_compile") 2>conftest.er1
3212  ac_status=$?
3213  grep -v '^ *+' conftest.er1 >conftest.err
3214  rm -f conftest.er1
3215  cat conftest.err >&5
3216  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217  (exit $ac_status); } && {
3218	 test -z "$ac_c_werror_flag" ||
3219	 test ! -s conftest.err
3220       } && test -s conftest.$ac_objext; then
3221  ac_cv_compiler_option_wnolonglong=yes
3222else
3223  $as_echo "$as_me: failed program was:" >&5
3224sed 's/^/| /' conftest.$ac_ext >&5
3225
3226	ac_cv_compiler_option_wnolonglong=no
3227fi
3228
3229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230CFLAGS="$SAVE_CFLAGS"
3231
3232fi
3233if test ".$ac_cv_compiler_option_wnolonglong" = .yes; then
3234    CFLAGS="$CFLAGS -Wno-long-long"
3235else
3236    :
3237fi
3238{ $as_echo "$as_me:$LINENO: result: $ac_cv_compiler_option_wnolonglong" >&5
3239$as_echo "$ac_cv_compiler_option_wnolonglong" >&6; }
3240
3241else
3242    case "$CFLAGS" in
3243        *-g* ) ;;
3244           * ) CFLAGS="$CFLAGS -g" ;;
3245    esac
3246fi
3247msg="enabled"
3248
3249else
3250
3251if test ".$ac_cv_c_compiler_gnu" = ".yes"; then
3252case "$CFLAGS" in
3253    *-pipe* ) ;;
3254          * ) { $as_echo "$as_me:$LINENO: checking whether compiler option(s) -pipe work" >&5
3255$as_echo_n "checking whether compiler option(s) -pipe work... " >&6; }
3256if test "${ac_cv_compiler_option_pipe+set}" = set; then
3257  $as_echo_n "(cached) " >&6
3258else
3259
3260SAVE_CFLAGS="$CFLAGS"
3261CFLAGS="$CFLAGS -pipe"
3262cat >conftest.$ac_ext <<_ACEOF
3263/* confdefs.h.  */
3264_ACEOF
3265cat confdefs.h >>conftest.$ac_ext
3266cat >>conftest.$ac_ext <<_ACEOF
3267/* end confdefs.h.  */
3268
3269int
3270main ()
3271{
3272
3273  ;
3274  return 0;
3275}
3276_ACEOF
3277rm -f conftest.$ac_objext
3278if { (ac_try="$ac_compile"
3279case "(($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_compile") 2>conftest.er1
3286  ac_status=$?
3287  grep -v '^ *+' conftest.er1 >conftest.err
3288  rm -f conftest.er1
3289  cat conftest.err >&5
3290  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291  (exit $ac_status); } && {
3292	 test -z "$ac_c_werror_flag" ||
3293	 test ! -s conftest.err
3294       } && test -s conftest.$ac_objext; then
3295  ac_cv_compiler_option_pipe=yes
3296else
3297  $as_echo "$as_me: failed program was:" >&5
3298sed 's/^/| /' conftest.$ac_ext >&5
3299
3300	ac_cv_compiler_option_pipe=no
3301fi
3302
3303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304CFLAGS="$SAVE_CFLAGS"
3305
3306fi
3307if test ".$ac_cv_compiler_option_pipe" = .yes; then
3308    CFLAGS="$CFLAGS -pipe"
3309else
3310    :
3311fi
3312{ $as_echo "$as_me:$LINENO: result: $ac_cv_compiler_option_pipe" >&5
3313$as_echo "$ac_cv_compiler_option_pipe" >&6; }
3314 ;;
3315esac
3316fi
3317case "$CFLAGS" in
3318    *-g* ) CFLAGS=`echo "$CFLAGS" |\
3319                   sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;;
3320esac
3321case "$CXXFLAGS" in
3322    *-g* ) CXXFLAGS=`echo "$CXXFLAGS" |\
3323                     sed -e 's/ -g / /g' -e 's/ -g$//' -e 's/^-g //g' -e 's/^-g$//'` ;;
3324esac
3325msg=disabled
3326
3327fi
3328{ $as_echo "$as_me:$LINENO: checking for compilation debug mode" >&5
3329$as_echo_n "checking for compilation debug mode... " >&6; }
3330{ $as_echo "$as_me:$LINENO: result: $msg" >&5
3331$as_echo "$msg" >&6; }
3332if test ".$msg" = .enabled; then
3333    enable_shared=no
3334fi
3335
3336ac_ext=c
3337ac_cpp='$CPP $CPPFLAGS'
3338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3340ac_compiler_gnu=$ac_cv_c_compiler_gnu
3341{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3342$as_echo_n "checking how to run the C preprocessor... " >&6; }
3343# On Suns, sometimes $CPP names a directory.
3344if test -n "$CPP" && test -d "$CPP"; then
3345  CPP=
3346fi
3347if test -z "$CPP"; then
3348  if test "${ac_cv_prog_CPP+set}" = set; then
3349  $as_echo_n "(cached) " >&6
3350else
3351      # Double quotes because CPP needs to be expanded
3352    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3353    do
3354      ac_preproc_ok=false
3355for ac_c_preproc_warn_flag in '' yes
3356do
3357  # Use a header file that comes with gcc, so configuring glibc
3358  # with a fresh cross-compiler works.
3359  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3360  # <limits.h> exists even on freestanding compilers.
3361  # On the NeXT, cc -E runs the code through the compiler's parser,
3362  # not just through cpp. "Syntax error" is here to catch this case.
3363  cat >conftest.$ac_ext <<_ACEOF
3364/* confdefs.h.  */
3365_ACEOF
3366cat confdefs.h >>conftest.$ac_ext
3367cat >>conftest.$ac_ext <<_ACEOF
3368/* end confdefs.h.  */
3369#ifdef __STDC__
3370# include <limits.h>
3371#else
3372# include <assert.h>
3373#endif
3374		     Syntax error
3375_ACEOF
3376if { (ac_try="$ac_cpp conftest.$ac_ext"
3377case "(($ac_try" in
3378  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379  *) ac_try_echo=$ac_try;;
3380esac
3381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3382$as_echo "$ac_try_echo") >&5
3383  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384  ac_status=$?
3385  grep -v '^ *+' conftest.er1 >conftest.err
3386  rm -f conftest.er1
3387  cat conftest.err >&5
3388  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389  (exit $ac_status); } >/dev/null && {
3390	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3391	 test ! -s conftest.err
3392       }; then
3393  :
3394else
3395  $as_echo "$as_me: failed program was:" >&5
3396sed 's/^/| /' conftest.$ac_ext >&5
3397
3398  # Broken: fails on valid input.
3399continue
3400fi
3401
3402rm -f conftest.err conftest.$ac_ext
3403
3404  # OK, works on sane cases.  Now check whether nonexistent headers
3405  # can be detected and how.
3406  cat >conftest.$ac_ext <<_ACEOF
3407/* confdefs.h.  */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h.  */
3412#include <ac_nonexistent.h>
3413_ACEOF
3414if { (ac_try="$ac_cpp conftest.$ac_ext"
3415case "(($ac_try" in
3416  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417  *) ac_try_echo=$ac_try;;
3418esac
3419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3420$as_echo "$ac_try_echo") >&5
3421  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3422  ac_status=$?
3423  grep -v '^ *+' conftest.er1 >conftest.err
3424  rm -f conftest.er1
3425  cat conftest.err >&5
3426  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427  (exit $ac_status); } >/dev/null && {
3428	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3429	 test ! -s conftest.err
3430       }; then
3431  # Broken: success on invalid input.
3432continue
3433else
3434  $as_echo "$as_me: failed program was:" >&5
3435sed 's/^/| /' conftest.$ac_ext >&5
3436
3437  # Passes both tests.
3438ac_preproc_ok=:
3439break
3440fi
3441
3442rm -f conftest.err conftest.$ac_ext
3443
3444done
3445# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3446rm -f conftest.err conftest.$ac_ext
3447if $ac_preproc_ok; then
3448  break
3449fi
3450
3451    done
3452    ac_cv_prog_CPP=$CPP
3453
3454fi
3455  CPP=$ac_cv_prog_CPP
3456else
3457  ac_cv_prog_CPP=$CPP
3458fi
3459{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3460$as_echo "$CPP" >&6; }
3461ac_preproc_ok=false
3462for ac_c_preproc_warn_flag in '' yes
3463do
3464  # Use a header file that comes with gcc, so configuring glibc
3465  # with a fresh cross-compiler works.
3466  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3467  # <limits.h> exists even on freestanding compilers.
3468  # On the NeXT, cc -E runs the code through the compiler's parser,
3469  # not just through cpp. "Syntax error" is here to catch this case.
3470  cat >conftest.$ac_ext <<_ACEOF
3471/* confdefs.h.  */
3472_ACEOF
3473cat confdefs.h >>conftest.$ac_ext
3474cat >>conftest.$ac_ext <<_ACEOF
3475/* end confdefs.h.  */
3476#ifdef __STDC__
3477# include <limits.h>
3478#else
3479# include <assert.h>
3480#endif
3481		     Syntax error
3482_ACEOF
3483if { (ac_try="$ac_cpp conftest.$ac_ext"
3484case "(($ac_try" in
3485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486  *) ac_try_echo=$ac_try;;
3487esac
3488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3489$as_echo "$ac_try_echo") >&5
3490  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3491  ac_status=$?
3492  grep -v '^ *+' conftest.er1 >conftest.err
3493  rm -f conftest.er1
3494  cat conftest.err >&5
3495  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); } >/dev/null && {
3497	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3498	 test ! -s conftest.err
3499       }; then
3500  :
3501else
3502  $as_echo "$as_me: failed program was:" >&5
3503sed 's/^/| /' conftest.$ac_ext >&5
3504
3505  # Broken: fails on valid input.
3506continue
3507fi
3508
3509rm -f conftest.err conftest.$ac_ext
3510
3511  # OK, works on sane cases.  Now check whether nonexistent headers
3512  # can be detected and how.
3513  cat >conftest.$ac_ext <<_ACEOF
3514/* confdefs.h.  */
3515_ACEOF
3516cat confdefs.h >>conftest.$ac_ext
3517cat >>conftest.$ac_ext <<_ACEOF
3518/* end confdefs.h.  */
3519#include <ac_nonexistent.h>
3520_ACEOF
3521if { (ac_try="$ac_cpp conftest.$ac_ext"
3522case "(($ac_try" in
3523  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524  *) ac_try_echo=$ac_try;;
3525esac
3526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3527$as_echo "$ac_try_echo") >&5
3528  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3529  ac_status=$?
3530  grep -v '^ *+' conftest.er1 >conftest.err
3531  rm -f conftest.er1
3532  cat conftest.err >&5
3533  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534  (exit $ac_status); } >/dev/null && {
3535	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3536	 test ! -s conftest.err
3537       }; then
3538  # Broken: success on invalid input.
3539continue
3540else
3541  $as_echo "$as_me: failed program was:" >&5
3542sed 's/^/| /' conftest.$ac_ext >&5
3543
3544  # Passes both tests.
3545ac_preproc_ok=:
3546break
3547fi
3548
3549rm -f conftest.err conftest.$ac_ext
3550
3551done
3552# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553rm -f conftest.err conftest.$ac_ext
3554if $ac_preproc_ok; then
3555  :
3556else
3557  { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3558See \`config.log' for more details." >&5
3559$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3560See \`config.log' for more details." >&2;}
3561   { (exit 1); exit 1; }; }
3562fi
3563
3564ac_ext=c
3565ac_cpp='$CPP $CPPFLAGS'
3566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569
3570
3571{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3572$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3573if test "${ac_cv_path_GREP+set}" = set; then
3574  $as_echo_n "(cached) " >&6
3575else
3576  if test -z "$GREP"; then
3577  ac_path_GREP_found=false
3578  # Loop through the user's path and test for each of PROGNAME-LIST
3579  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3581do
3582  IFS=$as_save_IFS
3583  test -z "$as_dir" && as_dir=.
3584  for ac_prog in grep ggrep; do
3585    for ac_exec_ext in '' $ac_executable_extensions; do
3586      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3587      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3588# Check for GNU ac_path_GREP and select it if it is found.
3589  # Check for GNU $ac_path_GREP
3590case `"$ac_path_GREP" --version 2>&1` in
3591*GNU*)
3592  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3593*)
3594  ac_count=0
3595  $as_echo_n 0123456789 >"conftest.in"
3596  while :
3597  do
3598    cat "conftest.in" "conftest.in" >"conftest.tmp"
3599    mv "conftest.tmp" "conftest.in"
3600    cp "conftest.in" "conftest.nl"
3601    $as_echo 'GREP' >> "conftest.nl"
3602    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3603    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3604    ac_count=`expr $ac_count + 1`
3605    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3606      # Best one so far, save it but keep looking for a better one
3607      ac_cv_path_GREP="$ac_path_GREP"
3608      ac_path_GREP_max=$ac_count
3609    fi
3610    # 10*(2^10) chars as input seems more than enough
3611    test $ac_count -gt 10 && break
3612  done
3613  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3614esac
3615
3616      $ac_path_GREP_found && break 3
3617    done
3618  done
3619done
3620IFS=$as_save_IFS
3621  if test -z "$ac_cv_path_GREP"; then
3622    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3623$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3624   { (exit 1); exit 1; }; }
3625  fi
3626else
3627  ac_cv_path_GREP=$GREP
3628fi
3629
3630fi
3631{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3632$as_echo "$ac_cv_path_GREP" >&6; }
3633 GREP="$ac_cv_path_GREP"
3634
3635
3636{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3637$as_echo_n "checking for egrep... " >&6; }
3638if test "${ac_cv_path_EGREP+set}" = set; then
3639  $as_echo_n "(cached) " >&6
3640else
3641  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3642   then ac_cv_path_EGREP="$GREP -E"
3643   else
3644     if test -z "$EGREP"; then
3645  ac_path_EGREP_found=false
3646  # Loop through the user's path and test for each of PROGNAME-LIST
3647  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3649do
3650  IFS=$as_save_IFS
3651  test -z "$as_dir" && as_dir=.
3652  for ac_prog in egrep; do
3653    for ac_exec_ext in '' $ac_executable_extensions; do
3654      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3655      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3656# Check for GNU ac_path_EGREP and select it if it is found.
3657  # Check for GNU $ac_path_EGREP
3658case `"$ac_path_EGREP" --version 2>&1` in
3659*GNU*)
3660  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3661*)
3662  ac_count=0
3663  $as_echo_n 0123456789 >"conftest.in"
3664  while :
3665  do
3666    cat "conftest.in" "conftest.in" >"conftest.tmp"
3667    mv "conftest.tmp" "conftest.in"
3668    cp "conftest.in" "conftest.nl"
3669    $as_echo 'EGREP' >> "conftest.nl"
3670    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3671    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3672    ac_count=`expr $ac_count + 1`
3673    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3674      # Best one so far, save it but keep looking for a better one
3675      ac_cv_path_EGREP="$ac_path_EGREP"
3676      ac_path_EGREP_max=$ac_count
3677    fi
3678    # 10*(2^10) chars as input seems more than enough
3679    test $ac_count -gt 10 && break
3680  done
3681  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3682esac
3683
3684      $ac_path_EGREP_found && break 3
3685    done
3686  done
3687done
3688IFS=$as_save_IFS
3689  if test -z "$ac_cv_path_EGREP"; then
3690    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3691$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3692   { (exit 1); exit 1; }; }
3693  fi
3694else
3695  ac_cv_path_EGREP=$EGREP
3696fi
3697
3698   fi
3699fi
3700{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3701$as_echo "$ac_cv_path_EGREP" >&6; }
3702 EGREP="$ac_cv_path_EGREP"
3703
3704
3705{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3706$as_echo_n "checking for ANSI C header files... " >&6; }
3707if test "${ac_cv_header_stdc+set}" = set; then
3708  $as_echo_n "(cached) " >&6
3709else
3710  cat >conftest.$ac_ext <<_ACEOF
3711/* confdefs.h.  */
3712_ACEOF
3713cat confdefs.h >>conftest.$ac_ext
3714cat >>conftest.$ac_ext <<_ACEOF
3715/* end confdefs.h.  */
3716#include <stdlib.h>
3717#include <stdarg.h>
3718#include <string.h>
3719#include <float.h>
3720
3721int
3722main ()
3723{
3724
3725  ;
3726  return 0;
3727}
3728_ACEOF
3729rm -f conftest.$ac_objext
3730if { (ac_try="$ac_compile"
3731case "(($ac_try" in
3732  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733  *) ac_try_echo=$ac_try;;
3734esac
3735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3736$as_echo "$ac_try_echo") >&5
3737  (eval "$ac_compile") 2>conftest.er1
3738  ac_status=$?
3739  grep -v '^ *+' conftest.er1 >conftest.err
3740  rm -f conftest.er1
3741  cat conftest.err >&5
3742  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743  (exit $ac_status); } && {
3744	 test -z "$ac_c_werror_flag" ||
3745	 test ! -s conftest.err
3746       } && test -s conftest.$ac_objext; then
3747  ac_cv_header_stdc=yes
3748else
3749  $as_echo "$as_me: failed program was:" >&5
3750sed 's/^/| /' conftest.$ac_ext >&5
3751
3752	ac_cv_header_stdc=no
3753fi
3754
3755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3756
3757if test $ac_cv_header_stdc = yes; then
3758  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3759  cat >conftest.$ac_ext <<_ACEOF
3760/* confdefs.h.  */
3761_ACEOF
3762cat confdefs.h >>conftest.$ac_ext
3763cat >>conftest.$ac_ext <<_ACEOF
3764/* end confdefs.h.  */
3765#include <string.h>
3766
3767_ACEOF
3768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3769  $EGREP "memchr" >/dev/null 2>&1; then
3770  :
3771else
3772  ac_cv_header_stdc=no
3773fi
3774rm -f conftest*
3775
3776fi
3777
3778if test $ac_cv_header_stdc = yes; then
3779  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3780  cat >conftest.$ac_ext <<_ACEOF
3781/* confdefs.h.  */
3782_ACEOF
3783cat confdefs.h >>conftest.$ac_ext
3784cat >>conftest.$ac_ext <<_ACEOF
3785/* end confdefs.h.  */
3786#include <stdlib.h>
3787
3788_ACEOF
3789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3790  $EGREP "free" >/dev/null 2>&1; then
3791  :
3792else
3793  ac_cv_header_stdc=no
3794fi
3795rm -f conftest*
3796
3797fi
3798
3799if test $ac_cv_header_stdc = yes; then
3800  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3801  if test "$cross_compiling" = yes; then
3802  :
3803else
3804  cat >conftest.$ac_ext <<_ACEOF
3805/* confdefs.h.  */
3806_ACEOF
3807cat confdefs.h >>conftest.$ac_ext
3808cat >>conftest.$ac_ext <<_ACEOF
3809/* end confdefs.h.  */
3810#include <ctype.h>
3811#include <stdlib.h>
3812#if ((' ' & 0x0FF) == 0x020)
3813# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3814# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3815#else
3816# define ISLOWER(c) \
3817		   (('a' <= (c) && (c) <= 'i') \
3818		     || ('j' <= (c) && (c) <= 'r') \
3819		     || ('s' <= (c) && (c) <= 'z'))
3820# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3821#endif
3822
3823#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3824int
3825main ()
3826{
3827  int i;
3828  for (i = 0; i < 256; i++)
3829    if (XOR (islower (i), ISLOWER (i))
3830	|| toupper (i) != TOUPPER (i))
3831      return 2;
3832  return 0;
3833}
3834_ACEOF
3835rm -f conftest$ac_exeext
3836if { (ac_try="$ac_link"
3837case "(($ac_try" in
3838  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839  *) ac_try_echo=$ac_try;;
3840esac
3841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3842$as_echo "$ac_try_echo") >&5
3843  (eval "$ac_link") 2>&5
3844  ac_status=$?
3845  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3847  { (case "(($ac_try" in
3848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849  *) ac_try_echo=$ac_try;;
3850esac
3851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3852$as_echo "$ac_try_echo") >&5
3853  (eval "$ac_try") 2>&5
3854  ac_status=$?
3855  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856  (exit $ac_status); }; }; then
3857  :
3858else
3859  $as_echo "$as_me: program exited with status $ac_status" >&5
3860$as_echo "$as_me: failed program was:" >&5
3861sed 's/^/| /' conftest.$ac_ext >&5
3862
3863( exit $ac_status )
3864ac_cv_header_stdc=no
3865fi
3866rm -rf conftest.dSYM
3867rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3868fi
3869
3870
3871fi
3872fi
3873{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3874$as_echo "$ac_cv_header_stdc" >&6; }
3875if test $ac_cv_header_stdc = yes; then
3876
3877cat >>confdefs.h <<\_ACEOF
3878#define STDC_HEADERS 1
3879_ACEOF
3880
3881fi
3882
3883# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3894		  inttypes.h stdint.h unistd.h
3895do
3896as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3897{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3898$as_echo_n "checking for $ac_header... " >&6; }
3899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3900  $as_echo_n "(cached) " >&6
3901else
3902  cat >conftest.$ac_ext <<_ACEOF
3903/* confdefs.h.  */
3904_ACEOF
3905cat confdefs.h >>conftest.$ac_ext
3906cat >>conftest.$ac_ext <<_ACEOF
3907/* end confdefs.h.  */
3908$ac_includes_default
3909
3910#include <$ac_header>
3911_ACEOF
3912rm -f conftest.$ac_objext
3913if { (ac_try="$ac_compile"
3914case "(($ac_try" in
3915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916  *) ac_try_echo=$ac_try;;
3917esac
3918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3919$as_echo "$ac_try_echo") >&5
3920  (eval "$ac_compile") 2>conftest.er1
3921  ac_status=$?
3922  grep -v '^ *+' conftest.er1 >conftest.err
3923  rm -f conftest.er1
3924  cat conftest.err >&5
3925  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); } && {
3927	 test -z "$ac_c_werror_flag" ||
3928	 test ! -s conftest.err
3929       } && test -s conftest.$ac_objext; then
3930  eval "$as_ac_Header=yes"
3931else
3932  $as_echo "$as_me: failed program was:" >&5
3933sed 's/^/| /' conftest.$ac_ext >&5
3934
3935	eval "$as_ac_Header=no"
3936fi
3937
3938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939fi
3940ac_res=`eval 'as_val=${'$as_ac_Header'}
3941		 $as_echo "$as_val"'`
3942	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3943$as_echo "$ac_res" >&6; }
3944if test `eval 'as_val=${'$as_ac_Header'}
3945		 $as_echo "$as_val"'` = yes; then
3946  cat >>confdefs.h <<_ACEOF
3947#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3948_ACEOF
3949
3950fi
3951
3952done
3953
3954
3955
3956# Check whether --with-dmalloc was given.
3957if test "${with_dmalloc+set}" = set; then
3958  withval=$with_dmalloc;     if test ".$with_dmalloc" = .yes; then
3959        #   via config script in PATH
3960        dmalloc_version=`(dmalloc-config --version) 2>/dev/null`
3961        if test ".$dmalloc_version" != .; then
3962            CPPFLAGS="$CPPFLAGS `dmalloc-config --cflags`"
3963            CFLAGS="$CFLAGS `dmalloc-config --cflags`"
3964            LDFLAGS="$LDFLAGS `dmalloc-config --ldflags`"
3965        fi
3966    else
3967        if test -d "$with_dmalloc"; then
3968            found=0
3969            #   via config script
3970            for dir in $with_dmalloc/bin $with_dmalloc; do
3971                if test -f "$dir/dmalloc-config" && test ! -f "$dir/dmalloc-config.in"; then
3972                    dmalloc_version=`($dir/dmalloc-config --version) 2>/dev/null`
3973                    if test ".$dmalloc_version" != .; then
3974                        CPPFLAGS="$CPPFLAGS `$dir/dmalloc-config --cflags`"
3975                        CFLAGS="$CFLAGS `$dir/dmalloc-config --cflags`"
3976                        LDFLAGS="$LDFLAGS `$dir/dmalloc-config --ldflags`"
3977                        found=1
3978                        break
3979                    fi
3980                fi
3981            done
3982            #   in standard sub-areas
3983            if test ".$found" = .0; then
3984                for dir in $with_dmalloc/include/dmalloc $with_dmalloc/include $with_dmalloc; do
3985                    if test -f "$dir/dmalloc.h"; then
3986                        CPPFLAGS="$CPPFLAGS -I$dir"
3987                        CFLAGS="$CFLAGS -I$dir"
3988                        found=1
3989                        break
3990                    fi
3991                done
3992                for dir in $with_dmalloc/lib/dmalloc $with_dmalloc/lib $with_dmalloc; do
3993                    if test -f "$dir/libdmalloc.la" && test -d "$dir/.libs"; then
3994                        LDFLAGS="$LDFLAGS -L$dir -L$dir/.libs"
3995                        found=1
3996                        break
3997                    elif test -f "$dir/libdmalloc.a" || test -f "$dir/libdmalloc.so"; then
3998                        LDFLAGS="$LDFLAGS -L$dir"
3999                        found=1
4000                        break
4001                    fi
4002                done
4003            fi
4004            #   in any sub-area
4005            if test ".$found" = .0; then
4006                for file in x `find $with_dmalloc -name "dmalloc.h" -type f -print`; do
4007                    test .$file = .x && continue
4008                    dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'`
4009                    CPPFLAGS="$CPPFLAGS -I$dir"
4010                    CFLAGS="$CFLAGS -I$dir"
4011                done
4012                for file in x `find $with_dmalloc -name "libdmalloc.[aso]" -type f -print`; do
4013                    test .$file = .x && continue
4014                    dir=`echo $file | sed -e 's;[^/]*$;;' -e 's;\(.\)/$;\1;'`
4015                    LDFLAGS="$LDFLAGS -L$dir"
4016                done
4017            fi
4018        fi
4019    fi
4020
4021for ac_header in dmalloc.h
4022do
4023as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4024if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4025  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4026$as_echo_n "checking for $ac_header... " >&6; }
4027if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4028  $as_echo_n "(cached) " >&6
4029fi
4030ac_res=`eval 'as_val=${'$as_ac_Header'}
4031		 $as_echo "$as_val"'`
4032	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4033$as_echo "$ac_res" >&6; }
4034else
4035  # Is the header compilable?
4036{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4037$as_echo_n "checking $ac_header usability... " >&6; }
4038cat >conftest.$ac_ext <<_ACEOF
4039/* confdefs.h.  */
4040_ACEOF
4041cat confdefs.h >>conftest.$ac_ext
4042cat >>conftest.$ac_ext <<_ACEOF
4043/* end confdefs.h.  */
4044$ac_includes_default
4045#include <$ac_header>
4046_ACEOF
4047rm -f conftest.$ac_objext
4048if { (ac_try="$ac_compile"
4049case "(($ac_try" in
4050  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051  *) ac_try_echo=$ac_try;;
4052esac
4053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4054$as_echo "$ac_try_echo") >&5
4055  (eval "$ac_compile") 2>conftest.er1
4056  ac_status=$?
4057  grep -v '^ *+' conftest.er1 >conftest.err
4058  rm -f conftest.er1
4059  cat conftest.err >&5
4060  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061  (exit $ac_status); } && {
4062	 test -z "$ac_c_werror_flag" ||
4063	 test ! -s conftest.err
4064       } && test -s conftest.$ac_objext; then
4065  ac_header_compiler=yes
4066else
4067  $as_echo "$as_me: failed program was:" >&5
4068sed 's/^/| /' conftest.$ac_ext >&5
4069
4070	ac_header_compiler=no
4071fi
4072
4073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4075$as_echo "$ac_header_compiler" >&6; }
4076
4077# Is the header present?
4078{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4079$as_echo_n "checking $ac_header presence... " >&6; }
4080cat >conftest.$ac_ext <<_ACEOF
4081/* confdefs.h.  */
4082_ACEOF
4083cat confdefs.h >>conftest.$ac_ext
4084cat >>conftest.$ac_ext <<_ACEOF
4085/* end confdefs.h.  */
4086#include <$ac_header>
4087_ACEOF
4088if { (ac_try="$ac_cpp conftest.$ac_ext"
4089case "(($ac_try" in
4090  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4091  *) ac_try_echo=$ac_try;;
4092esac
4093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4094$as_echo "$ac_try_echo") >&5
4095  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4096  ac_status=$?
4097  grep -v '^ *+' conftest.er1 >conftest.err
4098  rm -f conftest.er1
4099  cat conftest.err >&5
4100  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101  (exit $ac_status); } >/dev/null && {
4102	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4103	 test ! -s conftest.err
4104       }; then
4105  ac_header_preproc=yes
4106else
4107  $as_echo "$as_me: failed program was:" >&5
4108sed 's/^/| /' conftest.$ac_ext >&5
4109
4110  ac_header_preproc=no
4111fi
4112
4113rm -f conftest.err conftest.$ac_ext
4114{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4115$as_echo "$ac_header_preproc" >&6; }
4116
4117# So?  What about this header?
4118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4119  yes:no: )
4120    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4121$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4122    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4123$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4124    ac_header_preproc=yes
4125    ;;
4126  no:yes:* )
4127    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4128$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4129    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4130$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4131    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4132$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4133    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4134$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4135    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4136$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4137    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4138$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4139
4140    ;;
4141esac
4142{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4143$as_echo_n "checking for $ac_header... " >&6; }
4144if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4145  $as_echo_n "(cached) " >&6
4146else
4147  eval "$as_ac_Header=\$ac_header_preproc"
4148fi
4149ac_res=`eval 'as_val=${'$as_ac_Header'}
4150		 $as_echo "$as_val"'`
4151	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4152$as_echo "$ac_res" >&6; }
4153
4154fi
4155if test `eval 'as_val=${'$as_ac_Header'}
4156		 $as_echo "$as_val"'` = yes; then
4157  cat >>confdefs.h <<_ACEOF
4158#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4159_ACEOF
4160
4161fi
4162
4163done
4164
4165
4166{ $as_echo "$as_me:$LINENO: checking for dmalloc_debug in -ldmalloc" >&5
4167$as_echo_n "checking for dmalloc_debug in -ldmalloc... " >&6; }
4168if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
4169  $as_echo_n "(cached) " >&6
4170else
4171  ac_check_lib_save_LIBS=$LIBS
4172LIBS="-ldmalloc  $LIBS"
4173cat >conftest.$ac_ext <<_ACEOF
4174/* confdefs.h.  */
4175_ACEOF
4176cat confdefs.h >>conftest.$ac_ext
4177cat >>conftest.$ac_ext <<_ACEOF
4178/* end confdefs.h.  */
4179
4180/* Override any GCC internal prototype to avoid an error.
4181   Use char because int might match the return type of a GCC
4182   builtin and then its argument prototype would still apply.  */
4183#ifdef __cplusplus
4184extern "C"
4185#endif
4186char dmalloc_debug ();
4187int
4188main ()
4189{
4190return dmalloc_debug ();
4191  ;
4192  return 0;
4193}
4194_ACEOF
4195rm -f conftest.$ac_objext conftest$ac_exeext
4196if { (ac_try="$ac_link"
4197case "(($ac_try" in
4198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199  *) ac_try_echo=$ac_try;;
4200esac
4201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4202$as_echo "$ac_try_echo") >&5
4203  (eval "$ac_link") 2>conftest.er1
4204  ac_status=$?
4205  grep -v '^ *+' conftest.er1 >conftest.err
4206  rm -f conftest.er1
4207  cat conftest.err >&5
4208  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4209  (exit $ac_status); } && {
4210	 test -z "$ac_c_werror_flag" ||
4211	 test ! -s conftest.err
4212       } && test -s conftest$ac_exeext && {
4213	 test "$cross_compiling" = yes ||
4214	 $as_test_x conftest$ac_exeext
4215       }; then
4216  ac_cv_lib_dmalloc_dmalloc_debug=yes
4217else
4218  $as_echo "$as_me: failed program was:" >&5
4219sed 's/^/| /' conftest.$ac_ext >&5
4220
4221	ac_cv_lib_dmalloc_dmalloc_debug=no
4222fi
4223
4224rm -rf conftest.dSYM
4225rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4226      conftest$ac_exeext conftest.$ac_ext
4227LIBS=$ac_check_lib_save_LIBS
4228fi
4229{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
4230$as_echo "$ac_cv_lib_dmalloc_dmalloc_debug" >&6; }
4231if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
4232  cat >>confdefs.h <<_ACEOF
4233#define HAVE_LIBDMALLOC 1
4234_ACEOF
4235
4236  LIBS="-ldmalloc $LIBS"
4237
4238fi
4239
4240    with_dmalloc=yes
4241    ac_var="ac_cv_header_`echo dmalloc.h | sed 'y%./+-%__p_%'`"
4242    eval "ac_val=\$$ac_var"
4243    if test ".$ac_val" != .yes; then
4244        with_dmalloc=no
4245    fi
4246    if test ".$ac_cv_lib_dmalloc_dmalloc_debug" != .yes; then
4247        with_dmalloc=no
4248    fi
4249    if test ".$with_dmalloc" = .no; then
4250        { { $as_echo "$as_me:$LINENO: error: Unable to find Dmalloc library" >&5
4251$as_echo "$as_me: error: Unable to find Dmalloc library" >&2;}
4252   { (exit 1); exit 1; }; }
4253    fi
4254
4255else
4256  if test ".$with_dmalloc" = .; then
4257    with_dmalloc=no
4258fi
4259
4260fi
4261{ $as_echo "$as_me:$LINENO: checking whether to build against external Dmalloc library" >&5
4262$as_echo_n "checking whether to build against external Dmalloc library... " >&6; }
4263if test ".$with_dmalloc" = .yes; then
4264
4265cat >>confdefs.h <<\_ACEOF
4266#define WITH_DMALLOC 1
4267_ACEOF
4268
4269else
4270    :
4271fi
4272{ $as_echo "$as_me:$LINENO: result: $with_dmalloc" >&5
4273$as_echo "$with_dmalloc" >&6; }
4274
4275if test ".$with_dmalloc" = .yes; then
4276    CFLAGS=`echo "X$CFLAGS" | sed -e 's;^X;;' -e 's; -Wredundant-decls;;'`
4277fi
4278
4279
4280with_tags=""
4281# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
4282#
4283#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
4284#                 2006, 2007, 2008 Free Software Foundation, Inc.
4285#   Written by Gordon Matzigkeit, 1996
4286#
4287# This file is free software; the Free Software Foundation gives
4288# unlimited permission to copy and/or distribute it, with or without
4289# modifications, as long as this notice is preserved.
4290
4291
4292
4293# serial 56 LT_INIT
4294
4295
4296# LT_PREREQ(VERSION)
4297# ------------------
4298# Complain and exit if this libtool version is less that VERSION.
4299
4300
4301
4302# _LT_CHECK_BUILDDIR
4303# ------------------
4304# Complain if the absolute build directory name contains unusual characters
4305
4306
4307
4308# LT_INIT([OPTIONS])
4309# ------------------
4310# LT_INIT
4311
4312# Old names:
4313# This is what autoupdate's m4 run will expand.  It fires
4314# the warning (with _au_warn_XXX), outputs it into the
4315# updated configure.ac (with AC_DIAGNOSE), and then outputs
4316# the replacement expansion.
4317
4318
4319# This is an auxiliary macro that is also run when
4320# autoupdate runs m4.  It simply calls m4_warning, but
4321# we need a wrapper so that each warning is emitted only
4322# once.  We break the quoting in m4_warning's argument in
4323# order to expand this macro's arguments, not AU_DEFUN's.
4324
4325
4326# Finally, this is the expansion that is picked up by
4327# autoconf.  It tells the user to run autoupdate, and
4328# then outputs the replacement expansion.  We do not care
4329# about autoupdate's warning because that contains
4330# information on what to do *after* running autoupdate.
4331
4332# This is what autoupdate's m4 run will expand.  It fires
4333# the warning (with _au_warn_XXX), outputs it into the
4334# updated configure.ac (with AC_DIAGNOSE), and then outputs
4335# the replacement expansion.
4336
4337
4338# This is an auxiliary macro that is also run when
4339# autoupdate runs m4.  It simply calls m4_warning, but
4340# we need a wrapper so that each warning is emitted only
4341# once.  We break the quoting in m4_warning's argument in
4342# order to expand this macro's arguments, not AU_DEFUN's.
4343
4344
4345# Finally, this is the expansion that is picked up by
4346# autoconf.  It tells the user to run autoupdate, and
4347# then outputs the replacement expansion.  We do not care
4348# about autoupdate's warning because that contains
4349# information on what to do *after* running autoupdate.
4350
4351
4352
4353# _LT_CC_BASENAME(CC)
4354# -------------------
4355# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
4356
4357
4358
4359# _LT_FILEUTILS_DEFAULTS
4360# ----------------------
4361# It is okay to use these file commands and assume they have been set
4362# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
4363# _LT_FILEUTILS_DEFAULTS
4364
4365
4366# _LT_SETUP
4367# ---------
4368# _LT_SETUP
4369
4370
4371# _LT_PROG_LTMAIN
4372# ---------------
4373# Note that this code is called both from `configure', and `config.status'
4374# now that we use AC_CONFIG_COMMANDS to generate libtool.  Notably,
4375# `config.status' has no value for ac_aux_dir unless we are using Automake,
4376# so we pass a copy along to make sure it has a sensible value anyway.
4377# _LT_PROG_LTMAIN
4378
4379
4380## ------------------------------------- ##
4381## Accumulate code for creating libtool. ##
4382## ------------------------------------- ##
4383
4384# So that we can recreate a full libtool script including additional
4385# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
4386# in macros and then make a single call at the end using the `libtool'
4387# label.
4388
4389
4390# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
4391# ----------------------------------------
4392# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
4393
4394
4395# Initialize.
4396
4397
4398
4399# _LT_CONFIG_LIBTOOL([COMMANDS])
4400# ------------------------------
4401# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
4402
4403
4404# Initialize.
4405
4406
4407
4408# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
4409# -----------------------------------------------------
4410
4411
4412
4413# _LT_FORMAT_COMMENT([COMMENT])
4414# -----------------------------
4415# Add leading comment marks to the start of each line, and a trailing
4416# full-stop to the whole comment if one is not present already.
4417
4418
4419
4420
4421## ------------------------ ##
4422## FIXME: Eliminate VARNAME ##
4423## ------------------------ ##
4424
4425
4426# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
4427# -------------------------------------------------------------------
4428# CONFIGNAME is the name given to the value in the libtool script.
4429# VARNAME is the (base) name used in the configure script.
4430# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
4431# VARNAME.  Any other value will be used directly.
4432
4433
4434
4435# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
4436# --------------------------------------------------------
4437
4438
4439
4440# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
4441# ------------------------------------------------
4442
4443
4444
4445# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
4446# ---------------------------------------------------------
4447
4448
4449
4450# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
4451# --------------------------------------------------
4452
4453
4454
4455# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
4456# ---------------------------------------------------
4457
4458
4459
4460# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
4461# ---------------------------------------------------
4462
4463
4464
4465
4466# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
4467# ------------------------------------------------
4468
4469
4470
4471
4472# _LT_CONFIG_STATUS_DECLARE([VARNAME])
4473# ------------------------------------
4474# Quote a variable value, and forward it to `config.status' so that its
4475# declaration there will have the same value as in `configure'.  VARNAME
4476# must have a single quote delimited value for this to work.
4477
4478
4479
4480# _LT_CONFIG_STATUS_DECLARATIONS
4481# ------------------------------
4482# We delimit libtool config variables with single quotes, so when
4483# we write them to config.status, we have to be sure to quote all
4484# embedded single quotes properly.  In configure, this macro expands
4485# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
4486#
4487#    <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
4488
4489
4490
4491# _LT_LIBTOOL_TAGS
4492# ----------------
4493# Output comment and list of tags supported by the script
4494
4495
4496
4497# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
4498# -----------------------------------
4499# Extract the dictionary values for VARNAME (optionally with TAG) and
4500# expand to a commented shell variable setting:
4501#
4502#    # Some comment about what VAR is for.
4503#    visible_name=$lt_internal_name
4504
4505
4506
4507# _LT_LIBTOOL_CONFIG_VARS
4508# -----------------------
4509# Produce commented declarations of non-tagged libtool config variables
4510# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
4511# script.  Tagged libtool config variables (even for the LIBTOOL CONFIG
4512# section) are produced by _LT_LIBTOOL_TAG_VARS.
4513
4514
4515
4516# _LT_LIBTOOL_TAG_VARS(TAG)
4517# -------------------------
4518
4519
4520
4521# _LT_TAGVAR(VARNAME, [TAGNAME])
4522# ------------------------------
4523
4524
4525
4526# _LT_CONFIG_COMMANDS
4527# -------------------
4528# Send accumulated output to $CONFIG_STATUS.  Thanks to the lists of
4529# variables for single and double quote escaping we saved from calls
4530# to _LT_DECL, we can put quote escaped variables declarations
4531# into `config.status', and then the shell code to quote escape them in
4532# for loops in `config.status'.  Finally, any additional code accumulated
4533# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
4534#_LT_CONFIG_COMMANDS
4535
4536
4537# Initialize.
4538
4539
4540
4541# LT_OUTPUT
4542# ---------
4543# This macro allows early generation of the libtool script (before
4544# AC_OUTPUT is called), incase it is used in configure for compilation
4545# tests.
4546# LT_OUTPUT
4547
4548
4549# _LT_CONFIG(TAG)
4550# ---------------
4551# If TAG is the built-in tag, create an initial libtool script with a
4552# default configuration from the untagged config vars.  Otherwise add code
4553# to config.status for appending the configuration named by TAG from the
4554# matching tagged config vars.
4555# _LT_CONFIG
4556
4557
4558# LT_SUPPORTED_TAG(TAG)
4559# ---------------------
4560# Trace this macro to discover what tags are supported by the libtool
4561# --tag option, using:
4562#    autoconf --trace 'LT_SUPPORTED_TAG:$1'
4563
4564
4565
4566# C support is built-in for now
4567
4568
4569
4570
4571# LT_LANG(LANG)
4572# -------------
4573# Enable libtool support for the given language if not already enabled.
4574# LT_LANG
4575
4576
4577# _LT_LANG(LANGNAME)
4578# ------------------
4579# _LT_LANG
4580
4581
4582# _LT_LANG_DEFAULT_CONFIG
4583# -----------------------
4584# _LT_LANG_DEFAULT_CONFIG
4585
4586# Obsolete macros:
4587# This is what autoupdate's m4 run will expand.  It fires
4588# the warning (with _au_warn_XXX), outputs it into the
4589# updated configure.ac (with AC_DIAGNOSE), and then outputs
4590# the replacement expansion.
4591
4592
4593# This is an auxiliary macro that is also run when
4594# autoupdate runs m4.  It simply calls m4_warning, but
4595# we need a wrapper so that each warning is emitted only
4596# once.  We break the quoting in m4_warning's argument in
4597# order to expand this macro's arguments, not AU_DEFUN's.
4598
4599
4600# Finally, this is the expansion that is picked up by
4601# autoconf.  It tells the user to run autoupdate, and
4602# then outputs the replacement expansion.  We do not care
4603# about autoupdate's warning because that contains
4604# information on what to do *after* running autoupdate.
4605
4606# This is what autoupdate's m4 run will expand.  It fires
4607# the warning (with _au_warn_XXX), outputs it into the
4608# updated configure.ac (with AC_DIAGNOSE), and then outputs
4609# the replacement expansion.
4610
4611
4612# This is an auxiliary macro that is also run when
4613# autoupdate runs m4.  It simply calls m4_warning, but
4614# we need a wrapper so that each warning is emitted only
4615# once.  We break the quoting in m4_warning's argument in
4616# order to expand this macro's arguments, not AU_DEFUN's.
4617
4618
4619# Finally, this is the expansion that is picked up by
4620# autoconf.  It tells the user to run autoupdate, and
4621# then outputs the replacement expansion.  We do not care
4622# about autoupdate's warning because that contains
4623# information on what to do *after* running autoupdate.
4624
4625# This is what autoupdate's m4 run will expand.  It fires
4626# the warning (with _au_warn_XXX), outputs it into the
4627# updated configure.ac (with AC_DIAGNOSE), and then outputs
4628# the replacement expansion.
4629
4630
4631# This is an auxiliary macro that is also run when
4632# autoupdate runs m4.  It simply calls m4_warning, but
4633# we need a wrapper so that each warning is emitted only
4634# once.  We break the quoting in m4_warning's argument in
4635# order to expand this macro's arguments, not AU_DEFUN's.
4636
4637
4638# Finally, this is the expansion that is picked up by
4639# autoconf.  It tells the user to run autoupdate, and
4640# then outputs the replacement expansion.  We do not care
4641# about autoupdate's warning because that contains
4642# information on what to do *after* running autoupdate.
4643
4644# This is what autoupdate's m4 run will expand.  It fires
4645# the warning (with _au_warn_XXX), outputs it into the
4646# updated configure.ac (with AC_DIAGNOSE), and then outputs
4647# the replacement expansion.
4648
4649
4650# This is an auxiliary macro that is also run when
4651# autoupdate runs m4.  It simply calls m4_warning, but
4652# we need a wrapper so that each warning is emitted only
4653# once.  We break the quoting in m4_warning's argument in
4654# order to expand this macro's arguments, not AU_DEFUN's.
4655
4656
4657# Finally, this is the expansion that is picked up by
4658# autoconf.  It tells the user to run autoupdate, and
4659# then outputs the replacement expansion.  We do not care
4660# about autoupdate's warning because that contains
4661# information on what to do *after* running autoupdate.
4662
4663
4664
4665# _LT_TAG_COMPILER
4666# ----------------
4667# _LT_TAG_COMPILER
4668
4669
4670# _LT_COMPILER_BOILERPLATE
4671# ------------------------
4672# Check for compiler boilerplate output or warnings with
4673# the simple compiler test code.
4674# _LT_COMPILER_BOILERPLATE
4675
4676
4677# _LT_LINKER_BOILERPLATE
4678# ----------------------
4679# Check for linker boilerplate output or warnings with
4680# the simple link test code.
4681# _LT_LINKER_BOILERPLATE
4682
4683# _LT_REQUIRED_DARWIN_CHECKS
4684# -------------------------
4685
4686
4687
4688# _LT_DARWIN_LINKER_FEATURES
4689# --------------------------
4690# Checks for linker and compiler features on darwin
4691
4692
4693# _LT_SYS_MODULE_PATH_AIX
4694# -----------------------
4695# Links a minimal program and checks the executable
4696# for the system default hardcoded library path. In most cases,
4697# this is /usr/lib:/lib, but when the MPI compilers are used
4698# the location of the communication and MPI libs are included too.
4699# If we don't find anything, use the default library path according
4700# to the aix ld manual.
4701# _LT_SYS_MODULE_PATH_AIX
4702
4703
4704# _LT_SHELL_INIT(ARG)
4705# -------------------
4706# _LT_SHELL_INIT
4707
4708
4709# _LT_PROG_ECHO_BACKSLASH
4710# -----------------------
4711# Add some code to the start of the generated configure script which
4712# will find an echo command which doesn't interpret backslashes.
4713# _LT_PROG_ECHO_BACKSLASH
4714
4715
4716# _LT_ENABLE_LOCK
4717# ---------------
4718# _LT_ENABLE_LOCK
4719
4720
4721# _LT_CMD_OLD_ARCHIVE
4722# -------------------
4723# _LT_CMD_OLD_ARCHIVE
4724
4725
4726# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
4727#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
4728# ----------------------------------------------------------------
4729# Check whether the given compiler option works
4730# _LT_COMPILER_OPTION
4731
4732# Old name:
4733# This is what autoupdate's m4 run will expand.  It fires
4734# the warning (with _au_warn_XXX), outputs it into the
4735# updated configure.ac (with AC_DIAGNOSE), and then outputs
4736# the replacement expansion.
4737
4738
4739# This is an auxiliary macro that is also run when
4740# autoupdate runs m4.  It simply calls m4_warning, but
4741# we need a wrapper so that each warning is emitted only
4742# once.  We break the quoting in m4_warning's argument in
4743# order to expand this macro's arguments, not AU_DEFUN's.
4744
4745
4746# Finally, this is the expansion that is picked up by
4747# autoconf.  It tells the user to run autoupdate, and
4748# then outputs the replacement expansion.  We do not care
4749# about autoupdate's warning because that contains
4750# information on what to do *after* running autoupdate.
4751
4752
4753
4754# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
4755#                  [ACTION-SUCCESS], [ACTION-FAILURE])
4756# ----------------------------------------------------
4757# Check whether the given linker option works
4758# _LT_LINKER_OPTION
4759
4760# Old name:
4761# This is what autoupdate's m4 run will expand.  It fires
4762# the warning (with _au_warn_XXX), outputs it into the
4763# updated configure.ac (with AC_DIAGNOSE), and then outputs
4764# the replacement expansion.
4765
4766
4767# This is an auxiliary macro that is also run when
4768# autoupdate runs m4.  It simply calls m4_warning, but
4769# we need a wrapper so that each warning is emitted only
4770# once.  We break the quoting in m4_warning's argument in
4771# order to expand this macro's arguments, not AU_DEFUN's.
4772
4773
4774# Finally, this is the expansion that is picked up by
4775# autoconf.  It tells the user to run autoupdate, and
4776# then outputs the replacement expansion.  We do not care
4777# about autoupdate's warning because that contains
4778# information on what to do *after* running autoupdate.
4779
4780
4781
4782# LT_CMD_MAX_LEN
4783#---------------
4784# LT_CMD_MAX_LEN
4785
4786# Old name:
4787# This is what autoupdate's m4 run will expand.  It fires
4788# the warning (with _au_warn_XXX), outputs it into the
4789# updated configure.ac (with AC_DIAGNOSE), and then outputs
4790# the replacement expansion.
4791
4792
4793# This is an auxiliary macro that is also run when
4794# autoupdate runs m4.  It simply calls m4_warning, but
4795# we need a wrapper so that each warning is emitted only
4796# once.  We break the quoting in m4_warning's argument in
4797# order to expand this macro's arguments, not AU_DEFUN's.
4798
4799
4800# Finally, this is the expansion that is picked up by
4801# autoconf.  It tells the user to run autoupdate, and
4802# then outputs the replacement expansion.  We do not care
4803# about autoupdate's warning because that contains
4804# information on what to do *after* running autoupdate.
4805
4806
4807
4808# _LT_HEADER_DLFCN
4809# ----------------
4810# _LT_HEADER_DLFCN
4811
4812
4813# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
4814#                      ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
4815# ----------------------------------------------------------------
4816# _LT_TRY_DLOPEN_SELF
4817
4818
4819# LT_SYS_DLOPEN_SELF
4820# ------------------
4821# LT_SYS_DLOPEN_SELF
4822
4823# Old name:
4824# This is what autoupdate's m4 run will expand.  It fires
4825# the warning (with _au_warn_XXX), outputs it into the
4826# updated configure.ac (with AC_DIAGNOSE), and then outputs
4827# the replacement expansion.
4828
4829
4830# This is an auxiliary macro that is also run when
4831# autoupdate runs m4.  It simply calls m4_warning, but
4832# we need a wrapper so that each warning is emitted only
4833# once.  We break the quoting in m4_warning's argument in
4834# order to expand this macro's arguments, not AU_DEFUN's.
4835
4836
4837# Finally, this is the expansion that is picked up by
4838# autoconf.  It tells the user to run autoupdate, and
4839# then outputs the replacement expansion.  We do not care
4840# about autoupdate's warning because that contains
4841# information on what to do *after* running autoupdate.
4842
4843
4844
4845# _LT_COMPILER_C_O([TAGNAME])
4846# ---------------------------
4847# Check to see if options -c and -o are simultaneously supported by compiler.
4848# This macro does not hard code the compiler like AC_PROG_CC_C_O.
4849# _LT_COMPILER_C_O
4850
4851
4852# _LT_COMPILER_FILE_LOCKS([TAGNAME])
4853# ----------------------------------
4854# Check to see if we can do hard links to lock some files if needed
4855# _LT_COMPILER_FILE_LOCKS
4856
4857
4858# _LT_CHECK_OBJDIR
4859# ----------------
4860# _LT_CHECK_OBJDIR
4861
4862
4863# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
4864# --------------------------------------
4865# Check hardcoding attributes.
4866# _LT_LINKER_HARDCODE_LIBPATH
4867
4868
4869# _LT_CMD_STRIPLIB
4870# ----------------
4871# _LT_CMD_STRIPLIB
4872
4873
4874# _LT_SYS_DYNAMIC_LINKER([TAG])
4875# -----------------------------
4876# PORTME Fill in your ld.so characteristics
4877# _LT_SYS_DYNAMIC_LINKER
4878
4879
4880# _LT_PATH_TOOL_PREFIX(TOOL)
4881# --------------------------
4882# find a file program which can recognize shared library
4883# _LT_PATH_TOOL_PREFIX
4884
4885# Old name:
4886# This is what autoupdate's m4 run will expand.  It fires
4887# the warning (with _au_warn_XXX), outputs it into the
4888# updated configure.ac (with AC_DIAGNOSE), and then outputs
4889# the replacement expansion.
4890
4891
4892# This is an auxiliary macro that is also run when
4893# autoupdate runs m4.  It simply calls m4_warning, but
4894# we need a wrapper so that each warning is emitted only
4895# once.  We break the quoting in m4_warning's argument in
4896# order to expand this macro's arguments, not AU_DEFUN's.
4897
4898
4899# Finally, this is the expansion that is picked up by
4900# autoconf.  It tells the user to run autoupdate, and
4901# then outputs the replacement expansion.  We do not care
4902# about autoupdate's warning because that contains
4903# information on what to do *after* running autoupdate.
4904
4905
4906
4907# _LT_PATH_MAGIC
4908# --------------
4909# find a file program which can recognize a shared library
4910# _LT_PATH_MAGIC
4911
4912
4913# LT_PATH_LD
4914# ----------
4915# find the pathname to the GNU or non-GNU linker
4916# LT_PATH_LD
4917
4918# Old names:
4919# This is what autoupdate's m4 run will expand.  It fires
4920# the warning (with _au_warn_XXX), outputs it into the
4921# updated configure.ac (with AC_DIAGNOSE), and then outputs
4922# the replacement expansion.
4923
4924
4925# This is an auxiliary macro that is also run when
4926# autoupdate runs m4.  It simply calls m4_warning, but
4927# we need a wrapper so that each warning is emitted only
4928# once.  We break the quoting in m4_warning's argument in
4929# order to expand this macro's arguments, not AU_DEFUN's.
4930
4931
4932# Finally, this is the expansion that is picked up by
4933# autoconf.  It tells the user to run autoupdate, and
4934# then outputs the replacement expansion.  We do not care
4935# about autoupdate's warning because that contains
4936# information on what to do *after* running autoupdate.
4937
4938# This is what autoupdate's m4 run will expand.  It fires
4939# the warning (with _au_warn_XXX), outputs it into the
4940# updated configure.ac (with AC_DIAGNOSE), and then outputs
4941# the replacement expansion.
4942
4943
4944# This is an auxiliary macro that is also run when
4945# autoupdate runs m4.  It simply calls m4_warning, but
4946# we need a wrapper so that each warning is emitted only
4947# once.  We break the quoting in m4_warning's argument in
4948# order to expand this macro's arguments, not AU_DEFUN's.
4949
4950
4951# Finally, this is the expansion that is picked up by
4952# autoconf.  It tells the user to run autoupdate, and
4953# then outputs the replacement expansion.  We do not care
4954# about autoupdate's warning because that contains
4955# information on what to do *after* running autoupdate.
4956
4957
4958
4959# _LT_PATH_LD_GNU
4960#- --------------
4961# _LT_PATH_LD_GNU
4962
4963
4964# _LT_CMD_RELOAD
4965# --------------
4966# find reload flag for linker
4967#   -- PORTME Some linkers may need a different reload flag.
4968# _LT_CMD_RELOAD
4969
4970
4971# _LT_CHECK_MAGIC_METHOD
4972# ----------------------
4973# how to check for library dependencies
4974#  -- PORTME fill in with the dynamic library characteristics
4975# _LT_CHECK_MAGIC_METHOD
4976
4977
4978# LT_PATH_NM
4979# ----------
4980# find the pathname to a BSD- or MS-compatible name lister
4981# LT_PATH_NM
4982
4983# Old names:
4984# This is what autoupdate's m4 run will expand.  It fires
4985# the warning (with _au_warn_XXX), outputs it into the
4986# updated configure.ac (with AC_DIAGNOSE), and then outputs
4987# the replacement expansion.
4988
4989
4990# This is an auxiliary macro that is also run when
4991# autoupdate runs m4.  It simply calls m4_warning, but
4992# we need a wrapper so that each warning is emitted only
4993# once.  We break the quoting in m4_warning's argument in
4994# order to expand this macro's arguments, not AU_DEFUN's.
4995
4996
4997# Finally, this is the expansion that is picked up by
4998# autoconf.  It tells the user to run autoupdate, and
4999# then outputs the replacement expansion.  We do not care
5000# about autoupdate's warning because that contains
5001# information on what to do *after* running autoupdate.
5002
5003# This is what autoupdate's m4 run will expand.  It fires
5004# the warning (with _au_warn_XXX), outputs it into the
5005# updated configure.ac (with AC_DIAGNOSE), and then outputs
5006# the replacement expansion.
5007
5008
5009# This is an auxiliary macro that is also run when
5010# autoupdate runs m4.  It simply calls m4_warning, but
5011# we need a wrapper so that each warning is emitted only
5012# once.  We break the quoting in m4_warning's argument in
5013# order to expand this macro's arguments, not AU_DEFUN's.
5014
5015
5016# Finally, this is the expansion that is picked up by
5017# autoconf.  It tells the user to run autoupdate, and
5018# then outputs the replacement expansion.  We do not care
5019# about autoupdate's warning because that contains
5020# information on what to do *after* running autoupdate.
5021
5022
5023
5024# LT_LIB_M
5025# --------
5026# check for math library
5027# LT_LIB_M
5028
5029# Old name:
5030# This is what autoupdate's m4 run will expand.  It fires
5031# the warning (with _au_warn_XXX), outputs it into the
5032# updated configure.ac (with AC_DIAGNOSE), and then outputs
5033# the replacement expansion.
5034
5035
5036# This is an auxiliary macro that is also run when
5037# autoupdate runs m4.  It simply calls m4_warning, but
5038# we need a wrapper so that each warning is emitted only
5039# once.  We break the quoting in m4_warning's argument in
5040# order to expand this macro's arguments, not AU_DEFUN's.
5041
5042
5043# Finally, this is the expansion that is picked up by
5044# autoconf.  It tells the user to run autoupdate, and
5045# then outputs the replacement expansion.  We do not care
5046# about autoupdate's warning because that contains
5047# information on what to do *after* running autoupdate.
5048
5049
5050
5051# _LT_COMPILER_NO_RTTI([TAGNAME])
5052# -------------------------------
5053# _LT_COMPILER_NO_RTTI
5054
5055
5056# _LT_CMD_GLOBAL_SYMBOLS
5057# ----------------------
5058 # _LT_CMD_GLOBAL_SYMBOLS
5059
5060
5061# _LT_COMPILER_PIC([TAGNAME])
5062# ---------------------------
5063# _LT_COMPILER_PIC
5064
5065
5066# _LT_LINKER_SHLIBS([TAGNAME])
5067# ----------------------------
5068# See if the linker supports building shared libraries.
5069# _LT_LINKER_SHLIBS
5070
5071
5072# _LT_LANG_C_CONFIG([TAG])
5073# ------------------------
5074# Ensure that the configuration variables for a C compiler are suitably
5075# defined.  These variables are subsequently used by _LT_CONFIG to write
5076# the compiler configuration to `libtool'.
5077# _LT_LANG_C_CONFIG
5078
5079
5080# _LT_PROG_CXX
5081# ------------
5082# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5083# compiler, we have our own version here.
5084# _LT_PROG_CXX
5085
5086
5087
5088# _LT_LANG_CXX_CONFIG([TAG])
5089# --------------------------
5090# Ensure that the configuration variables for a C++ compiler are suitably
5091# defined.  These variables are subsequently used by _LT_CONFIG to write
5092# the compiler configuration to `libtool'.
5093# _LT_LANG_CXX_CONFIG
5094
5095
5096# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
5097# ---------------------------------
5098# Figure out "hidden" library dependencies from verbose
5099# compiler output when linking a shared library.
5100# Parse the compiler output and extract the necessary
5101# objects, libraries and library flags.
5102# _LT_SYS_HIDDEN_LIBDEPS
5103
5104
5105# _LT_PROG_F77
5106# ------------
5107# Since AC_PROG_F77 is broken, in that it returns the empty string
5108# if there is no fortran compiler, we have our own version here.
5109# _LT_PROG_F77
5110
5111
5112
5113# _LT_LANG_F77_CONFIG([TAG])
5114# --------------------------
5115# Ensure that the configuration variables for a Fortran 77 compiler are
5116# suitably defined.  These variables are subsequently used by _LT_CONFIG
5117# to write the compiler configuration to `libtool'.
5118# _LT_LANG_F77_CONFIG
5119
5120
5121# _LT_PROG_FC
5122# -----------
5123# Since AC_PROG_FC is broken, in that it returns the empty string
5124# if there is no fortran compiler, we have our own version here.
5125# _LT_PROG_FC
5126
5127
5128
5129# _LT_LANG_FC_CONFIG([TAG])
5130# -------------------------
5131# Ensure that the configuration variables for a Fortran compiler are
5132# suitably defined.  These variables are subsequently used by _LT_CONFIG
5133# to write the compiler configuration to `libtool'.
5134# _LT_LANG_FC_CONFIG
5135
5136
5137# _LT_LANG_GCJ_CONFIG([TAG])
5138# --------------------------
5139# Ensure that the configuration variables for the GNU Java Compiler compiler
5140# are suitably defined.  These variables are subsequently used by _LT_CONFIG
5141# to write the compiler configuration to `libtool'.
5142# _LT_LANG_GCJ_CONFIG
5143
5144
5145# _LT_LANG_RC_CONFIG([TAG])
5146# -------------------------
5147# Ensure that the configuration variables for the Windows resource compiler
5148# are suitably defined.  These variables are subsequently used by _LT_CONFIG
5149# to write the compiler configuration to `libtool'.
5150# _LT_LANG_RC_CONFIG
5151
5152
5153# LT_PROG_GCJ
5154# -----------
5155
5156
5157# Old name:
5158# This is what autoupdate's m4 run will expand.  It fires
5159# the warning (with _au_warn_XXX), outputs it into the
5160# updated configure.ac (with AC_DIAGNOSE), and then outputs
5161# the replacement expansion.
5162
5163
5164# This is an auxiliary macro that is also run when
5165# autoupdate runs m4.  It simply calls m4_warning, but
5166# we need a wrapper so that each warning is emitted only
5167# once.  We break the quoting in m4_warning's argument in
5168# order to expand this macro's arguments, not AU_DEFUN's.
5169
5170
5171# Finally, this is the expansion that is picked up by
5172# autoconf.  It tells the user to run autoupdate, and
5173# then outputs the replacement expansion.  We do not care
5174# about autoupdate's warning because that contains
5175# information on what to do *after* running autoupdate.
5176
5177
5178
5179# LT_PROG_RC
5180# ----------
5181
5182
5183# Old name:
5184# This is what autoupdate's m4 run will expand.  It fires
5185# the warning (with _au_warn_XXX), outputs it into the
5186# updated configure.ac (with AC_DIAGNOSE), and then outputs
5187# the replacement expansion.
5188
5189
5190# This is an auxiliary macro that is also run when
5191# autoupdate runs m4.  It simply calls m4_warning, but
5192# we need a wrapper so that each warning is emitted only
5193# once.  We break the quoting in m4_warning's argument in
5194# order to expand this macro's arguments, not AU_DEFUN's.
5195
5196
5197# Finally, this is the expansion that is picked up by
5198# autoconf.  It tells the user to run autoupdate, and
5199# then outputs the replacement expansion.  We do not care
5200# about autoupdate's warning because that contains
5201# information on what to do *after* running autoupdate.
5202
5203
5204
5205# _LT_DECL_EGREP
5206# --------------
5207# If we don't have a new enough Autoconf to choose the best grep
5208# available, choose the one first in the user's PATH.
5209
5210
5211
5212# _LT_DECL_SED
5213# ------------
5214# Check for a fully-functional sed program, that truncates
5215# as few characters as possible.  Prefer GNU sed if found.
5216# _LT_DECL_SED
5217
5218#m4_ifndef
5219
5220# Old name:
5221# This is what autoupdate's m4 run will expand.  It fires
5222# the warning (with _au_warn_XXX), outputs it into the
5223# updated configure.ac (with AC_DIAGNOSE), and then outputs
5224# the replacement expansion.
5225
5226
5227# This is an auxiliary macro that is also run when
5228# autoupdate runs m4.  It simply calls m4_warning, but
5229# we need a wrapper so that each warning is emitted only
5230# once.  We break the quoting in m4_warning's argument in
5231# order to expand this macro's arguments, not AU_DEFUN's.
5232
5233
5234# Finally, this is the expansion that is picked up by
5235# autoconf.  It tells the user to run autoupdate, and
5236# then outputs the replacement expansion.  We do not care
5237# about autoupdate's warning because that contains
5238# information on what to do *after* running autoupdate.
5239
5240
5241
5242# _LT_CHECK_SHELL_FEATURES
5243# ------------------------
5244# Find out whether the shell is Bourne or XSI compatible,
5245# or has some other useful features.
5246# _LT_CHECK_SHELL_FEATURES
5247
5248
5249# _LT_PROG_XSI_SHELLFNS
5250# ---------------------
5251# Bourne and XSI compatible variants of some useful shell functions.
5252
5253# Helper functions for option handling.                    -*- Autoconf -*-
5254#
5255#   Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
5256#   Written by Gary V. Vaughan, 2004
5257#
5258# This file is free software; the Free Software Foundation gives
5259# unlimited permission to copy and/or distribute it, with or without
5260# modifications, as long as this notice is preserved.
5261
5262# serial 6 ltoptions.m4
5263
5264# This is to help aclocal find these macros, as it can't see m4_define.
5265
5266
5267
5268# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
5269# ------------------------------------------
5270
5271
5272
5273# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
5274# ---------------------------------------
5275# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
5276# matching handler defined, dispatch to it.  Other OPTION-NAMEs are
5277# saved as a flag.
5278
5279
5280
5281# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
5282# ------------------------------------------------------------
5283# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
5284
5285
5286
5287# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
5288# -------------------------------------------------------
5289# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
5290# are set.
5291
5292
5293
5294# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
5295# ----------------------------------------
5296# OPTION-LIST is a space-separated list of Libtool options associated
5297# with MACRO-NAME.  If any OPTION has a matching handler declared with
5298# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
5299# the unknown option and exit.
5300# _LT_SET_OPTIONS
5301
5302
5303## --------------------------------- ##
5304## Macros to handle LT_INIT options. ##
5305## --------------------------------- ##
5306
5307# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
5308# -----------------------------------------
5309
5310
5311
5312# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
5313# -----------------------------------------------
5314# LT_OPTION_DEFINE
5315
5316
5317# dlopen
5318# ------
5319
5320
5321# This is what autoupdate's m4 run will expand.  It fires
5322# the warning (with _au_warn_XXX), outputs it into the
5323# updated configure.ac (with AC_DIAGNOSE), and then outputs
5324# the replacement expansion.
5325
5326
5327# This is an auxiliary macro that is also run when
5328# autoupdate runs m4.  It simply calls m4_warning, but
5329# we need a wrapper so that each warning is emitted only
5330# once.  We break the quoting in m4_warning's argument in
5331# order to expand this macro's arguments, not AU_DEFUN's.
5332
5333
5334# Finally, this is the expansion that is picked up by
5335# autoconf.  It tells the user to run autoupdate, and
5336# then outputs the replacement expansion.  We do not care
5337# about autoupdate's warning because that contains
5338# information on what to do *after* running autoupdate.
5339
5340
5341
5342
5343# win32-dll
5344# ---------
5345# Declare package support for building win32 dll's.
5346# win32-dll
5347
5348# This is what autoupdate's m4 run will expand.  It fires
5349# the warning (with _au_warn_XXX), outputs it into the
5350# updated configure.ac (with AC_DIAGNOSE), and then outputs
5351# the replacement expansion.
5352
5353
5354# This is an auxiliary macro that is also run when
5355# autoupdate runs m4.  It simply calls m4_warning, but
5356# we need a wrapper so that each warning is emitted only
5357# once.  We break the quoting in m4_warning's argument in
5358# order to expand this macro's arguments, not AU_DEFUN's.
5359
5360
5361# Finally, this is the expansion that is picked up by
5362# autoconf.  It tells the user to run autoupdate, and
5363# then outputs the replacement expansion.  We do not care
5364# about autoupdate's warning because that contains
5365# information on what to do *after* running autoupdate.
5366
5367
5368
5369
5370# _LT_ENABLE_SHARED([DEFAULT])
5371# ----------------------------
5372# implement the --enable-shared flag, and supports the `shared' and
5373# `disable-shared' LT_INIT options.
5374# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
5375# _LT_ENABLE_SHARED
5376
5377
5378
5379
5380# Old names:
5381
5382
5383
5384
5385# This is what autoupdate's m4 run will expand.  It fires
5386# the warning (with _au_warn_XXX), outputs it into the
5387# updated configure.ac (with AC_DIAGNOSE), and then outputs
5388# the replacement expansion.
5389
5390
5391# This is an auxiliary macro that is also run when
5392# autoupdate runs m4.  It simply calls m4_warning, but
5393# we need a wrapper so that each warning is emitted only
5394# once.  We break the quoting in m4_warning's argument in
5395# order to expand this macro's arguments, not AU_DEFUN's.
5396
5397
5398# Finally, this is the expansion that is picked up by
5399# autoconf.  It tells the user to run autoupdate, and
5400# then outputs the replacement expansion.  We do not care
5401# about autoupdate's warning because that contains
5402# information on what to do *after* running autoupdate.
5403
5404# This is what autoupdate's m4 run will expand.  It fires
5405# the warning (with _au_warn_XXX), outputs it into the
5406# updated configure.ac (with AC_DIAGNOSE), and then outputs
5407# the replacement expansion.
5408
5409
5410# This is an auxiliary macro that is also run when
5411# autoupdate runs m4.  It simply calls m4_warning, but
5412# we need a wrapper so that each warning is emitted only
5413# once.  We break the quoting in m4_warning's argument in
5414# order to expand this macro's arguments, not AU_DEFUN's.
5415
5416
5417# Finally, this is the expansion that is picked up by
5418# autoconf.  It tells the user to run autoupdate, and
5419# then outputs the replacement expansion.  We do not care
5420# about autoupdate's warning because that contains
5421# information on what to do *after* running autoupdate.
5422
5423
5424
5425
5426
5427# _LT_ENABLE_STATIC([DEFAULT])
5428# ----------------------------
5429# implement the --enable-static flag, and support the `static' and
5430# `disable-static' LT_INIT options.
5431# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
5432# _LT_ENABLE_STATIC
5433
5434
5435
5436
5437# Old names:
5438
5439
5440
5441
5442# This is what autoupdate's m4 run will expand.  It fires
5443# the warning (with _au_warn_XXX), outputs it into the
5444# updated configure.ac (with AC_DIAGNOSE), and then outputs
5445# the replacement expansion.
5446
5447
5448# This is an auxiliary macro that is also run when
5449# autoupdate runs m4.  It simply calls m4_warning, but
5450# we need a wrapper so that each warning is emitted only
5451# once.  We break the quoting in m4_warning's argument in
5452# order to expand this macro's arguments, not AU_DEFUN's.
5453
5454
5455# Finally, this is the expansion that is picked up by
5456# autoconf.  It tells the user to run autoupdate, and
5457# then outputs the replacement expansion.  We do not care
5458# about autoupdate's warning because that contains
5459# information on what to do *after* running autoupdate.
5460
5461# This is what autoupdate's m4 run will expand.  It fires
5462# the warning (with _au_warn_XXX), outputs it into the
5463# updated configure.ac (with AC_DIAGNOSE), and then outputs
5464# the replacement expansion.
5465
5466
5467# This is an auxiliary macro that is also run when
5468# autoupdate runs m4.  It simply calls m4_warning, but
5469# we need a wrapper so that each warning is emitted only
5470# once.  We break the quoting in m4_warning's argument in
5471# order to expand this macro's arguments, not AU_DEFUN's.
5472
5473
5474# Finally, this is the expansion that is picked up by
5475# autoconf.  It tells the user to run autoupdate, and
5476# then outputs the replacement expansion.  We do not care
5477# about autoupdate's warning because that contains
5478# information on what to do *after* running autoupdate.
5479
5480
5481
5482
5483
5484# _LT_ENABLE_FAST_INSTALL([DEFAULT])
5485# ----------------------------------
5486# implement the --enable-fast-install flag, and support the `fast-install'
5487# and `disable-fast-install' LT_INIT options.
5488# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
5489# _LT_ENABLE_FAST_INSTALL
5490
5491
5492
5493
5494# Old names:
5495# This is what autoupdate's m4 run will expand.  It fires
5496# the warning (with _au_warn_XXX), outputs it into the
5497# updated configure.ac (with AC_DIAGNOSE), and then outputs
5498# the replacement expansion.
5499
5500
5501# This is an auxiliary macro that is also run when
5502# autoupdate runs m4.  It simply calls m4_warning, but
5503# we need a wrapper so that each warning is emitted only
5504# once.  We break the quoting in m4_warning's argument in
5505# order to expand this macro's arguments, not AU_DEFUN's.
5506
5507
5508# Finally, this is the expansion that is picked up by
5509# autoconf.  It tells the user to run autoupdate, and
5510# then outputs the replacement expansion.  We do not care
5511# about autoupdate's warning because that contains
5512# information on what to do *after* running autoupdate.
5513
5514
5515# This is what autoupdate's m4 run will expand.  It fires
5516# the warning (with _au_warn_XXX), outputs it into the
5517# updated configure.ac (with AC_DIAGNOSE), and then outputs
5518# the replacement expansion.
5519
5520
5521# This is an auxiliary macro that is also run when
5522# autoupdate runs m4.  It simply calls m4_warning, but
5523# we need a wrapper so that each warning is emitted only
5524# once.  We break the quoting in m4_warning's argument in
5525# order to expand this macro's arguments, not AU_DEFUN's.
5526
5527
5528# Finally, this is the expansion that is picked up by
5529# autoconf.  It tells the user to run autoupdate, and
5530# then outputs the replacement expansion.  We do not care
5531# about autoupdate's warning because that contains
5532# information on what to do *after* running autoupdate.
5533
5534
5535
5536
5537# _LT_WITH_PIC([MODE])
5538# --------------------
5539# implement the --with-pic flag, and support the `pic-only' and `no-pic'
5540# LT_INIT options.
5541# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
5542# _LT_WITH_PIC
5543
5544
5545
5546
5547# Old name:
5548# This is what autoupdate's m4 run will expand.  It fires
5549# the warning (with _au_warn_XXX), outputs it into the
5550# updated configure.ac (with AC_DIAGNOSE), and then outputs
5551# the replacement expansion.
5552
5553
5554# This is an auxiliary macro that is also run when
5555# autoupdate runs m4.  It simply calls m4_warning, but
5556# we need a wrapper so that each warning is emitted only
5557# once.  We break the quoting in m4_warning's argument in
5558# order to expand this macro's arguments, not AU_DEFUN's.
5559
5560
5561# Finally, this is the expansion that is picked up by
5562# autoconf.  It tells the user to run autoupdate, and
5563# then outputs the replacement expansion.  We do not care
5564# about autoupdate's warning because that contains
5565# information on what to do *after* running autoupdate.
5566
5567
5568
5569## ----------------- ##
5570## LTDL_INIT Options ##
5571## ----------------- ##
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581# ltversion.m4 -- version numbers			-*- Autoconf -*-
5582#
5583#   Copyright (C) 2004 Free Software Foundation, Inc.
5584#   Written by Scott James Remnant, 2004
5585#
5586# This file is free software; the Free Software Foundation gives
5587# unlimited permission to copy and/or distribute it, with or without
5588# modifications, as long as this notice is preserved.
5589
5590# Generated from ltversion.in.
5591
5592# serial 2976 ltversion.m4
5593# This file is part of GNU Libtool
5594
5595
5596
5597
5598
5599# ltsugar.m4 -- libtool m4 base layer.                         -*-Autoconf-*-
5600#
5601#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
5602#   Written by Gary V. Vaughan, 2004
5603#
5604# This file is free software; the Free Software Foundation gives
5605# unlimited permission to copy and/or distribute it, with or without
5606# modifications, as long as this notice is preserved.
5607
5608# serial 5 ltsugar.m4
5609
5610# This is to help aclocal find these macros, as it can't see m4_define.
5611
5612
5613
5614# lt_join(SEP, ARG1, [ARG2...])
5615# -----------------------------
5616# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
5617# associated separator.
5618# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
5619# versions in m4sugar had bugs.
5620
5621
5622
5623
5624# lt_car(LIST)
5625# lt_cdr(LIST)
5626# ------------
5627# Manipulate m4 lists.
5628# These macros are necessary as long as will still need to support
5629# Autoconf-2.59 which quotes differently.
5630
5631
5632
5633
5634
5635# lt_append(MACRO-NAME, STRING, [SEPARATOR])
5636# ------------------------------------------
5637# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
5638# Note that neither SEPARATOR nor STRING are expanded; they are appended
5639# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
5640# No SEPARATOR is output if MACRO-NAME was previously undefined (different
5641# than defined and empty).
5642#
5643# This macro is needed until we can rely on Autoconf 2.62, since earlier
5644# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
5645
5646
5647
5648
5649# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
5650# ----------------------------------------------------------
5651# Produce a SEP delimited list of all paired combinations of elements of
5652# PREFIX-LIST with SUFFIX1 through SUFFIXn.  Each element of the list
5653# has the form PREFIXmINFIXSUFFIXn.
5654
5655
5656
5657# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
5658# -----------------------------------------------------------------------
5659# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
5660# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
5661
5662
5663
5664# lt_dict_add(DICT, KEY, VALUE)
5665# -----------------------------
5666
5667
5668
5669# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
5670# --------------------------------------------
5671
5672
5673
5674# lt_dict_fetch(DICT, KEY, [SUBKEY])
5675# ----------------------------------
5676
5677
5678
5679# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
5680# -----------------------------------------------------------------
5681
5682
5683
5684# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
5685# --------------------------------------------------------------
5686
5687# lt~obsolete.m4 -- aclocal satisfying obsolete definitions.    -*-Autoconf-*-
5688#
5689#   Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
5690#   Written by Scott James Remnant, 2004.
5691#
5692# This file is free software; the Free Software Foundation gives
5693# unlimited permission to copy and/or distribute it, with or without
5694# modifications, as long as this notice is preserved.
5695
5696# serial 4 lt~obsolete.m4
5697
5698# These exist entirely to fool aclocal when bootstrapping libtool.
5699#
5700# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
5701# which have later been changed to m4_define as they aren't part of the
5702# exported API, or moved to Autoconf or Automake where they belong.
5703#
5704# The trouble is, aclocal is a bit thick.  It'll see the old AC_DEFUN
5705# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
5706# using a macro with the same name in our local m4/libtool.m4 it'll
5707# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
5708# and doesn't know about Autoconf macros at all.)
5709#
5710# So we provide this file, which has a silly filename so it's always
5711# included after everything else.  This provides aclocal with the
5712# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
5713# because those macros already exist, or will be overwritten later.
5714# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
5715#
5716# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
5717# Yes, that means every name once taken will need to remain here until
5718# we give up compatibility with versions before 1.7, at which point
5719# we need to keep only those names which we still refer to.
5720
5721# This is to help aclocal find these macros, as it can't see m4_define.
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780case `pwd` in
5781  *\ * | *\	*)
5782    { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5783$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5784esac
5785
5786
5787
5788macro_version='2.2.4'
5789macro_revision='1.2976'
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803ltmain="$ac_aux_dir/ltmain.sh"
5804
5805ac_aux_dir=
5806for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5807  if test -f "$ac_dir/install-sh"; then
5808    ac_aux_dir=$ac_dir
5809    ac_install_sh="$ac_aux_dir/install-sh -c"
5810    break
5811  elif test -f "$ac_dir/install.sh"; then
5812    ac_aux_dir=$ac_dir
5813    ac_install_sh="$ac_aux_dir/install.sh -c"
5814    break
5815  elif test -f "$ac_dir/shtool"; then
5816    ac_aux_dir=$ac_dir
5817    ac_install_sh="$ac_aux_dir/shtool install -c"
5818    break
5819  fi
5820done
5821if test -z "$ac_aux_dir"; then
5822  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5823$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5824   { (exit 1); exit 1; }; }
5825fi
5826
5827# These three variables are undocumented and unsupported,
5828# and are intended to be withdrawn in a future Autoconf release.
5829# They can cause serious problems if a builder's source tree is in a directory
5830# whose full name contains unusual characters.
5831ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5832ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5833ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5834
5835
5836# Make sure we can run config.sub.
5837$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5838  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5839$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5840   { (exit 1); exit 1; }; }
5841
5842{ $as_echo "$as_me:$LINENO: checking build system type" >&5
5843$as_echo_n "checking build system type... " >&6; }
5844if test "${ac_cv_build+set}" = set; then
5845  $as_echo_n "(cached) " >&6
5846else
5847  ac_build_alias=$build_alias
5848test "x$ac_build_alias" = x &&
5849  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5850test "x$ac_build_alias" = x &&
5851  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5852$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5853   { (exit 1); exit 1; }; }
5854ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5855  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5856$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5857   { (exit 1); exit 1; }; }
5858
5859fi
5860{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5861$as_echo "$ac_cv_build" >&6; }
5862case $ac_cv_build in
5863*-*-*) ;;
5864*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5865$as_echo "$as_me: error: invalid value of canonical build" >&2;}
5866   { (exit 1); exit 1; }; };;
5867esac
5868build=$ac_cv_build
5869ac_save_IFS=$IFS; IFS='-'
5870set x $ac_cv_build
5871shift
5872build_cpu=$1
5873build_vendor=$2
5874shift; shift
5875# Remember, the first character of IFS is used to create $*,
5876# except with old shells:
5877build_os=$*
5878IFS=$ac_save_IFS
5879case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5880
5881
5882{ $as_echo "$as_me:$LINENO: checking host system type" >&5
5883$as_echo_n "checking host system type... " >&6; }
5884if test "${ac_cv_host+set}" = set; then
5885  $as_echo_n "(cached) " >&6
5886else
5887  if test "x$host_alias" = x; then
5888  ac_cv_host=$ac_cv_build
5889else
5890  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5891    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5892$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5893   { (exit 1); exit 1; }; }
5894fi
5895
5896fi
5897{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5898$as_echo "$ac_cv_host" >&6; }
5899case $ac_cv_host in
5900*-*-*) ;;
5901*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5902$as_echo "$as_me: error: invalid value of canonical host" >&2;}
5903   { (exit 1); exit 1; }; };;
5904esac
5905host=$ac_cv_host
5906ac_save_IFS=$IFS; IFS='-'
5907set x $ac_cv_host
5908shift
5909host_cpu=$1
5910host_vendor=$2
5911shift; shift
5912# Remember, the first character of IFS is used to create $*,
5913# except with old shells:
5914host_os=$*
5915IFS=$ac_save_IFS
5916case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5917
5918
5919{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5920$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5921if test "${ac_cv_path_SED+set}" = set; then
5922  $as_echo_n "(cached) " >&6
5923else
5924            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5925     for ac_i in 1 2 3 4 5 6 7; do
5926       ac_script="$ac_script$as_nl$ac_script"
5927     done
5928     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5929     $as_unset ac_script || ac_script=
5930     if test -z "$SED"; then
5931  ac_path_SED_found=false
5932  # Loop through the user's path and test for each of PROGNAME-LIST
5933  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936  IFS=$as_save_IFS
5937  test -z "$as_dir" && as_dir=.
5938  for ac_prog in sed gsed; do
5939    for ac_exec_ext in '' $ac_executable_extensions; do
5940      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5941      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5942# Check for GNU ac_path_SED and select it if it is found.
5943  # Check for GNU $ac_path_SED
5944case `"$ac_path_SED" --version 2>&1` in
5945*GNU*)
5946  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5947*)
5948  ac_count=0
5949  $as_echo_n 0123456789 >"conftest.in"
5950  while :
5951  do
5952    cat "conftest.in" "conftest.in" >"conftest.tmp"
5953    mv "conftest.tmp" "conftest.in"
5954    cp "conftest.in" "conftest.nl"
5955    $as_echo '' >> "conftest.nl"
5956    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5957    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5958    ac_count=`expr $ac_count + 1`
5959    if test $ac_count -gt ${ac_path_SED_max-0}; then
5960      # Best one so far, save it but keep looking for a better one
5961      ac_cv_path_SED="$ac_path_SED"
5962      ac_path_SED_max=$ac_count
5963    fi
5964    # 10*(2^10) chars as input seems more than enough
5965    test $ac_count -gt 10 && break
5966  done
5967  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5968esac
5969
5970      $ac_path_SED_found && break 3
5971    done
5972  done
5973done
5974IFS=$as_save_IFS
5975  if test -z "$ac_cv_path_SED"; then
5976    { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5977$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5978   { (exit 1); exit 1; }; }
5979  fi
5980else
5981  ac_cv_path_SED=$SED
5982fi
5983
5984fi
5985{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5986$as_echo "$ac_cv_path_SED" >&6; }
5987 SED="$ac_cv_path_SED"
5988  rm -f conftest.sed
5989
5990test -z "$SED" && SED=sed
5991Xsed="$SED -e 1s/^X//"
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
6004$as_echo_n "checking for fgrep... " >&6; }
6005if test "${ac_cv_path_FGREP+set}" = set; then
6006  $as_echo_n "(cached) " >&6
6007else
6008  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6009   then ac_cv_path_FGREP="$GREP -F"
6010   else
6011     if test -z "$FGREP"; then
6012  ac_path_FGREP_found=false
6013  # Loop through the user's path and test for each of PROGNAME-LIST
6014  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6016do
6017  IFS=$as_save_IFS
6018  test -z "$as_dir" && as_dir=.
6019  for ac_prog in fgrep; do
6020    for ac_exec_ext in '' $ac_executable_extensions; do
6021      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6022      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6023# Check for GNU ac_path_FGREP and select it if it is found.
6024  # Check for GNU $ac_path_FGREP
6025case `"$ac_path_FGREP" --version 2>&1` in
6026*GNU*)
6027  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6028*)
6029  ac_count=0
6030  $as_echo_n 0123456789 >"conftest.in"
6031  while :
6032  do
6033    cat "conftest.in" "conftest.in" >"conftest.tmp"
6034    mv "conftest.tmp" "conftest.in"
6035    cp "conftest.in" "conftest.nl"
6036    $as_echo 'FGREP' >> "conftest.nl"
6037    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6038    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6039    ac_count=`expr $ac_count + 1`
6040    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6041      # Best one so far, save it but keep looking for a better one
6042      ac_cv_path_FGREP="$ac_path_FGREP"
6043      ac_path_FGREP_max=$ac_count
6044    fi
6045    # 10*(2^10) chars as input seems more than enough
6046    test $ac_count -gt 10 && break
6047  done
6048  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6049esac
6050
6051      $ac_path_FGREP_found && break 3
6052    done
6053  done
6054done
6055IFS=$as_save_IFS
6056  if test -z "$ac_cv_path_FGREP"; then
6057    { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6058$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6059   { (exit 1); exit 1; }; }
6060  fi
6061else
6062  ac_cv_path_FGREP=$FGREP
6063fi
6064
6065   fi
6066fi
6067{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
6068$as_echo "$ac_cv_path_FGREP" >&6; }
6069 FGREP="$ac_cv_path_FGREP"
6070
6071
6072test -z "$GREP" && GREP=grep
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092# Check whether --with-gnu-ld was given.
6093if test "${with_gnu_ld+set}" = set; then
6094  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6095else
6096  with_gnu_ld=no
6097fi
6098
6099ac_prog=ld
6100if test "$GCC" = yes; then
6101  # Check if gcc -print-prog-name=ld gives a path.
6102  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6103$as_echo_n "checking for ld used by $CC... " >&6; }
6104  case $host in
6105  *-*-mingw*)
6106    # gcc leaves a trailing carriage return which upsets mingw
6107    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6108  *)
6109    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6110  esac
6111  case $ac_prog in
6112    # Accept absolute paths.
6113    [\\/]* | ?:[\\/]*)
6114      re_direlt='/[^/][^/]*/\.\./'
6115      # Canonicalize the pathname of ld
6116      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6117      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6118	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6119      done
6120      test -z "$LD" && LD="$ac_prog"
6121      ;;
6122  "")
6123    # If it fails, then pretend we aren't using GCC.
6124    ac_prog=ld
6125    ;;
6126  *)
6127    # If it is relative, then search for the first ld in PATH.
6128    with_gnu_ld=unknown
6129    ;;
6130  esac
6131elif test "$with_gnu_ld" = yes; then
6132  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6133$as_echo_n "checking for GNU ld... " >&6; }
6134else
6135  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6136$as_echo_n "checking for non-GNU ld... " >&6; }
6137fi
6138if test "${lt_cv_path_LD+set}" = set; then
6139  $as_echo_n "(cached) " >&6
6140else
6141  if test -z "$LD"; then
6142  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6143  for ac_dir in $PATH; do
6144    IFS="$lt_save_ifs"
6145    test -z "$ac_dir" && ac_dir=.
6146    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6147      lt_cv_path_LD="$ac_dir/$ac_prog"
6148      # Check to see if the program is GNU ld.  I'd rather use --version,
6149      # but apparently some variants of GNU ld only accept -v.
6150      # Break only if it was the GNU/non-GNU ld that we prefer.
6151      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6152      *GNU* | *'with BFD'*)
6153	test "$with_gnu_ld" != no && break
6154	;;
6155      *)
6156	test "$with_gnu_ld" != yes && break
6157	;;
6158      esac
6159    fi
6160  done
6161  IFS="$lt_save_ifs"
6162else
6163  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6164fi
6165fi
6166
6167LD="$lt_cv_path_LD"
6168if test -n "$LD"; then
6169  { $as_echo "$as_me:$LINENO: result: $LD" >&5
6170$as_echo "$LD" >&6; }
6171else
6172  { $as_echo "$as_me:$LINENO: result: no" >&5
6173$as_echo "no" >&6; }
6174fi
6175test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6176$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6177   { (exit 1); exit 1; }; }
6178{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6179$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6180if test "${lt_cv_prog_gnu_ld+set}" = set; then
6181  $as_echo_n "(cached) " >&6
6182else
6183  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6184case `$LD -v 2>&1 </dev/null` in
6185*GNU* | *'with BFD'*)
6186  lt_cv_prog_gnu_ld=yes
6187  ;;
6188*)
6189  lt_cv_prog_gnu_ld=no
6190  ;;
6191esac
6192fi
6193{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6194$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6195with_gnu_ld=$lt_cv_prog_gnu_ld
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
6206$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6207if test "${lt_cv_path_NM+set}" = set; then
6208  $as_echo_n "(cached) " >&6
6209else
6210  if test -n "$NM"; then
6211  # Let the user override the test.
6212  lt_cv_path_NM="$NM"
6213else
6214  lt_nm_to_check="${ac_tool_prefix}nm"
6215  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6216    lt_nm_to_check="$lt_nm_to_check nm"
6217  fi
6218  for lt_tmp_nm in $lt_nm_to_check; do
6219    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6220    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6221      IFS="$lt_save_ifs"
6222      test -z "$ac_dir" && ac_dir=.
6223      tmp_nm="$ac_dir/$lt_tmp_nm"
6224      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6225	# Check to see if the nm accepts a BSD-compat flag.
6226	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6227	#   nm: unknown option "B" ignored
6228	# Tru64's nm complains that /dev/null is an invalid object file
6229	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6230	*/dev/null* | *'Invalid file or object type'*)
6231	  lt_cv_path_NM="$tmp_nm -B"
6232	  break
6233	  ;;
6234	*)
6235	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6236	  */dev/null*)
6237	    lt_cv_path_NM="$tmp_nm -p"
6238	    break
6239	    ;;
6240	  *)
6241	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6242	    continue # so that we can try to find one that supports BSD flags
6243	    ;;
6244	  esac
6245	  ;;
6246	esac
6247      fi
6248    done
6249    IFS="$lt_save_ifs"
6250  done
6251  : ${lt_cv_path_NM=no}
6252fi
6253fi
6254{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6255$as_echo "$lt_cv_path_NM" >&6; }
6256if test "$lt_cv_path_NM" != "no"; then
6257  NM="$lt_cv_path_NM"
6258else
6259  # Didn't find any BSD compatible name lister, look for dumpbin.
6260  if test -n "$ac_tool_prefix"; then
6261  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6262  do
6263    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6264set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6265{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6266$as_echo_n "checking for $ac_word... " >&6; }
6267if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6268  $as_echo_n "(cached) " >&6
6269else
6270  if test -n "$DUMPBIN"; then
6271  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6272else
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276  IFS=$as_save_IFS
6277  test -z "$as_dir" && as_dir=.
6278  for ac_exec_ext in '' $ac_executable_extensions; do
6279  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6280    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6281    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282    break 2
6283  fi
6284done
6285done
6286IFS=$as_save_IFS
6287
6288fi
6289fi
6290DUMPBIN=$ac_cv_prog_DUMPBIN
6291if test -n "$DUMPBIN"; then
6292  { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6293$as_echo "$DUMPBIN" >&6; }
6294else
6295  { $as_echo "$as_me:$LINENO: result: no" >&5
6296$as_echo "no" >&6; }
6297fi
6298
6299
6300    test -n "$DUMPBIN" && break
6301  done
6302fi
6303if test -z "$DUMPBIN"; then
6304  ac_ct_DUMPBIN=$DUMPBIN
6305  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6306do
6307  # Extract the first word of "$ac_prog", so it can be a program name with args.
6308set dummy $ac_prog; ac_word=$2
6309{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6310$as_echo_n "checking for $ac_word... " >&6; }
6311if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6312  $as_echo_n "(cached) " >&6
6313else
6314  if test -n "$ac_ct_DUMPBIN"; then
6315  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6316else
6317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318for as_dir in $PATH
6319do
6320  IFS=$as_save_IFS
6321  test -z "$as_dir" && as_dir=.
6322  for ac_exec_ext in '' $ac_executable_extensions; do
6323  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6325    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326    break 2
6327  fi
6328done
6329done
6330IFS=$as_save_IFS
6331
6332fi
6333fi
6334ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6335if test -n "$ac_ct_DUMPBIN"; then
6336  { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6337$as_echo "$ac_ct_DUMPBIN" >&6; }
6338else
6339  { $as_echo "$as_me:$LINENO: result: no" >&5
6340$as_echo "no" >&6; }
6341fi
6342
6343
6344  test -n "$ac_ct_DUMPBIN" && break
6345done
6346
6347  if test "x$ac_ct_DUMPBIN" = x; then
6348    DUMPBIN=":"
6349  else
6350    case $cross_compiling:$ac_tool_warned in
6351yes:)
6352{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6353whose name does not start with the host triplet.  If you think this
6354configuration is useful to you, please write to autoconf@gnu.org." >&5
6355$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6356whose name does not start with the host triplet.  If you think this
6357configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6358ac_tool_warned=yes ;;
6359esac
6360    DUMPBIN=$ac_ct_DUMPBIN
6361  fi
6362fi
6363
6364
6365  if test "$DUMPBIN" != ":"; then
6366    NM="$DUMPBIN"
6367  fi
6368fi
6369test -z "$NM" && NM=nm
6370
6371
6372
6373
6374
6375
6376{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6377$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6378if test "${lt_cv_nm_interface+set}" = set; then
6379  $as_echo_n "(cached) " >&6
6380else
6381  lt_cv_nm_interface="BSD nm"
6382  echo "int some_variable = 0;" > conftest.$ac_ext
6383  (eval echo "\"\$as_me:6383: $ac_compile\"" >&5)
6384  (eval "$ac_compile" 2>conftest.err)
6385  cat conftest.err >&5
6386  (eval echo "\"\$as_me:6386: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6387  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6388  cat conftest.err >&5
6389  (eval echo "\"\$as_me:6389: output\"" >&5)
6390  cat conftest.out >&5
6391  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6392    lt_cv_nm_interface="MS dumpbin"
6393  fi
6394  rm -f conftest*
6395fi
6396{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6397$as_echo "$lt_cv_nm_interface" >&6; }
6398
6399{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6400$as_echo_n "checking whether ln -s works... " >&6; }
6401LN_S=$as_ln_s
6402if test "$LN_S" = "ln -s"; then
6403  { $as_echo "$as_me:$LINENO: result: yes" >&5
6404$as_echo "yes" >&6; }
6405else
6406  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6407$as_echo "no, using $LN_S" >&6; }
6408fi
6409
6410# find the maximum length of command line arguments
6411{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6412$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6413if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6414  $as_echo_n "(cached) " >&6
6415else
6416    i=0
6417  teststring="ABCD"
6418
6419  case $build_os in
6420  msdosdjgpp*)
6421    # On DJGPP, this test can blow up pretty badly due to problems in libc
6422    # (any single argument exceeding 2000 bytes causes a buffer overrun
6423    # during glob expansion).  Even if it were fixed, the result of this
6424    # check would be larger than it should be.
6425    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6426    ;;
6427
6428  gnu*)
6429    # Under GNU Hurd, this test is not required because there is
6430    # no limit to the length of command line arguments.
6431    # Libtool will interpret -1 as no limit whatsoever
6432    lt_cv_sys_max_cmd_len=-1;
6433    ;;
6434
6435  cygwin* | mingw*)
6436    # On Win9x/ME, this test blows up -- it succeeds, but takes
6437    # about 5 minutes as the teststring grows exponentially.
6438    # Worse, since 9x/ME are not pre-emptively multitasking,
6439    # you end up with a "frozen" computer, even though with patience
6440    # the test eventually succeeds (with a max line length of 256k).
6441    # Instead, let's just punt: use the minimum linelength reported by
6442    # all of the supported platforms: 8192 (on NT/2K/XP).
6443    lt_cv_sys_max_cmd_len=8192;
6444    ;;
6445
6446  amigaos*)
6447    # On AmigaOS with pdksh, this test takes hours, literally.
6448    # So we just punt and use a minimum line length of 8192.
6449    lt_cv_sys_max_cmd_len=8192;
6450    ;;
6451
6452  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6453    # This has been around since 386BSD, at least.  Likely further.
6454    if test -x /sbin/sysctl; then
6455      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6456    elif test -x /usr/sbin/sysctl; then
6457      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6458    else
6459      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6460    fi
6461    # And add a safety zone
6462    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6463    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6464    ;;
6465
6466  interix*)
6467    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6468    lt_cv_sys_max_cmd_len=196608
6469    ;;
6470
6471  osf*)
6472    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6473    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6474    # nice to cause kernel panics so lets avoid the loop below.
6475    # First set a reasonable default.
6476    lt_cv_sys_max_cmd_len=16384
6477    #
6478    if test -x /sbin/sysconfig; then
6479      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6480        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6481      esac
6482    fi
6483    ;;
6484  sco3.2v5*)
6485    lt_cv_sys_max_cmd_len=102400
6486    ;;
6487  sysv5* | sco5v6* | sysv4.2uw2*)
6488    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6489    if test -n "$kargmax"; then
6490      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6491    else
6492      lt_cv_sys_max_cmd_len=32768
6493    fi
6494    ;;
6495  *)
6496    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6497    if test -n "$lt_cv_sys_max_cmd_len"; then
6498      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6499      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6500    else
6501      # Make teststring a little bigger before we do anything with it.
6502      # a 1K string should be a reasonable start.
6503      for i in 1 2 3 4 5 6 7 8 ; do
6504        teststring=$teststring$teststring
6505      done
6506      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6507      # If test is not a shell built-in, we'll probably end up computing a
6508      # maximum length that is only half of the actual maximum length, but
6509      # we can't tell.
6510      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6511	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6512	      test $i != 17 # 1/2 MB should be enough
6513      do
6514        i=`expr $i + 1`
6515        teststring=$teststring$teststring
6516      done
6517      # Only check the string length outside the loop.
6518      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6519      teststring=
6520      # Add a significant safety factor because C++ compilers can tack on
6521      # massive amounts of additional arguments before passing them to the
6522      # linker.  It appears as though 1/2 is a usable value.
6523      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6524    fi
6525    ;;
6526  esac
6527
6528fi
6529
6530if test -n $lt_cv_sys_max_cmd_len ; then
6531  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6532$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6533else
6534  { $as_echo "$as_me:$LINENO: result: none" >&5
6535$as_echo "none" >&6; }
6536fi
6537max_cmd_len=$lt_cv_sys_max_cmd_len
6538
6539
6540
6541
6542
6543
6544: ${CP="cp -f"}
6545: ${MV="mv -f"}
6546: ${RM="rm -f"}
6547
6548{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6549$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6550# Try some XSI features
6551xsi_shell=no
6552( _lt_dummy="a/b/c"
6553  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6554      = c,a/b,, \
6555    && eval 'test $(( 1 + 1 )) -eq 2 \
6556    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6557  && xsi_shell=yes
6558{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6559$as_echo "$xsi_shell" >&6; }
6560
6561
6562{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6563$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6564lt_shell_append=no
6565( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6566    >/dev/null 2>&1 \
6567  && lt_shell_append=yes
6568{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6569$as_echo "$lt_shell_append" >&6; }
6570
6571
6572if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6573  lt_unset=unset
6574else
6575  lt_unset=false
6576fi
6577
6578
6579
6580
6581
6582# test EBCDIC or ASCII
6583case `echo X|tr X '\101'` in
6584 A) # ASCII based system
6585    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6586  lt_SP2NL='tr \040 \012'
6587  lt_NL2SP='tr \015\012 \040\040'
6588  ;;
6589 *) # EBCDIC based system
6590  lt_SP2NL='tr \100 \n'
6591  lt_NL2SP='tr \r\n \100\100'
6592  ;;
6593esac
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6604$as_echo_n "checking for $LD option to reload object files... " >&6; }
6605if test "${lt_cv_ld_reload_flag+set}" = set; then
6606  $as_echo_n "(cached) " >&6
6607else
6608  lt_cv_ld_reload_flag='-r'
6609fi
6610{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6611$as_echo "$lt_cv_ld_reload_flag" >&6; }
6612reload_flag=$lt_cv_ld_reload_flag
6613case $reload_flag in
6614"" | " "*) ;;
6615*) reload_flag=" $reload_flag" ;;
6616esac
6617reload_cmds='$LD$reload_flag -o $output$reload_objs'
6618case $host_os in
6619  darwin*)
6620    if test "$GCC" = yes; then
6621      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6622    else
6623      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6624    fi
6625    ;;
6626esac
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6638$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6639if test "${lt_cv_deplibs_check_method+set}" = set; then
6640  $as_echo_n "(cached) " >&6
6641else
6642  lt_cv_file_magic_cmd='$MAGIC_CMD'
6643lt_cv_file_magic_test_file=
6644lt_cv_deplibs_check_method='unknown'
6645# Need to set the preceding variable on all platforms that support
6646# interlibrary dependencies.
6647# 'none' -- dependencies not supported.
6648# `unknown' -- same as none, but documents that we really don't know.
6649# 'pass_all' -- all dependencies passed with no checks.
6650# 'test_compile' -- check by making test program.
6651# 'file_magic [[regex]]' -- check by looking for files in library path
6652# which responds to the $file_magic_cmd with a given extended regex.
6653# If you have `file' or equivalent on your system and you're not sure
6654# whether `pass_all' will *always* work, you probably want this one.
6655
6656case $host_os in
6657aix[4-9]*)
6658  lt_cv_deplibs_check_method=pass_all
6659  ;;
6660
6661beos*)
6662  lt_cv_deplibs_check_method=pass_all
6663  ;;
6664
6665bsdi[45]*)
6666  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6667  lt_cv_file_magic_cmd='/usr/bin/file -L'
6668  lt_cv_file_magic_test_file=/shlib/libc.so
6669  ;;
6670
6671cygwin*)
6672  # func_win32_libid is a shell function defined in ltmain.sh
6673  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6674  lt_cv_file_magic_cmd='func_win32_libid'
6675  ;;
6676
6677mingw* | pw32*)
6678  # Base MSYS/MinGW do not provide the 'file' command needed by
6679  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6680  # unless we find 'file', for example because we are cross-compiling.
6681  if ( file / ) >/dev/null 2>&1; then
6682    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6683    lt_cv_file_magic_cmd='func_win32_libid'
6684  else
6685    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6686    lt_cv_file_magic_cmd='$OBJDUMP -f'
6687  fi
6688  ;;
6689
6690darwin* | rhapsody*)
6691  lt_cv_deplibs_check_method=pass_all
6692  ;;
6693
6694freebsd* | dragonfly*)
6695  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6696    case $host_cpu in
6697    i*86 )
6698      # Not sure whether the presence of OpenBSD here was a mistake.
6699      # Let's accept both of them until this is cleared up.
6700      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6701      lt_cv_file_magic_cmd=/usr/bin/file
6702      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6703      ;;
6704    esac
6705  else
6706    lt_cv_deplibs_check_method=pass_all
6707  fi
6708  ;;
6709
6710gnu*)
6711  lt_cv_deplibs_check_method=pass_all
6712  ;;
6713
6714hpux10.20* | hpux11*)
6715  lt_cv_file_magic_cmd=/usr/bin/file
6716  case $host_cpu in
6717  ia64*)
6718    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6719    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6720    ;;
6721  hppa*64*)
6722    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]'
6723    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6724    ;;
6725  *)
6726    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6727    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6728    ;;
6729  esac
6730  ;;
6731
6732interix[3-9]*)
6733  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6734  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6735  ;;
6736
6737irix5* | irix6* | nonstopux*)
6738  case $LD in
6739  *-32|*"-32 ") libmagic=32-bit;;
6740  *-n32|*"-n32 ") libmagic=N32;;
6741  *-64|*"-64 ") libmagic=64-bit;;
6742  *) libmagic=never-match;;
6743  esac
6744  lt_cv_deplibs_check_method=pass_all
6745  ;;
6746
6747# This must be Linux ELF.
6748linux* | k*bsd*-gnu)
6749  lt_cv_deplibs_check_method=pass_all
6750  ;;
6751
6752netbsd*)
6753  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6754    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6755  else
6756    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6757  fi
6758  ;;
6759
6760newos6*)
6761  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6762  lt_cv_file_magic_cmd=/usr/bin/file
6763  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6764  ;;
6765
6766*nto* | *qnx*)
6767  lt_cv_deplibs_check_method=pass_all
6768  ;;
6769
6770openbsd*)
6771  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6772    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6773  else
6774    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6775  fi
6776  ;;
6777
6778osf3* | osf4* | osf5*)
6779  lt_cv_deplibs_check_method=pass_all
6780  ;;
6781
6782rdos*)
6783  lt_cv_deplibs_check_method=pass_all
6784  ;;
6785
6786solaris*)
6787  lt_cv_deplibs_check_method=pass_all
6788  ;;
6789
6790sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6791  lt_cv_deplibs_check_method=pass_all
6792  ;;
6793
6794sysv4 | sysv4.3*)
6795  case $host_vendor in
6796  motorola)
6797    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]'
6798    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6799    ;;
6800  ncr)
6801    lt_cv_deplibs_check_method=pass_all
6802    ;;
6803  sequent)
6804    lt_cv_file_magic_cmd='/bin/file'
6805    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6806    ;;
6807  sni)
6808    lt_cv_file_magic_cmd='/bin/file'
6809    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6810    lt_cv_file_magic_test_file=/lib/libc.so
6811    ;;
6812  siemens)
6813    lt_cv_deplibs_check_method=pass_all
6814    ;;
6815  pc)
6816    lt_cv_deplibs_check_method=pass_all
6817    ;;
6818  esac
6819  ;;
6820
6821tpf*)
6822  lt_cv_deplibs_check_method=pass_all
6823  ;;
6824esac
6825
6826fi
6827{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6828$as_echo "$lt_cv_deplibs_check_method" >&6; }
6829file_magic_cmd=$lt_cv_file_magic_cmd
6830deplibs_check_method=$lt_cv_deplibs_check_method
6831test -z "$deplibs_check_method" && deplibs_check_method=unknown
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844if test -n "$ac_tool_prefix"; then
6845  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6846set dummy ${ac_tool_prefix}ar; ac_word=$2
6847{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6848$as_echo_n "checking for $ac_word... " >&6; }
6849if test "${ac_cv_prog_AR+set}" = set; then
6850  $as_echo_n "(cached) " >&6
6851else
6852  if test -n "$AR"; then
6853  ac_cv_prog_AR="$AR" # Let the user override the test.
6854else
6855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856for as_dir in $PATH
6857do
6858  IFS=$as_save_IFS
6859  test -z "$as_dir" && as_dir=.
6860  for ac_exec_ext in '' $ac_executable_extensions; do
6861  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862    ac_cv_prog_AR="${ac_tool_prefix}ar"
6863    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864    break 2
6865  fi
6866done
6867done
6868IFS=$as_save_IFS
6869
6870fi
6871fi
6872AR=$ac_cv_prog_AR
6873if test -n "$AR"; then
6874  { $as_echo "$as_me:$LINENO: result: $AR" >&5
6875$as_echo "$AR" >&6; }
6876else
6877  { $as_echo "$as_me:$LINENO: result: no" >&5
6878$as_echo "no" >&6; }
6879fi
6880
6881
6882fi
6883if test -z "$ac_cv_prog_AR"; then
6884  ac_ct_AR=$AR
6885  # Extract the first word of "ar", so it can be a program name with args.
6886set dummy ar; ac_word=$2
6887{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6888$as_echo_n "checking for $ac_word... " >&6; }
6889if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6890  $as_echo_n "(cached) " >&6
6891else
6892  if test -n "$ac_ct_AR"; then
6893  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6894else
6895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896for as_dir in $PATH
6897do
6898  IFS=$as_save_IFS
6899  test -z "$as_dir" && as_dir=.
6900  for ac_exec_ext in '' $ac_executable_extensions; do
6901  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6902    ac_cv_prog_ac_ct_AR="ar"
6903    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6904    break 2
6905  fi
6906done
6907done
6908IFS=$as_save_IFS
6909
6910fi
6911fi
6912ac_ct_AR=$ac_cv_prog_ac_ct_AR
6913if test -n "$ac_ct_AR"; then
6914  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6915$as_echo "$ac_ct_AR" >&6; }
6916else
6917  { $as_echo "$as_me:$LINENO: result: no" >&5
6918$as_echo "no" >&6; }
6919fi
6920
6921  if test "x$ac_ct_AR" = x; then
6922    AR="false"
6923  else
6924    case $cross_compiling:$ac_tool_warned in
6925yes:)
6926{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6927whose name does not start with the host triplet.  If you think this
6928configuration is useful to you, please write to autoconf@gnu.org." >&5
6929$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6930whose name does not start with the host triplet.  If you think this
6931configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6932ac_tool_warned=yes ;;
6933esac
6934    AR=$ac_ct_AR
6935  fi
6936else
6937  AR="$ac_cv_prog_AR"
6938fi
6939
6940test -z "$AR" && AR=ar
6941test -z "$AR_FLAGS" && AR_FLAGS=cru
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953if test -n "$ac_tool_prefix"; then
6954  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6955set dummy ${ac_tool_prefix}strip; ac_word=$2
6956{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6957$as_echo_n "checking for $ac_word... " >&6; }
6958if test "${ac_cv_prog_STRIP+set}" = set; then
6959  $as_echo_n "(cached) " >&6
6960else
6961  if test -n "$STRIP"; then
6962  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6963else
6964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965for as_dir in $PATH
6966do
6967  IFS=$as_save_IFS
6968  test -z "$as_dir" && as_dir=.
6969  for ac_exec_ext in '' $ac_executable_extensions; do
6970  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6971    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6972    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6973    break 2
6974  fi
6975done
6976done
6977IFS=$as_save_IFS
6978
6979fi
6980fi
6981STRIP=$ac_cv_prog_STRIP
6982if test -n "$STRIP"; then
6983  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6984$as_echo "$STRIP" >&6; }
6985else
6986  { $as_echo "$as_me:$LINENO: result: no" >&5
6987$as_echo "no" >&6; }
6988fi
6989
6990
6991fi
6992if test -z "$ac_cv_prog_STRIP"; then
6993  ac_ct_STRIP=$STRIP
6994  # Extract the first word of "strip", so it can be a program name with args.
6995set dummy strip; ac_word=$2
6996{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6997$as_echo_n "checking for $ac_word... " >&6; }
6998if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6999  $as_echo_n "(cached) " >&6
7000else
7001  if test -n "$ac_ct_STRIP"; then
7002  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7003else
7004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005for as_dir in $PATH
7006do
7007  IFS=$as_save_IFS
7008  test -z "$as_dir" && as_dir=.
7009  for ac_exec_ext in '' $ac_executable_extensions; do
7010  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7011    ac_cv_prog_ac_ct_STRIP="strip"
7012    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7013    break 2
7014  fi
7015done
7016done
7017IFS=$as_save_IFS
7018
7019fi
7020fi
7021ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7022if test -n "$ac_ct_STRIP"; then
7023  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7024$as_echo "$ac_ct_STRIP" >&6; }
7025else
7026  { $as_echo "$as_me:$LINENO: result: no" >&5
7027$as_echo "no" >&6; }
7028fi
7029
7030  if test "x$ac_ct_STRIP" = x; then
7031    STRIP=":"
7032  else
7033    case $cross_compiling:$ac_tool_warned in
7034yes:)
7035{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7036whose name does not start with the host triplet.  If you think this
7037configuration is useful to you, please write to autoconf@gnu.org." >&5
7038$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7039whose name does not start with the host triplet.  If you think this
7040configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7041ac_tool_warned=yes ;;
7042esac
7043    STRIP=$ac_ct_STRIP
7044  fi
7045else
7046  STRIP="$ac_cv_prog_STRIP"
7047fi
7048
7049test -z "$STRIP" && STRIP=:
7050
7051
7052
7053
7054
7055
7056if test -n "$ac_tool_prefix"; then
7057  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7058set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7059{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7060$as_echo_n "checking for $ac_word... " >&6; }
7061if test "${ac_cv_prog_RANLIB+set}" = set; then
7062  $as_echo_n "(cached) " >&6
7063else
7064  if test -n "$RANLIB"; then
7065  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7066else
7067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068for as_dir in $PATH
7069do
7070  IFS=$as_save_IFS
7071  test -z "$as_dir" && as_dir=.
7072  for ac_exec_ext in '' $ac_executable_extensions; do
7073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7075    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7076    break 2
7077  fi
7078done
7079done
7080IFS=$as_save_IFS
7081
7082fi
7083fi
7084RANLIB=$ac_cv_prog_RANLIB
7085if test -n "$RANLIB"; then
7086  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
7087$as_echo "$RANLIB" >&6; }
7088else
7089  { $as_echo "$as_me:$LINENO: result: no" >&5
7090$as_echo "no" >&6; }
7091fi
7092
7093
7094fi
7095if test -z "$ac_cv_prog_RANLIB"; then
7096  ac_ct_RANLIB=$RANLIB
7097  # Extract the first word of "ranlib", so it can be a program name with args.
7098set dummy ranlib; ac_word=$2
7099{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7100$as_echo_n "checking for $ac_word... " >&6; }
7101if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7102  $as_echo_n "(cached) " >&6
7103else
7104  if test -n "$ac_ct_RANLIB"; then
7105  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7106else
7107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108for as_dir in $PATH
7109do
7110  IFS=$as_save_IFS
7111  test -z "$as_dir" && as_dir=.
7112  for ac_exec_ext in '' $ac_executable_extensions; do
7113  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7114    ac_cv_prog_ac_ct_RANLIB="ranlib"
7115    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7116    break 2
7117  fi
7118done
7119done
7120IFS=$as_save_IFS
7121
7122fi
7123fi
7124ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7125if test -n "$ac_ct_RANLIB"; then
7126  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7127$as_echo "$ac_ct_RANLIB" >&6; }
7128else
7129  { $as_echo "$as_me:$LINENO: result: no" >&5
7130$as_echo "no" >&6; }
7131fi
7132
7133  if test "x$ac_ct_RANLIB" = x; then
7134    RANLIB=":"
7135  else
7136    case $cross_compiling:$ac_tool_warned in
7137yes:)
7138{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7139whose name does not start with the host triplet.  If you think this
7140configuration is useful to you, please write to autoconf@gnu.org." >&5
7141$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7142whose name does not start with the host triplet.  If you think this
7143configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7144ac_tool_warned=yes ;;
7145esac
7146    RANLIB=$ac_ct_RANLIB
7147  fi
7148else
7149  RANLIB="$ac_cv_prog_RANLIB"
7150fi
7151
7152test -z "$RANLIB" && RANLIB=:
7153
7154
7155
7156
7157
7158
7159# Determine commands to create old-style static archives.
7160old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7161old_postinstall_cmds='chmod 644 $oldlib'
7162old_postuninstall_cmds=
7163
7164if test -n "$RANLIB"; then
7165  case $host_os in
7166  openbsd*)
7167    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7168    ;;
7169  *)
7170    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7171    ;;
7172  esac
7173  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7174fi
7175
7176
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
7205
7206
7207
7208
7209# If no C compiler was specified, use CC.
7210LTCC=${LTCC-"$CC"}
7211
7212# If no C compiler flags were specified, use CFLAGS.
7213LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7214
7215# Allow CC to be a program name with arguments.
7216compiler=$CC
7217
7218
7219# Check for command to grab the raw symbol name followed by C symbol from nm.
7220{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7221$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7222if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7223  $as_echo_n "(cached) " >&6
7224else
7225
7226# These are sane defaults that work on at least a few old systems.
7227# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7228
7229# Character class describing NM global symbol codes.
7230symcode='[BCDEGRST]'
7231
7232# Regexp to match symbols that can be accessed directly from C.
7233sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7234
7235# Define system-specific variables.
7236case $host_os in
7237aix*)
7238  symcode='[BCDT]'
7239  ;;
7240cygwin* | mingw* | pw32*)
7241  symcode='[ABCDGISTW]'
7242  ;;
7243hpux*)
7244  if test "$host_cpu" = ia64; then
7245    symcode='[ABCDEGRST]'
7246  fi
7247  ;;
7248irix* | nonstopux*)
7249  symcode='[BCDEGRST]'
7250  ;;
7251osf*)
7252  symcode='[BCDEGQRST]'
7253  ;;
7254solaris*)
7255  symcode='[BDRT]'
7256  ;;
7257sco3.2v5*)
7258  symcode='[DT]'
7259  ;;
7260sysv4.2uw2*)
7261  symcode='[DT]'
7262  ;;
7263sysv5* | sco5v6* | unixware* | OpenUNIX*)
7264  symcode='[ABDT]'
7265  ;;
7266sysv4)
7267  symcode='[DFNSTU]'
7268  ;;
7269esac
7270
7271# If we're using GNU nm, then use its standard symbol codes.
7272case `$NM -V 2>&1` in
7273*GNU* | *'with BFD'*)
7274  symcode='[ABCDGIRSTW]' ;;
7275esac
7276
7277# Transform an extracted symbol line into a proper C declaration.
7278# Some systems (esp. on ia64) link data and code symbols differently,
7279# so use this general approach.
7280lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7281
7282# Transform an extracted symbol line into symbol name and symbol address
7283lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7284lt_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'"
7285
7286# Handle CRLF in mingw tool chain
7287opt_cr=
7288case $build_os in
7289mingw*)
7290  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7291  ;;
7292esac
7293
7294# Try without a prefix underscore, then with it.
7295for ac_symprfx in "" "_"; do
7296
7297  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7298  symxfrm="\\1 $ac_symprfx\\2 \\2"
7299
7300  # Write the raw and C identifiers.
7301  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7302    # Fake it for dumpbin and say T for any non-static function
7303    # and D for any global variable.
7304    # Also find C++ and __fastcall symbols from MSVC++,
7305    # which start with @ or ?.
7306    lt_cv_sys_global_symbol_pipe="$AWK '"\
7307"     {last_section=section; section=\$ 3};"\
7308"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7309"     \$ 0!~/External *\|/{next};"\
7310"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7311"     {if(hide[section]) next};"\
7312"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7313"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7314"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7315"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7316"     ' prfx=^$ac_symprfx"
7317  else
7318    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7319  fi
7320
7321  # Check to see that the pipe works correctly.
7322  pipe_works=no
7323
7324  rm -f conftest*
7325  cat > conftest.$ac_ext <<_LT_EOF
7326#ifdef __cplusplus
7327extern "C" {
7328#endif
7329char nm_test_var;
7330void nm_test_func(void);
7331void nm_test_func(void){}
7332#ifdef __cplusplus
7333}
7334#endif
7335int main(){nm_test_var='a';nm_test_func();return(0);}
7336_LT_EOF
7337
7338  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7339  (eval $ac_compile) 2>&5
7340  ac_status=$?
7341  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342  (exit $ac_status); }; then
7343    # Now try to grab the symbols.
7344    nlist=conftest.nm
7345    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7346  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7347  ac_status=$?
7348  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349  (exit $ac_status); } && test -s "$nlist"; then
7350      # Try sorting and uniquifying the output.
7351      if sort "$nlist" | uniq > "$nlist"T; then
7352	mv -f "$nlist"T "$nlist"
7353      else
7354	rm -f "$nlist"T
7355      fi
7356
7357      # Make sure that we snagged all the symbols we need.
7358      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7359	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7360	  cat <<_LT_EOF > conftest.$ac_ext
7361#ifdef __cplusplus
7362extern "C" {
7363#endif
7364
7365_LT_EOF
7366	  # Now generate the symbol file.
7367	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7368
7369	  cat <<_LT_EOF >> conftest.$ac_ext
7370
7371/* The mapping between symbol names and symbols.  */
7372const struct {
7373  const char *name;
7374  void       *address;
7375}
7376lt__PROGRAM__LTX_preloaded_symbols[] =
7377{
7378  { "@PROGRAM@", (void *) 0 },
7379_LT_EOF
7380	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7381	  cat <<\_LT_EOF >> conftest.$ac_ext
7382  {0, (void *) 0}
7383};
7384
7385/* This works around a problem in FreeBSD linker */
7386#ifdef FREEBSD_WORKAROUND
7387static const void *lt_preloaded_setup() {
7388  return lt__PROGRAM__LTX_preloaded_symbols;
7389}
7390#endif
7391
7392#ifdef __cplusplus
7393}
7394#endif
7395_LT_EOF
7396	  # Now try linking the two files.
7397	  mv conftest.$ac_objext conftstm.$ac_objext
7398	  lt_save_LIBS="$LIBS"
7399	  lt_save_CFLAGS="$CFLAGS"
7400	  LIBS="conftstm.$ac_objext"
7401	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7402	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403  (eval $ac_link) 2>&5
7404  ac_status=$?
7405  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7407	    pipe_works=yes
7408	  fi
7409	  LIBS="$lt_save_LIBS"
7410	  CFLAGS="$lt_save_CFLAGS"
7411	else
7412	  echo "cannot find nm_test_func in $nlist" >&5
7413	fi
7414      else
7415	echo "cannot find nm_test_var in $nlist" >&5
7416      fi
7417    else
7418      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7419    fi
7420  else
7421    echo "$progname: failed program was:" >&5
7422    cat conftest.$ac_ext >&5
7423  fi
7424  rm -rf conftest* conftst*
7425
7426  # Do not use the global_symbol_pipe unless it works.
7427  if test "$pipe_works" = yes; then
7428    break
7429  else
7430    lt_cv_sys_global_symbol_pipe=
7431  fi
7432done
7433
7434fi
7435
7436if test -z "$lt_cv_sys_global_symbol_pipe"; then
7437  lt_cv_sys_global_symbol_to_cdecl=
7438fi
7439if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7440  { $as_echo "$as_me:$LINENO: result: failed" >&5
7441$as_echo "failed" >&6; }
7442else
7443  { $as_echo "$as_me:$LINENO: result: ok" >&5
7444$as_echo "ok" >&6; }
7445fi
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468# Check whether --enable-libtool-lock was given.
7469if test "${enable_libtool_lock+set}" = set; then
7470  enableval=$enable_libtool_lock;
7471fi
7472
7473test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7474
7475# Some flags need to be propagated to the compiler or linker for good
7476# libtool support.
7477case $host in
7478ia64-*-hpux*)
7479  # Find out which ABI we are using.
7480  echo 'int i;' > conftest.$ac_ext
7481  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482  (eval $ac_compile) 2>&5
7483  ac_status=$?
7484  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485  (exit $ac_status); }; then
7486    case `/usr/bin/file conftest.$ac_objext` in
7487      *ELF-32*)
7488	HPUX_IA64_MODE="32"
7489	;;
7490      *ELF-64*)
7491	HPUX_IA64_MODE="64"
7492	;;
7493    esac
7494  fi
7495  rm -rf conftest*
7496  ;;
7497*-*-irix6*)
7498  # Find out which ABI we are using.
7499  echo '#line 7499 "configure"' > conftest.$ac_ext
7500  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7501  (eval $ac_compile) 2>&5
7502  ac_status=$?
7503  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504  (exit $ac_status); }; then
7505    if test "$lt_cv_prog_gnu_ld" = yes; then
7506      case `/usr/bin/file conftest.$ac_objext` in
7507	*32-bit*)
7508	  LD="${LD-ld} -melf32bsmip"
7509	  ;;
7510	*N32*)
7511	  LD="${LD-ld} -melf32bmipn32"
7512	  ;;
7513	*64-bit*)
7514	  LD="${LD-ld} -melf64bmip"
7515	;;
7516      esac
7517    else
7518      case `/usr/bin/file conftest.$ac_objext` in
7519	*32-bit*)
7520	  LD="${LD-ld} -32"
7521	  ;;
7522	*N32*)
7523	  LD="${LD-ld} -n32"
7524	  ;;
7525	*64-bit*)
7526	  LD="${LD-ld} -64"
7527	  ;;
7528      esac
7529    fi
7530  fi
7531  rm -rf conftest*
7532  ;;
7533
7534x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7535s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7536  # Find out which ABI we are using.
7537  echo 'int i;' > conftest.$ac_ext
7538  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7539  (eval $ac_compile) 2>&5
7540  ac_status=$?
7541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542  (exit $ac_status); }; then
7543    case `/usr/bin/file conftest.o` in
7544      *32-bit*)
7545	case $host in
7546	  x86_64-*kfreebsd*-gnu)
7547	    LD="${LD-ld} -m elf_i386_fbsd"
7548	    ;;
7549	  x86_64-*linux*)
7550	    LD="${LD-ld} -m elf_i386"
7551	    ;;
7552	  ppc64-*linux*|powerpc64-*linux*)
7553	    LD="${LD-ld} -m elf32ppclinux"
7554	    ;;
7555	  s390x-*linux*)
7556	    LD="${LD-ld} -m elf_s390"
7557	    ;;
7558	  sparc64-*linux*)
7559	    LD="${LD-ld} -m elf32_sparc"
7560	    ;;
7561	esac
7562	;;
7563      *64-bit*)
7564	case $host in
7565	  x86_64-*kfreebsd*-gnu)
7566	    LD="${LD-ld} -m elf_x86_64_fbsd"
7567	    ;;
7568	  x86_64-*linux*)
7569	    LD="${LD-ld} -m elf_x86_64"
7570	    ;;
7571	  ppc*-*linux*|powerpc*-*linux*)
7572	    LD="${LD-ld} -m elf64ppc"
7573	    ;;
7574	  s390*-*linux*|s390*-*tpf*)
7575	    LD="${LD-ld} -m elf64_s390"
7576	    ;;
7577	  sparc*-*linux*)
7578	    LD="${LD-ld} -m elf64_sparc"
7579	    ;;
7580	esac
7581	;;
7582    esac
7583  fi
7584  rm -rf conftest*
7585  ;;
7586
7587*-*-sco3.2v5*)
7588  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7589  SAVE_CFLAGS="$CFLAGS"
7590  CFLAGS="$CFLAGS -belf"
7591  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7592$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7593if test "${lt_cv_cc_needs_belf+set}" = set; then
7594  $as_echo_n "(cached) " >&6
7595else
7596  ac_ext=c
7597ac_cpp='$CPP $CPPFLAGS'
7598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7600ac_compiler_gnu=$ac_cv_c_compiler_gnu
7601
7602     cat >conftest.$ac_ext <<_ACEOF
7603/* confdefs.h.  */
7604_ACEOF
7605cat confdefs.h >>conftest.$ac_ext
7606cat >>conftest.$ac_ext <<_ACEOF
7607/* end confdefs.h.  */
7608
7609int
7610main ()
7611{
7612
7613  ;
7614  return 0;
7615}
7616_ACEOF
7617rm -f conftest.$ac_objext conftest$ac_exeext
7618if { (ac_try="$ac_link"
7619case "(($ac_try" in
7620  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621  *) ac_try_echo=$ac_try;;
7622esac
7623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7624$as_echo "$ac_try_echo") >&5
7625  (eval "$ac_link") 2>conftest.er1
7626  ac_status=$?
7627  grep -v '^ *+' conftest.er1 >conftest.err
7628  rm -f conftest.er1
7629  cat conftest.err >&5
7630  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631  (exit $ac_status); } && {
7632	 test -z "$ac_c_werror_flag" ||
7633	 test ! -s conftest.err
7634       } && test -s conftest$ac_exeext && {
7635	 test "$cross_compiling" = yes ||
7636	 $as_test_x conftest$ac_exeext
7637       }; then
7638  lt_cv_cc_needs_belf=yes
7639else
7640  $as_echo "$as_me: failed program was:" >&5
7641sed 's/^/| /' conftest.$ac_ext >&5
7642
7643	lt_cv_cc_needs_belf=no
7644fi
7645
7646rm -rf conftest.dSYM
7647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7648      conftest$ac_exeext conftest.$ac_ext
7649     ac_ext=c
7650ac_cpp='$CPP $CPPFLAGS'
7651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654
7655fi
7656{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7657$as_echo "$lt_cv_cc_needs_belf" >&6; }
7658  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7659    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7660    CFLAGS="$SAVE_CFLAGS"
7661  fi
7662  ;;
7663sparc*-*solaris*)
7664  # Find out which ABI we are using.
7665  echo 'int i;' > conftest.$ac_ext
7666  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7667  (eval $ac_compile) 2>&5
7668  ac_status=$?
7669  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670  (exit $ac_status); }; then
7671    case `/usr/bin/file conftest.o` in
7672    *64-bit*)
7673      case $lt_cv_prog_gnu_ld in
7674      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7675      *)
7676	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7677	  LD="${LD-ld} -64"
7678	fi
7679	;;
7680      esac
7681      ;;
7682    esac
7683  fi
7684  rm -rf conftest*
7685  ;;
7686esac
7687
7688need_locks="$enable_libtool_lock"
7689
7690
7691  case $host_os in
7692    rhapsody* | darwin*)
7693    if test -n "$ac_tool_prefix"; then
7694  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7695set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7696{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7697$as_echo_n "checking for $ac_word... " >&6; }
7698if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7699  $as_echo_n "(cached) " >&6
7700else
7701  if test -n "$DSYMUTIL"; then
7702  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7703else
7704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7705for as_dir in $PATH
7706do
7707  IFS=$as_save_IFS
7708  test -z "$as_dir" && as_dir=.
7709  for ac_exec_ext in '' $ac_executable_extensions; do
7710  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7711    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7712    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7713    break 2
7714  fi
7715done
7716done
7717IFS=$as_save_IFS
7718
7719fi
7720fi
7721DSYMUTIL=$ac_cv_prog_DSYMUTIL
7722if test -n "$DSYMUTIL"; then
7723  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7724$as_echo "$DSYMUTIL" >&6; }
7725else
7726  { $as_echo "$as_me:$LINENO: result: no" >&5
7727$as_echo "no" >&6; }
7728fi
7729
7730
7731fi
7732if test -z "$ac_cv_prog_DSYMUTIL"; then
7733  ac_ct_DSYMUTIL=$DSYMUTIL
7734  # Extract the first word of "dsymutil", so it can be a program name with args.
7735set dummy dsymutil; ac_word=$2
7736{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7737$as_echo_n "checking for $ac_word... " >&6; }
7738if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7739  $as_echo_n "(cached) " >&6
7740else
7741  if test -n "$ac_ct_DSYMUTIL"; then
7742  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7743else
7744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745for as_dir in $PATH
7746do
7747  IFS=$as_save_IFS
7748  test -z "$as_dir" && as_dir=.
7749  for ac_exec_ext in '' $ac_executable_extensions; do
7750  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7751    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7752    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7753    break 2
7754  fi
7755done
7756done
7757IFS=$as_save_IFS
7758
7759fi
7760fi
7761ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7762if test -n "$ac_ct_DSYMUTIL"; then
7763  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7764$as_echo "$ac_ct_DSYMUTIL" >&6; }
7765else
7766  { $as_echo "$as_me:$LINENO: result: no" >&5
7767$as_echo "no" >&6; }
7768fi
7769
7770  if test "x$ac_ct_DSYMUTIL" = x; then
7771    DSYMUTIL=":"
7772  else
7773    case $cross_compiling:$ac_tool_warned in
7774yes:)
7775{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7776whose name does not start with the host triplet.  If you think this
7777configuration is useful to you, please write to autoconf@gnu.org." >&5
7778$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7779whose name does not start with the host triplet.  If you think this
7780configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7781ac_tool_warned=yes ;;
7782esac
7783    DSYMUTIL=$ac_ct_DSYMUTIL
7784  fi
7785else
7786  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7787fi
7788
7789    if test -n "$ac_tool_prefix"; then
7790  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7791set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7792{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7793$as_echo_n "checking for $ac_word... " >&6; }
7794if test "${ac_cv_prog_NMEDIT+set}" = set; then
7795  $as_echo_n "(cached) " >&6
7796else
7797  if test -n "$NMEDIT"; then
7798  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7799else
7800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801for as_dir in $PATH
7802do
7803  IFS=$as_save_IFS
7804  test -z "$as_dir" && as_dir=.
7805  for ac_exec_ext in '' $ac_executable_extensions; do
7806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7808    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7809    break 2
7810  fi
7811done
7812done
7813IFS=$as_save_IFS
7814
7815fi
7816fi
7817NMEDIT=$ac_cv_prog_NMEDIT
7818if test -n "$NMEDIT"; then
7819  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7820$as_echo "$NMEDIT" >&6; }
7821else
7822  { $as_echo "$as_me:$LINENO: result: no" >&5
7823$as_echo "no" >&6; }
7824fi
7825
7826
7827fi
7828if test -z "$ac_cv_prog_NMEDIT"; then
7829  ac_ct_NMEDIT=$NMEDIT
7830  # Extract the first word of "nmedit", so it can be a program name with args.
7831set dummy nmedit; ac_word=$2
7832{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7833$as_echo_n "checking for $ac_word... " >&6; }
7834if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7835  $as_echo_n "(cached) " >&6
7836else
7837  if test -n "$ac_ct_NMEDIT"; then
7838  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7839else
7840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841for as_dir in $PATH
7842do
7843  IFS=$as_save_IFS
7844  test -z "$as_dir" && as_dir=.
7845  for ac_exec_ext in '' $ac_executable_extensions; do
7846  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7847    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7848    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7849    break 2
7850  fi
7851done
7852done
7853IFS=$as_save_IFS
7854
7855fi
7856fi
7857ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7858if test -n "$ac_ct_NMEDIT"; then
7859  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7860$as_echo "$ac_ct_NMEDIT" >&6; }
7861else
7862  { $as_echo "$as_me:$LINENO: result: no" >&5
7863$as_echo "no" >&6; }
7864fi
7865
7866  if test "x$ac_ct_NMEDIT" = x; then
7867    NMEDIT=":"
7868  else
7869    case $cross_compiling:$ac_tool_warned in
7870yes:)
7871{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7872whose name does not start with the host triplet.  If you think this
7873configuration is useful to you, please write to autoconf@gnu.org." >&5
7874$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7875whose name does not start with the host triplet.  If you think this
7876configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7877ac_tool_warned=yes ;;
7878esac
7879    NMEDIT=$ac_ct_NMEDIT
7880  fi
7881else
7882  NMEDIT="$ac_cv_prog_NMEDIT"
7883fi
7884
7885    if test -n "$ac_tool_prefix"; then
7886  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7887set dummy ${ac_tool_prefix}lipo; ac_word=$2
7888{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7889$as_echo_n "checking for $ac_word... " >&6; }
7890if test "${ac_cv_prog_LIPO+set}" = set; then
7891  $as_echo_n "(cached) " >&6
7892else
7893  if test -n "$LIPO"; then
7894  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7895else
7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899  IFS=$as_save_IFS
7900  test -z "$as_dir" && as_dir=.
7901  for ac_exec_ext in '' $ac_executable_extensions; do
7902  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7904    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7905    break 2
7906  fi
7907done
7908done
7909IFS=$as_save_IFS
7910
7911fi
7912fi
7913LIPO=$ac_cv_prog_LIPO
7914if test -n "$LIPO"; then
7915  { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7916$as_echo "$LIPO" >&6; }
7917else
7918  { $as_echo "$as_me:$LINENO: result: no" >&5
7919$as_echo "no" >&6; }
7920fi
7921
7922
7923fi
7924if test -z "$ac_cv_prog_LIPO"; then
7925  ac_ct_LIPO=$LIPO
7926  # Extract the first word of "lipo", so it can be a program name with args.
7927set dummy lipo; ac_word=$2
7928{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7929$as_echo_n "checking for $ac_word... " >&6; }
7930if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7931  $as_echo_n "(cached) " >&6
7932else
7933  if test -n "$ac_ct_LIPO"; then
7934  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7935else
7936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7937for as_dir in $PATH
7938do
7939  IFS=$as_save_IFS
7940  test -z "$as_dir" && as_dir=.
7941  for ac_exec_ext in '' $ac_executable_extensions; do
7942  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7943    ac_cv_prog_ac_ct_LIPO="lipo"
7944    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7945    break 2
7946  fi
7947done
7948done
7949IFS=$as_save_IFS
7950
7951fi
7952fi
7953ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7954if test -n "$ac_ct_LIPO"; then
7955  { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7956$as_echo "$ac_ct_LIPO" >&6; }
7957else
7958  { $as_echo "$as_me:$LINENO: result: no" >&5
7959$as_echo "no" >&6; }
7960fi
7961
7962  if test "x$ac_ct_LIPO" = x; then
7963    LIPO=":"
7964  else
7965    case $cross_compiling:$ac_tool_warned in
7966yes:)
7967{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7968whose name does not start with the host triplet.  If you think this
7969configuration is useful to you, please write to autoconf@gnu.org." >&5
7970$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7971whose name does not start with the host triplet.  If you think this
7972configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7973ac_tool_warned=yes ;;
7974esac
7975    LIPO=$ac_ct_LIPO
7976  fi
7977else
7978  LIPO="$ac_cv_prog_LIPO"
7979fi
7980
7981    if test -n "$ac_tool_prefix"; then
7982  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7983set dummy ${ac_tool_prefix}otool; ac_word=$2
7984{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7985$as_echo_n "checking for $ac_word... " >&6; }
7986if test "${ac_cv_prog_OTOOL+set}" = set; then
7987  $as_echo_n "(cached) " >&6
7988else
7989  if test -n "$OTOOL"; then
7990  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7991else
7992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993for as_dir in $PATH
7994do
7995  IFS=$as_save_IFS
7996  test -z "$as_dir" && as_dir=.
7997  for ac_exec_ext in '' $ac_executable_extensions; do
7998  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7999    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8000    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8001    break 2
8002  fi
8003done
8004done
8005IFS=$as_save_IFS
8006
8007fi
8008fi
8009OTOOL=$ac_cv_prog_OTOOL
8010if test -n "$OTOOL"; then
8011  { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
8012$as_echo "$OTOOL" >&6; }
8013else
8014  { $as_echo "$as_me:$LINENO: result: no" >&5
8015$as_echo "no" >&6; }
8016fi
8017
8018
8019fi
8020if test -z "$ac_cv_prog_OTOOL"; then
8021  ac_ct_OTOOL=$OTOOL
8022  # Extract the first word of "otool", so it can be a program name with args.
8023set dummy otool; ac_word=$2
8024{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8025$as_echo_n "checking for $ac_word... " >&6; }
8026if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
8027  $as_echo_n "(cached) " >&6
8028else
8029  if test -n "$ac_ct_OTOOL"; then
8030  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8031else
8032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033for as_dir in $PATH
8034do
8035  IFS=$as_save_IFS
8036  test -z "$as_dir" && as_dir=.
8037  for ac_exec_ext in '' $ac_executable_extensions; do
8038  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8039    ac_cv_prog_ac_ct_OTOOL="otool"
8040    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8041    break 2
8042  fi
8043done
8044done
8045IFS=$as_save_IFS
8046
8047fi
8048fi
8049ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8050if test -n "$ac_ct_OTOOL"; then
8051  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
8052$as_echo "$ac_ct_OTOOL" >&6; }
8053else
8054  { $as_echo "$as_me:$LINENO: result: no" >&5
8055$as_echo "no" >&6; }
8056fi
8057
8058  if test "x$ac_ct_OTOOL" = x; then
8059    OTOOL=":"
8060  else
8061    case $cross_compiling:$ac_tool_warned in
8062yes:)
8063{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8064whose name does not start with the host triplet.  If you think this
8065configuration is useful to you, please write to autoconf@gnu.org." >&5
8066$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8067whose name does not start with the host triplet.  If you think this
8068configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8069ac_tool_warned=yes ;;
8070esac
8071    OTOOL=$ac_ct_OTOOL
8072  fi
8073else
8074  OTOOL="$ac_cv_prog_OTOOL"
8075fi
8076
8077    if test -n "$ac_tool_prefix"; then
8078  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8079set dummy ${ac_tool_prefix}otool64; ac_word=$2
8080{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8081$as_echo_n "checking for $ac_word... " >&6; }
8082if test "${ac_cv_prog_OTOOL64+set}" = set; then
8083  $as_echo_n "(cached) " >&6
8084else
8085  if test -n "$OTOOL64"; then
8086  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8087else
8088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089for as_dir in $PATH
8090do
8091  IFS=$as_save_IFS
8092  test -z "$as_dir" && as_dir=.
8093  for ac_exec_ext in '' $ac_executable_extensions; do
8094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8095    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8096    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8097    break 2
8098  fi
8099done
8100done
8101IFS=$as_save_IFS
8102
8103fi
8104fi
8105OTOOL64=$ac_cv_prog_OTOOL64
8106if test -n "$OTOOL64"; then
8107  { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
8108$as_echo "$OTOOL64" >&6; }
8109else
8110  { $as_echo "$as_me:$LINENO: result: no" >&5
8111$as_echo "no" >&6; }
8112fi
8113
8114
8115fi
8116if test -z "$ac_cv_prog_OTOOL64"; then
8117  ac_ct_OTOOL64=$OTOOL64
8118  # Extract the first word of "otool64", so it can be a program name with args.
8119set dummy otool64; ac_word=$2
8120{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8121$as_echo_n "checking for $ac_word... " >&6; }
8122if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
8123  $as_echo_n "(cached) " >&6
8124else
8125  if test -n "$ac_ct_OTOOL64"; then
8126  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8127else
8128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129for as_dir in $PATH
8130do
8131  IFS=$as_save_IFS
8132  test -z "$as_dir" && as_dir=.
8133  for ac_exec_ext in '' $ac_executable_extensions; do
8134  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135    ac_cv_prog_ac_ct_OTOOL64="otool64"
8136    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8137    break 2
8138  fi
8139done
8140done
8141IFS=$as_save_IFS
8142
8143fi
8144fi
8145ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8146if test -n "$ac_ct_OTOOL64"; then
8147  { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
8148$as_echo "$ac_ct_OTOOL64" >&6; }
8149else
8150  { $as_echo "$as_me:$LINENO: result: no" >&5
8151$as_echo "no" >&6; }
8152fi
8153
8154  if test "x$ac_ct_OTOOL64" = x; then
8155    OTOOL64=":"
8156  else
8157    case $cross_compiling:$ac_tool_warned in
8158yes:)
8159{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8160whose name does not start with the host triplet.  If you think this
8161configuration is useful to you, please write to autoconf@gnu.org." >&5
8162$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8163whose name does not start with the host triplet.  If you think this
8164configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8165ac_tool_warned=yes ;;
8166esac
8167    OTOOL64=$ac_ct_OTOOL64
8168  fi
8169else
8170  OTOOL64="$ac_cv_prog_OTOOL64"
8171fi
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8200$as_echo_n "checking for -single_module linker flag... " >&6; }
8201if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8202  $as_echo_n "(cached) " >&6
8203else
8204  lt_cv_apple_cc_single_mod=no
8205      if test -z "${LT_MULTI_MODULE}"; then
8206	# By default we will add the -single_module flag. You can override
8207	# by either setting the environment variable LT_MULTI_MODULE
8208	# non-empty at configure time, or by adding -multi_module to the
8209	# link flags.
8210	rm -rf libconftest.dylib*
8211	echo "int foo(void){return 1;}" > conftest.c
8212	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8213-dynamiclib -Wl,-single_module conftest.c" >&5
8214	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8215	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8216        _lt_result=$?
8217	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8218	  lt_cv_apple_cc_single_mod=yes
8219	else
8220	  cat conftest.err >&5
8221	fi
8222	rm -rf libconftest.dylib*
8223	rm -f conftest.*
8224      fi
8225fi
8226{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8227$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8228    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8229$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8230if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8231  $as_echo_n "(cached) " >&6
8232else
8233  lt_cv_ld_exported_symbols_list=no
8234      save_LDFLAGS=$LDFLAGS
8235      echo "_main" > conftest.sym
8236      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8237      cat >conftest.$ac_ext <<_ACEOF
8238/* confdefs.h.  */
8239_ACEOF
8240cat confdefs.h >>conftest.$ac_ext
8241cat >>conftest.$ac_ext <<_ACEOF
8242/* end confdefs.h.  */
8243
8244int
8245main ()
8246{
8247
8248  ;
8249  return 0;
8250}
8251_ACEOF
8252rm -f conftest.$ac_objext conftest$ac_exeext
8253if { (ac_try="$ac_link"
8254case "(($ac_try" in
8255  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256  *) ac_try_echo=$ac_try;;
8257esac
8258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8259$as_echo "$ac_try_echo") >&5
8260  (eval "$ac_link") 2>conftest.er1
8261  ac_status=$?
8262  grep -v '^ *+' conftest.er1 >conftest.err
8263  rm -f conftest.er1
8264  cat conftest.err >&5
8265  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266  (exit $ac_status); } && {
8267	 test -z "$ac_c_werror_flag" ||
8268	 test ! -s conftest.err
8269       } && test -s conftest$ac_exeext && {
8270	 test "$cross_compiling" = yes ||
8271	 $as_test_x conftest$ac_exeext
8272       }; then
8273  lt_cv_ld_exported_symbols_list=yes
8274else
8275  $as_echo "$as_me: failed program was:" >&5
8276sed 's/^/| /' conftest.$ac_ext >&5
8277
8278	lt_cv_ld_exported_symbols_list=no
8279fi
8280
8281rm -rf conftest.dSYM
8282rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8283      conftest$ac_exeext conftest.$ac_ext
8284	LDFLAGS="$save_LDFLAGS"
8285
8286fi
8287{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8288$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8289    case $host_os in
8290    rhapsody* | darwin1.[012])
8291      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8292    darwin1.*)
8293      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8294    darwin*) # darwin 5.x on
8295      # if running on 10.5 or later, the deployment target defaults
8296      # to the OS version, if on x86, and 10.4, the deployment
8297      # target defaults to 10.4. Don't you love it?
8298      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8299	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8300	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8301	10.[012]*)
8302	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8303	10.*)
8304	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8305      esac
8306    ;;
8307  esac
8308    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8309      _lt_dar_single_mod='$single_module'
8310    fi
8311    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8312      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8313    else
8314      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8315    fi
8316    if test "$DSYMUTIL" != ":"; then
8317      _lt_dsymutil='~$DSYMUTIL $lib || :'
8318    else
8319      _lt_dsymutil=
8320    fi
8321    ;;
8322  esac
8323
8324
8325for ac_header in dlfcn.h
8326do
8327as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8328{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8329$as_echo_n "checking for $ac_header... " >&6; }
8330if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8331  $as_echo_n "(cached) " >&6
8332else
8333  cat >conftest.$ac_ext <<_ACEOF
8334/* confdefs.h.  */
8335_ACEOF
8336cat confdefs.h >>conftest.$ac_ext
8337cat >>conftest.$ac_ext <<_ACEOF
8338/* end confdefs.h.  */
8339$ac_includes_default
8340
8341#include <$ac_header>
8342_ACEOF
8343rm -f conftest.$ac_objext
8344if { (ac_try="$ac_compile"
8345case "(($ac_try" in
8346  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347  *) ac_try_echo=$ac_try;;
8348esac
8349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8350$as_echo "$ac_try_echo") >&5
8351  (eval "$ac_compile") 2>conftest.er1
8352  ac_status=$?
8353  grep -v '^ *+' conftest.er1 >conftest.err
8354  rm -f conftest.er1
8355  cat conftest.err >&5
8356  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357  (exit $ac_status); } && {
8358	 test -z "$ac_c_werror_flag" ||
8359	 test ! -s conftest.err
8360       } && test -s conftest.$ac_objext; then
8361  eval "$as_ac_Header=yes"
8362else
8363  $as_echo "$as_me: failed program was:" >&5
8364sed 's/^/| /' conftest.$ac_ext >&5
8365
8366	eval "$as_ac_Header=no"
8367fi
8368
8369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370fi
8371ac_res=`eval 'as_val=${'$as_ac_Header'}
8372		 $as_echo "$as_val"'`
8373	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8374$as_echo "$ac_res" >&6; }
8375if test `eval 'as_val=${'$as_ac_Header'}
8376		 $as_echo "$as_val"'` = yes; then
8377  cat >>confdefs.h <<_ACEOF
8378#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8379_ACEOF
8380
8381fi
8382
8383done
8384
8385
8386
8387# Set options
8388
8389
8390
8391        enable_dlopen=no
8392
8393
8394  enable_win32_dll=no
8395
8396
8397            # Check whether --enable-shared was given.
8398if test "${enable_shared+set}" = set; then
8399  enableval=$enable_shared; p=${PACKAGE-default}
8400    case $enableval in
8401    yes) enable_shared=yes ;;
8402    no) enable_shared=no ;;
8403    *)
8404      enable_shared=no
8405      # Look at the argument we got.  We use all the common list separators.
8406      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8407      for pkg in $enableval; do
8408	IFS="$lt_save_ifs"
8409	if test "X$pkg" = "X$p"; then
8410	  enable_shared=yes
8411	fi
8412      done
8413      IFS="$lt_save_ifs"
8414      ;;
8415    esac
8416else
8417  enable_shared=yes
8418fi
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428  # Check whether --enable-static was given.
8429if test "${enable_static+set}" = set; then
8430  enableval=$enable_static; p=${PACKAGE-default}
8431    case $enableval in
8432    yes) enable_static=yes ;;
8433    no) enable_static=no ;;
8434    *)
8435     enable_static=no
8436      # Look at the argument we got.  We use all the common list separators.
8437      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8438      for pkg in $enableval; do
8439	IFS="$lt_save_ifs"
8440	if test "X$pkg" = "X$p"; then
8441	  enable_static=yes
8442	fi
8443      done
8444      IFS="$lt_save_ifs"
8445      ;;
8446    esac
8447else
8448  enable_static=yes
8449fi
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460# Check whether --with-pic was given.
8461if test "${with_pic+set}" = set; then
8462  withval=$with_pic; pic_mode="$withval"
8463else
8464  pic_mode=default
8465fi
8466
8467
8468test -z "$pic_mode" && pic_mode=default
8469
8470
8471
8472
8473
8474
8475
8476  # Check whether --enable-fast-install was given.
8477if test "${enable_fast_install+set}" = set; then
8478  enableval=$enable_fast_install; p=${PACKAGE-default}
8479    case $enableval in
8480    yes) enable_fast_install=yes ;;
8481    no) enable_fast_install=no ;;
8482    *)
8483      enable_fast_install=no
8484      # Look at the argument we got.  We use all the common list separators.
8485      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8486      for pkg in $enableval; do
8487	IFS="$lt_save_ifs"
8488	if test "X$pkg" = "X$p"; then
8489	  enable_fast_install=yes
8490	fi
8491      done
8492      IFS="$lt_save_ifs"
8493      ;;
8494    esac
8495else
8496  enable_fast_install=yes
8497fi
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509# This can be used to rebuild libtool when needed
8510LIBTOOL_DEPS="$ltmain"
8511
8512# Always use our own libtool.
8513LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539test -z "$LN_S" && LN_S="ln -s"
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554if test -n "${ZSH_VERSION+set}" ; then
8555   setopt NO_GLOB_SUBST
8556fi
8557
8558{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
8559$as_echo_n "checking for objdir... " >&6; }
8560if test "${lt_cv_objdir+set}" = set; then
8561  $as_echo_n "(cached) " >&6
8562else
8563  rm -f .libs 2>/dev/null
8564mkdir .libs 2>/dev/null
8565if test -d .libs; then
8566  lt_cv_objdir=.libs
8567else
8568  # MS-DOS does not allow filenames that begin with a dot.
8569  lt_cv_objdir=_libs
8570fi
8571rmdir .libs 2>/dev/null
8572fi
8573{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8574$as_echo "$lt_cv_objdir" >&6; }
8575objdir=$lt_cv_objdir
8576
8577
8578
8579
8580
8581cat >>confdefs.h <<_ACEOF
8582#define LT_OBJDIR "$lt_cv_objdir/"
8583_ACEOF
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601case $host_os in
8602aix3*)
8603  # AIX sometimes has problems with the GCC collect2 program.  For some
8604  # reason, if we set the COLLECT_NAMES environment variable, the problems
8605  # vanish in a puff of smoke.
8606  if test "X${COLLECT_NAMES+set}" != Xset; then
8607    COLLECT_NAMES=
8608    export COLLECT_NAMES
8609  fi
8610  ;;
8611esac
8612
8613# Sed substitution that helps us do robust quoting.  It backslashifies
8614# metacharacters that are still active within double-quoted strings.
8615sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8616
8617# Same as above, but do not quote variable references.
8618double_quote_subst='s/\(["`\\]\)/\\\1/g'
8619
8620# Sed substitution to delay expansion of an escaped shell variable in a
8621# double_quote_subst'ed string.
8622delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8623
8624# Sed substitution to delay expansion of an escaped single quote.
8625delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8626
8627# Sed substitution to avoid accidental globbing in evaled expressions
8628no_glob_subst='s/\*/\\\*/g'
8629
8630# Global variables:
8631ofile=libtool
8632can_build_shared=yes
8633
8634# All known linkers require a `.a' archive for static linking (except MSVC,
8635# which needs '.lib').
8636libext=a
8637
8638with_gnu_ld="$lt_cv_prog_gnu_ld"
8639
8640old_CC="$CC"
8641old_CFLAGS="$CFLAGS"
8642
8643# Set sane defaults for various variables
8644test -z "$CC" && CC=cc
8645test -z "$LTCC" && LTCC=$CC
8646test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8647test -z "$LD" && LD=ld
8648test -z "$ac_objext" && ac_objext=o
8649
8650for cc_temp in $compiler""; do
8651  case $cc_temp in
8652    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8653    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8654    \-*) ;;
8655    *) break;;
8656  esac
8657done
8658cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8659
8660
8661# Only perform the check for file, if the check method requires it
8662test -z "$MAGIC_CMD" && MAGIC_CMD=file
8663case $deplibs_check_method in
8664file_magic*)
8665  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8666    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8667$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8668if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8669  $as_echo_n "(cached) " >&6
8670else
8671  case $MAGIC_CMD in
8672[\\/*] |  ?:[\\/]*)
8673  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8674  ;;
8675*)
8676  lt_save_MAGIC_CMD="$MAGIC_CMD"
8677  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8678  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8679  for ac_dir in $ac_dummy; do
8680    IFS="$lt_save_ifs"
8681    test -z "$ac_dir" && ac_dir=.
8682    if test -f $ac_dir/${ac_tool_prefix}file; then
8683      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8684      if test -n "$file_magic_test_file"; then
8685	case $deplibs_check_method in
8686	"file_magic "*)
8687	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8688	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8689	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8690	    $EGREP "$file_magic_regex" > /dev/null; then
8691	    :
8692	  else
8693	    cat <<_LT_EOF 1>&2
8694
8695*** Warning: the command libtool uses to detect shared libraries,
8696*** $file_magic_cmd, produces output that libtool cannot recognize.
8697*** The result is that libtool may fail to recognize shared libraries
8698*** as such.  This will affect the creation of libtool libraries that
8699*** depend on shared libraries, but programs linked with such libtool
8700*** libraries will work regardless of this problem.  Nevertheless, you
8701*** may want to report the problem to your system manager and/or to
8702*** bug-libtool@gnu.org
8703
8704_LT_EOF
8705	  fi ;;
8706	esac
8707      fi
8708      break
8709    fi
8710  done
8711  IFS="$lt_save_ifs"
8712  MAGIC_CMD="$lt_save_MAGIC_CMD"
8713  ;;
8714esac
8715fi
8716
8717MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8718if test -n "$MAGIC_CMD"; then
8719  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8720$as_echo "$MAGIC_CMD" >&6; }
8721else
8722  { $as_echo "$as_me:$LINENO: result: no" >&5
8723$as_echo "no" >&6; }
8724fi
8725
8726
8727
8728
8729
8730if test -z "$lt_cv_path_MAGIC_CMD"; then
8731  if test -n "$ac_tool_prefix"; then
8732    { $as_echo "$as_me:$LINENO: checking for file" >&5
8733$as_echo_n "checking for file... " >&6; }
8734if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8735  $as_echo_n "(cached) " >&6
8736else
8737  case $MAGIC_CMD in
8738[\\/*] |  ?:[\\/]*)
8739  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8740  ;;
8741*)
8742  lt_save_MAGIC_CMD="$MAGIC_CMD"
8743  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8744  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8745  for ac_dir in $ac_dummy; do
8746    IFS="$lt_save_ifs"
8747    test -z "$ac_dir" && ac_dir=.
8748    if test -f $ac_dir/file; then
8749      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8750      if test -n "$file_magic_test_file"; then
8751	case $deplibs_check_method in
8752	"file_magic "*)
8753	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8754	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8755	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8756	    $EGREP "$file_magic_regex" > /dev/null; then
8757	    :
8758	  else
8759	    cat <<_LT_EOF 1>&2
8760
8761*** Warning: the command libtool uses to detect shared libraries,
8762*** $file_magic_cmd, produces output that libtool cannot recognize.
8763*** The result is that libtool may fail to recognize shared libraries
8764*** as such.  This will affect the creation of libtool libraries that
8765*** depend on shared libraries, but programs linked with such libtool
8766*** libraries will work regardless of this problem.  Nevertheless, you
8767*** may want to report the problem to your system manager and/or to
8768*** bug-libtool@gnu.org
8769
8770_LT_EOF
8771	  fi ;;
8772	esac
8773      fi
8774      break
8775    fi
8776  done
8777  IFS="$lt_save_ifs"
8778  MAGIC_CMD="$lt_save_MAGIC_CMD"
8779  ;;
8780esac
8781fi
8782
8783MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8784if test -n "$MAGIC_CMD"; then
8785  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8786$as_echo "$MAGIC_CMD" >&6; }
8787else
8788  { $as_echo "$as_me:$LINENO: result: no" >&5
8789$as_echo "no" >&6; }
8790fi
8791
8792
8793  else
8794    MAGIC_CMD=:
8795  fi
8796fi
8797
8798  fi
8799  ;;
8800esac
8801
8802# Use C for the default configuration in the libtool script
8803
8804lt_save_CC="$CC"
8805ac_ext=c
8806ac_cpp='$CPP $CPPFLAGS'
8807ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8808ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8809ac_compiler_gnu=$ac_cv_c_compiler_gnu
8810
8811
8812# Source file extension for C test sources.
8813ac_ext=c
8814
8815# Object file extension for compiled C test sources.
8816objext=o
8817objext=$objext
8818
8819# Code to be used in simple compile tests
8820lt_simple_compile_test_code="int some_variable = 0;"
8821
8822# Code to be used in simple link tests
8823lt_simple_link_test_code='int main(){return(0);}'
8824
8825
8826
8827
8828
8829
8830
8831# If no C compiler was specified, use CC.
8832LTCC=${LTCC-"$CC"}
8833
8834# If no C compiler flags were specified, use CFLAGS.
8835LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8836
8837# Allow CC to be a program name with arguments.
8838compiler=$CC
8839
8840# Save the default compiler, since it gets overwritten when the other
8841# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8842compiler_DEFAULT=$CC
8843
8844# save warnings/boilerplate of simple test code
8845ac_outfile=conftest.$ac_objext
8846echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8847eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8848_lt_compiler_boilerplate=`cat conftest.err`
8849$RM conftest*
8850
8851ac_outfile=conftest.$ac_objext
8852echo "$lt_simple_link_test_code" >conftest.$ac_ext
8853eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8854_lt_linker_boilerplate=`cat conftest.err`
8855$RM -r conftest*
8856
8857
8858## CAVEAT EMPTOR:
8859## There is no encapsulation within the following macros, do not change
8860## the running order or otherwise move them around unless you know exactly
8861## what you are doing...
8862if test -n "$compiler"; then
8863
8864lt_prog_compiler_no_builtin_flag=
8865
8866if test "$GCC" = yes; then
8867  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8868
8869  { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8870$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8871if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8872  $as_echo_n "(cached) " >&6
8873else
8874  lt_cv_prog_compiler_rtti_exceptions=no
8875   ac_outfile=conftest.$ac_objext
8876   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8877   lt_compiler_flag="-fno-rtti -fno-exceptions"
8878   # Insert the option either (1) after the last *FLAGS variable, or
8879   # (2) before a word containing "conftest.", or (3) at the end.
8880   # Note that $ac_compile itself does not contain backslashes and begins
8881   # with a dollar sign (not a hyphen), so the echo should work correctly.
8882   # The option is referenced via a variable to avoid confusing sed.
8883   lt_compile=`echo "$ac_compile" | $SED \
8884   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8885   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8886   -e 's:$: $lt_compiler_flag:'`
8887   (eval echo "\"\$as_me:8887: $lt_compile\"" >&5)
8888   (eval "$lt_compile" 2>conftest.err)
8889   ac_status=$?
8890   cat conftest.err >&5
8891   echo "$as_me:8891: \$? = $ac_status" >&5
8892   if (exit $ac_status) && test -s "$ac_outfile"; then
8893     # The compiler can only warn and ignore the option if not recognized
8894     # So say no if there are warnings other than the usual output.
8895     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8896     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8897     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8898       lt_cv_prog_compiler_rtti_exceptions=yes
8899     fi
8900   fi
8901   $RM conftest*
8902
8903fi
8904{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8905$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8906
8907if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8908    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8909else
8910    :
8911fi
8912
8913fi
8914
8915
8916
8917
8918
8919
8920  lt_prog_compiler_wl=
8921lt_prog_compiler_pic=
8922lt_prog_compiler_static=
8923
8924{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8925$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8926
8927  if test "$GCC" = yes; then
8928    lt_prog_compiler_wl='-Wl,'
8929    lt_prog_compiler_static='-static'
8930
8931    case $host_os in
8932      aix*)
8933      # All AIX code is PIC.
8934      if test "$host_cpu" = ia64; then
8935	# AIX 5 now supports IA64 processor
8936	lt_prog_compiler_static='-Bstatic'
8937      fi
8938      ;;
8939
8940    amigaos*)
8941      case $host_cpu in
8942      powerpc)
8943            # see comment about AmigaOS4 .so support
8944            lt_prog_compiler_pic='-fPIC'
8945        ;;
8946      m68k)
8947            # FIXME: we need at least 68020 code to build shared libraries, but
8948            # adding the `-m68020' flag to GCC prevents building anything better,
8949            # like `-m68040'.
8950            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8951        ;;
8952      esac
8953      ;;
8954
8955    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8956      # PIC is the default for these OSes.
8957      ;;
8958
8959    mingw* | cygwin* | pw32* | os2*)
8960      # This hack is so that the source file can tell whether it is being
8961      # built for inclusion in a dll (and should export symbols for example).
8962      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8963      # (--disable-auto-import) libraries
8964      lt_prog_compiler_pic='-DDLL_EXPORT'
8965      ;;
8966
8967    darwin* | rhapsody*)
8968      # PIC is the default on this platform
8969      # Common symbols not allowed in MH_DYLIB files
8970      lt_prog_compiler_pic='-fno-common'
8971      ;;
8972
8973    hpux*)
8974      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8975      # not for PA HP-UX.
8976      case $host_cpu in
8977      hppa*64*|ia64*)
8978	# +Z the default
8979	;;
8980      *)
8981	lt_prog_compiler_pic='-fPIC'
8982	;;
8983      esac
8984      ;;
8985
8986    interix[3-9]*)
8987      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8988      # Instead, we relocate shared libraries at runtime.
8989      ;;
8990
8991    msdosdjgpp*)
8992      # Just because we use GCC doesn't mean we suddenly get shared libraries
8993      # on systems that don't support them.
8994      lt_prog_compiler_can_build_shared=no
8995      enable_shared=no
8996      ;;
8997
8998    *nto* | *qnx*)
8999      # QNX uses GNU C++, but need to define -shared option too, otherwise
9000      # it will coredump.
9001      lt_prog_compiler_pic='-fPIC -shared'
9002      ;;
9003
9004    sysv4*MP*)
9005      if test -d /usr/nec; then
9006	lt_prog_compiler_pic=-Kconform_pic
9007      fi
9008      ;;
9009
9010    *)
9011      lt_prog_compiler_pic='-fPIC'
9012      ;;
9013    esac
9014  else
9015    # PORTME Check for flag to pass linker flags through the system compiler.
9016    case $host_os in
9017    aix*)
9018      lt_prog_compiler_wl='-Wl,'
9019      if test "$host_cpu" = ia64; then
9020	# AIX 5 now supports IA64 processor
9021	lt_prog_compiler_static='-Bstatic'
9022      else
9023	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9024      fi
9025      ;;
9026
9027    mingw* | cygwin* | pw32* | os2*)
9028      # This hack is so that the source file can tell whether it is being
9029      # built for inclusion in a dll (and should export symbols for example).
9030      lt_prog_compiler_pic='-DDLL_EXPORT'
9031      ;;
9032
9033    hpux9* | hpux10* | hpux11*)
9034      lt_prog_compiler_wl='-Wl,'
9035      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9036      # not for PA HP-UX.
9037      case $host_cpu in
9038      hppa*64*|ia64*)
9039	# +Z the default
9040	;;
9041      *)
9042	lt_prog_compiler_pic='+Z'
9043	;;
9044      esac
9045      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9046      lt_prog_compiler_static='${wl}-a ${wl}archive'
9047      ;;
9048
9049    irix5* | irix6* | nonstopux*)
9050      lt_prog_compiler_wl='-Wl,'
9051      # PIC (with -KPIC) is the default.
9052      lt_prog_compiler_static='-non_shared'
9053      ;;
9054
9055    linux* | k*bsd*-gnu)
9056      case $cc_basename in
9057      icc* | ecc* | ifort*)
9058	lt_prog_compiler_wl='-Wl,'
9059	lt_prog_compiler_pic='-KPIC'
9060	lt_prog_compiler_static='-static'
9061        ;;
9062      pgcc* | pgf77* | pgf90* | pgf95*)
9063        # Portland Group compilers (*not* the Pentium gcc compiler,
9064	# which looks to be a dead project)
9065	lt_prog_compiler_wl='-Wl,'
9066	lt_prog_compiler_pic='-fpic'
9067	lt_prog_compiler_static='-Bstatic'
9068        ;;
9069      ccc*)
9070        lt_prog_compiler_wl='-Wl,'
9071        # All Alpha code is PIC.
9072        lt_prog_compiler_static='-non_shared'
9073        ;;
9074      xl*)
9075	# IBM XL C 8.0/Fortran 10.1 on PPC
9076	lt_prog_compiler_wl='-Wl,'
9077	lt_prog_compiler_pic='-qpic'
9078	lt_prog_compiler_static='-qstaticlink'
9079	;;
9080      *)
9081	case `$CC -V 2>&1 | sed 5q` in
9082	*Sun\ C*)
9083	  # Sun C 5.9
9084	  lt_prog_compiler_pic='-KPIC'
9085	  lt_prog_compiler_static='-Bstatic'
9086	  lt_prog_compiler_wl='-Wl,'
9087	  ;;
9088	*Sun\ F*)
9089	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9090	  lt_prog_compiler_pic='-KPIC'
9091	  lt_prog_compiler_static='-Bstatic'
9092	  lt_prog_compiler_wl=''
9093	  ;;
9094	esac
9095	;;
9096      esac
9097      ;;
9098
9099    newsos6)
9100      lt_prog_compiler_pic='-KPIC'
9101      lt_prog_compiler_static='-Bstatic'
9102      ;;
9103
9104    *nto* | *qnx*)
9105      # QNX uses GNU C++, but need to define -shared option too, otherwise
9106      # it will coredump.
9107      lt_prog_compiler_pic='-fPIC -shared'
9108      ;;
9109
9110    osf3* | osf4* | osf5*)
9111      lt_prog_compiler_wl='-Wl,'
9112      # All OSF/1 code is PIC.
9113      lt_prog_compiler_static='-non_shared'
9114      ;;
9115
9116    rdos*)
9117      lt_prog_compiler_static='-non_shared'
9118      ;;
9119
9120    solaris*)
9121      lt_prog_compiler_pic='-KPIC'
9122      lt_prog_compiler_static='-Bstatic'
9123      case $cc_basename in
9124      f77* | f90* | f95*)
9125	lt_prog_compiler_wl='-Qoption ld ';;
9126      *)
9127	lt_prog_compiler_wl='-Wl,';;
9128      esac
9129      ;;
9130
9131    sunos4*)
9132      lt_prog_compiler_wl='-Qoption ld '
9133      lt_prog_compiler_pic='-PIC'
9134      lt_prog_compiler_static='-Bstatic'
9135      ;;
9136
9137    sysv4 | sysv4.2uw2* | sysv4.3*)
9138      lt_prog_compiler_wl='-Wl,'
9139      lt_prog_compiler_pic='-KPIC'
9140      lt_prog_compiler_static='-Bstatic'
9141      ;;
9142
9143    sysv4*MP*)
9144      if test -d /usr/nec ;then
9145	lt_prog_compiler_pic='-Kconform_pic'
9146	lt_prog_compiler_static='-Bstatic'
9147      fi
9148      ;;
9149
9150    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9151      lt_prog_compiler_wl='-Wl,'
9152      lt_prog_compiler_pic='-KPIC'
9153      lt_prog_compiler_static='-Bstatic'
9154      ;;
9155
9156    unicos*)
9157      lt_prog_compiler_wl='-Wl,'
9158      lt_prog_compiler_can_build_shared=no
9159      ;;
9160
9161    uts4*)
9162      lt_prog_compiler_pic='-pic'
9163      lt_prog_compiler_static='-Bstatic'
9164      ;;
9165
9166    *)
9167      lt_prog_compiler_can_build_shared=no
9168      ;;
9169    esac
9170  fi
9171
9172case $host_os in
9173  # For platforms which do not support PIC, -DPIC is meaningless:
9174  *djgpp*)
9175    lt_prog_compiler_pic=
9176    ;;
9177  *)
9178    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9179    ;;
9180esac
9181{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9182$as_echo "$lt_prog_compiler_pic" >&6; }
9183
9184
9185
9186
9187
9188
9189#
9190# Check to make sure the PIC flag actually works.
9191#
9192if test -n "$lt_prog_compiler_pic"; then
9193  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9194$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9195if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9196  $as_echo_n "(cached) " >&6
9197else
9198  lt_cv_prog_compiler_pic_works=no
9199   ac_outfile=conftest.$ac_objext
9200   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9201   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9202   # Insert the option either (1) after the last *FLAGS variable, or
9203   # (2) before a word containing "conftest.", or (3) at the end.
9204   # Note that $ac_compile itself does not contain backslashes and begins
9205   # with a dollar sign (not a hyphen), so the echo should work correctly.
9206   # The option is referenced via a variable to avoid confusing sed.
9207   lt_compile=`echo "$ac_compile" | $SED \
9208   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9209   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9210   -e 's:$: $lt_compiler_flag:'`
9211   (eval echo "\"\$as_me:9211: $lt_compile\"" >&5)
9212   (eval "$lt_compile" 2>conftest.err)
9213   ac_status=$?
9214   cat conftest.err >&5
9215   echo "$as_me:9215: \$? = $ac_status" >&5
9216   if (exit $ac_status) && test -s "$ac_outfile"; then
9217     # The compiler can only warn and ignore the option if not recognized
9218     # So say no if there are warnings other than the usual output.
9219     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9220     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9221     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9222       lt_cv_prog_compiler_pic_works=yes
9223     fi
9224   fi
9225   $RM conftest*
9226
9227fi
9228{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9229$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9230
9231if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9232    case $lt_prog_compiler_pic in
9233     "" | " "*) ;;
9234     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9235     esac
9236else
9237    lt_prog_compiler_pic=
9238     lt_prog_compiler_can_build_shared=no
9239fi
9240
9241fi
9242
9243
9244
9245
9246
9247
9248#
9249# Check to make sure the static flag actually works.
9250#
9251wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9252{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9253$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9254if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9255  $as_echo_n "(cached) " >&6
9256else
9257  lt_cv_prog_compiler_static_works=no
9258   save_LDFLAGS="$LDFLAGS"
9259   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9260   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9261   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9262     # The linker can only warn and ignore the option if not recognized
9263     # So say no if there are warnings
9264     if test -s conftest.err; then
9265       # Append any errors to the config.log.
9266       cat conftest.err 1>&5
9267       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9268       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9269       if diff conftest.exp conftest.er2 >/dev/null; then
9270         lt_cv_prog_compiler_static_works=yes
9271       fi
9272     else
9273       lt_cv_prog_compiler_static_works=yes
9274     fi
9275   fi
9276   $RM -r conftest*
9277   LDFLAGS="$save_LDFLAGS"
9278
9279fi
9280{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9281$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9282
9283if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9284    :
9285else
9286    lt_prog_compiler_static=
9287fi
9288
9289
9290
9291
9292
9293
9294
9295  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9296$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9297if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9298  $as_echo_n "(cached) " >&6
9299else
9300  lt_cv_prog_compiler_c_o=no
9301   $RM -r conftest 2>/dev/null
9302   mkdir conftest
9303   cd conftest
9304   mkdir out
9305   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9306
9307   lt_compiler_flag="-o out/conftest2.$ac_objext"
9308   # Insert the option either (1) after the last *FLAGS variable, or
9309   # (2) before a word containing "conftest.", or (3) at the end.
9310   # Note that $ac_compile itself does not contain backslashes and begins
9311   # with a dollar sign (not a hyphen), so the echo should work correctly.
9312   lt_compile=`echo "$ac_compile" | $SED \
9313   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9314   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9315   -e 's:$: $lt_compiler_flag:'`
9316   (eval echo "\"\$as_me:9316: $lt_compile\"" >&5)
9317   (eval "$lt_compile" 2>out/conftest.err)
9318   ac_status=$?
9319   cat out/conftest.err >&5
9320   echo "$as_me:9320: \$? = $ac_status" >&5
9321   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9322   then
9323     # The compiler can only warn and ignore the option if not recognized
9324     # So say no if there are warnings
9325     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9326     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9327     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9328       lt_cv_prog_compiler_c_o=yes
9329     fi
9330   fi
9331   chmod u+w . 2>&5
9332   $RM conftest*
9333   # SGI C++ compiler will create directory out/ii_files/ for
9334   # template instantiation
9335   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9336   $RM out/* && rmdir out
9337   cd ..
9338   $RM -r conftest
9339   $RM conftest*
9340
9341fi
9342{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9343$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9344
9345
9346
9347
9348
9349
9350  { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9351$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9352if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9353  $as_echo_n "(cached) " >&6
9354else
9355  lt_cv_prog_compiler_c_o=no
9356   $RM -r conftest 2>/dev/null
9357   mkdir conftest
9358   cd conftest
9359   mkdir out
9360   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9361
9362   lt_compiler_flag="-o out/conftest2.$ac_objext"
9363   # Insert the option either (1) after the last *FLAGS variable, or
9364   # (2) before a word containing "conftest.", or (3) at the end.
9365   # Note that $ac_compile itself does not contain backslashes and begins
9366   # with a dollar sign (not a hyphen), so the echo should work correctly.
9367   lt_compile=`echo "$ac_compile" | $SED \
9368   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9369   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9370   -e 's:$: $lt_compiler_flag:'`
9371   (eval echo "\"\$as_me:9371: $lt_compile\"" >&5)
9372   (eval "$lt_compile" 2>out/conftest.err)
9373   ac_status=$?
9374   cat out/conftest.err >&5
9375   echo "$as_me:9375: \$? = $ac_status" >&5
9376   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9377   then
9378     # The compiler can only warn and ignore the option if not recognized
9379     # So say no if there are warnings
9380     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9381     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9382     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9383       lt_cv_prog_compiler_c_o=yes
9384     fi
9385   fi
9386   chmod u+w . 2>&5
9387   $RM conftest*
9388   # SGI C++ compiler will create directory out/ii_files/ for
9389   # template instantiation
9390   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9391   $RM out/* && rmdir out
9392   cd ..
9393   $RM -r conftest
9394   $RM conftest*
9395
9396fi
9397{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9398$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9399
9400
9401
9402
9403hard_links="nottested"
9404if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9405  # do not overwrite the value of need_locks provided by the user
9406  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9407$as_echo_n "checking if we can lock with hard links... " >&6; }
9408  hard_links=yes
9409  $RM conftest*
9410  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9411  touch conftest.a
9412  ln conftest.a conftest.b 2>&5 || hard_links=no
9413  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9414  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9415$as_echo "$hard_links" >&6; }
9416  if test "$hard_links" = no; then
9417    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9418$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9419    need_locks=warn
9420  fi
9421else
9422  need_locks=no
9423fi
9424
9425
9426
9427
9428
9429
9430  { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9431$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9432
9433  runpath_var=
9434  allow_undefined_flag=
9435  always_export_symbols=no
9436  archive_cmds=
9437  archive_expsym_cmds=
9438  compiler_needs_object=no
9439  enable_shared_with_static_runtimes=no
9440  export_dynamic_flag_spec=
9441  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9442  hardcode_automatic=no
9443  hardcode_direct=no
9444  hardcode_direct_absolute=no
9445  hardcode_libdir_flag_spec=
9446  hardcode_libdir_flag_spec_ld=
9447  hardcode_libdir_separator=
9448  hardcode_minus_L=no
9449  hardcode_shlibpath_var=unsupported
9450  inherit_rpath=no
9451  link_all_deplibs=unknown
9452  module_cmds=
9453  module_expsym_cmds=
9454  old_archive_from_new_cmds=
9455  old_archive_from_expsyms_cmds=
9456  thread_safe_flag_spec=
9457  whole_archive_flag_spec=
9458  # include_expsyms should be a list of space-separated symbols to be *always*
9459  # included in the symbol list
9460  include_expsyms=
9461  # exclude_expsyms can be an extended regexp of symbols to exclude
9462  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9463  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9464  # as well as any symbol that contains `d'.
9465  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9466  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9467  # platforms (ab)use it in PIC code, but their linkers get confused if
9468  # the symbol is explicitly referenced.  Since portable code cannot
9469  # rely on this symbol name, it's probably fine to never include it in
9470  # preloaded symbol tables.
9471  # Exclude shared library initialization/finalization symbols.
9472  extract_expsyms_cmds=
9473
9474  case $host_os in
9475  cygwin* | mingw* | pw32*)
9476    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9477    # When not using gcc, we currently assume that we are using
9478    # Microsoft Visual C++.
9479    if test "$GCC" != yes; then
9480      with_gnu_ld=no
9481    fi
9482    ;;
9483  interix*)
9484    # we just hope/assume this is gcc and not c89 (= MSVC++)
9485    with_gnu_ld=yes
9486    ;;
9487  openbsd*)
9488    with_gnu_ld=no
9489    ;;
9490  esac
9491
9492  ld_shlibs=yes
9493  if test "$with_gnu_ld" = yes; then
9494    # If archive_cmds runs LD, not CC, wlarc should be empty
9495    wlarc='${wl}'
9496
9497    # Set some defaults for GNU ld with shared library support. These
9498    # are reset later if shared libraries are not supported. Putting them
9499    # here allows them to be overridden if necessary.
9500    runpath_var=LD_RUN_PATH
9501    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9502    export_dynamic_flag_spec='${wl}--export-dynamic'
9503    # ancient GNU ld didn't support --whole-archive et. al.
9504    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9505      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9506    else
9507      whole_archive_flag_spec=
9508    fi
9509    supports_anon_versioning=no
9510    case `$LD -v 2>&1` in
9511      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9512      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9513      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9514      *\ 2.11.*) ;; # other 2.11 versions
9515      *) supports_anon_versioning=yes ;;
9516    esac
9517
9518    # See if GNU ld supports shared libraries.
9519    case $host_os in
9520    aix[3-9]*)
9521      # On AIX/PPC, the GNU linker is very broken
9522      if test "$host_cpu" != ia64; then
9523	ld_shlibs=no
9524	cat <<_LT_EOF 1>&2
9525
9526*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9527*** to be unable to reliably create shared libraries on AIX.
9528*** Therefore, libtool is disabling shared libraries support.  If you
9529*** really care for shared libraries, you may want to modify your PATH
9530*** so that a non-GNU linker is found, and then restart.
9531
9532_LT_EOF
9533      fi
9534      ;;
9535
9536    amigaos*)
9537      case $host_cpu in
9538      powerpc)
9539            # see comment about AmigaOS4 .so support
9540            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9541            archive_expsym_cmds=''
9542        ;;
9543      m68k)
9544            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)'
9545            hardcode_libdir_flag_spec='-L$libdir'
9546            hardcode_minus_L=yes
9547        ;;
9548      esac
9549      ;;
9550
9551    beos*)
9552      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9553	allow_undefined_flag=unsupported
9554	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9555	# support --undefined.  This deserves some investigation.  FIXME
9556	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9557      else
9558	ld_shlibs=no
9559      fi
9560      ;;
9561
9562    cygwin* | mingw* | pw32*)
9563      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9564      # as there is no search path for DLLs.
9565      hardcode_libdir_flag_spec='-L$libdir'
9566      allow_undefined_flag=unsupported
9567      always_export_symbols=no
9568      enable_shared_with_static_runtimes=yes
9569      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9570
9571      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9572        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9573	# If the export-symbols file already is a .def file (1st line
9574	# is EXPORTS), use it as is; otherwise, prepend...
9575	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9576	  cp $export_symbols $output_objdir/$soname.def;
9577	else
9578	  echo EXPORTS > $output_objdir/$soname.def;
9579	  cat $export_symbols >> $output_objdir/$soname.def;
9580	fi~
9581	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9582      else
9583	ld_shlibs=no
9584      fi
9585      ;;
9586
9587    interix[3-9]*)
9588      hardcode_direct=no
9589      hardcode_shlibpath_var=no
9590      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9591      export_dynamic_flag_spec='${wl}-E'
9592      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9593      # Instead, shared libraries are loaded at an image base (0x10000000 by
9594      # default) and relocated if they conflict, which is a slow very memory
9595      # consuming and fragmenting process.  To avoid this, we pick a random,
9596      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9597      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9598      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9599      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'
9600      ;;
9601
9602    gnu* | linux* | tpf* | k*bsd*-gnu)
9603      tmp_diet=no
9604      if test "$host_os" = linux-dietlibc; then
9605	case $cc_basename in
9606	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9607	esac
9608      fi
9609      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9610	 && test "$tmp_diet" = no
9611      then
9612	tmp_addflag=
9613	tmp_sharedflag='-shared'
9614	case $cc_basename,$host_cpu in
9615        pgcc*)				# Portland Group C compiler
9616	  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'
9617	  tmp_addflag=' $pic_flag'
9618	  ;;
9619	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9620	  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'
9621	  tmp_addflag=' $pic_flag -Mnomain' ;;
9622	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9623	  tmp_addflag=' -i_dynamic' ;;
9624	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9625	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9626	ifc* | ifort*)			# Intel Fortran compiler
9627	  tmp_addflag=' -nofor_main' ;;
9628	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9629	  tmp_sharedflag='-qmkshrobj'
9630	  tmp_addflag= ;;
9631	esac
9632	case `$CC -V 2>&1 | sed 5q` in
9633	*Sun\ C*)			# Sun C 5.9
9634	  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'
9635	  compiler_needs_object=yes
9636	  tmp_sharedflag='-G' ;;
9637	*Sun\ F*)			# Sun Fortran 8.3
9638	  tmp_sharedflag='-G' ;;
9639	esac
9640	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9641
9642        if test "x$supports_anon_versioning" = xyes; then
9643          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9644	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9645	    echo "local: *; };" >> $output_objdir/$libname.ver~
9646	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9647        fi
9648
9649	case $cc_basename in
9650	xlf*)
9651	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9652	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9653	  hardcode_libdir_flag_spec=
9654	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9655	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9656	  if test "x$supports_anon_versioning" = xyes; then
9657	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9658	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9659	      echo "local: *; };" >> $output_objdir/$libname.ver~
9660	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9661	  fi
9662	  ;;
9663	esac
9664      else
9665        ld_shlibs=no
9666      fi
9667      ;;
9668
9669    netbsd*)
9670      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9671	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9672	wlarc=
9673      else
9674	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9675	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9676      fi
9677      ;;
9678
9679    solaris*)
9680      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9681	ld_shlibs=no
9682	cat <<_LT_EOF 1>&2
9683
9684*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9685*** create shared libraries on Solaris systems.  Therefore, libtool
9686*** is disabling shared libraries support.  We urge you to upgrade GNU
9687*** binutils to release 2.9.1 or newer.  Another option is to modify
9688*** your PATH or compiler configuration so that the native linker is
9689*** used, and then restart.
9690
9691_LT_EOF
9692      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9693	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9694	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9695      else
9696	ld_shlibs=no
9697      fi
9698      ;;
9699
9700    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9701      case `$LD -v 2>&1` in
9702        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9703	ld_shlibs=no
9704	cat <<_LT_EOF 1>&2
9705
9706*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9707*** reliably create shared libraries on SCO systems.  Therefore, libtool
9708*** is disabling shared libraries support.  We urge you to upgrade GNU
9709*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9710*** your PATH or compiler configuration so that the native linker is
9711*** used, and then restart.
9712
9713_LT_EOF
9714	;;
9715	*)
9716	  # For security reasons, it is highly recommended that you always
9717	  # use absolute paths for naming shared libraries, and exclude the
9718	  # DT_RUNPATH tag from executables and libraries.  But doing so
9719	  # requires that you compile everything twice, which is a pain.
9720	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9721	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9722	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9724	  else
9725	    ld_shlibs=no
9726	  fi
9727	;;
9728      esac
9729      ;;
9730
9731    sunos4*)
9732      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9733      wlarc=
9734      hardcode_direct=yes
9735      hardcode_shlibpath_var=no
9736      ;;
9737
9738    *)
9739      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9740	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9741	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9742      else
9743	ld_shlibs=no
9744      fi
9745      ;;
9746    esac
9747
9748    if test "$ld_shlibs" = no; then
9749      runpath_var=
9750      hardcode_libdir_flag_spec=
9751      export_dynamic_flag_spec=
9752      whole_archive_flag_spec=
9753    fi
9754  else
9755    # PORTME fill in a description of your system's linker (not GNU ld)
9756    case $host_os in
9757    aix3*)
9758      allow_undefined_flag=unsupported
9759      always_export_symbols=yes
9760      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'
9761      # Note: this linker hardcodes the directories in LIBPATH if there
9762      # are no directories specified by -L.
9763      hardcode_minus_L=yes
9764      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9765	# Neither direct hardcoding nor static linking is supported with a
9766	# broken collect2.
9767	hardcode_direct=unsupported
9768      fi
9769      ;;
9770
9771    aix[4-9]*)
9772      if test "$host_cpu" = ia64; then
9773	# On IA64, the linker does run time linking by default, so we don't
9774	# have to do anything special.
9775	aix_use_runtimelinking=no
9776	exp_sym_flag='-Bexport'
9777	no_entry_flag=""
9778      else
9779	# If we're using GNU nm, then we don't want the "-C" option.
9780	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9781	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9782	  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'
9783	else
9784	  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'
9785	fi
9786	aix_use_runtimelinking=no
9787
9788	# Test if we are trying to use run time linking or normal
9789	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9790	# need to do runtime linking.
9791	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9792	  for ld_flag in $LDFLAGS; do
9793	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9794	    aix_use_runtimelinking=yes
9795	    break
9796	  fi
9797	  done
9798	  ;;
9799	esac
9800
9801	exp_sym_flag='-bexport'
9802	no_entry_flag='-bnoentry'
9803      fi
9804
9805      # When large executables or shared objects are built, AIX ld can
9806      # have problems creating the table of contents.  If linking a library
9807      # or program results in "error TOC overflow" add -mminimal-toc to
9808      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9809      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9810
9811      archive_cmds=''
9812      hardcode_direct=yes
9813      hardcode_direct_absolute=yes
9814      hardcode_libdir_separator=':'
9815      link_all_deplibs=yes
9816      file_list_spec='${wl}-f,'
9817
9818      if test "$GCC" = yes; then
9819	case $host_os in aix4.[012]|aix4.[012].*)
9820	# We only want to do this on AIX 4.2 and lower, the check
9821	# below for broken collect2 doesn't work under 4.3+
9822	  collect2name=`${CC} -print-prog-name=collect2`
9823	  if test -f "$collect2name" &&
9824	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9825	  then
9826	  # We have reworked collect2
9827	  :
9828	  else
9829	  # We have old collect2
9830	  hardcode_direct=unsupported
9831	  # It fails to find uninstalled libraries when the uninstalled
9832	  # path is not listed in the libpath.  Setting hardcode_minus_L
9833	  # to unsupported forces relinking
9834	  hardcode_minus_L=yes
9835	  hardcode_libdir_flag_spec='-L$libdir'
9836	  hardcode_libdir_separator=
9837	  fi
9838	  ;;
9839	esac
9840	shared_flag='-shared'
9841	if test "$aix_use_runtimelinking" = yes; then
9842	  shared_flag="$shared_flag "'${wl}-G'
9843	fi
9844      else
9845	# not using gcc
9846	if test "$host_cpu" = ia64; then
9847	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9848	# chokes on -Wl,-G. The following line is correct:
9849	  shared_flag='-G'
9850	else
9851	  if test "$aix_use_runtimelinking" = yes; then
9852	    shared_flag='${wl}-G'
9853	  else
9854	    shared_flag='${wl}-bM:SRE'
9855	  fi
9856	fi
9857      fi
9858
9859      # It seems that -bexpall does not export symbols beginning with
9860      # underscore (_), so it is better to generate a list of symbols to export.
9861      always_export_symbols=yes
9862      if test "$aix_use_runtimelinking" = yes; then
9863	# Warning - without using the other runtime loading flags (-brtl),
9864	# -berok will link without error, but may produce a broken library.
9865	allow_undefined_flag='-berok'
9866        # Determine the default libpath from the value encoded in an
9867        # empty executable.
9868        cat >conftest.$ac_ext <<_ACEOF
9869/* confdefs.h.  */
9870_ACEOF
9871cat confdefs.h >>conftest.$ac_ext
9872cat >>conftest.$ac_ext <<_ACEOF
9873/* end confdefs.h.  */
9874
9875int
9876main ()
9877{
9878
9879  ;
9880  return 0;
9881}
9882_ACEOF
9883rm -f conftest.$ac_objext conftest$ac_exeext
9884if { (ac_try="$ac_link"
9885case "(($ac_try" in
9886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9887  *) ac_try_echo=$ac_try;;
9888esac
9889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9890$as_echo "$ac_try_echo") >&5
9891  (eval "$ac_link") 2>conftest.er1
9892  ac_status=$?
9893  grep -v '^ *+' conftest.er1 >conftest.err
9894  rm -f conftest.er1
9895  cat conftest.err >&5
9896  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897  (exit $ac_status); } && {
9898	 test -z "$ac_c_werror_flag" ||
9899	 test ! -s conftest.err
9900       } && test -s conftest$ac_exeext && {
9901	 test "$cross_compiling" = yes ||
9902	 $as_test_x conftest$ac_exeext
9903       }; then
9904
9905lt_aix_libpath_sed='
9906    /Import File Strings/,/^$/ {
9907	/^0/ {
9908	    s/^0  *\(.*\)$/\1/
9909	    p
9910	}
9911    }'
9912aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9913# Check for a 64-bit object if we didn't find anything.
9914if test -z "$aix_libpath"; then
9915  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9916fi
9917else
9918  $as_echo "$as_me: failed program was:" >&5
9919sed 's/^/| /' conftest.$ac_ext >&5
9920
9921
9922fi
9923
9924rm -rf conftest.dSYM
9925rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9926      conftest$ac_exeext conftest.$ac_ext
9927if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9928
9929        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9930        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"
9931      else
9932	if test "$host_cpu" = ia64; then
9933	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9934	  allow_undefined_flag="-z nodefs"
9935	  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"
9936	else
9937	 # Determine the default libpath from the value encoded in an
9938	 # empty executable.
9939	 cat >conftest.$ac_ext <<_ACEOF
9940/* confdefs.h.  */
9941_ACEOF
9942cat confdefs.h >>conftest.$ac_ext
9943cat >>conftest.$ac_ext <<_ACEOF
9944/* end confdefs.h.  */
9945
9946int
9947main ()
9948{
9949
9950  ;
9951  return 0;
9952}
9953_ACEOF
9954rm -f conftest.$ac_objext conftest$ac_exeext
9955if { (ac_try="$ac_link"
9956case "(($ac_try" in
9957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9958  *) ac_try_echo=$ac_try;;
9959esac
9960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9961$as_echo "$ac_try_echo") >&5
9962  (eval "$ac_link") 2>conftest.er1
9963  ac_status=$?
9964  grep -v '^ *+' conftest.er1 >conftest.err
9965  rm -f conftest.er1
9966  cat conftest.err >&5
9967  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968  (exit $ac_status); } && {
9969	 test -z "$ac_c_werror_flag" ||
9970	 test ! -s conftest.err
9971       } && test -s conftest$ac_exeext && {
9972	 test "$cross_compiling" = yes ||
9973	 $as_test_x conftest$ac_exeext
9974       }; then
9975
9976lt_aix_libpath_sed='
9977    /Import File Strings/,/^$/ {
9978	/^0/ {
9979	    s/^0  *\(.*\)$/\1/
9980	    p
9981	}
9982    }'
9983aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9984# Check for a 64-bit object if we didn't find anything.
9985if test -z "$aix_libpath"; then
9986  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9987fi
9988else
9989  $as_echo "$as_me: failed program was:" >&5
9990sed 's/^/| /' conftest.$ac_ext >&5
9991
9992
9993fi
9994
9995rm -rf conftest.dSYM
9996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9997      conftest$ac_exeext conftest.$ac_ext
9998if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9999
10000	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10001	  # Warning - without using the other run time loading flags,
10002	  # -berok will link without error, but may produce a broken library.
10003	  no_undefined_flag=' ${wl}-bernotok'
10004	  allow_undefined_flag=' ${wl}-berok'
10005	  # Exported symbols can be pulled into shared objects from archives
10006	  whole_archive_flag_spec='$convenience'
10007	  archive_cmds_need_lc=yes
10008	  # This is similar to how AIX traditionally builds its shared libraries.
10009	  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'
10010	fi
10011      fi
10012      ;;
10013
10014    amigaos*)
10015      case $host_cpu in
10016      powerpc)
10017            # see comment about AmigaOS4 .so support
10018            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10019            archive_expsym_cmds=''
10020        ;;
10021      m68k)
10022            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)'
10023            hardcode_libdir_flag_spec='-L$libdir'
10024            hardcode_minus_L=yes
10025        ;;
10026      esac
10027      ;;
10028
10029    bsdi[45]*)
10030      export_dynamic_flag_spec=-rdynamic
10031      ;;
10032
10033    cygwin* | mingw* | pw32*)
10034      # When not using gcc, we currently assume that we are using
10035      # Microsoft Visual C++.
10036      # hardcode_libdir_flag_spec is actually meaningless, as there is
10037      # no search path for DLLs.
10038      hardcode_libdir_flag_spec=' '
10039      allow_undefined_flag=unsupported
10040      # Tell ltmain to make .lib files, not .a files.
10041      libext=lib
10042      # Tell ltmain to make .dll files, not .so files.
10043      shrext_cmds=".dll"
10044      # FIXME: Setting linknames here is a bad hack.
10045      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10046      # The linker will automatically build a .lib file if we build a DLL.
10047      old_archive_from_new_cmds='true'
10048      # FIXME: Should let the user specify the lib program.
10049      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10050      fix_srcfile_path='`cygpath -w "$srcfile"`'
10051      enable_shared_with_static_runtimes=yes
10052      ;;
10053
10054    darwin* | rhapsody*)
10055
10056
10057  archive_cmds_need_lc=no
10058  hardcode_direct=no
10059  hardcode_automatic=yes
10060  hardcode_shlibpath_var=unsupported
10061  whole_archive_flag_spec=''
10062  link_all_deplibs=yes
10063  allow_undefined_flag="$_lt_dar_allow_undefined"
10064  if test "$GCC" = "yes"; then
10065    output_verbose_link_cmd=echo
10066    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10067    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10068    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}"
10069    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}"
10070
10071  else
10072  ld_shlibs=no
10073  fi
10074
10075      ;;
10076
10077    dgux*)
10078      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10079      hardcode_libdir_flag_spec='-L$libdir'
10080      hardcode_shlibpath_var=no
10081      ;;
10082
10083    freebsd1*)
10084      ld_shlibs=no
10085      ;;
10086
10087    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10088    # support.  Future versions do this automatically, but an explicit c++rt0.o
10089    # does not break anything, and helps significantly (at the cost of a little
10090    # extra space).
10091    freebsd2.2*)
10092      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10093      hardcode_libdir_flag_spec='-R$libdir'
10094      hardcode_direct=yes
10095      hardcode_shlibpath_var=no
10096      ;;
10097
10098    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10099    freebsd2*)
10100      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10101      hardcode_direct=yes
10102      hardcode_minus_L=yes
10103      hardcode_shlibpath_var=no
10104      ;;
10105
10106    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10107    freebsd* | dragonfly*)
10108      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10109      hardcode_libdir_flag_spec='-R$libdir'
10110      hardcode_direct=yes
10111      hardcode_shlibpath_var=no
10112      ;;
10113
10114    hpux9*)
10115      if test "$GCC" = yes; then
10116	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'
10117      else
10118	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'
10119      fi
10120      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10121      hardcode_libdir_separator=:
10122      hardcode_direct=yes
10123
10124      # hardcode_minus_L: Not really in the search PATH,
10125      # but as the default location of the library.
10126      hardcode_minus_L=yes
10127      export_dynamic_flag_spec='${wl}-E'
10128      ;;
10129
10130    hpux10*)
10131      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10132	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10133      else
10134	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10135      fi
10136      if test "$with_gnu_ld" = no; then
10137	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10138	hardcode_libdir_flag_spec_ld='+b $libdir'
10139	hardcode_libdir_separator=:
10140	hardcode_direct=yes
10141	hardcode_direct_absolute=yes
10142	export_dynamic_flag_spec='${wl}-E'
10143	# hardcode_minus_L: Not really in the search PATH,
10144	# but as the default location of the library.
10145	hardcode_minus_L=yes
10146      fi
10147      ;;
10148
10149    hpux11*)
10150      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10151	case $host_cpu in
10152	hppa*64*)
10153	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10154	  ;;
10155	ia64*)
10156	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10157	  ;;
10158	*)
10159	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10160	  ;;
10161	esac
10162      else
10163	case $host_cpu in
10164	hppa*64*)
10165	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10166	  ;;
10167	ia64*)
10168	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10169	  ;;
10170	*)
10171	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10172	  ;;
10173	esac
10174      fi
10175      if test "$with_gnu_ld" = no; then
10176	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10177	hardcode_libdir_separator=:
10178
10179	case $host_cpu in
10180	hppa*64*|ia64*)
10181	  hardcode_direct=no
10182	  hardcode_shlibpath_var=no
10183	  ;;
10184	*)
10185	  hardcode_direct=yes
10186	  hardcode_direct_absolute=yes
10187	  export_dynamic_flag_spec='${wl}-E'
10188
10189	  # hardcode_minus_L: Not really in the search PATH,
10190	  # but as the default location of the library.
10191	  hardcode_minus_L=yes
10192	  ;;
10193	esac
10194      fi
10195      ;;
10196
10197    irix5* | irix6* | nonstopux*)
10198      if test "$GCC" = yes; then
10199	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'
10200	# Try to use the -exported_symbol ld option, if it does not
10201	# work, assume that -exports_file does not work either and
10202	# implicitly export all symbols.
10203        save_LDFLAGS="$LDFLAGS"
10204        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10205        cat >conftest.$ac_ext <<_ACEOF
10206int foo(void) {}
10207_ACEOF
10208rm -f conftest.$ac_objext conftest$ac_exeext
10209if { (ac_try="$ac_link"
10210case "(($ac_try" in
10211  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212  *) ac_try_echo=$ac_try;;
10213esac
10214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10215$as_echo "$ac_try_echo") >&5
10216  (eval "$ac_link") 2>conftest.er1
10217  ac_status=$?
10218  grep -v '^ *+' conftest.er1 >conftest.err
10219  rm -f conftest.er1
10220  cat conftest.err >&5
10221  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222  (exit $ac_status); } && {
10223	 test -z "$ac_c_werror_flag" ||
10224	 test ! -s conftest.err
10225       } && test -s conftest$ac_exeext && {
10226	 test "$cross_compiling" = yes ||
10227	 $as_test_x conftest$ac_exeext
10228       }; then
10229  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'
10230
10231else
10232  $as_echo "$as_me: failed program was:" >&5
10233sed 's/^/| /' conftest.$ac_ext >&5
10234
10235
10236fi
10237
10238rm -rf conftest.dSYM
10239rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10240      conftest$ac_exeext conftest.$ac_ext
10241        LDFLAGS="$save_LDFLAGS"
10242      else
10243	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'
10244	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'
10245      fi
10246      archive_cmds_need_lc='no'
10247      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10248      hardcode_libdir_separator=:
10249      inherit_rpath=yes
10250      link_all_deplibs=yes
10251      ;;
10252
10253    netbsd*)
10254      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10255	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10256      else
10257	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10258      fi
10259      hardcode_libdir_flag_spec='-R$libdir'
10260      hardcode_direct=yes
10261      hardcode_shlibpath_var=no
10262      ;;
10263
10264    newsos6)
10265      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10266      hardcode_direct=yes
10267      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10268      hardcode_libdir_separator=:
10269      hardcode_shlibpath_var=no
10270      ;;
10271
10272    *nto* | *qnx*)
10273      ;;
10274
10275    openbsd*)
10276      if test -f /usr/libexec/ld.so; then
10277	hardcode_direct=yes
10278	hardcode_shlibpath_var=no
10279	hardcode_direct_absolute=yes
10280	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10281	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10282	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10283	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10284	  export_dynamic_flag_spec='${wl}-E'
10285	else
10286	  case $host_os in
10287	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10288	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10289	     hardcode_libdir_flag_spec='-R$libdir'
10290	     ;;
10291	   *)
10292	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10293	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10294	     ;;
10295	  esac
10296	fi
10297      else
10298	ld_shlibs=no
10299      fi
10300      ;;
10301
10302    os2*)
10303      hardcode_libdir_flag_spec='-L$libdir'
10304      hardcode_minus_L=yes
10305      allow_undefined_flag=unsupported
10306      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'
10307      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10308      ;;
10309
10310    osf3*)
10311      if test "$GCC" = yes; then
10312	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10313	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'
10314      else
10315	allow_undefined_flag=' -expect_unresolved \*'
10316	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'
10317      fi
10318      archive_cmds_need_lc='no'
10319      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10320      hardcode_libdir_separator=:
10321      ;;
10322
10323    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10324      if test "$GCC" = yes; then
10325	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10326	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'
10327	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10328      else
10329	allow_undefined_flag=' -expect_unresolved \*'
10330	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'
10331	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~
10332	$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'
10333
10334	# Both c and cxx compiler support -rpath directly
10335	hardcode_libdir_flag_spec='-rpath $libdir'
10336      fi
10337      archive_cmds_need_lc='no'
10338      hardcode_libdir_separator=:
10339      ;;
10340
10341    solaris*)
10342      no_undefined_flag=' -z defs'
10343      if test "$GCC" = yes; then
10344	wlarc='${wl}'
10345	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10346	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10347	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10348      else
10349	case `$CC -V 2>&1` in
10350	*"Compilers 5.0"*)
10351	  wlarc=''
10352	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10354	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10355	  ;;
10356	*)
10357	  wlarc='${wl}'
10358	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10359	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10360	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10361	  ;;
10362	esac
10363      fi
10364      hardcode_libdir_flag_spec='-R$libdir'
10365      hardcode_shlibpath_var=no
10366      case $host_os in
10367      solaris2.[0-5] | solaris2.[0-5].*) ;;
10368      *)
10369	# The compiler driver will combine and reorder linker options,
10370	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10371	# but is careful enough not to reorder.
10372	# Supported since Solaris 2.6 (maybe 2.5.1?)
10373	if test "$GCC" = yes; then
10374	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10375	else
10376	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10377	fi
10378	;;
10379      esac
10380      link_all_deplibs=yes
10381      ;;
10382
10383    sunos4*)
10384      if test "x$host_vendor" = xsequent; then
10385	# Use $CC to link under sequent, because it throws in some extra .o
10386	# files that make .init and .fini sections work.
10387	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10388      else
10389	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10390      fi
10391      hardcode_libdir_flag_spec='-L$libdir'
10392      hardcode_direct=yes
10393      hardcode_minus_L=yes
10394      hardcode_shlibpath_var=no
10395      ;;
10396
10397    sysv4)
10398      case $host_vendor in
10399	sni)
10400	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10401	  hardcode_direct=yes # is this really true???
10402	;;
10403	siemens)
10404	  ## LD is ld it makes a PLAMLIB
10405	  ## CC just makes a GrossModule.
10406	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10407	  reload_cmds='$CC -r -o $output$reload_objs'
10408	  hardcode_direct=no
10409        ;;
10410	motorola)
10411	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10412	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10413	;;
10414      esac
10415      runpath_var='LD_RUN_PATH'
10416      hardcode_shlibpath_var=no
10417      ;;
10418
10419    sysv4.3*)
10420      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10421      hardcode_shlibpath_var=no
10422      export_dynamic_flag_spec='-Bexport'
10423      ;;
10424
10425    sysv4*MP*)
10426      if test -d /usr/nec; then
10427	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428	hardcode_shlibpath_var=no
10429	runpath_var=LD_RUN_PATH
10430	hardcode_runpath_var=yes
10431	ld_shlibs=yes
10432      fi
10433      ;;
10434
10435    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10436      no_undefined_flag='${wl}-z,text'
10437      archive_cmds_need_lc=no
10438      hardcode_shlibpath_var=no
10439      runpath_var='LD_RUN_PATH'
10440
10441      if test "$GCC" = yes; then
10442	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10443	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10444      else
10445	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447      fi
10448      ;;
10449
10450    sysv5* | sco3.2v5* | sco5v6*)
10451      # Note: We can NOT use -z defs as we might desire, because we do not
10452      # link with -lc, and that would cause any symbols used from libc to
10453      # always be unresolved, which means just about no library would
10454      # ever link correctly.  If we're not using GNU ld we use -z text
10455      # though, which does catch some bad symbols but isn't as heavy-handed
10456      # as -z defs.
10457      no_undefined_flag='${wl}-z,text'
10458      allow_undefined_flag='${wl}-z,nodefs'
10459      archive_cmds_need_lc=no
10460      hardcode_shlibpath_var=no
10461      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10462      hardcode_libdir_separator=':'
10463      link_all_deplibs=yes
10464      export_dynamic_flag_spec='${wl}-Bexport'
10465      runpath_var='LD_RUN_PATH'
10466
10467      if test "$GCC" = yes; then
10468	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10469	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10470      else
10471	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10472	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10473      fi
10474      ;;
10475
10476    uts4*)
10477      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10478      hardcode_libdir_flag_spec='-L$libdir'
10479      hardcode_shlibpath_var=no
10480      ;;
10481
10482    *)
10483      ld_shlibs=no
10484      ;;
10485    esac
10486
10487    if test x$host_vendor = xsni; then
10488      case $host in
10489      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10490	export_dynamic_flag_spec='${wl}-Blargedynsym'
10491	;;
10492      esac
10493    fi
10494  fi
10495
10496{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10497$as_echo "$ld_shlibs" >&6; }
10498test "$ld_shlibs" = no && can_build_shared=no
10499
10500with_gnu_ld=$with_gnu_ld
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516#
10517# Do we need to explicitly link libc?
10518#
10519case "x$archive_cmds_need_lc" in
10520x|xyes)
10521  # Assume -lc should be added
10522  archive_cmds_need_lc=yes
10523
10524  if test "$enable_shared" = yes && test "$GCC" = yes; then
10525    case $archive_cmds in
10526    *'~'*)
10527      # FIXME: we may have to deal with multi-command sequences.
10528      ;;
10529    '$CC '*)
10530      # Test whether the compiler implicitly links with -lc since on some
10531      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10532      # to ld, don't add -lc before -lgcc.
10533      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10534$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10535      $RM conftest*
10536      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10537
10538      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10539  (eval $ac_compile) 2>&5
10540  ac_status=$?
10541  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542  (exit $ac_status); } 2>conftest.err; then
10543        soname=conftest
10544        lib=conftest
10545        libobjs=conftest.$ac_objext
10546        deplibs=
10547        wl=$lt_prog_compiler_wl
10548	pic_flag=$lt_prog_compiler_pic
10549        compiler_flags=-v
10550        linker_flags=-v
10551        verstring=
10552        output_objdir=.
10553        libname=conftest
10554        lt_save_allow_undefined_flag=$allow_undefined_flag
10555        allow_undefined_flag=
10556        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10557  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10558  ac_status=$?
10559  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560  (exit $ac_status); }
10561        then
10562	  archive_cmds_need_lc=no
10563        else
10564	  archive_cmds_need_lc=yes
10565        fi
10566        allow_undefined_flag=$lt_save_allow_undefined_flag
10567      else
10568        cat conftest.err 1>&5
10569      fi
10570      $RM conftest*
10571      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10572$as_echo "$archive_cmds_need_lc" >&6; }
10573      ;;
10574    esac
10575  fi
10576  ;;
10577esac
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735  { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10736$as_echo_n "checking dynamic linker characteristics... " >&6; }
10737
10738if test "$GCC" = yes; then
10739  case $host_os in
10740    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10741    *) lt_awk_arg="/^libraries:/" ;;
10742  esac
10743  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10744  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10745    # if the path contains ";" then we assume it to be the separator
10746    # otherwise default to the standard path separator (i.e. ":") - it is
10747    # assumed that no part of a normal pathname contains ";" but that should
10748    # okay in the real world where ";" in dirpaths is itself problematic.
10749    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10750  else
10751    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10752  fi
10753  # Ok, now we have the path, separated by spaces, we can step through it
10754  # and add multilib dir if necessary.
10755  lt_tmp_lt_search_path_spec=
10756  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10757  for lt_sys_path in $lt_search_path_spec; do
10758    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10759      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10760    else
10761      test -d "$lt_sys_path" && \
10762	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10763    fi
10764  done
10765  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10766BEGIN {RS=" "; FS="/|\n";} {
10767  lt_foo="";
10768  lt_count=0;
10769  for (lt_i = NF; lt_i > 0; lt_i--) {
10770    if ($lt_i != "" && $lt_i != ".") {
10771      if ($lt_i == "..") {
10772        lt_count++;
10773      } else {
10774        if (lt_count == 0) {
10775          lt_foo="/" $lt_i lt_foo;
10776        } else {
10777          lt_count--;
10778        }
10779      }
10780    }
10781  }
10782  if (lt_foo != "") { lt_freq[lt_foo]++; }
10783  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10784}'`
10785  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10786else
10787  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10788fi
10789library_names_spec=
10790libname_spec='lib$name'
10791soname_spec=
10792shrext_cmds=".so"
10793postinstall_cmds=
10794postuninstall_cmds=
10795finish_cmds=
10796finish_eval=
10797shlibpath_var=
10798shlibpath_overrides_runpath=unknown
10799version_type=none
10800dynamic_linker="$host_os ld.so"
10801sys_lib_dlsearch_path_spec="/lib /usr/lib"
10802need_lib_prefix=unknown
10803hardcode_into_libs=no
10804
10805# when you set need_version to no, make sure it does not cause -set_version
10806# flags to be left without arguments
10807need_version=unknown
10808
10809case $host_os in
10810aix3*)
10811  version_type=linux
10812  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10813  shlibpath_var=LIBPATH
10814
10815  # AIX 3 has no versioning support, so we append a major version to the name.
10816  soname_spec='${libname}${release}${shared_ext}$major'
10817  ;;
10818
10819aix[4-9]*)
10820  version_type=linux
10821  need_lib_prefix=no
10822  need_version=no
10823  hardcode_into_libs=yes
10824  if test "$host_cpu" = ia64; then
10825    # AIX 5 supports IA64
10826    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10827    shlibpath_var=LD_LIBRARY_PATH
10828  else
10829    # With GCC up to 2.95.x, collect2 would create an import file
10830    # for dependence libraries.  The import file would start with
10831    # the line `#! .'.  This would cause the generated library to
10832    # depend on `.', always an invalid library.  This was fixed in
10833    # development snapshots of GCC prior to 3.0.
10834    case $host_os in
10835      aix4 | aix4.[01] | aix4.[01].*)
10836      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10837	   echo ' yes '
10838	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10839	:
10840      else
10841	can_build_shared=no
10842      fi
10843      ;;
10844    esac
10845    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10846    # soname into executable. Probably we can add versioning support to
10847    # collect2, so additional links can be useful in future.
10848    if test "$aix_use_runtimelinking" = yes; then
10849      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10850      # instead of lib<name>.a to let people know that these are not
10851      # typical AIX shared libraries.
10852      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10853    else
10854      # We preserve .a as extension for shared libraries through AIX4.2
10855      # and later when we are not doing run time linking.
10856      library_names_spec='${libname}${release}.a $libname.a'
10857      soname_spec='${libname}${release}${shared_ext}$major'
10858    fi
10859    shlibpath_var=LIBPATH
10860  fi
10861  ;;
10862
10863amigaos*)
10864  case $host_cpu in
10865  powerpc)
10866    # Since July 2007 AmigaOS4 officially supports .so libraries.
10867    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10868    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10869    ;;
10870  m68k)
10871    library_names_spec='$libname.ixlibrary $libname.a'
10872    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10873    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'
10874    ;;
10875  esac
10876  ;;
10877
10878beos*)
10879  library_names_spec='${libname}${shared_ext}'
10880  dynamic_linker="$host_os ld.so"
10881  shlibpath_var=LIBRARY_PATH
10882  ;;
10883
10884bsdi[45]*)
10885  version_type=linux
10886  need_version=no
10887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888  soname_spec='${libname}${release}${shared_ext}$major'
10889  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10890  shlibpath_var=LD_LIBRARY_PATH
10891  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10892  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10893  # the default ld.so.conf also contains /usr/contrib/lib and
10894  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10895  # libtool to hard-code these into programs
10896  ;;
10897
10898cygwin* | mingw* | pw32*)
10899  version_type=windows
10900  shrext_cmds=".dll"
10901  need_version=no
10902  need_lib_prefix=no
10903
10904  case $GCC,$host_os in
10905  yes,cygwin* | yes,mingw* | yes,pw32*)
10906    library_names_spec='$libname.dll.a'
10907    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10908    postinstall_cmds='base_file=`basename \${file}`~
10909      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10910      dldir=$destdir/`dirname \$dlpath`~
10911      test -d \$dldir || mkdir -p \$dldir~
10912      $install_prog $dir/$dlname \$dldir/$dlname~
10913      chmod a+x \$dldir/$dlname~
10914      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10915        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10916      fi'
10917    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10918      dlpath=$dir/\$dldll~
10919       $RM \$dlpath'
10920    shlibpath_overrides_runpath=yes
10921
10922    case $host_os in
10923    cygwin*)
10924      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10925      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10926      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10927      ;;
10928    mingw*)
10929      # MinGW DLLs use traditional 'lib' prefix
10930      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10931      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10932      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10933        # It is most probably a Windows format PATH printed by
10934        # mingw gcc, but we are running on Cygwin. Gcc prints its search
10935        # path with ; separators, and with drive letters. We can handle the
10936        # drive letters (cygwin fileutils understands them), so leave them,
10937        # especially as we might pass files found there to a mingw objdump,
10938        # which wouldn't understand a cygwinified path. Ahh.
10939        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10940      else
10941        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10942      fi
10943      ;;
10944    pw32*)
10945      # pw32 DLLs use 'pw' prefix rather than 'lib'
10946      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10947      ;;
10948    esac
10949    ;;
10950
10951  *)
10952    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10953    ;;
10954  esac
10955  dynamic_linker='Win32 ld.exe'
10956  # FIXME: first we should search . and the directory the executable is in
10957  shlibpath_var=PATH
10958  ;;
10959
10960darwin* | rhapsody*)
10961  dynamic_linker="$host_os dyld"
10962  version_type=darwin
10963  need_lib_prefix=no
10964  need_version=no
10965  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10966  soname_spec='${libname}${release}${major}$shared_ext'
10967  shlibpath_overrides_runpath=yes
10968  shlibpath_var=DYLD_LIBRARY_PATH
10969  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10970
10971  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10972  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10973  ;;
10974
10975dgux*)
10976  version_type=linux
10977  need_lib_prefix=no
10978  need_version=no
10979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10980  soname_spec='${libname}${release}${shared_ext}$major'
10981  shlibpath_var=LD_LIBRARY_PATH
10982  ;;
10983
10984freebsd1*)
10985  dynamic_linker=no
10986  ;;
10987
10988freebsd* | dragonfly*)
10989  # DragonFly does not have aout.  When/if they implement a new
10990  # versioning mechanism, adjust this.
10991  if test -x /usr/bin/objformat; then
10992    objformat=`/usr/bin/objformat`
10993  else
10994    case $host_os in
10995    freebsd[123]*) objformat=aout ;;
10996    *) objformat=elf ;;
10997    esac
10998  fi
10999  version_type=freebsd-$objformat
11000  case $version_type in
11001    freebsd-elf*)
11002      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11003      need_version=no
11004      need_lib_prefix=no
11005      ;;
11006    freebsd-*)
11007      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11008      need_version=yes
11009      ;;
11010  esac
11011  shlibpath_var=LD_LIBRARY_PATH
11012  case $host_os in
11013  freebsd2*)
11014    shlibpath_overrides_runpath=yes
11015    ;;
11016  freebsd3.[01]* | freebsdelf3.[01]*)
11017    shlibpath_overrides_runpath=yes
11018    hardcode_into_libs=yes
11019    ;;
11020  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11021  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11022    shlibpath_overrides_runpath=no
11023    hardcode_into_libs=yes
11024    ;;
11025  *) # from 4.6 on, and DragonFly
11026    shlibpath_overrides_runpath=yes
11027    hardcode_into_libs=yes
11028    ;;
11029  esac
11030  ;;
11031
11032gnu*)
11033  version_type=linux
11034  need_lib_prefix=no
11035  need_version=no
11036  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11037  soname_spec='${libname}${release}${shared_ext}$major'
11038  shlibpath_var=LD_LIBRARY_PATH
11039  hardcode_into_libs=yes
11040  ;;
11041
11042hpux9* | hpux10* | hpux11*)
11043  # Give a soname corresponding to the major version so that dld.sl refuses to
11044  # link against other versions.
11045  version_type=sunos
11046  need_lib_prefix=no
11047  need_version=no
11048  case $host_cpu in
11049  ia64*)
11050    shrext_cmds='.so'
11051    hardcode_into_libs=yes
11052    dynamic_linker="$host_os dld.so"
11053    shlibpath_var=LD_LIBRARY_PATH
11054    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11055    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056    soname_spec='${libname}${release}${shared_ext}$major'
11057    if test "X$HPUX_IA64_MODE" = X32; then
11058      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11059    else
11060      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11061    fi
11062    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11063    ;;
11064  hppa*64*)
11065    shrext_cmds='.sl'
11066    hardcode_into_libs=yes
11067    dynamic_linker="$host_os dld.sl"
11068    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11069    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11070    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11071    soname_spec='${libname}${release}${shared_ext}$major'
11072    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11073    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11074    ;;
11075  *)
11076    shrext_cmds='.sl'
11077    dynamic_linker="$host_os dld.sl"
11078    shlibpath_var=SHLIB_PATH
11079    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11080    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11081    soname_spec='${libname}${release}${shared_ext}$major'
11082    ;;
11083  esac
11084  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11085  postinstall_cmds='chmod 555 $lib'
11086  ;;
11087
11088interix[3-9]*)
11089  version_type=linux
11090  need_lib_prefix=no
11091  need_version=no
11092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11093  soname_spec='${libname}${release}${shared_ext}$major'
11094  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11095  shlibpath_var=LD_LIBRARY_PATH
11096  shlibpath_overrides_runpath=no
11097  hardcode_into_libs=yes
11098  ;;
11099
11100irix5* | irix6* | nonstopux*)
11101  case $host_os in
11102    nonstopux*) version_type=nonstopux ;;
11103    *)
11104	if test "$lt_cv_prog_gnu_ld" = yes; then
11105		version_type=linux
11106	else
11107		version_type=irix
11108	fi ;;
11109  esac
11110  need_lib_prefix=no
11111  need_version=no
11112  soname_spec='${libname}${release}${shared_ext}$major'
11113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11114  case $host_os in
11115  irix5* | nonstopux*)
11116    libsuff= shlibsuff=
11117    ;;
11118  *)
11119    case $LD in # libtool.m4 will add one of these switches to LD
11120    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11121      libsuff= shlibsuff= libmagic=32-bit;;
11122    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11123      libsuff=32 shlibsuff=N32 libmagic=N32;;
11124    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11125      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11126    *) libsuff= shlibsuff= libmagic=never-match;;
11127    esac
11128    ;;
11129  esac
11130  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11131  shlibpath_overrides_runpath=no
11132  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11133  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11134  hardcode_into_libs=yes
11135  ;;
11136
11137# No shared lib support for Linux oldld, aout, or coff.
11138linux*oldld* | linux*aout* | linux*coff*)
11139  dynamic_linker=no
11140  ;;
11141
11142# This must be Linux ELF.
11143linux* | k*bsd*-gnu)
11144  version_type=linux
11145  need_lib_prefix=no
11146  need_version=no
11147  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148  soname_spec='${libname}${release}${shared_ext}$major'
11149  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11150  shlibpath_var=LD_LIBRARY_PATH
11151  shlibpath_overrides_runpath=no
11152  # Some binutils ld are patched to set DT_RUNPATH
11153  save_LDFLAGS=$LDFLAGS
11154  save_libdir=$libdir
11155  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11156       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11157  cat >conftest.$ac_ext <<_ACEOF
11158/* confdefs.h.  */
11159_ACEOF
11160cat confdefs.h >>conftest.$ac_ext
11161cat >>conftest.$ac_ext <<_ACEOF
11162/* end confdefs.h.  */
11163
11164int
11165main ()
11166{
11167
11168  ;
11169  return 0;
11170}
11171_ACEOF
11172rm -f conftest.$ac_objext conftest$ac_exeext
11173if { (ac_try="$ac_link"
11174case "(($ac_try" in
11175  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176  *) ac_try_echo=$ac_try;;
11177esac
11178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11179$as_echo "$ac_try_echo") >&5
11180  (eval "$ac_link") 2>conftest.er1
11181  ac_status=$?
11182  grep -v '^ *+' conftest.er1 >conftest.err
11183  rm -f conftest.er1
11184  cat conftest.err >&5
11185  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186  (exit $ac_status); } && {
11187	 test -z "$ac_c_werror_flag" ||
11188	 test ! -s conftest.err
11189       } && test -s conftest$ac_exeext && {
11190	 test "$cross_compiling" = yes ||
11191	 $as_test_x conftest$ac_exeext
11192       }; then
11193  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11194  shlibpath_overrides_runpath=yes
11195fi
11196
11197else
11198  $as_echo "$as_me: failed program was:" >&5
11199sed 's/^/| /' conftest.$ac_ext >&5
11200
11201
11202fi
11203
11204rm -rf conftest.dSYM
11205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11206      conftest$ac_exeext conftest.$ac_ext
11207  LDFLAGS=$save_LDFLAGS
11208  libdir=$save_libdir
11209
11210  # This implies no fast_install, which is unacceptable.
11211  # Some rework will be needed to allow for fast_install
11212  # before this can be enabled.
11213  hardcode_into_libs=yes
11214
11215  # Append ld.so.conf contents to the search path
11216  if test -f /etc/ld.so.conf; then
11217    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' ' '`
11218    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11219  fi
11220
11221  # We used to test for /lib/ld.so.1 and disable shared libraries on
11222  # powerpc, because MkLinux only supported shared libraries with the
11223  # GNU dynamic linker.  Since this was broken with cross compilers,
11224  # most powerpc-linux boxes support dynamic linking these days and
11225  # people can always --disable-shared, the test was removed, and we
11226  # assume the GNU/Linux dynamic linker is in use.
11227  dynamic_linker='GNU/Linux ld.so'
11228  ;;
11229
11230netbsd*)
11231  version_type=sunos
11232  need_lib_prefix=no
11233  need_version=no
11234  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11235    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11236    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11237    dynamic_linker='NetBSD (a.out) ld.so'
11238  else
11239    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11240    soname_spec='${libname}${release}${shared_ext}$major'
11241    dynamic_linker='NetBSD ld.elf_so'
11242  fi
11243  shlibpath_var=LD_LIBRARY_PATH
11244  shlibpath_overrides_runpath=yes
11245  hardcode_into_libs=yes
11246  ;;
11247
11248newsos6)
11249  version_type=linux
11250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11251  shlibpath_var=LD_LIBRARY_PATH
11252  shlibpath_overrides_runpath=yes
11253  ;;
11254
11255*nto* | *qnx*)
11256  version_type=qnx
11257  need_lib_prefix=no
11258  need_version=no
11259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260  soname_spec='${libname}${release}${shared_ext}$major'
11261  shlibpath_var=LD_LIBRARY_PATH
11262  shlibpath_overrides_runpath=no
11263  hardcode_into_libs=yes
11264  dynamic_linker='ldqnx.so'
11265  ;;
11266
11267openbsd*)
11268  version_type=sunos
11269  sys_lib_dlsearch_path_spec="/usr/lib"
11270  need_lib_prefix=no
11271  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11272  case $host_os in
11273    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11274    *)				need_version=no  ;;
11275  esac
11276  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11277  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11278  shlibpath_var=LD_LIBRARY_PATH
11279  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11280    case $host_os in
11281      openbsd2.[89] | openbsd2.[89].*)
11282	shlibpath_overrides_runpath=no
11283	;;
11284      *)
11285	shlibpath_overrides_runpath=yes
11286	;;
11287      esac
11288  else
11289    shlibpath_overrides_runpath=yes
11290  fi
11291  ;;
11292
11293os2*)
11294  libname_spec='$name'
11295  shrext_cmds=".dll"
11296  need_lib_prefix=no
11297  library_names_spec='$libname${shared_ext} $libname.a'
11298  dynamic_linker='OS/2 ld.exe'
11299  shlibpath_var=LIBPATH
11300  ;;
11301
11302osf3* | osf4* | osf5*)
11303  version_type=osf
11304  need_lib_prefix=no
11305  need_version=no
11306  soname_spec='${libname}${release}${shared_ext}$major'
11307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308  shlibpath_var=LD_LIBRARY_PATH
11309  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11310  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11311  ;;
11312
11313rdos*)
11314  dynamic_linker=no
11315  ;;
11316
11317solaris*)
11318  version_type=linux
11319  need_lib_prefix=no
11320  need_version=no
11321  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11322  soname_spec='${libname}${release}${shared_ext}$major'
11323  shlibpath_var=LD_LIBRARY_PATH
11324  shlibpath_overrides_runpath=yes
11325  hardcode_into_libs=yes
11326  # ldd complains unless libraries are executable
11327  postinstall_cmds='chmod +x $lib'
11328  ;;
11329
11330sunos4*)
11331  version_type=sunos
11332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11333  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11334  shlibpath_var=LD_LIBRARY_PATH
11335  shlibpath_overrides_runpath=yes
11336  if test "$with_gnu_ld" = yes; then
11337    need_lib_prefix=no
11338  fi
11339  need_version=yes
11340  ;;
11341
11342sysv4 | sysv4.3*)
11343  version_type=linux
11344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11345  soname_spec='${libname}${release}${shared_ext}$major'
11346  shlibpath_var=LD_LIBRARY_PATH
11347  case $host_vendor in
11348    sni)
11349      shlibpath_overrides_runpath=no
11350      need_lib_prefix=no
11351      runpath_var=LD_RUN_PATH
11352      ;;
11353    siemens)
11354      need_lib_prefix=no
11355      ;;
11356    motorola)
11357      need_lib_prefix=no
11358      need_version=no
11359      shlibpath_overrides_runpath=no
11360      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11361      ;;
11362  esac
11363  ;;
11364
11365sysv4*MP*)
11366  if test -d /usr/nec ;then
11367    version_type=linux
11368    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11369    soname_spec='$libname${shared_ext}.$major'
11370    shlibpath_var=LD_LIBRARY_PATH
11371  fi
11372  ;;
11373
11374sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11375  version_type=freebsd-elf
11376  need_lib_prefix=no
11377  need_version=no
11378  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11379  soname_spec='${libname}${release}${shared_ext}$major'
11380  shlibpath_var=LD_LIBRARY_PATH
11381  shlibpath_overrides_runpath=yes
11382  hardcode_into_libs=yes
11383  if test "$with_gnu_ld" = yes; then
11384    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11385  else
11386    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11387    case $host_os in
11388      sco3.2v5*)
11389        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11390	;;
11391    esac
11392  fi
11393  sys_lib_dlsearch_path_spec='/usr/lib'
11394  ;;
11395
11396tpf*)
11397  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11398  version_type=linux
11399  need_lib_prefix=no
11400  need_version=no
11401  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11402  shlibpath_var=LD_LIBRARY_PATH
11403  shlibpath_overrides_runpath=no
11404  hardcode_into_libs=yes
11405  ;;
11406
11407uts4*)
11408  version_type=linux
11409  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11410  soname_spec='${libname}${release}${shared_ext}$major'
11411  shlibpath_var=LD_LIBRARY_PATH
11412  ;;
11413
11414*)
11415  dynamic_linker=no
11416  ;;
11417esac
11418{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11419$as_echo "$dynamic_linker" >&6; }
11420test "$dynamic_linker" = no && can_build_shared=no
11421
11422variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11423if test "$GCC" = yes; then
11424  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11425fi
11426
11427if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11428  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11429fi
11430if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11431  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11432fi
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520  { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11521$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11522hardcode_action=
11523if test -n "$hardcode_libdir_flag_spec" ||
11524   test -n "$runpath_var" ||
11525   test "X$hardcode_automatic" = "Xyes" ; then
11526
11527  # We can hardcode non-existent directories.
11528  if test "$hardcode_direct" != no &&
11529     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11530     # have to relink, otherwise we might link with an installed library
11531     # when we should be linking with a yet-to-be-installed one
11532     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11533     test "$hardcode_minus_L" != no; then
11534    # Linking always hardcodes the temporary library directory.
11535    hardcode_action=relink
11536  else
11537    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11538    hardcode_action=immediate
11539  fi
11540else
11541  # We cannot hardcode anything, or else we can only hardcode existing
11542  # directories.
11543  hardcode_action=unsupported
11544fi
11545{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11546$as_echo "$hardcode_action" >&6; }
11547
11548if test "$hardcode_action" = relink ||
11549   test "$inherit_rpath" = yes; then
11550  # Fast installation is not supported
11551  enable_fast_install=no
11552elif test "$shlibpath_overrides_runpath" = yes ||
11553     test "$enable_shared" = no; then
11554  # Fast installation is not necessary
11555  enable_fast_install=needless
11556fi
11557
11558
11559
11560
11561
11562
11563  if test "x$enable_dlopen" != xyes; then
11564  enable_dlopen=unknown
11565  enable_dlopen_self=unknown
11566  enable_dlopen_self_static=unknown
11567else
11568  lt_cv_dlopen=no
11569  lt_cv_dlopen_libs=
11570
11571  case $host_os in
11572  beos*)
11573    lt_cv_dlopen="load_add_on"
11574    lt_cv_dlopen_libs=
11575    lt_cv_dlopen_self=yes
11576    ;;
11577
11578  mingw* | pw32*)
11579    lt_cv_dlopen="LoadLibrary"
11580    lt_cv_dlopen_libs=
11581    ;;
11582
11583  cygwin*)
11584    lt_cv_dlopen="dlopen"
11585    lt_cv_dlopen_libs=
11586    ;;
11587
11588  darwin*)
11589  # if libdl is installed we need to link against it
11590    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11591$as_echo_n "checking for dlopen in -ldl... " >&6; }
11592if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11593  $as_echo_n "(cached) " >&6
11594else
11595  ac_check_lib_save_LIBS=$LIBS
11596LIBS="-ldl  $LIBS"
11597cat >conftest.$ac_ext <<_ACEOF
11598/* confdefs.h.  */
11599_ACEOF
11600cat confdefs.h >>conftest.$ac_ext
11601cat >>conftest.$ac_ext <<_ACEOF
11602/* end confdefs.h.  */
11603
11604/* Override any GCC internal prototype to avoid an error.
11605   Use char because int might match the return type of a GCC
11606   builtin and then its argument prototype would still apply.  */
11607#ifdef __cplusplus
11608extern "C"
11609#endif
11610char dlopen ();
11611int
11612main ()
11613{
11614return dlopen ();
11615  ;
11616  return 0;
11617}
11618_ACEOF
11619rm -f conftest.$ac_objext conftest$ac_exeext
11620if { (ac_try="$ac_link"
11621case "(($ac_try" in
11622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623  *) ac_try_echo=$ac_try;;
11624esac
11625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11626$as_echo "$ac_try_echo") >&5
11627  (eval "$ac_link") 2>conftest.er1
11628  ac_status=$?
11629  grep -v '^ *+' conftest.er1 >conftest.err
11630  rm -f conftest.er1
11631  cat conftest.err >&5
11632  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633  (exit $ac_status); } && {
11634	 test -z "$ac_c_werror_flag" ||
11635	 test ! -s conftest.err
11636       } && test -s conftest$ac_exeext && {
11637	 test "$cross_compiling" = yes ||
11638	 $as_test_x conftest$ac_exeext
11639       }; then
11640  ac_cv_lib_dl_dlopen=yes
11641else
11642  $as_echo "$as_me: failed program was:" >&5
11643sed 's/^/| /' conftest.$ac_ext >&5
11644
11645	ac_cv_lib_dl_dlopen=no
11646fi
11647
11648rm -rf conftest.dSYM
11649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11650      conftest$ac_exeext conftest.$ac_ext
11651LIBS=$ac_check_lib_save_LIBS
11652fi
11653{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11654$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11655if test $ac_cv_lib_dl_dlopen = yes; then
11656  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11657else
11658
11659    lt_cv_dlopen="dyld"
11660    lt_cv_dlopen_libs=
11661    lt_cv_dlopen_self=yes
11662
11663fi
11664
11665    ;;
11666
11667  *)
11668    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11669$as_echo_n "checking for shl_load... " >&6; }
11670if test "${ac_cv_func_shl_load+set}" = set; then
11671  $as_echo_n "(cached) " >&6
11672else
11673  cat >conftest.$ac_ext <<_ACEOF
11674/* confdefs.h.  */
11675_ACEOF
11676cat confdefs.h >>conftest.$ac_ext
11677cat >>conftest.$ac_ext <<_ACEOF
11678/* end confdefs.h.  */
11679/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11680   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11681#define shl_load innocuous_shl_load
11682
11683/* System header to define __stub macros and hopefully few prototypes,
11684    which can conflict with char shl_load (); below.
11685    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11686    <limits.h> exists even on freestanding compilers.  */
11687
11688#ifdef __STDC__
11689# include <limits.h>
11690#else
11691# include <assert.h>
11692#endif
11693
11694#undef shl_load
11695
11696/* Override any GCC internal prototype to avoid an error.
11697   Use char because int might match the return type of a GCC
11698   builtin and then its argument prototype would still apply.  */
11699#ifdef __cplusplus
11700extern "C"
11701#endif
11702char shl_load ();
11703/* The GNU C library defines this for functions which it implements
11704    to always fail with ENOSYS.  Some functions are actually named
11705    something starting with __ and the normal name is an alias.  */
11706#if defined __stub_shl_load || defined __stub___shl_load
11707choke me
11708#endif
11709
11710int
11711main ()
11712{
11713return shl_load ();
11714  ;
11715  return 0;
11716}
11717_ACEOF
11718rm -f conftest.$ac_objext conftest$ac_exeext
11719if { (ac_try="$ac_link"
11720case "(($ac_try" in
11721  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722  *) ac_try_echo=$ac_try;;
11723esac
11724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11725$as_echo "$ac_try_echo") >&5
11726  (eval "$ac_link") 2>conftest.er1
11727  ac_status=$?
11728  grep -v '^ *+' conftest.er1 >conftest.err
11729  rm -f conftest.er1
11730  cat conftest.err >&5
11731  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732  (exit $ac_status); } && {
11733	 test -z "$ac_c_werror_flag" ||
11734	 test ! -s conftest.err
11735       } && test -s conftest$ac_exeext && {
11736	 test "$cross_compiling" = yes ||
11737	 $as_test_x conftest$ac_exeext
11738       }; then
11739  ac_cv_func_shl_load=yes
11740else
11741  $as_echo "$as_me: failed program was:" >&5
11742sed 's/^/| /' conftest.$ac_ext >&5
11743
11744	ac_cv_func_shl_load=no
11745fi
11746
11747rm -rf conftest.dSYM
11748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11749      conftest$ac_exeext conftest.$ac_ext
11750fi
11751{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11752$as_echo "$ac_cv_func_shl_load" >&6; }
11753if test $ac_cv_func_shl_load = yes; then
11754  lt_cv_dlopen="shl_load"
11755else
11756  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11757$as_echo_n "checking for shl_load in -ldld... " >&6; }
11758if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11759  $as_echo_n "(cached) " >&6
11760else
11761  ac_check_lib_save_LIBS=$LIBS
11762LIBS="-ldld  $LIBS"
11763cat >conftest.$ac_ext <<_ACEOF
11764/* confdefs.h.  */
11765_ACEOF
11766cat confdefs.h >>conftest.$ac_ext
11767cat >>conftest.$ac_ext <<_ACEOF
11768/* end confdefs.h.  */
11769
11770/* Override any GCC internal prototype to avoid an error.
11771   Use char because int might match the return type of a GCC
11772   builtin and then its argument prototype would still apply.  */
11773#ifdef __cplusplus
11774extern "C"
11775#endif
11776char shl_load ();
11777int
11778main ()
11779{
11780return shl_load ();
11781  ;
11782  return 0;
11783}
11784_ACEOF
11785rm -f conftest.$ac_objext conftest$ac_exeext
11786if { (ac_try="$ac_link"
11787case "(($ac_try" in
11788  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789  *) ac_try_echo=$ac_try;;
11790esac
11791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11792$as_echo "$ac_try_echo") >&5
11793  (eval "$ac_link") 2>conftest.er1
11794  ac_status=$?
11795  grep -v '^ *+' conftest.er1 >conftest.err
11796  rm -f conftest.er1
11797  cat conftest.err >&5
11798  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799  (exit $ac_status); } && {
11800	 test -z "$ac_c_werror_flag" ||
11801	 test ! -s conftest.err
11802       } && test -s conftest$ac_exeext && {
11803	 test "$cross_compiling" = yes ||
11804	 $as_test_x conftest$ac_exeext
11805       }; then
11806  ac_cv_lib_dld_shl_load=yes
11807else
11808  $as_echo "$as_me: failed program was:" >&5
11809sed 's/^/| /' conftest.$ac_ext >&5
11810
11811	ac_cv_lib_dld_shl_load=no
11812fi
11813
11814rm -rf conftest.dSYM
11815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11816      conftest$ac_exeext conftest.$ac_ext
11817LIBS=$ac_check_lib_save_LIBS
11818fi
11819{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11820$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11821if test $ac_cv_lib_dld_shl_load = yes; then
11822  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11823else
11824  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11825$as_echo_n "checking for dlopen... " >&6; }
11826if test "${ac_cv_func_dlopen+set}" = set; then
11827  $as_echo_n "(cached) " >&6
11828else
11829  cat >conftest.$ac_ext <<_ACEOF
11830/* confdefs.h.  */
11831_ACEOF
11832cat confdefs.h >>conftest.$ac_ext
11833cat >>conftest.$ac_ext <<_ACEOF
11834/* end confdefs.h.  */
11835/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11836   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11837#define dlopen innocuous_dlopen
11838
11839/* System header to define __stub macros and hopefully few prototypes,
11840    which can conflict with char dlopen (); below.
11841    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11842    <limits.h> exists even on freestanding compilers.  */
11843
11844#ifdef __STDC__
11845# include <limits.h>
11846#else
11847# include <assert.h>
11848#endif
11849
11850#undef dlopen
11851
11852/* Override any GCC internal prototype to avoid an error.
11853   Use char because int might match the return type of a GCC
11854   builtin and then its argument prototype would still apply.  */
11855#ifdef __cplusplus
11856extern "C"
11857#endif
11858char dlopen ();
11859/* The GNU C library defines this for functions which it implements
11860    to always fail with ENOSYS.  Some functions are actually named
11861    something starting with __ and the normal name is an alias.  */
11862#if defined __stub_dlopen || defined __stub___dlopen
11863choke me
11864#endif
11865
11866int
11867main ()
11868{
11869return dlopen ();
11870  ;
11871  return 0;
11872}
11873_ACEOF
11874rm -f conftest.$ac_objext conftest$ac_exeext
11875if { (ac_try="$ac_link"
11876case "(($ac_try" in
11877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878  *) ac_try_echo=$ac_try;;
11879esac
11880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11881$as_echo "$ac_try_echo") >&5
11882  (eval "$ac_link") 2>conftest.er1
11883  ac_status=$?
11884  grep -v '^ *+' conftest.er1 >conftest.err
11885  rm -f conftest.er1
11886  cat conftest.err >&5
11887  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888  (exit $ac_status); } && {
11889	 test -z "$ac_c_werror_flag" ||
11890	 test ! -s conftest.err
11891       } && test -s conftest$ac_exeext && {
11892	 test "$cross_compiling" = yes ||
11893	 $as_test_x conftest$ac_exeext
11894       }; then
11895  ac_cv_func_dlopen=yes
11896else
11897  $as_echo "$as_me: failed program was:" >&5
11898sed 's/^/| /' conftest.$ac_ext >&5
11899
11900	ac_cv_func_dlopen=no
11901fi
11902
11903rm -rf conftest.dSYM
11904rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11905      conftest$ac_exeext conftest.$ac_ext
11906fi
11907{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11908$as_echo "$ac_cv_func_dlopen" >&6; }
11909if test $ac_cv_func_dlopen = yes; then
11910  lt_cv_dlopen="dlopen"
11911else
11912  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11913$as_echo_n "checking for dlopen in -ldl... " >&6; }
11914if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11915  $as_echo_n "(cached) " >&6
11916else
11917  ac_check_lib_save_LIBS=$LIBS
11918LIBS="-ldl  $LIBS"
11919cat >conftest.$ac_ext <<_ACEOF
11920/* confdefs.h.  */
11921_ACEOF
11922cat confdefs.h >>conftest.$ac_ext
11923cat >>conftest.$ac_ext <<_ACEOF
11924/* end confdefs.h.  */
11925
11926/* Override any GCC internal prototype to avoid an error.
11927   Use char because int might match the return type of a GCC
11928   builtin and then its argument prototype would still apply.  */
11929#ifdef __cplusplus
11930extern "C"
11931#endif
11932char dlopen ();
11933int
11934main ()
11935{
11936return dlopen ();
11937  ;
11938  return 0;
11939}
11940_ACEOF
11941rm -f conftest.$ac_objext conftest$ac_exeext
11942if { (ac_try="$ac_link"
11943case "(($ac_try" in
11944  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945  *) ac_try_echo=$ac_try;;
11946esac
11947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11948$as_echo "$ac_try_echo") >&5
11949  (eval "$ac_link") 2>conftest.er1
11950  ac_status=$?
11951  grep -v '^ *+' conftest.er1 >conftest.err
11952  rm -f conftest.er1
11953  cat conftest.err >&5
11954  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955  (exit $ac_status); } && {
11956	 test -z "$ac_c_werror_flag" ||
11957	 test ! -s conftest.err
11958       } && test -s conftest$ac_exeext && {
11959	 test "$cross_compiling" = yes ||
11960	 $as_test_x conftest$ac_exeext
11961       }; then
11962  ac_cv_lib_dl_dlopen=yes
11963else
11964  $as_echo "$as_me: failed program was:" >&5
11965sed 's/^/| /' conftest.$ac_ext >&5
11966
11967	ac_cv_lib_dl_dlopen=no
11968fi
11969
11970rm -rf conftest.dSYM
11971rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11972      conftest$ac_exeext conftest.$ac_ext
11973LIBS=$ac_check_lib_save_LIBS
11974fi
11975{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11976$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11977if test $ac_cv_lib_dl_dlopen = yes; then
11978  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11979else
11980  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11981$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11982if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11983  $as_echo_n "(cached) " >&6
11984else
11985  ac_check_lib_save_LIBS=$LIBS
11986LIBS="-lsvld  $LIBS"
11987cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h.  */
11989_ACEOF
11990cat confdefs.h >>conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF
11992/* end confdefs.h.  */
11993
11994/* Override any GCC internal prototype to avoid an error.
11995   Use char because int might match the return type of a GCC
11996   builtin and then its argument prototype would still apply.  */
11997#ifdef __cplusplus
11998extern "C"
11999#endif
12000char dlopen ();
12001int
12002main ()
12003{
12004return dlopen ();
12005  ;
12006  return 0;
12007}
12008_ACEOF
12009rm -f conftest.$ac_objext conftest$ac_exeext
12010if { (ac_try="$ac_link"
12011case "(($ac_try" in
12012  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12013  *) ac_try_echo=$ac_try;;
12014esac
12015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12016$as_echo "$ac_try_echo") >&5
12017  (eval "$ac_link") 2>conftest.er1
12018  ac_status=$?
12019  grep -v '^ *+' conftest.er1 >conftest.err
12020  rm -f conftest.er1
12021  cat conftest.err >&5
12022  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023  (exit $ac_status); } && {
12024	 test -z "$ac_c_werror_flag" ||
12025	 test ! -s conftest.err
12026       } && test -s conftest$ac_exeext && {
12027	 test "$cross_compiling" = yes ||
12028	 $as_test_x conftest$ac_exeext
12029       }; then
12030  ac_cv_lib_svld_dlopen=yes
12031else
12032  $as_echo "$as_me: failed program was:" >&5
12033sed 's/^/| /' conftest.$ac_ext >&5
12034
12035	ac_cv_lib_svld_dlopen=no
12036fi
12037
12038rm -rf conftest.dSYM
12039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12040      conftest$ac_exeext conftest.$ac_ext
12041LIBS=$ac_check_lib_save_LIBS
12042fi
12043{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12044$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12045if test $ac_cv_lib_svld_dlopen = yes; then
12046  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12047else
12048  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12049$as_echo_n "checking for dld_link in -ldld... " >&6; }
12050if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12051  $as_echo_n "(cached) " >&6
12052else
12053  ac_check_lib_save_LIBS=$LIBS
12054LIBS="-ldld  $LIBS"
12055cat >conftest.$ac_ext <<_ACEOF
12056/* confdefs.h.  */
12057_ACEOF
12058cat confdefs.h >>conftest.$ac_ext
12059cat >>conftest.$ac_ext <<_ACEOF
12060/* end confdefs.h.  */
12061
12062/* Override any GCC internal prototype to avoid an error.
12063   Use char because int might match the return type of a GCC
12064   builtin and then its argument prototype would still apply.  */
12065#ifdef __cplusplus
12066extern "C"
12067#endif
12068char dld_link ();
12069int
12070main ()
12071{
12072return dld_link ();
12073  ;
12074  return 0;
12075}
12076_ACEOF
12077rm -f conftest.$ac_objext conftest$ac_exeext
12078if { (ac_try="$ac_link"
12079case "(($ac_try" in
12080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12081  *) ac_try_echo=$ac_try;;
12082esac
12083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12084$as_echo "$ac_try_echo") >&5
12085  (eval "$ac_link") 2>conftest.er1
12086  ac_status=$?
12087  grep -v '^ *+' conftest.er1 >conftest.err
12088  rm -f conftest.er1
12089  cat conftest.err >&5
12090  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091  (exit $ac_status); } && {
12092	 test -z "$ac_c_werror_flag" ||
12093	 test ! -s conftest.err
12094       } && test -s conftest$ac_exeext && {
12095	 test "$cross_compiling" = yes ||
12096	 $as_test_x conftest$ac_exeext
12097       }; then
12098  ac_cv_lib_dld_dld_link=yes
12099else
12100  $as_echo "$as_me: failed program was:" >&5
12101sed 's/^/| /' conftest.$ac_ext >&5
12102
12103	ac_cv_lib_dld_dld_link=no
12104fi
12105
12106rm -rf conftest.dSYM
12107rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12108      conftest$ac_exeext conftest.$ac_ext
12109LIBS=$ac_check_lib_save_LIBS
12110fi
12111{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12112$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12113if test $ac_cv_lib_dld_dld_link = yes; then
12114  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12115fi
12116
12117
12118fi
12119
12120
12121fi
12122
12123
12124fi
12125
12126
12127fi
12128
12129
12130fi
12131
12132    ;;
12133  esac
12134
12135  if test "x$lt_cv_dlopen" != xno; then
12136    enable_dlopen=yes
12137  else
12138    enable_dlopen=no
12139  fi
12140
12141  case $lt_cv_dlopen in
12142  dlopen)
12143    save_CPPFLAGS="$CPPFLAGS"
12144    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12145
12146    save_LDFLAGS="$LDFLAGS"
12147    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12148
12149    save_LIBS="$LIBS"
12150    LIBS="$lt_cv_dlopen_libs $LIBS"
12151
12152    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12153$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12154if test "${lt_cv_dlopen_self+set}" = set; then
12155  $as_echo_n "(cached) " >&6
12156else
12157  	  if test "$cross_compiling" = yes; then :
12158  lt_cv_dlopen_self=cross
12159else
12160  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12161  lt_status=$lt_dlunknown
12162  cat > conftest.$ac_ext <<_LT_EOF
12163#line 12163 "configure"
12164#include "confdefs.h"
12165
12166#if HAVE_DLFCN_H
12167#include <dlfcn.h>
12168#endif
12169
12170#include <stdio.h>
12171
12172#ifdef RTLD_GLOBAL
12173#  define LT_DLGLOBAL		RTLD_GLOBAL
12174#else
12175#  ifdef DL_GLOBAL
12176#    define LT_DLGLOBAL		DL_GLOBAL
12177#  else
12178#    define LT_DLGLOBAL		0
12179#  endif
12180#endif
12181
12182/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12183   find out it does not work in some platform. */
12184#ifndef LT_DLLAZY_OR_NOW
12185#  ifdef RTLD_LAZY
12186#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12187#  else
12188#    ifdef DL_LAZY
12189#      define LT_DLLAZY_OR_NOW		DL_LAZY
12190#    else
12191#      ifdef RTLD_NOW
12192#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12193#      else
12194#        ifdef DL_NOW
12195#          define LT_DLLAZY_OR_NOW	DL_NOW
12196#        else
12197#          define LT_DLLAZY_OR_NOW	0
12198#        endif
12199#      endif
12200#    endif
12201#  endif
12202#endif
12203
12204#ifdef __cplusplus
12205extern "C" void exit (int);
12206#endif
12207
12208void fnord() { int i=42;}
12209int main ()
12210{
12211  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12212  int status = $lt_dlunknown;
12213
12214  if (self)
12215    {
12216      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12217      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12218      /* dlclose (self); */
12219    }
12220  else
12221    puts (dlerror ());
12222
12223    exit (status);
12224}
12225_LT_EOF
12226  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12227  (eval $ac_link) 2>&5
12228  ac_status=$?
12229  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12231    (./conftest; exit; ) >&5 2>/dev/null
12232    lt_status=$?
12233    case x$lt_status in
12234      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12235      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12236      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12237    esac
12238  else :
12239    # compilation failed
12240    lt_cv_dlopen_self=no
12241  fi
12242fi
12243rm -fr conftest*
12244
12245
12246fi
12247{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12248$as_echo "$lt_cv_dlopen_self" >&6; }
12249
12250    if test "x$lt_cv_dlopen_self" = xyes; then
12251      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12252      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12253$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12254if test "${lt_cv_dlopen_self_static+set}" = set; then
12255  $as_echo_n "(cached) " >&6
12256else
12257  	  if test "$cross_compiling" = yes; then :
12258  lt_cv_dlopen_self_static=cross
12259else
12260  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12261  lt_status=$lt_dlunknown
12262  cat > conftest.$ac_ext <<_LT_EOF
12263#line 12263 "configure"
12264#include "confdefs.h"
12265
12266#if HAVE_DLFCN_H
12267#include <dlfcn.h>
12268#endif
12269
12270#include <stdio.h>
12271
12272#ifdef RTLD_GLOBAL
12273#  define LT_DLGLOBAL		RTLD_GLOBAL
12274#else
12275#  ifdef DL_GLOBAL
12276#    define LT_DLGLOBAL		DL_GLOBAL
12277#  else
12278#    define LT_DLGLOBAL		0
12279#  endif
12280#endif
12281
12282/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12283   find out it does not work in some platform. */
12284#ifndef LT_DLLAZY_OR_NOW
12285#  ifdef RTLD_LAZY
12286#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12287#  else
12288#    ifdef DL_LAZY
12289#      define LT_DLLAZY_OR_NOW		DL_LAZY
12290#    else
12291#      ifdef RTLD_NOW
12292#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12293#      else
12294#        ifdef DL_NOW
12295#          define LT_DLLAZY_OR_NOW	DL_NOW
12296#        else
12297#          define LT_DLLAZY_OR_NOW	0
12298#        endif
12299#      endif
12300#    endif
12301#  endif
12302#endif
12303
12304#ifdef __cplusplus
12305extern "C" void exit (int);
12306#endif
12307
12308void fnord() { int i=42;}
12309int main ()
12310{
12311  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12312  int status = $lt_dlunknown;
12313
12314  if (self)
12315    {
12316      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12317      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12318      /* dlclose (self); */
12319    }
12320  else
12321    puts (dlerror ());
12322
12323    exit (status);
12324}
12325_LT_EOF
12326  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12327  (eval $ac_link) 2>&5
12328  ac_status=$?
12329  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12331    (./conftest; exit; ) >&5 2>/dev/null
12332    lt_status=$?
12333    case x$lt_status in
12334      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12335      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12336      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12337    esac
12338  else :
12339    # compilation failed
12340    lt_cv_dlopen_self_static=no
12341  fi
12342fi
12343rm -fr conftest*
12344
12345
12346fi
12347{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12348$as_echo "$lt_cv_dlopen_self_static" >&6; }
12349    fi
12350
12351    CPPFLAGS="$save_CPPFLAGS"
12352    LDFLAGS="$save_LDFLAGS"
12353    LIBS="$save_LIBS"
12354    ;;
12355  esac
12356
12357  case $lt_cv_dlopen_self in
12358  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12359  *) enable_dlopen_self=unknown ;;
12360  esac
12361
12362  case $lt_cv_dlopen_self_static in
12363  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12364  *) enable_dlopen_self_static=unknown ;;
12365  esac
12366fi
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384striplib=
12385old_striplib=
12386{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12387$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12388if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12389  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12390  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12391  { $as_echo "$as_me:$LINENO: result: yes" >&5
12392$as_echo "yes" >&6; }
12393else
12394# FIXME - insert some real tests, host_os isn't really good enough
12395  case $host_os in
12396  darwin*)
12397    if test -n "$STRIP" ; then
12398      striplib="$STRIP -x"
12399      old_striplib="$STRIP -S"
12400      { $as_echo "$as_me:$LINENO: result: yes" >&5
12401$as_echo "yes" >&6; }
12402    else
12403      { $as_echo "$as_me:$LINENO: result: no" >&5
12404$as_echo "no" >&6; }
12405    fi
12406    ;;
12407  *)
12408    { $as_echo "$as_me:$LINENO: result: no" >&5
12409$as_echo "no" >&6; }
12410    ;;
12411  esac
12412fi
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425  # Report which library types will actually be built
12426  { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12427$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12428  { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12429$as_echo "$can_build_shared" >&6; }
12430
12431  { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12432$as_echo_n "checking whether to build shared libraries... " >&6; }
12433  test "$can_build_shared" = "no" && enable_shared=no
12434
12435  # On AIX, shared libraries and static libraries use the same namespace, and
12436  # are all built from PIC.
12437  case $host_os in
12438  aix3*)
12439    test "$enable_shared" = yes && enable_static=no
12440    if test -n "$RANLIB"; then
12441      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12442      postinstall_cmds='$RANLIB $lib'
12443    fi
12444    ;;
12445
12446  aix[4-9]*)
12447    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12448      test "$enable_shared" = yes && enable_static=no
12449    fi
12450    ;;
12451  esac
12452  { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12453$as_echo "$enable_shared" >&6; }
12454
12455  { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12456$as_echo_n "checking whether to build static libraries... " >&6; }
12457  # Make sure either enable_shared or enable_static is yes.
12458  test "$enable_shared" = yes || enable_static=yes
12459  { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12460$as_echo "$enable_static" >&6; }
12461
12462
12463
12464
12465fi
12466ac_ext=c
12467ac_cpp='$CPP $CPPFLAGS'
12468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12470ac_compiler_gnu=$ac_cv_c_compiler_gnu
12471
12472CC="$lt_save_CC"
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486        ac_config_commands="$ac_config_commands libtool"
12487
12488
12489
12490
12491# Only expand once:
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502ac_ext=cpp
12503ac_cpp='$CXXCPP $CPPFLAGS'
12504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12507if test -z "$CXX"; then
12508  if test -n "$CCC"; then
12509    CXX=$CCC
12510  else
12511    if test -n "$ac_tool_prefix"; then
12512  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12513  do
12514    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12515set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12516{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12517$as_echo_n "checking for $ac_word... " >&6; }
12518if test "${ac_cv_prog_CXX+set}" = set; then
12519  $as_echo_n "(cached) " >&6
12520else
12521  if test -n "$CXX"; then
12522  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12523else
12524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525for as_dir in $PATH
12526do
12527  IFS=$as_save_IFS
12528  test -z "$as_dir" && as_dir=.
12529  for ac_exec_ext in '' $ac_executable_extensions; do
12530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12531    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12532    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12533    break 2
12534  fi
12535done
12536done
12537IFS=$as_save_IFS
12538
12539fi
12540fi
12541CXX=$ac_cv_prog_CXX
12542if test -n "$CXX"; then
12543  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
12544$as_echo "$CXX" >&6; }
12545else
12546  { $as_echo "$as_me:$LINENO: result: no" >&5
12547$as_echo "no" >&6; }
12548fi
12549
12550
12551    test -n "$CXX" && break
12552  done
12553fi
12554if test -z "$CXX"; then
12555  ac_ct_CXX=$CXX
12556  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12557do
12558  # Extract the first word of "$ac_prog", so it can be a program name with args.
12559set dummy $ac_prog; ac_word=$2
12560{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12561$as_echo_n "checking for $ac_word... " >&6; }
12562if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12563  $as_echo_n "(cached) " >&6
12564else
12565  if test -n "$ac_ct_CXX"; then
12566  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12567else
12568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569for as_dir in $PATH
12570do
12571  IFS=$as_save_IFS
12572  test -z "$as_dir" && as_dir=.
12573  for ac_exec_ext in '' $ac_executable_extensions; do
12574  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12575    ac_cv_prog_ac_ct_CXX="$ac_prog"
12576    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12577    break 2
12578  fi
12579done
12580done
12581IFS=$as_save_IFS
12582
12583fi
12584fi
12585ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12586if test -n "$ac_ct_CXX"; then
12587  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12588$as_echo "$ac_ct_CXX" >&6; }
12589else
12590  { $as_echo "$as_me:$LINENO: result: no" >&5
12591$as_echo "no" >&6; }
12592fi
12593
12594
12595  test -n "$ac_ct_CXX" && break
12596done
12597
12598  if test "x$ac_ct_CXX" = x; then
12599    CXX="g++"
12600  else
12601    case $cross_compiling:$ac_tool_warned in
12602yes:)
12603{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12604whose name does not start with the host triplet.  If you think this
12605configuration is useful to you, please write to autoconf@gnu.org." >&5
12606$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12607whose name does not start with the host triplet.  If you think this
12608configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12609ac_tool_warned=yes ;;
12610esac
12611    CXX=$ac_ct_CXX
12612  fi
12613fi
12614
12615  fi
12616fi
12617# Provide some information about the compiler.
12618$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
12619set X $ac_compile
12620ac_compiler=$2
12621{ (ac_try="$ac_compiler --version >&5"
12622case "(($ac_try" in
12623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624  *) ac_try_echo=$ac_try;;
12625esac
12626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12627$as_echo "$ac_try_echo") >&5
12628  (eval "$ac_compiler --version >&5") 2>&5
12629  ac_status=$?
12630  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631  (exit $ac_status); }
12632{ (ac_try="$ac_compiler -v >&5"
12633case "(($ac_try" in
12634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635  *) ac_try_echo=$ac_try;;
12636esac
12637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12638$as_echo "$ac_try_echo") >&5
12639  (eval "$ac_compiler -v >&5") 2>&5
12640  ac_status=$?
12641  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642  (exit $ac_status); }
12643{ (ac_try="$ac_compiler -V >&5"
12644case "(($ac_try" in
12645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646  *) ac_try_echo=$ac_try;;
12647esac
12648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12649$as_echo "$ac_try_echo") >&5
12650  (eval "$ac_compiler -V >&5") 2>&5
12651  ac_status=$?
12652  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653  (exit $ac_status); }
12654
12655{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12656$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12657if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12658  $as_echo_n "(cached) " >&6
12659else
12660  cat >conftest.$ac_ext <<_ACEOF
12661/* confdefs.h.  */
12662_ACEOF
12663cat confdefs.h >>conftest.$ac_ext
12664cat >>conftest.$ac_ext <<_ACEOF
12665/* end confdefs.h.  */
12666
12667int
12668main ()
12669{
12670#ifndef __GNUC__
12671       choke me
12672#endif
12673
12674  ;
12675  return 0;
12676}
12677_ACEOF
12678rm -f conftest.$ac_objext
12679if { (ac_try="$ac_compile"
12680case "(($ac_try" in
12681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682  *) ac_try_echo=$ac_try;;
12683esac
12684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12685$as_echo "$ac_try_echo") >&5
12686  (eval "$ac_compile") 2>conftest.er1
12687  ac_status=$?
12688  grep -v '^ *+' conftest.er1 >conftest.err
12689  rm -f conftest.er1
12690  cat conftest.err >&5
12691  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692  (exit $ac_status); } && {
12693	 test -z "$ac_cxx_werror_flag" ||
12694	 test ! -s conftest.err
12695       } && test -s conftest.$ac_objext; then
12696  ac_compiler_gnu=yes
12697else
12698  $as_echo "$as_me: failed program was:" >&5
12699sed 's/^/| /' conftest.$ac_ext >&5
12700
12701	ac_compiler_gnu=no
12702fi
12703
12704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12705ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12706
12707fi
12708{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
12709$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12710if test $ac_compiler_gnu = yes; then
12711  GXX=yes
12712else
12713  GXX=
12714fi
12715ac_test_CXXFLAGS=${CXXFLAGS+set}
12716ac_save_CXXFLAGS=$CXXFLAGS
12717{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
12718$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12719if test "${ac_cv_prog_cxx_g+set}" = set; then
12720  $as_echo_n "(cached) " >&6
12721else
12722  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12723   ac_cxx_werror_flag=yes
12724   ac_cv_prog_cxx_g=no
12725   CXXFLAGS="-g"
12726   cat >conftest.$ac_ext <<_ACEOF
12727/* confdefs.h.  */
12728_ACEOF
12729cat confdefs.h >>conftest.$ac_ext
12730cat >>conftest.$ac_ext <<_ACEOF
12731/* end confdefs.h.  */
12732
12733int
12734main ()
12735{
12736
12737  ;
12738  return 0;
12739}
12740_ACEOF
12741rm -f conftest.$ac_objext
12742if { (ac_try="$ac_compile"
12743case "(($ac_try" in
12744  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745  *) ac_try_echo=$ac_try;;
12746esac
12747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12748$as_echo "$ac_try_echo") >&5
12749  (eval "$ac_compile") 2>conftest.er1
12750  ac_status=$?
12751  grep -v '^ *+' conftest.er1 >conftest.err
12752  rm -f conftest.er1
12753  cat conftest.err >&5
12754  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755  (exit $ac_status); } && {
12756	 test -z "$ac_cxx_werror_flag" ||
12757	 test ! -s conftest.err
12758       } && test -s conftest.$ac_objext; then
12759  ac_cv_prog_cxx_g=yes
12760else
12761  $as_echo "$as_me: failed program was:" >&5
12762sed 's/^/| /' conftest.$ac_ext >&5
12763
12764	CXXFLAGS=""
12765      cat >conftest.$ac_ext <<_ACEOF
12766/* confdefs.h.  */
12767_ACEOF
12768cat confdefs.h >>conftest.$ac_ext
12769cat >>conftest.$ac_ext <<_ACEOF
12770/* end confdefs.h.  */
12771
12772int
12773main ()
12774{
12775
12776  ;
12777  return 0;
12778}
12779_ACEOF
12780rm -f conftest.$ac_objext
12781if { (ac_try="$ac_compile"
12782case "(($ac_try" in
12783  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784  *) ac_try_echo=$ac_try;;
12785esac
12786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12787$as_echo "$ac_try_echo") >&5
12788  (eval "$ac_compile") 2>conftest.er1
12789  ac_status=$?
12790  grep -v '^ *+' conftest.er1 >conftest.err
12791  rm -f conftest.er1
12792  cat conftest.err >&5
12793  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794  (exit $ac_status); } && {
12795	 test -z "$ac_cxx_werror_flag" ||
12796	 test ! -s conftest.err
12797       } && test -s conftest.$ac_objext; then
12798  :
12799else
12800  $as_echo "$as_me: failed program was:" >&5
12801sed 's/^/| /' conftest.$ac_ext >&5
12802
12803	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12804	 CXXFLAGS="-g"
12805	 cat >conftest.$ac_ext <<_ACEOF
12806/* confdefs.h.  */
12807_ACEOF
12808cat confdefs.h >>conftest.$ac_ext
12809cat >>conftest.$ac_ext <<_ACEOF
12810/* end confdefs.h.  */
12811
12812int
12813main ()
12814{
12815
12816  ;
12817  return 0;
12818}
12819_ACEOF
12820rm -f conftest.$ac_objext
12821if { (ac_try="$ac_compile"
12822case "(($ac_try" in
12823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824  *) ac_try_echo=$ac_try;;
12825esac
12826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12827$as_echo "$ac_try_echo") >&5
12828  (eval "$ac_compile") 2>conftest.er1
12829  ac_status=$?
12830  grep -v '^ *+' conftest.er1 >conftest.err
12831  rm -f conftest.er1
12832  cat conftest.err >&5
12833  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834  (exit $ac_status); } && {
12835	 test -z "$ac_cxx_werror_flag" ||
12836	 test ! -s conftest.err
12837       } && test -s conftest.$ac_objext; then
12838  ac_cv_prog_cxx_g=yes
12839else
12840  $as_echo "$as_me: failed program was:" >&5
12841sed 's/^/| /' conftest.$ac_ext >&5
12842
12843
12844fi
12845
12846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12847fi
12848
12849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850fi
12851
12852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12854fi
12855{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
12856$as_echo "$ac_cv_prog_cxx_g" >&6; }
12857if test "$ac_test_CXXFLAGS" = set; then
12858  CXXFLAGS=$ac_save_CXXFLAGS
12859elif test $ac_cv_prog_cxx_g = yes; then
12860  if test "$GXX" = yes; then
12861    CXXFLAGS="-g -O2"
12862  else
12863    CXXFLAGS="-g"
12864  fi
12865else
12866  if test "$GXX" = yes; then
12867    CXXFLAGS="-O2"
12868  else
12869    CXXFLAGS=
12870  fi
12871fi
12872ac_ext=c
12873ac_cpp='$CPP $CPPFLAGS'
12874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12876ac_compiler_gnu=$ac_cv_c_compiler_gnu
12877
12878if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12879    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12880    (test "X$CXX" != "Xg++"))) ; then
12881  ac_ext=cpp
12882ac_cpp='$CXXCPP $CPPFLAGS'
12883ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12884ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12885ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12886{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
12887$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12888if test -z "$CXXCPP"; then
12889  if test "${ac_cv_prog_CXXCPP+set}" = set; then
12890  $as_echo_n "(cached) " >&6
12891else
12892      # Double quotes because CXXCPP needs to be expanded
12893    for CXXCPP in "$CXX -E" "/lib/cpp"
12894    do
12895      ac_preproc_ok=false
12896for ac_cxx_preproc_warn_flag in '' yes
12897do
12898  # Use a header file that comes with gcc, so configuring glibc
12899  # with a fresh cross-compiler works.
12900  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12901  # <limits.h> exists even on freestanding compilers.
12902  # On the NeXT, cc -E runs the code through the compiler's parser,
12903  # not just through cpp. "Syntax error" is here to catch this case.
12904  cat >conftest.$ac_ext <<_ACEOF
12905/* confdefs.h.  */
12906_ACEOF
12907cat confdefs.h >>conftest.$ac_ext
12908cat >>conftest.$ac_ext <<_ACEOF
12909/* end confdefs.h.  */
12910#ifdef __STDC__
12911# include <limits.h>
12912#else
12913# include <assert.h>
12914#endif
12915		     Syntax error
12916_ACEOF
12917if { (ac_try="$ac_cpp conftest.$ac_ext"
12918case "(($ac_try" in
12919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12920  *) ac_try_echo=$ac_try;;
12921esac
12922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12923$as_echo "$ac_try_echo") >&5
12924  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12925  ac_status=$?
12926  grep -v '^ *+' conftest.er1 >conftest.err
12927  rm -f conftest.er1
12928  cat conftest.err >&5
12929  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930  (exit $ac_status); } >/dev/null && {
12931	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12932	 test ! -s conftest.err
12933       }; then
12934  :
12935else
12936  $as_echo "$as_me: failed program was:" >&5
12937sed 's/^/| /' conftest.$ac_ext >&5
12938
12939  # Broken: fails on valid input.
12940continue
12941fi
12942
12943rm -f conftest.err conftest.$ac_ext
12944
12945  # OK, works on sane cases.  Now check whether nonexistent headers
12946  # can be detected and how.
12947  cat >conftest.$ac_ext <<_ACEOF
12948/* confdefs.h.  */
12949_ACEOF
12950cat confdefs.h >>conftest.$ac_ext
12951cat >>conftest.$ac_ext <<_ACEOF
12952/* end confdefs.h.  */
12953#include <ac_nonexistent.h>
12954_ACEOF
12955if { (ac_try="$ac_cpp conftest.$ac_ext"
12956case "(($ac_try" in
12957  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958  *) ac_try_echo=$ac_try;;
12959esac
12960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12961$as_echo "$ac_try_echo") >&5
12962  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12963  ac_status=$?
12964  grep -v '^ *+' conftest.er1 >conftest.err
12965  rm -f conftest.er1
12966  cat conftest.err >&5
12967  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968  (exit $ac_status); } >/dev/null && {
12969	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12970	 test ! -s conftest.err
12971       }; then
12972  # Broken: success on invalid input.
12973continue
12974else
12975  $as_echo "$as_me: failed program was:" >&5
12976sed 's/^/| /' conftest.$ac_ext >&5
12977
12978  # Passes both tests.
12979ac_preproc_ok=:
12980break
12981fi
12982
12983rm -f conftest.err conftest.$ac_ext
12984
12985done
12986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12987rm -f conftest.err conftest.$ac_ext
12988if $ac_preproc_ok; then
12989  break
12990fi
12991
12992    done
12993    ac_cv_prog_CXXCPP=$CXXCPP
12994
12995fi
12996  CXXCPP=$ac_cv_prog_CXXCPP
12997else
12998  ac_cv_prog_CXXCPP=$CXXCPP
12999fi
13000{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
13001$as_echo "$CXXCPP" >&6; }
13002ac_preproc_ok=false
13003for ac_cxx_preproc_warn_flag in '' yes
13004do
13005  # Use a header file that comes with gcc, so configuring glibc
13006  # with a fresh cross-compiler works.
13007  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13008  # <limits.h> exists even on freestanding compilers.
13009  # On the NeXT, cc -E runs the code through the compiler's parser,
13010  # not just through cpp. "Syntax error" is here to catch this case.
13011  cat >conftest.$ac_ext <<_ACEOF
13012/* confdefs.h.  */
13013_ACEOF
13014cat confdefs.h >>conftest.$ac_ext
13015cat >>conftest.$ac_ext <<_ACEOF
13016/* end confdefs.h.  */
13017#ifdef __STDC__
13018# include <limits.h>
13019#else
13020# include <assert.h>
13021#endif
13022		     Syntax error
13023_ACEOF
13024if { (ac_try="$ac_cpp conftest.$ac_ext"
13025case "(($ac_try" in
13026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13027  *) ac_try_echo=$ac_try;;
13028esac
13029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13030$as_echo "$ac_try_echo") >&5
13031  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13032  ac_status=$?
13033  grep -v '^ *+' conftest.er1 >conftest.err
13034  rm -f conftest.er1
13035  cat conftest.err >&5
13036  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037  (exit $ac_status); } >/dev/null && {
13038	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13039	 test ! -s conftest.err
13040       }; then
13041  :
13042else
13043  $as_echo "$as_me: failed program was:" >&5
13044sed 's/^/| /' conftest.$ac_ext >&5
13045
13046  # Broken: fails on valid input.
13047continue
13048fi
13049
13050rm -f conftest.err conftest.$ac_ext
13051
13052  # OK, works on sane cases.  Now check whether nonexistent headers
13053  # can be detected and how.
13054  cat >conftest.$ac_ext <<_ACEOF
13055/* confdefs.h.  */
13056_ACEOF
13057cat confdefs.h >>conftest.$ac_ext
13058cat >>conftest.$ac_ext <<_ACEOF
13059/* end confdefs.h.  */
13060#include <ac_nonexistent.h>
13061_ACEOF
13062if { (ac_try="$ac_cpp conftest.$ac_ext"
13063case "(($ac_try" in
13064  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13065  *) ac_try_echo=$ac_try;;
13066esac
13067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13068$as_echo "$ac_try_echo") >&5
13069  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13070  ac_status=$?
13071  grep -v '^ *+' conftest.er1 >conftest.err
13072  rm -f conftest.er1
13073  cat conftest.err >&5
13074  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075  (exit $ac_status); } >/dev/null && {
13076	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13077	 test ! -s conftest.err
13078       }; then
13079  # Broken: success on invalid input.
13080continue
13081else
13082  $as_echo "$as_me: failed program was:" >&5
13083sed 's/^/| /' conftest.$ac_ext >&5
13084
13085  # Passes both tests.
13086ac_preproc_ok=:
13087break
13088fi
13089
13090rm -f conftest.err conftest.$ac_ext
13091
13092done
13093# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13094rm -f conftest.err conftest.$ac_ext
13095if $ac_preproc_ok; then
13096  :
13097else
13098  _lt_caught_CXX_error=yes
13099fi
13100
13101ac_ext=c
13102ac_cpp='$CPP $CPPFLAGS'
13103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13105ac_compiler_gnu=$ac_cv_c_compiler_gnu
13106
13107else
13108  _lt_caught_CXX_error=yes
13109fi
13110
13111
13112
13113
13114
13115{ $as_echo "$as_me:$LINENO: checking for gethostname in -lnsl" >&5
13116$as_echo_n "checking for gethostname in -lnsl... " >&6; }
13117if test "${ac_cv_lib_nsl_gethostname+set}" = set; then
13118  $as_echo_n "(cached) " >&6
13119else
13120  ac_check_lib_save_LIBS=$LIBS
13121LIBS="-lnsl  $LIBS"
13122cat >conftest.$ac_ext <<_ACEOF
13123/* confdefs.h.  */
13124_ACEOF
13125cat confdefs.h >>conftest.$ac_ext
13126cat >>conftest.$ac_ext <<_ACEOF
13127/* end confdefs.h.  */
13128
13129/* Override any GCC internal prototype to avoid an error.
13130   Use char because int might match the return type of a GCC
13131   builtin and then its argument prototype would still apply.  */
13132#ifdef __cplusplus
13133extern "C"
13134#endif
13135char gethostname ();
13136int
13137main ()
13138{
13139return gethostname ();
13140  ;
13141  return 0;
13142}
13143_ACEOF
13144rm -f conftest.$ac_objext conftest$ac_exeext
13145if { (ac_try="$ac_link"
13146case "(($ac_try" in
13147  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13148  *) ac_try_echo=$ac_try;;
13149esac
13150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13151$as_echo "$ac_try_echo") >&5
13152  (eval "$ac_link") 2>conftest.er1
13153  ac_status=$?
13154  grep -v '^ *+' conftest.er1 >conftest.err
13155  rm -f conftest.er1
13156  cat conftest.err >&5
13157  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158  (exit $ac_status); } && {
13159	 test -z "$ac_c_werror_flag" ||
13160	 test ! -s conftest.err
13161       } && test -s conftest$ac_exeext && {
13162	 test "$cross_compiling" = yes ||
13163	 $as_test_x conftest$ac_exeext
13164       }; then
13165  ac_cv_lib_nsl_gethostname=yes
13166else
13167  $as_echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
13170	ac_cv_lib_nsl_gethostname=no
13171fi
13172
13173rm -rf conftest.dSYM
13174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13175      conftest$ac_exeext conftest.$ac_ext
13176LIBS=$ac_check_lib_save_LIBS
13177fi
13178{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostname" >&5
13179$as_echo "$ac_cv_lib_nsl_gethostname" >&6; }
13180if test $ac_cv_lib_nsl_gethostname = yes; then
13181  cat >>confdefs.h <<_ACEOF
13182#define HAVE_LIBNSL 1
13183_ACEOF
13184
13185  LIBS="-lnsl $LIBS"
13186
13187fi
13188
13189    if test ".`echo $LIBS | grep nsl`" = .; then
13190
13191{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
13192$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13193if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
13194  $as_echo_n "(cached) " >&6
13195else
13196  ac_check_lib_save_LIBS=$LIBS
13197LIBS="-lnsl  $LIBS"
13198cat >conftest.$ac_ext <<_ACEOF
13199/* confdefs.h.  */
13200_ACEOF
13201cat confdefs.h >>conftest.$ac_ext
13202cat >>conftest.$ac_ext <<_ACEOF
13203/* end confdefs.h.  */
13204
13205/* Override any GCC internal prototype to avoid an error.
13206   Use char because int might match the return type of a GCC
13207   builtin and then its argument prototype would still apply.  */
13208#ifdef __cplusplus
13209extern "C"
13210#endif
13211char gethostbyname ();
13212int
13213main ()
13214{
13215return gethostbyname ();
13216  ;
13217  return 0;
13218}
13219_ACEOF
13220rm -f conftest.$ac_objext conftest$ac_exeext
13221if { (ac_try="$ac_link"
13222case "(($ac_try" in
13223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13224  *) ac_try_echo=$ac_try;;
13225esac
13226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13227$as_echo "$ac_try_echo") >&5
13228  (eval "$ac_link") 2>conftest.er1
13229  ac_status=$?
13230  grep -v '^ *+' conftest.er1 >conftest.err
13231  rm -f conftest.er1
13232  cat conftest.err >&5
13233  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234  (exit $ac_status); } && {
13235	 test -z "$ac_c_werror_flag" ||
13236	 test ! -s conftest.err
13237       } && test -s conftest$ac_exeext && {
13238	 test "$cross_compiling" = yes ||
13239	 $as_test_x conftest$ac_exeext
13240       }; then
13241  ac_cv_lib_nsl_gethostbyname=yes
13242else
13243  $as_echo "$as_me: failed program was:" >&5
13244sed 's/^/| /' conftest.$ac_ext >&5
13245
13246	ac_cv_lib_nsl_gethostbyname=no
13247fi
13248
13249rm -rf conftest.dSYM
13250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13251      conftest$ac_exeext conftest.$ac_ext
13252LIBS=$ac_check_lib_save_LIBS
13253fi
13254{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
13255$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13256if test $ac_cv_lib_nsl_gethostbyname = yes; then
13257  cat >>confdefs.h <<_ACEOF
13258#define HAVE_LIBNSL 1
13259_ACEOF
13260
13261  LIBS="-lnsl $LIBS"
13262
13263fi
13264
13265    fi
13266
13267{ $as_echo "$as_me:$LINENO: checking for accept in -lsocket" >&5
13268$as_echo_n "checking for accept in -lsocket... " >&6; }
13269if test "${ac_cv_lib_socket_accept+set}" = set; then
13270  $as_echo_n "(cached) " >&6
13271else
13272  ac_check_lib_save_LIBS=$LIBS
13273LIBS="-lsocket  $LIBS"
13274cat >conftest.$ac_ext <<_ACEOF
13275/* confdefs.h.  */
13276_ACEOF
13277cat confdefs.h >>conftest.$ac_ext
13278cat >>conftest.$ac_ext <<_ACEOF
13279/* end confdefs.h.  */
13280
13281/* Override any GCC internal prototype to avoid an error.
13282   Use char because int might match the return type of a GCC
13283   builtin and then its argument prototype would still apply.  */
13284#ifdef __cplusplus
13285extern "C"
13286#endif
13287char accept ();
13288int
13289main ()
13290{
13291return accept ();
13292  ;
13293  return 0;
13294}
13295_ACEOF
13296rm -f conftest.$ac_objext conftest$ac_exeext
13297if { (ac_try="$ac_link"
13298case "(($ac_try" in
13299  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300  *) ac_try_echo=$ac_try;;
13301esac
13302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13303$as_echo "$ac_try_echo") >&5
13304  (eval "$ac_link") 2>conftest.er1
13305  ac_status=$?
13306  grep -v '^ *+' conftest.er1 >conftest.err
13307  rm -f conftest.er1
13308  cat conftest.err >&5
13309  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310  (exit $ac_status); } && {
13311	 test -z "$ac_c_werror_flag" ||
13312	 test ! -s conftest.err
13313       } && test -s conftest$ac_exeext && {
13314	 test "$cross_compiling" = yes ||
13315	 $as_test_x conftest$ac_exeext
13316       }; then
13317  ac_cv_lib_socket_accept=yes
13318else
13319  $as_echo "$as_me: failed program was:" >&5
13320sed 's/^/| /' conftest.$ac_ext >&5
13321
13322	ac_cv_lib_socket_accept=no
13323fi
13324
13325rm -rf conftest.dSYM
13326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13327      conftest$ac_exeext conftest.$ac_ext
13328LIBS=$ac_check_lib_save_LIBS
13329fi
13330{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_accept" >&5
13331$as_echo "$ac_cv_lib_socket_accept" >&6; }
13332if test $ac_cv_lib_socket_accept = yes; then
13333  cat >>confdefs.h <<_ACEOF
13334#define HAVE_LIBSOCKET 1
13335_ACEOF
13336
13337  LIBS="-lsocket $LIBS"
13338
13339fi
13340
13341
13342
13343    { $as_echo "$as_me:$LINENO: checking for va_copy() function" >&5
13344$as_echo_n "checking for va_copy() function... " >&6; }
13345    if test "${ac_cv_va_copy+set}" = set; then
13346  $as_echo_n "(cached) " >&6
13347else
13348
13349    ac_cv_va_copy=""
13350
13351
13352
13353    if test ".$ac_cv_va_copy" = .; then
13354        if test "$cross_compiling" = yes; then
13355  { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13356See \`config.log' for more details." >&5
13357$as_echo "$as_me: error: cannot run test program while cross compiling
13358See \`config.log' for more details." >&2;}
13359   { (exit 1); exit 1; }; }
13360else
13361  cat >conftest.$ac_ext <<_ACEOF
13362/* confdefs.h.  */
13363_ACEOF
13364cat confdefs.h >>conftest.$ac_ext
13365cat >>conftest.$ac_ext <<_ACEOF
13366/* end confdefs.h.  */
13367
13368#include <stdlib.h>
13369#include <stdarg.h>
13370#include <string.h>
13371#define DO_VA_COPY(d, s) va_copy((d), (s))
13372void test(char *str, ...)
13373{
13374    va_list ap, ap2;
13375    int i;
13376    va_start(ap, str);
13377    DO_VA_COPY(ap2, ap);
13378    for (i = 1; i <= 9; i++) {
13379        int k = (int)va_arg(ap, int);
13380        if (k != i)
13381            abort();
13382    }
13383    DO_VA_COPY(ap, ap2);
13384    for (i = 1; i <= 9; i++) {
13385        int k = (int)va_arg(ap, int);
13386        if (k != i)
13387            abort();
13388    }
13389    va_end(ap);
13390}
13391int main(int argc, char *argv[])
13392{
13393    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
13394    exit(0);
13395}
13396
13397_ACEOF
13398rm -f conftest$ac_exeext
13399if { (ac_try="$ac_link"
13400case "(($ac_try" in
13401  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13402  *) ac_try_echo=$ac_try;;
13403esac
13404eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13405$as_echo "$ac_try_echo") >&5
13406  (eval "$ac_link") 2>&5
13407  ac_status=$?
13408  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13410  { (case "(($ac_try" in
13411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412  *) ac_try_echo=$ac_try;;
13413esac
13414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13415$as_echo "$ac_try_echo") >&5
13416  (eval "$ac_try") 2>&5
13417  ac_status=$?
13418  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419  (exit $ac_status); }; }; then
13420  ac_cv_va_copy="C99"
13421else
13422  $as_echo "$as_me: program exited with status $ac_status" >&5
13423$as_echo "$as_me: failed program was:" >&5
13424sed 's/^/| /' conftest.$ac_ext >&5
13425
13426fi
13427rm -rf conftest.dSYM
13428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13429fi
13430
13431
13432    fi
13433
13434
13435
13436
13437    if test ".$ac_cv_va_copy" = .; then
13438        if test "$cross_compiling" = yes; then
13439  { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13440See \`config.log' for more details." >&5
13441$as_echo "$as_me: error: cannot run test program while cross compiling
13442See \`config.log' for more details." >&2;}
13443   { (exit 1); exit 1; }; }
13444else
13445  cat >conftest.$ac_ext <<_ACEOF
13446/* confdefs.h.  */
13447_ACEOF
13448cat confdefs.h >>conftest.$ac_ext
13449cat >>conftest.$ac_ext <<_ACEOF
13450/* end confdefs.h.  */
13451
13452#include <stdlib.h>
13453#include <stdarg.h>
13454#include <string.h>
13455#define DO_VA_COPY(d, s) VA_COPY((d), (s))
13456void test(char *str, ...)
13457{
13458    va_list ap, ap2;
13459    int i;
13460    va_start(ap, str);
13461    DO_VA_COPY(ap2, ap);
13462    for (i = 1; i <= 9; i++) {
13463        int k = (int)va_arg(ap, int);
13464        if (k != i)
13465            abort();
13466    }
13467    DO_VA_COPY(ap, ap2);
13468    for (i = 1; i <= 9; i++) {
13469        int k = (int)va_arg(ap, int);
13470        if (k != i)
13471            abort();
13472    }
13473    va_end(ap);
13474}
13475int main(int argc, char *argv[])
13476{
13477    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
13478    exit(0);
13479}
13480
13481_ACEOF
13482rm -f conftest$ac_exeext
13483if { (ac_try="$ac_link"
13484case "(($ac_try" in
13485  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13486  *) ac_try_echo=$ac_try;;
13487esac
13488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13489$as_echo "$ac_try_echo") >&5
13490  (eval "$ac_link") 2>&5
13491  ac_status=$?
13492  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13494  { (case "(($ac_try" in
13495  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13496  *) ac_try_echo=$ac_try;;
13497esac
13498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13499$as_echo "$ac_try_echo") >&5
13500  (eval "$ac_try") 2>&5
13501  ac_status=$?
13502  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503  (exit $ac_status); }; }; then
13504  ac_cv_va_copy="GCM"
13505else
13506  $as_echo "$as_me: program exited with status $ac_status" >&5
13507$as_echo "$as_me: failed program was:" >&5
13508sed 's/^/| /' conftest.$ac_ext >&5
13509
13510fi
13511rm -rf conftest.dSYM
13512rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13513fi
13514
13515
13516    fi
13517
13518
13519
13520
13521    if test ".$ac_cv_va_copy" = .; then
13522        if test "$cross_compiling" = yes; then
13523  { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13524See \`config.log' for more details." >&5
13525$as_echo "$as_me: error: cannot run test program while cross compiling
13526See \`config.log' for more details." >&2;}
13527   { (exit 1); exit 1; }; }
13528else
13529  cat >conftest.$ac_ext <<_ACEOF
13530/* confdefs.h.  */
13531_ACEOF
13532cat confdefs.h >>conftest.$ac_ext
13533cat >>conftest.$ac_ext <<_ACEOF
13534/* end confdefs.h.  */
13535
13536#include <stdlib.h>
13537#include <stdarg.h>
13538#include <string.h>
13539#define DO_VA_COPY(d, s) __va_copy((d), (s))
13540void test(char *str, ...)
13541{
13542    va_list ap, ap2;
13543    int i;
13544    va_start(ap, str);
13545    DO_VA_COPY(ap2, ap);
13546    for (i = 1; i <= 9; i++) {
13547        int k = (int)va_arg(ap, int);
13548        if (k != i)
13549            abort();
13550    }
13551    DO_VA_COPY(ap, ap2);
13552    for (i = 1; i <= 9; i++) {
13553        int k = (int)va_arg(ap, int);
13554        if (k != i)
13555            abort();
13556    }
13557    va_end(ap);
13558}
13559int main(int argc, char *argv[])
13560{
13561    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
13562    exit(0);
13563}
13564
13565_ACEOF
13566rm -f conftest$ac_exeext
13567if { (ac_try="$ac_link"
13568case "(($ac_try" in
13569  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570  *) ac_try_echo=$ac_try;;
13571esac
13572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13573$as_echo "$ac_try_echo") >&5
13574  (eval "$ac_link") 2>&5
13575  ac_status=$?
13576  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13578  { (case "(($ac_try" in
13579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580  *) ac_try_echo=$ac_try;;
13581esac
13582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13583$as_echo "$ac_try_echo") >&5
13584  (eval "$ac_try") 2>&5
13585  ac_status=$?
13586  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587  (exit $ac_status); }; }; then
13588  ac_cv_va_copy="GCH"
13589else
13590  $as_echo "$as_me: program exited with status $ac_status" >&5
13591$as_echo "$as_me: failed program was:" >&5
13592sed 's/^/| /' conftest.$ac_ext >&5
13593
13594fi
13595rm -rf conftest.dSYM
13596rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13597fi
13598
13599
13600    fi
13601
13602
13603
13604
13605    if test ".$ac_cv_va_copy" = .; then
13606        if test "$cross_compiling" = yes; then
13607  { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13608See \`config.log' for more details." >&5
13609$as_echo "$as_me: error: cannot run test program while cross compiling
13610See \`config.log' for more details." >&2;}
13611   { (exit 1); exit 1; }; }
13612else
13613  cat >conftest.$ac_ext <<_ACEOF
13614/* confdefs.h.  */
13615_ACEOF
13616cat confdefs.h >>conftest.$ac_ext
13617cat >>conftest.$ac_ext <<_ACEOF
13618/* end confdefs.h.  */
13619
13620#include <stdlib.h>
13621#include <stdarg.h>
13622#include <string.h>
13623#define DO_VA_COPY(d, s) __builtin_va_copy((d), (s))
13624void test(char *str, ...)
13625{
13626    va_list ap, ap2;
13627    int i;
13628    va_start(ap, str);
13629    DO_VA_COPY(ap2, ap);
13630    for (i = 1; i <= 9; i++) {
13631        int k = (int)va_arg(ap, int);
13632        if (k != i)
13633            abort();
13634    }
13635    DO_VA_COPY(ap, ap2);
13636    for (i = 1; i <= 9; i++) {
13637        int k = (int)va_arg(ap, int);
13638        if (k != i)
13639            abort();
13640    }
13641    va_end(ap);
13642}
13643int main(int argc, char *argv[])
13644{
13645    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
13646    exit(0);
13647}
13648
13649_ACEOF
13650rm -f conftest$ac_exeext
13651if { (ac_try="$ac_link"
13652case "(($ac_try" in
13653  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654  *) ac_try_echo=$ac_try;;
13655esac
13656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13657$as_echo "$ac_try_echo") >&5
13658  (eval "$ac_link") 2>&5
13659  ac_status=$?
13660  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13662  { (case "(($ac_try" in
13663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664  *) ac_try_echo=$ac_try;;
13665esac
13666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13667$as_echo "$ac_try_echo") >&5
13668  (eval "$ac_try") 2>&5
13669  ac_status=$?
13670  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671  (exit $ac_status); }; }; then
13672  ac_cv_va_copy="GCB"
13673else
13674  $as_echo "$as_me: program exited with status $ac_status" >&5
13675$as_echo "$as_me: failed program was:" >&5
13676sed 's/^/| /' conftest.$ac_ext >&5
13677
13678fi
13679rm -rf conftest.dSYM
13680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13681fi
13682
13683
13684    fi
13685
13686
13687
13688
13689    if test ".$ac_cv_va_copy" = .; then
13690        if test "$cross_compiling" = yes; then
13691  { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13692See \`config.log' for more details." >&5
13693$as_echo "$as_me: error: cannot run test program while cross compiling
13694See \`config.log' for more details." >&2;}
13695   { (exit 1); exit 1; }; }
13696else
13697  cat >conftest.$ac_ext <<_ACEOF
13698/* confdefs.h.  */
13699_ACEOF
13700cat confdefs.h >>conftest.$ac_ext
13701cat >>conftest.$ac_ext <<_ACEOF
13702/* end confdefs.h.  */
13703
13704#include <stdlib.h>
13705#include <stdarg.h>
13706#include <string.h>
13707#define DO_VA_COPY(d, s) do { (d) = (s); } while (0)
13708void test(char *str, ...)
13709{
13710    va_list ap, ap2;
13711    int i;
13712    va_start(ap, str);
13713    DO_VA_COPY(ap2, ap);
13714    for (i = 1; i <= 9; i++) {
13715        int k = (int)va_arg(ap, int);
13716        if (k != i)
13717            abort();
13718    }
13719    DO_VA_COPY(ap, ap2);
13720    for (i = 1; i <= 9; i++) {
13721        int k = (int)va_arg(ap, int);
13722        if (k != i)
13723            abort();
13724    }
13725    va_end(ap);
13726}
13727int main(int argc, char *argv[])
13728{
13729    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
13730    exit(0);
13731}
13732
13733_ACEOF
13734rm -f conftest$ac_exeext
13735if { (ac_try="$ac_link"
13736case "(($ac_try" in
13737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13738  *) ac_try_echo=$ac_try;;
13739esac
13740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13741$as_echo "$ac_try_echo") >&5
13742  (eval "$ac_link") 2>&5
13743  ac_status=$?
13744  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13746  { (case "(($ac_try" in
13747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748  *) ac_try_echo=$ac_try;;
13749esac
13750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13751$as_echo "$ac_try_echo") >&5
13752  (eval "$ac_try") 2>&5
13753  ac_status=$?
13754  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755  (exit $ac_status); }; }; then
13756  ac_cv_va_copy="ASS"
13757else
13758  $as_echo "$as_me: program exited with status $ac_status" >&5
13759$as_echo "$as_me: failed program was:" >&5
13760sed 's/^/| /' conftest.$ac_ext >&5
13761
13762fi
13763rm -rf conftest.dSYM
13764rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13765fi
13766
13767
13768    fi
13769
13770
13771
13772
13773    if test ".$ac_cv_va_copy" = .; then
13774        if test "$cross_compiling" = yes; then
13775  { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13776See \`config.log' for more details." >&5
13777$as_echo "$as_me: error: cannot run test program while cross compiling
13778See \`config.log' for more details." >&2;}
13779   { (exit 1); exit 1; }; }
13780else
13781  cat >conftest.$ac_ext <<_ACEOF
13782/* confdefs.h.  */
13783_ACEOF
13784cat confdefs.h >>conftest.$ac_ext
13785cat >>conftest.$ac_ext <<_ACEOF
13786/* end confdefs.h.  */
13787
13788#include <stdlib.h>
13789#include <stdarg.h>
13790#include <string.h>
13791#define DO_VA_COPY(d, s) do { *(d) = *(s); } while (0)
13792void test(char *str, ...)
13793{
13794    va_list ap, ap2;
13795    int i;
13796    va_start(ap, str);
13797    DO_VA_COPY(ap2, ap);
13798    for (i = 1; i <= 9; i++) {
13799        int k = (int)va_arg(ap, int);
13800        if (k != i)
13801            abort();
13802    }
13803    DO_VA_COPY(ap, ap2);
13804    for (i = 1; i <= 9; i++) {
13805        int k = (int)va_arg(ap, int);
13806        if (k != i)
13807            abort();
13808    }
13809    va_end(ap);
13810}
13811int main(int argc, char *argv[])
13812{
13813    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
13814    exit(0);
13815}
13816
13817_ACEOF
13818rm -f conftest$ac_exeext
13819if { (ac_try="$ac_link"
13820case "(($ac_try" in
13821  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822  *) ac_try_echo=$ac_try;;
13823esac
13824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13825$as_echo "$ac_try_echo") >&5
13826  (eval "$ac_link") 2>&5
13827  ac_status=$?
13828  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13830  { (case "(($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_try") 2>&5
13837  ac_status=$?
13838  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839  (exit $ac_status); }; }; then
13840  ac_cv_va_copy="ASP"
13841else
13842  $as_echo "$as_me: program exited with status $ac_status" >&5
13843$as_echo "$as_me: failed program was:" >&5
13844sed 's/^/| /' conftest.$ac_ext >&5
13845
13846fi
13847rm -rf conftest.dSYM
13848rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13849fi
13850
13851
13852    fi
13853
13854
13855
13856
13857    if test ".$ac_cv_va_copy" = .; then
13858        if test "$cross_compiling" = yes; then
13859  { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13860See \`config.log' for more details." >&5
13861$as_echo "$as_me: error: cannot run test program while cross compiling
13862See \`config.log' for more details." >&2;}
13863   { (exit 1); exit 1; }; }
13864else
13865  cat >conftest.$ac_ext <<_ACEOF
13866/* confdefs.h.  */
13867_ACEOF
13868cat confdefs.h >>conftest.$ac_ext
13869cat >>conftest.$ac_ext <<_ACEOF
13870/* end confdefs.h.  */
13871
13872#include <stdlib.h>
13873#include <stdarg.h>
13874#include <string.h>
13875#define DO_VA_COPY(d, s) memcpy((void *)&(d), (void *)&(s), sizeof((s)))
13876void test(char *str, ...)
13877{
13878    va_list ap, ap2;
13879    int i;
13880    va_start(ap, str);
13881    DO_VA_COPY(ap2, ap);
13882    for (i = 1; i <= 9; i++) {
13883        int k = (int)va_arg(ap, int);
13884        if (k != i)
13885            abort();
13886    }
13887    DO_VA_COPY(ap, ap2);
13888    for (i = 1; i <= 9; i++) {
13889        int k = (int)va_arg(ap, int);
13890        if (k != i)
13891            abort();
13892    }
13893    va_end(ap);
13894}
13895int main(int argc, char *argv[])
13896{
13897    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
13898    exit(0);
13899}
13900
13901_ACEOF
13902rm -f conftest$ac_exeext
13903if { (ac_try="$ac_link"
13904case "(($ac_try" in
13905  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13906  *) ac_try_echo=$ac_try;;
13907esac
13908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13909$as_echo "$ac_try_echo") >&5
13910  (eval "$ac_link") 2>&5
13911  ac_status=$?
13912  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13914  { (case "(($ac_try" in
13915  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13916  *) ac_try_echo=$ac_try;;
13917esac
13918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13919$as_echo "$ac_try_echo") >&5
13920  (eval "$ac_try") 2>&5
13921  ac_status=$?
13922  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923  (exit $ac_status); }; }; then
13924  ac_cv_va_copy="CPS"
13925else
13926  $as_echo "$as_me: program exited with status $ac_status" >&5
13927$as_echo "$as_me: failed program was:" >&5
13928sed 's/^/| /' conftest.$ac_ext >&5
13929
13930fi
13931rm -rf conftest.dSYM
13932rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13933fi
13934
13935
13936    fi
13937
13938
13939
13940
13941    if test ".$ac_cv_va_copy" = .; then
13942        if test "$cross_compiling" = yes; then
13943  { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13944See \`config.log' for more details." >&5
13945$as_echo "$as_me: error: cannot run test program while cross compiling
13946See \`config.log' for more details." >&2;}
13947   { (exit 1); exit 1; }; }
13948else
13949  cat >conftest.$ac_ext <<_ACEOF
13950/* confdefs.h.  */
13951_ACEOF
13952cat confdefs.h >>conftest.$ac_ext
13953cat >>conftest.$ac_ext <<_ACEOF
13954/* end confdefs.h.  */
13955
13956#include <stdlib.h>
13957#include <stdarg.h>
13958#include <string.h>
13959#define DO_VA_COPY(d, s) memcpy((void *)(d), (void *)(s), sizeof(*(s)))
13960void test(char *str, ...)
13961{
13962    va_list ap, ap2;
13963    int i;
13964    va_start(ap, str);
13965    DO_VA_COPY(ap2, ap);
13966    for (i = 1; i <= 9; i++) {
13967        int k = (int)va_arg(ap, int);
13968        if (k != i)
13969            abort();
13970    }
13971    DO_VA_COPY(ap, ap2);
13972    for (i = 1; i <= 9; i++) {
13973        int k = (int)va_arg(ap, int);
13974        if (k != i)
13975            abort();
13976    }
13977    va_end(ap);
13978}
13979int main(int argc, char *argv[])
13980{
13981    test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
13982    exit(0);
13983}
13984
13985_ACEOF
13986rm -f conftest$ac_exeext
13987if { (ac_try="$ac_link"
13988case "(($ac_try" in
13989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990  *) ac_try_echo=$ac_try;;
13991esac
13992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13993$as_echo "$ac_try_echo") >&5
13994  (eval "$ac_link") 2>&5
13995  ac_status=$?
13996  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13998  { (case "(($ac_try" in
13999  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000  *) ac_try_echo=$ac_try;;
14001esac
14002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14003$as_echo "$ac_try_echo") >&5
14004  (eval "$ac_try") 2>&5
14005  ac_status=$?
14006  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007  (exit $ac_status); }; }; then
14008  ac_cv_va_copy="CPP"
14009else
14010  $as_echo "$as_me: program exited with status $ac_status" >&5
14011$as_echo "$as_me: failed program was:" >&5
14012sed 's/^/| /' conftest.$ac_ext >&5
14013
14014fi
14015rm -rf conftest.dSYM
14016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14017fi
14018
14019
14020    fi
14021
14022    if test ".$ac_cv_va_copy" = .; then
14023        { { $as_echo "$as_me:$LINENO: error: no working implementation found" >&5
14024$as_echo "$as_me: error: no working implementation found" >&2;}
14025   { (exit 1); exit 1; }; }
14026    fi
14027
14028fi
14029
14030    if test ".$ac_cv_va_copy" = ".C99"; then
14031
14032cat >>confdefs.h <<\_ACEOF
14033#define HAVE_VA_COPY 1
14034_ACEOF
14035
14036  fi
14037
14038cat >>confdefs.h <<_ACEOF
14039#define __VA_COPY_USE __VA_COPY_USE_$ac_cv_va_copy
14040_ACEOF
14041
14042
14043
14044    if test ".$ac_cv_va_copy" = ".C99"; then
14045      { $as_echo "$as_me:$LINENO: result: yes" >&5
14046$as_echo "yes" >&6; }
14047  else
14048      { $as_echo "$as_me:$LINENO: result: no (using fallback implementation)" >&5
14049$as_echo "no (using fallback implementation)" >&6; }
14050  fi
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060for ac_header in sys/types.h sys/param.h sys/time.h sys/socket.h sys/sockio.h sys/ioctl.h sys/select.h
14061do
14062as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14064  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14065$as_echo_n "checking for $ac_header... " >&6; }
14066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14067  $as_echo_n "(cached) " >&6
14068fi
14069ac_res=`eval 'as_val=${'$as_ac_Header'}
14070		 $as_echo "$as_val"'`
14071	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14072$as_echo "$ac_res" >&6; }
14073else
14074  # Is the header compilable?
14075{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14076$as_echo_n "checking $ac_header usability... " >&6; }
14077cat >conftest.$ac_ext <<_ACEOF
14078/* confdefs.h.  */
14079_ACEOF
14080cat confdefs.h >>conftest.$ac_ext
14081cat >>conftest.$ac_ext <<_ACEOF
14082/* end confdefs.h.  */
14083$ac_includes_default
14084#include <$ac_header>
14085_ACEOF
14086rm -f conftest.$ac_objext
14087if { (ac_try="$ac_compile"
14088case "(($ac_try" in
14089  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14090  *) ac_try_echo=$ac_try;;
14091esac
14092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14093$as_echo "$ac_try_echo") >&5
14094  (eval "$ac_compile") 2>conftest.er1
14095  ac_status=$?
14096  grep -v '^ *+' conftest.er1 >conftest.err
14097  rm -f conftest.er1
14098  cat conftest.err >&5
14099  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100  (exit $ac_status); } && {
14101	 test -z "$ac_c_werror_flag" ||
14102	 test ! -s conftest.err
14103       } && test -s conftest.$ac_objext; then
14104  ac_header_compiler=yes
14105else
14106  $as_echo "$as_me: failed program was:" >&5
14107sed 's/^/| /' conftest.$ac_ext >&5
14108
14109	ac_header_compiler=no
14110fi
14111
14112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14113{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14114$as_echo "$ac_header_compiler" >&6; }
14115
14116# Is the header present?
14117{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14118$as_echo_n "checking $ac_header presence... " >&6; }
14119cat >conftest.$ac_ext <<_ACEOF
14120/* confdefs.h.  */
14121_ACEOF
14122cat confdefs.h >>conftest.$ac_ext
14123cat >>conftest.$ac_ext <<_ACEOF
14124/* end confdefs.h.  */
14125#include <$ac_header>
14126_ACEOF
14127if { (ac_try="$ac_cpp conftest.$ac_ext"
14128case "(($ac_try" in
14129  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14130  *) ac_try_echo=$ac_try;;
14131esac
14132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14133$as_echo "$ac_try_echo") >&5
14134  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14135  ac_status=$?
14136  grep -v '^ *+' conftest.er1 >conftest.err
14137  rm -f conftest.er1
14138  cat conftest.err >&5
14139  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140  (exit $ac_status); } >/dev/null && {
14141	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14142	 test ! -s conftest.err
14143       }; then
14144  ac_header_preproc=yes
14145else
14146  $as_echo "$as_me: failed program was:" >&5
14147sed 's/^/| /' conftest.$ac_ext >&5
14148
14149  ac_header_preproc=no
14150fi
14151
14152rm -f conftest.err conftest.$ac_ext
14153{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14154$as_echo "$ac_header_preproc" >&6; }
14155
14156# So?  What about this header?
14157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14158  yes:no: )
14159    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14160$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14161    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14162$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14163    ac_header_preproc=yes
14164    ;;
14165  no:yes:* )
14166    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14167$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14168    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14169$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14170    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14171$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14172    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14173$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14174    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14175$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14176    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14177$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14178
14179    ;;
14180esac
14181{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14182$as_echo_n "checking for $ac_header... " >&6; }
14183if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14184  $as_echo_n "(cached) " >&6
14185else
14186  eval "$as_ac_Header=\$ac_header_preproc"
14187fi
14188ac_res=`eval 'as_val=${'$as_ac_Header'}
14189		 $as_echo "$as_val"'`
14190	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14191$as_echo "$ac_res" >&6; }
14192
14193fi
14194if test `eval 'as_val=${'$as_ac_Header'}
14195		 $as_echo "$as_val"'` = yes; then
14196  cat >>confdefs.h <<_ACEOF
14197#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14198_ACEOF
14199
14200fi
14201
14202done
14203
14204
14205
14206
14207
14208
14209
14210
14211for ac_header in netdb.h ifaddrs.h net/if.h net/if_dl.h net/if_arp.h netinet/in.h arpa/inet.h
14212do
14213as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14214{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14215$as_echo_n "checking for $ac_header... " >&6; }
14216if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14217  $as_echo_n "(cached) " >&6
14218else
14219  cat >conftest.$ac_ext <<_ACEOF
14220/* confdefs.h.  */
14221_ACEOF
14222cat confdefs.h >>conftest.$ac_ext
14223cat >>conftest.$ac_ext <<_ACEOF
14224/* end confdefs.h.  */
14225
14226#if HAVE_SYS_TYPES_H
14227#include <sys/types.h>
14228#endif
14229#if HAVE_SYS_SOCKET_H
14230#include <sys/socket.h>
14231#endif
14232#if HAVE_SYS_IOCTL_H
14233#include <sys/ioctl.h>
14234#endif
14235
14236
14237#include <$ac_header>
14238_ACEOF
14239rm -f conftest.$ac_objext
14240if { (ac_try="$ac_compile"
14241case "(($ac_try" in
14242  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243  *) ac_try_echo=$ac_try;;
14244esac
14245eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14246$as_echo "$ac_try_echo") >&5
14247  (eval "$ac_compile") 2>conftest.er1
14248  ac_status=$?
14249  grep -v '^ *+' conftest.er1 >conftest.err
14250  rm -f conftest.er1
14251  cat conftest.err >&5
14252  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253  (exit $ac_status); } && {
14254	 test -z "$ac_c_werror_flag" ||
14255	 test ! -s conftest.err
14256       } && test -s conftest.$ac_objext; then
14257  eval "$as_ac_Header=yes"
14258else
14259  $as_echo "$as_me: failed program was:" >&5
14260sed 's/^/| /' conftest.$ac_ext >&5
14261
14262	eval "$as_ac_Header=no"
14263fi
14264
14265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14266fi
14267ac_res=`eval 'as_val=${'$as_ac_Header'}
14268		 $as_echo "$as_val"'`
14269	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14270$as_echo "$ac_res" >&6; }
14271if test `eval 'as_val=${'$as_ac_Header'}
14272		 $as_echo "$as_val"'` = yes; then
14273  cat >>confdefs.h <<_ACEOF
14274#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14275_ACEOF
14276
14277fi
14278
14279done
14280
14281
14282        { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
14283$as_echo_n "checking for struct timeval... " >&6; }
14284    cat >conftest.$ac_ext <<_ACEOF
14285/* confdefs.h.  */
14286_ACEOF
14287cat confdefs.h >>conftest.$ac_ext
14288cat >>conftest.$ac_ext <<_ACEOF
14289/* end confdefs.h.  */
14290
14291#ifdef HAVE_UNISTD_H
14292#include <unistd.h>
14293#endif
14294#ifdef HAVE_SYS_TYPES_H
14295#include <sys/types.h>
14296#endif
14297#ifdef HAVE_SYS_TIME_H
14298#include <sys/time.h>
14299#endif
14300#include <time.h>
14301
14302int
14303main ()
14304{
14305 struct timeval tv;
14306  ;
14307  return 0;
14308}
14309_ACEOF
14310rm -f conftest.$ac_objext
14311if { (ac_try="$ac_compile"
14312case "(($ac_try" in
14313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14314  *) ac_try_echo=$ac_try;;
14315esac
14316eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14317$as_echo "$ac_try_echo") >&5
14318  (eval "$ac_compile") 2>conftest.er1
14319  ac_status=$?
14320  grep -v '^ *+' conftest.er1 >conftest.err
14321  rm -f conftest.er1
14322  cat conftest.err >&5
14323  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324  (exit $ac_status); } && {
14325	 test -z "$ac_c_werror_flag" ||
14326	 test ! -s conftest.err
14327       } && test -s conftest.$ac_objext; then
14328   msg="yes"
14329else
14330  $as_echo "$as_me: failed program was:" >&5
14331sed 's/^/| /' conftest.$ac_ext >&5
14332
14333	 msg="no"
14334fi
14335
14336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14337    if test ".$msg" = .yes; then
14338
14339cat >>confdefs.h <<\_ACEOF
14340#define HAVE_STRUCT_TIMEVAL 1
14341_ACEOF
14342
14343    fi
14344    { $as_echo "$as_me:$LINENO: result: $msg" >&5
14345$as_echo "$msg" >&6; }
14346
14347
14348
14349
14350
14351
14352for ac_func in getifaddrs nanosleep Sleep gettimeofday clock_gettime
14353do
14354as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14355{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14356$as_echo_n "checking for $ac_func... " >&6; }
14357if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14358  $as_echo_n "(cached) " >&6
14359else
14360  cat >conftest.$ac_ext <<_ACEOF
14361/* confdefs.h.  */
14362_ACEOF
14363cat confdefs.h >>conftest.$ac_ext
14364cat >>conftest.$ac_ext <<_ACEOF
14365/* end confdefs.h.  */
14366/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14367   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14368#define $ac_func innocuous_$ac_func
14369
14370/* System header to define __stub macros and hopefully few prototypes,
14371    which can conflict with char $ac_func (); below.
14372    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14373    <limits.h> exists even on freestanding compilers.  */
14374
14375#ifdef __STDC__
14376# include <limits.h>
14377#else
14378# include <assert.h>
14379#endif
14380
14381#undef $ac_func
14382
14383/* Override any GCC internal prototype to avoid an error.
14384   Use char because int might match the return type of a GCC
14385   builtin and then its argument prototype would still apply.  */
14386#ifdef __cplusplus
14387extern "C"
14388#endif
14389char $ac_func ();
14390/* The GNU C library defines this for functions which it implements
14391    to always fail with ENOSYS.  Some functions are actually named
14392    something starting with __ and the normal name is an alias.  */
14393#if defined __stub_$ac_func || defined __stub___$ac_func
14394choke me
14395#endif
14396
14397int
14398main ()
14399{
14400return $ac_func ();
14401  ;
14402  return 0;
14403}
14404_ACEOF
14405rm -f conftest.$ac_objext conftest$ac_exeext
14406if { (ac_try="$ac_link"
14407case "(($ac_try" in
14408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409  *) ac_try_echo=$ac_try;;
14410esac
14411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14412$as_echo "$ac_try_echo") >&5
14413  (eval "$ac_link") 2>conftest.er1
14414  ac_status=$?
14415  grep -v '^ *+' conftest.er1 >conftest.err
14416  rm -f conftest.er1
14417  cat conftest.err >&5
14418  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419  (exit $ac_status); } && {
14420	 test -z "$ac_c_werror_flag" ||
14421	 test ! -s conftest.err
14422       } && test -s conftest$ac_exeext && {
14423	 test "$cross_compiling" = yes ||
14424	 $as_test_x conftest$ac_exeext
14425       }; then
14426  eval "$as_ac_var=yes"
14427else
14428  $as_echo "$as_me: failed program was:" >&5
14429sed 's/^/| /' conftest.$ac_ext >&5
14430
14431	eval "$as_ac_var=no"
14432fi
14433
14434rm -rf conftest.dSYM
14435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14436      conftest$ac_exeext conftest.$ac_ext
14437fi
14438ac_res=`eval 'as_val=${'$as_ac_var'}
14439		 $as_echo "$as_val"'`
14440	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14441$as_echo "$ac_res" >&6; }
14442if test `eval 'as_val=${'$as_ac_var'}
14443		 $as_echo "$as_val"'` = yes; then
14444  cat >>confdefs.h <<_ACEOF
14445#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14446_ACEOF
14447
14448fi
14449done
14450
14451
14452        { $as_echo "$as_me:$LINENO: checking for long long" >&5
14453$as_echo_n "checking for long long... " >&6; }
14454if test "${ac_cv_type_long_long+set}" = set; then
14455  $as_echo_n "(cached) " >&6
14456else
14457  ac_cv_type_long_long=no
14458cat >conftest.$ac_ext <<_ACEOF
14459/* confdefs.h.  */
14460_ACEOF
14461cat confdefs.h >>conftest.$ac_ext
14462cat >>conftest.$ac_ext <<_ACEOF
14463/* end confdefs.h.  */
14464$ac_includes_default
14465int
14466main ()
14467{
14468if (sizeof (long long))
14469       return 0;
14470  ;
14471  return 0;
14472}
14473_ACEOF
14474rm -f conftest.$ac_objext
14475if { (ac_try="$ac_compile"
14476case "(($ac_try" in
14477  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478  *) ac_try_echo=$ac_try;;
14479esac
14480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14481$as_echo "$ac_try_echo") >&5
14482  (eval "$ac_compile") 2>conftest.er1
14483  ac_status=$?
14484  grep -v '^ *+' conftest.er1 >conftest.err
14485  rm -f conftest.er1
14486  cat conftest.err >&5
14487  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488  (exit $ac_status); } && {
14489	 test -z "$ac_c_werror_flag" ||
14490	 test ! -s conftest.err
14491       } && test -s conftest.$ac_objext; then
14492  cat >conftest.$ac_ext <<_ACEOF
14493/* confdefs.h.  */
14494_ACEOF
14495cat confdefs.h >>conftest.$ac_ext
14496cat >>conftest.$ac_ext <<_ACEOF
14497/* end confdefs.h.  */
14498$ac_includes_default
14499int
14500main ()
14501{
14502if (sizeof ((long long)))
14503	  return 0;
14504  ;
14505  return 0;
14506}
14507_ACEOF
14508rm -f conftest.$ac_objext
14509if { (ac_try="$ac_compile"
14510case "(($ac_try" in
14511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512  *) ac_try_echo=$ac_try;;
14513esac
14514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14515$as_echo "$ac_try_echo") >&5
14516  (eval "$ac_compile") 2>conftest.er1
14517  ac_status=$?
14518  grep -v '^ *+' conftest.er1 >conftest.err
14519  rm -f conftest.er1
14520  cat conftest.err >&5
14521  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522  (exit $ac_status); } && {
14523	 test -z "$ac_c_werror_flag" ||
14524	 test ! -s conftest.err
14525       } && test -s conftest.$ac_objext; then
14526  :
14527else
14528  $as_echo "$as_me: failed program was:" >&5
14529sed 's/^/| /' conftest.$ac_ext >&5
14530
14531	ac_cv_type_long_long=yes
14532fi
14533
14534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14535else
14536  $as_echo "$as_me: failed program was:" >&5
14537sed 's/^/| /' conftest.$ac_ext >&5
14538
14539
14540fi
14541
14542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543fi
14544{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14545$as_echo "$ac_cv_type_long_long" >&6; }
14546if test $ac_cv_type_long_long = yes; then
14547
14548cat >>confdefs.h <<_ACEOF
14549#define HAVE_LONG_LONG 1
14550_ACEOF
14551
14552
14553fi
14554{ $as_echo "$as_me:$LINENO: checking for long double" >&5
14555$as_echo_n "checking for long double... " >&6; }
14556if test "${ac_cv_type_long_double+set}" = set; then
14557  $as_echo_n "(cached) " >&6
14558else
14559  ac_cv_type_long_double=no
14560cat >conftest.$ac_ext <<_ACEOF
14561/* confdefs.h.  */
14562_ACEOF
14563cat confdefs.h >>conftest.$ac_ext
14564cat >>conftest.$ac_ext <<_ACEOF
14565/* end confdefs.h.  */
14566$ac_includes_default
14567int
14568main ()
14569{
14570if (sizeof (long double))
14571       return 0;
14572  ;
14573  return 0;
14574}
14575_ACEOF
14576rm -f conftest.$ac_objext
14577if { (ac_try="$ac_compile"
14578case "(($ac_try" in
14579  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580  *) ac_try_echo=$ac_try;;
14581esac
14582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14583$as_echo "$ac_try_echo") >&5
14584  (eval "$ac_compile") 2>conftest.er1
14585  ac_status=$?
14586  grep -v '^ *+' conftest.er1 >conftest.err
14587  rm -f conftest.er1
14588  cat conftest.err >&5
14589  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590  (exit $ac_status); } && {
14591	 test -z "$ac_c_werror_flag" ||
14592	 test ! -s conftest.err
14593       } && test -s conftest.$ac_objext; then
14594  cat >conftest.$ac_ext <<_ACEOF
14595/* confdefs.h.  */
14596_ACEOF
14597cat confdefs.h >>conftest.$ac_ext
14598cat >>conftest.$ac_ext <<_ACEOF
14599/* end confdefs.h.  */
14600$ac_includes_default
14601int
14602main ()
14603{
14604if (sizeof ((long double)))
14605	  return 0;
14606  ;
14607  return 0;
14608}
14609_ACEOF
14610rm -f conftest.$ac_objext
14611if { (ac_try="$ac_compile"
14612case "(($ac_try" in
14613  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614  *) ac_try_echo=$ac_try;;
14615esac
14616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14617$as_echo "$ac_try_echo") >&5
14618  (eval "$ac_compile") 2>conftest.er1
14619  ac_status=$?
14620  grep -v '^ *+' conftest.er1 >conftest.err
14621  rm -f conftest.er1
14622  cat conftest.err >&5
14623  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624  (exit $ac_status); } && {
14625	 test -z "$ac_c_werror_flag" ||
14626	 test ! -s conftest.err
14627       } && test -s conftest.$ac_objext; then
14628  :
14629else
14630  $as_echo "$as_me: failed program was:" >&5
14631sed 's/^/| /' conftest.$ac_ext >&5
14632
14633	ac_cv_type_long_double=yes
14634fi
14635
14636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14637else
14638  $as_echo "$as_me: failed program was:" >&5
14639sed 's/^/| /' conftest.$ac_ext >&5
14640
14641
14642fi
14643
14644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14645fi
14646{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
14647$as_echo "$ac_cv_type_long_double" >&6; }
14648if test $ac_cv_type_long_double = yes; then
14649
14650cat >>confdefs.h <<_ACEOF
14651#define HAVE_LONG_DOUBLE 1
14652_ACEOF
14653
14654
14655fi
14656
14657    # The cast to long int works around a bug in the HP C Compiler
14658# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14659# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14660# This bug is HP SR number 8606223364.
14661{ $as_echo "$as_me:$LINENO: checking size of char" >&5
14662$as_echo_n "checking size of char... " >&6; }
14663if test "${ac_cv_sizeof_char+set}" = set; then
14664  $as_echo_n "(cached) " >&6
14665else
14666  if test "$cross_compiling" = yes; then
14667  # Depending upon the size, compute the lo and hi bounds.
14668cat >conftest.$ac_ext <<_ACEOF
14669/* confdefs.h.  */
14670_ACEOF
14671cat confdefs.h >>conftest.$ac_ext
14672cat >>conftest.$ac_ext <<_ACEOF
14673/* end confdefs.h.  */
14674$ac_includes_default
14675int
14676main ()
14677{
14678static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= 0)];
14679test_array [0] = 0
14680
14681  ;
14682  return 0;
14683}
14684_ACEOF
14685rm -f conftest.$ac_objext
14686if { (ac_try="$ac_compile"
14687case "(($ac_try" in
14688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689  *) ac_try_echo=$ac_try;;
14690esac
14691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14692$as_echo "$ac_try_echo") >&5
14693  (eval "$ac_compile") 2>conftest.er1
14694  ac_status=$?
14695  grep -v '^ *+' conftest.er1 >conftest.err
14696  rm -f conftest.er1
14697  cat conftest.err >&5
14698  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699  (exit $ac_status); } && {
14700	 test -z "$ac_c_werror_flag" ||
14701	 test ! -s conftest.err
14702       } && test -s conftest.$ac_objext; then
14703  ac_lo=0 ac_mid=0
14704  while :; do
14705    cat >conftest.$ac_ext <<_ACEOF
14706/* confdefs.h.  */
14707_ACEOF
14708cat confdefs.h >>conftest.$ac_ext
14709cat >>conftest.$ac_ext <<_ACEOF
14710/* end confdefs.h.  */
14711$ac_includes_default
14712int
14713main ()
14714{
14715static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
14716test_array [0] = 0
14717
14718  ;
14719  return 0;
14720}
14721_ACEOF
14722rm -f conftest.$ac_objext
14723if { (ac_try="$ac_compile"
14724case "(($ac_try" in
14725  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726  *) ac_try_echo=$ac_try;;
14727esac
14728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14729$as_echo "$ac_try_echo") >&5
14730  (eval "$ac_compile") 2>conftest.er1
14731  ac_status=$?
14732  grep -v '^ *+' conftest.er1 >conftest.err
14733  rm -f conftest.er1
14734  cat conftest.err >&5
14735  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736  (exit $ac_status); } && {
14737	 test -z "$ac_c_werror_flag" ||
14738	 test ! -s conftest.err
14739       } && test -s conftest.$ac_objext; then
14740  ac_hi=$ac_mid; break
14741else
14742  $as_echo "$as_me: failed program was:" >&5
14743sed 's/^/| /' conftest.$ac_ext >&5
14744
14745	ac_lo=`expr $ac_mid + 1`
14746			if test $ac_lo -le $ac_mid; then
14747			  ac_lo= ac_hi=
14748			  break
14749			fi
14750			ac_mid=`expr 2 '*' $ac_mid + 1`
14751fi
14752
14753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14754  done
14755else
14756  $as_echo "$as_me: failed program was:" >&5
14757sed 's/^/| /' conftest.$ac_ext >&5
14758
14759	cat >conftest.$ac_ext <<_ACEOF
14760/* confdefs.h.  */
14761_ACEOF
14762cat confdefs.h >>conftest.$ac_ext
14763cat >>conftest.$ac_ext <<_ACEOF
14764/* end confdefs.h.  */
14765$ac_includes_default
14766int
14767main ()
14768{
14769static int test_array [1 - 2 * !(((long int) (sizeof (char))) < 0)];
14770test_array [0] = 0
14771
14772  ;
14773  return 0;
14774}
14775_ACEOF
14776rm -f conftest.$ac_objext
14777if { (ac_try="$ac_compile"
14778case "(($ac_try" in
14779  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780  *) ac_try_echo=$ac_try;;
14781esac
14782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14783$as_echo "$ac_try_echo") >&5
14784  (eval "$ac_compile") 2>conftest.er1
14785  ac_status=$?
14786  grep -v '^ *+' conftest.er1 >conftest.err
14787  rm -f conftest.er1
14788  cat conftest.err >&5
14789  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790  (exit $ac_status); } && {
14791	 test -z "$ac_c_werror_flag" ||
14792	 test ! -s conftest.err
14793       } && test -s conftest.$ac_objext; then
14794  ac_hi=-1 ac_mid=-1
14795  while :; do
14796    cat >conftest.$ac_ext <<_ACEOF
14797/* confdefs.h.  */
14798_ACEOF
14799cat confdefs.h >>conftest.$ac_ext
14800cat >>conftest.$ac_ext <<_ACEOF
14801/* end confdefs.h.  */
14802$ac_includes_default
14803int
14804main ()
14805{
14806static int test_array [1 - 2 * !(((long int) (sizeof (char))) >= $ac_mid)];
14807test_array [0] = 0
14808
14809  ;
14810  return 0;
14811}
14812_ACEOF
14813rm -f conftest.$ac_objext
14814if { (ac_try="$ac_compile"
14815case "(($ac_try" in
14816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817  *) ac_try_echo=$ac_try;;
14818esac
14819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14820$as_echo "$ac_try_echo") >&5
14821  (eval "$ac_compile") 2>conftest.er1
14822  ac_status=$?
14823  grep -v '^ *+' conftest.er1 >conftest.err
14824  rm -f conftest.er1
14825  cat conftest.err >&5
14826  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827  (exit $ac_status); } && {
14828	 test -z "$ac_c_werror_flag" ||
14829	 test ! -s conftest.err
14830       } && test -s conftest.$ac_objext; then
14831  ac_lo=$ac_mid; break
14832else
14833  $as_echo "$as_me: failed program was:" >&5
14834sed 's/^/| /' conftest.$ac_ext >&5
14835
14836	ac_hi=`expr '(' $ac_mid ')' - 1`
14837			if test $ac_mid -le $ac_hi; then
14838			  ac_lo= ac_hi=
14839			  break
14840			fi
14841			ac_mid=`expr 2 '*' $ac_mid`
14842fi
14843
14844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14845  done
14846else
14847  $as_echo "$as_me: failed program was:" >&5
14848sed 's/^/| /' conftest.$ac_ext >&5
14849
14850	ac_lo= ac_hi=
14851fi
14852
14853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854fi
14855
14856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14857# Binary search between lo and hi bounds.
14858while test "x$ac_lo" != "x$ac_hi"; do
14859  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14860  cat >conftest.$ac_ext <<_ACEOF
14861/* confdefs.h.  */
14862_ACEOF
14863cat confdefs.h >>conftest.$ac_ext
14864cat >>conftest.$ac_ext <<_ACEOF
14865/* end confdefs.h.  */
14866$ac_includes_default
14867int
14868main ()
14869{
14870static int test_array [1 - 2 * !(((long int) (sizeof (char))) <= $ac_mid)];
14871test_array [0] = 0
14872
14873  ;
14874  return 0;
14875}
14876_ACEOF
14877rm -f conftest.$ac_objext
14878if { (ac_try="$ac_compile"
14879case "(($ac_try" in
14880  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881  *) ac_try_echo=$ac_try;;
14882esac
14883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14884$as_echo "$ac_try_echo") >&5
14885  (eval "$ac_compile") 2>conftest.er1
14886  ac_status=$?
14887  grep -v '^ *+' conftest.er1 >conftest.err
14888  rm -f conftest.er1
14889  cat conftest.err >&5
14890  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891  (exit $ac_status); } && {
14892	 test -z "$ac_c_werror_flag" ||
14893	 test ! -s conftest.err
14894       } && test -s conftest.$ac_objext; then
14895  ac_hi=$ac_mid
14896else
14897  $as_echo "$as_me: failed program was:" >&5
14898sed 's/^/| /' conftest.$ac_ext >&5
14899
14900	ac_lo=`expr '(' $ac_mid ')' + 1`
14901fi
14902
14903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14904done
14905case $ac_lo in
14906?*) ac_cv_sizeof_char=$ac_lo;;
14907'') if test "$ac_cv_type_char" = yes; then
14908     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
14909See \`config.log' for more details." >&5
14910$as_echo "$as_me: error: cannot compute sizeof (char)
14911See \`config.log' for more details." >&2;}
14912   { (exit 77); exit 77; }; }
14913   else
14914     ac_cv_sizeof_char=0
14915   fi ;;
14916esac
14917else
14918  cat >conftest.$ac_ext <<_ACEOF
14919/* confdefs.h.  */
14920_ACEOF
14921cat confdefs.h >>conftest.$ac_ext
14922cat >>conftest.$ac_ext <<_ACEOF
14923/* end confdefs.h.  */
14924$ac_includes_default
14925static long int longval () { return (long int) (sizeof (char)); }
14926static unsigned long int ulongval () { return (long int) (sizeof (char)); }
14927#include <stdio.h>
14928#include <stdlib.h>
14929int
14930main ()
14931{
14932
14933  FILE *f = fopen ("conftest.val", "w");
14934  if (! f)
14935    return 1;
14936  if (((long int) (sizeof (char))) < 0)
14937    {
14938      long int i = longval ();
14939      if (i != ((long int) (sizeof (char))))
14940	return 1;
14941      fprintf (f, "%ld", i);
14942    }
14943  else
14944    {
14945      unsigned long int i = ulongval ();
14946      if (i != ((long int) (sizeof (char))))
14947	return 1;
14948      fprintf (f, "%lu", i);
14949    }
14950  /* Do not output a trailing newline, as this causes \r\n confusion
14951     on some platforms.  */
14952  return ferror (f) || fclose (f) != 0;
14953
14954  ;
14955  return 0;
14956}
14957_ACEOF
14958rm -f conftest$ac_exeext
14959if { (ac_try="$ac_link"
14960case "(($ac_try" in
14961  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962  *) ac_try_echo=$ac_try;;
14963esac
14964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14965$as_echo "$ac_try_echo") >&5
14966  (eval "$ac_link") 2>&5
14967  ac_status=$?
14968  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14970  { (case "(($ac_try" in
14971  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972  *) ac_try_echo=$ac_try;;
14973esac
14974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14975$as_echo "$ac_try_echo") >&5
14976  (eval "$ac_try") 2>&5
14977  ac_status=$?
14978  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979  (exit $ac_status); }; }; then
14980  ac_cv_sizeof_char=`cat conftest.val`
14981else
14982  $as_echo "$as_me: program exited with status $ac_status" >&5
14983$as_echo "$as_me: failed program was:" >&5
14984sed 's/^/| /' conftest.$ac_ext >&5
14985
14986( exit $ac_status )
14987if test "$ac_cv_type_char" = yes; then
14988     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char)
14989See \`config.log' for more details." >&5
14990$as_echo "$as_me: error: cannot compute sizeof (char)
14991See \`config.log' for more details." >&2;}
14992   { (exit 77); exit 77; }; }
14993   else
14994     ac_cv_sizeof_char=0
14995   fi
14996fi
14997rm -rf conftest.dSYM
14998rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14999fi
15000rm -f conftest.val
15001fi
15002{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
15003$as_echo "$ac_cv_sizeof_char" >&6; }
15004
15005
15006
15007cat >>confdefs.h <<_ACEOF
15008#define SIZEOF_CHAR $ac_cv_sizeof_char
15009_ACEOF
15010
15011
15012    # The cast to long int works around a bug in the HP C Compiler
15013# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15014# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15015# This bug is HP SR number 8606223364.
15016{ $as_echo "$as_me:$LINENO: checking size of unsigned char" >&5
15017$as_echo_n "checking size of unsigned char... " >&6; }
15018if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
15019  $as_echo_n "(cached) " >&6
15020else
15021  if test "$cross_compiling" = yes; then
15022  # Depending upon the size, compute the lo and hi bounds.
15023cat >conftest.$ac_ext <<_ACEOF
15024/* confdefs.h.  */
15025_ACEOF
15026cat confdefs.h >>conftest.$ac_ext
15027cat >>conftest.$ac_ext <<_ACEOF
15028/* end confdefs.h.  */
15029$ac_includes_default
15030int
15031main ()
15032{
15033static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) >= 0)];
15034test_array [0] = 0
15035
15036  ;
15037  return 0;
15038}
15039_ACEOF
15040rm -f conftest.$ac_objext
15041if { (ac_try="$ac_compile"
15042case "(($ac_try" in
15043  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15044  *) ac_try_echo=$ac_try;;
15045esac
15046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15047$as_echo "$ac_try_echo") >&5
15048  (eval "$ac_compile") 2>conftest.er1
15049  ac_status=$?
15050  grep -v '^ *+' conftest.er1 >conftest.err
15051  rm -f conftest.er1
15052  cat conftest.err >&5
15053  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054  (exit $ac_status); } && {
15055	 test -z "$ac_c_werror_flag" ||
15056	 test ! -s conftest.err
15057       } && test -s conftest.$ac_objext; then
15058  ac_lo=0 ac_mid=0
15059  while :; do
15060    cat >conftest.$ac_ext <<_ACEOF
15061/* confdefs.h.  */
15062_ACEOF
15063cat confdefs.h >>conftest.$ac_ext
15064cat >>conftest.$ac_ext <<_ACEOF
15065/* end confdefs.h.  */
15066$ac_includes_default
15067int
15068main ()
15069{
15070static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) <= $ac_mid)];
15071test_array [0] = 0
15072
15073  ;
15074  return 0;
15075}
15076_ACEOF
15077rm -f conftest.$ac_objext
15078if { (ac_try="$ac_compile"
15079case "(($ac_try" in
15080  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15081  *) ac_try_echo=$ac_try;;
15082esac
15083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15084$as_echo "$ac_try_echo") >&5
15085  (eval "$ac_compile") 2>conftest.er1
15086  ac_status=$?
15087  grep -v '^ *+' conftest.er1 >conftest.err
15088  rm -f conftest.er1
15089  cat conftest.err >&5
15090  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091  (exit $ac_status); } && {
15092	 test -z "$ac_c_werror_flag" ||
15093	 test ! -s conftest.err
15094       } && test -s conftest.$ac_objext; then
15095  ac_hi=$ac_mid; break
15096else
15097  $as_echo "$as_me: failed program was:" >&5
15098sed 's/^/| /' conftest.$ac_ext >&5
15099
15100	ac_lo=`expr $ac_mid + 1`
15101			if test $ac_lo -le $ac_mid; then
15102			  ac_lo= ac_hi=
15103			  break
15104			fi
15105			ac_mid=`expr 2 '*' $ac_mid + 1`
15106fi
15107
15108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109  done
15110else
15111  $as_echo "$as_me: failed program was:" >&5
15112sed 's/^/| /' conftest.$ac_ext >&5
15113
15114	cat >conftest.$ac_ext <<_ACEOF
15115/* confdefs.h.  */
15116_ACEOF
15117cat confdefs.h >>conftest.$ac_ext
15118cat >>conftest.$ac_ext <<_ACEOF
15119/* end confdefs.h.  */
15120$ac_includes_default
15121int
15122main ()
15123{
15124static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) < 0)];
15125test_array [0] = 0
15126
15127  ;
15128  return 0;
15129}
15130_ACEOF
15131rm -f conftest.$ac_objext
15132if { (ac_try="$ac_compile"
15133case "(($ac_try" in
15134  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135  *) ac_try_echo=$ac_try;;
15136esac
15137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15138$as_echo "$ac_try_echo") >&5
15139  (eval "$ac_compile") 2>conftest.er1
15140  ac_status=$?
15141  grep -v '^ *+' conftest.er1 >conftest.err
15142  rm -f conftest.er1
15143  cat conftest.err >&5
15144  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145  (exit $ac_status); } && {
15146	 test -z "$ac_c_werror_flag" ||
15147	 test ! -s conftest.err
15148       } && test -s conftest.$ac_objext; then
15149  ac_hi=-1 ac_mid=-1
15150  while :; do
15151    cat >conftest.$ac_ext <<_ACEOF
15152/* confdefs.h.  */
15153_ACEOF
15154cat confdefs.h >>conftest.$ac_ext
15155cat >>conftest.$ac_ext <<_ACEOF
15156/* end confdefs.h.  */
15157$ac_includes_default
15158int
15159main ()
15160{
15161static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) >= $ac_mid)];
15162test_array [0] = 0
15163
15164  ;
15165  return 0;
15166}
15167_ACEOF
15168rm -f conftest.$ac_objext
15169if { (ac_try="$ac_compile"
15170case "(($ac_try" in
15171  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15172  *) ac_try_echo=$ac_try;;
15173esac
15174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15175$as_echo "$ac_try_echo") >&5
15176  (eval "$ac_compile") 2>conftest.er1
15177  ac_status=$?
15178  grep -v '^ *+' conftest.er1 >conftest.err
15179  rm -f conftest.er1
15180  cat conftest.err >&5
15181  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182  (exit $ac_status); } && {
15183	 test -z "$ac_c_werror_flag" ||
15184	 test ! -s conftest.err
15185       } && test -s conftest.$ac_objext; then
15186  ac_lo=$ac_mid; break
15187else
15188  $as_echo "$as_me: failed program was:" >&5
15189sed 's/^/| /' conftest.$ac_ext >&5
15190
15191	ac_hi=`expr '(' $ac_mid ')' - 1`
15192			if test $ac_mid -le $ac_hi; then
15193			  ac_lo= ac_hi=
15194			  break
15195			fi
15196			ac_mid=`expr 2 '*' $ac_mid`
15197fi
15198
15199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15200  done
15201else
15202  $as_echo "$as_me: failed program was:" >&5
15203sed 's/^/| /' conftest.$ac_ext >&5
15204
15205	ac_lo= ac_hi=
15206fi
15207
15208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15209fi
15210
15211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15212# Binary search between lo and hi bounds.
15213while test "x$ac_lo" != "x$ac_hi"; do
15214  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15215  cat >conftest.$ac_ext <<_ACEOF
15216/* confdefs.h.  */
15217_ACEOF
15218cat confdefs.h >>conftest.$ac_ext
15219cat >>conftest.$ac_ext <<_ACEOF
15220/* end confdefs.h.  */
15221$ac_includes_default
15222int
15223main ()
15224{
15225static int test_array [1 - 2 * !(((long int) (sizeof (unsigned char))) <= $ac_mid)];
15226test_array [0] = 0
15227
15228  ;
15229  return 0;
15230}
15231_ACEOF
15232rm -f conftest.$ac_objext
15233if { (ac_try="$ac_compile"
15234case "(($ac_try" in
15235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236  *) ac_try_echo=$ac_try;;
15237esac
15238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15239$as_echo "$ac_try_echo") >&5
15240  (eval "$ac_compile") 2>conftest.er1
15241  ac_status=$?
15242  grep -v '^ *+' conftest.er1 >conftest.err
15243  rm -f conftest.er1
15244  cat conftest.err >&5
15245  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246  (exit $ac_status); } && {
15247	 test -z "$ac_c_werror_flag" ||
15248	 test ! -s conftest.err
15249       } && test -s conftest.$ac_objext; then
15250  ac_hi=$ac_mid
15251else
15252  $as_echo "$as_me: failed program was:" >&5
15253sed 's/^/| /' conftest.$ac_ext >&5
15254
15255	ac_lo=`expr '(' $ac_mid ')' + 1`
15256fi
15257
15258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15259done
15260case $ac_lo in
15261?*) ac_cv_sizeof_unsigned_char=$ac_lo;;
15262'') if test "$ac_cv_type_unsigned_char" = yes; then
15263     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
15264See \`config.log' for more details." >&5
15265$as_echo "$as_me: error: cannot compute sizeof (unsigned char)
15266See \`config.log' for more details." >&2;}
15267   { (exit 77); exit 77; }; }
15268   else
15269     ac_cv_sizeof_unsigned_char=0
15270   fi ;;
15271esac
15272else
15273  cat >conftest.$ac_ext <<_ACEOF
15274/* confdefs.h.  */
15275_ACEOF
15276cat confdefs.h >>conftest.$ac_ext
15277cat >>conftest.$ac_ext <<_ACEOF
15278/* end confdefs.h.  */
15279$ac_includes_default
15280static long int longval () { return (long int) (sizeof (unsigned char)); }
15281static unsigned long int ulongval () { return (long int) (sizeof (unsigned char)); }
15282#include <stdio.h>
15283#include <stdlib.h>
15284int
15285main ()
15286{
15287
15288  FILE *f = fopen ("conftest.val", "w");
15289  if (! f)
15290    return 1;
15291  if (((long int) (sizeof (unsigned char))) < 0)
15292    {
15293      long int i = longval ();
15294      if (i != ((long int) (sizeof (unsigned char))))
15295	return 1;
15296      fprintf (f, "%ld", i);
15297    }
15298  else
15299    {
15300      unsigned long int i = ulongval ();
15301      if (i != ((long int) (sizeof (unsigned char))))
15302	return 1;
15303      fprintf (f, "%lu", i);
15304    }
15305  /* Do not output a trailing newline, as this causes \r\n confusion
15306     on some platforms.  */
15307  return ferror (f) || fclose (f) != 0;
15308
15309  ;
15310  return 0;
15311}
15312_ACEOF
15313rm -f conftest$ac_exeext
15314if { (ac_try="$ac_link"
15315case "(($ac_try" in
15316  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317  *) ac_try_echo=$ac_try;;
15318esac
15319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15320$as_echo "$ac_try_echo") >&5
15321  (eval "$ac_link") 2>&5
15322  ac_status=$?
15323  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15325  { (case "(($ac_try" in
15326  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327  *) ac_try_echo=$ac_try;;
15328esac
15329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15330$as_echo "$ac_try_echo") >&5
15331  (eval "$ac_try") 2>&5
15332  ac_status=$?
15333  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334  (exit $ac_status); }; }; then
15335  ac_cv_sizeof_unsigned_char=`cat conftest.val`
15336else
15337  $as_echo "$as_me: program exited with status $ac_status" >&5
15338$as_echo "$as_me: failed program was:" >&5
15339sed 's/^/| /' conftest.$ac_ext >&5
15340
15341( exit $ac_status )
15342if test "$ac_cv_type_unsigned_char" = yes; then
15343     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char)
15344See \`config.log' for more details." >&5
15345$as_echo "$as_me: error: cannot compute sizeof (unsigned char)
15346See \`config.log' for more details." >&2;}
15347   { (exit 77); exit 77; }; }
15348   else
15349     ac_cv_sizeof_unsigned_char=0
15350   fi
15351fi
15352rm -rf conftest.dSYM
15353rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15354fi
15355rm -f conftest.val
15356fi
15357{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
15358$as_echo "$ac_cv_sizeof_unsigned_char" >&6; }
15359
15360
15361
15362cat >>confdefs.h <<_ACEOF
15363#define SIZEOF_UNSIGNED_CHAR $ac_cv_sizeof_unsigned_char
15364_ACEOF
15365
15366
15367    # The cast to long int works around a bug in the HP C Compiler
15368# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15369# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15370# This bug is HP SR number 8606223364.
15371{ $as_echo "$as_me:$LINENO: checking size of short" >&5
15372$as_echo_n "checking size of short... " >&6; }
15373if test "${ac_cv_sizeof_short+set}" = set; then
15374  $as_echo_n "(cached) " >&6
15375else
15376  if test "$cross_compiling" = yes; then
15377  # Depending upon the size, compute the lo and hi bounds.
15378cat >conftest.$ac_ext <<_ACEOF
15379/* confdefs.h.  */
15380_ACEOF
15381cat confdefs.h >>conftest.$ac_ext
15382cat >>conftest.$ac_ext <<_ACEOF
15383/* end confdefs.h.  */
15384$ac_includes_default
15385int
15386main ()
15387{
15388static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
15389test_array [0] = 0
15390
15391  ;
15392  return 0;
15393}
15394_ACEOF
15395rm -f conftest.$ac_objext
15396if { (ac_try="$ac_compile"
15397case "(($ac_try" in
15398  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15399  *) ac_try_echo=$ac_try;;
15400esac
15401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15402$as_echo "$ac_try_echo") >&5
15403  (eval "$ac_compile") 2>conftest.er1
15404  ac_status=$?
15405  grep -v '^ *+' conftest.er1 >conftest.err
15406  rm -f conftest.er1
15407  cat conftest.err >&5
15408  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409  (exit $ac_status); } && {
15410	 test -z "$ac_c_werror_flag" ||
15411	 test ! -s conftest.err
15412       } && test -s conftest.$ac_objext; then
15413  ac_lo=0 ac_mid=0
15414  while :; do
15415    cat >conftest.$ac_ext <<_ACEOF
15416/* confdefs.h.  */
15417_ACEOF
15418cat confdefs.h >>conftest.$ac_ext
15419cat >>conftest.$ac_ext <<_ACEOF
15420/* end confdefs.h.  */
15421$ac_includes_default
15422int
15423main ()
15424{
15425static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
15426test_array [0] = 0
15427
15428  ;
15429  return 0;
15430}
15431_ACEOF
15432rm -f conftest.$ac_objext
15433if { (ac_try="$ac_compile"
15434case "(($ac_try" in
15435  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436  *) ac_try_echo=$ac_try;;
15437esac
15438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15439$as_echo "$ac_try_echo") >&5
15440  (eval "$ac_compile") 2>conftest.er1
15441  ac_status=$?
15442  grep -v '^ *+' conftest.er1 >conftest.err
15443  rm -f conftest.er1
15444  cat conftest.err >&5
15445  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446  (exit $ac_status); } && {
15447	 test -z "$ac_c_werror_flag" ||
15448	 test ! -s conftest.err
15449       } && test -s conftest.$ac_objext; then
15450  ac_hi=$ac_mid; break
15451else
15452  $as_echo "$as_me: failed program was:" >&5
15453sed 's/^/| /' conftest.$ac_ext >&5
15454
15455	ac_lo=`expr $ac_mid + 1`
15456			if test $ac_lo -le $ac_mid; then
15457			  ac_lo= ac_hi=
15458			  break
15459			fi
15460			ac_mid=`expr 2 '*' $ac_mid + 1`
15461fi
15462
15463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464  done
15465else
15466  $as_echo "$as_me: failed program was:" >&5
15467sed 's/^/| /' conftest.$ac_ext >&5
15468
15469	cat >conftest.$ac_ext <<_ACEOF
15470/* confdefs.h.  */
15471_ACEOF
15472cat confdefs.h >>conftest.$ac_ext
15473cat >>conftest.$ac_ext <<_ACEOF
15474/* end confdefs.h.  */
15475$ac_includes_default
15476int
15477main ()
15478{
15479static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
15480test_array [0] = 0
15481
15482  ;
15483  return 0;
15484}
15485_ACEOF
15486rm -f conftest.$ac_objext
15487if { (ac_try="$ac_compile"
15488case "(($ac_try" in
15489  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15490  *) ac_try_echo=$ac_try;;
15491esac
15492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15493$as_echo "$ac_try_echo") >&5
15494  (eval "$ac_compile") 2>conftest.er1
15495  ac_status=$?
15496  grep -v '^ *+' conftest.er1 >conftest.err
15497  rm -f conftest.er1
15498  cat conftest.err >&5
15499  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500  (exit $ac_status); } && {
15501	 test -z "$ac_c_werror_flag" ||
15502	 test ! -s conftest.err
15503       } && test -s conftest.$ac_objext; then
15504  ac_hi=-1 ac_mid=-1
15505  while :; do
15506    cat >conftest.$ac_ext <<_ACEOF
15507/* confdefs.h.  */
15508_ACEOF
15509cat confdefs.h >>conftest.$ac_ext
15510cat >>conftest.$ac_ext <<_ACEOF
15511/* end confdefs.h.  */
15512$ac_includes_default
15513int
15514main ()
15515{
15516static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
15517test_array [0] = 0
15518
15519  ;
15520  return 0;
15521}
15522_ACEOF
15523rm -f conftest.$ac_objext
15524if { (ac_try="$ac_compile"
15525case "(($ac_try" in
15526  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15527  *) ac_try_echo=$ac_try;;
15528esac
15529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15530$as_echo "$ac_try_echo") >&5
15531  (eval "$ac_compile") 2>conftest.er1
15532  ac_status=$?
15533  grep -v '^ *+' conftest.er1 >conftest.err
15534  rm -f conftest.er1
15535  cat conftest.err >&5
15536  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537  (exit $ac_status); } && {
15538	 test -z "$ac_c_werror_flag" ||
15539	 test ! -s conftest.err
15540       } && test -s conftest.$ac_objext; then
15541  ac_lo=$ac_mid; break
15542else
15543  $as_echo "$as_me: failed program was:" >&5
15544sed 's/^/| /' conftest.$ac_ext >&5
15545
15546	ac_hi=`expr '(' $ac_mid ')' - 1`
15547			if test $ac_mid -le $ac_hi; then
15548			  ac_lo= ac_hi=
15549			  break
15550			fi
15551			ac_mid=`expr 2 '*' $ac_mid`
15552fi
15553
15554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15555  done
15556else
15557  $as_echo "$as_me: failed program was:" >&5
15558sed 's/^/| /' conftest.$ac_ext >&5
15559
15560	ac_lo= ac_hi=
15561fi
15562
15563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15564fi
15565
15566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15567# Binary search between lo and hi bounds.
15568while test "x$ac_lo" != "x$ac_hi"; do
15569  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15570  cat >conftest.$ac_ext <<_ACEOF
15571/* confdefs.h.  */
15572_ACEOF
15573cat confdefs.h >>conftest.$ac_ext
15574cat >>conftest.$ac_ext <<_ACEOF
15575/* end confdefs.h.  */
15576$ac_includes_default
15577int
15578main ()
15579{
15580static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
15581test_array [0] = 0
15582
15583  ;
15584  return 0;
15585}
15586_ACEOF
15587rm -f conftest.$ac_objext
15588if { (ac_try="$ac_compile"
15589case "(($ac_try" in
15590  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591  *) ac_try_echo=$ac_try;;
15592esac
15593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15594$as_echo "$ac_try_echo") >&5
15595  (eval "$ac_compile") 2>conftest.er1
15596  ac_status=$?
15597  grep -v '^ *+' conftest.er1 >conftest.err
15598  rm -f conftest.er1
15599  cat conftest.err >&5
15600  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601  (exit $ac_status); } && {
15602	 test -z "$ac_c_werror_flag" ||
15603	 test ! -s conftest.err
15604       } && test -s conftest.$ac_objext; then
15605  ac_hi=$ac_mid
15606else
15607  $as_echo "$as_me: failed program was:" >&5
15608sed 's/^/| /' conftest.$ac_ext >&5
15609
15610	ac_lo=`expr '(' $ac_mid ')' + 1`
15611fi
15612
15613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15614done
15615case $ac_lo in
15616?*) ac_cv_sizeof_short=$ac_lo;;
15617'') if test "$ac_cv_type_short" = yes; then
15618     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
15619See \`config.log' for more details." >&5
15620$as_echo "$as_me: error: cannot compute sizeof (short)
15621See \`config.log' for more details." >&2;}
15622   { (exit 77); exit 77; }; }
15623   else
15624     ac_cv_sizeof_short=0
15625   fi ;;
15626esac
15627else
15628  cat >conftest.$ac_ext <<_ACEOF
15629/* confdefs.h.  */
15630_ACEOF
15631cat confdefs.h >>conftest.$ac_ext
15632cat >>conftest.$ac_ext <<_ACEOF
15633/* end confdefs.h.  */
15634$ac_includes_default
15635static long int longval () { return (long int) (sizeof (short)); }
15636static unsigned long int ulongval () { return (long int) (sizeof (short)); }
15637#include <stdio.h>
15638#include <stdlib.h>
15639int
15640main ()
15641{
15642
15643  FILE *f = fopen ("conftest.val", "w");
15644  if (! f)
15645    return 1;
15646  if (((long int) (sizeof (short))) < 0)
15647    {
15648      long int i = longval ();
15649      if (i != ((long int) (sizeof (short))))
15650	return 1;
15651      fprintf (f, "%ld", i);
15652    }
15653  else
15654    {
15655      unsigned long int i = ulongval ();
15656      if (i != ((long int) (sizeof (short))))
15657	return 1;
15658      fprintf (f, "%lu", i);
15659    }
15660  /* Do not output a trailing newline, as this causes \r\n confusion
15661     on some platforms.  */
15662  return ferror (f) || fclose (f) != 0;
15663
15664  ;
15665  return 0;
15666}
15667_ACEOF
15668rm -f conftest$ac_exeext
15669if { (ac_try="$ac_link"
15670case "(($ac_try" in
15671  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672  *) ac_try_echo=$ac_try;;
15673esac
15674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15675$as_echo "$ac_try_echo") >&5
15676  (eval "$ac_link") 2>&5
15677  ac_status=$?
15678  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15680  { (case "(($ac_try" in
15681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682  *) ac_try_echo=$ac_try;;
15683esac
15684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15685$as_echo "$ac_try_echo") >&5
15686  (eval "$ac_try") 2>&5
15687  ac_status=$?
15688  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689  (exit $ac_status); }; }; then
15690  ac_cv_sizeof_short=`cat conftest.val`
15691else
15692  $as_echo "$as_me: program exited with status $ac_status" >&5
15693$as_echo "$as_me: failed program was:" >&5
15694sed 's/^/| /' conftest.$ac_ext >&5
15695
15696( exit $ac_status )
15697if test "$ac_cv_type_short" = yes; then
15698     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
15699See \`config.log' for more details." >&5
15700$as_echo "$as_me: error: cannot compute sizeof (short)
15701See \`config.log' for more details." >&2;}
15702   { (exit 77); exit 77; }; }
15703   else
15704     ac_cv_sizeof_short=0
15705   fi
15706fi
15707rm -rf conftest.dSYM
15708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15709fi
15710rm -f conftest.val
15711fi
15712{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15713$as_echo "$ac_cv_sizeof_short" >&6; }
15714
15715
15716
15717cat >>confdefs.h <<_ACEOF
15718#define SIZEOF_SHORT $ac_cv_sizeof_short
15719_ACEOF
15720
15721
15722    # The cast to long int works around a bug in the HP C Compiler
15723# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15724# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15725# This bug is HP SR number 8606223364.
15726{ $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
15727$as_echo_n "checking size of unsigned short... " >&6; }
15728if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
15729  $as_echo_n "(cached) " >&6
15730else
15731  if test "$cross_compiling" = yes; then
15732  # Depending upon the size, compute the lo and hi bounds.
15733cat >conftest.$ac_ext <<_ACEOF
15734/* confdefs.h.  */
15735_ACEOF
15736cat confdefs.h >>conftest.$ac_ext
15737cat >>conftest.$ac_ext <<_ACEOF
15738/* end confdefs.h.  */
15739$ac_includes_default
15740int
15741main ()
15742{
15743static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
15744test_array [0] = 0
15745
15746  ;
15747  return 0;
15748}
15749_ACEOF
15750rm -f conftest.$ac_objext
15751if { (ac_try="$ac_compile"
15752case "(($ac_try" in
15753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754  *) ac_try_echo=$ac_try;;
15755esac
15756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15757$as_echo "$ac_try_echo") >&5
15758  (eval "$ac_compile") 2>conftest.er1
15759  ac_status=$?
15760  grep -v '^ *+' conftest.er1 >conftest.err
15761  rm -f conftest.er1
15762  cat conftest.err >&5
15763  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764  (exit $ac_status); } && {
15765	 test -z "$ac_c_werror_flag" ||
15766	 test ! -s conftest.err
15767       } && test -s conftest.$ac_objext; then
15768  ac_lo=0 ac_mid=0
15769  while :; do
15770    cat >conftest.$ac_ext <<_ACEOF
15771/* confdefs.h.  */
15772_ACEOF
15773cat confdefs.h >>conftest.$ac_ext
15774cat >>conftest.$ac_ext <<_ACEOF
15775/* end confdefs.h.  */
15776$ac_includes_default
15777int
15778main ()
15779{
15780static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
15781test_array [0] = 0
15782
15783  ;
15784  return 0;
15785}
15786_ACEOF
15787rm -f conftest.$ac_objext
15788if { (ac_try="$ac_compile"
15789case "(($ac_try" in
15790  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791  *) ac_try_echo=$ac_try;;
15792esac
15793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15794$as_echo "$ac_try_echo") >&5
15795  (eval "$ac_compile") 2>conftest.er1
15796  ac_status=$?
15797  grep -v '^ *+' conftest.er1 >conftest.err
15798  rm -f conftest.er1
15799  cat conftest.err >&5
15800  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801  (exit $ac_status); } && {
15802	 test -z "$ac_c_werror_flag" ||
15803	 test ! -s conftest.err
15804       } && test -s conftest.$ac_objext; then
15805  ac_hi=$ac_mid; break
15806else
15807  $as_echo "$as_me: failed program was:" >&5
15808sed 's/^/| /' conftest.$ac_ext >&5
15809
15810	ac_lo=`expr $ac_mid + 1`
15811			if test $ac_lo -le $ac_mid; then
15812			  ac_lo= ac_hi=
15813			  break
15814			fi
15815			ac_mid=`expr 2 '*' $ac_mid + 1`
15816fi
15817
15818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15819  done
15820else
15821  $as_echo "$as_me: failed program was:" >&5
15822sed 's/^/| /' conftest.$ac_ext >&5
15823
15824	cat >conftest.$ac_ext <<_ACEOF
15825/* confdefs.h.  */
15826_ACEOF
15827cat confdefs.h >>conftest.$ac_ext
15828cat >>conftest.$ac_ext <<_ACEOF
15829/* end confdefs.h.  */
15830$ac_includes_default
15831int
15832main ()
15833{
15834static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
15835test_array [0] = 0
15836
15837  ;
15838  return 0;
15839}
15840_ACEOF
15841rm -f conftest.$ac_objext
15842if { (ac_try="$ac_compile"
15843case "(($ac_try" in
15844  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845  *) ac_try_echo=$ac_try;;
15846esac
15847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15848$as_echo "$ac_try_echo") >&5
15849  (eval "$ac_compile") 2>conftest.er1
15850  ac_status=$?
15851  grep -v '^ *+' conftest.er1 >conftest.err
15852  rm -f conftest.er1
15853  cat conftest.err >&5
15854  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855  (exit $ac_status); } && {
15856	 test -z "$ac_c_werror_flag" ||
15857	 test ! -s conftest.err
15858       } && test -s conftest.$ac_objext; then
15859  ac_hi=-1 ac_mid=-1
15860  while :; do
15861    cat >conftest.$ac_ext <<_ACEOF
15862/* confdefs.h.  */
15863_ACEOF
15864cat confdefs.h >>conftest.$ac_ext
15865cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h.  */
15867$ac_includes_default
15868int
15869main ()
15870{
15871static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
15872test_array [0] = 0
15873
15874  ;
15875  return 0;
15876}
15877_ACEOF
15878rm -f conftest.$ac_objext
15879if { (ac_try="$ac_compile"
15880case "(($ac_try" in
15881  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882  *) ac_try_echo=$ac_try;;
15883esac
15884eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15885$as_echo "$ac_try_echo") >&5
15886  (eval "$ac_compile") 2>conftest.er1
15887  ac_status=$?
15888  grep -v '^ *+' conftest.er1 >conftest.err
15889  rm -f conftest.er1
15890  cat conftest.err >&5
15891  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892  (exit $ac_status); } && {
15893	 test -z "$ac_c_werror_flag" ||
15894	 test ! -s conftest.err
15895       } && test -s conftest.$ac_objext; then
15896  ac_lo=$ac_mid; break
15897else
15898  $as_echo "$as_me: failed program was:" >&5
15899sed 's/^/| /' conftest.$ac_ext >&5
15900
15901	ac_hi=`expr '(' $ac_mid ')' - 1`
15902			if test $ac_mid -le $ac_hi; then
15903			  ac_lo= ac_hi=
15904			  break
15905			fi
15906			ac_mid=`expr 2 '*' $ac_mid`
15907fi
15908
15909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15910  done
15911else
15912  $as_echo "$as_me: failed program was:" >&5
15913sed 's/^/| /' conftest.$ac_ext >&5
15914
15915	ac_lo= ac_hi=
15916fi
15917
15918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15919fi
15920
15921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15922# Binary search between lo and hi bounds.
15923while test "x$ac_lo" != "x$ac_hi"; do
15924  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15925  cat >conftest.$ac_ext <<_ACEOF
15926/* confdefs.h.  */
15927_ACEOF
15928cat confdefs.h >>conftest.$ac_ext
15929cat >>conftest.$ac_ext <<_ACEOF
15930/* end confdefs.h.  */
15931$ac_includes_default
15932int
15933main ()
15934{
15935static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
15936test_array [0] = 0
15937
15938  ;
15939  return 0;
15940}
15941_ACEOF
15942rm -f conftest.$ac_objext
15943if { (ac_try="$ac_compile"
15944case "(($ac_try" in
15945  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15946  *) ac_try_echo=$ac_try;;
15947esac
15948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15949$as_echo "$ac_try_echo") >&5
15950  (eval "$ac_compile") 2>conftest.er1
15951  ac_status=$?
15952  grep -v '^ *+' conftest.er1 >conftest.err
15953  rm -f conftest.er1
15954  cat conftest.err >&5
15955  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956  (exit $ac_status); } && {
15957	 test -z "$ac_c_werror_flag" ||
15958	 test ! -s conftest.err
15959       } && test -s conftest.$ac_objext; then
15960  ac_hi=$ac_mid
15961else
15962  $as_echo "$as_me: failed program was:" >&5
15963sed 's/^/| /' conftest.$ac_ext >&5
15964
15965	ac_lo=`expr '(' $ac_mid ')' + 1`
15966fi
15967
15968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15969done
15970case $ac_lo in
15971?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
15972'') if test "$ac_cv_type_unsigned_short" = yes; then
15973     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
15974See \`config.log' for more details." >&5
15975$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
15976See \`config.log' for more details." >&2;}
15977   { (exit 77); exit 77; }; }
15978   else
15979     ac_cv_sizeof_unsigned_short=0
15980   fi ;;
15981esac
15982else
15983  cat >conftest.$ac_ext <<_ACEOF
15984/* confdefs.h.  */
15985_ACEOF
15986cat confdefs.h >>conftest.$ac_ext
15987cat >>conftest.$ac_ext <<_ACEOF
15988/* end confdefs.h.  */
15989$ac_includes_default
15990static long int longval () { return (long int) (sizeof (unsigned short)); }
15991static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
15992#include <stdio.h>
15993#include <stdlib.h>
15994int
15995main ()
15996{
15997
15998  FILE *f = fopen ("conftest.val", "w");
15999  if (! f)
16000    return 1;
16001  if (((long int) (sizeof (unsigned short))) < 0)
16002    {
16003      long int i = longval ();
16004      if (i != ((long int) (sizeof (unsigned short))))
16005	return 1;
16006      fprintf (f, "%ld", i);
16007    }
16008  else
16009    {
16010      unsigned long int i = ulongval ();
16011      if (i != ((long int) (sizeof (unsigned short))))
16012	return 1;
16013      fprintf (f, "%lu", i);
16014    }
16015  /* Do not output a trailing newline, as this causes \r\n confusion
16016     on some platforms.  */
16017  return ferror (f) || fclose (f) != 0;
16018
16019  ;
16020  return 0;
16021}
16022_ACEOF
16023rm -f conftest$ac_exeext
16024if { (ac_try="$ac_link"
16025case "(($ac_try" in
16026  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16027  *) ac_try_echo=$ac_try;;
16028esac
16029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16030$as_echo "$ac_try_echo") >&5
16031  (eval "$ac_link") 2>&5
16032  ac_status=$?
16033  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16035  { (case "(($ac_try" in
16036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16037  *) ac_try_echo=$ac_try;;
16038esac
16039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16040$as_echo "$ac_try_echo") >&5
16041  (eval "$ac_try") 2>&5
16042  ac_status=$?
16043  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044  (exit $ac_status); }; }; then
16045  ac_cv_sizeof_unsigned_short=`cat conftest.val`
16046else
16047  $as_echo "$as_me: program exited with status $ac_status" >&5
16048$as_echo "$as_me: failed program was:" >&5
16049sed 's/^/| /' conftest.$ac_ext >&5
16050
16051( exit $ac_status )
16052if test "$ac_cv_type_unsigned_short" = yes; then
16053     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
16054See \`config.log' for more details." >&5
16055$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
16056See \`config.log' for more details." >&2;}
16057   { (exit 77); exit 77; }; }
16058   else
16059     ac_cv_sizeof_unsigned_short=0
16060   fi
16061fi
16062rm -rf conftest.dSYM
16063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16064fi
16065rm -f conftest.val
16066fi
16067{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
16068$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
16069
16070
16071
16072cat >>confdefs.h <<_ACEOF
16073#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
16074_ACEOF
16075
16076
16077    # The cast to long int works around a bug in the HP C Compiler
16078# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16079# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16080# This bug is HP SR number 8606223364.
16081{ $as_echo "$as_me:$LINENO: checking size of int" >&5
16082$as_echo_n "checking size of int... " >&6; }
16083if test "${ac_cv_sizeof_int+set}" = set; then
16084  $as_echo_n "(cached) " >&6
16085else
16086  if test "$cross_compiling" = yes; then
16087  # Depending upon the size, compute the lo and hi bounds.
16088cat >conftest.$ac_ext <<_ACEOF
16089/* confdefs.h.  */
16090_ACEOF
16091cat confdefs.h >>conftest.$ac_ext
16092cat >>conftest.$ac_ext <<_ACEOF
16093/* end confdefs.h.  */
16094$ac_includes_default
16095int
16096main ()
16097{
16098static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
16099test_array [0] = 0
16100
16101  ;
16102  return 0;
16103}
16104_ACEOF
16105rm -f conftest.$ac_objext
16106if { (ac_try="$ac_compile"
16107case "(($ac_try" in
16108  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109  *) ac_try_echo=$ac_try;;
16110esac
16111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16112$as_echo "$ac_try_echo") >&5
16113  (eval "$ac_compile") 2>conftest.er1
16114  ac_status=$?
16115  grep -v '^ *+' conftest.er1 >conftest.err
16116  rm -f conftest.er1
16117  cat conftest.err >&5
16118  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119  (exit $ac_status); } && {
16120	 test -z "$ac_c_werror_flag" ||
16121	 test ! -s conftest.err
16122       } && test -s conftest.$ac_objext; then
16123  ac_lo=0 ac_mid=0
16124  while :; do
16125    cat >conftest.$ac_ext <<_ACEOF
16126/* confdefs.h.  */
16127_ACEOF
16128cat confdefs.h >>conftest.$ac_ext
16129cat >>conftest.$ac_ext <<_ACEOF
16130/* end confdefs.h.  */
16131$ac_includes_default
16132int
16133main ()
16134{
16135static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16136test_array [0] = 0
16137
16138  ;
16139  return 0;
16140}
16141_ACEOF
16142rm -f conftest.$ac_objext
16143if { (ac_try="$ac_compile"
16144case "(($ac_try" in
16145  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146  *) ac_try_echo=$ac_try;;
16147esac
16148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16149$as_echo "$ac_try_echo") >&5
16150  (eval "$ac_compile") 2>conftest.er1
16151  ac_status=$?
16152  grep -v '^ *+' conftest.er1 >conftest.err
16153  rm -f conftest.er1
16154  cat conftest.err >&5
16155  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156  (exit $ac_status); } && {
16157	 test -z "$ac_c_werror_flag" ||
16158	 test ! -s conftest.err
16159       } && test -s conftest.$ac_objext; then
16160  ac_hi=$ac_mid; break
16161else
16162  $as_echo "$as_me: failed program was:" >&5
16163sed 's/^/| /' conftest.$ac_ext >&5
16164
16165	ac_lo=`expr $ac_mid + 1`
16166			if test $ac_lo -le $ac_mid; then
16167			  ac_lo= ac_hi=
16168			  break
16169			fi
16170			ac_mid=`expr 2 '*' $ac_mid + 1`
16171fi
16172
16173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16174  done
16175else
16176  $as_echo "$as_me: failed program was:" >&5
16177sed 's/^/| /' conftest.$ac_ext >&5
16178
16179	cat >conftest.$ac_ext <<_ACEOF
16180/* confdefs.h.  */
16181_ACEOF
16182cat confdefs.h >>conftest.$ac_ext
16183cat >>conftest.$ac_ext <<_ACEOF
16184/* end confdefs.h.  */
16185$ac_includes_default
16186int
16187main ()
16188{
16189static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
16190test_array [0] = 0
16191
16192  ;
16193  return 0;
16194}
16195_ACEOF
16196rm -f conftest.$ac_objext
16197if { (ac_try="$ac_compile"
16198case "(($ac_try" in
16199  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200  *) ac_try_echo=$ac_try;;
16201esac
16202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16203$as_echo "$ac_try_echo") >&5
16204  (eval "$ac_compile") 2>conftest.er1
16205  ac_status=$?
16206  grep -v '^ *+' conftest.er1 >conftest.err
16207  rm -f conftest.er1
16208  cat conftest.err >&5
16209  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210  (exit $ac_status); } && {
16211	 test -z "$ac_c_werror_flag" ||
16212	 test ! -s conftest.err
16213       } && test -s conftest.$ac_objext; then
16214  ac_hi=-1 ac_mid=-1
16215  while :; do
16216    cat >conftest.$ac_ext <<_ACEOF
16217/* confdefs.h.  */
16218_ACEOF
16219cat confdefs.h >>conftest.$ac_ext
16220cat >>conftest.$ac_ext <<_ACEOF
16221/* end confdefs.h.  */
16222$ac_includes_default
16223int
16224main ()
16225{
16226static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
16227test_array [0] = 0
16228
16229  ;
16230  return 0;
16231}
16232_ACEOF
16233rm -f conftest.$ac_objext
16234if { (ac_try="$ac_compile"
16235case "(($ac_try" in
16236  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237  *) ac_try_echo=$ac_try;;
16238esac
16239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16240$as_echo "$ac_try_echo") >&5
16241  (eval "$ac_compile") 2>conftest.er1
16242  ac_status=$?
16243  grep -v '^ *+' conftest.er1 >conftest.err
16244  rm -f conftest.er1
16245  cat conftest.err >&5
16246  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247  (exit $ac_status); } && {
16248	 test -z "$ac_c_werror_flag" ||
16249	 test ! -s conftest.err
16250       } && test -s conftest.$ac_objext; then
16251  ac_lo=$ac_mid; break
16252else
16253  $as_echo "$as_me: failed program was:" >&5
16254sed 's/^/| /' conftest.$ac_ext >&5
16255
16256	ac_hi=`expr '(' $ac_mid ')' - 1`
16257			if test $ac_mid -le $ac_hi; then
16258			  ac_lo= ac_hi=
16259			  break
16260			fi
16261			ac_mid=`expr 2 '*' $ac_mid`
16262fi
16263
16264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16265  done
16266else
16267  $as_echo "$as_me: failed program was:" >&5
16268sed 's/^/| /' conftest.$ac_ext >&5
16269
16270	ac_lo= ac_hi=
16271fi
16272
16273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16274fi
16275
16276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277# Binary search between lo and hi bounds.
16278while test "x$ac_lo" != "x$ac_hi"; do
16279  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16280  cat >conftest.$ac_ext <<_ACEOF
16281/* confdefs.h.  */
16282_ACEOF
16283cat confdefs.h >>conftest.$ac_ext
16284cat >>conftest.$ac_ext <<_ACEOF
16285/* end confdefs.h.  */
16286$ac_includes_default
16287int
16288main ()
16289{
16290static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
16291test_array [0] = 0
16292
16293  ;
16294  return 0;
16295}
16296_ACEOF
16297rm -f conftest.$ac_objext
16298if { (ac_try="$ac_compile"
16299case "(($ac_try" in
16300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16301  *) ac_try_echo=$ac_try;;
16302esac
16303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16304$as_echo "$ac_try_echo") >&5
16305  (eval "$ac_compile") 2>conftest.er1
16306  ac_status=$?
16307  grep -v '^ *+' conftest.er1 >conftest.err
16308  rm -f conftest.er1
16309  cat conftest.err >&5
16310  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311  (exit $ac_status); } && {
16312	 test -z "$ac_c_werror_flag" ||
16313	 test ! -s conftest.err
16314       } && test -s conftest.$ac_objext; then
16315  ac_hi=$ac_mid
16316else
16317  $as_echo "$as_me: failed program was:" >&5
16318sed 's/^/| /' conftest.$ac_ext >&5
16319
16320	ac_lo=`expr '(' $ac_mid ')' + 1`
16321fi
16322
16323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16324done
16325case $ac_lo in
16326?*) ac_cv_sizeof_int=$ac_lo;;
16327'') if test "$ac_cv_type_int" = yes; then
16328     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16329See \`config.log' for more details." >&5
16330$as_echo "$as_me: error: cannot compute sizeof (int)
16331See \`config.log' for more details." >&2;}
16332   { (exit 77); exit 77; }; }
16333   else
16334     ac_cv_sizeof_int=0
16335   fi ;;
16336esac
16337else
16338  cat >conftest.$ac_ext <<_ACEOF
16339/* confdefs.h.  */
16340_ACEOF
16341cat confdefs.h >>conftest.$ac_ext
16342cat >>conftest.$ac_ext <<_ACEOF
16343/* end confdefs.h.  */
16344$ac_includes_default
16345static long int longval () { return (long int) (sizeof (int)); }
16346static unsigned long int ulongval () { return (long int) (sizeof (int)); }
16347#include <stdio.h>
16348#include <stdlib.h>
16349int
16350main ()
16351{
16352
16353  FILE *f = fopen ("conftest.val", "w");
16354  if (! f)
16355    return 1;
16356  if (((long int) (sizeof (int))) < 0)
16357    {
16358      long int i = longval ();
16359      if (i != ((long int) (sizeof (int))))
16360	return 1;
16361      fprintf (f, "%ld", i);
16362    }
16363  else
16364    {
16365      unsigned long int i = ulongval ();
16366      if (i != ((long int) (sizeof (int))))
16367	return 1;
16368      fprintf (f, "%lu", i);
16369    }
16370  /* Do not output a trailing newline, as this causes \r\n confusion
16371     on some platforms.  */
16372  return ferror (f) || fclose (f) != 0;
16373
16374  ;
16375  return 0;
16376}
16377_ACEOF
16378rm -f conftest$ac_exeext
16379if { (ac_try="$ac_link"
16380case "(($ac_try" in
16381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382  *) ac_try_echo=$ac_try;;
16383esac
16384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16385$as_echo "$ac_try_echo") >&5
16386  (eval "$ac_link") 2>&5
16387  ac_status=$?
16388  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16390  { (case "(($ac_try" in
16391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392  *) ac_try_echo=$ac_try;;
16393esac
16394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16395$as_echo "$ac_try_echo") >&5
16396  (eval "$ac_try") 2>&5
16397  ac_status=$?
16398  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399  (exit $ac_status); }; }; then
16400  ac_cv_sizeof_int=`cat conftest.val`
16401else
16402  $as_echo "$as_me: program exited with status $ac_status" >&5
16403$as_echo "$as_me: failed program was:" >&5
16404sed 's/^/| /' conftest.$ac_ext >&5
16405
16406( exit $ac_status )
16407if test "$ac_cv_type_int" = yes; then
16408     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
16409See \`config.log' for more details." >&5
16410$as_echo "$as_me: error: cannot compute sizeof (int)
16411See \`config.log' for more details." >&2;}
16412   { (exit 77); exit 77; }; }
16413   else
16414     ac_cv_sizeof_int=0
16415   fi
16416fi
16417rm -rf conftest.dSYM
16418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16419fi
16420rm -f conftest.val
16421fi
16422{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16423$as_echo "$ac_cv_sizeof_int" >&6; }
16424
16425
16426
16427cat >>confdefs.h <<_ACEOF
16428#define SIZEOF_INT $ac_cv_sizeof_int
16429_ACEOF
16430
16431
16432    # The cast to long int works around a bug in the HP C Compiler
16433# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16434# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16435# This bug is HP SR number 8606223364.
16436{ $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
16437$as_echo_n "checking size of unsigned int... " >&6; }
16438if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
16439  $as_echo_n "(cached) " >&6
16440else
16441  if test "$cross_compiling" = yes; then
16442  # Depending upon the size, compute the lo and hi bounds.
16443cat >conftest.$ac_ext <<_ACEOF
16444/* confdefs.h.  */
16445_ACEOF
16446cat confdefs.h >>conftest.$ac_ext
16447cat >>conftest.$ac_ext <<_ACEOF
16448/* end confdefs.h.  */
16449$ac_includes_default
16450int
16451main ()
16452{
16453static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
16454test_array [0] = 0
16455
16456  ;
16457  return 0;
16458}
16459_ACEOF
16460rm -f conftest.$ac_objext
16461if { (ac_try="$ac_compile"
16462case "(($ac_try" in
16463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464  *) ac_try_echo=$ac_try;;
16465esac
16466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16467$as_echo "$ac_try_echo") >&5
16468  (eval "$ac_compile") 2>conftest.er1
16469  ac_status=$?
16470  grep -v '^ *+' conftest.er1 >conftest.err
16471  rm -f conftest.er1
16472  cat conftest.err >&5
16473  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474  (exit $ac_status); } && {
16475	 test -z "$ac_c_werror_flag" ||
16476	 test ! -s conftest.err
16477       } && test -s conftest.$ac_objext; then
16478  ac_lo=0 ac_mid=0
16479  while :; do
16480    cat >conftest.$ac_ext <<_ACEOF
16481/* confdefs.h.  */
16482_ACEOF
16483cat confdefs.h >>conftest.$ac_ext
16484cat >>conftest.$ac_ext <<_ACEOF
16485/* end confdefs.h.  */
16486$ac_includes_default
16487int
16488main ()
16489{
16490static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
16491test_array [0] = 0
16492
16493  ;
16494  return 0;
16495}
16496_ACEOF
16497rm -f conftest.$ac_objext
16498if { (ac_try="$ac_compile"
16499case "(($ac_try" in
16500  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501  *) ac_try_echo=$ac_try;;
16502esac
16503eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16504$as_echo "$ac_try_echo") >&5
16505  (eval "$ac_compile") 2>conftest.er1
16506  ac_status=$?
16507  grep -v '^ *+' conftest.er1 >conftest.err
16508  rm -f conftest.er1
16509  cat conftest.err >&5
16510  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511  (exit $ac_status); } && {
16512	 test -z "$ac_c_werror_flag" ||
16513	 test ! -s conftest.err
16514       } && test -s conftest.$ac_objext; then
16515  ac_hi=$ac_mid; break
16516else
16517  $as_echo "$as_me: failed program was:" >&5
16518sed 's/^/| /' conftest.$ac_ext >&5
16519
16520	ac_lo=`expr $ac_mid + 1`
16521			if test $ac_lo -le $ac_mid; then
16522			  ac_lo= ac_hi=
16523			  break
16524			fi
16525			ac_mid=`expr 2 '*' $ac_mid + 1`
16526fi
16527
16528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16529  done
16530else
16531  $as_echo "$as_me: failed program was:" >&5
16532sed 's/^/| /' conftest.$ac_ext >&5
16533
16534	cat >conftest.$ac_ext <<_ACEOF
16535/* confdefs.h.  */
16536_ACEOF
16537cat confdefs.h >>conftest.$ac_ext
16538cat >>conftest.$ac_ext <<_ACEOF
16539/* end confdefs.h.  */
16540$ac_includes_default
16541int
16542main ()
16543{
16544static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
16545test_array [0] = 0
16546
16547  ;
16548  return 0;
16549}
16550_ACEOF
16551rm -f conftest.$ac_objext
16552if { (ac_try="$ac_compile"
16553case "(($ac_try" in
16554  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16555  *) ac_try_echo=$ac_try;;
16556esac
16557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16558$as_echo "$ac_try_echo") >&5
16559  (eval "$ac_compile") 2>conftest.er1
16560  ac_status=$?
16561  grep -v '^ *+' conftest.er1 >conftest.err
16562  rm -f conftest.er1
16563  cat conftest.err >&5
16564  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565  (exit $ac_status); } && {
16566	 test -z "$ac_c_werror_flag" ||
16567	 test ! -s conftest.err
16568       } && test -s conftest.$ac_objext; then
16569  ac_hi=-1 ac_mid=-1
16570  while :; do
16571    cat >conftest.$ac_ext <<_ACEOF
16572/* confdefs.h.  */
16573_ACEOF
16574cat confdefs.h >>conftest.$ac_ext
16575cat >>conftest.$ac_ext <<_ACEOF
16576/* end confdefs.h.  */
16577$ac_includes_default
16578int
16579main ()
16580{
16581static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
16582test_array [0] = 0
16583
16584  ;
16585  return 0;
16586}
16587_ACEOF
16588rm -f conftest.$ac_objext
16589if { (ac_try="$ac_compile"
16590case "(($ac_try" in
16591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592  *) ac_try_echo=$ac_try;;
16593esac
16594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16595$as_echo "$ac_try_echo") >&5
16596  (eval "$ac_compile") 2>conftest.er1
16597  ac_status=$?
16598  grep -v '^ *+' conftest.er1 >conftest.err
16599  rm -f conftest.er1
16600  cat conftest.err >&5
16601  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602  (exit $ac_status); } && {
16603	 test -z "$ac_c_werror_flag" ||
16604	 test ! -s conftest.err
16605       } && test -s conftest.$ac_objext; then
16606  ac_lo=$ac_mid; break
16607else
16608  $as_echo "$as_me: failed program was:" >&5
16609sed 's/^/| /' conftest.$ac_ext >&5
16610
16611	ac_hi=`expr '(' $ac_mid ')' - 1`
16612			if test $ac_mid -le $ac_hi; then
16613			  ac_lo= ac_hi=
16614			  break
16615			fi
16616			ac_mid=`expr 2 '*' $ac_mid`
16617fi
16618
16619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16620  done
16621else
16622  $as_echo "$as_me: failed program was:" >&5
16623sed 's/^/| /' conftest.$ac_ext >&5
16624
16625	ac_lo= ac_hi=
16626fi
16627
16628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16629fi
16630
16631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16632# Binary search between lo and hi bounds.
16633while test "x$ac_lo" != "x$ac_hi"; do
16634  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16635  cat >conftest.$ac_ext <<_ACEOF
16636/* confdefs.h.  */
16637_ACEOF
16638cat confdefs.h >>conftest.$ac_ext
16639cat >>conftest.$ac_ext <<_ACEOF
16640/* end confdefs.h.  */
16641$ac_includes_default
16642int
16643main ()
16644{
16645static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
16646test_array [0] = 0
16647
16648  ;
16649  return 0;
16650}
16651_ACEOF
16652rm -f conftest.$ac_objext
16653if { (ac_try="$ac_compile"
16654case "(($ac_try" in
16655  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16656  *) ac_try_echo=$ac_try;;
16657esac
16658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16659$as_echo "$ac_try_echo") >&5
16660  (eval "$ac_compile") 2>conftest.er1
16661  ac_status=$?
16662  grep -v '^ *+' conftest.er1 >conftest.err
16663  rm -f conftest.er1
16664  cat conftest.err >&5
16665  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666  (exit $ac_status); } && {
16667	 test -z "$ac_c_werror_flag" ||
16668	 test ! -s conftest.err
16669       } && test -s conftest.$ac_objext; then
16670  ac_hi=$ac_mid
16671else
16672  $as_echo "$as_me: failed program was:" >&5
16673sed 's/^/| /' conftest.$ac_ext >&5
16674
16675	ac_lo=`expr '(' $ac_mid ')' + 1`
16676fi
16677
16678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16679done
16680case $ac_lo in
16681?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
16682'') if test "$ac_cv_type_unsigned_int" = yes; then
16683     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
16684See \`config.log' for more details." >&5
16685$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
16686See \`config.log' for more details." >&2;}
16687   { (exit 77); exit 77; }; }
16688   else
16689     ac_cv_sizeof_unsigned_int=0
16690   fi ;;
16691esac
16692else
16693  cat >conftest.$ac_ext <<_ACEOF
16694/* confdefs.h.  */
16695_ACEOF
16696cat confdefs.h >>conftest.$ac_ext
16697cat >>conftest.$ac_ext <<_ACEOF
16698/* end confdefs.h.  */
16699$ac_includes_default
16700static long int longval () { return (long int) (sizeof (unsigned int)); }
16701static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
16702#include <stdio.h>
16703#include <stdlib.h>
16704int
16705main ()
16706{
16707
16708  FILE *f = fopen ("conftest.val", "w");
16709  if (! f)
16710    return 1;
16711  if (((long int) (sizeof (unsigned int))) < 0)
16712    {
16713      long int i = longval ();
16714      if (i != ((long int) (sizeof (unsigned int))))
16715	return 1;
16716      fprintf (f, "%ld", i);
16717    }
16718  else
16719    {
16720      unsigned long int i = ulongval ();
16721      if (i != ((long int) (sizeof (unsigned int))))
16722	return 1;
16723      fprintf (f, "%lu", i);
16724    }
16725  /* Do not output a trailing newline, as this causes \r\n confusion
16726     on some platforms.  */
16727  return ferror (f) || fclose (f) != 0;
16728
16729  ;
16730  return 0;
16731}
16732_ACEOF
16733rm -f conftest$ac_exeext
16734if { (ac_try="$ac_link"
16735case "(($ac_try" in
16736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16737  *) ac_try_echo=$ac_try;;
16738esac
16739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16740$as_echo "$ac_try_echo") >&5
16741  (eval "$ac_link") 2>&5
16742  ac_status=$?
16743  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16745  { (case "(($ac_try" in
16746  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16747  *) ac_try_echo=$ac_try;;
16748esac
16749eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16750$as_echo "$ac_try_echo") >&5
16751  (eval "$ac_try") 2>&5
16752  ac_status=$?
16753  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754  (exit $ac_status); }; }; then
16755  ac_cv_sizeof_unsigned_int=`cat conftest.val`
16756else
16757  $as_echo "$as_me: program exited with status $ac_status" >&5
16758$as_echo "$as_me: failed program was:" >&5
16759sed 's/^/| /' conftest.$ac_ext >&5
16760
16761( exit $ac_status )
16762if test "$ac_cv_type_unsigned_int" = yes; then
16763     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
16764See \`config.log' for more details." >&5
16765$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
16766See \`config.log' for more details." >&2;}
16767   { (exit 77); exit 77; }; }
16768   else
16769     ac_cv_sizeof_unsigned_int=0
16770   fi
16771fi
16772rm -rf conftest.dSYM
16773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16774fi
16775rm -f conftest.val
16776fi
16777{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
16778$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
16779
16780
16781
16782cat >>confdefs.h <<_ACEOF
16783#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
16784_ACEOF
16785
16786
16787    # The cast to long int works around a bug in the HP C Compiler
16788# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16789# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16790# This bug is HP SR number 8606223364.
16791{ $as_echo "$as_me:$LINENO: checking size of long" >&5
16792$as_echo_n "checking size of long... " >&6; }
16793if test "${ac_cv_sizeof_long+set}" = set; then
16794  $as_echo_n "(cached) " >&6
16795else
16796  if test "$cross_compiling" = yes; then
16797  # Depending upon the size, compute the lo and hi bounds.
16798cat >conftest.$ac_ext <<_ACEOF
16799/* confdefs.h.  */
16800_ACEOF
16801cat confdefs.h >>conftest.$ac_ext
16802cat >>conftest.$ac_ext <<_ACEOF
16803/* end confdefs.h.  */
16804$ac_includes_default
16805int
16806main ()
16807{
16808static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
16809test_array [0] = 0
16810
16811  ;
16812  return 0;
16813}
16814_ACEOF
16815rm -f conftest.$ac_objext
16816if { (ac_try="$ac_compile"
16817case "(($ac_try" in
16818  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16819  *) ac_try_echo=$ac_try;;
16820esac
16821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16822$as_echo "$ac_try_echo") >&5
16823  (eval "$ac_compile") 2>conftest.er1
16824  ac_status=$?
16825  grep -v '^ *+' conftest.er1 >conftest.err
16826  rm -f conftest.er1
16827  cat conftest.err >&5
16828  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829  (exit $ac_status); } && {
16830	 test -z "$ac_c_werror_flag" ||
16831	 test ! -s conftest.err
16832       } && test -s conftest.$ac_objext; then
16833  ac_lo=0 ac_mid=0
16834  while :; do
16835    cat >conftest.$ac_ext <<_ACEOF
16836/* confdefs.h.  */
16837_ACEOF
16838cat confdefs.h >>conftest.$ac_ext
16839cat >>conftest.$ac_ext <<_ACEOF
16840/* end confdefs.h.  */
16841$ac_includes_default
16842int
16843main ()
16844{
16845static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
16846test_array [0] = 0
16847
16848  ;
16849  return 0;
16850}
16851_ACEOF
16852rm -f conftest.$ac_objext
16853if { (ac_try="$ac_compile"
16854case "(($ac_try" in
16855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856  *) ac_try_echo=$ac_try;;
16857esac
16858eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16859$as_echo "$ac_try_echo") >&5
16860  (eval "$ac_compile") 2>conftest.er1
16861  ac_status=$?
16862  grep -v '^ *+' conftest.er1 >conftest.err
16863  rm -f conftest.er1
16864  cat conftest.err >&5
16865  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866  (exit $ac_status); } && {
16867	 test -z "$ac_c_werror_flag" ||
16868	 test ! -s conftest.err
16869       } && test -s conftest.$ac_objext; then
16870  ac_hi=$ac_mid; break
16871else
16872  $as_echo "$as_me: failed program was:" >&5
16873sed 's/^/| /' conftest.$ac_ext >&5
16874
16875	ac_lo=`expr $ac_mid + 1`
16876			if test $ac_lo -le $ac_mid; then
16877			  ac_lo= ac_hi=
16878			  break
16879			fi
16880			ac_mid=`expr 2 '*' $ac_mid + 1`
16881fi
16882
16883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884  done
16885else
16886  $as_echo "$as_me: failed program was:" >&5
16887sed 's/^/| /' conftest.$ac_ext >&5
16888
16889	cat >conftest.$ac_ext <<_ACEOF
16890/* confdefs.h.  */
16891_ACEOF
16892cat confdefs.h >>conftest.$ac_ext
16893cat >>conftest.$ac_ext <<_ACEOF
16894/* end confdefs.h.  */
16895$ac_includes_default
16896int
16897main ()
16898{
16899static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
16900test_array [0] = 0
16901
16902  ;
16903  return 0;
16904}
16905_ACEOF
16906rm -f conftest.$ac_objext
16907if { (ac_try="$ac_compile"
16908case "(($ac_try" in
16909  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16910  *) ac_try_echo=$ac_try;;
16911esac
16912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16913$as_echo "$ac_try_echo") >&5
16914  (eval "$ac_compile") 2>conftest.er1
16915  ac_status=$?
16916  grep -v '^ *+' conftest.er1 >conftest.err
16917  rm -f conftest.er1
16918  cat conftest.err >&5
16919  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920  (exit $ac_status); } && {
16921	 test -z "$ac_c_werror_flag" ||
16922	 test ! -s conftest.err
16923       } && test -s conftest.$ac_objext; then
16924  ac_hi=-1 ac_mid=-1
16925  while :; do
16926    cat >conftest.$ac_ext <<_ACEOF
16927/* confdefs.h.  */
16928_ACEOF
16929cat confdefs.h >>conftest.$ac_ext
16930cat >>conftest.$ac_ext <<_ACEOF
16931/* end confdefs.h.  */
16932$ac_includes_default
16933int
16934main ()
16935{
16936static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
16937test_array [0] = 0
16938
16939  ;
16940  return 0;
16941}
16942_ACEOF
16943rm -f conftest.$ac_objext
16944if { (ac_try="$ac_compile"
16945case "(($ac_try" in
16946  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947  *) ac_try_echo=$ac_try;;
16948esac
16949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16950$as_echo "$ac_try_echo") >&5
16951  (eval "$ac_compile") 2>conftest.er1
16952  ac_status=$?
16953  grep -v '^ *+' conftest.er1 >conftest.err
16954  rm -f conftest.er1
16955  cat conftest.err >&5
16956  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957  (exit $ac_status); } && {
16958	 test -z "$ac_c_werror_flag" ||
16959	 test ! -s conftest.err
16960       } && test -s conftest.$ac_objext; then
16961  ac_lo=$ac_mid; break
16962else
16963  $as_echo "$as_me: failed program was:" >&5
16964sed 's/^/| /' conftest.$ac_ext >&5
16965
16966	ac_hi=`expr '(' $ac_mid ')' - 1`
16967			if test $ac_mid -le $ac_hi; then
16968			  ac_lo= ac_hi=
16969			  break
16970			fi
16971			ac_mid=`expr 2 '*' $ac_mid`
16972fi
16973
16974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16975  done
16976else
16977  $as_echo "$as_me: failed program was:" >&5
16978sed 's/^/| /' conftest.$ac_ext >&5
16979
16980	ac_lo= ac_hi=
16981fi
16982
16983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16984fi
16985
16986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16987# Binary search between lo and hi bounds.
16988while test "x$ac_lo" != "x$ac_hi"; do
16989  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16990  cat >conftest.$ac_ext <<_ACEOF
16991/* confdefs.h.  */
16992_ACEOF
16993cat confdefs.h >>conftest.$ac_ext
16994cat >>conftest.$ac_ext <<_ACEOF
16995/* end confdefs.h.  */
16996$ac_includes_default
16997int
16998main ()
16999{
17000static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
17001test_array [0] = 0
17002
17003  ;
17004  return 0;
17005}
17006_ACEOF
17007rm -f conftest.$ac_objext
17008if { (ac_try="$ac_compile"
17009case "(($ac_try" in
17010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011  *) ac_try_echo=$ac_try;;
17012esac
17013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17014$as_echo "$ac_try_echo") >&5
17015  (eval "$ac_compile") 2>conftest.er1
17016  ac_status=$?
17017  grep -v '^ *+' conftest.er1 >conftest.err
17018  rm -f conftest.er1
17019  cat conftest.err >&5
17020  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021  (exit $ac_status); } && {
17022	 test -z "$ac_c_werror_flag" ||
17023	 test ! -s conftest.err
17024       } && test -s conftest.$ac_objext; then
17025  ac_hi=$ac_mid
17026else
17027  $as_echo "$as_me: failed program was:" >&5
17028sed 's/^/| /' conftest.$ac_ext >&5
17029
17030	ac_lo=`expr '(' $ac_mid ')' + 1`
17031fi
17032
17033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17034done
17035case $ac_lo in
17036?*) ac_cv_sizeof_long=$ac_lo;;
17037'') if test "$ac_cv_type_long" = yes; then
17038     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17039See \`config.log' for more details." >&5
17040$as_echo "$as_me: error: cannot compute sizeof (long)
17041See \`config.log' for more details." >&2;}
17042   { (exit 77); exit 77; }; }
17043   else
17044     ac_cv_sizeof_long=0
17045   fi ;;
17046esac
17047else
17048  cat >conftest.$ac_ext <<_ACEOF
17049/* confdefs.h.  */
17050_ACEOF
17051cat confdefs.h >>conftest.$ac_ext
17052cat >>conftest.$ac_ext <<_ACEOF
17053/* end confdefs.h.  */
17054$ac_includes_default
17055static long int longval () { return (long int) (sizeof (long)); }
17056static unsigned long int ulongval () { return (long int) (sizeof (long)); }
17057#include <stdio.h>
17058#include <stdlib.h>
17059int
17060main ()
17061{
17062
17063  FILE *f = fopen ("conftest.val", "w");
17064  if (! f)
17065    return 1;
17066  if (((long int) (sizeof (long))) < 0)
17067    {
17068      long int i = longval ();
17069      if (i != ((long int) (sizeof (long))))
17070	return 1;
17071      fprintf (f, "%ld", i);
17072    }
17073  else
17074    {
17075      unsigned long int i = ulongval ();
17076      if (i != ((long int) (sizeof (long))))
17077	return 1;
17078      fprintf (f, "%lu", i);
17079    }
17080  /* Do not output a trailing newline, as this causes \r\n confusion
17081     on some platforms.  */
17082  return ferror (f) || fclose (f) != 0;
17083
17084  ;
17085  return 0;
17086}
17087_ACEOF
17088rm -f conftest$ac_exeext
17089if { (ac_try="$ac_link"
17090case "(($ac_try" in
17091  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092  *) ac_try_echo=$ac_try;;
17093esac
17094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17095$as_echo "$ac_try_echo") >&5
17096  (eval "$ac_link") 2>&5
17097  ac_status=$?
17098  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17100  { (case "(($ac_try" in
17101  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102  *) ac_try_echo=$ac_try;;
17103esac
17104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17105$as_echo "$ac_try_echo") >&5
17106  (eval "$ac_try") 2>&5
17107  ac_status=$?
17108  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109  (exit $ac_status); }; }; then
17110  ac_cv_sizeof_long=`cat conftest.val`
17111else
17112  $as_echo "$as_me: program exited with status $ac_status" >&5
17113$as_echo "$as_me: failed program was:" >&5
17114sed 's/^/| /' conftest.$ac_ext >&5
17115
17116( exit $ac_status )
17117if test "$ac_cv_type_long" = yes; then
17118     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
17119See \`config.log' for more details." >&5
17120$as_echo "$as_me: error: cannot compute sizeof (long)
17121See \`config.log' for more details." >&2;}
17122   { (exit 77); exit 77; }; }
17123   else
17124     ac_cv_sizeof_long=0
17125   fi
17126fi
17127rm -rf conftest.dSYM
17128rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17129fi
17130rm -f conftest.val
17131fi
17132{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17133$as_echo "$ac_cv_sizeof_long" >&6; }
17134
17135
17136
17137cat >>confdefs.h <<_ACEOF
17138#define SIZEOF_LONG $ac_cv_sizeof_long
17139_ACEOF
17140
17141
17142    # The cast to long int works around a bug in the HP C Compiler
17143# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17144# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17145# This bug is HP SR number 8606223364.
17146{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
17147$as_echo_n "checking size of unsigned long... " >&6; }
17148if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
17149  $as_echo_n "(cached) " >&6
17150else
17151  if test "$cross_compiling" = yes; then
17152  # Depending upon the size, compute the lo and hi bounds.
17153cat >conftest.$ac_ext <<_ACEOF
17154/* confdefs.h.  */
17155_ACEOF
17156cat confdefs.h >>conftest.$ac_ext
17157cat >>conftest.$ac_ext <<_ACEOF
17158/* end confdefs.h.  */
17159$ac_includes_default
17160int
17161main ()
17162{
17163static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
17164test_array [0] = 0
17165
17166  ;
17167  return 0;
17168}
17169_ACEOF
17170rm -f conftest.$ac_objext
17171if { (ac_try="$ac_compile"
17172case "(($ac_try" in
17173  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174  *) ac_try_echo=$ac_try;;
17175esac
17176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17177$as_echo "$ac_try_echo") >&5
17178  (eval "$ac_compile") 2>conftest.er1
17179  ac_status=$?
17180  grep -v '^ *+' conftest.er1 >conftest.err
17181  rm -f conftest.er1
17182  cat conftest.err >&5
17183  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17184  (exit $ac_status); } && {
17185	 test -z "$ac_c_werror_flag" ||
17186	 test ! -s conftest.err
17187       } && test -s conftest.$ac_objext; then
17188  ac_lo=0 ac_mid=0
17189  while :; do
17190    cat >conftest.$ac_ext <<_ACEOF
17191/* confdefs.h.  */
17192_ACEOF
17193cat confdefs.h >>conftest.$ac_ext
17194cat >>conftest.$ac_ext <<_ACEOF
17195/* end confdefs.h.  */
17196$ac_includes_default
17197int
17198main ()
17199{
17200static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
17201test_array [0] = 0
17202
17203  ;
17204  return 0;
17205}
17206_ACEOF
17207rm -f conftest.$ac_objext
17208if { (ac_try="$ac_compile"
17209case "(($ac_try" in
17210  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211  *) ac_try_echo=$ac_try;;
17212esac
17213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17214$as_echo "$ac_try_echo") >&5
17215  (eval "$ac_compile") 2>conftest.er1
17216  ac_status=$?
17217  grep -v '^ *+' conftest.er1 >conftest.err
17218  rm -f conftest.er1
17219  cat conftest.err >&5
17220  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221  (exit $ac_status); } && {
17222	 test -z "$ac_c_werror_flag" ||
17223	 test ! -s conftest.err
17224       } && test -s conftest.$ac_objext; then
17225  ac_hi=$ac_mid; break
17226else
17227  $as_echo "$as_me: failed program was:" >&5
17228sed 's/^/| /' conftest.$ac_ext >&5
17229
17230	ac_lo=`expr $ac_mid + 1`
17231			if test $ac_lo -le $ac_mid; then
17232			  ac_lo= ac_hi=
17233			  break
17234			fi
17235			ac_mid=`expr 2 '*' $ac_mid + 1`
17236fi
17237
17238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17239  done
17240else
17241  $as_echo "$as_me: failed program was:" >&5
17242sed 's/^/| /' conftest.$ac_ext >&5
17243
17244	cat >conftest.$ac_ext <<_ACEOF
17245/* confdefs.h.  */
17246_ACEOF
17247cat confdefs.h >>conftest.$ac_ext
17248cat >>conftest.$ac_ext <<_ACEOF
17249/* end confdefs.h.  */
17250$ac_includes_default
17251int
17252main ()
17253{
17254static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
17255test_array [0] = 0
17256
17257  ;
17258  return 0;
17259}
17260_ACEOF
17261rm -f conftest.$ac_objext
17262if { (ac_try="$ac_compile"
17263case "(($ac_try" in
17264  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265  *) ac_try_echo=$ac_try;;
17266esac
17267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17268$as_echo "$ac_try_echo") >&5
17269  (eval "$ac_compile") 2>conftest.er1
17270  ac_status=$?
17271  grep -v '^ *+' conftest.er1 >conftest.err
17272  rm -f conftest.er1
17273  cat conftest.err >&5
17274  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275  (exit $ac_status); } && {
17276	 test -z "$ac_c_werror_flag" ||
17277	 test ! -s conftest.err
17278       } && test -s conftest.$ac_objext; then
17279  ac_hi=-1 ac_mid=-1
17280  while :; do
17281    cat >conftest.$ac_ext <<_ACEOF
17282/* confdefs.h.  */
17283_ACEOF
17284cat confdefs.h >>conftest.$ac_ext
17285cat >>conftest.$ac_ext <<_ACEOF
17286/* end confdefs.h.  */
17287$ac_includes_default
17288int
17289main ()
17290{
17291static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
17292test_array [0] = 0
17293
17294  ;
17295  return 0;
17296}
17297_ACEOF
17298rm -f conftest.$ac_objext
17299if { (ac_try="$ac_compile"
17300case "(($ac_try" in
17301  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17302  *) ac_try_echo=$ac_try;;
17303esac
17304eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17305$as_echo "$ac_try_echo") >&5
17306  (eval "$ac_compile") 2>conftest.er1
17307  ac_status=$?
17308  grep -v '^ *+' conftest.er1 >conftest.err
17309  rm -f conftest.er1
17310  cat conftest.err >&5
17311  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312  (exit $ac_status); } && {
17313	 test -z "$ac_c_werror_flag" ||
17314	 test ! -s conftest.err
17315       } && test -s conftest.$ac_objext; then
17316  ac_lo=$ac_mid; break
17317else
17318  $as_echo "$as_me: failed program was:" >&5
17319sed 's/^/| /' conftest.$ac_ext >&5
17320
17321	ac_hi=`expr '(' $ac_mid ')' - 1`
17322			if test $ac_mid -le $ac_hi; then
17323			  ac_lo= ac_hi=
17324			  break
17325			fi
17326			ac_mid=`expr 2 '*' $ac_mid`
17327fi
17328
17329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17330  done
17331else
17332  $as_echo "$as_me: failed program was:" >&5
17333sed 's/^/| /' conftest.$ac_ext >&5
17334
17335	ac_lo= ac_hi=
17336fi
17337
17338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17339fi
17340
17341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17342# Binary search between lo and hi bounds.
17343while test "x$ac_lo" != "x$ac_hi"; do
17344  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17345  cat >conftest.$ac_ext <<_ACEOF
17346/* confdefs.h.  */
17347_ACEOF
17348cat confdefs.h >>conftest.$ac_ext
17349cat >>conftest.$ac_ext <<_ACEOF
17350/* end confdefs.h.  */
17351$ac_includes_default
17352int
17353main ()
17354{
17355static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
17356test_array [0] = 0
17357
17358  ;
17359  return 0;
17360}
17361_ACEOF
17362rm -f conftest.$ac_objext
17363if { (ac_try="$ac_compile"
17364case "(($ac_try" in
17365  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366  *) ac_try_echo=$ac_try;;
17367esac
17368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17369$as_echo "$ac_try_echo") >&5
17370  (eval "$ac_compile") 2>conftest.er1
17371  ac_status=$?
17372  grep -v '^ *+' conftest.er1 >conftest.err
17373  rm -f conftest.er1
17374  cat conftest.err >&5
17375  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376  (exit $ac_status); } && {
17377	 test -z "$ac_c_werror_flag" ||
17378	 test ! -s conftest.err
17379       } && test -s conftest.$ac_objext; then
17380  ac_hi=$ac_mid
17381else
17382  $as_echo "$as_me: failed program was:" >&5
17383sed 's/^/| /' conftest.$ac_ext >&5
17384
17385	ac_lo=`expr '(' $ac_mid ')' + 1`
17386fi
17387
17388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17389done
17390case $ac_lo in
17391?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
17392'') if test "$ac_cv_type_unsigned_long" = yes; then
17393     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
17394See \`config.log' for more details." >&5
17395$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
17396See \`config.log' for more details." >&2;}
17397   { (exit 77); exit 77; }; }
17398   else
17399     ac_cv_sizeof_unsigned_long=0
17400   fi ;;
17401esac
17402else
17403  cat >conftest.$ac_ext <<_ACEOF
17404/* confdefs.h.  */
17405_ACEOF
17406cat confdefs.h >>conftest.$ac_ext
17407cat >>conftest.$ac_ext <<_ACEOF
17408/* end confdefs.h.  */
17409$ac_includes_default
17410static long int longval () { return (long int) (sizeof (unsigned long)); }
17411static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
17412#include <stdio.h>
17413#include <stdlib.h>
17414int
17415main ()
17416{
17417
17418  FILE *f = fopen ("conftest.val", "w");
17419  if (! f)
17420    return 1;
17421  if (((long int) (sizeof (unsigned long))) < 0)
17422    {
17423      long int i = longval ();
17424      if (i != ((long int) (sizeof (unsigned long))))
17425	return 1;
17426      fprintf (f, "%ld", i);
17427    }
17428  else
17429    {
17430      unsigned long int i = ulongval ();
17431      if (i != ((long int) (sizeof (unsigned long))))
17432	return 1;
17433      fprintf (f, "%lu", i);
17434    }
17435  /* Do not output a trailing newline, as this causes \r\n confusion
17436     on some platforms.  */
17437  return ferror (f) || fclose (f) != 0;
17438
17439  ;
17440  return 0;
17441}
17442_ACEOF
17443rm -f conftest$ac_exeext
17444if { (ac_try="$ac_link"
17445case "(($ac_try" in
17446  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447  *) ac_try_echo=$ac_try;;
17448esac
17449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17450$as_echo "$ac_try_echo") >&5
17451  (eval "$ac_link") 2>&5
17452  ac_status=$?
17453  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17455  { (case "(($ac_try" in
17456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17457  *) ac_try_echo=$ac_try;;
17458esac
17459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17460$as_echo "$ac_try_echo") >&5
17461  (eval "$ac_try") 2>&5
17462  ac_status=$?
17463  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464  (exit $ac_status); }; }; then
17465  ac_cv_sizeof_unsigned_long=`cat conftest.val`
17466else
17467  $as_echo "$as_me: program exited with status $ac_status" >&5
17468$as_echo "$as_me: failed program was:" >&5
17469sed 's/^/| /' conftest.$ac_ext >&5
17470
17471( exit $ac_status )
17472if test "$ac_cv_type_unsigned_long" = yes; then
17473     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
17474See \`config.log' for more details." >&5
17475$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
17476See \`config.log' for more details." >&2;}
17477   { (exit 77); exit 77; }; }
17478   else
17479     ac_cv_sizeof_unsigned_long=0
17480   fi
17481fi
17482rm -rf conftest.dSYM
17483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17484fi
17485rm -f conftest.val
17486fi
17487{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
17488$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
17489
17490
17491
17492cat >>confdefs.h <<_ACEOF
17493#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
17494_ACEOF
17495
17496
17497    # The cast to long int works around a bug in the HP C Compiler
17498# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17499# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17500# This bug is HP SR number 8606223364.
17501{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
17502$as_echo_n "checking size of long long... " >&6; }
17503if test "${ac_cv_sizeof_long_long+set}" = set; then
17504  $as_echo_n "(cached) " >&6
17505else
17506  if test "$cross_compiling" = yes; then
17507  # Depending upon the size, compute the lo and hi bounds.
17508cat >conftest.$ac_ext <<_ACEOF
17509/* confdefs.h.  */
17510_ACEOF
17511cat confdefs.h >>conftest.$ac_ext
17512cat >>conftest.$ac_ext <<_ACEOF
17513/* end confdefs.h.  */
17514$ac_includes_default
17515int
17516main ()
17517{
17518static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
17519test_array [0] = 0
17520
17521  ;
17522  return 0;
17523}
17524_ACEOF
17525rm -f conftest.$ac_objext
17526if { (ac_try="$ac_compile"
17527case "(($ac_try" in
17528  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529  *) ac_try_echo=$ac_try;;
17530esac
17531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17532$as_echo "$ac_try_echo") >&5
17533  (eval "$ac_compile") 2>conftest.er1
17534  ac_status=$?
17535  grep -v '^ *+' conftest.er1 >conftest.err
17536  rm -f conftest.er1
17537  cat conftest.err >&5
17538  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539  (exit $ac_status); } && {
17540	 test -z "$ac_c_werror_flag" ||
17541	 test ! -s conftest.err
17542       } && test -s conftest.$ac_objext; then
17543  ac_lo=0 ac_mid=0
17544  while :; do
17545    cat >conftest.$ac_ext <<_ACEOF
17546/* confdefs.h.  */
17547_ACEOF
17548cat confdefs.h >>conftest.$ac_ext
17549cat >>conftest.$ac_ext <<_ACEOF
17550/* end confdefs.h.  */
17551$ac_includes_default
17552int
17553main ()
17554{
17555static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
17556test_array [0] = 0
17557
17558  ;
17559  return 0;
17560}
17561_ACEOF
17562rm -f conftest.$ac_objext
17563if { (ac_try="$ac_compile"
17564case "(($ac_try" in
17565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566  *) ac_try_echo=$ac_try;;
17567esac
17568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17569$as_echo "$ac_try_echo") >&5
17570  (eval "$ac_compile") 2>conftest.er1
17571  ac_status=$?
17572  grep -v '^ *+' conftest.er1 >conftest.err
17573  rm -f conftest.er1
17574  cat conftest.err >&5
17575  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576  (exit $ac_status); } && {
17577	 test -z "$ac_c_werror_flag" ||
17578	 test ! -s conftest.err
17579       } && test -s conftest.$ac_objext; then
17580  ac_hi=$ac_mid; break
17581else
17582  $as_echo "$as_me: failed program was:" >&5
17583sed 's/^/| /' conftest.$ac_ext >&5
17584
17585	ac_lo=`expr $ac_mid + 1`
17586			if test $ac_lo -le $ac_mid; then
17587			  ac_lo= ac_hi=
17588			  break
17589			fi
17590			ac_mid=`expr 2 '*' $ac_mid + 1`
17591fi
17592
17593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17594  done
17595else
17596  $as_echo "$as_me: failed program was:" >&5
17597sed 's/^/| /' conftest.$ac_ext >&5
17598
17599	cat >conftest.$ac_ext <<_ACEOF
17600/* confdefs.h.  */
17601_ACEOF
17602cat confdefs.h >>conftest.$ac_ext
17603cat >>conftest.$ac_ext <<_ACEOF
17604/* end confdefs.h.  */
17605$ac_includes_default
17606int
17607main ()
17608{
17609static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
17610test_array [0] = 0
17611
17612  ;
17613  return 0;
17614}
17615_ACEOF
17616rm -f conftest.$ac_objext
17617if { (ac_try="$ac_compile"
17618case "(($ac_try" in
17619  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17620  *) ac_try_echo=$ac_try;;
17621esac
17622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17623$as_echo "$ac_try_echo") >&5
17624  (eval "$ac_compile") 2>conftest.er1
17625  ac_status=$?
17626  grep -v '^ *+' conftest.er1 >conftest.err
17627  rm -f conftest.er1
17628  cat conftest.err >&5
17629  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630  (exit $ac_status); } && {
17631	 test -z "$ac_c_werror_flag" ||
17632	 test ! -s conftest.err
17633       } && test -s conftest.$ac_objext; then
17634  ac_hi=-1 ac_mid=-1
17635  while :; do
17636    cat >conftest.$ac_ext <<_ACEOF
17637/* confdefs.h.  */
17638_ACEOF
17639cat confdefs.h >>conftest.$ac_ext
17640cat >>conftest.$ac_ext <<_ACEOF
17641/* end confdefs.h.  */
17642$ac_includes_default
17643int
17644main ()
17645{
17646static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
17647test_array [0] = 0
17648
17649  ;
17650  return 0;
17651}
17652_ACEOF
17653rm -f conftest.$ac_objext
17654if { (ac_try="$ac_compile"
17655case "(($ac_try" in
17656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657  *) ac_try_echo=$ac_try;;
17658esac
17659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17660$as_echo "$ac_try_echo") >&5
17661  (eval "$ac_compile") 2>conftest.er1
17662  ac_status=$?
17663  grep -v '^ *+' conftest.er1 >conftest.err
17664  rm -f conftest.er1
17665  cat conftest.err >&5
17666  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667  (exit $ac_status); } && {
17668	 test -z "$ac_c_werror_flag" ||
17669	 test ! -s conftest.err
17670       } && test -s conftest.$ac_objext; then
17671  ac_lo=$ac_mid; break
17672else
17673  $as_echo "$as_me: failed program was:" >&5
17674sed 's/^/| /' conftest.$ac_ext >&5
17675
17676	ac_hi=`expr '(' $ac_mid ')' - 1`
17677			if test $ac_mid -le $ac_hi; then
17678			  ac_lo= ac_hi=
17679			  break
17680			fi
17681			ac_mid=`expr 2 '*' $ac_mid`
17682fi
17683
17684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17685  done
17686else
17687  $as_echo "$as_me: failed program was:" >&5
17688sed 's/^/| /' conftest.$ac_ext >&5
17689
17690	ac_lo= ac_hi=
17691fi
17692
17693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694fi
17695
17696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17697# Binary search between lo and hi bounds.
17698while test "x$ac_lo" != "x$ac_hi"; do
17699  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17700  cat >conftest.$ac_ext <<_ACEOF
17701/* confdefs.h.  */
17702_ACEOF
17703cat confdefs.h >>conftest.$ac_ext
17704cat >>conftest.$ac_ext <<_ACEOF
17705/* end confdefs.h.  */
17706$ac_includes_default
17707int
17708main ()
17709{
17710static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
17711test_array [0] = 0
17712
17713  ;
17714  return 0;
17715}
17716_ACEOF
17717rm -f conftest.$ac_objext
17718if { (ac_try="$ac_compile"
17719case "(($ac_try" in
17720  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721  *) ac_try_echo=$ac_try;;
17722esac
17723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17724$as_echo "$ac_try_echo") >&5
17725  (eval "$ac_compile") 2>conftest.er1
17726  ac_status=$?
17727  grep -v '^ *+' conftest.er1 >conftest.err
17728  rm -f conftest.er1
17729  cat conftest.err >&5
17730  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731  (exit $ac_status); } && {
17732	 test -z "$ac_c_werror_flag" ||
17733	 test ! -s conftest.err
17734       } && test -s conftest.$ac_objext; then
17735  ac_hi=$ac_mid
17736else
17737  $as_echo "$as_me: failed program was:" >&5
17738sed 's/^/| /' conftest.$ac_ext >&5
17739
17740	ac_lo=`expr '(' $ac_mid ')' + 1`
17741fi
17742
17743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744done
17745case $ac_lo in
17746?*) ac_cv_sizeof_long_long=$ac_lo;;
17747'') if test "$ac_cv_type_long_long" = yes; then
17748     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
17749See \`config.log' for more details." >&5
17750$as_echo "$as_me: error: cannot compute sizeof (long long)
17751See \`config.log' for more details." >&2;}
17752   { (exit 77); exit 77; }; }
17753   else
17754     ac_cv_sizeof_long_long=0
17755   fi ;;
17756esac
17757else
17758  cat >conftest.$ac_ext <<_ACEOF
17759/* confdefs.h.  */
17760_ACEOF
17761cat confdefs.h >>conftest.$ac_ext
17762cat >>conftest.$ac_ext <<_ACEOF
17763/* end confdefs.h.  */
17764$ac_includes_default
17765static long int longval () { return (long int) (sizeof (long long)); }
17766static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
17767#include <stdio.h>
17768#include <stdlib.h>
17769int
17770main ()
17771{
17772
17773  FILE *f = fopen ("conftest.val", "w");
17774  if (! f)
17775    return 1;
17776  if (((long int) (sizeof (long long))) < 0)
17777    {
17778      long int i = longval ();
17779      if (i != ((long int) (sizeof (long long))))
17780	return 1;
17781      fprintf (f, "%ld", i);
17782    }
17783  else
17784    {
17785      unsigned long int i = ulongval ();
17786      if (i != ((long int) (sizeof (long long))))
17787	return 1;
17788      fprintf (f, "%lu", i);
17789    }
17790  /* Do not output a trailing newline, as this causes \r\n confusion
17791     on some platforms.  */
17792  return ferror (f) || fclose (f) != 0;
17793
17794  ;
17795  return 0;
17796}
17797_ACEOF
17798rm -f conftest$ac_exeext
17799if { (ac_try="$ac_link"
17800case "(($ac_try" in
17801  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802  *) ac_try_echo=$ac_try;;
17803esac
17804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17805$as_echo "$ac_try_echo") >&5
17806  (eval "$ac_link") 2>&5
17807  ac_status=$?
17808  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17810  { (case "(($ac_try" in
17811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812  *) ac_try_echo=$ac_try;;
17813esac
17814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17815$as_echo "$ac_try_echo") >&5
17816  (eval "$ac_try") 2>&5
17817  ac_status=$?
17818  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819  (exit $ac_status); }; }; then
17820  ac_cv_sizeof_long_long=`cat conftest.val`
17821else
17822  $as_echo "$as_me: program exited with status $ac_status" >&5
17823$as_echo "$as_me: failed program was:" >&5
17824sed 's/^/| /' conftest.$ac_ext >&5
17825
17826( exit $ac_status )
17827if test "$ac_cv_type_long_long" = yes; then
17828     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
17829See \`config.log' for more details." >&5
17830$as_echo "$as_me: error: cannot compute sizeof (long long)
17831See \`config.log' for more details." >&2;}
17832   { (exit 77); exit 77; }; }
17833   else
17834     ac_cv_sizeof_long_long=0
17835   fi
17836fi
17837rm -rf conftest.dSYM
17838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17839fi
17840rm -f conftest.val
17841fi
17842{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17843$as_echo "$ac_cv_sizeof_long_long" >&6; }
17844
17845
17846
17847cat >>confdefs.h <<_ACEOF
17848#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17849_ACEOF
17850
17851
17852    # The cast to long int works around a bug in the HP C Compiler
17853# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17854# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17855# This bug is HP SR number 8606223364.
17856{ $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5
17857$as_echo_n "checking size of unsigned long long... " >&6; }
17858if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
17859  $as_echo_n "(cached) " >&6
17860else
17861  if test "$cross_compiling" = yes; then
17862  # Depending upon the size, compute the lo and hi bounds.
17863cat >conftest.$ac_ext <<_ACEOF
17864/* confdefs.h.  */
17865_ACEOF
17866cat confdefs.h >>conftest.$ac_ext
17867cat >>conftest.$ac_ext <<_ACEOF
17868/* end confdefs.h.  */
17869$ac_includes_default
17870int
17871main ()
17872{
17873static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)];
17874test_array [0] = 0
17875
17876  ;
17877  return 0;
17878}
17879_ACEOF
17880rm -f conftest.$ac_objext
17881if { (ac_try="$ac_compile"
17882case "(($ac_try" in
17883  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884  *) ac_try_echo=$ac_try;;
17885esac
17886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17887$as_echo "$ac_try_echo") >&5
17888  (eval "$ac_compile") 2>conftest.er1
17889  ac_status=$?
17890  grep -v '^ *+' conftest.er1 >conftest.err
17891  rm -f conftest.er1
17892  cat conftest.err >&5
17893  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894  (exit $ac_status); } && {
17895	 test -z "$ac_c_werror_flag" ||
17896	 test ! -s conftest.err
17897       } && test -s conftest.$ac_objext; then
17898  ac_lo=0 ac_mid=0
17899  while :; do
17900    cat >conftest.$ac_ext <<_ACEOF
17901/* confdefs.h.  */
17902_ACEOF
17903cat confdefs.h >>conftest.$ac_ext
17904cat >>conftest.$ac_ext <<_ACEOF
17905/* end confdefs.h.  */
17906$ac_includes_default
17907int
17908main ()
17909{
17910static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
17911test_array [0] = 0
17912
17913  ;
17914  return 0;
17915}
17916_ACEOF
17917rm -f conftest.$ac_objext
17918if { (ac_try="$ac_compile"
17919case "(($ac_try" in
17920  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921  *) ac_try_echo=$ac_try;;
17922esac
17923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17924$as_echo "$ac_try_echo") >&5
17925  (eval "$ac_compile") 2>conftest.er1
17926  ac_status=$?
17927  grep -v '^ *+' conftest.er1 >conftest.err
17928  rm -f conftest.er1
17929  cat conftest.err >&5
17930  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931  (exit $ac_status); } && {
17932	 test -z "$ac_c_werror_flag" ||
17933	 test ! -s conftest.err
17934       } && test -s conftest.$ac_objext; then
17935  ac_hi=$ac_mid; break
17936else
17937  $as_echo "$as_me: failed program was:" >&5
17938sed 's/^/| /' conftest.$ac_ext >&5
17939
17940	ac_lo=`expr $ac_mid + 1`
17941			if test $ac_lo -le $ac_mid; then
17942			  ac_lo= ac_hi=
17943			  break
17944			fi
17945			ac_mid=`expr 2 '*' $ac_mid + 1`
17946fi
17947
17948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949  done
17950else
17951  $as_echo "$as_me: failed program was:" >&5
17952sed 's/^/| /' conftest.$ac_ext >&5
17953
17954	cat >conftest.$ac_ext <<_ACEOF
17955/* confdefs.h.  */
17956_ACEOF
17957cat confdefs.h >>conftest.$ac_ext
17958cat >>conftest.$ac_ext <<_ACEOF
17959/* end confdefs.h.  */
17960$ac_includes_default
17961int
17962main ()
17963{
17964static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)];
17965test_array [0] = 0
17966
17967  ;
17968  return 0;
17969}
17970_ACEOF
17971rm -f conftest.$ac_objext
17972if { (ac_try="$ac_compile"
17973case "(($ac_try" in
17974  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975  *) ac_try_echo=$ac_try;;
17976esac
17977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17978$as_echo "$ac_try_echo") >&5
17979  (eval "$ac_compile") 2>conftest.er1
17980  ac_status=$?
17981  grep -v '^ *+' conftest.er1 >conftest.err
17982  rm -f conftest.er1
17983  cat conftest.err >&5
17984  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985  (exit $ac_status); } && {
17986	 test -z "$ac_c_werror_flag" ||
17987	 test ! -s conftest.err
17988       } && test -s conftest.$ac_objext; then
17989  ac_hi=-1 ac_mid=-1
17990  while :; do
17991    cat >conftest.$ac_ext <<_ACEOF
17992/* confdefs.h.  */
17993_ACEOF
17994cat confdefs.h >>conftest.$ac_ext
17995cat >>conftest.$ac_ext <<_ACEOF
17996/* end confdefs.h.  */
17997$ac_includes_default
17998int
17999main ()
18000{
18001static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)];
18002test_array [0] = 0
18003
18004  ;
18005  return 0;
18006}
18007_ACEOF
18008rm -f conftest.$ac_objext
18009if { (ac_try="$ac_compile"
18010case "(($ac_try" in
18011  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012  *) ac_try_echo=$ac_try;;
18013esac
18014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18015$as_echo "$ac_try_echo") >&5
18016  (eval "$ac_compile") 2>conftest.er1
18017  ac_status=$?
18018  grep -v '^ *+' conftest.er1 >conftest.err
18019  rm -f conftest.er1
18020  cat conftest.err >&5
18021  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022  (exit $ac_status); } && {
18023	 test -z "$ac_c_werror_flag" ||
18024	 test ! -s conftest.err
18025       } && test -s conftest.$ac_objext; then
18026  ac_lo=$ac_mid; break
18027else
18028  $as_echo "$as_me: failed program was:" >&5
18029sed 's/^/| /' conftest.$ac_ext >&5
18030
18031	ac_hi=`expr '(' $ac_mid ')' - 1`
18032			if test $ac_mid -le $ac_hi; then
18033			  ac_lo= ac_hi=
18034			  break
18035			fi
18036			ac_mid=`expr 2 '*' $ac_mid`
18037fi
18038
18039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18040  done
18041else
18042  $as_echo "$as_me: failed program was:" >&5
18043sed 's/^/| /' conftest.$ac_ext >&5
18044
18045	ac_lo= ac_hi=
18046fi
18047
18048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18049fi
18050
18051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18052# Binary search between lo and hi bounds.
18053while test "x$ac_lo" != "x$ac_hi"; do
18054  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18055  cat >conftest.$ac_ext <<_ACEOF
18056/* confdefs.h.  */
18057_ACEOF
18058cat confdefs.h >>conftest.$ac_ext
18059cat >>conftest.$ac_ext <<_ACEOF
18060/* end confdefs.h.  */
18061$ac_includes_default
18062int
18063main ()
18064{
18065static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
18066test_array [0] = 0
18067
18068  ;
18069  return 0;
18070}
18071_ACEOF
18072rm -f conftest.$ac_objext
18073if { (ac_try="$ac_compile"
18074case "(($ac_try" in
18075  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076  *) ac_try_echo=$ac_try;;
18077esac
18078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18079$as_echo "$ac_try_echo") >&5
18080  (eval "$ac_compile") 2>conftest.er1
18081  ac_status=$?
18082  grep -v '^ *+' conftest.er1 >conftest.err
18083  rm -f conftest.er1
18084  cat conftest.err >&5
18085  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18086  (exit $ac_status); } && {
18087	 test -z "$ac_c_werror_flag" ||
18088	 test ! -s conftest.err
18089       } && test -s conftest.$ac_objext; then
18090  ac_hi=$ac_mid
18091else
18092  $as_echo "$as_me: failed program was:" >&5
18093sed 's/^/| /' conftest.$ac_ext >&5
18094
18095	ac_lo=`expr '(' $ac_mid ')' + 1`
18096fi
18097
18098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18099done
18100case $ac_lo in
18101?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
18102'') if test "$ac_cv_type_unsigned_long_long" = yes; then
18103     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
18104See \`config.log' for more details." >&5
18105$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
18106See \`config.log' for more details." >&2;}
18107   { (exit 77); exit 77; }; }
18108   else
18109     ac_cv_sizeof_unsigned_long_long=0
18110   fi ;;
18111esac
18112else
18113  cat >conftest.$ac_ext <<_ACEOF
18114/* confdefs.h.  */
18115_ACEOF
18116cat confdefs.h >>conftest.$ac_ext
18117cat >>conftest.$ac_ext <<_ACEOF
18118/* end confdefs.h.  */
18119$ac_includes_default
18120static long int longval () { return (long int) (sizeof (unsigned long long)); }
18121static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); }
18122#include <stdio.h>
18123#include <stdlib.h>
18124int
18125main ()
18126{
18127
18128  FILE *f = fopen ("conftest.val", "w");
18129  if (! f)
18130    return 1;
18131  if (((long int) (sizeof (unsigned long long))) < 0)
18132    {
18133      long int i = longval ();
18134      if (i != ((long int) (sizeof (unsigned long long))))
18135	return 1;
18136      fprintf (f, "%ld", i);
18137    }
18138  else
18139    {
18140      unsigned long int i = ulongval ();
18141      if (i != ((long int) (sizeof (unsigned long long))))
18142	return 1;
18143      fprintf (f, "%lu", i);
18144    }
18145  /* Do not output a trailing newline, as this causes \r\n confusion
18146     on some platforms.  */
18147  return ferror (f) || fclose (f) != 0;
18148
18149  ;
18150  return 0;
18151}
18152_ACEOF
18153rm -f conftest$ac_exeext
18154if { (ac_try="$ac_link"
18155case "(($ac_try" in
18156  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157  *) ac_try_echo=$ac_try;;
18158esac
18159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18160$as_echo "$ac_try_echo") >&5
18161  (eval "$ac_link") 2>&5
18162  ac_status=$?
18163  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18165  { (case "(($ac_try" in
18166  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167  *) ac_try_echo=$ac_try;;
18168esac
18169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18170$as_echo "$ac_try_echo") >&5
18171  (eval "$ac_try") 2>&5
18172  ac_status=$?
18173  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174  (exit $ac_status); }; }; then
18175  ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
18176else
18177  $as_echo "$as_me: program exited with status $ac_status" >&5
18178$as_echo "$as_me: failed program was:" >&5
18179sed 's/^/| /' conftest.$ac_ext >&5
18180
18181( exit $ac_status )
18182if test "$ac_cv_type_unsigned_long_long" = yes; then
18183     { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
18184See \`config.log' for more details." >&5
18185$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
18186See \`config.log' for more details." >&2;}
18187   { (exit 77); exit 77; }; }
18188   else
18189     ac_cv_sizeof_unsigned_long_long=0
18190   fi
18191fi
18192rm -rf conftest.dSYM
18193rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18194fi
18195rm -f conftest.val
18196fi
18197{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
18198$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
18199
18200
18201
18202cat >>confdefs.h <<_ACEOF
18203#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
18204_ACEOF
18205
18206
18207
18208
18209# Check whether --with-dce was given.
18210if test "${with_dce+set}" = set; then
18211  withval=$with_dce; ac_cv_with_dce=$withval
18212else
18213  ac_cv_with_dce=no
18214fi
18215
18216    { $as_echo "$as_me:$LINENO: checking whether to build DCE 1.1 backward compatibility API" >&5
18217$as_echo_n "checking whether to build DCE 1.1 backward compatibility API... " >&6; }
18218if test "${ac_cv_with_dce+set}" = set; then
18219  $as_echo_n "(cached) " >&6
18220else
18221  ac_cv_with_dce=no
18222fi
18223{ $as_echo "$as_me:$LINENO: result: $ac_cv_with_dce" >&5
18224$as_echo "$ac_cv_with_dce" >&6; }
18225    if test ".$ac_cv_with_dce" = ".yes"; then
18226
18227cat >>confdefs.h <<\_ACEOF
18228#define WITH_DCE 1
18229_ACEOF
18230
18231        WITH_DCE='yes'
18232        DCE_NAME='$(DCE_NAME)'
18233    else
18234        WITH_DCE='no'
18235        DCE_NAME=''
18236    fi
18237
18238
18239
18240
18241# Check whether --with-cxx was given.
18242if test "${with_cxx+set}" = set; then
18243  withval=$with_cxx; ac_cv_with_cxx=$withval
18244else
18245  ac_cv_with_cxx=no
18246fi
18247
18248    { $as_echo "$as_me:$LINENO: checking whether to build C++ bindings to C API" >&5
18249$as_echo_n "checking whether to build C++ bindings to C API... " >&6; }
18250if test "${ac_cv_with_cxx+set}" = set; then
18251  $as_echo_n "(cached) " >&6
18252else
18253  ac_cv_with_cxx=no
18254fi
18255{ $as_echo "$as_me:$LINENO: result: $ac_cv_with_cxx" >&5
18256$as_echo "$ac_cv_with_cxx" >&6; }
18257    if test ".$ac_cv_with_cxx" = ".yes"; then
18258
18259cat >>confdefs.h <<\_ACEOF
18260#define WITH_CXX 1
18261_ACEOF
18262
18263        WITH_CXX='yes'
18264        CXX_NAME='$(CXX_NAME)'
18265        ac_ext=cpp
18266ac_cpp='$CXXCPP $CPPFLAGS'
18267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18270if test -z "$CXX"; then
18271  if test -n "$CCC"; then
18272    CXX=$CCC
18273  else
18274    if test -n "$ac_tool_prefix"; then
18275  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18276  do
18277    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18278set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18279{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18280$as_echo_n "checking for $ac_word... " >&6; }
18281if test "${ac_cv_prog_CXX+set}" = set; then
18282  $as_echo_n "(cached) " >&6
18283else
18284  if test -n "$CXX"; then
18285  ac_cv_prog_CXX="$CXX" # Let the user override the test.
18286else
18287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18288for as_dir in $PATH
18289do
18290  IFS=$as_save_IFS
18291  test -z "$as_dir" && as_dir=.
18292  for ac_exec_ext in '' $ac_executable_extensions; do
18293  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18294    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18295    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18296    break 2
18297  fi
18298done
18299done
18300IFS=$as_save_IFS
18301
18302fi
18303fi
18304CXX=$ac_cv_prog_CXX
18305if test -n "$CXX"; then
18306  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
18307$as_echo "$CXX" >&6; }
18308else
18309  { $as_echo "$as_me:$LINENO: result: no" >&5
18310$as_echo "no" >&6; }
18311fi
18312
18313
18314    test -n "$CXX" && break
18315  done
18316fi
18317if test -z "$CXX"; then
18318  ac_ct_CXX=$CXX
18319  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18320do
18321  # Extract the first word of "$ac_prog", so it can be a program name with args.
18322set dummy $ac_prog; ac_word=$2
18323{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
18324$as_echo_n "checking for $ac_word... " >&6; }
18325if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
18326  $as_echo_n "(cached) " >&6
18327else
18328  if test -n "$ac_ct_CXX"; then
18329  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18330else
18331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18332for as_dir in $PATH
18333do
18334  IFS=$as_save_IFS
18335  test -z "$as_dir" && as_dir=.
18336  for ac_exec_ext in '' $ac_executable_extensions; do
18337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18338    ac_cv_prog_ac_ct_CXX="$ac_prog"
18339    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18340    break 2
18341  fi
18342done
18343done
18344IFS=$as_save_IFS
18345
18346fi
18347fi
18348ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
18349if test -n "$ac_ct_CXX"; then
18350  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
18351$as_echo "$ac_ct_CXX" >&6; }
18352else
18353  { $as_echo "$as_me:$LINENO: result: no" >&5
18354$as_echo "no" >&6; }
18355fi
18356
18357
18358  test -n "$ac_ct_CXX" && break
18359done
18360
18361  if test "x$ac_ct_CXX" = x; then
18362    CXX="g++"
18363  else
18364    case $cross_compiling:$ac_tool_warned in
18365yes:)
18366{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18367whose name does not start with the host triplet.  If you think this
18368configuration is useful to you, please write to autoconf@gnu.org." >&5
18369$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18370whose name does not start with the host triplet.  If you think this
18371configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18372ac_tool_warned=yes ;;
18373esac
18374    CXX=$ac_ct_CXX
18375  fi
18376fi
18377
18378  fi
18379fi
18380# Provide some information about the compiler.
18381$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
18382set X $ac_compile
18383ac_compiler=$2
18384{ (ac_try="$ac_compiler --version >&5"
18385case "(($ac_try" in
18386  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387  *) ac_try_echo=$ac_try;;
18388esac
18389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18390$as_echo "$ac_try_echo") >&5
18391  (eval "$ac_compiler --version >&5") 2>&5
18392  ac_status=$?
18393  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394  (exit $ac_status); }
18395{ (ac_try="$ac_compiler -v >&5"
18396case "(($ac_try" in
18397  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18398  *) ac_try_echo=$ac_try;;
18399esac
18400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18401$as_echo "$ac_try_echo") >&5
18402  (eval "$ac_compiler -v >&5") 2>&5
18403  ac_status=$?
18404  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405  (exit $ac_status); }
18406{ (ac_try="$ac_compiler -V >&5"
18407case "(($ac_try" in
18408  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409  *) ac_try_echo=$ac_try;;
18410esac
18411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18412$as_echo "$ac_try_echo") >&5
18413  (eval "$ac_compiler -V >&5") 2>&5
18414  ac_status=$?
18415  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416  (exit $ac_status); }
18417
18418{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
18419$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
18420if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
18421  $as_echo_n "(cached) " >&6
18422else
18423  cat >conftest.$ac_ext <<_ACEOF
18424/* confdefs.h.  */
18425_ACEOF
18426cat confdefs.h >>conftest.$ac_ext
18427cat >>conftest.$ac_ext <<_ACEOF
18428/* end confdefs.h.  */
18429
18430int
18431main ()
18432{
18433#ifndef __GNUC__
18434       choke me
18435#endif
18436
18437  ;
18438  return 0;
18439}
18440_ACEOF
18441rm -f conftest.$ac_objext
18442if { (ac_try="$ac_compile"
18443case "(($ac_try" in
18444  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18445  *) ac_try_echo=$ac_try;;
18446esac
18447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18448$as_echo "$ac_try_echo") >&5
18449  (eval "$ac_compile") 2>conftest.er1
18450  ac_status=$?
18451  grep -v '^ *+' conftest.er1 >conftest.err
18452  rm -f conftest.er1
18453  cat conftest.err >&5
18454  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455  (exit $ac_status); } && {
18456	 test -z "$ac_cxx_werror_flag" ||
18457	 test ! -s conftest.err
18458       } && test -s conftest.$ac_objext; then
18459  ac_compiler_gnu=yes
18460else
18461  $as_echo "$as_me: failed program was:" >&5
18462sed 's/^/| /' conftest.$ac_ext >&5
18463
18464	ac_compiler_gnu=no
18465fi
18466
18467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18468ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
18469
18470fi
18471{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
18472$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
18473if test $ac_compiler_gnu = yes; then
18474  GXX=yes
18475else
18476  GXX=
18477fi
18478ac_test_CXXFLAGS=${CXXFLAGS+set}
18479ac_save_CXXFLAGS=$CXXFLAGS
18480{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
18481$as_echo_n "checking whether $CXX accepts -g... " >&6; }
18482if test "${ac_cv_prog_cxx_g+set}" = set; then
18483  $as_echo_n "(cached) " >&6
18484else
18485  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
18486   ac_cxx_werror_flag=yes
18487   ac_cv_prog_cxx_g=no
18488   CXXFLAGS="-g"
18489   cat >conftest.$ac_ext <<_ACEOF
18490/* confdefs.h.  */
18491_ACEOF
18492cat confdefs.h >>conftest.$ac_ext
18493cat >>conftest.$ac_ext <<_ACEOF
18494/* end confdefs.h.  */
18495
18496int
18497main ()
18498{
18499
18500  ;
18501  return 0;
18502}
18503_ACEOF
18504rm -f conftest.$ac_objext
18505if { (ac_try="$ac_compile"
18506case "(($ac_try" in
18507  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508  *) ac_try_echo=$ac_try;;
18509esac
18510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18511$as_echo "$ac_try_echo") >&5
18512  (eval "$ac_compile") 2>conftest.er1
18513  ac_status=$?
18514  grep -v '^ *+' conftest.er1 >conftest.err
18515  rm -f conftest.er1
18516  cat conftest.err >&5
18517  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518  (exit $ac_status); } && {
18519	 test -z "$ac_cxx_werror_flag" ||
18520	 test ! -s conftest.err
18521       } && test -s conftest.$ac_objext; then
18522  ac_cv_prog_cxx_g=yes
18523else
18524  $as_echo "$as_me: failed program was:" >&5
18525sed 's/^/| /' conftest.$ac_ext >&5
18526
18527	CXXFLAGS=""
18528      cat >conftest.$ac_ext <<_ACEOF
18529/* confdefs.h.  */
18530_ACEOF
18531cat confdefs.h >>conftest.$ac_ext
18532cat >>conftest.$ac_ext <<_ACEOF
18533/* end confdefs.h.  */
18534
18535int
18536main ()
18537{
18538
18539  ;
18540  return 0;
18541}
18542_ACEOF
18543rm -f conftest.$ac_objext
18544if { (ac_try="$ac_compile"
18545case "(($ac_try" in
18546  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547  *) ac_try_echo=$ac_try;;
18548esac
18549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18550$as_echo "$ac_try_echo") >&5
18551  (eval "$ac_compile") 2>conftest.er1
18552  ac_status=$?
18553  grep -v '^ *+' conftest.er1 >conftest.err
18554  rm -f conftest.er1
18555  cat conftest.err >&5
18556  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557  (exit $ac_status); } && {
18558	 test -z "$ac_cxx_werror_flag" ||
18559	 test ! -s conftest.err
18560       } && test -s conftest.$ac_objext; then
18561  :
18562else
18563  $as_echo "$as_me: failed program was:" >&5
18564sed 's/^/| /' conftest.$ac_ext >&5
18565
18566	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18567	 CXXFLAGS="-g"
18568	 cat >conftest.$ac_ext <<_ACEOF
18569/* confdefs.h.  */
18570_ACEOF
18571cat confdefs.h >>conftest.$ac_ext
18572cat >>conftest.$ac_ext <<_ACEOF
18573/* end confdefs.h.  */
18574
18575int
18576main ()
18577{
18578
18579  ;
18580  return 0;
18581}
18582_ACEOF
18583rm -f conftest.$ac_objext
18584if { (ac_try="$ac_compile"
18585case "(($ac_try" in
18586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18587  *) ac_try_echo=$ac_try;;
18588esac
18589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18590$as_echo "$ac_try_echo") >&5
18591  (eval "$ac_compile") 2>conftest.er1
18592  ac_status=$?
18593  grep -v '^ *+' conftest.er1 >conftest.err
18594  rm -f conftest.er1
18595  cat conftest.err >&5
18596  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597  (exit $ac_status); } && {
18598	 test -z "$ac_cxx_werror_flag" ||
18599	 test ! -s conftest.err
18600       } && test -s conftest.$ac_objext; then
18601  ac_cv_prog_cxx_g=yes
18602else
18603  $as_echo "$as_me: failed program was:" >&5
18604sed 's/^/| /' conftest.$ac_ext >&5
18605
18606
18607fi
18608
18609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18610fi
18611
18612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613fi
18614
18615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18616   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18617fi
18618{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
18619$as_echo "$ac_cv_prog_cxx_g" >&6; }
18620if test "$ac_test_CXXFLAGS" = set; then
18621  CXXFLAGS=$ac_save_CXXFLAGS
18622elif test $ac_cv_prog_cxx_g = yes; then
18623  if test "$GXX" = yes; then
18624    CXXFLAGS="-g -O2"
18625  else
18626    CXXFLAGS="-g"
18627  fi
18628else
18629  if test "$GXX" = yes; then
18630    CXXFLAGS="-O2"
18631  else
18632    CXXFLAGS=
18633  fi
18634fi
18635ac_ext=c
18636ac_cpp='$CPP $CPPFLAGS'
18637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18639ac_compiler_gnu=$ac_cv_c_compiler_gnu
18640
18641ac_ext=cpp
18642ac_cpp='$CXXCPP $CPPFLAGS'
18643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18646
18647archive_cmds_need_lc_CXX=no
18648allow_undefined_flag_CXX=
18649always_export_symbols_CXX=no
18650archive_expsym_cmds_CXX=
18651compiler_needs_object_CXX=no
18652export_dynamic_flag_spec_CXX=
18653hardcode_direct_CXX=no
18654hardcode_direct_absolute_CXX=no
18655hardcode_libdir_flag_spec_CXX=
18656hardcode_libdir_flag_spec_ld_CXX=
18657hardcode_libdir_separator_CXX=
18658hardcode_minus_L_CXX=no
18659hardcode_shlibpath_var_CXX=unsupported
18660hardcode_automatic_CXX=no
18661inherit_rpath_CXX=no
18662module_cmds_CXX=
18663module_expsym_cmds_CXX=
18664link_all_deplibs_CXX=unknown
18665old_archive_cmds_CXX=$old_archive_cmds
18666no_undefined_flag_CXX=
18667whole_archive_flag_spec_CXX=
18668enable_shared_with_static_runtimes_CXX=no
18669
18670# Source file extension for C++ test sources.
18671ac_ext=cpp
18672
18673# Object file extension for compiled C++ test sources.
18674objext=o
18675objext_CXX=$objext
18676
18677# No sense in running all these tests if we already determined that
18678# the CXX compiler isn't working.  Some variables (like enable_shared)
18679# are currently assumed to apply to all compilers on this platform,
18680# and will be corrupted by setting them based on a non-working compiler.
18681if test "$_lt_caught_CXX_error" != yes; then
18682  # Code to be used in simple compile tests
18683  lt_simple_compile_test_code="int some_variable = 0;"
18684
18685  # Code to be used in simple link tests
18686  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18687
18688  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18689
18690
18691
18692
18693
18694
18695# If no C compiler was specified, use CC.
18696LTCC=${LTCC-"$CC"}
18697
18698# If no C compiler flags were specified, use CFLAGS.
18699LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18700
18701# Allow CC to be a program name with arguments.
18702compiler=$CC
18703
18704
18705  # save warnings/boilerplate of simple test code
18706  ac_outfile=conftest.$ac_objext
18707echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18708eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18709_lt_compiler_boilerplate=`cat conftest.err`
18710$RM conftest*
18711
18712  ac_outfile=conftest.$ac_objext
18713echo "$lt_simple_link_test_code" >conftest.$ac_ext
18714eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18715_lt_linker_boilerplate=`cat conftest.err`
18716$RM -r conftest*
18717
18718
18719  # Allow CC to be a program name with arguments.
18720  lt_save_CC=$CC
18721  lt_save_LD=$LD
18722  lt_save_GCC=$GCC
18723  GCC=$GXX
18724  lt_save_with_gnu_ld=$with_gnu_ld
18725  lt_save_path_LD=$lt_cv_path_LD
18726  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18727    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18728  else
18729    $as_unset lt_cv_prog_gnu_ld
18730  fi
18731  if test -n "${lt_cv_path_LDCXX+set}"; then
18732    lt_cv_path_LD=$lt_cv_path_LDCXX
18733  else
18734    $as_unset lt_cv_path_LD
18735  fi
18736  test -z "${LDCXX+set}" || LD=$LDCXX
18737  CC=${CXX-"c++"}
18738  compiler=$CC
18739  compiler_CXX=$CC
18740  for cc_temp in $compiler""; do
18741  case $cc_temp in
18742    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18743    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18744    \-*) ;;
18745    *) break;;
18746  esac
18747done
18748cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18749
18750
18751  if test -n "$compiler"; then
18752    # We don't want -fno-exception when compiling C++ code, so set the
18753    # no_builtin_flag separately
18754    if test "$GXX" = yes; then
18755      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18756    else
18757      lt_prog_compiler_no_builtin_flag_CXX=
18758    fi
18759
18760    if test "$GXX" = yes; then
18761      # Set up default GNU C++ configuration
18762
18763
18764
18765# Check whether --with-gnu-ld was given.
18766if test "${with_gnu_ld+set}" = set; then
18767  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18768else
18769  with_gnu_ld=no
18770fi
18771
18772ac_prog=ld
18773if test "$GCC" = yes; then
18774  # Check if gcc -print-prog-name=ld gives a path.
18775  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
18776$as_echo_n "checking for ld used by $CC... " >&6; }
18777  case $host in
18778  *-*-mingw*)
18779    # gcc leaves a trailing carriage return which upsets mingw
18780    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18781  *)
18782    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18783  esac
18784  case $ac_prog in
18785    # Accept absolute paths.
18786    [\\/]* | ?:[\\/]*)
18787      re_direlt='/[^/][^/]*/\.\./'
18788      # Canonicalize the pathname of ld
18789      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18790      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18791	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18792      done
18793      test -z "$LD" && LD="$ac_prog"
18794      ;;
18795  "")
18796    # If it fails, then pretend we aren't using GCC.
18797    ac_prog=ld
18798    ;;
18799  *)
18800    # If it is relative, then search for the first ld in PATH.
18801    with_gnu_ld=unknown
18802    ;;
18803  esac
18804elif test "$with_gnu_ld" = yes; then
18805  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
18806$as_echo_n "checking for GNU ld... " >&6; }
18807else
18808  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
18809$as_echo_n "checking for non-GNU ld... " >&6; }
18810fi
18811if test "${lt_cv_path_LD+set}" = set; then
18812  $as_echo_n "(cached) " >&6
18813else
18814  if test -z "$LD"; then
18815  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18816  for ac_dir in $PATH; do
18817    IFS="$lt_save_ifs"
18818    test -z "$ac_dir" && ac_dir=.
18819    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18820      lt_cv_path_LD="$ac_dir/$ac_prog"
18821      # Check to see if the program is GNU ld.  I'd rather use --version,
18822      # but apparently some variants of GNU ld only accept -v.
18823      # Break only if it was the GNU/non-GNU ld that we prefer.
18824      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18825      *GNU* | *'with BFD'*)
18826	test "$with_gnu_ld" != no && break
18827	;;
18828      *)
18829	test "$with_gnu_ld" != yes && break
18830	;;
18831      esac
18832    fi
18833  done
18834  IFS="$lt_save_ifs"
18835else
18836  lt_cv_path_LD="$LD" # Let the user override the test with a path.
18837fi
18838fi
18839
18840LD="$lt_cv_path_LD"
18841if test -n "$LD"; then
18842  { $as_echo "$as_me:$LINENO: result: $LD" >&5
18843$as_echo "$LD" >&6; }
18844else
18845  { $as_echo "$as_me:$LINENO: result: no" >&5
18846$as_echo "no" >&6; }
18847fi
18848test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
18849$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
18850   { (exit 1); exit 1; }; }
18851{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
18852$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18853if test "${lt_cv_prog_gnu_ld+set}" = set; then
18854  $as_echo_n "(cached) " >&6
18855else
18856  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18857case `$LD -v 2>&1 </dev/null` in
18858*GNU* | *'with BFD'*)
18859  lt_cv_prog_gnu_ld=yes
18860  ;;
18861*)
18862  lt_cv_prog_gnu_ld=no
18863  ;;
18864esac
18865fi
18866{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
18867$as_echo "$lt_cv_prog_gnu_ld" >&6; }
18868with_gnu_ld=$lt_cv_prog_gnu_ld
18869
18870
18871
18872
18873
18874
18875
18876      # Check if GNU C++ uses GNU ld as the underlying linker, since the
18877      # archiving commands below assume that GNU ld is being used.
18878      if test "$with_gnu_ld" = yes; then
18879        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18880        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18881
18882        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18883        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18884
18885        # If archive_cmds runs LD, not CC, wlarc should be empty
18886        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18887        #     investigate it a little bit more. (MM)
18888        wlarc='${wl}'
18889
18890        # ancient GNU ld didn't support --whole-archive et. al.
18891        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18892	  $GREP 'no-whole-archive' > /dev/null; then
18893          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18894        else
18895          whole_archive_flag_spec_CXX=
18896        fi
18897      else
18898        with_gnu_ld=no
18899        wlarc=
18900
18901        # A generic and very simple default shared library creation
18902        # command for GNU C++ for the case where it uses the native
18903        # linker, instead of GNU ld.  If possible, this setting should
18904        # overridden to take advantage of the native linker features on
18905        # the platform it is being used on.
18906        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18907      fi
18908
18909      # Commands to make compiler produce verbose output that lists
18910      # what "hidden" libraries, object files and flags are used when
18911      # linking a shared library.
18912      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18913
18914    else
18915      GXX=no
18916      with_gnu_ld=no
18917      wlarc=
18918    fi
18919
18920    # PORTME: fill in a description of your system's C++ link characteristics
18921    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18922$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18923    ld_shlibs_CXX=yes
18924    case $host_os in
18925      aix3*)
18926        # FIXME: insert proper C++ library support
18927        ld_shlibs_CXX=no
18928        ;;
18929      aix[4-9]*)
18930        if test "$host_cpu" = ia64; then
18931          # On IA64, the linker does run time linking by default, so we don't
18932          # have to do anything special.
18933          aix_use_runtimelinking=no
18934          exp_sym_flag='-Bexport'
18935          no_entry_flag=""
18936        else
18937          aix_use_runtimelinking=no
18938
18939          # Test if we are trying to use run time linking or normal
18940          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18941          # need to do runtime linking.
18942          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18943	    for ld_flag in $LDFLAGS; do
18944	      case $ld_flag in
18945	      *-brtl*)
18946	        aix_use_runtimelinking=yes
18947	        break
18948	        ;;
18949	      esac
18950	    done
18951	    ;;
18952          esac
18953
18954          exp_sym_flag='-bexport'
18955          no_entry_flag='-bnoentry'
18956        fi
18957
18958        # When large executables or shared objects are built, AIX ld can
18959        # have problems creating the table of contents.  If linking a library
18960        # or program results in "error TOC overflow" add -mminimal-toc to
18961        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18962        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18963
18964        archive_cmds_CXX=''
18965        hardcode_direct_CXX=yes
18966        hardcode_direct_absolute_CXX=yes
18967        hardcode_libdir_separator_CXX=':'
18968        link_all_deplibs_CXX=yes
18969        file_list_spec_CXX='${wl}-f,'
18970
18971        if test "$GXX" = yes; then
18972          case $host_os in aix4.[012]|aix4.[012].*)
18973          # We only want to do this on AIX 4.2 and lower, the check
18974          # below for broken collect2 doesn't work under 4.3+
18975	  collect2name=`${CC} -print-prog-name=collect2`
18976	  if test -f "$collect2name" &&
18977	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18978	  then
18979	    # We have reworked collect2
18980	    :
18981	  else
18982	    # We have old collect2
18983	    hardcode_direct_CXX=unsupported
18984	    # It fails to find uninstalled libraries when the uninstalled
18985	    # path is not listed in the libpath.  Setting hardcode_minus_L
18986	    # to unsupported forces relinking
18987	    hardcode_minus_L_CXX=yes
18988	    hardcode_libdir_flag_spec_CXX='-L$libdir'
18989	    hardcode_libdir_separator_CXX=
18990	  fi
18991          esac
18992          shared_flag='-shared'
18993	  if test "$aix_use_runtimelinking" = yes; then
18994	    shared_flag="$shared_flag "'${wl}-G'
18995	  fi
18996        else
18997          # not using gcc
18998          if test "$host_cpu" = ia64; then
18999	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19000	  # chokes on -Wl,-G. The following line is correct:
19001	  shared_flag='-G'
19002          else
19003	    if test "$aix_use_runtimelinking" = yes; then
19004	      shared_flag='${wl}-G'
19005	    else
19006	      shared_flag='${wl}-bM:SRE'
19007	    fi
19008          fi
19009        fi
19010
19011        # It seems that -bexpall does not export symbols beginning with
19012        # underscore (_), so it is better to generate a list of symbols to
19013	# export.
19014        always_export_symbols_CXX=yes
19015        if test "$aix_use_runtimelinking" = yes; then
19016          # Warning - without using the other runtime loading flags (-brtl),
19017          # -berok will link without error, but may produce a broken library.
19018          allow_undefined_flag_CXX='-berok'
19019          # Determine the default libpath from the value encoded in an empty
19020          # executable.
19021          cat >conftest.$ac_ext <<_ACEOF
19022/* confdefs.h.  */
19023_ACEOF
19024cat confdefs.h >>conftest.$ac_ext
19025cat >>conftest.$ac_ext <<_ACEOF
19026/* end confdefs.h.  */
19027
19028int
19029main ()
19030{
19031
19032  ;
19033  return 0;
19034}
19035_ACEOF
19036rm -f conftest.$ac_objext conftest$ac_exeext
19037if { (ac_try="$ac_link"
19038case "(($ac_try" in
19039  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040  *) ac_try_echo=$ac_try;;
19041esac
19042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19043$as_echo "$ac_try_echo") >&5
19044  (eval "$ac_link") 2>conftest.er1
19045  ac_status=$?
19046  grep -v '^ *+' conftest.er1 >conftest.err
19047  rm -f conftest.er1
19048  cat conftest.err >&5
19049  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050  (exit $ac_status); } && {
19051	 test -z "$ac_cxx_werror_flag" ||
19052	 test ! -s conftest.err
19053       } && test -s conftest$ac_exeext && {
19054	 test "$cross_compiling" = yes ||
19055	 $as_test_x conftest$ac_exeext
19056       }; then
19057
19058lt_aix_libpath_sed='
19059    /Import File Strings/,/^$/ {
19060	/^0/ {
19061	    s/^0  *\(.*\)$/\1/
19062	    p
19063	}
19064    }'
19065aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19066# Check for a 64-bit object if we didn't find anything.
19067if test -z "$aix_libpath"; then
19068  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19069fi
19070else
19071  $as_echo "$as_me: failed program was:" >&5
19072sed 's/^/| /' conftest.$ac_ext >&5
19073
19074
19075fi
19076
19077rm -rf conftest.dSYM
19078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19079      conftest$ac_exeext conftest.$ac_ext
19080if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19081
19082          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19083
19084          archive_expsym_cmds_CXX='$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"
19085        else
19086          if test "$host_cpu" = ia64; then
19087	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
19088	    allow_undefined_flag_CXX="-z nodefs"
19089	    archive_expsym_cmds_CXX="\$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"
19090          else
19091	    # Determine the default libpath from the value encoded in an
19092	    # empty executable.
19093	    cat >conftest.$ac_ext <<_ACEOF
19094/* confdefs.h.  */
19095_ACEOF
19096cat confdefs.h >>conftest.$ac_ext
19097cat >>conftest.$ac_ext <<_ACEOF
19098/* end confdefs.h.  */
19099
19100int
19101main ()
19102{
19103
19104  ;
19105  return 0;
19106}
19107_ACEOF
19108rm -f conftest.$ac_objext conftest$ac_exeext
19109if { (ac_try="$ac_link"
19110case "(($ac_try" in
19111  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112  *) ac_try_echo=$ac_try;;
19113esac
19114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19115$as_echo "$ac_try_echo") >&5
19116  (eval "$ac_link") 2>conftest.er1
19117  ac_status=$?
19118  grep -v '^ *+' conftest.er1 >conftest.err
19119  rm -f conftest.er1
19120  cat conftest.err >&5
19121  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122  (exit $ac_status); } && {
19123	 test -z "$ac_cxx_werror_flag" ||
19124	 test ! -s conftest.err
19125       } && test -s conftest$ac_exeext && {
19126	 test "$cross_compiling" = yes ||
19127	 $as_test_x conftest$ac_exeext
19128       }; then
19129
19130lt_aix_libpath_sed='
19131    /Import File Strings/,/^$/ {
19132	/^0/ {
19133	    s/^0  *\(.*\)$/\1/
19134	    p
19135	}
19136    }'
19137aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19138# Check for a 64-bit object if we didn't find anything.
19139if test -z "$aix_libpath"; then
19140  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19141fi
19142else
19143  $as_echo "$as_me: failed program was:" >&5
19144sed 's/^/| /' conftest.$ac_ext >&5
19145
19146
19147fi
19148
19149rm -rf conftest.dSYM
19150rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19151      conftest$ac_exeext conftest.$ac_ext
19152if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19153
19154	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
19155	    # Warning - without using the other run time loading flags,
19156	    # -berok will link without error, but may produce a broken library.
19157	    no_undefined_flag_CXX=' ${wl}-bernotok'
19158	    allow_undefined_flag_CXX=' ${wl}-berok'
19159	    # Exported symbols can be pulled into shared objects from archives
19160	    whole_archive_flag_spec_CXX='$convenience'
19161	    archive_cmds_need_lc_CXX=yes
19162	    # This is similar to how AIX traditionally builds its shared
19163	    # libraries.
19164	    archive_expsym_cmds_CXX="\$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'
19165          fi
19166        fi
19167        ;;
19168
19169      beos*)
19170	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19171	  allow_undefined_flag_CXX=unsupported
19172	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19173	  # support --undefined.  This deserves some investigation.  FIXME
19174	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19175	else
19176	  ld_shlibs_CXX=no
19177	fi
19178	;;
19179
19180      chorus*)
19181        case $cc_basename in
19182          *)
19183	  # FIXME: insert proper C++ library support
19184	  ld_shlibs_CXX=no
19185	  ;;
19186        esac
19187        ;;
19188
19189      cygwin* | mingw* | pw32*)
19190        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19191        # as there is no search path for DLLs.
19192        hardcode_libdir_flag_spec_CXX='-L$libdir'
19193        allow_undefined_flag_CXX=unsupported
19194        always_export_symbols_CXX=no
19195        enable_shared_with_static_runtimes_CXX=yes
19196
19197        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
19198          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19199          # If the export-symbols file already is a .def file (1st line
19200          # is EXPORTS), use it as is; otherwise, prepend...
19201          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19202	    cp $export_symbols $output_objdir/$soname.def;
19203          else
19204	    echo EXPORTS > $output_objdir/$soname.def;
19205	    cat $export_symbols >> $output_objdir/$soname.def;
19206          fi~
19207          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19208        else
19209          ld_shlibs_CXX=no
19210        fi
19211        ;;
19212      darwin* | rhapsody*)
19213
19214
19215  archive_cmds_need_lc_CXX=no
19216  hardcode_direct_CXX=no
19217  hardcode_automatic_CXX=yes
19218  hardcode_shlibpath_var_CXX=unsupported
19219  whole_archive_flag_spec_CXX=''
19220  link_all_deplibs_CXX=yes
19221  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
19222  if test "$GCC" = "yes"; then
19223    output_verbose_link_cmd=echo
19224    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
19225    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
19226    archive_expsym_cmds_CXX="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}"
19227    module_expsym_cmds_CXX="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}"
19228       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
19229      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
19230      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
19231    fi
19232
19233  else
19234  ld_shlibs_CXX=no
19235  fi
19236
19237	;;
19238
19239      dgux*)
19240        case $cc_basename in
19241          ec++*)
19242	    # FIXME: insert proper C++ library support
19243	    ld_shlibs_CXX=no
19244	    ;;
19245          ghcx*)
19246	    # Green Hills C++ Compiler
19247	    # FIXME: insert proper C++ library support
19248	    ld_shlibs_CXX=no
19249	    ;;
19250          *)
19251	    # FIXME: insert proper C++ library support
19252	    ld_shlibs_CXX=no
19253	    ;;
19254        esac
19255        ;;
19256
19257      freebsd[12]*)
19258        # C++ shared libraries reported to be fairly broken before
19259	# switch to ELF
19260        ld_shlibs_CXX=no
19261        ;;
19262
19263      freebsd-elf*)
19264        archive_cmds_need_lc_CXX=no
19265        ;;
19266
19267      freebsd* | dragonfly*)
19268        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19269        # conventions
19270        ld_shlibs_CXX=yes
19271        ;;
19272
19273      gnu*)
19274        ;;
19275
19276      hpux9*)
19277        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19278        hardcode_libdir_separator_CXX=:
19279        export_dynamic_flag_spec_CXX='${wl}-E'
19280        hardcode_direct_CXX=yes
19281        hardcode_minus_L_CXX=yes # Not in the search PATH,
19282				             # but as the default
19283				             # location of the library.
19284
19285        case $cc_basename in
19286          CC*)
19287            # FIXME: insert proper C++ library support
19288            ld_shlibs_CXX=no
19289            ;;
19290          aCC*)
19291            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19292            # Commands to make compiler produce verbose output that lists
19293            # what "hidden" libraries, object files and flags are used when
19294            # linking a shared library.
19295            #
19296            # There doesn't appear to be a way to prevent this compiler from
19297            # explicitly linking system object files so we need to strip them
19298            # from the output so that they don't get included in the library
19299            # dependencies.
19300            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19301            ;;
19302          *)
19303            if test "$GXX" = yes; then
19304              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19305            else
19306              # FIXME: insert proper C++ library support
19307              ld_shlibs_CXX=no
19308            fi
19309            ;;
19310        esac
19311        ;;
19312
19313      hpux10*|hpux11*)
19314        if test $with_gnu_ld = no; then
19315	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19316	  hardcode_libdir_separator_CXX=:
19317
19318          case $host_cpu in
19319            hppa*64*|ia64*)
19320              ;;
19321            *)
19322	      export_dynamic_flag_spec_CXX='${wl}-E'
19323              ;;
19324          esac
19325        fi
19326        case $host_cpu in
19327          hppa*64*|ia64*)
19328            hardcode_direct_CXX=no
19329            hardcode_shlibpath_var_CXX=no
19330            ;;
19331          *)
19332            hardcode_direct_CXX=yes
19333            hardcode_direct_absolute_CXX=yes
19334            hardcode_minus_L_CXX=yes # Not in the search PATH,
19335					         # but as the default
19336					         # location of the library.
19337            ;;
19338        esac
19339
19340        case $cc_basename in
19341          CC*)
19342	    # FIXME: insert proper C++ library support
19343	    ld_shlibs_CXX=no
19344	    ;;
19345          aCC*)
19346	    case $host_cpu in
19347	      hppa*64*)
19348	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19349	        ;;
19350	      ia64*)
19351	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19352	        ;;
19353	      *)
19354	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19355	        ;;
19356	    esac
19357	    # Commands to make compiler produce verbose output that lists
19358	    # what "hidden" libraries, object files and flags are used when
19359	    # linking a shared library.
19360	    #
19361	    # There doesn't appear to be a way to prevent this compiler from
19362	    # explicitly linking system object files so we need to strip them
19363	    # from the output so that they don't get included in the library
19364	    # dependencies.
19365	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19366	    ;;
19367          *)
19368	    if test "$GXX" = yes; then
19369	      if test $with_gnu_ld = no; then
19370	        case $host_cpu in
19371	          hppa*64*)
19372	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19373	            ;;
19374	          ia64*)
19375	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19376	            ;;
19377	          *)
19378	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19379	            ;;
19380	        esac
19381	      fi
19382	    else
19383	      # FIXME: insert proper C++ library support
19384	      ld_shlibs_CXX=no
19385	    fi
19386	    ;;
19387        esac
19388        ;;
19389
19390      interix[3-9]*)
19391	hardcode_direct_CXX=no
19392	hardcode_shlibpath_var_CXX=no
19393	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19394	export_dynamic_flag_spec_CXX='${wl}-E'
19395	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19396	# Instead, shared libraries are loaded at an image base (0x10000000 by
19397	# default) and relocated if they conflict, which is a slow very memory
19398	# consuming and fragmenting process.  To avoid this, we pick a random,
19399	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19400	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
19401	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
19402	archive_expsym_cmds_CXX='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'
19403	;;
19404      irix5* | irix6*)
19405        case $cc_basename in
19406          CC*)
19407	    # SGI C++
19408	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19409
19410	    # Archives containing C++ object files must be created using
19411	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
19412	    # necessary to make sure instantiated templates are included
19413	    # in the archive.
19414	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19415	    ;;
19416          *)
19417	    if test "$GXX" = yes; then
19418	      if test "$with_gnu_ld" = no; then
19419	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
19420	      else
19421	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
19422	      fi
19423	    fi
19424	    link_all_deplibs_CXX=yes
19425	    ;;
19426        esac
19427        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19428        hardcode_libdir_separator_CXX=:
19429        inherit_rpath_CXX=yes
19430        ;;
19431
19432      linux* | k*bsd*-gnu)
19433        case $cc_basename in
19434          KCC*)
19435	    # Kuck and Associates, Inc. (KAI) C++ Compiler
19436
19437	    # KCC will only create a shared library if the output file
19438	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
19439	    # to its proper name (with version) after linking.
19440	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19441	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
19442	    # Commands to make compiler produce verbose output that lists
19443	    # what "hidden" libraries, object files and flags are used when
19444	    # linking a shared library.
19445	    #
19446	    # There doesn't appear to be a way to prevent this compiler from
19447	    # explicitly linking system object files so we need to strip them
19448	    # from the output so that they don't get included in the library
19449	    # dependencies.
19450	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19451
19452	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19453	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19454
19455	    # Archives containing C++ object files must be created using
19456	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19457	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19458	    ;;
19459	  icpc* | ecpc* )
19460	    # Intel C++
19461	    with_gnu_ld=yes
19462	    # version 8.0 and above of icpc choke on multiply defined symbols
19463	    # if we add $predep_objects and $postdep_objects, however 7.1 and
19464	    # earlier do not add the objects themselves.
19465	    case `$CC -V 2>&1` in
19466	      *"Version 7."*)
19467	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19468		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19469		;;
19470	      *)  # Version 8.0 or newer
19471	        tmp_idyn=
19472	        case $host_cpu in
19473		  ia64*) tmp_idyn=' -i_dynamic';;
19474		esac
19475	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19476		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19477		;;
19478	    esac
19479	    archive_cmds_need_lc_CXX=no
19480	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19481	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19482	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19483	    ;;
19484          pgCC* | pgcpp*)
19485            # Portland Group C++ compiler
19486	    case `$CC -V` in
19487	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
19488	      prelink_cmds_CXX='tpldir=Template.dir~
19489		rm -rf $tpldir~
19490		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19491		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19492	      old_archive_cmds_CXX='tpldir=Template.dir~
19493		rm -rf $tpldir~
19494		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19495		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19496		$RANLIB $oldlib'
19497	      archive_cmds_CXX='tpldir=Template.dir~
19498		rm -rf $tpldir~
19499		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19500		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19501	      archive_expsym_cmds_CXX='tpldir=Template.dir~
19502		rm -rf $tpldir~
19503		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19504		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19505	      ;;
19506	    *) # Version 6 will use weak symbols
19507	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19508	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
19509	      ;;
19510	    esac
19511
19512	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19513	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19514	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
19515            ;;
19516	  cxx*)
19517	    # Compaq C++
19518	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19519	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
19520
19521	    runpath_var=LD_RUN_PATH
19522	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19523	    hardcode_libdir_separator_CXX=:
19524
19525	    # Commands to make compiler produce verbose output that lists
19526	    # what "hidden" libraries, object files and flags are used when
19527	    # linking a shared library.
19528	    #
19529	    # There doesn't appear to be a way to prevent this compiler from
19530	    # explicitly linking system object files so we need to strip them
19531	    # from the output so that they don't get included in the library
19532	    # dependencies.
19533	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19534	    ;;
19535	  xl*)
19536	    # IBM XL 8.0 on PPC, with GNU ld
19537	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19538	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19539	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19540	    if test "x$supports_anon_versioning" = xyes; then
19541	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19542		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19543		echo "local: *; };" >> $output_objdir/$libname.ver~
19544		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19545	    fi
19546	    ;;
19547	  *)
19548	    case `$CC -V 2>&1 | sed 5q` in
19549	    *Sun\ C*)
19550	      # Sun C++ 5.9
19551	      no_undefined_flag_CXX=' -zdefs'
19552	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19553	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
19554	      hardcode_libdir_flag_spec_CXX='-R$libdir'
19555	      whole_archive_flag_spec_CXX='${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'
19556	      compiler_needs_object_CXX=yes
19557
19558	      # Not sure whether something based on
19559	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19560	      # would be better.
19561	      output_verbose_link_cmd='echo'
19562
19563	      # Archives containing C++ object files must be created using
19564	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19565	      # necessary to make sure instantiated templates are included
19566	      # in the archive.
19567	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19568	      ;;
19569	    esac
19570	    ;;
19571	esac
19572	;;
19573
19574      lynxos*)
19575        # FIXME: insert proper C++ library support
19576	ld_shlibs_CXX=no
19577	;;
19578
19579      m88k*)
19580        # FIXME: insert proper C++ library support
19581        ld_shlibs_CXX=no
19582	;;
19583
19584      mvs*)
19585        case $cc_basename in
19586          cxx*)
19587	    # FIXME: insert proper C++ library support
19588	    ld_shlibs_CXX=no
19589	    ;;
19590	  *)
19591	    # FIXME: insert proper C++ library support
19592	    ld_shlibs_CXX=no
19593	    ;;
19594	esac
19595	;;
19596
19597      netbsd*)
19598        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19599	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19600	  wlarc=
19601	  hardcode_libdir_flag_spec_CXX='-R$libdir'
19602	  hardcode_direct_CXX=yes
19603	  hardcode_shlibpath_var_CXX=no
19604	fi
19605	# Workaround some broken pre-1.5 toolchains
19606	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19607	;;
19608
19609      *nto* | *qnx*)
19610        ld_shlibs_CXX=yes
19611	;;
19612
19613      openbsd2*)
19614        # C++ shared libraries are fairly broken
19615	ld_shlibs_CXX=no
19616	;;
19617
19618      openbsd*)
19619	if test -f /usr/libexec/ld.so; then
19620	  hardcode_direct_CXX=yes
19621	  hardcode_shlibpath_var_CXX=no
19622	  hardcode_direct_absolute_CXX=yes
19623	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19624	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19625	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19626	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19627	    export_dynamic_flag_spec_CXX='${wl}-E'
19628	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19629	  fi
19630	  output_verbose_link_cmd=echo
19631	else
19632	  ld_shlibs_CXX=no
19633	fi
19634	;;
19635
19636      osf3* | osf4* | osf5*)
19637        case $cc_basename in
19638          KCC*)
19639	    # Kuck and Associates, Inc. (KAI) C++ Compiler
19640
19641	    # KCC will only create a shared library if the output file
19642	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
19643	    # to its proper name (with version) after linking.
19644	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
19645
19646	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19647	    hardcode_libdir_separator_CXX=:
19648
19649	    # Archives containing C++ object files must be created using
19650	    # the KAI C++ compiler.
19651	    case $host in
19652	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19653	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19654	    esac
19655	    ;;
19656          RCC*)
19657	    # Rational C++ 2.4.1
19658	    # FIXME: insert proper C++ library support
19659	    ld_shlibs_CXX=no
19660	    ;;
19661          cxx*)
19662	    case $host in
19663	      osf3*)
19664	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19665	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19666	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19667		;;
19668	      *)
19669	        allow_undefined_flag_CXX=' -expect_unresolved \*'
19670	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19671	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19672	          echo "-hidden">> $lib.exp~
19673	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
19674	          $RM $lib.exp'
19675	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19676		;;
19677	    esac
19678
19679	    hardcode_libdir_separator_CXX=:
19680
19681	    # Commands to make compiler produce verbose output that lists
19682	    # what "hidden" libraries, object files and flags are used when
19683	    # linking a shared library.
19684	    #
19685	    # There doesn't appear to be a way to prevent this compiler from
19686	    # explicitly linking system object files so we need to strip them
19687	    # from the output so that they don't get included in the library
19688	    # dependencies.
19689	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
19690	    ;;
19691	  *)
19692	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19693	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19694	      case $host in
19695	        osf3*)
19696	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
19697		  ;;
19698	        *)
19699	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19700		  ;;
19701	      esac
19702
19703	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19704	      hardcode_libdir_separator_CXX=:
19705
19706	      # Commands to make compiler produce verbose output that lists
19707	      # what "hidden" libraries, object files and flags are used when
19708	      # linking a shared library.
19709	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19710
19711	    else
19712	      # FIXME: insert proper C++ library support
19713	      ld_shlibs_CXX=no
19714	    fi
19715	    ;;
19716        esac
19717        ;;
19718
19719      psos*)
19720        # FIXME: insert proper C++ library support
19721        ld_shlibs_CXX=no
19722        ;;
19723
19724      sunos4*)
19725        case $cc_basename in
19726          CC*)
19727	    # Sun C++ 4.x
19728	    # FIXME: insert proper C++ library support
19729	    ld_shlibs_CXX=no
19730	    ;;
19731          lcc*)
19732	    # Lucid
19733	    # FIXME: insert proper C++ library support
19734	    ld_shlibs_CXX=no
19735	    ;;
19736          *)
19737	    # FIXME: insert proper C++ library support
19738	    ld_shlibs_CXX=no
19739	    ;;
19740        esac
19741        ;;
19742
19743      solaris*)
19744        case $cc_basename in
19745          CC*)
19746	    # Sun C++ 4.2, 5.x and Centerline C++
19747            archive_cmds_need_lc_CXX=yes
19748	    no_undefined_flag_CXX=' -zdefs'
19749	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19750	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19751	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19752
19753	    hardcode_libdir_flag_spec_CXX='-R$libdir'
19754	    hardcode_shlibpath_var_CXX=no
19755	    case $host_os in
19756	      solaris2.[0-5] | solaris2.[0-5].*) ;;
19757	      *)
19758		# The compiler driver will combine and reorder linker options,
19759		# but understands `-z linker_flag'.
19760	        # Supported since Solaris 2.6 (maybe 2.5.1?)
19761		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19762	        ;;
19763	    esac
19764	    link_all_deplibs_CXX=yes
19765
19766	    output_verbose_link_cmd='echo'
19767
19768	    # Archives containing C++ object files must be created using
19769	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
19770	    # necessary to make sure instantiated templates are included
19771	    # in the archive.
19772	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19773	    ;;
19774          gcx*)
19775	    # Green Hills C++ Compiler
19776	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19777
19778	    # The C++ compiler must be used to create the archive.
19779	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19780	    ;;
19781          *)
19782	    # GNU C++ compiler with Solaris linker
19783	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19784	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19785	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19786	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19787	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19788		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19789
19790	        # Commands to make compiler produce verbose output that lists
19791	        # what "hidden" libraries, object files and flags are used when
19792	        # linking a shared library.
19793	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19794	      else
19795	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
19796	        # platform.
19797	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19798	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19799		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19800
19801	        # Commands to make compiler produce verbose output that lists
19802	        # what "hidden" libraries, object files and flags are used when
19803	        # linking a shared library.
19804	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19805	      fi
19806
19807	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19808	      case $host_os in
19809		solaris2.[0-5] | solaris2.[0-5].*) ;;
19810		*)
19811		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19812		  ;;
19813	      esac
19814	    fi
19815	    ;;
19816        esac
19817        ;;
19818
19819    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19820      no_undefined_flag_CXX='${wl}-z,text'
19821      archive_cmds_need_lc_CXX=no
19822      hardcode_shlibpath_var_CXX=no
19823      runpath_var='LD_RUN_PATH'
19824
19825      case $cc_basename in
19826        CC*)
19827	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19828	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19829	  ;;
19830	*)
19831	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19832	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19833	  ;;
19834      esac
19835      ;;
19836
19837      sysv5* | sco3.2v5* | sco5v6*)
19838	# Note: We can NOT use -z defs as we might desire, because we do not
19839	# link with -lc, and that would cause any symbols used from libc to
19840	# always be unresolved, which means just about no library would
19841	# ever link correctly.  If we're not using GNU ld we use -z text
19842	# though, which does catch some bad symbols but isn't as heavy-handed
19843	# as -z defs.
19844	no_undefined_flag_CXX='${wl}-z,text'
19845	allow_undefined_flag_CXX='${wl}-z,nodefs'
19846	archive_cmds_need_lc_CXX=no
19847	hardcode_shlibpath_var_CXX=no
19848	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19849	hardcode_libdir_separator_CXX=':'
19850	link_all_deplibs_CXX=yes
19851	export_dynamic_flag_spec_CXX='${wl}-Bexport'
19852	runpath_var='LD_RUN_PATH'
19853
19854	case $cc_basename in
19855          CC*)
19856	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19857	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19858	    ;;
19859	  *)
19860	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19861	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19862	    ;;
19863	esac
19864      ;;
19865
19866      tandem*)
19867        case $cc_basename in
19868          NCC*)
19869	    # NonStop-UX NCC 3.20
19870	    # FIXME: insert proper C++ library support
19871	    ld_shlibs_CXX=no
19872	    ;;
19873          *)
19874	    # FIXME: insert proper C++ library support
19875	    ld_shlibs_CXX=no
19876	    ;;
19877        esac
19878        ;;
19879
19880      vxworks*)
19881        # FIXME: insert proper C++ library support
19882        ld_shlibs_CXX=no
19883        ;;
19884
19885      *)
19886        # FIXME: insert proper C++ library support
19887        ld_shlibs_CXX=no
19888        ;;
19889    esac
19890
19891    { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
19892$as_echo "$ld_shlibs_CXX" >&6; }
19893    test "$ld_shlibs_CXX" = no && can_build_shared=no
19894
19895    GCC_CXX="$GXX"
19896    LD_CXX="$LD"
19897
19898    ## CAVEAT EMPTOR:
19899    ## There is no encapsulation within the following macros, do not change
19900    ## the running order or otherwise move them around unless you know exactly
19901    ## what you are doing...
19902    # Dependencies to place before and after the object being linked:
19903predep_objects_CXX=
19904postdep_objects_CXX=
19905predeps_CXX=
19906postdeps_CXX=
19907compiler_lib_search_path_CXX=
19908
19909cat > conftest.$ac_ext <<_LT_EOF
19910class Foo
19911{
19912public:
19913  Foo (void) { a = 0; }
19914private:
19915  int a;
19916};
19917_LT_EOF
19918
19919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19920  (eval $ac_compile) 2>&5
19921  ac_status=$?
19922  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923  (exit $ac_status); }; then
19924  # Parse the compiler output and extract the necessary
19925  # objects, libraries and library flags.
19926
19927  # Sentinel used to keep track of whether or not we are before
19928  # the conftest object file.
19929  pre_test_object_deps_done=no
19930
19931  for p in `eval "$output_verbose_link_cmd"`; do
19932    case $p in
19933
19934    -L* | -R* | -l*)
19935       # Some compilers place space between "-{L,R}" and the path.
19936       # Remove the space.
19937       if test $p = "-L" ||
19938          test $p = "-R"; then
19939	 prev=$p
19940	 continue
19941       else
19942	 prev=
19943       fi
19944
19945       if test "$pre_test_object_deps_done" = no; then
19946	 case $p in
19947	 -L* | -R*)
19948	   # Internal compiler library paths should come after those
19949	   # provided the user.  The postdeps already come after the
19950	   # user supplied libs so there is no need to process them.
19951	   if test -z "$compiler_lib_search_path_CXX"; then
19952	     compiler_lib_search_path_CXX="${prev}${p}"
19953	   else
19954	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19955	   fi
19956	   ;;
19957	 # The "-l" case would never come before the object being
19958	 # linked, so don't bother handling this case.
19959	 esac
19960       else
19961	 if test -z "$postdeps_CXX"; then
19962	   postdeps_CXX="${prev}${p}"
19963	 else
19964	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19965	 fi
19966       fi
19967       ;;
19968
19969    *.$objext)
19970       # This assumes that the test object file only shows up
19971       # once in the compiler output.
19972       if test "$p" = "conftest.$objext"; then
19973	 pre_test_object_deps_done=yes
19974	 continue
19975       fi
19976
19977       if test "$pre_test_object_deps_done" = no; then
19978	 if test -z "$predep_objects_CXX"; then
19979	   predep_objects_CXX="$p"
19980	 else
19981	   predep_objects_CXX="$predep_objects_CXX $p"
19982	 fi
19983       else
19984	 if test -z "$postdep_objects_CXX"; then
19985	   postdep_objects_CXX="$p"
19986	 else
19987	   postdep_objects_CXX="$postdep_objects_CXX $p"
19988	 fi
19989       fi
19990       ;;
19991
19992    *) ;; # Ignore the rest.
19993
19994    esac
19995  done
19996
19997  # Clean up.
19998  rm -f a.out a.exe
19999else
20000  echo "libtool.m4: error: problem compiling CXX test program"
20001fi
20002
20003$RM -f confest.$objext
20004
20005# PORTME: override above test on systems where it is broken
20006case $host_os in
20007interix[3-9]*)
20008  # Interix 3.5 installs completely hosed .la files for C++, so rather than
20009  # hack all around it, let's just trust "g++" to DTRT.
20010  predep_objects_CXX=
20011  postdep_objects_CXX=
20012  postdeps_CXX=
20013  ;;
20014
20015linux*)
20016  case `$CC -V 2>&1 | sed 5q` in
20017  *Sun\ C*)
20018    # Sun C++ 5.9
20019
20020    # The more standards-conforming stlport4 library is
20021    # incompatible with the Cstd library. Avoid specifying
20022    # it if it's in CXXFLAGS. Ignore libCrun as
20023    # -library=stlport4 depends on it.
20024    case " $CXX $CXXFLAGS " in
20025    *" -library=stlport4 "*)
20026      solaris_use_stlport4=yes
20027      ;;
20028    esac
20029
20030    if test "$solaris_use_stlport4" != yes; then
20031      postdeps_CXX='-library=Cstd -library=Crun'
20032    fi
20033    ;;
20034  esac
20035  ;;
20036
20037solaris*)
20038  case $cc_basename in
20039  CC*)
20040    # The more standards-conforming stlport4 library is
20041    # incompatible with the Cstd library. Avoid specifying
20042    # it if it's in CXXFLAGS. Ignore libCrun as
20043    # -library=stlport4 depends on it.
20044    case " $CXX $CXXFLAGS " in
20045    *" -library=stlport4 "*)
20046      solaris_use_stlport4=yes
20047      ;;
20048    esac
20049
20050    # Adding this requires a known-good setup of shared libraries for
20051    # Sun compiler versions before 5.6, else PIC objects from an old
20052    # archive will be linked into the output, leading to subtle bugs.
20053    if test "$solaris_use_stlport4" != yes; then
20054      postdeps_CXX='-library=Cstd -library=Crun'
20055    fi
20056    ;;
20057  esac
20058  ;;
20059esac
20060
20061
20062case " $postdeps_CXX " in
20063*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20064esac
20065 compiler_lib_search_dirs_CXX=
20066if test -n "${compiler_lib_search_path_CXX}"; then
20067 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
20068fi
20069
20070
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083
20084
20085
20086
20087
20088
20089
20090
20091
20092
20093
20094
20095
20096
20097
20098
20099
20100    lt_prog_compiler_wl_CXX=
20101lt_prog_compiler_pic_CXX=
20102lt_prog_compiler_static_CXX=
20103
20104{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20105$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20106
20107  # C++ specific cases for pic, static, wl, etc.
20108  if test "$GXX" = yes; then
20109    lt_prog_compiler_wl_CXX='-Wl,'
20110    lt_prog_compiler_static_CXX='-static'
20111
20112    case $host_os in
20113    aix*)
20114      # All AIX code is PIC.
20115      if test "$host_cpu" = ia64; then
20116	# AIX 5 now supports IA64 processor
20117	lt_prog_compiler_static_CXX='-Bstatic'
20118      fi
20119      ;;
20120
20121    amigaos*)
20122      case $host_cpu in
20123      powerpc)
20124            # see comment about AmigaOS4 .so support
20125            lt_prog_compiler_pic_CXX='-fPIC'
20126        ;;
20127      m68k)
20128            # FIXME: we need at least 68020 code to build shared libraries, but
20129            # adding the `-m68020' flag to GCC prevents building anything better,
20130            # like `-m68040'.
20131            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20132        ;;
20133      esac
20134      ;;
20135
20136    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20137      # PIC is the default for these OSes.
20138      ;;
20139    mingw* | cygwin* | os2* | pw32*)
20140      # This hack is so that the source file can tell whether it is being
20141      # built for inclusion in a dll (and should export symbols for example).
20142      # Although the cygwin gcc ignores -fPIC, still need this for old-style
20143      # (--disable-auto-import) libraries
20144      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20145      ;;
20146    darwin* | rhapsody*)
20147      # PIC is the default on this platform
20148      # Common symbols not allowed in MH_DYLIB files
20149      lt_prog_compiler_pic_CXX='-fno-common'
20150      ;;
20151    *djgpp*)
20152      # DJGPP does not support shared libraries at all
20153      lt_prog_compiler_pic_CXX=
20154      ;;
20155    interix[3-9]*)
20156      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20157      # Instead, we relocate shared libraries at runtime.
20158      ;;
20159    sysv4*MP*)
20160      if test -d /usr/nec; then
20161	lt_prog_compiler_pic_CXX=-Kconform_pic
20162      fi
20163      ;;
20164    hpux*)
20165      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20166      # not for PA HP-UX.
20167      case $host_cpu in
20168      hppa*64*|ia64*)
20169	;;
20170      *)
20171	lt_prog_compiler_pic_CXX='-fPIC'
20172	;;
20173      esac
20174      ;;
20175    *qnx* | *nto*)
20176      # QNX uses GNU C++, but need to define -shared option too, otherwise
20177      # it will coredump.
20178      lt_prog_compiler_pic_CXX='-fPIC -shared'
20179      ;;
20180    *)
20181      lt_prog_compiler_pic_CXX='-fPIC'
20182      ;;
20183    esac
20184  else
20185    case $host_os in
20186      aix[4-9]*)
20187	# All AIX code is PIC.
20188	if test "$host_cpu" = ia64; then
20189	  # AIX 5 now supports IA64 processor
20190	  lt_prog_compiler_static_CXX='-Bstatic'
20191	else
20192	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20193	fi
20194	;;
20195      chorus*)
20196	case $cc_basename in
20197	cxch68*)
20198	  # Green Hills C++ Compiler
20199	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
20200	  ;;
20201	esac
20202	;;
20203      dgux*)
20204	case $cc_basename in
20205	  ec++*)
20206	    lt_prog_compiler_pic_CXX='-KPIC'
20207	    ;;
20208	  ghcx*)
20209	    # Green Hills C++ Compiler
20210	    lt_prog_compiler_pic_CXX='-pic'
20211	    ;;
20212	  *)
20213	    ;;
20214	esac
20215	;;
20216      freebsd* | dragonfly*)
20217	# FreeBSD uses GNU C++
20218	;;
20219      hpux9* | hpux10* | hpux11*)
20220	case $cc_basename in
20221	  CC*)
20222	    lt_prog_compiler_wl_CXX='-Wl,'
20223	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20224	    if test "$host_cpu" != ia64; then
20225	      lt_prog_compiler_pic_CXX='+Z'
20226	    fi
20227	    ;;
20228	  aCC*)
20229	    lt_prog_compiler_wl_CXX='-Wl,'
20230	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
20231	    case $host_cpu in
20232	    hppa*64*|ia64*)
20233	      # +Z the default
20234	      ;;
20235	    *)
20236	      lt_prog_compiler_pic_CXX='+Z'
20237	      ;;
20238	    esac
20239	    ;;
20240	  *)
20241	    ;;
20242	esac
20243	;;
20244      interix*)
20245	# This is c89, which is MS Visual C++ (no shared libs)
20246	# Anyone wants to do a port?
20247	;;
20248      irix5* | irix6* | nonstopux*)
20249	case $cc_basename in
20250	  CC*)
20251	    lt_prog_compiler_wl_CXX='-Wl,'
20252	    lt_prog_compiler_static_CXX='-non_shared'
20253	    # CC pic flag -KPIC is the default.
20254	    ;;
20255	  *)
20256	    ;;
20257	esac
20258	;;
20259      linux* | k*bsd*-gnu)
20260	case $cc_basename in
20261	  KCC*)
20262	    # KAI C++ Compiler
20263	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20264	    lt_prog_compiler_pic_CXX='-fPIC'
20265	    ;;
20266	  icpc* | ecpc* )
20267	    # Intel C++
20268	    lt_prog_compiler_wl_CXX='-Wl,'
20269	    lt_prog_compiler_pic_CXX='-KPIC'
20270	    lt_prog_compiler_static_CXX='-static'
20271	    ;;
20272	  pgCC* | pgcpp*)
20273	    # Portland Group C++ compiler
20274	    lt_prog_compiler_wl_CXX='-Wl,'
20275	    lt_prog_compiler_pic_CXX='-fpic'
20276	    lt_prog_compiler_static_CXX='-Bstatic'
20277	    ;;
20278	  cxx*)
20279	    # Compaq C++
20280	    # Make sure the PIC flag is empty.  It appears that all Alpha
20281	    # Linux and Compaq Tru64 Unix objects are PIC.
20282	    lt_prog_compiler_pic_CXX=
20283	    lt_prog_compiler_static_CXX='-non_shared'
20284	    ;;
20285	  xlc* | xlC*)
20286	    # IBM XL 8.0 on PPC
20287	    lt_prog_compiler_wl_CXX='-Wl,'
20288	    lt_prog_compiler_pic_CXX='-qpic'
20289	    lt_prog_compiler_static_CXX='-qstaticlink'
20290	    ;;
20291	  *)
20292	    case `$CC -V 2>&1 | sed 5q` in
20293	    *Sun\ C*)
20294	      # Sun C++ 5.9
20295	      lt_prog_compiler_pic_CXX='-KPIC'
20296	      lt_prog_compiler_static_CXX='-Bstatic'
20297	      lt_prog_compiler_wl_CXX='-Qoption ld '
20298	      ;;
20299	    esac
20300	    ;;
20301	esac
20302	;;
20303      lynxos*)
20304	;;
20305      m88k*)
20306	;;
20307      mvs*)
20308	case $cc_basename in
20309	  cxx*)
20310	    lt_prog_compiler_pic_CXX='-W c,exportall'
20311	    ;;
20312	  *)
20313	    ;;
20314	esac
20315	;;
20316      netbsd*)
20317	;;
20318      *qnx* | *nto*)
20319        # QNX uses GNU C++, but need to define -shared option too, otherwise
20320        # it will coredump.
20321        lt_prog_compiler_pic_CXX='-fPIC -shared'
20322        ;;
20323      osf3* | osf4* | osf5*)
20324	case $cc_basename in
20325	  KCC*)
20326	    lt_prog_compiler_wl_CXX='--backend -Wl,'
20327	    ;;
20328	  RCC*)
20329	    # Rational C++ 2.4.1
20330	    lt_prog_compiler_pic_CXX='-pic'
20331	    ;;
20332	  cxx*)
20333	    # Digital/Compaq C++
20334	    lt_prog_compiler_wl_CXX='-Wl,'
20335	    # Make sure the PIC flag is empty.  It appears that all Alpha
20336	    # Linux and Compaq Tru64 Unix objects are PIC.
20337	    lt_prog_compiler_pic_CXX=
20338	    lt_prog_compiler_static_CXX='-non_shared'
20339	    ;;
20340	  *)
20341	    ;;
20342	esac
20343	;;
20344      psos*)
20345	;;
20346      solaris*)
20347	case $cc_basename in
20348	  CC*)
20349	    # Sun C++ 4.2, 5.x and Centerline C++
20350	    lt_prog_compiler_pic_CXX='-KPIC'
20351	    lt_prog_compiler_static_CXX='-Bstatic'
20352	    lt_prog_compiler_wl_CXX='-Qoption ld '
20353	    ;;
20354	  gcx*)
20355	    # Green Hills C++ Compiler
20356	    lt_prog_compiler_pic_CXX='-PIC'
20357	    ;;
20358	  *)
20359	    ;;
20360	esac
20361	;;
20362      sunos4*)
20363	case $cc_basename in
20364	  CC*)
20365	    # Sun C++ 4.x
20366	    lt_prog_compiler_pic_CXX='-pic'
20367	    lt_prog_compiler_static_CXX='-Bstatic'
20368	    ;;
20369	  lcc*)
20370	    # Lucid
20371	    lt_prog_compiler_pic_CXX='-pic'
20372	    ;;
20373	  *)
20374	    ;;
20375	esac
20376	;;
20377      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20378	case $cc_basename in
20379	  CC*)
20380	    lt_prog_compiler_wl_CXX='-Wl,'
20381	    lt_prog_compiler_pic_CXX='-KPIC'
20382	    lt_prog_compiler_static_CXX='-Bstatic'
20383	    ;;
20384	esac
20385	;;
20386      tandem*)
20387	case $cc_basename in
20388	  NCC*)
20389	    # NonStop-UX NCC 3.20
20390	    lt_prog_compiler_pic_CXX='-KPIC'
20391	    ;;
20392	  *)
20393	    ;;
20394	esac
20395	;;
20396      vxworks*)
20397	;;
20398      *)
20399	lt_prog_compiler_can_build_shared_CXX=no
20400	;;
20401    esac
20402  fi
20403
20404case $host_os in
20405  # For platforms which do not support PIC, -DPIC is meaningless:
20406  *djgpp*)
20407    lt_prog_compiler_pic_CXX=
20408    ;;
20409  *)
20410    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20411    ;;
20412esac
20413{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
20414$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20415
20416
20417
20418#
20419# Check to make sure the PIC flag actually works.
20420#
20421if test -n "$lt_prog_compiler_pic_CXX"; then
20422  { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20423$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20424if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
20425  $as_echo_n "(cached) " >&6
20426else
20427  lt_cv_prog_compiler_pic_works_CXX=no
20428   ac_outfile=conftest.$ac_objext
20429   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20430   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20431   # Insert the option either (1) after the last *FLAGS variable, or
20432   # (2) before a word containing "conftest.", or (3) at the end.
20433   # Note that $ac_compile itself does not contain backslashes and begins
20434   # with a dollar sign (not a hyphen), so the echo should work correctly.
20435   # The option is referenced via a variable to avoid confusing sed.
20436   lt_compile=`echo "$ac_compile" | $SED \
20437   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20438   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20439   -e 's:$: $lt_compiler_flag:'`
20440   (eval echo "\"\$as_me:20440: $lt_compile\"" >&5)
20441   (eval "$lt_compile" 2>conftest.err)
20442   ac_status=$?
20443   cat conftest.err >&5
20444   echo "$as_me:20444: \$? = $ac_status" >&5
20445   if (exit $ac_status) && test -s "$ac_outfile"; then
20446     # The compiler can only warn and ignore the option if not recognized
20447     # So say no if there are warnings other than the usual output.
20448     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20449     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20450     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20451       lt_cv_prog_compiler_pic_works_CXX=yes
20452     fi
20453   fi
20454   $RM conftest*
20455
20456fi
20457{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20458$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20459
20460if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20461    case $lt_prog_compiler_pic_CXX in
20462     "" | " "*) ;;
20463     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20464     esac
20465else
20466    lt_prog_compiler_pic_CXX=
20467     lt_prog_compiler_can_build_shared_CXX=no
20468fi
20469
20470fi
20471
20472
20473
20474#
20475# Check to make sure the static flag actually works.
20476#
20477wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20478{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20479$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20480if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
20481  $as_echo_n "(cached) " >&6
20482else
20483  lt_cv_prog_compiler_static_works_CXX=no
20484   save_LDFLAGS="$LDFLAGS"
20485   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20486   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20487   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20488     # The linker can only warn and ignore the option if not recognized
20489     # So say no if there are warnings
20490     if test -s conftest.err; then
20491       # Append any errors to the config.log.
20492       cat conftest.err 1>&5
20493       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20494       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20495       if diff conftest.exp conftest.er2 >/dev/null; then
20496         lt_cv_prog_compiler_static_works_CXX=yes
20497       fi
20498     else
20499       lt_cv_prog_compiler_static_works_CXX=yes
20500     fi
20501   fi
20502   $RM -r conftest*
20503   LDFLAGS="$save_LDFLAGS"
20504
20505fi
20506{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20507$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20508
20509if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20510    :
20511else
20512    lt_prog_compiler_static_CXX=
20513fi
20514
20515
20516
20517
20518    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20519$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20520if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20521  $as_echo_n "(cached) " >&6
20522else
20523  lt_cv_prog_compiler_c_o_CXX=no
20524   $RM -r conftest 2>/dev/null
20525   mkdir conftest
20526   cd conftest
20527   mkdir out
20528   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20529
20530   lt_compiler_flag="-o out/conftest2.$ac_objext"
20531   # Insert the option either (1) after the last *FLAGS variable, or
20532   # (2) before a word containing "conftest.", or (3) at the end.
20533   # Note that $ac_compile itself does not contain backslashes and begins
20534   # with a dollar sign (not a hyphen), so the echo should work correctly.
20535   lt_compile=`echo "$ac_compile" | $SED \
20536   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20537   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20538   -e 's:$: $lt_compiler_flag:'`
20539   (eval echo "\"\$as_me:20539: $lt_compile\"" >&5)
20540   (eval "$lt_compile" 2>out/conftest.err)
20541   ac_status=$?
20542   cat out/conftest.err >&5
20543   echo "$as_me:20543: \$? = $ac_status" >&5
20544   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20545   then
20546     # The compiler can only warn and ignore the option if not recognized
20547     # So say no if there are warnings
20548     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20549     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20550     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20551       lt_cv_prog_compiler_c_o_CXX=yes
20552     fi
20553   fi
20554   chmod u+w . 2>&5
20555   $RM conftest*
20556   # SGI C++ compiler will create directory out/ii_files/ for
20557   # template instantiation
20558   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20559   $RM out/* && rmdir out
20560   cd ..
20561   $RM -r conftest
20562   $RM conftest*
20563
20564fi
20565{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20566$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20567
20568
20569
20570    { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
20571$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20572if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
20573  $as_echo_n "(cached) " >&6
20574else
20575  lt_cv_prog_compiler_c_o_CXX=no
20576   $RM -r conftest 2>/dev/null
20577   mkdir conftest
20578   cd conftest
20579   mkdir out
20580   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20581
20582   lt_compiler_flag="-o out/conftest2.$ac_objext"
20583   # Insert the option either (1) after the last *FLAGS variable, or
20584   # (2) before a word containing "conftest.", or (3) at the end.
20585   # Note that $ac_compile itself does not contain backslashes and begins
20586   # with a dollar sign (not a hyphen), so the echo should work correctly.
20587   lt_compile=`echo "$ac_compile" | $SED \
20588   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20589   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20590   -e 's:$: $lt_compiler_flag:'`
20591   (eval echo "\"\$as_me:20591: $lt_compile\"" >&5)
20592   (eval "$lt_compile" 2>out/conftest.err)
20593   ac_status=$?
20594   cat out/conftest.err >&5
20595   echo "$as_me:20595: \$? = $ac_status" >&5
20596   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20597   then
20598     # The compiler can only warn and ignore the option if not recognized
20599     # So say no if there are warnings
20600     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20601     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20602     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20603       lt_cv_prog_compiler_c_o_CXX=yes
20604     fi
20605   fi
20606   chmod u+w . 2>&5
20607   $RM conftest*
20608   # SGI C++ compiler will create directory out/ii_files/ for
20609   # template instantiation
20610   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20611   $RM out/* && rmdir out
20612   cd ..
20613   $RM -r conftest
20614   $RM conftest*
20615
20616fi
20617{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20618$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20619
20620
20621
20622
20623hard_links="nottested"
20624if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20625  # do not overwrite the value of need_locks provided by the user
20626  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
20627$as_echo_n "checking if we can lock with hard links... " >&6; }
20628  hard_links=yes
20629  $RM conftest*
20630  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20631  touch conftest.a
20632  ln conftest.a conftest.b 2>&5 || hard_links=no
20633  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20634  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
20635$as_echo "$hard_links" >&6; }
20636  if test "$hard_links" = no; then
20637    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20638$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20639    need_locks=warn
20640  fi
20641else
20642  need_locks=no
20643fi
20644
20645
20646
20647    { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20648$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20649
20650  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20651  case $host_os in
20652  aix[4-9]*)
20653    # If we're using GNU nm, then we don't want the "-C" option.
20654    # -C means demangle to AIX nm, but means don't demangle with GNU nm
20655    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20656      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20657    else
20658      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20659    fi
20660    ;;
20661  pw32*)
20662    export_symbols_cmds_CXX="$ltdll_cmds"
20663  ;;
20664  cygwin* | mingw*)
20665    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
20666  ;;
20667  *)
20668    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20669  ;;
20670  esac
20671  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20672
20673{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
20674$as_echo "$ld_shlibs_CXX" >&6; }
20675test "$ld_shlibs_CXX" = no && can_build_shared=no
20676
20677with_gnu_ld_CXX=$with_gnu_ld
20678
20679
20680
20681
20682
20683
20684#
20685# Do we need to explicitly link libc?
20686#
20687case "x$archive_cmds_need_lc_CXX" in
20688x|xyes)
20689  # Assume -lc should be added
20690  archive_cmds_need_lc_CXX=yes
20691
20692  if test "$enable_shared" = yes && test "$GCC" = yes; then
20693    case $archive_cmds_CXX in
20694    *'~'*)
20695      # FIXME: we may have to deal with multi-command sequences.
20696      ;;
20697    '$CC '*)
20698      # Test whether the compiler implicitly links with -lc since on some
20699      # systems, -lgcc has to come before -lc. If gcc already passes -lc
20700      # to ld, don't add -lc before -lgcc.
20701      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20702$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20703      $RM conftest*
20704      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20705
20706      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20707  (eval $ac_compile) 2>&5
20708  ac_status=$?
20709  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710  (exit $ac_status); } 2>conftest.err; then
20711        soname=conftest
20712        lib=conftest
20713        libobjs=conftest.$ac_objext
20714        deplibs=
20715        wl=$lt_prog_compiler_wl_CXX
20716	pic_flag=$lt_prog_compiler_pic_CXX
20717        compiler_flags=-v
20718        linker_flags=-v
20719        verstring=
20720        output_objdir=.
20721        libname=conftest
20722        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20723        allow_undefined_flag_CXX=
20724        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
20725  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20726  ac_status=$?
20727  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728  (exit $ac_status); }
20729        then
20730	  archive_cmds_need_lc_CXX=no
20731        else
20732	  archive_cmds_need_lc_CXX=yes
20733        fi
20734        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20735      else
20736        cat conftest.err 1>&5
20737      fi
20738      $RM conftest*
20739      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
20740$as_echo "$archive_cmds_need_lc_CXX" >&6; }
20741      ;;
20742    esac
20743  fi
20744  ;;
20745esac
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810    { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20811$as_echo_n "checking dynamic linker characteristics... " >&6; }
20812
20813library_names_spec=
20814libname_spec='lib$name'
20815soname_spec=
20816shrext_cmds=".so"
20817postinstall_cmds=
20818postuninstall_cmds=
20819finish_cmds=
20820finish_eval=
20821shlibpath_var=
20822shlibpath_overrides_runpath=unknown
20823version_type=none
20824dynamic_linker="$host_os ld.so"
20825sys_lib_dlsearch_path_spec="/lib /usr/lib"
20826need_lib_prefix=unknown
20827hardcode_into_libs=no
20828
20829# when you set need_version to no, make sure it does not cause -set_version
20830# flags to be left without arguments
20831need_version=unknown
20832
20833case $host_os in
20834aix3*)
20835  version_type=linux
20836  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20837  shlibpath_var=LIBPATH
20838
20839  # AIX 3 has no versioning support, so we append a major version to the name.
20840  soname_spec='${libname}${release}${shared_ext}$major'
20841  ;;
20842
20843aix[4-9]*)
20844  version_type=linux
20845  need_lib_prefix=no
20846  need_version=no
20847  hardcode_into_libs=yes
20848  if test "$host_cpu" = ia64; then
20849    # AIX 5 supports IA64
20850    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20851    shlibpath_var=LD_LIBRARY_PATH
20852  else
20853    # With GCC up to 2.95.x, collect2 would create an import file
20854    # for dependence libraries.  The import file would start with
20855    # the line `#! .'.  This would cause the generated library to
20856    # depend on `.', always an invalid library.  This was fixed in
20857    # development snapshots of GCC prior to 3.0.
20858    case $host_os in
20859      aix4 | aix4.[01] | aix4.[01].*)
20860      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20861	   echo ' yes '
20862	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20863	:
20864      else
20865	can_build_shared=no
20866      fi
20867      ;;
20868    esac
20869    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20870    # soname into executable. Probably we can add versioning support to
20871    # collect2, so additional links can be useful in future.
20872    if test "$aix_use_runtimelinking" = yes; then
20873      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20874      # instead of lib<name>.a to let people know that these are not
20875      # typical AIX shared libraries.
20876      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20877    else
20878      # We preserve .a as extension for shared libraries through AIX4.2
20879      # and later when we are not doing run time linking.
20880      library_names_spec='${libname}${release}.a $libname.a'
20881      soname_spec='${libname}${release}${shared_ext}$major'
20882    fi
20883    shlibpath_var=LIBPATH
20884  fi
20885  ;;
20886
20887amigaos*)
20888  case $host_cpu in
20889  powerpc)
20890    # Since July 2007 AmigaOS4 officially supports .so libraries.
20891    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20892    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20893    ;;
20894  m68k)
20895    library_names_spec='$libname.ixlibrary $libname.a'
20896    # Create ${libname}_ixlibrary.a entries in /sys/libs.
20897    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'
20898    ;;
20899  esac
20900  ;;
20901
20902beos*)
20903  library_names_spec='${libname}${shared_ext}'
20904  dynamic_linker="$host_os ld.so"
20905  shlibpath_var=LIBRARY_PATH
20906  ;;
20907
20908bsdi[45]*)
20909  version_type=linux
20910  need_version=no
20911  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20912  soname_spec='${libname}${release}${shared_ext}$major'
20913  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20914  shlibpath_var=LD_LIBRARY_PATH
20915  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20916  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20917  # the default ld.so.conf also contains /usr/contrib/lib and
20918  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20919  # libtool to hard-code these into programs
20920  ;;
20921
20922cygwin* | mingw* | pw32*)
20923  version_type=windows
20924  shrext_cmds=".dll"
20925  need_version=no
20926  need_lib_prefix=no
20927
20928  case $GCC,$host_os in
20929  yes,cygwin* | yes,mingw* | yes,pw32*)
20930    library_names_spec='$libname.dll.a'
20931    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20932    postinstall_cmds='base_file=`basename \${file}`~
20933      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20934      dldir=$destdir/`dirname \$dlpath`~
20935      test -d \$dldir || mkdir -p \$dldir~
20936      $install_prog $dir/$dlname \$dldir/$dlname~
20937      chmod a+x \$dldir/$dlname~
20938      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20939        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20940      fi'
20941    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20942      dlpath=$dir/\$dldll~
20943       $RM \$dlpath'
20944    shlibpath_overrides_runpath=yes
20945
20946    case $host_os in
20947    cygwin*)
20948      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20949      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20950      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20951      ;;
20952    mingw*)
20953      # MinGW DLLs use traditional 'lib' prefix
20954      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20955      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20956      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20957        # It is most probably a Windows format PATH printed by
20958        # mingw gcc, but we are running on Cygwin. Gcc prints its search
20959        # path with ; separators, and with drive letters. We can handle the
20960        # drive letters (cygwin fileutils understands them), so leave them,
20961        # especially as we might pass files found there to a mingw objdump,
20962        # which wouldn't understand a cygwinified path. Ahh.
20963        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20964      else
20965        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
20966      fi
20967      ;;
20968    pw32*)
20969      # pw32 DLLs use 'pw' prefix rather than 'lib'
20970      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20971      ;;
20972    esac
20973    ;;
20974
20975  *)
20976    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20977    ;;
20978  esac
20979  dynamic_linker='Win32 ld.exe'
20980  # FIXME: first we should search . and the directory the executable is in
20981  shlibpath_var=PATH
20982  ;;
20983
20984darwin* | rhapsody*)
20985  dynamic_linker="$host_os dyld"
20986  version_type=darwin
20987  need_lib_prefix=no
20988  need_version=no
20989  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20990  soname_spec='${libname}${release}${major}$shared_ext'
20991  shlibpath_overrides_runpath=yes
20992  shlibpath_var=DYLD_LIBRARY_PATH
20993  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20994
20995  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20996  ;;
20997
20998dgux*)
20999  version_type=linux
21000  need_lib_prefix=no
21001  need_version=no
21002  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21003  soname_spec='${libname}${release}${shared_ext}$major'
21004  shlibpath_var=LD_LIBRARY_PATH
21005  ;;
21006
21007freebsd1*)
21008  dynamic_linker=no
21009  ;;
21010
21011freebsd* | dragonfly*)
21012  # DragonFly does not have aout.  When/if they implement a new
21013  # versioning mechanism, adjust this.
21014  if test -x /usr/bin/objformat; then
21015    objformat=`/usr/bin/objformat`
21016  else
21017    case $host_os in
21018    freebsd[123]*) objformat=aout ;;
21019    *) objformat=elf ;;
21020    esac
21021  fi
21022  version_type=freebsd-$objformat
21023  case $version_type in
21024    freebsd-elf*)
21025      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21026      need_version=no
21027      need_lib_prefix=no
21028      ;;
21029    freebsd-*)
21030      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21031      need_version=yes
21032      ;;
21033  esac
21034  shlibpath_var=LD_LIBRARY_PATH
21035  case $host_os in
21036  freebsd2*)
21037    shlibpath_overrides_runpath=yes
21038    ;;
21039  freebsd3.[01]* | freebsdelf3.[01]*)
21040    shlibpath_overrides_runpath=yes
21041    hardcode_into_libs=yes
21042    ;;
21043  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21044  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21045    shlibpath_overrides_runpath=no
21046    hardcode_into_libs=yes
21047    ;;
21048  *) # from 4.6 on, and DragonFly
21049    shlibpath_overrides_runpath=yes
21050    hardcode_into_libs=yes
21051    ;;
21052  esac
21053  ;;
21054
21055gnu*)
21056  version_type=linux
21057  need_lib_prefix=no
21058  need_version=no
21059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21060  soname_spec='${libname}${release}${shared_ext}$major'
21061  shlibpath_var=LD_LIBRARY_PATH
21062  hardcode_into_libs=yes
21063  ;;
21064
21065hpux9* | hpux10* | hpux11*)
21066  # Give a soname corresponding to the major version so that dld.sl refuses to
21067  # link against other versions.
21068  version_type=sunos
21069  need_lib_prefix=no
21070  need_version=no
21071  case $host_cpu in
21072  ia64*)
21073    shrext_cmds='.so'
21074    hardcode_into_libs=yes
21075    dynamic_linker="$host_os dld.so"
21076    shlibpath_var=LD_LIBRARY_PATH
21077    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21078    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21079    soname_spec='${libname}${release}${shared_ext}$major'
21080    if test "X$HPUX_IA64_MODE" = X32; then
21081      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21082    else
21083      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21084    fi
21085    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21086    ;;
21087  hppa*64*)
21088    shrext_cmds='.sl'
21089    hardcode_into_libs=yes
21090    dynamic_linker="$host_os dld.sl"
21091    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21092    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21093    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21094    soname_spec='${libname}${release}${shared_ext}$major'
21095    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21096    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21097    ;;
21098  *)
21099    shrext_cmds='.sl'
21100    dynamic_linker="$host_os dld.sl"
21101    shlibpath_var=SHLIB_PATH
21102    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21103    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21104    soname_spec='${libname}${release}${shared_ext}$major'
21105    ;;
21106  esac
21107  # HP-UX runs *really* slowly unless shared libraries are mode 555.
21108  postinstall_cmds='chmod 555 $lib'
21109  ;;
21110
21111interix[3-9]*)
21112  version_type=linux
21113  need_lib_prefix=no
21114  need_version=no
21115  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21116  soname_spec='${libname}${release}${shared_ext}$major'
21117  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21118  shlibpath_var=LD_LIBRARY_PATH
21119  shlibpath_overrides_runpath=no
21120  hardcode_into_libs=yes
21121  ;;
21122
21123irix5* | irix6* | nonstopux*)
21124  case $host_os in
21125    nonstopux*) version_type=nonstopux ;;
21126    *)
21127	if test "$lt_cv_prog_gnu_ld" = yes; then
21128		version_type=linux
21129	else
21130		version_type=irix
21131	fi ;;
21132  esac
21133  need_lib_prefix=no
21134  need_version=no
21135  soname_spec='${libname}${release}${shared_ext}$major'
21136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21137  case $host_os in
21138  irix5* | nonstopux*)
21139    libsuff= shlibsuff=
21140    ;;
21141  *)
21142    case $LD in # libtool.m4 will add one of these switches to LD
21143    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21144      libsuff= shlibsuff= libmagic=32-bit;;
21145    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21146      libsuff=32 shlibsuff=N32 libmagic=N32;;
21147    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21148      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21149    *) libsuff= shlibsuff= libmagic=never-match;;
21150    esac
21151    ;;
21152  esac
21153  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21154  shlibpath_overrides_runpath=no
21155  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21156  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21157  hardcode_into_libs=yes
21158  ;;
21159
21160# No shared lib support for Linux oldld, aout, or coff.
21161linux*oldld* | linux*aout* | linux*coff*)
21162  dynamic_linker=no
21163  ;;
21164
21165# This must be Linux ELF.
21166linux* | k*bsd*-gnu)
21167  version_type=linux
21168  need_lib_prefix=no
21169  need_version=no
21170  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21171  soname_spec='${libname}${release}${shared_ext}$major'
21172  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21173  shlibpath_var=LD_LIBRARY_PATH
21174  shlibpath_overrides_runpath=no
21175  # Some binutils ld are patched to set DT_RUNPATH
21176  save_LDFLAGS=$LDFLAGS
21177  save_libdir=$libdir
21178  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21179       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21180  cat >conftest.$ac_ext <<_ACEOF
21181/* confdefs.h.  */
21182_ACEOF
21183cat confdefs.h >>conftest.$ac_ext
21184cat >>conftest.$ac_ext <<_ACEOF
21185/* end confdefs.h.  */
21186
21187int
21188main ()
21189{
21190
21191  ;
21192  return 0;
21193}
21194_ACEOF
21195rm -f conftest.$ac_objext conftest$ac_exeext
21196if { (ac_try="$ac_link"
21197case "(($ac_try" in
21198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21199  *) ac_try_echo=$ac_try;;
21200esac
21201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21202$as_echo "$ac_try_echo") >&5
21203  (eval "$ac_link") 2>conftest.er1
21204  ac_status=$?
21205  grep -v '^ *+' conftest.er1 >conftest.err
21206  rm -f conftest.er1
21207  cat conftest.err >&5
21208  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209  (exit $ac_status); } && {
21210	 test -z "$ac_cxx_werror_flag" ||
21211	 test ! -s conftest.err
21212       } && test -s conftest$ac_exeext && {
21213	 test "$cross_compiling" = yes ||
21214	 $as_test_x conftest$ac_exeext
21215       }; then
21216  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
21217  shlibpath_overrides_runpath=yes
21218fi
21219
21220else
21221  $as_echo "$as_me: failed program was:" >&5
21222sed 's/^/| /' conftest.$ac_ext >&5
21223
21224
21225fi
21226
21227rm -rf conftest.dSYM
21228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21229      conftest$ac_exeext conftest.$ac_ext
21230  LDFLAGS=$save_LDFLAGS
21231  libdir=$save_libdir
21232
21233  # This implies no fast_install, which is unacceptable.
21234  # Some rework will be needed to allow for fast_install
21235  # before this can be enabled.
21236  hardcode_into_libs=yes
21237
21238  # Append ld.so.conf contents to the search path
21239  if test -f /etc/ld.so.conf; then
21240    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' ' '`
21241    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21242  fi
21243
21244  # We used to test for /lib/ld.so.1 and disable shared libraries on
21245  # powerpc, because MkLinux only supported shared libraries with the
21246  # GNU dynamic linker.  Since this was broken with cross compilers,
21247  # most powerpc-linux boxes support dynamic linking these days and
21248  # people can always --disable-shared, the test was removed, and we
21249  # assume the GNU/Linux dynamic linker is in use.
21250  dynamic_linker='GNU/Linux ld.so'
21251  ;;
21252
21253netbsd*)
21254  version_type=sunos
21255  need_lib_prefix=no
21256  need_version=no
21257  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21258    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21259    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21260    dynamic_linker='NetBSD (a.out) ld.so'
21261  else
21262    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21263    soname_spec='${libname}${release}${shared_ext}$major'
21264    dynamic_linker='NetBSD ld.elf_so'
21265  fi
21266  shlibpath_var=LD_LIBRARY_PATH
21267  shlibpath_overrides_runpath=yes
21268  hardcode_into_libs=yes
21269  ;;
21270
21271newsos6)
21272  version_type=linux
21273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21274  shlibpath_var=LD_LIBRARY_PATH
21275  shlibpath_overrides_runpath=yes
21276  ;;
21277
21278*nto* | *qnx*)
21279  version_type=qnx
21280  need_lib_prefix=no
21281  need_version=no
21282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21283  soname_spec='${libname}${release}${shared_ext}$major'
21284  shlibpath_var=LD_LIBRARY_PATH
21285  shlibpath_overrides_runpath=no
21286  hardcode_into_libs=yes
21287  dynamic_linker='ldqnx.so'
21288  ;;
21289
21290openbsd*)
21291  version_type=sunos
21292  sys_lib_dlsearch_path_spec="/usr/lib"
21293  need_lib_prefix=no
21294  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21295  case $host_os in
21296    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
21297    *)				need_version=no  ;;
21298  esac
21299  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21300  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21301  shlibpath_var=LD_LIBRARY_PATH
21302  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21303    case $host_os in
21304      openbsd2.[89] | openbsd2.[89].*)
21305	shlibpath_overrides_runpath=no
21306	;;
21307      *)
21308	shlibpath_overrides_runpath=yes
21309	;;
21310      esac
21311  else
21312    shlibpath_overrides_runpath=yes
21313  fi
21314  ;;
21315
21316os2*)
21317  libname_spec='$name'
21318  shrext_cmds=".dll"
21319  need_lib_prefix=no
21320  library_names_spec='$libname${shared_ext} $libname.a'
21321  dynamic_linker='OS/2 ld.exe'
21322  shlibpath_var=LIBPATH
21323  ;;
21324
21325osf3* | osf4* | osf5*)
21326  version_type=osf
21327  need_lib_prefix=no
21328  need_version=no
21329  soname_spec='${libname}${release}${shared_ext}$major'
21330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21331  shlibpath_var=LD_LIBRARY_PATH
21332  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21333  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21334  ;;
21335
21336rdos*)
21337  dynamic_linker=no
21338  ;;
21339
21340solaris*)
21341  version_type=linux
21342  need_lib_prefix=no
21343  need_version=no
21344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21345  soname_spec='${libname}${release}${shared_ext}$major'
21346  shlibpath_var=LD_LIBRARY_PATH
21347  shlibpath_overrides_runpath=yes
21348  hardcode_into_libs=yes
21349  # ldd complains unless libraries are executable
21350  postinstall_cmds='chmod +x $lib'
21351  ;;
21352
21353sunos4*)
21354  version_type=sunos
21355  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21356  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21357  shlibpath_var=LD_LIBRARY_PATH
21358  shlibpath_overrides_runpath=yes
21359  if test "$with_gnu_ld" = yes; then
21360    need_lib_prefix=no
21361  fi
21362  need_version=yes
21363  ;;
21364
21365sysv4 | sysv4.3*)
21366  version_type=linux
21367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21368  soname_spec='${libname}${release}${shared_ext}$major'
21369  shlibpath_var=LD_LIBRARY_PATH
21370  case $host_vendor in
21371    sni)
21372      shlibpath_overrides_runpath=no
21373      need_lib_prefix=no
21374      runpath_var=LD_RUN_PATH
21375      ;;
21376    siemens)
21377      need_lib_prefix=no
21378      ;;
21379    motorola)
21380      need_lib_prefix=no
21381      need_version=no
21382      shlibpath_overrides_runpath=no
21383      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21384      ;;
21385  esac
21386  ;;
21387
21388sysv4*MP*)
21389  if test -d /usr/nec ;then
21390    version_type=linux
21391    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21392    soname_spec='$libname${shared_ext}.$major'
21393    shlibpath_var=LD_LIBRARY_PATH
21394  fi
21395  ;;
21396
21397sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21398  version_type=freebsd-elf
21399  need_lib_prefix=no
21400  need_version=no
21401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21402  soname_spec='${libname}${release}${shared_ext}$major'
21403  shlibpath_var=LD_LIBRARY_PATH
21404  shlibpath_overrides_runpath=yes
21405  hardcode_into_libs=yes
21406  if test "$with_gnu_ld" = yes; then
21407    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21408  else
21409    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21410    case $host_os in
21411      sco3.2v5*)
21412        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21413	;;
21414    esac
21415  fi
21416  sys_lib_dlsearch_path_spec='/usr/lib'
21417  ;;
21418
21419tpf*)
21420  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21421  version_type=linux
21422  need_lib_prefix=no
21423  need_version=no
21424  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21425  shlibpath_var=LD_LIBRARY_PATH
21426  shlibpath_overrides_runpath=no
21427  hardcode_into_libs=yes
21428  ;;
21429
21430uts4*)
21431  version_type=linux
21432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21433  soname_spec='${libname}${release}${shared_ext}$major'
21434  shlibpath_var=LD_LIBRARY_PATH
21435  ;;
21436
21437*)
21438  dynamic_linker=no
21439  ;;
21440esac
21441{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21442$as_echo "$dynamic_linker" >&6; }
21443test "$dynamic_linker" = no && can_build_shared=no
21444
21445variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21446if test "$GCC" = yes; then
21447  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21448fi
21449
21450if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21451  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21452fi
21453if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21454  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21455fi
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492    { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21493$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21494hardcode_action_CXX=
21495if test -n "$hardcode_libdir_flag_spec_CXX" ||
21496   test -n "$runpath_var_CXX" ||
21497   test "X$hardcode_automatic_CXX" = "Xyes" ; then
21498
21499  # We can hardcode non-existent directories.
21500  if test "$hardcode_direct_CXX" != no &&
21501     # If the only mechanism to avoid hardcoding is shlibpath_var, we
21502     # have to relink, otherwise we might link with an installed library
21503     # when we should be linking with a yet-to-be-installed one
21504     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21505     test "$hardcode_minus_L_CXX" != no; then
21506    # Linking always hardcodes the temporary library directory.
21507    hardcode_action_CXX=relink
21508  else
21509    # We can link without hardcoding, and we can hardcode nonexisting dirs.
21510    hardcode_action_CXX=immediate
21511  fi
21512else
21513  # We cannot hardcode anything, or else we can only hardcode existing
21514  # directories.
21515  hardcode_action_CXX=unsupported
21516fi
21517{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
21518$as_echo "$hardcode_action_CXX" >&6; }
21519
21520if test "$hardcode_action_CXX" = relink ||
21521   test "$inherit_rpath_CXX" = yes; then
21522  # Fast installation is not supported
21523  enable_fast_install=no
21524elif test "$shlibpath_overrides_runpath" = yes ||
21525     test "$enable_shared" = no; then
21526  # Fast installation is not necessary
21527  enable_fast_install=needless
21528fi
21529
21530
21531
21532
21533
21534
21535
21536  fi # test -n "$compiler"
21537
21538  CC=$lt_save_CC
21539  LDCXX=$LD
21540  LD=$lt_save_LD
21541  GCC=$lt_save_GCC
21542  with_gnu_ld=$lt_save_with_gnu_ld
21543  lt_cv_path_LDCXX=$lt_cv_path_LD
21544  lt_cv_path_LD=$lt_save_path_LD
21545  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21546  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21547fi # test "$_lt_caught_CXX_error" != yes
21548
21549ac_ext=c
21550ac_cpp='$CPP $CPPFLAGS'
21551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21553ac_compiler_gnu=$ac_cv_c_compiler_gnu
21554
21555
21556    else
21557        WITH_CXX='no'
21558        CXX_NAME=''
21559    fi
21560
21561
21562
21563
21564# Check whether --with-perl was given.
21565if test "${with_perl+set}" = set; then
21566  withval=$with_perl; ac_cv_with_perl=$withval
21567else
21568  ac_cv_with_perl=no
21569fi
21570
21571    { $as_echo "$as_me:$LINENO: checking whether to build Perl bindings to C API" >&5
21572$as_echo_n "checking whether to build Perl bindings to C API... " >&6; }
21573if test "${ac_cv_with_perl+set}" = set; then
21574  $as_echo_n "(cached) " >&6
21575else
21576  ac_cv_with_perl=no
21577fi
21578{ $as_echo "$as_me:$LINENO: result: $ac_cv_with_perl" >&5
21579$as_echo "$ac_cv_with_perl" >&6; }
21580
21581# Check whether --with-perl-compat was given.
21582if test "${with_perl_compat+set}" = set; then
21583  withval=$with_perl_compat; ac_cv_with_perl_compat=$withval
21584else
21585  ac_cv_with_perl_compat=no
21586fi
21587
21588    { $as_echo "$as_me:$LINENO: checking whether to build Perl compatibility API" >&5
21589$as_echo_n "checking whether to build Perl compatibility API... " >&6; }
21590if test "${ac_cv_with_perl_compat+set}" = set; then
21591  $as_echo_n "(cached) " >&6
21592else
21593  ac_cv_with_perl_compat=no
21594fi
21595{ $as_echo "$as_me:$LINENO: result: $ac_cv_with_perl_compat" >&5
21596$as_echo "$ac_cv_with_perl_compat" >&6; }
21597    if test ".$ac_cv_with_perl" = ".yes"; then
21598
21599cat >>confdefs.h <<\_ACEOF
21600#define WITH_PERL 1
21601_ACEOF
21602
21603        WITH_PERL='yes'
21604        PERL_NAME='$(PERL_NAME)'
21605    else
21606        WITH_PERL='no'
21607        PERL_NAME=''
21608    fi
21609    if test ".$ac_cv_with_perl_compat" = ".yes"; then
21610
21611cat >>confdefs.h <<\_ACEOF
21612#define WITH_PERL_COMPAT 1
21613_ACEOF
21614
21615        WITH_PERL_COMPAT=1
21616    else
21617        WITH_PERL_COMPAT=0
21618    fi
21619
21620
21621
21622    # Extract the first word of "perl", so it can be a program name with args.
21623set dummy perl; ac_word=$2
21624{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21625$as_echo_n "checking for $ac_word... " >&6; }
21626if test "${ac_cv_path_PERL+set}" = set; then
21627  $as_echo_n "(cached) " >&6
21628else
21629  case $PERL in
21630  [\\/]* | ?:[\\/]*)
21631  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
21632  ;;
21633  *)
21634  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21635for as_dir in $PATH
21636do
21637  IFS=$as_save_IFS
21638  test -z "$as_dir" && as_dir=.
21639  for ac_exec_ext in '' $ac_executable_extensions; do
21640  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21641    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
21642    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21643    break 2
21644  fi
21645done
21646done
21647IFS=$as_save_IFS
21648
21649  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="NA"
21650  ;;
21651esac
21652fi
21653PERL=$ac_cv_path_PERL
21654if test -n "$PERL"; then
21655  { $as_echo "$as_me:$LINENO: result: $PERL" >&5
21656$as_echo "$PERL" >&6; }
21657else
21658  { $as_echo "$as_me:$LINENO: result: no" >&5
21659$as_echo "no" >&6; }
21660fi
21661
21662
21663    if test ".$ac_cv_with_perl" = ".yes" -a ".$PERL" = ".NA"; then
21664        { { $as_echo "$as_me:$LINENO: error: required Perl interpreter not found in \$PATH" >&5
21665$as_echo "$as_me: error: required Perl interpreter not found in \$PATH" >&2;}
21666   { (exit 1); exit 1; }; }
21667    fi
21668
21669
21670# Check whether --with-php was given.
21671if test "${with_php+set}" = set; then
21672  withval=$with_php; ac_cv_with_php=$withval
21673else
21674  ac_cv_with_php=no
21675fi
21676
21677    { $as_echo "$as_me:$LINENO: checking whether to build PHP bindings to C API" >&5
21678$as_echo_n "checking whether to build PHP bindings to C API... " >&6; }
21679if test "${ac_cv_with_php+set}" = set; then
21680  $as_echo_n "(cached) " >&6
21681else
21682  ac_cv_with_php=no
21683fi
21684{ $as_echo "$as_me:$LINENO: result: $ac_cv_with_php" >&5
21685$as_echo "$ac_cv_with_php" >&6; }
21686    if test ".$ac_cv_with_php" = ".yes"; then
21687
21688cat >>confdefs.h <<\_ACEOF
21689#define WITH_PHP 1
21690_ACEOF
21691
21692        WITH_PHP='yes'
21693        PHP_NAME='$(PHP_NAME)'
21694    else
21695        WITH_PHP='no'
21696        PHP_NAME=''
21697    fi
21698
21699
21700    for ac_prog in php5 php
21701do
21702  # Extract the first word of "$ac_prog", so it can be a program name with args.
21703set dummy $ac_prog; ac_word=$2
21704{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21705$as_echo_n "checking for $ac_word... " >&6; }
21706if test "${ac_cv_path_PHP+set}" = set; then
21707  $as_echo_n "(cached) " >&6
21708else
21709  case $PHP in
21710  [\\/]* | ?:[\\/]*)
21711  ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
21712  ;;
21713  *)
21714  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21715for as_dir in $PATH
21716do
21717  IFS=$as_save_IFS
21718  test -z "$as_dir" && as_dir=.
21719  for ac_exec_ext in '' $ac_executable_extensions; do
21720  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21721    ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
21722    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21723    break 2
21724  fi
21725done
21726done
21727IFS=$as_save_IFS
21728
21729  ;;
21730esac
21731fi
21732PHP=$ac_cv_path_PHP
21733if test -n "$PHP"; then
21734  { $as_echo "$as_me:$LINENO: result: $PHP" >&5
21735$as_echo "$PHP" >&6; }
21736else
21737  { $as_echo "$as_me:$LINENO: result: no" >&5
21738$as_echo "no" >&6; }
21739fi
21740
21741
21742  test -n "$PHP" && break
21743done
21744test -n "$PHP" || PHP="NA"
21745
21746    if test ".$ac_cv_with_php" = ".yes" -a ".$PHP" = ".NA"; then
21747        { { $as_echo "$as_me:$LINENO: error: required PHP interpreter not found in \$PATH" >&5
21748$as_echo "$as_me: error: required PHP interpreter not found in \$PATH" >&2;}
21749   { (exit 1); exit 1; }; }
21750    fi
21751    if test ".$ac_cv_with_php" = ".yes"; then
21752        (cd php && make -f Makefile.local config PHP=$PHP)
21753    fi
21754
21755
21756# Check whether --with-pgsql was given.
21757if test "${with_pgsql+set}" = set; then
21758  withval=$with_pgsql; ac_cv_with_pgsql=$withval
21759else
21760  ac_cv_with_pgsql=no
21761fi
21762
21763    { $as_echo "$as_me:$LINENO: checking whether to build PostgreSQL bindings to C API" >&5
21764$as_echo_n "checking whether to build PostgreSQL bindings to C API... " >&6; }
21765if test "${ac_cv_with_pgsql+set}" = set; then
21766  $as_echo_n "(cached) " >&6
21767else
21768  ac_cv_with_pgsql=no
21769fi
21770{ $as_echo "$as_me:$LINENO: result: $ac_cv_with_pgsql" >&5
21771$as_echo "$ac_cv_with_pgsql" >&6; }
21772    if test ".$ac_cv_with_pgsql" = ".yes"; then
21773
21774cat >>confdefs.h <<\_ACEOF
21775#define WITH_PGSQL 1
21776_ACEOF
21777
21778        WITH_PGSQL='yes'
21779        PGSQL_NAME='$(PGSQL_NAME)'
21780    else
21781        WITH_PGSQL='no'
21782        PGSQL_NAME=''
21783    fi
21784
21785
21786    for ac_prog in pg_config
21787do
21788  # Extract the first word of "$ac_prog", so it can be a program name with args.
21789set dummy $ac_prog; ac_word=$2
21790{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
21791$as_echo_n "checking for $ac_word... " >&6; }
21792if test "${ac_cv_path_PG_CONFIG+set}" = set; then
21793  $as_echo_n "(cached) " >&6
21794else
21795  case $PG_CONFIG in
21796  [\\/]* | ?:[\\/]*)
21797  ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
21798  ;;
21799  *)
21800  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21801for as_dir in $PATH
21802do
21803  IFS=$as_save_IFS
21804  test -z "$as_dir" && as_dir=.
21805  for ac_exec_ext in '' $ac_executable_extensions; do
21806  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21807    ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21808    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21809    break 2
21810  fi
21811done
21812done
21813IFS=$as_save_IFS
21814
21815  ;;
21816esac
21817fi
21818PG_CONFIG=$ac_cv_path_PG_CONFIG
21819if test -n "$PG_CONFIG"; then
21820  { $as_echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
21821$as_echo "$PG_CONFIG" >&6; }
21822else
21823  { $as_echo "$as_me:$LINENO: result: no" >&5
21824$as_echo "no" >&6; }
21825fi
21826
21827
21828  test -n "$PG_CONFIG" && break
21829done
21830test -n "$PG_CONFIG" || PG_CONFIG="NA"
21831
21832    if test ".$ac_cv_with_pgsql" = ".yes" -a ".$PG_CONFIG" = ".NA"; then
21833        { { $as_echo "$as_me:$LINENO: error: required PostgreSQL pg_config utility not found in \$PATH" >&5
21834$as_echo "$as_me: error: required PostgreSQL pg_config utility not found in \$PATH" >&2;}
21835   { (exit 1); exit 1; }; }
21836    fi
21837    if test ".$ac_cv_with_pgsql" = ".yes" -a ".`${MAKE-make} -v 2>/dev/null | grep GNU`" = .; then
21838        { { $as_echo "$as_me:$LINENO: error: PostgreSQL bindings require GNU make to build" >&5
21839$as_echo "$as_me: error: PostgreSQL bindings require GNU make to build" >&2;}
21840   { (exit 1); exit 1; }; }
21841    fi
21842
21843
21844ac_config_headers="$ac_config_headers config.h"
21845
21846ac_config_files="$ac_config_files Makefile uuid-config uuid.pc uuid.h"
21847
21848ac_config_commands="$ac_config_commands adjustment"
21849
21850cat >confcache <<\_ACEOF
21851# This file is a shell script that caches the results of configure
21852# tests run on this system so they can be shared between configure
21853# scripts and configure runs, see configure's option --config-cache.
21854# It is not useful on other systems.  If it contains results you don't
21855# want to keep, you may remove or edit it.
21856#
21857# config.status only pays attention to the cache file if you give it
21858# the --recheck option to rerun configure.
21859#
21860# `ac_cv_env_foo' variables (set or unset) will be overridden when
21861# loading this file, other *unset* `ac_cv_foo' will be assigned the
21862# following values.
21863
21864_ACEOF
21865
21866# The following way of writing the cache mishandles newlines in values,
21867# but we know of no workaround that is simple, portable, and efficient.
21868# So, we kill variables containing newlines.
21869# Ultrix sh set writes to stderr and can't be redirected directly,
21870# and sets the high bit in the cache file unless we assign to the vars.
21871(
21872  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21873    eval ac_val=\$$ac_var
21874    case $ac_val in #(
21875    *${as_nl}*)
21876      case $ac_var in #(
21877      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21878$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21879      esac
21880      case $ac_var in #(
21881      _ | IFS | as_nl) ;; #(
21882      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21883      *) $as_unset $ac_var ;;
21884      esac ;;
21885    esac
21886  done
21887
21888  (set) 2>&1 |
21889    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21890    *${as_nl}ac_space=\ *)
21891      # `set' does not quote correctly, so add quotes (double-quote
21892      # substitution turns \\\\ into \\, and sed turns \\ into \).
21893      sed -n \
21894	"s/'/'\\\\''/g;
21895	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21896      ;; #(
21897    *)
21898      # `set' quotes correctly as required by POSIX, so do not add quotes.
21899      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21900      ;;
21901    esac |
21902    sort
21903) |
21904  sed '
21905     /^ac_cv_env_/b end
21906     t clear
21907     :clear
21908     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21909     t end
21910     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21911     :end' >>confcache
21912if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21913  if test -w "$cache_file"; then
21914    test "x$cache_file" != "x/dev/null" &&
21915      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
21916$as_echo "$as_me: updating cache $cache_file" >&6;}
21917    cat confcache >$cache_file
21918  else
21919    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21920$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21921  fi
21922fi
21923rm -f confcache
21924
21925test "x$prefix" = xNONE && prefix=$ac_default_prefix
21926# Let make expand exec_prefix.
21927test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21928
21929DEFS=-DHAVE_CONFIG_H
21930
21931ac_libobjs=
21932ac_ltlibobjs=
21933for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21934  # 1. Remove the extension, and $U if already installed.
21935  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21936  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21937  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21938  #    will be set to the directory where LIBOBJS objects are built.
21939  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21940  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21941done
21942LIBOBJS=$ac_libobjs
21943
21944LTLIBOBJS=$ac_ltlibobjs
21945
21946
21947
21948: ${CONFIG_STATUS=./config.status}
21949ac_write_fail=0
21950ac_clean_files_save=$ac_clean_files
21951ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21952{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21953$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21954cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21955#! $SHELL
21956# Generated by $as_me.
21957# Run this file to recreate the current configuration.
21958# Compiler output produced by configure, useful for debugging
21959# configure, is in config.log if it exists.
21960
21961debug=false
21962ac_cs_recheck=false
21963ac_cs_silent=false
21964SHELL=\${CONFIG_SHELL-$SHELL}
21965_ACEOF
21966
21967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21968## --------------------- ##
21969## M4sh Initialization.  ##
21970## --------------------- ##
21971
21972# Be more Bourne compatible
21973DUALCASE=1; export DUALCASE # for MKS sh
21974if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21975  emulate sh
21976  NULLCMD=:
21977  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21978  # is contrary to our usage.  Disable this feature.
21979  alias -g '${1+"$@"}'='"$@"'
21980  setopt NO_GLOB_SUBST
21981else
21982  case `(set -o) 2>/dev/null` in
21983  *posix*) set -o posix ;;
21984esac
21985
21986fi
21987
21988
21989
21990
21991# PATH needs CR
21992# Avoid depending upon Character Ranges.
21993as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21994as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21995as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21996as_cr_digits='0123456789'
21997as_cr_alnum=$as_cr_Letters$as_cr_digits
21998
21999as_nl='
22000'
22001export as_nl
22002# Printing a long string crashes Solaris 7 /usr/bin/printf.
22003as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22004as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22005as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22006if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22007  as_echo='printf %s\n'
22008  as_echo_n='printf %s'
22009else
22010  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22011    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22012    as_echo_n='/usr/ucb/echo -n'
22013  else
22014    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22015    as_echo_n_body='eval
22016      arg=$1;
22017      case $arg in
22018      *"$as_nl"*)
22019	expr "X$arg" : "X\\(.*\\)$as_nl";
22020	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22021      esac;
22022      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22023    '
22024    export as_echo_n_body
22025    as_echo_n='sh -c $as_echo_n_body as_echo'
22026  fi
22027  export as_echo_body
22028  as_echo='sh -c $as_echo_body as_echo'
22029fi
22030
22031# The user is always right.
22032if test "${PATH_SEPARATOR+set}" != set; then
22033  PATH_SEPARATOR=:
22034  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22035    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22036      PATH_SEPARATOR=';'
22037  }
22038fi
22039
22040# Support unset when possible.
22041if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22042  as_unset=unset
22043else
22044  as_unset=false
22045fi
22046
22047
22048# IFS
22049# We need space, tab and new line, in precisely that order.  Quoting is
22050# there to prevent editors from complaining about space-tab.
22051# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22052# splitting by setting IFS to empty value.)
22053IFS=" ""	$as_nl"
22054
22055# Find who we are.  Look in the path if we contain no directory separator.
22056case $0 in
22057  *[\\/]* ) as_myself=$0 ;;
22058  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22059for as_dir in $PATH
22060do
22061  IFS=$as_save_IFS
22062  test -z "$as_dir" && as_dir=.
22063  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22064done
22065IFS=$as_save_IFS
22066
22067     ;;
22068esac
22069# We did not find ourselves, most probably we were run as `sh COMMAND'
22070# in which case we are not to be found in the path.
22071if test "x$as_myself" = x; then
22072  as_myself=$0
22073fi
22074if test ! -f "$as_myself"; then
22075  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22076  { (exit 1); exit 1; }
22077fi
22078
22079# Work around bugs in pre-3.0 UWIN ksh.
22080for as_var in ENV MAIL MAILPATH
22081do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22082done
22083PS1='$ '
22084PS2='> '
22085PS4='+ '
22086
22087# NLS nuisances.
22088LC_ALL=C
22089export LC_ALL
22090LANGUAGE=C
22091export LANGUAGE
22092
22093# Required to use basename.
22094if expr a : '\(a\)' >/dev/null 2>&1 &&
22095   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22096  as_expr=expr
22097else
22098  as_expr=false
22099fi
22100
22101if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22102  as_basename=basename
22103else
22104  as_basename=false
22105fi
22106
22107
22108# Name of the executable.
22109as_me=`$as_basename -- "$0" ||
22110$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22111	 X"$0" : 'X\(//\)$' \| \
22112	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22113$as_echo X/"$0" |
22114    sed '/^.*\/\([^/][^/]*\)\/*$/{
22115	    s//\1/
22116	    q
22117	  }
22118	  /^X\/\(\/\/\)$/{
22119	    s//\1/
22120	    q
22121	  }
22122	  /^X\/\(\/\).*/{
22123	    s//\1/
22124	    q
22125	  }
22126	  s/.*/./; q'`
22127
22128# CDPATH.
22129$as_unset CDPATH
22130
22131
22132
22133  as_lineno_1=$LINENO
22134  as_lineno_2=$LINENO
22135  test "x$as_lineno_1" != "x$as_lineno_2" &&
22136  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22137
22138  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22139  # uniformly replaced by the line number.  The first 'sed' inserts a
22140  # line-number line after each line using $LINENO; the second 'sed'
22141  # does the real work.  The second script uses 'N' to pair each
22142  # line-number line with the line containing $LINENO, and appends
22143  # trailing '-' during substitution so that $LINENO is not a special
22144  # case at line end.
22145  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22146  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22147  # E. McMahon (1931-1989) for sed's syntax.  :-)
22148  sed -n '
22149    p
22150    /[$]LINENO/=
22151  ' <$as_myself |
22152    sed '
22153      s/[$]LINENO.*/&-/
22154      t lineno
22155      b
22156      :lineno
22157      N
22158      :loop
22159      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22160      t loop
22161      s/-\n.*//
22162    ' >$as_me.lineno &&
22163  chmod +x "$as_me.lineno" ||
22164    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22165   { (exit 1); exit 1; }; }
22166
22167  # Don't try to exec as it changes $[0], causing all sort of problems
22168  # (the dirname of $[0] is not the place where we might find the
22169  # original and so on.  Autoconf is especially sensitive to this).
22170  . "./$as_me.lineno"
22171  # Exit status is that of the last command.
22172  exit
22173}
22174
22175
22176if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22177  as_dirname=dirname
22178else
22179  as_dirname=false
22180fi
22181
22182ECHO_C= ECHO_N= ECHO_T=
22183case `echo -n x` in
22184-n*)
22185  case `echo 'x\c'` in
22186  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22187  *)   ECHO_C='\c';;
22188  esac;;
22189*)
22190  ECHO_N='-n';;
22191esac
22192if expr a : '\(a\)' >/dev/null 2>&1 &&
22193   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22194  as_expr=expr
22195else
22196  as_expr=false
22197fi
22198
22199rm -f conf$$ conf$$.exe conf$$.file
22200if test -d conf$$.dir; then
22201  rm -f conf$$.dir/conf$$.file
22202else
22203  rm -f conf$$.dir
22204  mkdir conf$$.dir 2>/dev/null
22205fi
22206if (echo >conf$$.file) 2>/dev/null; then
22207  if ln -s conf$$.file conf$$ 2>/dev/null; then
22208    as_ln_s='ln -s'
22209    # ... but there are two gotchas:
22210    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22211    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22212    # In both cases, we have to default to `cp -p'.
22213    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22214      as_ln_s='cp -p'
22215  elif ln conf$$.file conf$$ 2>/dev/null; then
22216    as_ln_s=ln
22217  else
22218    as_ln_s='cp -p'
22219  fi
22220else
22221  as_ln_s='cp -p'
22222fi
22223rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22224rmdir conf$$.dir 2>/dev/null
22225
22226if mkdir -p . 2>/dev/null; then
22227  as_mkdir_p=:
22228else
22229  test -d ./-p && rmdir ./-p
22230  as_mkdir_p=false
22231fi
22232
22233if test -x / >/dev/null 2>&1; then
22234  as_test_x='test -x'
22235else
22236  if ls -dL / >/dev/null 2>&1; then
22237    as_ls_L_option=L
22238  else
22239    as_ls_L_option=
22240  fi
22241  as_test_x='
22242    eval sh -c '\''
22243      if test -d "$1"; then
22244	test -d "$1/.";
22245      else
22246	case $1 in
22247	-*)set "./$1";;
22248	esac;
22249	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22250	???[sx]*):;;*)false;;esac;fi
22251    '\'' sh
22252  '
22253fi
22254as_executable_p=$as_test_x
22255
22256# Sed expression to map a string onto a valid CPP name.
22257as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22258
22259# Sed expression to map a string onto a valid variable name.
22260as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22261
22262
22263exec 6>&1
22264
22265# Save the log message, to keep $[0] and so on meaningful, and to
22266# report actual input values of CONFIG_FILES etc. instead of their
22267# values after options handling.
22268ac_log="
22269This file was extended by $as_me, which was
22270generated by GNU Autoconf 2.62 (OpenPKG-CURRENT).  Invocation command line was
22271
22272  CONFIG_FILES    = $CONFIG_FILES
22273  CONFIG_HEADERS  = $CONFIG_HEADERS
22274  CONFIG_LINKS    = $CONFIG_LINKS
22275  CONFIG_COMMANDS = $CONFIG_COMMANDS
22276  $ $0 $@
22277
22278on `(hostname || uname -n) 2>/dev/null | sed 1q`
22279"
22280
22281_ACEOF
22282
22283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22284# Files that config.status was made for.
22285config_files="$ac_config_files"
22286config_headers="$ac_config_headers"
22287config_commands="$ac_config_commands"
22288
22289_ACEOF
22290
22291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22292ac_cs_usage="\
22293\`$as_me' instantiates files from templates according to the
22294current configuration.
22295
22296Usage: $0 [OPTIONS] [FILE]...
22297
22298  -h, --help       print this help, then exit
22299  -V, --version    print version number and configuration settings, then exit
22300  -q, --quiet      do not print progress messages
22301  -d, --debug      don't remove temporary files
22302      --recheck    update $as_me by reconfiguring in the same conditions
22303  --file=FILE[:TEMPLATE]
22304                   instantiate the configuration file FILE
22305  --header=FILE[:TEMPLATE]
22306                   instantiate the configuration header FILE
22307
22308Configuration files:
22309$config_files
22310
22311Configuration headers:
22312$config_headers
22313
22314Configuration commands:
22315$config_commands
22316
22317Report bugs to <bug-autoconf@gnu.org>."
22318
22319_ACEOF
22320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22321ac_cs_version="\\
22322config.status
22323configured by $0, generated by GNU Autoconf 2.62 (OpenPKG-CURRENT),
22324  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22325
22326Copyright (C) 2008 Free Software Foundation, Inc.
22327This config.status script is free software; the Free Software Foundation
22328gives unlimited permission to copy, distribute and modify it."
22329
22330ac_pwd='$ac_pwd'
22331srcdir='$srcdir'
22332test -n "\$AWK" || AWK=awk
22333_ACEOF
22334
22335cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22336# The default lists apply if the user does not specify any file.
22337ac_need_defaults=:
22338while test $# != 0
22339do
22340  case $1 in
22341  --*=*)
22342    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22343    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22344    ac_shift=:
22345    ;;
22346  *)
22347    ac_option=$1
22348    ac_optarg=$2
22349    ac_shift=shift
22350    ;;
22351  esac
22352
22353  case $ac_option in
22354  # Handling of the options.
22355  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22356    ac_cs_recheck=: ;;
22357  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22358    $as_echo "$ac_cs_version"; exit ;;
22359  --debug | --debu | --deb | --de | --d | -d )
22360    debug=: ;;
22361  --file | --fil | --fi | --f )
22362    $ac_shift
22363    case $ac_optarg in
22364    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22365    esac
22366    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
22367    ac_need_defaults=false;;
22368  --header | --heade | --head | --hea )
22369    $ac_shift
22370    case $ac_optarg in
22371    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22372    esac
22373    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
22374    ac_need_defaults=false;;
22375  --he | --h)
22376    # Conflict between --help and --header
22377    { $as_echo "$as_me: error: ambiguous option: $1
22378Try \`$0 --help' for more information." >&2
22379   { (exit 1); exit 1; }; };;
22380  --help | --hel | -h )
22381    $as_echo "$ac_cs_usage"; exit ;;
22382  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22383  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22384    ac_cs_silent=: ;;
22385
22386  # This is an error.
22387  -*) { $as_echo "$as_me: error: unrecognized option: $1
22388Try \`$0 --help' for more information." >&2
22389   { (exit 1); exit 1; }; } ;;
22390
22391  *) ac_config_targets="$ac_config_targets $1"
22392     ac_need_defaults=false ;;
22393
22394  esac
22395  shift
22396done
22397
22398ac_configure_extra_args=
22399
22400if $ac_cs_silent; then
22401  exec 6>/dev/null
22402  ac_configure_extra_args="$ac_configure_extra_args --silent"
22403fi
22404
22405_ACEOF
22406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22407if \$ac_cs_recheck; then
22408  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22409  shift
22410  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22411  CONFIG_SHELL='$SHELL'
22412  export CONFIG_SHELL
22413  exec "\$@"
22414fi
22415
22416_ACEOF
22417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22418exec 5>>config.log
22419{
22420  echo
22421  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22422## Running $as_me. ##
22423_ASBOX
22424  $as_echo "$ac_log"
22425} >&5
22426
22427_ACEOF
22428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22429#
22430# INIT-COMMANDS
22431#
22432
22433
22434# The HP-UX ksh and POSIX shell print the target directory to stdout
22435# if CDPATH is set.
22436(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22437
22438sed_quote_subst='$sed_quote_subst'
22439double_quote_subst='$double_quote_subst'
22440delay_variable_subst='$delay_variable_subst'
22441macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
22442macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
22443enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
22444enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
22445pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
22446enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
22447host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
22448host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
22449host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
22450build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
22451build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
22452build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
22453SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
22454Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
22455GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
22456EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
22457FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
22458LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
22459NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
22460LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
22461max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
22462ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
22463exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
22464lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
22465lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
22466lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
22467reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
22468reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22469deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
22470file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
22471AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
22472AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22473STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
22474RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
22475old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22476old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22477old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22478CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
22479CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
22480compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
22481GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
22482lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
22483lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
22484lt_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"`'
22485lt_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"`'
22486objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
22487SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
22488ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
22489MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
22490lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
22491lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
22492lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
22493lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
22494lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
22495need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
22496DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
22497NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
22498LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
22499OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
22500OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
22501libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
22502shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22503extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22504archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
22505enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
22506export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22507whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22508compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
22509old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22510old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22511archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22512archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22513module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22514module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22515with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
22516allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22517no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
22518hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
22519hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
22520hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
22521hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
22522hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
22523hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
22524hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22525hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
22526inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
22527link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
22528fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
22529always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
22530export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22531exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22532include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
22533prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22534file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
22535variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
22536need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
22537need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
22538version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
22539runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22540shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
22541shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
22542libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22543library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
22544soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
22545postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22546postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22547finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
22548finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
22549hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
22550sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22551sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
22552hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
22553enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
22554enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
22555enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
22556old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
22557striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
22558compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
22559predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
22560postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
22561predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
22562postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
22563compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
22564LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22565old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22566compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22567GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22568lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22569lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22570lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22571lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22572lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22573archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22574enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22575export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22576whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22577compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22578old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22579old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22580archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22581archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22582module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22583module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22584with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22585allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22586no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22587hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22588hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22589hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22590hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22591hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22592hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22593hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22594hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22595inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22596link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22597fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22598always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22599export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22600exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22601include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22602prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22603file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22604hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22605compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22606predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22607postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22608predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22609postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22610compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
22611
22612LTCC='$LTCC'
22613LTCFLAGS='$LTCFLAGS'
22614compiler='$compiler_DEFAULT'
22615
22616# Quote evaled strings.
22617for var in SED \
22618GREP \
22619EGREP \
22620FGREP \
22621LD \
22622NM \
22623LN_S \
22624lt_SP2NL \
22625lt_NL2SP \
22626reload_flag \
22627deplibs_check_method \
22628file_magic_cmd \
22629AR \
22630AR_FLAGS \
22631STRIP \
22632RANLIB \
22633CC \
22634CFLAGS \
22635compiler \
22636lt_cv_sys_global_symbol_pipe \
22637lt_cv_sys_global_symbol_to_cdecl \
22638lt_cv_sys_global_symbol_to_c_name_address \
22639lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22640SHELL \
22641ECHO \
22642lt_prog_compiler_no_builtin_flag \
22643lt_prog_compiler_wl \
22644lt_prog_compiler_pic \
22645lt_prog_compiler_static \
22646lt_cv_prog_compiler_c_o \
22647need_locks \
22648DSYMUTIL \
22649NMEDIT \
22650LIPO \
22651OTOOL \
22652OTOOL64 \
22653shrext_cmds \
22654export_dynamic_flag_spec \
22655whole_archive_flag_spec \
22656compiler_needs_object \
22657with_gnu_ld \
22658allow_undefined_flag \
22659no_undefined_flag \
22660hardcode_libdir_flag_spec \
22661hardcode_libdir_flag_spec_ld \
22662hardcode_libdir_separator \
22663fix_srcfile_path \
22664exclude_expsyms \
22665include_expsyms \
22666file_list_spec \
22667variables_saved_for_relink \
22668libname_spec \
22669library_names_spec \
22670soname_spec \
22671finish_eval \
22672old_striplib \
22673striplib \
22674compiler_lib_search_dirs \
22675predep_objects \
22676postdep_objects \
22677predeps \
22678postdeps \
22679compiler_lib_search_path \
22680LD_CXX \
22681compiler_CXX \
22682lt_prog_compiler_no_builtin_flag_CXX \
22683lt_prog_compiler_wl_CXX \
22684lt_prog_compiler_pic_CXX \
22685lt_prog_compiler_static_CXX \
22686lt_cv_prog_compiler_c_o_CXX \
22687export_dynamic_flag_spec_CXX \
22688whole_archive_flag_spec_CXX \
22689compiler_needs_object_CXX \
22690with_gnu_ld_CXX \
22691allow_undefined_flag_CXX \
22692no_undefined_flag_CXX \
22693hardcode_libdir_flag_spec_CXX \
22694hardcode_libdir_flag_spec_ld_CXX \
22695hardcode_libdir_separator_CXX \
22696fix_srcfile_path_CXX \
22697exclude_expsyms_CXX \
22698include_expsyms_CXX \
22699file_list_spec_CXX \
22700compiler_lib_search_dirs_CXX \
22701predep_objects_CXX \
22702postdep_objects_CXX \
22703predeps_CXX \
22704postdeps_CXX \
22705compiler_lib_search_path_CXX; do
22706    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22707    *[\\\\\\\`\\"\\\$]*)
22708      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22709      ;;
22710    *)
22711      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22712      ;;
22713    esac
22714done
22715
22716# Double-quote double-evaled strings.
22717for var in reload_cmds \
22718old_postinstall_cmds \
22719old_postuninstall_cmds \
22720old_archive_cmds \
22721extract_expsyms_cmds \
22722old_archive_from_new_cmds \
22723old_archive_from_expsyms_cmds \
22724archive_cmds \
22725archive_expsym_cmds \
22726module_cmds \
22727module_expsym_cmds \
22728export_symbols_cmds \
22729prelink_cmds \
22730postinstall_cmds \
22731postuninstall_cmds \
22732finish_cmds \
22733sys_lib_search_path_spec \
22734sys_lib_dlsearch_path_spec \
22735old_archive_cmds_CXX \
22736old_archive_from_new_cmds_CXX \
22737old_archive_from_expsyms_cmds_CXX \
22738archive_cmds_CXX \
22739archive_expsym_cmds_CXX \
22740module_cmds_CXX \
22741module_expsym_cmds_CXX \
22742export_symbols_cmds_CXX \
22743prelink_cmds_CXX; do
22744    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
22745    *[\\\\\\\`\\"\\\$]*)
22746      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22747      ;;
22748    *)
22749      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22750      ;;
22751    esac
22752done
22753
22754# Fix-up fallback echo if it was mangled by the above quoting rules.
22755case \$lt_ECHO in
22756*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22757  ;;
22758esac
22759
22760ac_aux_dir='$ac_aux_dir'
22761xsi_shell='$xsi_shell'
22762lt_shell_append='$lt_shell_append'
22763
22764# See if we are running on zsh, and set the options which allow our
22765# commands through without removal of \ escapes INIT.
22766if test -n "\${ZSH_VERSION+set}" ; then
22767   setopt NO_GLOB_SUBST
22768fi
22769
22770
22771    PACKAGE='$PACKAGE'
22772    VERSION='$VERSION'
22773    TIMESTAMP='$TIMESTAMP'
22774    RM='$RM'
22775    ofile='$ofile'
22776
22777
22778
22779
22780
22781
22782_ACEOF
22783
22784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22785
22786# Handling of arguments.
22787for ac_config_target in $ac_config_targets
22788do
22789  case $ac_config_target in
22790    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22791    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22792    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22793    "uuid-config") CONFIG_FILES="$CONFIG_FILES uuid-config" ;;
22794    "uuid.pc") CONFIG_FILES="$CONFIG_FILES uuid.pc" ;;
22795    "uuid.h") CONFIG_FILES="$CONFIG_FILES uuid.h" ;;
22796    "adjustment") CONFIG_COMMANDS="$CONFIG_COMMANDS adjustment" ;;
22797
22798  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22799$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22800   { (exit 1); exit 1; }; };;
22801  esac
22802done
22803
22804
22805# If the user did not use the arguments to specify the items to instantiate,
22806# then the envvar interface is used.  Set only those that are not.
22807# We use the long form for the default assignment because of an extremely
22808# bizarre bug on SunOS 4.1.3.
22809if $ac_need_defaults; then
22810  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22811  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22812  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22813fi
22814
22815# Have a temporary directory for convenience.  Make it in the build tree
22816# simply because there is no reason against having it here, and in addition,
22817# creating and moving files from /tmp can sometimes cause problems.
22818# Hook for its removal unless debugging.
22819# Note that there is a small window in which the directory will not be cleaned:
22820# after its creation but before its name has been assigned to `$tmp'.
22821$debug ||
22822{
22823  tmp=
22824  trap 'exit_status=$?
22825  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22826' 0
22827  trap '{ (exit 1); exit 1; }' 1 2 13 15
22828}
22829# Create a (secure) tmp directory for tmp files.
22830
22831{
22832  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22833  test -n "$tmp" && test -d "$tmp"
22834}  ||
22835{
22836  tmp=./conf$$-$RANDOM
22837  (umask 077 && mkdir "$tmp")
22838} ||
22839{
22840   $as_echo "$as_me: cannot create a temporary directory in ." >&2
22841   { (exit 1); exit 1; }
22842}
22843
22844# Set up the scripts for CONFIG_FILES section.
22845# No need to generate them if there are no CONFIG_FILES.
22846# This happens for instance with `./config.status config.h'.
22847if test -n "$CONFIG_FILES"; then
22848
22849
22850ac_cr='
22851'
22852ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22853if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22854  ac_cs_awk_cr='\\r'
22855else
22856  ac_cs_awk_cr=$ac_cr
22857fi
22858
22859echo 'BEGIN {' >"$tmp/subs1.awk" &&
22860_ACEOF
22861
22862
22863{
22864  echo "cat >conf$$subs.awk <<_ACEOF" &&
22865  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22866  echo "_ACEOF"
22867} >conf$$subs.sh ||
22868  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22869$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22870   { (exit 1); exit 1; }; }
22871ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22872ac_delim='%!_!# '
22873for ac_last_try in false false false false false :; do
22874  . ./conf$$subs.sh ||
22875    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22876$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22877   { (exit 1); exit 1; }; }
22878
22879  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
22880    break
22881  elif $ac_last_try; then
22882    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22883$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22884   { (exit 1); exit 1; }; }
22885  else
22886    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22887  fi
22888done
22889rm -f conf$$subs.sh
22890
22891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22892cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22893_ACEOF
22894sed -n '
22895h
22896s/^/S["/; s/!.*/"]=/
22897p
22898g
22899s/^[^!]*!//
22900:repl
22901t repl
22902s/'"$ac_delim"'$//
22903t delim
22904:nl
22905h
22906s/\(.\{148\}\).*/\1/
22907t more1
22908s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22909p
22910n
22911b repl
22912:more1
22913s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22914p
22915g
22916s/.\{148\}//
22917t nl
22918:delim
22919h
22920s/\(.\{148\}\).*/\1/
22921t more2
22922s/["\\]/\\&/g; s/^/"/; s/$/"/
22923p
22924b
22925:more2
22926s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22927p
22928g
22929s/.\{148\}//
22930t delim
22931' <conf$$subs.awk | sed '
22932/^[^""]/{
22933  N
22934  s/\n//
22935}
22936' >>$CONFIG_STATUS || ac_write_fail=1
22937rm -f conf$$subs.awk
22938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22939_ACAWK
22940cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22941  for (key in S) S_is_set[key] = 1
22942  FS = ""
22943
22944}
22945{
22946  line = $ 0
22947  nfields = split(line, field, "@")
22948  substed = 0
22949  len = length(field[1])
22950  for (i = 2; i < nfields; i++) {
22951    key = field[i]
22952    keylen = length(key)
22953    if (S_is_set[key]) {
22954      value = S[key]
22955      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22956      len += length(value) + length(field[++i])
22957      substed = 1
22958    } else
22959      len += 1 + keylen
22960  }
22961
22962  print line
22963}
22964
22965_ACAWK
22966_ACEOF
22967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22968if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22969  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22970else
22971  cat
22972fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22973  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
22974$as_echo "$as_me: error: could not setup config files machinery" >&2;}
22975   { (exit 1); exit 1; }; }
22976_ACEOF
22977
22978# VPATH may cause trouble with some makes, so we remove $(srcdir),
22979# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22980# trailing colons and then remove the whole line if VPATH becomes empty
22981# (actually we leave an empty line to preserve line numbers).
22982if test "x$srcdir" = x.; then
22983  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
22984s/:*\$(srcdir):*/:/
22985s/:*\${srcdir}:*/:/
22986s/:*@srcdir@:*/:/
22987s/^\([^=]*=[	 ]*\):*/\1/
22988s/:*$//
22989s/^[^=]*=[	 ]*$//
22990}'
22991fi
22992
22993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22994fi # test -n "$CONFIG_FILES"
22995
22996# Set up the scripts for CONFIG_HEADERS section.
22997# No need to generate them if there are no CONFIG_HEADERS.
22998# This happens for instance with `./config.status Makefile'.
22999if test -n "$CONFIG_HEADERS"; then
23000cat >"$tmp/defines.awk" <<\_ACAWK ||
23001BEGIN {
23002_ACEOF
23003
23004# Transform confdefs.h into an awk script `defines.awk', embedded as
23005# here-document in config.status, that substitutes the proper values into
23006# config.h.in to produce config.h.
23007
23008# Create a delimiter string that does not exist in confdefs.h, to ease
23009# handling of long lines.
23010ac_delim='%!_!# '
23011for ac_last_try in false false :; do
23012  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
23013  if test -z "$ac_t"; then
23014    break
23015  elif $ac_last_try; then
23016    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
23017$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
23018   { (exit 1); exit 1; }; }
23019  else
23020    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23021  fi
23022done
23023
23024# For the awk script, D is an array of macro values keyed by name,
23025# likewise P contains macro parameters if any.  Preserve backslash
23026# newline sequences.
23027
23028ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23029sed -n '
23030s/.\{148\}/&'"$ac_delim"'/g
23031t rset
23032:rset
23033s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23034t def
23035d
23036:def
23037s/\\$//
23038t bsnl
23039s/["\\]/\\&/g
23040s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23041D["\1"]=" \3"/p
23042s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23043d
23044:bsnl
23045s/["\\]/\\&/g
23046s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23047D["\1"]=" \3\\\\\\n"\\/p
23048t cont
23049s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23050t cont
23051d
23052:cont
23053n
23054s/.\{148\}/&'"$ac_delim"'/g
23055t clear
23056:clear
23057s/\\$//
23058t bsnlc
23059s/["\\]/\\&/g; s/^/"/; s/$/"/p
23060d
23061:bsnlc
23062s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23063b cont
23064' <confdefs.h | sed '
23065s/'"$ac_delim"'/"\\\
23066"/g' >>$CONFIG_STATUS || ac_write_fail=1
23067
23068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23069  for (key in D) D_is_set[key] = 1
23070  FS = ""
23071}
23072/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23073  line = \$ 0
23074  split(line, arg, " ")
23075  if (arg[1] == "#") {
23076    defundef = arg[2]
23077    mac1 = arg[3]
23078  } else {
23079    defundef = substr(arg[1], 2)
23080    mac1 = arg[2]
23081  }
23082  split(mac1, mac2, "(") #)
23083  macro = mac2[1]
23084  if (D_is_set[macro]) {
23085    # Preserve the white space surrounding the "#".
23086    prefix = substr(line, 1, index(line, defundef) - 1)
23087    print prefix "define", macro P[macro] D[macro]
23088    next
23089  } else {
23090    # Replace #undef with comments.  This is necessary, for example,
23091    # in the case of _POSIX_SOURCE, which is predefined and required
23092    # on some systems where configure will not decide to define it.
23093    if (defundef == "undef") {
23094      print "/*", line, "*/"
23095      next
23096    }
23097  }
23098}
23099{ print }
23100_ACAWK
23101_ACEOF
23102cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23103  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
23104$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
23105   { (exit 1); exit 1; }; }
23106fi # test -n "$CONFIG_HEADERS"
23107
23108
23109eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23110shift
23111for ac_tag
23112do
23113  case $ac_tag in
23114  :[FHLC]) ac_mode=$ac_tag; continue;;
23115  esac
23116  case $ac_mode$ac_tag in
23117  :[FHL]*:*);;
23118  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23119$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23120   { (exit 1); exit 1; }; };;
23121  :[FH]-) ac_tag=-:-;;
23122  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23123  esac
23124  ac_save_IFS=$IFS
23125  IFS=:
23126  set x $ac_tag
23127  IFS=$ac_save_IFS
23128  shift
23129  ac_file=$1
23130  shift
23131
23132  case $ac_mode in
23133  :L) ac_source=$1;;
23134  :[FH])
23135    ac_file_inputs=
23136    for ac_f
23137    do
23138      case $ac_f in
23139      -) ac_f="$tmp/stdin";;
23140      *) # Look for the file first in the build tree, then in the source tree
23141	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23142	 # because $ac_f cannot contain `:'.
23143	 test -f "$ac_f" ||
23144	   case $ac_f in
23145	   [\\/$]*) false;;
23146	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23147	   esac ||
23148	   { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23149$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23150   { (exit 1); exit 1; }; };;
23151      esac
23152      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23153      ac_file_inputs="$ac_file_inputs '$ac_f'"
23154    done
23155
23156    # Let's still pretend it is `configure' which instantiates (i.e., don't
23157    # use $as_me), people would be surprised to read:
23158    #    /* config.h.  Generated by config.status.  */
23159    configure_input='Generated from '`
23160	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23161	`' by configure.'
23162    if test x"$ac_file" != x-; then
23163      configure_input="$ac_file.  $configure_input"
23164      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
23165$as_echo "$as_me: creating $ac_file" >&6;}
23166    fi
23167    # Neutralize special characters interpreted by sed in replacement strings.
23168    case $configure_input in #(
23169    *\&* | *\|* | *\\* )
23170       ac_sed_conf_input=`$as_echo "$configure_input" |
23171       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23172    *) ac_sed_conf_input=$configure_input;;
23173    esac
23174
23175    case $ac_tag in
23176    *:-:* | *:-) cat >"$tmp/stdin" \
23177      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23178$as_echo "$as_me: error: could not create $ac_file" >&2;}
23179   { (exit 1); exit 1; }; } ;;
23180    esac
23181    ;;
23182  esac
23183
23184  ac_dir=`$as_dirname -- "$ac_file" ||
23185$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23186	 X"$ac_file" : 'X\(//\)[^/]' \| \
23187	 X"$ac_file" : 'X\(//\)$' \| \
23188	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23189$as_echo X"$ac_file" |
23190    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23191	    s//\1/
23192	    q
23193	  }
23194	  /^X\(\/\/\)[^/].*/{
23195	    s//\1/
23196	    q
23197	  }
23198	  /^X\(\/\/\)$/{
23199	    s//\1/
23200	    q
23201	  }
23202	  /^X\(\/\).*/{
23203	    s//\1/
23204	    q
23205	  }
23206	  s/.*/./; q'`
23207  { as_dir="$ac_dir"
23208  case $as_dir in #(
23209  -*) as_dir=./$as_dir;;
23210  esac
23211  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23212    as_dirs=
23213    while :; do
23214      case $as_dir in #(
23215      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23216      *) as_qdir=$as_dir;;
23217      esac
23218      as_dirs="'$as_qdir' $as_dirs"
23219      as_dir=`$as_dirname -- "$as_dir" ||
23220$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23221	 X"$as_dir" : 'X\(//\)[^/]' \| \
23222	 X"$as_dir" : 'X\(//\)$' \| \
23223	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23224$as_echo X"$as_dir" |
23225    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23226	    s//\1/
23227	    q
23228	  }
23229	  /^X\(\/\/\)[^/].*/{
23230	    s//\1/
23231	    q
23232	  }
23233	  /^X\(\/\/\)$/{
23234	    s//\1/
23235	    q
23236	  }
23237	  /^X\(\/\).*/{
23238	    s//\1/
23239	    q
23240	  }
23241	  s/.*/./; q'`
23242      test -d "$as_dir" && break
23243    done
23244    test -z "$as_dirs" || eval "mkdir $as_dirs"
23245  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23246$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
23247   { (exit 1); exit 1; }; }; }
23248  ac_builddir=.
23249
23250case "$ac_dir" in
23251.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23252*)
23253  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23254  # A ".." for each directory in $ac_dir_suffix.
23255  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23256  case $ac_top_builddir_sub in
23257  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23258  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23259  esac ;;
23260esac
23261ac_abs_top_builddir=$ac_pwd
23262ac_abs_builddir=$ac_pwd$ac_dir_suffix
23263# for backward compatibility:
23264ac_top_builddir=$ac_top_build_prefix
23265
23266case $srcdir in
23267  .)  # We are building in place.
23268    ac_srcdir=.
23269    ac_top_srcdir=$ac_top_builddir_sub
23270    ac_abs_top_srcdir=$ac_pwd ;;
23271  [\\/]* | ?:[\\/]* )  # Absolute name.
23272    ac_srcdir=$srcdir$ac_dir_suffix;
23273    ac_top_srcdir=$srcdir
23274    ac_abs_top_srcdir=$srcdir ;;
23275  *) # Relative name.
23276    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23277    ac_top_srcdir=$ac_top_build_prefix$srcdir
23278    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23279esac
23280ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23281
23282
23283  case $ac_mode in
23284  :F)
23285  #
23286  # CONFIG_FILE
23287  #
23288
23289_ACEOF
23290
23291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23292# If the template does not know about datarootdir, expand it.
23293# FIXME: This hack should be removed a few years after 2.60.
23294ac_datarootdir_hack=; ac_datarootdir_seen=
23295
23296ac_sed_dataroot='
23297/datarootdir/ {
23298  p
23299  q
23300}
23301/@datadir@/p
23302/@docdir@/p
23303/@infodir@/p
23304/@localedir@/p
23305/@mandir@/p
23306'
23307case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23308*datarootdir*) ac_datarootdir_seen=yes;;
23309*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23310  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23311$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23312_ACEOF
23313cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23314  ac_datarootdir_hack='
23315  s&@datadir@&$datadir&g
23316  s&@docdir@&$docdir&g
23317  s&@infodir@&$infodir&g
23318  s&@localedir@&$localedir&g
23319  s&@mandir@&$mandir&g
23320    s&\\\${datarootdir}&$datarootdir&g' ;;
23321esac
23322_ACEOF
23323
23324# Neutralize VPATH when `$srcdir' = `.'.
23325# Shell code in configure.ac might set extrasub.
23326# FIXME: do we really want to maintain this feature?
23327cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23328ac_sed_extra="$ac_vpsub
23329$extrasub
23330_ACEOF
23331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23332:t
23333/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23334s|@configure_input@|$ac_sed_conf_input|;t t
23335s&@top_builddir@&$ac_top_builddir_sub&;t t
23336s&@top_build_prefix@&$ac_top_build_prefix&;t t
23337s&@srcdir@&$ac_srcdir&;t t
23338s&@abs_srcdir@&$ac_abs_srcdir&;t t
23339s&@top_srcdir@&$ac_top_srcdir&;t t
23340s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23341s&@builddir@&$ac_builddir&;t t
23342s&@abs_builddir@&$ac_abs_builddir&;t t
23343s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23344$ac_datarootdir_hack
23345"
23346eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
23347  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23348$as_echo "$as_me: error: could not create $ac_file" >&2;}
23349   { (exit 1); exit 1; }; }
23350
23351test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23352  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23353  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23354  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23355which seems to be undefined.  Please make sure it is defined." >&5
23356$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23357which seems to be undefined.  Please make sure it is defined." >&2;}
23358
23359  rm -f "$tmp/stdin"
23360  case $ac_file in
23361  -) cat "$tmp/out" && rm -f "$tmp/out";;
23362  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
23363  esac \
23364  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23365$as_echo "$as_me: error: could not create $ac_file" >&2;}
23366   { (exit 1); exit 1; }; }
23367 ;;
23368  :H)
23369  #
23370  # CONFIG_HEADER
23371  #
23372  if test x"$ac_file" != x-; then
23373    {
23374      $as_echo "/* $configure_input  */" \
23375      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
23376    } >"$tmp/config.h" \
23377      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23378$as_echo "$as_me: error: could not create $ac_file" >&2;}
23379   { (exit 1); exit 1; }; }
23380    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
23381      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23382$as_echo "$as_me: $ac_file is unchanged" >&6;}
23383    else
23384      rm -f "$ac_file"
23385      mv "$tmp/config.h" "$ac_file" \
23386	|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
23387$as_echo "$as_me: error: could not create $ac_file" >&2;}
23388   { (exit 1); exit 1; }; }
23389    fi
23390  else
23391    $as_echo "/* $configure_input  */" \
23392      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
23393      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
23394$as_echo "$as_me: error: could not create -" >&2;}
23395   { (exit 1); exit 1; }; }
23396  fi
23397 ;;
23398
23399  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
23400$as_echo "$as_me: executing $ac_file commands" >&6;}
23401 ;;
23402  esac
23403
23404
23405  case $ac_file$ac_mode in
23406    "libtool":C)
23407
23408    # See if we are running on zsh, and set the options which allow our
23409    # commands through without removal of \ escapes.
23410    if test -n "${ZSH_VERSION+set}" ; then
23411      setopt NO_GLOB_SUBST
23412    fi
23413
23414    cfgfile="${ofile}T"
23415    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23416    $RM "$cfgfile"
23417
23418    cat <<_LT_EOF >> "$cfgfile"
23419#! $SHELL
23420
23421# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23422# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23423# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23424# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23425#
23426#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23427#                 2006, 2007, 2008 Free Software Foundation, Inc.
23428#   Written by Gordon Matzigkeit, 1996
23429#
23430#   This file is part of GNU Libtool.
23431#
23432# GNU Libtool is free software; you can redistribute it and/or
23433# modify it under the terms of the GNU General Public License as
23434# published by the Free Software Foundation; either version 2 of
23435# the License, or (at your option) any later version.
23436#
23437# As a special exception to the GNU General Public License,
23438# if you distribute this file as part of a program or library that
23439# is built using GNU Libtool, you may include this file under the
23440# same distribution terms that you use for the rest of that program.
23441#
23442# GNU Libtool is distributed in the hope that it will be useful,
23443# but WITHOUT ANY WARRANTY; without even the implied warranty of
23444# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23445# GNU General Public License for more details.
23446#
23447# You should have received a copy of the GNU General Public License
23448# along with GNU Libtool; see the file COPYING.  If not, a copy
23449# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23450# obtained by writing to the Free Software Foundation, Inc.,
23451# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23452
23453
23454# The names of the tagged configurations supported by this script.
23455available_tags="CXX "
23456
23457# ### BEGIN LIBTOOL CONFIG
23458
23459# Which release of libtool.m4 was used?
23460macro_version=$macro_version
23461macro_revision=$macro_revision
23462
23463# Whether or not to build shared libraries.
23464build_libtool_libs=$enable_shared
23465
23466# Whether or not to build static libraries.
23467build_old_libs=$enable_static
23468
23469# What type of objects to build.
23470pic_mode=$pic_mode
23471
23472# Whether or not to optimize for fast installation.
23473fast_install=$enable_fast_install
23474
23475# The host system.
23476host_alias=$host_alias
23477host=$host
23478host_os=$host_os
23479
23480# The build system.
23481build_alias=$build_alias
23482build=$build
23483build_os=$build_os
23484
23485# A sed program that does not truncate output.
23486SED=$lt_SED
23487
23488# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23489Xsed="\$SED -e 1s/^X//"
23490
23491# A grep program that handles long lines.
23492GREP=$lt_GREP
23493
23494# An ERE matcher.
23495EGREP=$lt_EGREP
23496
23497# A literal string matcher.
23498FGREP=$lt_FGREP
23499
23500# A BSD- or MS-compatible name lister.
23501NM=$lt_NM
23502
23503# Whether we need soft or hard links.
23504LN_S=$lt_LN_S
23505
23506# What is the maximum length of a command?
23507max_cmd_len=$max_cmd_len
23508
23509# Object file suffix (normally "o").
23510objext=$ac_objext
23511
23512# Executable file suffix (normally "").
23513exeext=$exeext
23514
23515# whether the shell understands "unset".
23516lt_unset=$lt_unset
23517
23518# turn spaces into newlines.
23519SP2NL=$lt_lt_SP2NL
23520
23521# turn newlines into spaces.
23522NL2SP=$lt_lt_NL2SP
23523
23524# How to create reloadable object files.
23525reload_flag=$lt_reload_flag
23526reload_cmds=$lt_reload_cmds
23527
23528# Method to check whether dependent libraries are shared objects.
23529deplibs_check_method=$lt_deplibs_check_method
23530
23531# Command to use when deplibs_check_method == "file_magic".
23532file_magic_cmd=$lt_file_magic_cmd
23533
23534# The archiver.
23535AR=$lt_AR
23536AR_FLAGS=$lt_AR_FLAGS
23537
23538# A symbol stripping program.
23539STRIP=$lt_STRIP
23540
23541# Commands used to install an old-style archive.
23542RANLIB=$lt_RANLIB
23543old_postinstall_cmds=$lt_old_postinstall_cmds
23544old_postuninstall_cmds=$lt_old_postuninstall_cmds
23545
23546# A C compiler.
23547LTCC=$lt_CC
23548
23549# LTCC compiler flags.
23550LTCFLAGS=$lt_CFLAGS
23551
23552# Take the output of nm and produce a listing of raw symbols and C names.
23553global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23554
23555# Transform the output of nm in a proper C declaration.
23556global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23557
23558# Transform the output of nm in a C name address pair.
23559global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23560
23561# Transform the output of nm in a C name address pair when lib prefix is needed.
23562global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23563
23564# The name of the directory that contains temporary libtool files.
23565objdir=$objdir
23566
23567# Shell to use when invoking shell scripts.
23568SHELL=$lt_SHELL
23569
23570# An echo program that does not interpret backslashes.
23571ECHO=$lt_ECHO
23572
23573# Used to examine libraries when file_magic_cmd begins with "file".
23574MAGIC_CMD=$MAGIC_CMD
23575
23576# Must we lock files when doing compilation?
23577need_locks=$lt_need_locks
23578
23579# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23580DSYMUTIL=$lt_DSYMUTIL
23581
23582# Tool to change global to local symbols on Mac OS X.
23583NMEDIT=$lt_NMEDIT
23584
23585# Tool to manipulate fat objects and archives on Mac OS X.
23586LIPO=$lt_LIPO
23587
23588# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23589OTOOL=$lt_OTOOL
23590
23591# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23592OTOOL64=$lt_OTOOL64
23593
23594# Old archive suffix (normally "a").
23595libext=$libext
23596
23597# Shared library suffix (normally ".so").
23598shrext_cmds=$lt_shrext_cmds
23599
23600# The commands to extract the exported symbol list from a shared archive.
23601extract_expsyms_cmds=$lt_extract_expsyms_cmds
23602
23603# Variables whose values should be saved in libtool wrapper scripts and
23604# restored at link time.
23605variables_saved_for_relink=$lt_variables_saved_for_relink
23606
23607# Do we need the "lib" prefix for modules?
23608need_lib_prefix=$need_lib_prefix
23609
23610# Do we need a version for libraries?
23611need_version=$need_version
23612
23613# Library versioning type.
23614version_type=$version_type
23615
23616# Shared library runtime path variable.
23617runpath_var=$runpath_var
23618
23619# Shared library path variable.
23620shlibpath_var=$shlibpath_var
23621
23622# Is shlibpath searched before the hard-coded library search path?
23623shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23624
23625# Format of library name prefix.
23626libname_spec=$lt_libname_spec
23627
23628# List of archive names.  First name is the real one, the rest are links.
23629# The last name is the one that the linker finds with -lNAME
23630library_names_spec=$lt_library_names_spec
23631
23632# The coded name of the library, if different from the real name.
23633soname_spec=$lt_soname_spec
23634
23635# Command to use after installation of a shared archive.
23636postinstall_cmds=$lt_postinstall_cmds
23637
23638# Command to use after uninstallation of a shared archive.
23639postuninstall_cmds=$lt_postuninstall_cmds
23640
23641# Commands used to finish a libtool library installation in a directory.
23642finish_cmds=$lt_finish_cmds
23643
23644# As "finish_cmds", except a single script fragment to be evaled but
23645# not shown.
23646finish_eval=$lt_finish_eval
23647
23648# Whether we should hardcode library paths into libraries.
23649hardcode_into_libs=$hardcode_into_libs
23650
23651# Compile-time system search path for libraries.
23652sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23653
23654# Run-time system search path for libraries.
23655sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23656
23657# Whether dlopen is supported.
23658dlopen_support=$enable_dlopen
23659
23660# Whether dlopen of programs is supported.
23661dlopen_self=$enable_dlopen_self
23662
23663# Whether dlopen of statically linked programs is supported.
23664dlopen_self_static=$enable_dlopen_self_static
23665
23666# Commands to strip libraries.
23667old_striplib=$lt_old_striplib
23668striplib=$lt_striplib
23669
23670
23671# The linker used to build libraries.
23672LD=$lt_LD
23673
23674# Commands used to build an old-style archive.
23675old_archive_cmds=$lt_old_archive_cmds
23676
23677# A language specific compiler.
23678CC=$lt_compiler
23679
23680# Is the compiler the GNU compiler?
23681with_gcc=$GCC
23682
23683# Compiler flag to turn off builtin functions.
23684no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23685
23686# How to pass a linker flag through the compiler.
23687wl=$lt_lt_prog_compiler_wl
23688
23689# Additional compiler flags for building library objects.
23690pic_flag=$lt_lt_prog_compiler_pic
23691
23692# Compiler flag to prevent dynamic linking.
23693link_static_flag=$lt_lt_prog_compiler_static
23694
23695# Does compiler simultaneously support -c and -o options?
23696compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23697
23698# Whether or not to add -lc for building shared libraries.
23699build_libtool_need_lc=$archive_cmds_need_lc
23700
23701# Whether or not to disallow shared libs when runtime libs are static.
23702allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23703
23704# Compiler flag to allow reflexive dlopens.
23705export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23706
23707# Compiler flag to generate shared objects directly from archives.
23708whole_archive_flag_spec=$lt_whole_archive_flag_spec
23709
23710# Whether the compiler copes with passing no objects directly.
23711compiler_needs_object=$lt_compiler_needs_object
23712
23713# Create an old-style archive from a shared archive.
23714old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23715
23716# Create a temporary old-style archive to link instead of a shared archive.
23717old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23718
23719# Commands used to build a shared archive.
23720archive_cmds=$lt_archive_cmds
23721archive_expsym_cmds=$lt_archive_expsym_cmds
23722
23723# Commands used to build a loadable module if different from building
23724# a shared archive.
23725module_cmds=$lt_module_cmds
23726module_expsym_cmds=$lt_module_expsym_cmds
23727
23728# Whether we are building with GNU ld or not.
23729with_gnu_ld=$lt_with_gnu_ld
23730
23731# Flag that allows shared libraries with undefined symbols to be built.
23732allow_undefined_flag=$lt_allow_undefined_flag
23733
23734# Flag that enforces no undefined symbols.
23735no_undefined_flag=$lt_no_undefined_flag
23736
23737# Flag to hardcode \$libdir into a binary during linking.
23738# This must work even if \$libdir does not exist
23739hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23740
23741# If ld is used when linking, flag to hardcode \$libdir into a binary
23742# during linking.  This must work even if \$libdir does not exist.
23743hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
23744
23745# Whether we need a single "-rpath" flag with a separated argument.
23746hardcode_libdir_separator=$lt_hardcode_libdir_separator
23747
23748# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23749# DIR into the resulting binary.
23750hardcode_direct=$hardcode_direct
23751
23752# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23753# DIR into the resulting binary and the resulting library dependency is
23754# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23755# library is relocated.
23756hardcode_direct_absolute=$hardcode_direct_absolute
23757
23758# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23759# into the resulting binary.
23760hardcode_minus_L=$hardcode_minus_L
23761
23762# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23763# into the resulting binary.
23764hardcode_shlibpath_var=$hardcode_shlibpath_var
23765
23766# Set to "yes" if building a shared library automatically hardcodes DIR
23767# into the library and all subsequent libraries and executables linked
23768# against it.
23769hardcode_automatic=$hardcode_automatic
23770
23771# Set to yes if linker adds runtime paths of dependent libraries
23772# to runtime path list.
23773inherit_rpath=$inherit_rpath
23774
23775# Whether libtool must link a program against all its dependency libraries.
23776link_all_deplibs=$link_all_deplibs
23777
23778# Fix the shell variable \$srcfile for the compiler.
23779fix_srcfile_path=$lt_fix_srcfile_path
23780
23781# Set to "yes" if exported symbols are required.
23782always_export_symbols=$always_export_symbols
23783
23784# The commands to list exported symbols.
23785export_symbols_cmds=$lt_export_symbols_cmds
23786
23787# Symbols that should not be listed in the preloaded symbols.
23788exclude_expsyms=$lt_exclude_expsyms
23789
23790# Symbols that must always be exported.
23791include_expsyms=$lt_include_expsyms
23792
23793# Commands necessary for linking programs (against libraries) with templates.
23794prelink_cmds=$lt_prelink_cmds
23795
23796# Specify filename containing input files.
23797file_list_spec=$lt_file_list_spec
23798
23799# How to hardcode a shared library path into an executable.
23800hardcode_action=$hardcode_action
23801
23802# The directories searched by this compiler when creating a shared library.
23803compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23804
23805# Dependencies to place before and after the objects being linked to
23806# create a shared library.
23807predep_objects=$lt_predep_objects
23808postdep_objects=$lt_postdep_objects
23809predeps=$lt_predeps
23810postdeps=$lt_postdeps
23811
23812# The library search path used internally by the compiler when linking
23813# a shared library.
23814compiler_lib_search_path=$lt_compiler_lib_search_path
23815
23816# ### END LIBTOOL CONFIG
23817
23818_LT_EOF
23819
23820  case $host_os in
23821  aix3*)
23822    cat <<\_LT_EOF >> "$cfgfile"
23823# AIX sometimes has problems with the GCC collect2 program.  For some
23824# reason, if we set the COLLECT_NAMES environment variable, the problems
23825# vanish in a puff of smoke.
23826if test "X${COLLECT_NAMES+set}" != Xset; then
23827  COLLECT_NAMES=
23828  export COLLECT_NAMES
23829fi
23830_LT_EOF
23831    ;;
23832  esac
23833
23834
23835ltmain="$ac_aux_dir/ltmain.sh"
23836
23837
23838  # We use sed instead of cat because bash on DJGPP gets confused if
23839  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23840  # text mode, it properly converts lines to CR/LF.  This bash problem
23841  # is reportedly fixed, but why not run on old versions too?
23842  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23843    || (rm -f "$cfgfile"; exit 1)
23844
23845  case $xsi_shell in
23846  yes)
23847    cat << \_LT_EOF >> "$cfgfile"
23848
23849# func_dirname file append nondir_replacement
23850# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23851# otherwise set result to NONDIR_REPLACEMENT.
23852func_dirname ()
23853{
23854  case ${1} in
23855    */*) func_dirname_result="${1%/*}${2}" ;;
23856    *  ) func_dirname_result="${3}" ;;
23857  esac
23858}
23859
23860# func_basename file
23861func_basename ()
23862{
23863  func_basename_result="${1##*/}"
23864}
23865
23866# func_dirname_and_basename file append nondir_replacement
23867# perform func_basename and func_dirname in a single function
23868# call:
23869#   dirname:  Compute the dirname of FILE.  If nonempty,
23870#             add APPEND to the result, otherwise set result
23871#             to NONDIR_REPLACEMENT.
23872#             value returned in "$func_dirname_result"
23873#   basename: Compute filename of FILE.
23874#             value retuned in "$func_basename_result"
23875# Implementation must be kept synchronized with func_dirname
23876# and func_basename. For efficiency, we do not delegate to
23877# those functions but instead duplicate the functionality here.
23878func_dirname_and_basename ()
23879{
23880  case ${1} in
23881    */*) func_dirname_result="${1%/*}${2}" ;;
23882    *  ) func_dirname_result="${3}" ;;
23883  esac
23884  func_basename_result="${1##*/}"
23885}
23886
23887# func_stripname prefix suffix name
23888# strip PREFIX and SUFFIX off of NAME.
23889# PREFIX and SUFFIX must not contain globbing or regex special
23890# characters, hashes, percent signs, but SUFFIX may contain a leading
23891# dot (in which case that matches only a dot).
23892func_stripname ()
23893{
23894  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23895  # positional parameters, so assign one to ordinary parameter first.
23896  func_stripname_result=${3}
23897  func_stripname_result=${func_stripname_result#"${1}"}
23898  func_stripname_result=${func_stripname_result%"${2}"}
23899}
23900
23901# func_opt_split
23902func_opt_split ()
23903{
23904  func_opt_split_opt=${1%%=*}
23905  func_opt_split_arg=${1#*=}
23906}
23907
23908# func_lo2o object
23909func_lo2o ()
23910{
23911  case ${1} in
23912    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23913    *)    func_lo2o_result=${1} ;;
23914  esac
23915}
23916
23917# func_xform libobj-or-source
23918func_xform ()
23919{
23920  func_xform_result=${1%.*}.lo
23921}
23922
23923# func_arith arithmetic-term...
23924func_arith ()
23925{
23926  func_arith_result=$(( $* ))
23927}
23928
23929# func_len string
23930# STRING may not start with a hyphen.
23931func_len ()
23932{
23933  func_len_result=${#1}
23934}
23935
23936_LT_EOF
23937    ;;
23938  *) # Bourne compatible functions.
23939    cat << \_LT_EOF >> "$cfgfile"
23940
23941# func_dirname file append nondir_replacement
23942# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
23943# otherwise set result to NONDIR_REPLACEMENT.
23944func_dirname ()
23945{
23946  # Extract subdirectory from the argument.
23947  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23948  if test "X$func_dirname_result" = "X${1}"; then
23949    func_dirname_result="${3}"
23950  else
23951    func_dirname_result="$func_dirname_result${2}"
23952  fi
23953}
23954
23955# func_basename file
23956func_basename ()
23957{
23958  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23959}
23960
23961
23962# func_stripname prefix suffix name
23963# strip PREFIX and SUFFIX off of NAME.
23964# PREFIX and SUFFIX must not contain globbing or regex special
23965# characters, hashes, percent signs, but SUFFIX may contain a leading
23966# dot (in which case that matches only a dot).
23967# func_strip_suffix prefix name
23968func_stripname ()
23969{
23970  case ${2} in
23971    .*) func_stripname_result=`$ECHO "X${3}" \
23972           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23973    *)  func_stripname_result=`$ECHO "X${3}" \
23974           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23975  esac
23976}
23977
23978# sed scripts:
23979my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23980my_sed_long_arg='1s/^-[^=]*=//'
23981
23982# func_opt_split
23983func_opt_split ()
23984{
23985  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23986  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23987}
23988
23989# func_lo2o object
23990func_lo2o ()
23991{
23992  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23993}
23994
23995# func_xform libobj-or-source
23996func_xform ()
23997{
23998  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23999}
24000
24001# func_arith arithmetic-term...
24002func_arith ()
24003{
24004  func_arith_result=`expr "$@"`
24005}
24006
24007# func_len string
24008# STRING may not start with a hyphen.
24009func_len ()
24010{
24011  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24012}
24013
24014_LT_EOF
24015esac
24016
24017case $lt_shell_append in
24018  yes)
24019    cat << \_LT_EOF >> "$cfgfile"
24020
24021# func_append var value
24022# Append VALUE to the end of shell variable VAR.
24023func_append ()
24024{
24025  eval "$1+=\$2"
24026}
24027_LT_EOF
24028    ;;
24029  *)
24030    cat << \_LT_EOF >> "$cfgfile"
24031
24032# func_append var value
24033# Append VALUE to the end of shell variable VAR.
24034func_append ()
24035{
24036  eval "$1=\$$1\$2"
24037}
24038
24039_LT_EOF
24040    ;;
24041  esac
24042
24043
24044  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24045    || (rm -f "$cfgfile"; exit 1)
24046
24047  mv -f "$cfgfile" "$ofile" ||
24048    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24049  chmod +x "$ofile"
24050
24051
24052    cat <<_LT_EOF >> "$ofile"
24053
24054# ### BEGIN LIBTOOL TAG CONFIG: CXX
24055
24056# The linker used to build libraries.
24057LD=$lt_LD_CXX
24058
24059# Commands used to build an old-style archive.
24060old_archive_cmds=$lt_old_archive_cmds_CXX
24061
24062# A language specific compiler.
24063CC=$lt_compiler_CXX
24064
24065# Is the compiler the GNU compiler?
24066with_gcc=$GCC_CXX
24067
24068# Compiler flag to turn off builtin functions.
24069no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24070
24071# How to pass a linker flag through the compiler.
24072wl=$lt_lt_prog_compiler_wl_CXX
24073
24074# Additional compiler flags for building library objects.
24075pic_flag=$lt_lt_prog_compiler_pic_CXX
24076
24077# Compiler flag to prevent dynamic linking.
24078link_static_flag=$lt_lt_prog_compiler_static_CXX
24079
24080# Does compiler simultaneously support -c and -o options?
24081compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24082
24083# Whether or not to add -lc for building shared libraries.
24084build_libtool_need_lc=$archive_cmds_need_lc_CXX
24085
24086# Whether or not to disallow shared libs when runtime libs are static.
24087allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24088
24089# Compiler flag to allow reflexive dlopens.
24090export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24091
24092# Compiler flag to generate shared objects directly from archives.
24093whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24094
24095# Whether the compiler copes with passing no objects directly.
24096compiler_needs_object=$lt_compiler_needs_object_CXX
24097
24098# Create an old-style archive from a shared archive.
24099old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24100
24101# Create a temporary old-style archive to link instead of a shared archive.
24102old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24103
24104# Commands used to build a shared archive.
24105archive_cmds=$lt_archive_cmds_CXX
24106archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24107
24108# Commands used to build a loadable module if different from building
24109# a shared archive.
24110module_cmds=$lt_module_cmds_CXX
24111module_expsym_cmds=$lt_module_expsym_cmds_CXX
24112
24113# Whether we are building with GNU ld or not.
24114with_gnu_ld=$lt_with_gnu_ld_CXX
24115
24116# Flag that allows shared libraries with undefined symbols to be built.
24117allow_undefined_flag=$lt_allow_undefined_flag_CXX
24118
24119# Flag that enforces no undefined symbols.
24120no_undefined_flag=$lt_no_undefined_flag_CXX
24121
24122# Flag to hardcode \$libdir into a binary during linking.
24123# This must work even if \$libdir does not exist
24124hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24125
24126# If ld is used when linking, flag to hardcode \$libdir into a binary
24127# during linking.  This must work even if \$libdir does not exist.
24128hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
24129
24130# Whether we need a single "-rpath" flag with a separated argument.
24131hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24132
24133# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24134# DIR into the resulting binary.
24135hardcode_direct=$hardcode_direct_CXX
24136
24137# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24138# DIR into the resulting binary and the resulting library dependency is
24139# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24140# library is relocated.
24141hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24142
24143# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24144# into the resulting binary.
24145hardcode_minus_L=$hardcode_minus_L_CXX
24146
24147# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24148# into the resulting binary.
24149hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24150
24151# Set to "yes" if building a shared library automatically hardcodes DIR
24152# into the library and all subsequent libraries and executables linked
24153# against it.
24154hardcode_automatic=$hardcode_automatic_CXX
24155
24156# Set to yes if linker adds runtime paths of dependent libraries
24157# to runtime path list.
24158inherit_rpath=$inherit_rpath_CXX
24159
24160# Whether libtool must link a program against all its dependency libraries.
24161link_all_deplibs=$link_all_deplibs_CXX
24162
24163# Fix the shell variable \$srcfile for the compiler.
24164fix_srcfile_path=$lt_fix_srcfile_path_CXX
24165
24166# Set to "yes" if exported symbols are required.
24167always_export_symbols=$always_export_symbols_CXX
24168
24169# The commands to list exported symbols.
24170export_symbols_cmds=$lt_export_symbols_cmds_CXX
24171
24172# Symbols that should not be listed in the preloaded symbols.
24173exclude_expsyms=$lt_exclude_expsyms_CXX
24174
24175# Symbols that must always be exported.
24176include_expsyms=$lt_include_expsyms_CXX
24177
24178# Commands necessary for linking programs (against libraries) with templates.
24179prelink_cmds=$lt_prelink_cmds_CXX
24180
24181# Specify filename containing input files.
24182file_list_spec=$lt_file_list_spec_CXX
24183
24184# How to hardcode a shared library path into an executable.
24185hardcode_action=$hardcode_action_CXX
24186
24187# The directories searched by this compiler when creating a shared library.
24188compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24189
24190# Dependencies to place before and after the objects being linked to
24191# create a shared library.
24192predep_objects=$lt_predep_objects_CXX
24193postdep_objects=$lt_postdep_objects_CXX
24194predeps=$lt_predeps_CXX
24195postdeps=$lt_postdeps_CXX
24196
24197# The library search path used internally by the compiler when linking
24198# a shared library.
24199compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24200
24201# ### END LIBTOOL TAG CONFIG: CXX
24202_LT_EOF
24203
24204 ;;
24205    "adjustment":C) chmod a-w uuid.h; chmod a+x uuid-config ;;
24206
24207  esac
24208done # for ac_tag
24209
24210
24211{ (exit 0); exit 0; }
24212_ACEOF
24213chmod +x $CONFIG_STATUS
24214ac_clean_files=$ac_clean_files_save
24215
24216test $ac_write_fail = 0 ||
24217  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
24218$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
24219   { (exit 1); exit 1; }; }
24220
24221
24222# configure is writing to config.log, and then calls config.status.
24223# config.status does its own redirection, appending to config.log.
24224# Unfortunately, on DOS this fails, as config.log is still kept open
24225# by configure, so config.status won't be able to write to it; its
24226# output is simply discarded.  So we exec the FD to /dev/null,
24227# effectively closing config.log, so it can be properly (re)opened and
24228# appended to by config.status.  When coming back to configure, we
24229# need to make the FD available again.
24230if test "$no_create" != yes; then
24231  ac_cs_success=:
24232  ac_config_status_args=
24233  test "$silent" = yes &&
24234    ac_config_status_args="$ac_config_status_args --quiet"
24235  exec 5>/dev/null
24236  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24237  exec 5>>config.log
24238  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24239  # would make configure fail if this is the last instruction.
24240  $ac_cs_success || { (exit 1); exit 1; }
24241fi
24242if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24243  { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
24244$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
24245fi
24246
24247
24248