1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for mjpegtools 2.1.0.
4#
5# Report bugs to <mjpeg-developer@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: mjpeg-developer@lists.sourceforge.net about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='mjpegtools'
592PACKAGE_TARNAME='mjpegtools'
593PACKAGE_VERSION='2.1.0'
594PACKAGE_STRING='mjpegtools 2.1.0'
595PACKAGE_BUGREPORT='mjpeg-developer@lists.sourceforge.net'
596PACKAGE_URL=''
597
598ac_unique_file="lavtools/lav_io.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639HAVE_V4L_OR_SDL_FALSE
640HAVE_V4L_OR_SDL_TRUE
641ALTIVEC_EXTRA_LIBS
642HAVE_ALTIVEC_FALSE
643HAVE_ALTIVEC_TRUE
644HAVE_PPCCPU_FALSE
645HAVE_PPCCPU_TRUE
646HAVE_X86CPU_FALSE
647HAVE_X86CPU_TRUE
648HAVE_ASM_MMX_FALSE
649HAVE_ASM_MMX_TRUE
650PROGRAM_NOPIC
651HAVE_SDLgfx_FALSE
652HAVE_SDLgfx_TRUE
653SDLgfx_LIBS
654HAVE_SDL_FALSE
655HAVE_SDL_TRUE
656SDL_LIBS
657SDL_CFLAGS
658HAVE_GTK_FALSE
659HAVE_GTK_TRUE
660GTK_LIBS
661GTK_CFLAGS
662HAVE_LIBXXF86DGA_FALSE
663HAVE_LIBXXF86DGA_TRUE
664V4LCONF_LIBS
665X_EXTRA_LIBS
666X_LIBS
667X_PRE_LIBS
668X_CFLAGS
669XMKMF
670LIBDV_LIBS
671LIBDV_CFLAGS
672HAVE_LIBPNG_FALSE
673HAVE_LIBPNG_TRUE
674LIBPNG_LIBS
675LIBPNG_CFLAGS
676HAVE_LIBQUICKTIME_FALSE
677HAVE_LIBQUICKTIME_TRUE
678LIBQUICKTIME_LIBS
679LIBQUICKTIME_CFLAGS
680PKG_CONFIG_LIBDIR
681PKG_CONFIG_PATH
682PKG_CONFIG
683JPEG_CFLAGS
684JPEG_LIBS
685PTHREAD_CFLAGS
686PTHREAD_LIBS
687PTHREAD_CC
688acx_pthread_config
689HAVE_V4L_FALSE
690HAVE_V4L_TRUE
691EXTRA_LDFLAGS
692LIBM_LIBS
693LIBGETOPT_LIB
694am__fastdepCCAS_FALSE
695am__fastdepCCAS_TRUE
696CCASDEPMODE
697CCASFLAGS
698CCAS
699CXXCPP
700am__fastdepCXX_FALSE
701am__fastdepCXX_TRUE
702CXXDEPMODE
703ac_ct_CXX
704CXXFLAGS
705CXX
706OTOOL64
707OTOOL
708LIPO
709NMEDIT
710DSYMUTIL
711MANIFEST_TOOL
712RANLIB
713ac_ct_AR
714AR
715DLLTOOL
716OBJDUMP
717LN_S
718NM
719ac_ct_DUMPBIN
720DUMPBIN
721LD
722FGREP
723SED
724LIBTOOL
725EGREP
726GREP
727CPP
728am__fastdepCC_FALSE
729am__fastdepCC_TRUE
730CCDEPMODE
731am__nodep
732AMDEPBACKSLASH
733AMDEP_FALSE
734AMDEP_TRUE
735am__quote
736am__include
737DEPDIR
738OBJEXT
739EXEEXT
740ac_ct_CC
741CPPFLAGS
742LDFLAGS
743CFLAGS
744CC
745LT_STATIC
746LT_AGE
747LT_REVISION
748LT_CURRENT
749LT_RELEASE
750MAINT
751MAINTAINER_MODE_FALSE
752MAINTAINER_MODE_TRUE
753am__untar
754am__tar
755AMTAR
756am__leading_dot
757SET_MAKE
758AWK
759mkdir_p
760MKDIR_P
761INSTALL_STRIP_PROGRAM
762STRIP
763install_sh
764MAKEINFO
765AUTOHEADER
766AUTOMAKE
767AUTOCONF
768ACLOCAL
769VERSION
770PACKAGE
771CYGPATH_W
772am__isrc
773INSTALL_DATA
774INSTALL_SCRIPT
775INSTALL_PROGRAM
776host_os
777host_vendor
778host_cpu
779host
780build_os
781build_vendor
782build_cpu
783build
784target_alias
785host_alias
786build_alias
787LIBS
788ECHO_T
789ECHO_N
790ECHO_C
791DEFS
792mandir
793localedir
794libdir
795psdir
796pdfdir
797dvidir
798htmldir
799infodir
800docdir
801oldincludedir
802includedir
803localstatedir
804sharedstatedir
805sysconfdir
806datadir
807datarootdir
808libexecdir
809sbindir
810bindir
811program_transform_name
812prefix
813exec_prefix
814PACKAGE_URL
815PACKAGE_BUGREPORT
816PACKAGE_STRING
817PACKAGE_VERSION
818PACKAGE_TARNAME
819PACKAGE_NAME
820PATH_SEPARATOR
821SHELL'
822ac_subst_files=''
823ac_user_opts='
824enable_option_checking
825enable_maintainer_mode
826enable_compile_warnings
827enable_warnings_as_errors
828enable_static_build
829enable_simd_accel
830with_extra_cflags
831with_libquicktime
832with_libdv
833with_libpng
834with_dga
835with_gtk
836with_libsdl
837with_sdlgfx
838enable_dependency_tracking
839enable_shared
840enable_static
841with_pic
842enable_fast_install
843with_gnu_ld
844with_sysroot
845enable_libtool_lock
846enable_largefile
847with_v4l
848with_x
849enable_assert
850'
851      ac_precious_vars='build_alias
852host_alias
853target_alias
854CC
855CFLAGS
856LDFLAGS
857LIBS
858CPPFLAGS
859CPP
860CXX
861CXXFLAGS
862CCC
863CXXCPP
864CCAS
865CCASFLAGS
866PKG_CONFIG
867PKG_CONFIG_PATH
868PKG_CONFIG_LIBDIR
869LIBQUICKTIME_CFLAGS
870LIBQUICKTIME_LIBS
871LIBPNG_CFLAGS
872LIBPNG_LIBS
873LIBDV_CFLAGS
874LIBDV_LIBS
875XMKMF
876GTK_CFLAGS
877GTK_LIBS
878SDL_CFLAGS
879SDL_LIBS'
880
881
882# Initialize some variables set by options.
883ac_init_help=
884ac_init_version=false
885ac_unrecognized_opts=
886ac_unrecognized_sep=
887# The variables have the same names as the options, with
888# dashes changed to underlines.
889cache_file=/dev/null
890exec_prefix=NONE
891no_create=
892no_recursion=
893prefix=NONE
894program_prefix=NONE
895program_suffix=NONE
896program_transform_name=s,x,x,
897silent=
898site=
899srcdir=
900verbose=
901x_includes=NONE
902x_libraries=NONE
903
904# Installation directory options.
905# These are left unexpanded so users can "make install exec_prefix=/foo"
906# and all the variables that are supposed to be based on exec_prefix
907# by default will actually change.
908# Use braces instead of parens because sh, perl, etc. also accept them.
909# (The list follows the same order as the GNU Coding Standards.)
910bindir='${exec_prefix}/bin'
911sbindir='${exec_prefix}/sbin'
912libexecdir='${exec_prefix}/libexec'
913datarootdir='${prefix}/share'
914datadir='${datarootdir}'
915sysconfdir='${prefix}/etc'
916sharedstatedir='${prefix}/com'
917localstatedir='${prefix}/var'
918includedir='${prefix}/include'
919oldincludedir='/usr/include'
920docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
921infodir='${datarootdir}/info'
922htmldir='${docdir}'
923dvidir='${docdir}'
924pdfdir='${docdir}'
925psdir='${docdir}'
926libdir='${exec_prefix}/lib'
927localedir='${datarootdir}/locale'
928mandir='${datarootdir}/man'
929
930ac_prev=
931ac_dashdash=
932for ac_option
933do
934  # If the previous option needs an argument, assign it.
935  if test -n "$ac_prev"; then
936    eval $ac_prev=\$ac_option
937    ac_prev=
938    continue
939  fi
940
941  case $ac_option in
942  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943  *=)   ac_optarg= ;;
944  *)    ac_optarg=yes ;;
945  esac
946
947  # Accept the important Cygnus configure options, so we can diagnose typos.
948
949  case $ac_dashdash$ac_option in
950  --)
951    ac_dashdash=yes ;;
952
953  -bindir | --bindir | --bindi | --bind | --bin | --bi)
954    ac_prev=bindir ;;
955  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
956    bindir=$ac_optarg ;;
957
958  -build | --build | --buil | --bui | --bu)
959    ac_prev=build_alias ;;
960  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
961    build_alias=$ac_optarg ;;
962
963  -cache-file | --cache-file | --cache-fil | --cache-fi \
964  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
965    ac_prev=cache_file ;;
966  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
967  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
968    cache_file=$ac_optarg ;;
969
970  --config-cache | -C)
971    cache_file=config.cache ;;
972
973  -datadir | --datadir | --datadi | --datad)
974    ac_prev=datadir ;;
975  -datadir=* | --datadir=* | --datadi=* | --datad=*)
976    datadir=$ac_optarg ;;
977
978  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
979  | --dataroo | --dataro | --datar)
980    ac_prev=datarootdir ;;
981  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
982  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
983    datarootdir=$ac_optarg ;;
984
985  -disable-* | --disable-*)
986    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
987    # Reject names that are not valid shell variable names.
988    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
989      as_fn_error $? "invalid feature name: $ac_useropt"
990    ac_useropt_orig=$ac_useropt
991    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
992    case $ac_user_opts in
993      *"
994"enable_$ac_useropt"
995"*) ;;
996      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
997	 ac_unrecognized_sep=', ';;
998    esac
999    eval enable_$ac_useropt=no ;;
1000
1001  -docdir | --docdir | --docdi | --doc | --do)
1002    ac_prev=docdir ;;
1003  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1004    docdir=$ac_optarg ;;
1005
1006  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1007    ac_prev=dvidir ;;
1008  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1009    dvidir=$ac_optarg ;;
1010
1011  -enable-* | --enable-*)
1012    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1013    # Reject names that are not valid shell variable names.
1014    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015      as_fn_error $? "invalid feature name: $ac_useropt"
1016    ac_useropt_orig=$ac_useropt
1017    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018    case $ac_user_opts in
1019      *"
1020"enable_$ac_useropt"
1021"*) ;;
1022      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1023	 ac_unrecognized_sep=', ';;
1024    esac
1025    eval enable_$ac_useropt=\$ac_optarg ;;
1026
1027  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029  | --exec | --exe | --ex)
1030    ac_prev=exec_prefix ;;
1031  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033  | --exec=* | --exe=* | --ex=*)
1034    exec_prefix=$ac_optarg ;;
1035
1036  -gas | --gas | --ga | --g)
1037    # Obsolete; use --with-gas.
1038    with_gas=yes ;;
1039
1040  -help | --help | --hel | --he | -h)
1041    ac_init_help=long ;;
1042  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043    ac_init_help=recursive ;;
1044  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045    ac_init_help=short ;;
1046
1047  -host | --host | --hos | --ho)
1048    ac_prev=host_alias ;;
1049  -host=* | --host=* | --hos=* | --ho=*)
1050    host_alias=$ac_optarg ;;
1051
1052  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1053    ac_prev=htmldir ;;
1054  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1055  | --ht=*)
1056    htmldir=$ac_optarg ;;
1057
1058  -includedir | --includedir | --includedi | --included | --include \
1059  | --includ | --inclu | --incl | --inc)
1060    ac_prev=includedir ;;
1061  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062  | --includ=* | --inclu=* | --incl=* | --inc=*)
1063    includedir=$ac_optarg ;;
1064
1065  -infodir | --infodir | --infodi | --infod | --info | --inf)
1066    ac_prev=infodir ;;
1067  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068    infodir=$ac_optarg ;;
1069
1070  -libdir | --libdir | --libdi | --libd)
1071    ac_prev=libdir ;;
1072  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073    libdir=$ac_optarg ;;
1074
1075  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076  | --libexe | --libex | --libe)
1077    ac_prev=libexecdir ;;
1078  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079  | --libexe=* | --libex=* | --libe=*)
1080    libexecdir=$ac_optarg ;;
1081
1082  -localedir | --localedir | --localedi | --localed | --locale)
1083    ac_prev=localedir ;;
1084  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085    localedir=$ac_optarg ;;
1086
1087  -localstatedir | --localstatedir | --localstatedi | --localstated \
1088  | --localstate | --localstat | --localsta | --localst | --locals)
1089    ac_prev=localstatedir ;;
1090  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092    localstatedir=$ac_optarg ;;
1093
1094  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1095    ac_prev=mandir ;;
1096  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097    mandir=$ac_optarg ;;
1098
1099  -nfp | --nfp | --nf)
1100    # Obsolete; use --without-fp.
1101    with_fp=no ;;
1102
1103  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104  | --no-cr | --no-c | -n)
1105    no_create=yes ;;
1106
1107  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1109    no_recursion=yes ;;
1110
1111  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113  | --oldin | --oldi | --old | --ol | --o)
1114    ac_prev=oldincludedir ;;
1115  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118    oldincludedir=$ac_optarg ;;
1119
1120  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1121    ac_prev=prefix ;;
1122  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123    prefix=$ac_optarg ;;
1124
1125  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126  | --program-pre | --program-pr | --program-p)
1127    ac_prev=program_prefix ;;
1128  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130    program_prefix=$ac_optarg ;;
1131
1132  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133  | --program-suf | --program-su | --program-s)
1134    ac_prev=program_suffix ;;
1135  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137    program_suffix=$ac_optarg ;;
1138
1139  -program-transform-name | --program-transform-name \
1140  | --program-transform-nam | --program-transform-na \
1141  | --program-transform-n | --program-transform- \
1142  | --program-transform | --program-transfor \
1143  | --program-transfo | --program-transf \
1144  | --program-trans | --program-tran \
1145  | --progr-tra | --program-tr | --program-t)
1146    ac_prev=program_transform_name ;;
1147  -program-transform-name=* | --program-transform-name=* \
1148  | --program-transform-nam=* | --program-transform-na=* \
1149  | --program-transform-n=* | --program-transform-=* \
1150  | --program-transform=* | --program-transfor=* \
1151  | --program-transfo=* | --program-transf=* \
1152  | --program-trans=* | --program-tran=* \
1153  | --progr-tra=* | --program-tr=* | --program-t=*)
1154    program_transform_name=$ac_optarg ;;
1155
1156  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1157    ac_prev=pdfdir ;;
1158  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159    pdfdir=$ac_optarg ;;
1160
1161  -psdir | --psdir | --psdi | --psd | --ps)
1162    ac_prev=psdir ;;
1163  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1164    psdir=$ac_optarg ;;
1165
1166  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167  | -silent | --silent | --silen | --sile | --sil)
1168    silent=yes ;;
1169
1170  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171    ac_prev=sbindir ;;
1172  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173  | --sbi=* | --sb=*)
1174    sbindir=$ac_optarg ;;
1175
1176  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178  | --sharedst | --shareds | --shared | --share | --shar \
1179  | --sha | --sh)
1180    ac_prev=sharedstatedir ;;
1181  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184  | --sha=* | --sh=*)
1185    sharedstatedir=$ac_optarg ;;
1186
1187  -site | --site | --sit)
1188    ac_prev=site ;;
1189  -site=* | --site=* | --sit=*)
1190    site=$ac_optarg ;;
1191
1192  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193    ac_prev=srcdir ;;
1194  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195    srcdir=$ac_optarg ;;
1196
1197  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198  | --syscon | --sysco | --sysc | --sys | --sy)
1199    ac_prev=sysconfdir ;;
1200  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202    sysconfdir=$ac_optarg ;;
1203
1204  -target | --target | --targe | --targ | --tar | --ta | --t)
1205    ac_prev=target_alias ;;
1206  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207    target_alias=$ac_optarg ;;
1208
1209  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210    verbose=yes ;;
1211
1212  -version | --version | --versio | --versi | --vers | -V)
1213    ac_init_version=: ;;
1214
1215  -with-* | --with-*)
1216    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217    # Reject names that are not valid shell variable names.
1218    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219      as_fn_error $? "invalid package name: $ac_useropt"
1220    ac_useropt_orig=$ac_useropt
1221    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222    case $ac_user_opts in
1223      *"
1224"with_$ac_useropt"
1225"*) ;;
1226      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227	 ac_unrecognized_sep=', ';;
1228    esac
1229    eval with_$ac_useropt=\$ac_optarg ;;
1230
1231  -without-* | --without-*)
1232    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233    # Reject names that are not valid shell variable names.
1234    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235      as_fn_error $? "invalid package name: $ac_useropt"
1236    ac_useropt_orig=$ac_useropt
1237    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1238    case $ac_user_opts in
1239      *"
1240"with_$ac_useropt"
1241"*) ;;
1242      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243	 ac_unrecognized_sep=', ';;
1244    esac
1245    eval with_$ac_useropt=no ;;
1246
1247  --x)
1248    # Obsolete; use --with-x.
1249    with_x=yes ;;
1250
1251  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252  | --x-incl | --x-inc | --x-in | --x-i)
1253    ac_prev=x_includes ;;
1254  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256    x_includes=$ac_optarg ;;
1257
1258  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260    ac_prev=x_libraries ;;
1261  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263    x_libraries=$ac_optarg ;;
1264
1265  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1266Try \`$0 --help' for more information"
1267    ;;
1268
1269  *=*)
1270    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271    # Reject names that are not valid shell variable names.
1272    case $ac_envvar in #(
1273      '' | [0-9]* | *[!_$as_cr_alnum]* )
1274      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1275    esac
1276    eval $ac_envvar=\$ac_optarg
1277    export $ac_envvar ;;
1278
1279  *)
1280    # FIXME: should be removed in autoconf 3.0.
1281    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1282    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1284    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1285    ;;
1286
1287  esac
1288done
1289
1290if test -n "$ac_prev"; then
1291  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292  as_fn_error $? "missing argument to $ac_option"
1293fi
1294
1295if test -n "$ac_unrecognized_opts"; then
1296  case $enable_option_checking in
1297    no) ;;
1298    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1299    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300  esac
1301fi
1302
1303# Check all directory arguments for consistency.
1304for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305		datadir sysconfdir sharedstatedir localstatedir includedir \
1306		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307		libdir localedir mandir
1308do
1309  eval ac_val=\$$ac_var
1310  # Remove trailing slashes.
1311  case $ac_val in
1312    */ )
1313      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314      eval $ac_var=\$ac_val;;
1315  esac
1316  # Be sure to have absolute directory names.
1317  case $ac_val in
1318    [\\/$]* | ?:[\\/]* )  continue;;
1319    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320  esac
1321  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1322done
1323
1324# There might be people who depend on the old broken behavior: `$host'
1325# used to hold the argument of --host etc.
1326# FIXME: To remove some day.
1327build=$build_alias
1328host=$host_alias
1329target=$target_alias
1330
1331# FIXME: To remove some day.
1332if test "x$host_alias" != x; then
1333  if test "x$build_alias" = x; then
1334    cross_compiling=maybe
1335  elif test "x$build_alias" != "x$host_alias"; then
1336    cross_compiling=yes
1337  fi
1338fi
1339
1340ac_tool_prefix=
1341test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343test "$silent" = yes && exec 6>/dev/null
1344
1345
1346ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347ac_ls_di=`ls -di .` &&
1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349  as_fn_error $? "working directory cannot be determined"
1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351  as_fn_error $? "pwd does not report name of working directory"
1352
1353
1354# Find the source files, if location was not specified.
1355if test -z "$srcdir"; then
1356  ac_srcdir_defaulted=yes
1357  # Try the directory containing this script, then the parent directory.
1358  ac_confdir=`$as_dirname -- "$as_myself" ||
1359$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360	 X"$as_myself" : 'X\(//\)[^/]' \| \
1361	 X"$as_myself" : 'X\(//\)$' \| \
1362	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363$as_echo X"$as_myself" |
1364    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365	    s//\1/
1366	    q
1367	  }
1368	  /^X\(\/\/\)[^/].*/{
1369	    s//\1/
1370	    q
1371	  }
1372	  /^X\(\/\/\)$/{
1373	    s//\1/
1374	    q
1375	  }
1376	  /^X\(\/\).*/{
1377	    s//\1/
1378	    q
1379	  }
1380	  s/.*/./; q'`
1381  srcdir=$ac_confdir
1382  if test ! -r "$srcdir/$ac_unique_file"; then
1383    srcdir=..
1384  fi
1385else
1386  ac_srcdir_defaulted=no
1387fi
1388if test ! -r "$srcdir/$ac_unique_file"; then
1389  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1391fi
1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393ac_abs_confdir=`(
1394	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1395	pwd)`
1396# When building in place, set srcdir=.
1397if test "$ac_abs_confdir" = "$ac_pwd"; then
1398  srcdir=.
1399fi
1400# Remove unnecessary trailing slashes from srcdir.
1401# Double slashes in file names in object file debugging info
1402# mess up M-x gdb in Emacs.
1403case $srcdir in
1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405esac
1406for ac_var in $ac_precious_vars; do
1407  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1408  eval ac_env_${ac_var}_value=\$${ac_var}
1409  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1410  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411done
1412
1413#
1414# Report the --help message.
1415#
1416if test "$ac_init_help" = "long"; then
1417  # Omit some internal or obsolete options to make the list less imposing.
1418  # This message is too long to be a string in the A/UX 3.1 sh.
1419  cat <<_ACEOF
1420\`configure' configures mjpegtools 2.1.0 to adapt to many kinds of systems.
1421
1422Usage: $0 [OPTION]... [VAR=VALUE]...
1423
1424To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425VAR=VALUE.  See below for descriptions of some of the useful variables.
1426
1427Defaults for the options are specified in brackets.
1428
1429Configuration:
1430  -h, --help              display this help and exit
1431      --help=short        display options specific to this package
1432      --help=recursive    display the short help of all the included packages
1433  -V, --version           display version information and exit
1434  -q, --quiet, --silent   do not print \`checking ...' messages
1435      --cache-file=FILE   cache test results in FILE [disabled]
1436  -C, --config-cache      alias for \`--cache-file=config.cache'
1437  -n, --no-create         do not create output files
1438      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1439
1440Installation directories:
1441  --prefix=PREFIX         install architecture-independent files in PREFIX
1442                          [$ac_default_prefix]
1443  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1444                          [PREFIX]
1445
1446By default, \`make install' will install all the files in
1447\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1448an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1449for instance \`--prefix=\$HOME'.
1450
1451For better control, use the options below.
1452
1453Fine tuning of the installation directories:
1454  --bindir=DIR            user executables [EPREFIX/bin]
1455  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1456  --libexecdir=DIR        program executables [EPREFIX/libexec]
1457  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1458  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1459  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1460  --libdir=DIR            object code libraries [EPREFIX/lib]
1461  --includedir=DIR        C header files [PREFIX/include]
1462  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1463  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1464  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1465  --infodir=DIR           info documentation [DATAROOTDIR/info]
1466  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1467  --mandir=DIR            man documentation [DATAROOTDIR/man]
1468  --docdir=DIR            documentation root [DATAROOTDIR/doc/mjpegtools]
1469  --htmldir=DIR           html documentation [DOCDIR]
1470  --dvidir=DIR            dvi documentation [DOCDIR]
1471  --pdfdir=DIR            pdf documentation [DOCDIR]
1472  --psdir=DIR             ps documentation [DOCDIR]
1473_ACEOF
1474
1475  cat <<\_ACEOF
1476
1477Program names:
1478  --program-prefix=PREFIX            prepend PREFIX to installed program names
1479  --program-suffix=SUFFIX            append SUFFIX to installed program names
1480  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1481
1482X features:
1483  --x-includes=DIR    X include files are in DIR
1484  --x-libraries=DIR   X library files are in DIR
1485
1486System types:
1487  --build=BUILD     configure for building on BUILD [guessed]
1488  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1489_ACEOF
1490fi
1491
1492if test -n "$ac_init_help"; then
1493  case $ac_init_help in
1494     short | recursive ) echo "Configuration of mjpegtools 2.1.0:";;
1495   esac
1496  cat <<\_ACEOF
1497
1498Optional Features:
1499  --disable-option-checking  ignore unrecognized --enable/--with options
1500  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1501  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1502  --enable-maintainer-mode
1503                          enable make rules and dependencies not useful (and
1504                          sometimes confusing) to the casual installer
1505  --enable-compile-warnings
1506                          Turn on compiler warnings.
1507  --enable-warnings_as_errors
1508                          Compiler warnings are errors.
1509  --enable-static-build   Force static linkage instead of shared libraries
1510                          (useful for profiling etc).
1511  --enable-simd-accel     use SIMD multimedia instructions (MMX, AltiVec,
1512                          etc.) if possible
1513  --enable-dependency-tracking
1514                          do not reject slow dependency extractors
1515  --disable-dependency-tracking
1516                          speeds up one-time build
1517  --enable-shared[=PKGS]  build shared libraries [default=yes]
1518  --enable-static[=PKGS]  build static libraries [default=yes]
1519  --enable-fast-install[=PKGS]
1520                          optimize for fast installation [default=yes]
1521  --disable-libtool-lock  avoid locking (might break parallel builds)
1522  --disable-largefile     omit support for large files
1523  --disable-assert        Disable assertions (compile with NDEBUG).
1524
1525Optional Packages:
1526  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1527  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1528  --with-extra-cflags=flags
1529                          Options to be added to CFLAGS (optional)
1530  --without-libquicktime  Do not use libquicktime.
1531  --without-libdv         Do not use libdv.
1532  --without-libpng        Do not use libpng.
1533  --without-dga           Do not use dga.
1534  --without-gtk           Do not use gtk.
1535  --without-libsdl        Do not use libsdl.
1536  --without-sdlgfx        Do not use sdlgfx.
1537  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1538                          both]
1539  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1540  --with-sysroot=DIR Search for dependent libraries within DIR
1541                        (or the compiler's sysroot if not specified).
1542  --without-v4l           Disable v4l1 API
1543  --with-x                use the X Window System
1544
1545Some influential environment variables:
1546  CC          C compiler command
1547  CFLAGS      C compiler flags
1548  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1549              nonstandard directory <lib dir>
1550  LIBS        libraries to pass to the linker, e.g. -l<library>
1551  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1552              you have headers in a nonstandard directory <include dir>
1553  CPP         C preprocessor
1554  CXX         C++ compiler command
1555  CXXFLAGS    C++ compiler flags
1556  CXXCPP      C++ preprocessor
1557  CCAS        assembler compiler command (defaults to CC)
1558  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1559  PKG_CONFIG  path to pkg-config utility
1560  PKG_CONFIG_PATH
1561              directories to add to pkg-config's search path
1562  PKG_CONFIG_LIBDIR
1563              path overriding pkg-config's built-in search path
1564  LIBQUICKTIME_CFLAGS
1565              C compiler flags for LIBQUICKTIME, overriding pkg-config
1566  LIBQUICKTIME_LIBS
1567              linker flags for LIBQUICKTIME, overriding pkg-config
1568  LIBPNG_CFLAGS
1569              C compiler flags for LIBPNG, overriding pkg-config
1570  LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1571  LIBDV_CFLAGS
1572              C compiler flags for LIBDV, overriding pkg-config
1573  LIBDV_LIBS  linker flags for LIBDV, overriding pkg-config
1574  XMKMF       Path to xmkmf, Makefile generator for X Window System
1575  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1576  GTK_LIBS    linker flags for GTK, overriding pkg-config
1577  SDL_CFLAGS  C compiler flags for SDL, overriding pkg-config
1578  SDL_LIBS    linker flags for SDL, overriding pkg-config
1579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
1583Report bugs to <mjpeg-developer@lists.sourceforge.net>.
1584_ACEOF
1585ac_status=$?
1586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589  # If there are subdirs, report their specific --help.
1590  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1591    test -d "$ac_dir" ||
1592      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593      continue
1594    ac_builddir=.
1595
1596case "$ac_dir" in
1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598*)
1599  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600  # A ".." for each directory in $ac_dir_suffix.
1601  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602  case $ac_top_builddir_sub in
1603  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605  esac ;;
1606esac
1607ac_abs_top_builddir=$ac_pwd
1608ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609# for backward compatibility:
1610ac_top_builddir=$ac_top_build_prefix
1611
1612case $srcdir in
1613  .)  # We are building in place.
1614    ac_srcdir=.
1615    ac_top_srcdir=$ac_top_builddir_sub
1616    ac_abs_top_srcdir=$ac_pwd ;;
1617  [\\/]* | ?:[\\/]* )  # Absolute name.
1618    ac_srcdir=$srcdir$ac_dir_suffix;
1619    ac_top_srcdir=$srcdir
1620    ac_abs_top_srcdir=$srcdir ;;
1621  *) # Relative name.
1622    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623    ac_top_srcdir=$ac_top_build_prefix$srcdir
1624    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1625esac
1626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
1628    cd "$ac_dir" || { ac_status=$?; continue; }
1629    # Check for guested configure.
1630    if test -f "$ac_srcdir/configure.gnu"; then
1631      echo &&
1632      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633    elif test -f "$ac_srcdir/configure"; then
1634      echo &&
1635      $SHELL "$ac_srcdir/configure" --help=recursive
1636    else
1637      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638    fi || ac_status=$?
1639    cd "$ac_pwd" || { ac_status=$?; break; }
1640  done
1641fi
1642
1643test -n "$ac_init_help" && exit $ac_status
1644if $ac_init_version; then
1645  cat <<\_ACEOF
1646mjpegtools configure 2.1.0
1647generated by GNU Autoconf 2.69
1648
1649Copyright (C) 2012 Free Software Foundation, Inc.
1650This configure script is free software; the Free Software Foundation
1651gives unlimited permission to copy, distribute and modify it.
1652_ACEOF
1653  exit
1654fi
1655
1656## ------------------------ ##
1657## Autoconf initialization. ##
1658## ------------------------ ##
1659
1660# ac_fn_c_try_compile LINENO
1661# --------------------------
1662# Try to compile conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_compile ()
1664{
1665  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666  rm -f conftest.$ac_objext
1667  if { { ac_try="$ac_compile"
1668case "(($ac_try" in
1669  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670  *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674  (eval "$ac_compile") 2>conftest.err
1675  ac_status=$?
1676  if test -s conftest.err; then
1677    grep -v '^ *+' conftest.err >conftest.er1
1678    cat conftest.er1 >&5
1679    mv -f conftest.er1 conftest.err
1680  fi
1681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682  test $ac_status = 0; } && {
1683	 test -z "$ac_c_werror_flag" ||
1684	 test ! -s conftest.err
1685       } && test -s conftest.$ac_objext; then :
1686  ac_retval=0
1687else
1688  $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691	ac_retval=1
1692fi
1693  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694  as_fn_set_status $ac_retval
1695
1696} # ac_fn_c_try_compile
1697
1698# ac_fn_c_try_cpp LINENO
1699# ----------------------
1700# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_c_try_cpp ()
1702{
1703  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704  if { { ac_try="$ac_cpp conftest.$ac_ext"
1705case "(($ac_try" in
1706  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707  *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710$as_echo "$ac_try_echo"; } >&5
1711  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1712  ac_status=$?
1713  if test -s conftest.err; then
1714    grep -v '^ *+' conftest.err >conftest.er1
1715    cat conftest.er1 >&5
1716    mv -f conftest.er1 conftest.err
1717  fi
1718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719  test $ac_status = 0; } > conftest.i && {
1720	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1721	 test ! -s conftest.err
1722       }; then :
1723  ac_retval=0
1724else
1725  $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728    ac_retval=1
1729fi
1730  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731  as_fn_set_status $ac_retval
1732
1733} # ac_fn_c_try_cpp
1734
1735# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1736# -------------------------------------------------------
1737# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1738# the include files in INCLUDES and setting the cache variable VAR
1739# accordingly.
1740ac_fn_c_check_header_mongrel ()
1741{
1742  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743  if eval \${$3+:} false; then :
1744  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1745$as_echo_n "checking for $2... " >&6; }
1746if eval \${$3+:} false; then :
1747  $as_echo_n "(cached) " >&6
1748fi
1749eval ac_res=\$$3
1750	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751$as_echo "$ac_res" >&6; }
1752else
1753  # Is the header compilable?
1754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1755$as_echo_n "checking $2 usability... " >&6; }
1756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h.  */
1758$4
1759#include <$2>
1760_ACEOF
1761if ac_fn_c_try_compile "$LINENO"; then :
1762  ac_header_compiler=yes
1763else
1764  ac_header_compiler=no
1765fi
1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1768$as_echo "$ac_header_compiler" >&6; }
1769
1770# Is the header present?
1771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1772$as_echo_n "checking $2 presence... " >&6; }
1773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h.  */
1775#include <$2>
1776_ACEOF
1777if ac_fn_c_try_cpp "$LINENO"; then :
1778  ac_header_preproc=yes
1779else
1780  ac_header_preproc=no
1781fi
1782rm -f conftest.err conftest.i conftest.$ac_ext
1783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1784$as_echo "$ac_header_preproc" >&6; }
1785
1786# So?  What about this header?
1787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1788  yes:no: )
1789    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1790$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1791    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1792$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1793    ;;
1794  no:yes:* )
1795    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1796$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1797    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1798$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1799    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1800$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1801    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1802$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1803    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1804$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1805( $as_echo "## ---------------------------------------------------- ##
1806## Report this to mjpeg-developer@lists.sourceforge.net ##
1807## ---------------------------------------------------- ##"
1808     ) | sed "s/^/$as_me: WARNING:     /" >&2
1809    ;;
1810esac
1811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
1813if eval \${$3+:} false; then :
1814  $as_echo_n "(cached) " >&6
1815else
1816  eval "$3=\$ac_header_compiler"
1817fi
1818eval ac_res=\$$3
1819	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820$as_echo "$ac_res" >&6; }
1821fi
1822  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823
1824} # ac_fn_c_check_header_mongrel
1825
1826# ac_fn_c_try_run LINENO
1827# ----------------------
1828# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1829# that executables *can* be run.
1830ac_fn_c_try_run ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  if { { ac_try="$ac_link"
1834case "(($ac_try" in
1835  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836  *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840  (eval "$ac_link") 2>&5
1841  ac_status=$?
1842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1844  { { case "(($ac_try" in
1845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846  *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849$as_echo "$ac_try_echo"; } >&5
1850  (eval "$ac_try") 2>&5
1851  ac_status=$?
1852  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853  test $ac_status = 0; }; }; then :
1854  ac_retval=0
1855else
1856  $as_echo "$as_me: program exited with status $ac_status" >&5
1857       $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
1860       ac_retval=$ac_status
1861fi
1862  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864  as_fn_set_status $ac_retval
1865
1866} # ac_fn_c_try_run
1867
1868# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1869# -------------------------------------------------------
1870# Tests whether HEADER exists and can be compiled using the include files in
1871# INCLUDES, setting the cache variable VAR accordingly.
1872ac_fn_c_check_header_compile ()
1873{
1874  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876$as_echo_n "checking for $2... " >&6; }
1877if eval \${$3+:} false; then :
1878  $as_echo_n "(cached) " >&6
1879else
1880  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h.  */
1882$4
1883#include <$2>
1884_ACEOF
1885if ac_fn_c_try_compile "$LINENO"; then :
1886  eval "$3=yes"
1887else
1888  eval "$3=no"
1889fi
1890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891fi
1892eval ac_res=\$$3
1893	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894$as_echo "$ac_res" >&6; }
1895  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
1897} # ac_fn_c_check_header_compile
1898
1899# ac_fn_c_try_link LINENO
1900# -----------------------
1901# Try to link conftest.$ac_ext, and return whether this succeeded.
1902ac_fn_c_try_link ()
1903{
1904  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905  rm -f conftest.$ac_objext conftest$ac_exeext
1906  if { { ac_try="$ac_link"
1907case "(($ac_try" in
1908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909  *) ac_try_echo=$ac_try;;
1910esac
1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912$as_echo "$ac_try_echo"; } >&5
1913  (eval "$ac_link") 2>conftest.err
1914  ac_status=$?
1915  if test -s conftest.err; then
1916    grep -v '^ *+' conftest.err >conftest.er1
1917    cat conftest.er1 >&5
1918    mv -f conftest.er1 conftest.err
1919  fi
1920  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921  test $ac_status = 0; } && {
1922	 test -z "$ac_c_werror_flag" ||
1923	 test ! -s conftest.err
1924       } && test -s conftest$ac_exeext && {
1925	 test "$cross_compiling" = yes ||
1926	 test -x conftest$ac_exeext
1927       }; then :
1928  ac_retval=0
1929else
1930  $as_echo "$as_me: failed program was:" >&5
1931sed 's/^/| /' conftest.$ac_ext >&5
1932
1933	ac_retval=1
1934fi
1935  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937  # interfere with the next link command; also delete a directory that is
1938  # left behind by Apple's compiler.  We do this before executing the actions.
1939  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941  as_fn_set_status $ac_retval
1942
1943} # ac_fn_c_try_link
1944
1945# ac_fn_c_check_func LINENO FUNC VAR
1946# ----------------------------------
1947# Tests whether FUNC exists, setting the cache variable VAR accordingly
1948ac_fn_c_check_func ()
1949{
1950  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952$as_echo_n "checking for $2... " >&6; }
1953if eval \${$3+:} false; then :
1954  $as_echo_n "(cached) " >&6
1955else
1956  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957/* end confdefs.h.  */
1958/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1959   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1960#define $2 innocuous_$2
1961
1962/* System header to define __stub macros and hopefully few prototypes,
1963    which can conflict with char $2 (); below.
1964    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1965    <limits.h> exists even on freestanding compilers.  */
1966
1967#ifdef __STDC__
1968# include <limits.h>
1969#else
1970# include <assert.h>
1971#endif
1972
1973#undef $2
1974
1975/* Override any GCC internal prototype to avoid an error.
1976   Use char because int might match the return type of a GCC
1977   builtin and then its argument prototype would still apply.  */
1978#ifdef __cplusplus
1979extern "C"
1980#endif
1981char $2 ();
1982/* The GNU C library defines this for functions which it implements
1983    to always fail with ENOSYS.  Some functions are actually named
1984    something starting with __ and the normal name is an alias.  */
1985#if defined __stub_$2 || defined __stub___$2
1986choke me
1987#endif
1988
1989int
1990main ()
1991{
1992return $2 ();
1993  ;
1994  return 0;
1995}
1996_ACEOF
1997if ac_fn_c_try_link "$LINENO"; then :
1998  eval "$3=yes"
1999else
2000  eval "$3=no"
2001fi
2002rm -f core conftest.err conftest.$ac_objext \
2003    conftest$ac_exeext conftest.$ac_ext
2004fi
2005eval ac_res=\$$3
2006	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007$as_echo "$ac_res" >&6; }
2008  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2009
2010} # ac_fn_c_check_func
2011
2012# ac_fn_cxx_try_compile LINENO
2013# ----------------------------
2014# Try to compile conftest.$ac_ext, and return whether this succeeded.
2015ac_fn_cxx_try_compile ()
2016{
2017  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018  rm -f conftest.$ac_objext
2019  if { { ac_try="$ac_compile"
2020case "(($ac_try" in
2021  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022  *) ac_try_echo=$ac_try;;
2023esac
2024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025$as_echo "$ac_try_echo"; } >&5
2026  (eval "$ac_compile") 2>conftest.err
2027  ac_status=$?
2028  if test -s conftest.err; then
2029    grep -v '^ *+' conftest.err >conftest.er1
2030    cat conftest.er1 >&5
2031    mv -f conftest.er1 conftest.err
2032  fi
2033  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034  test $ac_status = 0; } && {
2035	 test -z "$ac_cxx_werror_flag" ||
2036	 test ! -s conftest.err
2037       } && test -s conftest.$ac_objext; then :
2038  ac_retval=0
2039else
2040  $as_echo "$as_me: failed program was:" >&5
2041sed 's/^/| /' conftest.$ac_ext >&5
2042
2043	ac_retval=1
2044fi
2045  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046  as_fn_set_status $ac_retval
2047
2048} # ac_fn_cxx_try_compile
2049
2050# ac_fn_cxx_try_cpp LINENO
2051# ------------------------
2052# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2053ac_fn_cxx_try_cpp ()
2054{
2055  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056  if { { ac_try="$ac_cpp conftest.$ac_ext"
2057case "(($ac_try" in
2058  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059  *) ac_try_echo=$ac_try;;
2060esac
2061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062$as_echo "$ac_try_echo"; } >&5
2063  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2064  ac_status=$?
2065  if test -s conftest.err; then
2066    grep -v '^ *+' conftest.err >conftest.er1
2067    cat conftest.er1 >&5
2068    mv -f conftest.er1 conftest.err
2069  fi
2070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071  test $ac_status = 0; } > conftest.i && {
2072	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2073	 test ! -s conftest.err
2074       }; then :
2075  ac_retval=0
2076else
2077  $as_echo "$as_me: failed program was:" >&5
2078sed 's/^/| /' conftest.$ac_ext >&5
2079
2080    ac_retval=1
2081fi
2082  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083  as_fn_set_status $ac_retval
2084
2085} # ac_fn_cxx_try_cpp
2086
2087# ac_fn_cxx_try_link LINENO
2088# -------------------------
2089# Try to link conftest.$ac_ext, and return whether this succeeded.
2090ac_fn_cxx_try_link ()
2091{
2092  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093  rm -f conftest.$ac_objext conftest$ac_exeext
2094  if { { ac_try="$ac_link"
2095case "(($ac_try" in
2096  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097  *) ac_try_echo=$ac_try;;
2098esac
2099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100$as_echo "$ac_try_echo"; } >&5
2101  (eval "$ac_link") 2>conftest.err
2102  ac_status=$?
2103  if test -s conftest.err; then
2104    grep -v '^ *+' conftest.err >conftest.er1
2105    cat conftest.er1 >&5
2106    mv -f conftest.er1 conftest.err
2107  fi
2108  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2109  test $ac_status = 0; } && {
2110	 test -z "$ac_cxx_werror_flag" ||
2111	 test ! -s conftest.err
2112       } && test -s conftest$ac_exeext && {
2113	 test "$cross_compiling" = yes ||
2114	 test -x conftest$ac_exeext
2115       }; then :
2116  ac_retval=0
2117else
2118  $as_echo "$as_me: failed program was:" >&5
2119sed 's/^/| /' conftest.$ac_ext >&5
2120
2121	ac_retval=1
2122fi
2123  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2124  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2125  # interfere with the next link command; also delete a directory that is
2126  # left behind by Apple's compiler.  We do this before executing the actions.
2127  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2128  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129  as_fn_set_status $ac_retval
2130
2131} # ac_fn_cxx_try_link
2132cat >config.log <<_ACEOF
2133This file contains any messages produced by compilers while
2134running configure, to aid debugging if configure makes a mistake.
2135
2136It was created by mjpegtools $as_me 2.1.0, which was
2137generated by GNU Autoconf 2.69.  Invocation command line was
2138
2139  $ $0 $@
2140
2141_ACEOF
2142exec 5>>config.log
2143{
2144cat <<_ASUNAME
2145## --------- ##
2146## Platform. ##
2147## --------- ##
2148
2149hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2150uname -m = `(uname -m) 2>/dev/null || echo unknown`
2151uname -r = `(uname -r) 2>/dev/null || echo unknown`
2152uname -s = `(uname -s) 2>/dev/null || echo unknown`
2153uname -v = `(uname -v) 2>/dev/null || echo unknown`
2154
2155/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2156/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2157
2158/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2159/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2160/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2161/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2162/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2163/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2164/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2165
2166_ASUNAME
2167
2168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2169for as_dir in $PATH
2170do
2171  IFS=$as_save_IFS
2172  test -z "$as_dir" && as_dir=.
2173    $as_echo "PATH: $as_dir"
2174  done
2175IFS=$as_save_IFS
2176
2177} >&5
2178
2179cat >&5 <<_ACEOF
2180
2181
2182## ----------- ##
2183## Core tests. ##
2184## ----------- ##
2185
2186_ACEOF
2187
2188
2189# Keep a trace of the command line.
2190# Strip out --no-create and --no-recursion so they do not pile up.
2191# Strip out --silent because we don't want to record it for future runs.
2192# Also quote any args containing shell meta-characters.
2193# Make two passes to allow for proper duplicate-argument suppression.
2194ac_configure_args=
2195ac_configure_args0=
2196ac_configure_args1=
2197ac_must_keep_next=false
2198for ac_pass in 1 2
2199do
2200  for ac_arg
2201  do
2202    case $ac_arg in
2203    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2204    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2205    | -silent | --silent | --silen | --sile | --sil)
2206      continue ;;
2207    *\'*)
2208      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2209    esac
2210    case $ac_pass in
2211    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2212    2)
2213      as_fn_append ac_configure_args1 " '$ac_arg'"
2214      if test $ac_must_keep_next = true; then
2215	ac_must_keep_next=false # Got value, back to normal.
2216      else
2217	case $ac_arg in
2218	  *=* | --config-cache | -C | -disable-* | --disable-* \
2219	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2220	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2221	  | -with-* | --with-* | -without-* | --without-* | --x)
2222	    case "$ac_configure_args0 " in
2223	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2224	    esac
2225	    ;;
2226	  -* ) ac_must_keep_next=true ;;
2227	esac
2228      fi
2229      as_fn_append ac_configure_args " '$ac_arg'"
2230      ;;
2231    esac
2232  done
2233done
2234{ ac_configure_args0=; unset ac_configure_args0;}
2235{ ac_configure_args1=; unset ac_configure_args1;}
2236
2237# When interrupted or exit'd, cleanup temporary files, and complete
2238# config.log.  We remove comments because anyway the quotes in there
2239# would cause problems or look ugly.
2240# WARNING: Use '\'' to represent an apostrophe within the trap.
2241# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2242trap 'exit_status=$?
2243  # Save into config.log some information that might help in debugging.
2244  {
2245    echo
2246
2247    $as_echo "## ---------------- ##
2248## Cache variables. ##
2249## ---------------- ##"
2250    echo
2251    # The following way of writing the cache mishandles newlines in values,
2252(
2253  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2254    eval ac_val=\$$ac_var
2255    case $ac_val in #(
2256    *${as_nl}*)
2257      case $ac_var in #(
2258      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2259$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2260      esac
2261      case $ac_var in #(
2262      _ | IFS | as_nl) ;; #(
2263      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2264      *) { eval $ac_var=; unset $ac_var;} ;;
2265      esac ;;
2266    esac
2267  done
2268  (set) 2>&1 |
2269    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2270    *${as_nl}ac_space=\ *)
2271      sed -n \
2272	"s/'\''/'\''\\\\'\'''\''/g;
2273	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2274      ;; #(
2275    *)
2276      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2277      ;;
2278    esac |
2279    sort
2280)
2281    echo
2282
2283    $as_echo "## ----------------- ##
2284## Output variables. ##
2285## ----------------- ##"
2286    echo
2287    for ac_var in $ac_subst_vars
2288    do
2289      eval ac_val=\$$ac_var
2290      case $ac_val in
2291      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2292      esac
2293      $as_echo "$ac_var='\''$ac_val'\''"
2294    done | sort
2295    echo
2296
2297    if test -n "$ac_subst_files"; then
2298      $as_echo "## ------------------- ##
2299## File substitutions. ##
2300## ------------------- ##"
2301      echo
2302      for ac_var in $ac_subst_files
2303      do
2304	eval ac_val=\$$ac_var
2305	case $ac_val in
2306	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2307	esac
2308	$as_echo "$ac_var='\''$ac_val'\''"
2309      done | sort
2310      echo
2311    fi
2312
2313    if test -s confdefs.h; then
2314      $as_echo "## ----------- ##
2315## confdefs.h. ##
2316## ----------- ##"
2317      echo
2318      cat confdefs.h
2319      echo
2320    fi
2321    test "$ac_signal" != 0 &&
2322      $as_echo "$as_me: caught signal $ac_signal"
2323    $as_echo "$as_me: exit $exit_status"
2324  } >&5
2325  rm -f core *.core core.conftest.* &&
2326    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2327    exit $exit_status
2328' 0
2329for ac_signal in 1 2 13 15; do
2330  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2331done
2332ac_signal=0
2333
2334# confdefs.h avoids OS command line length limits that DEFS can exceed.
2335rm -f -r conftest* confdefs.h
2336
2337$as_echo "/* confdefs.h */" > confdefs.h
2338
2339# Predefined preprocessor variables.
2340
2341cat >>confdefs.h <<_ACEOF
2342#define PACKAGE_NAME "$PACKAGE_NAME"
2343_ACEOF
2344
2345cat >>confdefs.h <<_ACEOF
2346#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2347_ACEOF
2348
2349cat >>confdefs.h <<_ACEOF
2350#define PACKAGE_VERSION "$PACKAGE_VERSION"
2351_ACEOF
2352
2353cat >>confdefs.h <<_ACEOF
2354#define PACKAGE_STRING "$PACKAGE_STRING"
2355_ACEOF
2356
2357cat >>confdefs.h <<_ACEOF
2358#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2359_ACEOF
2360
2361cat >>confdefs.h <<_ACEOF
2362#define PACKAGE_URL "$PACKAGE_URL"
2363_ACEOF
2364
2365
2366# Let the site file select an alternate cache file if it wants to.
2367# Prefer an explicitly selected file to automatically selected ones.
2368ac_site_file1=NONE
2369ac_site_file2=NONE
2370if test -n "$CONFIG_SITE"; then
2371  # We do not want a PATH search for config.site.
2372  case $CONFIG_SITE in #((
2373    -*)  ac_site_file1=./$CONFIG_SITE;;
2374    */*) ac_site_file1=$CONFIG_SITE;;
2375    *)   ac_site_file1=./$CONFIG_SITE;;
2376  esac
2377elif test "x$prefix" != xNONE; then
2378  ac_site_file1=$prefix/share/config.site
2379  ac_site_file2=$prefix/etc/config.site
2380else
2381  ac_site_file1=$ac_default_prefix/share/config.site
2382  ac_site_file2=$ac_default_prefix/etc/config.site
2383fi
2384for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2385do
2386  test "x$ac_site_file" = xNONE && continue
2387  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2388    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2389$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2390    sed 's/^/| /' "$ac_site_file" >&5
2391    . "$ac_site_file" \
2392      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2393$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2394as_fn_error $? "failed to load site script $ac_site_file
2395See \`config.log' for more details" "$LINENO" 5; }
2396  fi
2397done
2398
2399if test -r "$cache_file"; then
2400  # Some versions of bash will fail to source /dev/null (special files
2401  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2402  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2403    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2404$as_echo "$as_me: loading cache $cache_file" >&6;}
2405    case $cache_file in
2406      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2407      *)                      . "./$cache_file";;
2408    esac
2409  fi
2410else
2411  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2412$as_echo "$as_me: creating cache $cache_file" >&6;}
2413  >$cache_file
2414fi
2415
2416# Check that the precious variables saved in the cache have kept the same
2417# value.
2418ac_cache_corrupted=false
2419for ac_var in $ac_precious_vars; do
2420  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2421  eval ac_new_set=\$ac_env_${ac_var}_set
2422  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2423  eval ac_new_val=\$ac_env_${ac_var}_value
2424  case $ac_old_set,$ac_new_set in
2425    set,)
2426      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2427$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2428      ac_cache_corrupted=: ;;
2429    ,set)
2430      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2431$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2432      ac_cache_corrupted=: ;;
2433    ,);;
2434    *)
2435      if test "x$ac_old_val" != "x$ac_new_val"; then
2436	# differences in whitespace do not lead to failure.
2437	ac_old_val_w=`echo x $ac_old_val`
2438	ac_new_val_w=`echo x $ac_new_val`
2439	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2440	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2441$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2442	  ac_cache_corrupted=:
2443	else
2444	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2445$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2446	  eval $ac_var=\$ac_old_val
2447	fi
2448	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2449$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2450	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2451$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2452      fi;;
2453  esac
2454  # Pass precious variables to config.status.
2455  if test "$ac_new_set" = set; then
2456    case $ac_new_val in
2457    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2458    *) ac_arg=$ac_var=$ac_new_val ;;
2459    esac
2460    case " $ac_configure_args " in
2461      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2462      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2463    esac
2464  fi
2465done
2466if $ac_cache_corrupted; then
2467  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2469  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2470$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2471  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2472fi
2473## -------------------- ##
2474## Main body of script. ##
2475## -------------------- ##
2476
2477ac_ext=c
2478ac_cpp='$CPP $CPPFLAGS'
2479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482
2483
2484
2485
2486
2487MJPEG_MAJOR_VERSION=2
2488MJPEG_MINOR_VERSION=1
2489MJPEG_MICRO_VERSION=0
2490MJPEG_VERSION=$MJPEG_MAJOR_VERSION.$MJPEG_MINOR_VERSION.$MJPEG_MICRO_VERSION
2491
2492ac_config_headers="$ac_config_headers config.h"
2493
2494
2495ac_aux_dir=
2496for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2497  if test -f "$ac_dir/install-sh"; then
2498    ac_aux_dir=$ac_dir
2499    ac_install_sh="$ac_aux_dir/install-sh -c"
2500    break
2501  elif test -f "$ac_dir/install.sh"; then
2502    ac_aux_dir=$ac_dir
2503    ac_install_sh="$ac_aux_dir/install.sh -c"
2504    break
2505  elif test -f "$ac_dir/shtool"; then
2506    ac_aux_dir=$ac_dir
2507    ac_install_sh="$ac_aux_dir/shtool install -c"
2508    break
2509  fi
2510done
2511if test -z "$ac_aux_dir"; then
2512  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2513fi
2514
2515# These three variables are undocumented and unsupported,
2516# and are intended to be withdrawn in a future Autoconf release.
2517# They can cause serious problems if a builder's source tree is in a directory
2518# whose full name contains unusual characters.
2519ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2520ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2521ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2522
2523
2524# Make sure we can run config.sub.
2525$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2526  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2527
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2529$as_echo_n "checking build system type... " >&6; }
2530if ${ac_cv_build+:} false; then :
2531  $as_echo_n "(cached) " >&6
2532else
2533  ac_build_alias=$build_alias
2534test "x$ac_build_alias" = x &&
2535  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2536test "x$ac_build_alias" = x &&
2537  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2538ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2539  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2540
2541fi
2542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2543$as_echo "$ac_cv_build" >&6; }
2544case $ac_cv_build in
2545*-*-*) ;;
2546*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2547esac
2548build=$ac_cv_build
2549ac_save_IFS=$IFS; IFS='-'
2550set x $ac_cv_build
2551shift
2552build_cpu=$1
2553build_vendor=$2
2554shift; shift
2555# Remember, the first character of IFS is used to create $*,
2556# except with old shells:
2557build_os=$*
2558IFS=$ac_save_IFS
2559case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2560
2561
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2563$as_echo_n "checking host system type... " >&6; }
2564if ${ac_cv_host+:} false; then :
2565  $as_echo_n "(cached) " >&6
2566else
2567  if test "x$host_alias" = x; then
2568  ac_cv_host=$ac_cv_build
2569else
2570  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2571    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2572fi
2573
2574fi
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2576$as_echo "$ac_cv_host" >&6; }
2577case $ac_cv_host in
2578*-*-*) ;;
2579*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2580esac
2581host=$ac_cv_host
2582ac_save_IFS=$IFS; IFS='-'
2583set x $ac_cv_host
2584shift
2585host_cpu=$1
2586host_vendor=$2
2587shift; shift
2588# Remember, the first character of IFS is used to create $*,
2589# except with old shells:
2590host_os=$*
2591IFS=$ac_save_IFS
2592case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2593
2594
2595am__api_version='1.12'
2596
2597# Find a good install program.  We prefer a C program (faster),
2598# so one script is as good as another.  But avoid the broken or
2599# incompatible versions:
2600# SysV /etc/install, /usr/sbin/install
2601# SunOS /usr/etc/install
2602# IRIX /sbin/install
2603# AIX /bin/install
2604# AmigaOS /C/install, which installs bootblocks on floppy discs
2605# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2606# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2607# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2608# OS/2's system install, which has a completely different semantic
2609# ./install, which can be erroneously created by make from ./install.sh.
2610# Reject install programs that cannot install multiple files.
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2612$as_echo_n "checking for a BSD-compatible install... " >&6; }
2613if test -z "$INSTALL"; then
2614if ${ac_cv_path_install+:} false; then :
2615  $as_echo_n "(cached) " >&6
2616else
2617  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618for as_dir in $PATH
2619do
2620  IFS=$as_save_IFS
2621  test -z "$as_dir" && as_dir=.
2622    # Account for people who put trailing slashes in PATH elements.
2623case $as_dir/ in #((
2624  ./ | .// | /[cC]/* | \
2625  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2626  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2627  /usr/ucb/* ) ;;
2628  *)
2629    # OSF1 and SCO ODT 3.0 have their own names for install.
2630    # Don't use installbsd from OSF since it installs stuff as root
2631    # by default.
2632    for ac_prog in ginstall scoinst install; do
2633      for ac_exec_ext in '' $ac_executable_extensions; do
2634	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2635	  if test $ac_prog = install &&
2636	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2637	    # AIX install.  It has an incompatible calling convention.
2638	    :
2639	  elif test $ac_prog = install &&
2640	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2641	    # program-specific install script used by HP pwplus--don't use.
2642	    :
2643	  else
2644	    rm -rf conftest.one conftest.two conftest.dir
2645	    echo one > conftest.one
2646	    echo two > conftest.two
2647	    mkdir conftest.dir
2648	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2649	      test -s conftest.one && test -s conftest.two &&
2650	      test -s conftest.dir/conftest.one &&
2651	      test -s conftest.dir/conftest.two
2652	    then
2653	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2654	      break 3
2655	    fi
2656	  fi
2657	fi
2658      done
2659    done
2660    ;;
2661esac
2662
2663  done
2664IFS=$as_save_IFS
2665
2666rm -rf conftest.one conftest.two conftest.dir
2667
2668fi
2669  if test "${ac_cv_path_install+set}" = set; then
2670    INSTALL=$ac_cv_path_install
2671  else
2672    # As a last resort, use the slow shell script.  Don't cache a
2673    # value for INSTALL within a source directory, because that will
2674    # break other packages using the cache if that directory is
2675    # removed, or if the value is a relative name.
2676    INSTALL=$ac_install_sh
2677  fi
2678fi
2679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2680$as_echo "$INSTALL" >&6; }
2681
2682# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2683# It thinks the first close brace ends the variable substitution.
2684test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2685
2686test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2687
2688test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2689
2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2691$as_echo_n "checking whether build environment is sane... " >&6; }
2692# Reject unsafe characters in $srcdir or the absolute working directory
2693# name.  Accept space and tab only in the latter.
2694am_lf='
2695'
2696case `pwd` in
2697  *[\\\"\#\$\&\'\`$am_lf]*)
2698    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2699esac
2700case $srcdir in
2701  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2702    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2703esac
2704
2705# Do 'set' in a subshell so we don't clobber the current shell's
2706# arguments.  Must try -L first in case configure is actually a
2707# symlink; some systems play weird games with the mod time of symlinks
2708# (eg FreeBSD returns the mod time of the symlink's containing
2709# directory).
2710if (
2711   am_has_slept=no
2712   for am_try in 1 2; do
2713     echo "timestamp, slept: $am_has_slept" > conftest.file
2714     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2715     if test "$*" = "X"; then
2716	# -L didn't work.
2717	set X `ls -t "$srcdir/configure" conftest.file`
2718     fi
2719     if test "$*" != "X $srcdir/configure conftest.file" \
2720	&& test "$*" != "X conftest.file $srcdir/configure"; then
2721
2722	# If neither matched, then we have a broken ls.  This can happen
2723	# if, for instance, CONFIG_SHELL is bash and it inherits a
2724	# broken ls alias from the environment.  This has actually
2725	# happened.  Such a system could not be considered "sane".
2726	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2727  alias in your environment" "$LINENO" 5
2728     fi
2729     if test "$2" = conftest.file || test $am_try -eq 2; then
2730       break
2731     fi
2732     # Just in case.
2733     sleep 1
2734     am_has_slept=yes
2735   done
2736   test "$2" = conftest.file
2737   )
2738then
2739   # Ok.
2740   :
2741else
2742   as_fn_error $? "newly created file is older than distributed files!
2743Check your system clock" "$LINENO" 5
2744fi
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2746$as_echo "yes" >&6; }
2747# If we didn't sleep, we still need to ensure time stamps of config.status and
2748# generated files are strictly newer.
2749am_sleep_pid=
2750if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2751  ( sleep 1 ) &
2752  am_sleep_pid=$!
2753fi
2754
2755rm -f conftest.file
2756
2757test "$program_prefix" != NONE &&
2758  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2759# Use a double $ so make ignores it.
2760test "$program_suffix" != NONE &&
2761  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2762# Double any \ or $.
2763# By default was `s,x,x', remove it if useless.
2764ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2765program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2766
2767# expand $ac_aux_dir to an absolute path
2768am_aux_dir=`cd $ac_aux_dir && pwd`
2769
2770if test x"${MISSING+set}" != xset; then
2771  case $am_aux_dir in
2772  *\ * | *\	*)
2773    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2774  *)
2775    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2776  esac
2777fi
2778# Use eval to expand $SHELL
2779if eval "$MISSING --run true"; then
2780  am_missing_run="$MISSING --run "
2781else
2782  am_missing_run=
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2784$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2785fi
2786
2787if test x"${install_sh}" != xset; then
2788  case $am_aux_dir in
2789  *\ * | *\	*)
2790    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2791  *)
2792    install_sh="\${SHELL} $am_aux_dir/install-sh"
2793  esac
2794fi
2795
2796# Installed binaries are usually stripped using 'strip' when the user
2797# run "make install-strip".  However 'strip' might not be the right
2798# tool to use in cross-compilation environments, therefore Automake
2799# will honor the 'STRIP' environment variable to overrule this program.
2800if test "$cross_compiling" != no; then
2801  if test -n "$ac_tool_prefix"; then
2802  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2803set dummy ${ac_tool_prefix}strip; ac_word=$2
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805$as_echo_n "checking for $ac_word... " >&6; }
2806if ${ac_cv_prog_STRIP+:} false; then :
2807  $as_echo_n "(cached) " >&6
2808else
2809  if test -n "$STRIP"; then
2810  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2811else
2812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813for as_dir in $PATH
2814do
2815  IFS=$as_save_IFS
2816  test -z "$as_dir" && as_dir=.
2817    for ac_exec_ext in '' $ac_executable_extensions; do
2818  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2819    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2821    break 2
2822  fi
2823done
2824  done
2825IFS=$as_save_IFS
2826
2827fi
2828fi
2829STRIP=$ac_cv_prog_STRIP
2830if test -n "$STRIP"; then
2831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2832$as_echo "$STRIP" >&6; }
2833else
2834  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2835$as_echo "no" >&6; }
2836fi
2837
2838
2839fi
2840if test -z "$ac_cv_prog_STRIP"; then
2841  ac_ct_STRIP=$STRIP
2842  # Extract the first word of "strip", so it can be a program name with args.
2843set dummy strip; ac_word=$2
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2845$as_echo_n "checking for $ac_word... " >&6; }
2846if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2847  $as_echo_n "(cached) " >&6
2848else
2849  if test -n "$ac_ct_STRIP"; then
2850  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2851else
2852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853for as_dir in $PATH
2854do
2855  IFS=$as_save_IFS
2856  test -z "$as_dir" && as_dir=.
2857    for ac_exec_ext in '' $ac_executable_extensions; do
2858  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2859    ac_cv_prog_ac_ct_STRIP="strip"
2860    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2861    break 2
2862  fi
2863done
2864  done
2865IFS=$as_save_IFS
2866
2867fi
2868fi
2869ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2870if test -n "$ac_ct_STRIP"; then
2871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2872$as_echo "$ac_ct_STRIP" >&6; }
2873else
2874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2875$as_echo "no" >&6; }
2876fi
2877
2878  if test "x$ac_ct_STRIP" = x; then
2879    STRIP=":"
2880  else
2881    case $cross_compiling:$ac_tool_warned in
2882yes:)
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2885ac_tool_warned=yes ;;
2886esac
2887    STRIP=$ac_ct_STRIP
2888  fi
2889else
2890  STRIP="$ac_cv_prog_STRIP"
2891fi
2892
2893fi
2894INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2895
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2897$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2898if test -z "$MKDIR_P"; then
2899  if ${ac_cv_path_mkdir+:} false; then :
2900  $as_echo_n "(cached) " >&6
2901else
2902  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2904do
2905  IFS=$as_save_IFS
2906  test -z "$as_dir" && as_dir=.
2907    for ac_prog in mkdir gmkdir; do
2908	 for ac_exec_ext in '' $ac_executable_extensions; do
2909	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2910	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2911	     'mkdir (GNU coreutils) '* | \
2912	     'mkdir (coreutils) '* | \
2913	     'mkdir (fileutils) '4.1*)
2914	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2915	       break 3;;
2916	   esac
2917	 done
2918       done
2919  done
2920IFS=$as_save_IFS
2921
2922fi
2923
2924  test -d ./--version && rmdir ./--version
2925  if test "${ac_cv_path_mkdir+set}" = set; then
2926    MKDIR_P="$ac_cv_path_mkdir -p"
2927  else
2928    # As a last resort, use the slow shell script.  Don't cache a
2929    # value for MKDIR_P within a source directory, because that will
2930    # break other packages using the cache if that directory is
2931    # removed, or if the value is a relative name.
2932    MKDIR_P="$ac_install_sh -d"
2933  fi
2934fi
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2936$as_echo "$MKDIR_P" >&6; }
2937
2938for ac_prog in gawk mawk nawk awk
2939do
2940  # Extract the first word of "$ac_prog", so it can be a program name with args.
2941set dummy $ac_prog; ac_word=$2
2942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943$as_echo_n "checking for $ac_word... " >&6; }
2944if ${ac_cv_prog_AWK+:} false; then :
2945  $as_echo_n "(cached) " >&6
2946else
2947  if test -n "$AWK"; then
2948  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2949else
2950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951for as_dir in $PATH
2952do
2953  IFS=$as_save_IFS
2954  test -z "$as_dir" && as_dir=.
2955    for ac_exec_ext in '' $ac_executable_extensions; do
2956  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957    ac_cv_prog_AWK="$ac_prog"
2958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2959    break 2
2960  fi
2961done
2962  done
2963IFS=$as_save_IFS
2964
2965fi
2966fi
2967AWK=$ac_cv_prog_AWK
2968if test -n "$AWK"; then
2969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2970$as_echo "$AWK" >&6; }
2971else
2972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
2974fi
2975
2976
2977  test -n "$AWK" && break
2978done
2979
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2981$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2982set x ${MAKE-make}
2983ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2984if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2985  $as_echo_n "(cached) " >&6
2986else
2987  cat >conftest.make <<\_ACEOF
2988SHELL = /bin/sh
2989all:
2990	@echo '@@@%%%=$(MAKE)=@@@%%%'
2991_ACEOF
2992# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2993case `${MAKE-make} -f conftest.make 2>/dev/null` in
2994  *@@@%%%=?*=@@@%%%*)
2995    eval ac_cv_prog_make_${ac_make}_set=yes;;
2996  *)
2997    eval ac_cv_prog_make_${ac_make}_set=no;;
2998esac
2999rm -f conftest.make
3000fi
3001if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3003$as_echo "yes" >&6; }
3004  SET_MAKE=
3005else
3006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007$as_echo "no" >&6; }
3008  SET_MAKE="MAKE=${MAKE-make}"
3009fi
3010
3011rm -rf .tst 2>/dev/null
3012mkdir .tst 2>/dev/null
3013if test -d .tst; then
3014  am__leading_dot=.
3015else
3016  am__leading_dot=_
3017fi
3018rmdir .tst 2>/dev/null
3019
3020if test "`cd $srcdir && pwd`" != "`pwd`"; then
3021  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3022  # is not polluted with repeated "-I."
3023  am__isrc=' -I$(srcdir)'
3024  # test to see if srcdir already configured
3025  if test -f $srcdir/config.status; then
3026    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3027  fi
3028fi
3029
3030# test whether we have cygpath
3031if test -z "$CYGPATH_W"; then
3032  if (cygpath --version) >/dev/null 2>/dev/null; then
3033    CYGPATH_W='cygpath -w'
3034  else
3035    CYGPATH_W=echo
3036  fi
3037fi
3038
3039
3040# Define the identity of the package.
3041 PACKAGE='mjpegtools'
3042 VERSION='2.1.0'
3043
3044
3045cat >>confdefs.h <<_ACEOF
3046#define PACKAGE "$PACKAGE"
3047_ACEOF
3048
3049
3050cat >>confdefs.h <<_ACEOF
3051#define VERSION "$VERSION"
3052_ACEOF
3053
3054# Some tools Automake needs.
3055
3056ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3057
3058
3059AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3060
3061
3062AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3063
3064
3065AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3066
3067
3068MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3069
3070mkdir_p="$MKDIR_P"
3071# We need awk for the "check" target.  The system "awk" is bad on
3072# some platforms.
3073# Always define AMTAR for backward compatibility.  Yes, it's still used
3074# in the wild :-(  We should find a proper way to deprecate it ...
3075AMTAR='$${TAR-tar}'
3076
3077am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3078
3079
3080
3081
3082
3083
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3085$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3086    # Check whether --enable-maintainer-mode was given.
3087if test "${enable_maintainer_mode+set}" = set; then :
3088  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3089else
3090  USE_MAINTAINER_MODE=no
3091fi
3092
3093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3094$as_echo "$USE_MAINTAINER_MODE" >&6; }
3095   if test $USE_MAINTAINER_MODE = yes; then
3096  MAINTAINER_MODE_TRUE=
3097  MAINTAINER_MODE_FALSE='#'
3098else
3099  MAINTAINER_MODE_TRUE='#'
3100  MAINTAINER_MODE_FALSE=
3101fi
3102
3103  MAINT=$MAINTAINER_MODE_TRUE
3104
3105
3106
3107
3108# libtool versioning
3109LT_RELEASE=$MJPEG_MAJOR_VERSION.$MJPEG_MINOR_VERSION
3110LT_CURRENT=$MJPEG_MICRO_VERSION
3111LT_REVISION=$MJPEG_MICRO_VERSION
3112LT_AGE=$MJPEG_MICRO_VERSION
3113
3114
3115
3116
3117
3118
3119
3120# Check whether --enable-compile-warnings was given.
3121if test "${enable_compile_warnings+set}" = set; then :
3122  enableval=$enable_compile_warnings;
3123fi
3124
3125# Check whether --enable-warnings_as_errors was given.
3126if test "${enable_warnings_as_errors+set}" = set; then :
3127  enableval=$enable_warnings_as_errors;
3128fi
3129
3130# Check whether --enable-static-build was given.
3131if test "${enable_static_build+set}" = set; then :
3132  enableval=$enable_static_build;
3133fi
3134
3135# Check whether --enable-simd-accel was given.
3136if test "${enable_simd_accel+set}" = set; then :
3137  enableval=$enable_simd_accel;
3138fi
3139
3140
3141# Check whether --with-extra-cflags was given.
3142if test "${with_extra_cflags+set}" = set; then :
3143  withval=$with_extra_cflags;
3144fi
3145
3146
3147# Check whether --with-libquicktime was given.
3148if test "${with_libquicktime+set}" = set; then :
3149  withval=$with_libquicktime;
3150else
3151  with_libquicktime=yes
3152fi
3153
3154
3155# Check whether --with-libdv was given.
3156if test "${with_libdv+set}" = set; then :
3157  withval=$with_libdv;
3158else
3159  with_libdv=yes
3160fi
3161
3162
3163# Check whether --with-libpng was given.
3164if test "${with_libpng+set}" = set; then :
3165  withval=$with_libpng;
3166else
3167  with_libpng=yes
3168fi
3169
3170
3171# Check whether --with-dga was given.
3172if test "${with_dga+set}" = set; then :
3173  withval=$with_dga;
3174else
3175  with_dga=yes
3176fi
3177
3178
3179# Check whether --with-gtk was given.
3180if test "${with_gtk+set}" = set; then :
3181  withval=$with_gtk;
3182else
3183  with_gtk=yes
3184fi
3185
3186
3187# Check whether --with-libsdl was given.
3188if test "${with_libsdl+set}" = set; then :
3189  withval=$with_libsdl;
3190else
3191  with_libsdl=yes
3192fi
3193
3194
3195# Check whether --with-sdlgfx was given.
3196if test "${with_sdlgfx+set}" = set; then :
3197  withval=$with_sdlgfx;
3198else
3199  with_sdlgfx=yes
3200fi
3201
3202DEPDIR="${am__leading_dot}deps"
3203
3204ac_config_commands="$ac_config_commands depfiles"
3205
3206
3207am_make=${MAKE-make}
3208cat > confinc << 'END'
3209am__doit:
3210	@echo this is the am__doit target
3211.PHONY: am__doit
3212END
3213# If we don't find an include directive, just comment out the code.
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3215$as_echo_n "checking for style of include used by $am_make... " >&6; }
3216am__include="#"
3217am__quote=
3218_am_result=none
3219# First try GNU make style include.
3220echo "include confinc" > confmf
3221# Ignore all kinds of additional output from 'make'.
3222case `$am_make -s -f confmf 2> /dev/null` in #(
3223*the\ am__doit\ target*)
3224  am__include=include
3225  am__quote=
3226  _am_result=GNU
3227  ;;
3228esac
3229# Now try BSD make style include.
3230if test "$am__include" = "#"; then
3231   echo '.include "confinc"' > confmf
3232   case `$am_make -s -f confmf 2> /dev/null` in #(
3233   *the\ am__doit\ target*)
3234     am__include=.include
3235     am__quote="\""
3236     _am_result=BSD
3237     ;;
3238   esac
3239fi
3240
3241
3242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3243$as_echo "$_am_result" >&6; }
3244rm -f confinc confmf
3245
3246# Check whether --enable-dependency-tracking was given.
3247if test "${enable_dependency_tracking+set}" = set; then :
3248  enableval=$enable_dependency_tracking;
3249fi
3250
3251if test "x$enable_dependency_tracking" != xno; then
3252  am_depcomp="$ac_aux_dir/depcomp"
3253  AMDEPBACKSLASH='\'
3254  am__nodep='_no'
3255fi
3256 if test "x$enable_dependency_tracking" != xno; then
3257  AMDEP_TRUE=
3258  AMDEP_FALSE='#'
3259else
3260  AMDEP_TRUE='#'
3261  AMDEP_FALSE=
3262fi
3263
3264
3265ac_ext=c
3266ac_cpp='$CPP $CPPFLAGS'
3267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270if test -n "$ac_tool_prefix"; then
3271  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272set dummy ${ac_tool_prefix}gcc; ac_word=$2
3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3274$as_echo_n "checking for $ac_word... " >&6; }
3275if ${ac_cv_prog_CC+:} false; then :
3276  $as_echo_n "(cached) " >&6
3277else
3278  if test -n "$CC"; then
3279  ac_cv_prog_CC="$CC" # Let the user override the test.
3280else
3281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282for as_dir in $PATH
3283do
3284  IFS=$as_save_IFS
3285  test -z "$as_dir" && as_dir=.
3286    for ac_exec_ext in '' $ac_executable_extensions; do
3287  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3288    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3289    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3290    break 2
3291  fi
3292done
3293  done
3294IFS=$as_save_IFS
3295
3296fi
3297fi
3298CC=$ac_cv_prog_CC
3299if test -n "$CC"; then
3300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3301$as_echo "$CC" >&6; }
3302else
3303  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304$as_echo "no" >&6; }
3305fi
3306
3307
3308fi
3309if test -z "$ac_cv_prog_CC"; then
3310  ac_ct_CC=$CC
3311  # Extract the first word of "gcc", so it can be a program name with args.
3312set dummy gcc; ac_word=$2
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314$as_echo_n "checking for $ac_word... " >&6; }
3315if ${ac_cv_prog_ac_ct_CC+:} false; then :
3316  $as_echo_n "(cached) " >&6
3317else
3318  if test -n "$ac_ct_CC"; then
3319  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320else
3321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322for as_dir in $PATH
3323do
3324  IFS=$as_save_IFS
3325  test -z "$as_dir" && as_dir=.
3326    for ac_exec_ext in '' $ac_executable_extensions; do
3327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328    ac_cv_prog_ac_ct_CC="gcc"
3329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330    break 2
3331  fi
3332done
3333  done
3334IFS=$as_save_IFS
3335
3336fi
3337fi
3338ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339if test -n "$ac_ct_CC"; then
3340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3341$as_echo "$ac_ct_CC" >&6; }
3342else
3343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344$as_echo "no" >&6; }
3345fi
3346
3347  if test "x$ac_ct_CC" = x; then
3348    CC=""
3349  else
3350    case $cross_compiling:$ac_tool_warned in
3351yes:)
3352{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3353$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3354ac_tool_warned=yes ;;
3355esac
3356    CC=$ac_ct_CC
3357  fi
3358else
3359  CC="$ac_cv_prog_CC"
3360fi
3361
3362if test -z "$CC"; then
3363          if test -n "$ac_tool_prefix"; then
3364    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3365set dummy ${ac_tool_prefix}cc; ac_word=$2
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367$as_echo_n "checking for $ac_word... " >&6; }
3368if ${ac_cv_prog_CC+:} false; then :
3369  $as_echo_n "(cached) " >&6
3370else
3371  if test -n "$CC"; then
3372  ac_cv_prog_CC="$CC" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377  IFS=$as_save_IFS
3378  test -z "$as_dir" && as_dir=.
3379    for ac_exec_ext in '' $ac_executable_extensions; do
3380  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381    ac_cv_prog_CC="${ac_tool_prefix}cc"
3382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383    break 2
3384  fi
3385done
3386  done
3387IFS=$as_save_IFS
3388
3389fi
3390fi
3391CC=$ac_cv_prog_CC
3392if test -n "$CC"; then
3393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394$as_echo "$CC" >&6; }
3395else
3396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397$as_echo "no" >&6; }
3398fi
3399
3400
3401  fi
3402fi
3403if test -z "$CC"; then
3404  # Extract the first word of "cc", so it can be a program name with args.
3405set dummy cc; ac_word=$2
3406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407$as_echo_n "checking for $ac_word... " >&6; }
3408if ${ac_cv_prog_CC+:} false; then :
3409  $as_echo_n "(cached) " >&6
3410else
3411  if test -n "$CC"; then
3412  ac_cv_prog_CC="$CC" # Let the user override the test.
3413else
3414  ac_prog_rejected=no
3415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416for as_dir in $PATH
3417do
3418  IFS=$as_save_IFS
3419  test -z "$as_dir" && as_dir=.
3420    for ac_exec_ext in '' $ac_executable_extensions; do
3421  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3423       ac_prog_rejected=yes
3424       continue
3425     fi
3426    ac_cv_prog_CC="cc"
3427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3428    break 2
3429  fi
3430done
3431  done
3432IFS=$as_save_IFS
3433
3434if test $ac_prog_rejected = yes; then
3435  # We found a bogon in the path, so make sure we never use it.
3436  set dummy $ac_cv_prog_CC
3437  shift
3438  if test $# != 0; then
3439    # We chose a different compiler from the bogus one.
3440    # However, it has the same basename, so the bogon will be chosen
3441    # first if we set CC to just the basename; use the full file name.
3442    shift
3443    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3444  fi
3445fi
3446fi
3447fi
3448CC=$ac_cv_prog_CC
3449if test -n "$CC"; then
3450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3451$as_echo "$CC" >&6; }
3452else
3453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454$as_echo "no" >&6; }
3455fi
3456
3457
3458fi
3459if test -z "$CC"; then
3460  if test -n "$ac_tool_prefix"; then
3461  for ac_prog in cl.exe
3462  do
3463    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3464set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466$as_echo_n "checking for $ac_word... " >&6; }
3467if ${ac_cv_prog_CC+:} false; then :
3468  $as_echo_n "(cached) " >&6
3469else
3470  if test -n "$CC"; then
3471  ac_cv_prog_CC="$CC" # Let the user override the test.
3472else
3473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474for as_dir in $PATH
3475do
3476  IFS=$as_save_IFS
3477  test -z "$as_dir" && as_dir=.
3478    for ac_exec_ext in '' $ac_executable_extensions; do
3479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482    break 2
3483  fi
3484done
3485  done
3486IFS=$as_save_IFS
3487
3488fi
3489fi
3490CC=$ac_cv_prog_CC
3491if test -n "$CC"; then
3492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493$as_echo "$CC" >&6; }
3494else
3495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496$as_echo "no" >&6; }
3497fi
3498
3499
3500    test -n "$CC" && break
3501  done
3502fi
3503if test -z "$CC"; then
3504  ac_ct_CC=$CC
3505  for ac_prog in cl.exe
3506do
3507  # Extract the first word of "$ac_prog", so it can be a program name with args.
3508set dummy $ac_prog; ac_word=$2
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510$as_echo_n "checking for $ac_word... " >&6; }
3511if ${ac_cv_prog_ac_ct_CC+:} false; then :
3512  $as_echo_n "(cached) " >&6
3513else
3514  if test -n "$ac_ct_CC"; then
3515  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3516else
3517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518for as_dir in $PATH
3519do
3520  IFS=$as_save_IFS
3521  test -z "$as_dir" && as_dir=.
3522    for ac_exec_ext in '' $ac_executable_extensions; do
3523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524    ac_cv_prog_ac_ct_CC="$ac_prog"
3525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526    break 2
3527  fi
3528done
3529  done
3530IFS=$as_save_IFS
3531
3532fi
3533fi
3534ac_ct_CC=$ac_cv_prog_ac_ct_CC
3535if test -n "$ac_ct_CC"; then
3536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3537$as_echo "$ac_ct_CC" >&6; }
3538else
3539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540$as_echo "no" >&6; }
3541fi
3542
3543
3544  test -n "$ac_ct_CC" && break
3545done
3546
3547  if test "x$ac_ct_CC" = x; then
3548    CC=""
3549  else
3550    case $cross_compiling:$ac_tool_warned in
3551yes:)
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3554ac_tool_warned=yes ;;
3555esac
3556    CC=$ac_ct_CC
3557  fi
3558fi
3559
3560fi
3561
3562
3563test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3565as_fn_error $? "no acceptable C compiler found in \$PATH
3566See \`config.log' for more details" "$LINENO" 5; }
3567
3568# Provide some information about the compiler.
3569$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3570set X $ac_compile
3571ac_compiler=$2
3572for ac_option in --version -v -V -qversion; do
3573  { { ac_try="$ac_compiler $ac_option >&5"
3574case "(($ac_try" in
3575  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576  *) ac_try_echo=$ac_try;;
3577esac
3578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3579$as_echo "$ac_try_echo"; } >&5
3580  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3581  ac_status=$?
3582  if test -s conftest.err; then
3583    sed '10a\
3584... rest of stderr output deleted ...
3585         10q' conftest.err >conftest.er1
3586    cat conftest.er1 >&5
3587  fi
3588  rm -f conftest.er1 conftest.err
3589  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590  test $ac_status = 0; }
3591done
3592
3593cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594/* end confdefs.h.  */
3595
3596int
3597main ()
3598{
3599
3600  ;
3601  return 0;
3602}
3603_ACEOF
3604ac_clean_files_save=$ac_clean_files
3605ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3606# Try to create an executable without -o first, disregard a.out.
3607# It will help us diagnose broken compilers, and finding out an intuition
3608# of exeext.
3609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3610$as_echo_n "checking whether the C compiler works... " >&6; }
3611ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3612
3613# The possible output files:
3614ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3615
3616ac_rmfiles=
3617for ac_file in $ac_files
3618do
3619  case $ac_file in
3620    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3621    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3622  esac
3623done
3624rm -f $ac_rmfiles
3625
3626if { { ac_try="$ac_link_default"
3627case "(($ac_try" in
3628  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629  *) ac_try_echo=$ac_try;;
3630esac
3631eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632$as_echo "$ac_try_echo"; } >&5
3633  (eval "$ac_link_default") 2>&5
3634  ac_status=$?
3635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636  test $ac_status = 0; }; then :
3637  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3638# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3639# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3640# so that the user can short-circuit this test for compilers unknown to
3641# Autoconf.
3642for ac_file in $ac_files ''
3643do
3644  test -f "$ac_file" || continue
3645  case $ac_file in
3646    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3647	;;
3648    [ab].out )
3649	# We found the default executable, but exeext='' is most
3650	# certainly right.
3651	break;;
3652    *.* )
3653	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3654	then :; else
3655	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656	fi
3657	# We set ac_cv_exeext here because the later test for it is not
3658	# safe: cross compilers may not add the suffix if given an `-o'
3659	# argument, so we may need to know it at that point already.
3660	# Even if this section looks crufty: it has the advantage of
3661	# actually working.
3662	break;;
3663    * )
3664	break;;
3665  esac
3666done
3667test "$ac_cv_exeext" = no && ac_cv_exeext=
3668
3669else
3670  ac_file=''
3671fi
3672if test -z "$ac_file"; then :
3673  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674$as_echo "no" >&6; }
3675$as_echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3680as_fn_error 77 "C compiler cannot create executables
3681See \`config.log' for more details" "$LINENO" 5; }
3682else
3683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3684$as_echo "yes" >&6; }
3685fi
3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3687$as_echo_n "checking for C compiler default output file name... " >&6; }
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3689$as_echo "$ac_file" >&6; }
3690ac_exeext=$ac_cv_exeext
3691
3692rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3693ac_clean_files=$ac_clean_files_save
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3695$as_echo_n "checking for suffix of executables... " >&6; }
3696if { { ac_try="$ac_link"
3697case "(($ac_try" in
3698  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699  *) ac_try_echo=$ac_try;;
3700esac
3701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3702$as_echo "$ac_try_echo"; } >&5
3703  (eval "$ac_link") 2>&5
3704  ac_status=$?
3705  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3706  test $ac_status = 0; }; then :
3707  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3708# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3709# work properly (i.e., refer to `conftest.exe'), while it won't with
3710# `rm'.
3711for ac_file in conftest.exe conftest conftest.*; do
3712  test -f "$ac_file" || continue
3713  case $ac_file in
3714    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3715    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3716	  break;;
3717    * ) break;;
3718  esac
3719done
3720else
3721  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3722$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3724See \`config.log' for more details" "$LINENO" 5; }
3725fi
3726rm -f conftest conftest$ac_cv_exeext
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3728$as_echo "$ac_cv_exeext" >&6; }
3729
3730rm -f conftest.$ac_ext
3731EXEEXT=$ac_cv_exeext
3732ac_exeext=$EXEEXT
3733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734/* end confdefs.h.  */
3735#include <stdio.h>
3736int
3737main ()
3738{
3739FILE *f = fopen ("conftest.out", "w");
3740 return ferror (f) || fclose (f) != 0;
3741
3742  ;
3743  return 0;
3744}
3745_ACEOF
3746ac_clean_files="$ac_clean_files conftest.out"
3747# Check that the compiler produces executables we can run.  If not, either
3748# the compiler is broken, or we cross compile.
3749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3750$as_echo_n "checking whether we are cross compiling... " >&6; }
3751if test "$cross_compiling" != yes; then
3752  { { ac_try="$ac_link"
3753case "(($ac_try" in
3754  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755  *) ac_try_echo=$ac_try;;
3756esac
3757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758$as_echo "$ac_try_echo"; } >&5
3759  (eval "$ac_link") 2>&5
3760  ac_status=$?
3761  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762  test $ac_status = 0; }
3763  if { ac_try='./conftest$ac_cv_exeext'
3764  { { case "(($ac_try" in
3765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766  *) ac_try_echo=$ac_try;;
3767esac
3768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769$as_echo "$ac_try_echo"; } >&5
3770  (eval "$ac_try") 2>&5
3771  ac_status=$?
3772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773  test $ac_status = 0; }; }; then
3774    cross_compiling=no
3775  else
3776    if test "$cross_compiling" = maybe; then
3777	cross_compiling=yes
3778    else
3779	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781as_fn_error $? "cannot run C compiled programs.
3782If you meant to cross compile, use \`--host'.
3783See \`config.log' for more details" "$LINENO" 5; }
3784    fi
3785  fi
3786fi
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3788$as_echo "$cross_compiling" >&6; }
3789
3790rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3791ac_clean_files=$ac_clean_files_save
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3793$as_echo_n "checking for suffix of object files... " >&6; }
3794if ${ac_cv_objext+:} false; then :
3795  $as_echo_n "(cached) " >&6
3796else
3797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798/* end confdefs.h.  */
3799
3800int
3801main ()
3802{
3803
3804  ;
3805  return 0;
3806}
3807_ACEOF
3808rm -f conftest.o conftest.obj
3809if { { ac_try="$ac_compile"
3810case "(($ac_try" in
3811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812  *) ac_try_echo=$ac_try;;
3813esac
3814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815$as_echo "$ac_try_echo"; } >&5
3816  (eval "$ac_compile") 2>&5
3817  ac_status=$?
3818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3819  test $ac_status = 0; }; then :
3820  for ac_file in conftest.o conftest.obj conftest.*; do
3821  test -f "$ac_file" || continue;
3822  case $ac_file in
3823    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3824    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3825       break;;
3826  esac
3827done
3828else
3829  $as_echo "$as_me: failed program was:" >&5
3830sed 's/^/| /' conftest.$ac_ext >&5
3831
3832{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834as_fn_error $? "cannot compute suffix of object files: cannot compile
3835See \`config.log' for more details" "$LINENO" 5; }
3836fi
3837rm -f conftest.$ac_cv_objext conftest.$ac_ext
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3840$as_echo "$ac_cv_objext" >&6; }
3841OBJEXT=$ac_cv_objext
3842ac_objext=$OBJEXT
3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3844$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3845if ${ac_cv_c_compiler_gnu+:} false; then :
3846  $as_echo_n "(cached) " >&6
3847else
3848  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h.  */
3850
3851int
3852main ()
3853{
3854#ifndef __GNUC__
3855       choke me
3856#endif
3857
3858  ;
3859  return 0;
3860}
3861_ACEOF
3862if ac_fn_c_try_compile "$LINENO"; then :
3863  ac_compiler_gnu=yes
3864else
3865  ac_compiler_gnu=no
3866fi
3867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3868ac_cv_c_compiler_gnu=$ac_compiler_gnu
3869
3870fi
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3872$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3873if test $ac_compiler_gnu = yes; then
3874  GCC=yes
3875else
3876  GCC=
3877fi
3878ac_test_CFLAGS=${CFLAGS+set}
3879ac_save_CFLAGS=$CFLAGS
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3881$as_echo_n "checking whether $CC accepts -g... " >&6; }
3882if ${ac_cv_prog_cc_g+:} false; then :
3883  $as_echo_n "(cached) " >&6
3884else
3885  ac_save_c_werror_flag=$ac_c_werror_flag
3886   ac_c_werror_flag=yes
3887   ac_cv_prog_cc_g=no
3888   CFLAGS="-g"
3889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890/* end confdefs.h.  */
3891
3892int
3893main ()
3894{
3895
3896  ;
3897  return 0;
3898}
3899_ACEOF
3900if ac_fn_c_try_compile "$LINENO"; then :
3901  ac_cv_prog_cc_g=yes
3902else
3903  CFLAGS=""
3904      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905/* end confdefs.h.  */
3906
3907int
3908main ()
3909{
3910
3911  ;
3912  return 0;
3913}
3914_ACEOF
3915if ac_fn_c_try_compile "$LINENO"; then :
3916
3917else
3918  ac_c_werror_flag=$ac_save_c_werror_flag
3919	 CFLAGS="-g"
3920	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921/* end confdefs.h.  */
3922
3923int
3924main ()
3925{
3926
3927  ;
3928  return 0;
3929}
3930_ACEOF
3931if ac_fn_c_try_compile "$LINENO"; then :
3932  ac_cv_prog_cc_g=yes
3933fi
3934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935fi
3936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3937fi
3938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3939   ac_c_werror_flag=$ac_save_c_werror_flag
3940fi
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3942$as_echo "$ac_cv_prog_cc_g" >&6; }
3943if test "$ac_test_CFLAGS" = set; then
3944  CFLAGS=$ac_save_CFLAGS
3945elif test $ac_cv_prog_cc_g = yes; then
3946  if test "$GCC" = yes; then
3947    CFLAGS="-g -O2"
3948  else
3949    CFLAGS="-g"
3950  fi
3951else
3952  if test "$GCC" = yes; then
3953    CFLAGS="-O2"
3954  else
3955    CFLAGS=
3956  fi
3957fi
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3959$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3960if ${ac_cv_prog_cc_c89+:} false; then :
3961  $as_echo_n "(cached) " >&6
3962else
3963  ac_cv_prog_cc_c89=no
3964ac_save_CC=$CC
3965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966/* end confdefs.h.  */
3967#include <stdarg.h>
3968#include <stdio.h>
3969struct stat;
3970/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3971struct buf { int x; };
3972FILE * (*rcsopen) (struct buf *, struct stat *, int);
3973static char *e (p, i)
3974     char **p;
3975     int i;
3976{
3977  return p[i];
3978}
3979static char *f (char * (*g) (char **, int), char **p, ...)
3980{
3981  char *s;
3982  va_list v;
3983  va_start (v,p);
3984  s = g (p, va_arg (v,int));
3985  va_end (v);
3986  return s;
3987}
3988
3989/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3990   function prototypes and stuff, but not '\xHH' hex character constants.
3991   These don't provoke an error unfortunately, instead are silently treated
3992   as 'x'.  The following induces an error, until -std is added to get
3993   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3994   array size at least.  It's necessary to write '\x00'==0 to get something
3995   that's true only with -std.  */
3996int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3997
3998/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3999   inside strings and character constants.  */
4000#define FOO(x) 'x'
4001int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4002
4003int test (int i, double x);
4004struct s1 {int (*f) (int a);};
4005struct s2 {int (*f) (double a);};
4006int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4007int argc;
4008char **argv;
4009int
4010main ()
4011{
4012return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4013  ;
4014  return 0;
4015}
4016_ACEOF
4017for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4018	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4019do
4020  CC="$ac_save_CC $ac_arg"
4021  if ac_fn_c_try_compile "$LINENO"; then :
4022  ac_cv_prog_cc_c89=$ac_arg
4023fi
4024rm -f core conftest.err conftest.$ac_objext
4025  test "x$ac_cv_prog_cc_c89" != "xno" && break
4026done
4027rm -f conftest.$ac_ext
4028CC=$ac_save_CC
4029
4030fi
4031# AC_CACHE_VAL
4032case "x$ac_cv_prog_cc_c89" in
4033  x)
4034    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4035$as_echo "none needed" >&6; } ;;
4036  xno)
4037    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4038$as_echo "unsupported" >&6; } ;;
4039  *)
4040    CC="$CC $ac_cv_prog_cc_c89"
4041    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4042$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4043esac
4044if test "x$ac_cv_prog_cc_c89" != xno; then :
4045
4046fi
4047
4048ac_ext=c
4049ac_cpp='$CPP $CPPFLAGS'
4050ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4051ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4052ac_compiler_gnu=$ac_cv_c_compiler_gnu
4053
4054depcc="$CC"   am_compiler_list=
4055
4056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4057$as_echo_n "checking dependency style of $depcc... " >&6; }
4058if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4059  $as_echo_n "(cached) " >&6
4060else
4061  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4062  # We make a subdir and do the tests there.  Otherwise we can end up
4063  # making bogus files that we don't know about and never remove.  For
4064  # instance it was reported that on HP-UX the gcc test will end up
4065  # making a dummy file named 'D' -- because '-MD' means "put the output
4066  # in D".
4067  rm -rf conftest.dir
4068  mkdir conftest.dir
4069  # Copy depcomp to subdir because otherwise we won't find it if we're
4070  # using a relative directory.
4071  cp "$am_depcomp" conftest.dir
4072  cd conftest.dir
4073  # We will build objects and dependencies in a subdirectory because
4074  # it helps to detect inapplicable dependency modes.  For instance
4075  # both Tru64's cc and ICC support -MD to output dependencies as a
4076  # side effect of compilation, but ICC will put the dependencies in
4077  # the current directory while Tru64 will put them in the object
4078  # directory.
4079  mkdir sub
4080
4081  am_cv_CC_dependencies_compiler_type=none
4082  if test "$am_compiler_list" = ""; then
4083     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4084  fi
4085  am__universal=false
4086  case " $depcc " in #(
4087     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4088     esac
4089
4090  for depmode in $am_compiler_list; do
4091    # Setup a source with many dependencies, because some compilers
4092    # like to wrap large dependency lists on column 80 (with \), and
4093    # we should not choose a depcomp mode which is confused by this.
4094    #
4095    # We need to recreate these files for each test, as the compiler may
4096    # overwrite some of them when testing with obscure command lines.
4097    # This happens at least with the AIX C compiler.
4098    : > sub/conftest.c
4099    for i in 1 2 3 4 5 6; do
4100      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4101      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4102      # Solaris 10 /bin/sh.
4103      echo '/* dummy */' > sub/conftst$i.h
4104    done
4105    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4106
4107    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4108    # mode.  It turns out that the SunPro C++ compiler does not properly
4109    # handle '-M -o', and we need to detect this.  Also, some Intel
4110    # versions had trouble with output in subdirs.
4111    am__obj=sub/conftest.${OBJEXT-o}
4112    am__minus_obj="-o $am__obj"
4113    case $depmode in
4114    gcc)
4115      # This depmode causes a compiler race in universal mode.
4116      test "$am__universal" = false || continue
4117      ;;
4118    nosideeffect)
4119      # After this tag, mechanisms are not by side-effect, so they'll
4120      # only be used when explicitly requested.
4121      if test "x$enable_dependency_tracking" = xyes; then
4122	continue
4123      else
4124	break
4125      fi
4126      ;;
4127    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4128      # This compiler won't grok '-c -o', but also, the minuso test has
4129      # not run yet.  These depmodes are late enough in the game, and
4130      # so weak that their functioning should not be impacted.
4131      am__obj=conftest.${OBJEXT-o}
4132      am__minus_obj=
4133      ;;
4134    none) break ;;
4135    esac
4136    if depmode=$depmode \
4137       source=sub/conftest.c object=$am__obj \
4138       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4139       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4140         >/dev/null 2>conftest.err &&
4141       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4142       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4143       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4144       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4145      # icc doesn't choke on unknown options, it will just issue warnings
4146      # or remarks (even with -Werror).  So we grep stderr for any message
4147      # that says an option was ignored or not supported.
4148      # When given -MP, icc 7.0 and 7.1 complain thusly:
4149      #   icc: Command line warning: ignoring option '-M'; no argument required
4150      # The diagnosis changed in icc 8.0:
4151      #   icc: Command line remark: option '-MP' not supported
4152      if (grep 'ignoring option' conftest.err ||
4153          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4154        am_cv_CC_dependencies_compiler_type=$depmode
4155        break
4156      fi
4157    fi
4158  done
4159
4160  cd ..
4161  rm -rf conftest.dir
4162else
4163  am_cv_CC_dependencies_compiler_type=none
4164fi
4165
4166fi
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4168$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4169CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4170
4171 if
4172  test "x$enable_dependency_tracking" != xno \
4173  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4174  am__fastdepCC_TRUE=
4175  am__fastdepCC_FALSE='#'
4176else
4177  am__fastdepCC_TRUE='#'
4178  am__fastdepCC_FALSE=
4179fi
4180
4181
4182
4183ac_ext=c
4184ac_cpp='$CPP $CPPFLAGS'
4185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4189$as_echo_n "checking how to run the C preprocessor... " >&6; }
4190# On Suns, sometimes $CPP names a directory.
4191if test -n "$CPP" && test -d "$CPP"; then
4192  CPP=
4193fi
4194if test -z "$CPP"; then
4195  if ${ac_cv_prog_CPP+:} false; then :
4196  $as_echo_n "(cached) " >&6
4197else
4198      # Double quotes because CPP needs to be expanded
4199    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4200    do
4201      ac_preproc_ok=false
4202for ac_c_preproc_warn_flag in '' yes
4203do
4204  # Use a header file that comes with gcc, so configuring glibc
4205  # with a fresh cross-compiler works.
4206  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4207  # <limits.h> exists even on freestanding compilers.
4208  # On the NeXT, cc -E runs the code through the compiler's parser,
4209  # not just through cpp. "Syntax error" is here to catch this case.
4210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211/* end confdefs.h.  */
4212#ifdef __STDC__
4213# include <limits.h>
4214#else
4215# include <assert.h>
4216#endif
4217		     Syntax error
4218_ACEOF
4219if ac_fn_c_try_cpp "$LINENO"; then :
4220
4221else
4222  # Broken: fails on valid input.
4223continue
4224fi
4225rm -f conftest.err conftest.i conftest.$ac_ext
4226
4227  # OK, works on sane cases.  Now check whether nonexistent headers
4228  # can be detected and how.
4229  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h.  */
4231#include <ac_nonexistent.h>
4232_ACEOF
4233if ac_fn_c_try_cpp "$LINENO"; then :
4234  # Broken: success on invalid input.
4235continue
4236else
4237  # Passes both tests.
4238ac_preproc_ok=:
4239break
4240fi
4241rm -f conftest.err conftest.i conftest.$ac_ext
4242
4243done
4244# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4245rm -f conftest.i conftest.err conftest.$ac_ext
4246if $ac_preproc_ok; then :
4247  break
4248fi
4249
4250    done
4251    ac_cv_prog_CPP=$CPP
4252
4253fi
4254  CPP=$ac_cv_prog_CPP
4255else
4256  ac_cv_prog_CPP=$CPP
4257fi
4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4259$as_echo "$CPP" >&6; }
4260ac_preproc_ok=false
4261for ac_c_preproc_warn_flag in '' yes
4262do
4263  # Use a header file that comes with gcc, so configuring glibc
4264  # with a fresh cross-compiler works.
4265  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4266  # <limits.h> exists even on freestanding compilers.
4267  # On the NeXT, cc -E runs the code through the compiler's parser,
4268  # not just through cpp. "Syntax error" is here to catch this case.
4269  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270/* end confdefs.h.  */
4271#ifdef __STDC__
4272# include <limits.h>
4273#else
4274# include <assert.h>
4275#endif
4276		     Syntax error
4277_ACEOF
4278if ac_fn_c_try_cpp "$LINENO"; then :
4279
4280else
4281  # Broken: fails on valid input.
4282continue
4283fi
4284rm -f conftest.err conftest.i conftest.$ac_ext
4285
4286  # OK, works on sane cases.  Now check whether nonexistent headers
4287  # can be detected and how.
4288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289/* end confdefs.h.  */
4290#include <ac_nonexistent.h>
4291_ACEOF
4292if ac_fn_c_try_cpp "$LINENO"; then :
4293  # Broken: success on invalid input.
4294continue
4295else
4296  # Passes both tests.
4297ac_preproc_ok=:
4298break
4299fi
4300rm -f conftest.err conftest.i conftest.$ac_ext
4301
4302done
4303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4304rm -f conftest.i conftest.err conftest.$ac_ext
4305if $ac_preproc_ok; then :
4306
4307else
4308  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4310as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4311See \`config.log' for more details" "$LINENO" 5; }
4312fi
4313
4314ac_ext=c
4315ac_cpp='$CPP $CPPFLAGS'
4316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319
4320
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4322$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4323if ${ac_cv_path_GREP+:} false; then :
4324  $as_echo_n "(cached) " >&6
4325else
4326  if test -z "$GREP"; then
4327  ac_path_GREP_found=false
4328  # Loop through the user's path and test for each of PROGNAME-LIST
4329  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4331do
4332  IFS=$as_save_IFS
4333  test -z "$as_dir" && as_dir=.
4334    for ac_prog in grep ggrep; do
4335    for ac_exec_ext in '' $ac_executable_extensions; do
4336      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4337      as_fn_executable_p "$ac_path_GREP" || continue
4338# Check for GNU ac_path_GREP and select it if it is found.
4339  # Check for GNU $ac_path_GREP
4340case `"$ac_path_GREP" --version 2>&1` in
4341*GNU*)
4342  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4343*)
4344  ac_count=0
4345  $as_echo_n 0123456789 >"conftest.in"
4346  while :
4347  do
4348    cat "conftest.in" "conftest.in" >"conftest.tmp"
4349    mv "conftest.tmp" "conftest.in"
4350    cp "conftest.in" "conftest.nl"
4351    $as_echo 'GREP' >> "conftest.nl"
4352    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4353    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4354    as_fn_arith $ac_count + 1 && ac_count=$as_val
4355    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4356      # Best one so far, save it but keep looking for a better one
4357      ac_cv_path_GREP="$ac_path_GREP"
4358      ac_path_GREP_max=$ac_count
4359    fi
4360    # 10*(2^10) chars as input seems more than enough
4361    test $ac_count -gt 10 && break
4362  done
4363  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4364esac
4365
4366      $ac_path_GREP_found && break 3
4367    done
4368  done
4369  done
4370IFS=$as_save_IFS
4371  if test -z "$ac_cv_path_GREP"; then
4372    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4373  fi
4374else
4375  ac_cv_path_GREP=$GREP
4376fi
4377
4378fi
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4380$as_echo "$ac_cv_path_GREP" >&6; }
4381 GREP="$ac_cv_path_GREP"
4382
4383
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4385$as_echo_n "checking for egrep... " >&6; }
4386if ${ac_cv_path_EGREP+:} false; then :
4387  $as_echo_n "(cached) " >&6
4388else
4389  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4390   then ac_cv_path_EGREP="$GREP -E"
4391   else
4392     if test -z "$EGREP"; then
4393  ac_path_EGREP_found=false
4394  # Loop through the user's path and test for each of PROGNAME-LIST
4395  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4397do
4398  IFS=$as_save_IFS
4399  test -z "$as_dir" && as_dir=.
4400    for ac_prog in egrep; do
4401    for ac_exec_ext in '' $ac_executable_extensions; do
4402      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4403      as_fn_executable_p "$ac_path_EGREP" || continue
4404# Check for GNU ac_path_EGREP and select it if it is found.
4405  # Check for GNU $ac_path_EGREP
4406case `"$ac_path_EGREP" --version 2>&1` in
4407*GNU*)
4408  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4409*)
4410  ac_count=0
4411  $as_echo_n 0123456789 >"conftest.in"
4412  while :
4413  do
4414    cat "conftest.in" "conftest.in" >"conftest.tmp"
4415    mv "conftest.tmp" "conftest.in"
4416    cp "conftest.in" "conftest.nl"
4417    $as_echo 'EGREP' >> "conftest.nl"
4418    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4419    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4420    as_fn_arith $ac_count + 1 && ac_count=$as_val
4421    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4422      # Best one so far, save it but keep looking for a better one
4423      ac_cv_path_EGREP="$ac_path_EGREP"
4424      ac_path_EGREP_max=$ac_count
4425    fi
4426    # 10*(2^10) chars as input seems more than enough
4427    test $ac_count -gt 10 && break
4428  done
4429  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430esac
4431
4432      $ac_path_EGREP_found && break 3
4433    done
4434  done
4435  done
4436IFS=$as_save_IFS
4437  if test -z "$ac_cv_path_EGREP"; then
4438    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4439  fi
4440else
4441  ac_cv_path_EGREP=$EGREP
4442fi
4443
4444   fi
4445fi
4446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4447$as_echo "$ac_cv_path_EGREP" >&6; }
4448 EGREP="$ac_cv_path_EGREP"
4449
4450
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4452$as_echo_n "checking for ANSI C header files... " >&6; }
4453if ${ac_cv_header_stdc+:} false; then :
4454  $as_echo_n "(cached) " >&6
4455else
4456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457/* end confdefs.h.  */
4458#include <stdlib.h>
4459#include <stdarg.h>
4460#include <string.h>
4461#include <float.h>
4462
4463int
4464main ()
4465{
4466
4467  ;
4468  return 0;
4469}
4470_ACEOF
4471if ac_fn_c_try_compile "$LINENO"; then :
4472  ac_cv_header_stdc=yes
4473else
4474  ac_cv_header_stdc=no
4475fi
4476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477
4478if test $ac_cv_header_stdc = yes; then
4479  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4480  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481/* end confdefs.h.  */
4482#include <string.h>
4483
4484_ACEOF
4485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4486  $EGREP "memchr" >/dev/null 2>&1; then :
4487
4488else
4489  ac_cv_header_stdc=no
4490fi
4491rm -f conftest*
4492
4493fi
4494
4495if test $ac_cv_header_stdc = yes; then
4496  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498/* end confdefs.h.  */
4499#include <stdlib.h>
4500
4501_ACEOF
4502if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4503  $EGREP "free" >/dev/null 2>&1; then :
4504
4505else
4506  ac_cv_header_stdc=no
4507fi
4508rm -f conftest*
4509
4510fi
4511
4512if test $ac_cv_header_stdc = yes; then
4513  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4514  if test "$cross_compiling" = yes; then :
4515  :
4516else
4517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h.  */
4519#include <ctype.h>
4520#include <stdlib.h>
4521#if ((' ' & 0x0FF) == 0x020)
4522# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4523# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4524#else
4525# define ISLOWER(c) \
4526		   (('a' <= (c) && (c) <= 'i') \
4527		     || ('j' <= (c) && (c) <= 'r') \
4528		     || ('s' <= (c) && (c) <= 'z'))
4529# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4530#endif
4531
4532#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4533int
4534main ()
4535{
4536  int i;
4537  for (i = 0; i < 256; i++)
4538    if (XOR (islower (i), ISLOWER (i))
4539	|| toupper (i) != TOUPPER (i))
4540      return 2;
4541  return 0;
4542}
4543_ACEOF
4544if ac_fn_c_try_run "$LINENO"; then :
4545
4546else
4547  ac_cv_header_stdc=no
4548fi
4549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4550  conftest.$ac_objext conftest.beam conftest.$ac_ext
4551fi
4552
4553fi
4554fi
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4556$as_echo "$ac_cv_header_stdc" >&6; }
4557if test $ac_cv_header_stdc = yes; then
4558
4559$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4560
4561fi
4562
4563# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4564for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4565		  inttypes.h stdint.h unistd.h
4566do :
4567  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4568ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4569"
4570if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4571  cat >>confdefs.h <<_ACEOF
4572#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4573_ACEOF
4574
4575fi
4576
4577done
4578
4579
4580
4581  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4582if test "x$ac_cv_header_minix_config_h" = xyes; then :
4583  MINIX=yes
4584else
4585  MINIX=
4586fi
4587
4588
4589  if test "$MINIX" = yes; then
4590
4591$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4592
4593
4594$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4595
4596
4597$as_echo "#define _MINIX 1" >>confdefs.h
4598
4599  fi
4600
4601
4602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4603$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4604if ${ac_cv_safe_to_define___extensions__+:} false; then :
4605  $as_echo_n "(cached) " >&6
4606else
4607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608/* end confdefs.h.  */
4609
4610#         define __EXTENSIONS__ 1
4611          $ac_includes_default
4612int
4613main ()
4614{
4615
4616  ;
4617  return 0;
4618}
4619_ACEOF
4620if ac_fn_c_try_compile "$LINENO"; then :
4621  ac_cv_safe_to_define___extensions__=yes
4622else
4623  ac_cv_safe_to_define___extensions__=no
4624fi
4625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4628$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4629  test $ac_cv_safe_to_define___extensions__ = yes &&
4630    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4631
4632  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4633
4634  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4635
4636  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4637
4638  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4639
4640
4641
4642
4643case `pwd` in
4644  *\ * | *\	*)
4645    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4646$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4647esac
4648
4649
4650
4651macro_version='2.4.2'
4652macro_revision='1.3337'
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666ltmain="$ac_aux_dir/ltmain.sh"
4667
4668# Backslashify metacharacters that are still active within
4669# double-quoted strings.
4670sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4671
4672# Same as above, but do not quote variable references.
4673double_quote_subst='s/\(["`\\]\)/\\\1/g'
4674
4675# Sed substitution to delay expansion of an escaped shell variable in a
4676# double_quote_subst'ed string.
4677delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4678
4679# Sed substitution to delay expansion of an escaped single quote.
4680delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4681
4682# Sed substitution to avoid accidental globbing in evaled expressions
4683no_glob_subst='s/\*/\\\*/g'
4684
4685ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4686ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4687ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4688
4689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4690$as_echo_n "checking how to print strings... " >&6; }
4691# Test print first, because it will be a builtin if present.
4692if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4693   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4694  ECHO='print -r --'
4695elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4696  ECHO='printf %s\n'
4697else
4698  # Use this function as a fallback that always works.
4699  func_fallback_echo ()
4700  {
4701    eval 'cat <<_LTECHO_EOF
4702$1
4703_LTECHO_EOF'
4704  }
4705  ECHO='func_fallback_echo'
4706fi
4707
4708# func_echo_all arg...
4709# Invoke $ECHO with all args, space-separated.
4710func_echo_all ()
4711{
4712    $ECHO ""
4713}
4714
4715case "$ECHO" in
4716  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4717$as_echo "printf" >&6; } ;;
4718  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4719$as_echo "print -r" >&6; } ;;
4720  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4721$as_echo "cat" >&6; } ;;
4722esac
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4738$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4739if ${ac_cv_path_SED+:} false; then :
4740  $as_echo_n "(cached) " >&6
4741else
4742            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4743     for ac_i in 1 2 3 4 5 6 7; do
4744       ac_script="$ac_script$as_nl$ac_script"
4745     done
4746     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4747     { ac_script=; unset ac_script;}
4748     if test -z "$SED"; then
4749  ac_path_SED_found=false
4750  # Loop through the user's path and test for each of PROGNAME-LIST
4751  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752for as_dir in $PATH
4753do
4754  IFS=$as_save_IFS
4755  test -z "$as_dir" && as_dir=.
4756    for ac_prog in sed gsed; do
4757    for ac_exec_ext in '' $ac_executable_extensions; do
4758      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4759      as_fn_executable_p "$ac_path_SED" || continue
4760# Check for GNU ac_path_SED and select it if it is found.
4761  # Check for GNU $ac_path_SED
4762case `"$ac_path_SED" --version 2>&1` in
4763*GNU*)
4764  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4765*)
4766  ac_count=0
4767  $as_echo_n 0123456789 >"conftest.in"
4768  while :
4769  do
4770    cat "conftest.in" "conftest.in" >"conftest.tmp"
4771    mv "conftest.tmp" "conftest.in"
4772    cp "conftest.in" "conftest.nl"
4773    $as_echo '' >> "conftest.nl"
4774    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4775    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4776    as_fn_arith $ac_count + 1 && ac_count=$as_val
4777    if test $ac_count -gt ${ac_path_SED_max-0}; then
4778      # Best one so far, save it but keep looking for a better one
4779      ac_cv_path_SED="$ac_path_SED"
4780      ac_path_SED_max=$ac_count
4781    fi
4782    # 10*(2^10) chars as input seems more than enough
4783    test $ac_count -gt 10 && break
4784  done
4785  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4786esac
4787
4788      $ac_path_SED_found && break 3
4789    done
4790  done
4791  done
4792IFS=$as_save_IFS
4793  if test -z "$ac_cv_path_SED"; then
4794    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4795  fi
4796else
4797  ac_cv_path_SED=$SED
4798fi
4799
4800fi
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4802$as_echo "$ac_cv_path_SED" >&6; }
4803 SED="$ac_cv_path_SED"
4804  rm -f conftest.sed
4805
4806test -z "$SED" && SED=sed
4807Xsed="$SED -e 1s/^X//"
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4820$as_echo_n "checking for fgrep... " >&6; }
4821if ${ac_cv_path_FGREP+:} false; then :
4822  $as_echo_n "(cached) " >&6
4823else
4824  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4825   then ac_cv_path_FGREP="$GREP -F"
4826   else
4827     if test -z "$FGREP"; then
4828  ac_path_FGREP_found=false
4829  # Loop through the user's path and test for each of PROGNAME-LIST
4830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4832do
4833  IFS=$as_save_IFS
4834  test -z "$as_dir" && as_dir=.
4835    for ac_prog in fgrep; do
4836    for ac_exec_ext in '' $ac_executable_extensions; do
4837      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4838      as_fn_executable_p "$ac_path_FGREP" || continue
4839# Check for GNU ac_path_FGREP and select it if it is found.
4840  # Check for GNU $ac_path_FGREP
4841case `"$ac_path_FGREP" --version 2>&1` in
4842*GNU*)
4843  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4844*)
4845  ac_count=0
4846  $as_echo_n 0123456789 >"conftest.in"
4847  while :
4848  do
4849    cat "conftest.in" "conftest.in" >"conftest.tmp"
4850    mv "conftest.tmp" "conftest.in"
4851    cp "conftest.in" "conftest.nl"
4852    $as_echo 'FGREP' >> "conftest.nl"
4853    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4854    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4855    as_fn_arith $ac_count + 1 && ac_count=$as_val
4856    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4857      # Best one so far, save it but keep looking for a better one
4858      ac_cv_path_FGREP="$ac_path_FGREP"
4859      ac_path_FGREP_max=$ac_count
4860    fi
4861    # 10*(2^10) chars as input seems more than enough
4862    test $ac_count -gt 10 && break
4863  done
4864  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4865esac
4866
4867      $ac_path_FGREP_found && break 3
4868    done
4869  done
4870  done
4871IFS=$as_save_IFS
4872  if test -z "$ac_cv_path_FGREP"; then
4873    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4874  fi
4875else
4876  ac_cv_path_FGREP=$FGREP
4877fi
4878
4879   fi
4880fi
4881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4882$as_echo "$ac_cv_path_FGREP" >&6; }
4883 FGREP="$ac_cv_path_FGREP"
4884
4885
4886test -z "$GREP" && GREP=grep
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906# Check whether --with-gnu-ld was given.
4907if test "${with_gnu_ld+set}" = set; then :
4908  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4909else
4910  with_gnu_ld=no
4911fi
4912
4913ac_prog=ld
4914if test "$GCC" = yes; then
4915  # Check if gcc -print-prog-name=ld gives a path.
4916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4917$as_echo_n "checking for ld used by $CC... " >&6; }
4918  case $host in
4919  *-*-mingw*)
4920    # gcc leaves a trailing carriage return which upsets mingw
4921    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4922  *)
4923    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4924  esac
4925  case $ac_prog in
4926    # Accept absolute paths.
4927    [\\/]* | ?:[\\/]*)
4928      re_direlt='/[^/][^/]*/\.\./'
4929      # Canonicalize the pathname of ld
4930      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4931      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4932	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4933      done
4934      test -z "$LD" && LD="$ac_prog"
4935      ;;
4936  "")
4937    # If it fails, then pretend we aren't using GCC.
4938    ac_prog=ld
4939    ;;
4940  *)
4941    # If it is relative, then search for the first ld in PATH.
4942    with_gnu_ld=unknown
4943    ;;
4944  esac
4945elif test "$with_gnu_ld" = yes; then
4946  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4947$as_echo_n "checking for GNU ld... " >&6; }
4948else
4949  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4950$as_echo_n "checking for non-GNU ld... " >&6; }
4951fi
4952if ${lt_cv_path_LD+:} false; then :
4953  $as_echo_n "(cached) " >&6
4954else
4955  if test -z "$LD"; then
4956  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4957  for ac_dir in $PATH; do
4958    IFS="$lt_save_ifs"
4959    test -z "$ac_dir" && ac_dir=.
4960    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4961      lt_cv_path_LD="$ac_dir/$ac_prog"
4962      # Check to see if the program is GNU ld.  I'd rather use --version,
4963      # but apparently some variants of GNU ld only accept -v.
4964      # Break only if it was the GNU/non-GNU ld that we prefer.
4965      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4966      *GNU* | *'with BFD'*)
4967	test "$with_gnu_ld" != no && break
4968	;;
4969      *)
4970	test "$with_gnu_ld" != yes && break
4971	;;
4972      esac
4973    fi
4974  done
4975  IFS="$lt_save_ifs"
4976else
4977  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4978fi
4979fi
4980
4981LD="$lt_cv_path_LD"
4982if test -n "$LD"; then
4983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4984$as_echo "$LD" >&6; }
4985else
4986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987$as_echo "no" >&6; }
4988fi
4989test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4991$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4992if ${lt_cv_prog_gnu_ld+:} false; then :
4993  $as_echo_n "(cached) " >&6
4994else
4995  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4996case `$LD -v 2>&1 </dev/null` in
4997*GNU* | *'with BFD'*)
4998  lt_cv_prog_gnu_ld=yes
4999  ;;
5000*)
5001  lt_cv_prog_gnu_ld=no
5002  ;;
5003esac
5004fi
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5006$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5007with_gnu_ld=$lt_cv_prog_gnu_ld
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5018$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5019if ${lt_cv_path_NM+:} false; then :
5020  $as_echo_n "(cached) " >&6
5021else
5022  if test -n "$NM"; then
5023  # Let the user override the test.
5024  lt_cv_path_NM="$NM"
5025else
5026  lt_nm_to_check="${ac_tool_prefix}nm"
5027  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5028    lt_nm_to_check="$lt_nm_to_check nm"
5029  fi
5030  for lt_tmp_nm in $lt_nm_to_check; do
5031    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5032    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5033      IFS="$lt_save_ifs"
5034      test -z "$ac_dir" && ac_dir=.
5035      tmp_nm="$ac_dir/$lt_tmp_nm"
5036      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5037	# Check to see if the nm accepts a BSD-compat flag.
5038	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5039	#   nm: unknown option "B" ignored
5040	# Tru64's nm complains that /dev/null is an invalid object file
5041	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5042	*/dev/null* | *'Invalid file or object type'*)
5043	  lt_cv_path_NM="$tmp_nm -B"
5044	  break
5045	  ;;
5046	*)
5047	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5048	  */dev/null*)
5049	    lt_cv_path_NM="$tmp_nm -p"
5050	    break
5051	    ;;
5052	  *)
5053	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5054	    continue # so that we can try to find one that supports BSD flags
5055	    ;;
5056	  esac
5057	  ;;
5058	esac
5059      fi
5060    done
5061    IFS="$lt_save_ifs"
5062  done
5063  : ${lt_cv_path_NM=no}
5064fi
5065fi
5066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5067$as_echo "$lt_cv_path_NM" >&6; }
5068if test "$lt_cv_path_NM" != "no"; then
5069  NM="$lt_cv_path_NM"
5070else
5071  # Didn't find any BSD compatible name lister, look for dumpbin.
5072  if test -n "$DUMPBIN"; then :
5073    # Let the user override the test.
5074  else
5075    if test -n "$ac_tool_prefix"; then
5076  for ac_prog in dumpbin "link -dump"
5077  do
5078    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5079set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5081$as_echo_n "checking for $ac_word... " >&6; }
5082if ${ac_cv_prog_DUMPBIN+:} false; then :
5083  $as_echo_n "(cached) " >&6
5084else
5085  if test -n "$DUMPBIN"; then
5086  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5087else
5088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089for as_dir in $PATH
5090do
5091  IFS=$as_save_IFS
5092  test -z "$as_dir" && as_dir=.
5093    for ac_exec_ext in '' $ac_executable_extensions; do
5094  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5095    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5097    break 2
5098  fi
5099done
5100  done
5101IFS=$as_save_IFS
5102
5103fi
5104fi
5105DUMPBIN=$ac_cv_prog_DUMPBIN
5106if test -n "$DUMPBIN"; then
5107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5108$as_echo "$DUMPBIN" >&6; }
5109else
5110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5111$as_echo "no" >&6; }
5112fi
5113
5114
5115    test -n "$DUMPBIN" && break
5116  done
5117fi
5118if test -z "$DUMPBIN"; then
5119  ac_ct_DUMPBIN=$DUMPBIN
5120  for ac_prog in dumpbin "link -dump"
5121do
5122  # Extract the first word of "$ac_prog", so it can be a program name with args.
5123set dummy $ac_prog; ac_word=$2
5124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125$as_echo_n "checking for $ac_word... " >&6; }
5126if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5127  $as_echo_n "(cached) " >&6
5128else
5129  if test -n "$ac_ct_DUMPBIN"; then
5130  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5131else
5132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133for as_dir in $PATH
5134do
5135  IFS=$as_save_IFS
5136  test -z "$as_dir" && as_dir=.
5137    for ac_exec_ext in '' $ac_executable_extensions; do
5138  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5140    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141    break 2
5142  fi
5143done
5144  done
5145IFS=$as_save_IFS
5146
5147fi
5148fi
5149ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5150if test -n "$ac_ct_DUMPBIN"; then
5151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5152$as_echo "$ac_ct_DUMPBIN" >&6; }
5153else
5154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155$as_echo "no" >&6; }
5156fi
5157
5158
5159  test -n "$ac_ct_DUMPBIN" && break
5160done
5161
5162  if test "x$ac_ct_DUMPBIN" = x; then
5163    DUMPBIN=":"
5164  else
5165    case $cross_compiling:$ac_tool_warned in
5166yes:)
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169ac_tool_warned=yes ;;
5170esac
5171    DUMPBIN=$ac_ct_DUMPBIN
5172  fi
5173fi
5174
5175    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5176    *COFF*)
5177      DUMPBIN="$DUMPBIN -symbols"
5178      ;;
5179    *)
5180      DUMPBIN=:
5181      ;;
5182    esac
5183  fi
5184
5185  if test "$DUMPBIN" != ":"; then
5186    NM="$DUMPBIN"
5187  fi
5188fi
5189test -z "$NM" && NM=nm
5190
5191
5192
5193
5194
5195
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5197$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5198if ${lt_cv_nm_interface+:} false; then :
5199  $as_echo_n "(cached) " >&6
5200else
5201  lt_cv_nm_interface="BSD nm"
5202  echo "int some_variable = 0;" > conftest.$ac_ext
5203  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5204  (eval "$ac_compile" 2>conftest.err)
5205  cat conftest.err >&5
5206  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5207  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5208  cat conftest.err >&5
5209  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5210  cat conftest.out >&5
5211  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5212    lt_cv_nm_interface="MS dumpbin"
5213  fi
5214  rm -f conftest*
5215fi
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5217$as_echo "$lt_cv_nm_interface" >&6; }
5218
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5220$as_echo_n "checking whether ln -s works... " >&6; }
5221LN_S=$as_ln_s
5222if test "$LN_S" = "ln -s"; then
5223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5224$as_echo "yes" >&6; }
5225else
5226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5227$as_echo "no, using $LN_S" >&6; }
5228fi
5229
5230# find the maximum length of command line arguments
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5232$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5233if ${lt_cv_sys_max_cmd_len+:} false; then :
5234  $as_echo_n "(cached) " >&6
5235else
5236    i=0
5237  teststring="ABCD"
5238
5239  case $build_os in
5240  msdosdjgpp*)
5241    # On DJGPP, this test can blow up pretty badly due to problems in libc
5242    # (any single argument exceeding 2000 bytes causes a buffer overrun
5243    # during glob expansion).  Even if it were fixed, the result of this
5244    # check would be larger than it should be.
5245    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5246    ;;
5247
5248  gnu*)
5249    # Under GNU Hurd, this test is not required because there is
5250    # no limit to the length of command line arguments.
5251    # Libtool will interpret -1 as no limit whatsoever
5252    lt_cv_sys_max_cmd_len=-1;
5253    ;;
5254
5255  cygwin* | mingw* | cegcc*)
5256    # On Win9x/ME, this test blows up -- it succeeds, but takes
5257    # about 5 minutes as the teststring grows exponentially.
5258    # Worse, since 9x/ME are not pre-emptively multitasking,
5259    # you end up with a "frozen" computer, even though with patience
5260    # the test eventually succeeds (with a max line length of 256k).
5261    # Instead, let's just punt: use the minimum linelength reported by
5262    # all of the supported platforms: 8192 (on NT/2K/XP).
5263    lt_cv_sys_max_cmd_len=8192;
5264    ;;
5265
5266  mint*)
5267    # On MiNT this can take a long time and run out of memory.
5268    lt_cv_sys_max_cmd_len=8192;
5269    ;;
5270
5271  amigaos*)
5272    # On AmigaOS with pdksh, this test takes hours, literally.
5273    # So we just punt and use a minimum line length of 8192.
5274    lt_cv_sys_max_cmd_len=8192;
5275    ;;
5276
5277  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5278    # This has been around since 386BSD, at least.  Likely further.
5279    if test -x /sbin/sysctl; then
5280      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5281    elif test -x /usr/sbin/sysctl; then
5282      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5283    else
5284      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5285    fi
5286    # And add a safety zone
5287    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5288    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5289    ;;
5290
5291  interix*)
5292    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5293    lt_cv_sys_max_cmd_len=196608
5294    ;;
5295
5296  os2*)
5297    # The test takes a long time on OS/2.
5298    lt_cv_sys_max_cmd_len=8192
5299    ;;
5300
5301  osf*)
5302    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5303    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5304    # nice to cause kernel panics so lets avoid the loop below.
5305    # First set a reasonable default.
5306    lt_cv_sys_max_cmd_len=16384
5307    #
5308    if test -x /sbin/sysconfig; then
5309      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5310        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5311      esac
5312    fi
5313    ;;
5314  sco3.2v5*)
5315    lt_cv_sys_max_cmd_len=102400
5316    ;;
5317  sysv5* | sco5v6* | sysv4.2uw2*)
5318    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5319    if test -n "$kargmax"; then
5320      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5321    else
5322      lt_cv_sys_max_cmd_len=32768
5323    fi
5324    ;;
5325  *)
5326    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5327    if test -n "$lt_cv_sys_max_cmd_len"; then
5328      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5329      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5330    else
5331      # Make teststring a little bigger before we do anything with it.
5332      # a 1K string should be a reasonable start.
5333      for i in 1 2 3 4 5 6 7 8 ; do
5334        teststring=$teststring$teststring
5335      done
5336      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5337      # If test is not a shell built-in, we'll probably end up computing a
5338      # maximum length that is only half of the actual maximum length, but
5339      # we can't tell.
5340      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5341	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5342	      test $i != 17 # 1/2 MB should be enough
5343      do
5344        i=`expr $i + 1`
5345        teststring=$teststring$teststring
5346      done
5347      # Only check the string length outside the loop.
5348      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5349      teststring=
5350      # Add a significant safety factor because C++ compilers can tack on
5351      # massive amounts of additional arguments before passing them to the
5352      # linker.  It appears as though 1/2 is a usable value.
5353      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5354    fi
5355    ;;
5356  esac
5357
5358fi
5359
5360if test -n $lt_cv_sys_max_cmd_len ; then
5361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5362$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5363else
5364  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5365$as_echo "none" >&6; }
5366fi
5367max_cmd_len=$lt_cv_sys_max_cmd_len
5368
5369
5370
5371
5372
5373
5374: ${CP="cp -f"}
5375: ${MV="mv -f"}
5376: ${RM="rm -f"}
5377
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5379$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5380# Try some XSI features
5381xsi_shell=no
5382( _lt_dummy="a/b/c"
5383  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5384      = c,a/b,b/c, \
5385    && eval 'test $(( 1 + 1 )) -eq 2 \
5386    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5387  && xsi_shell=yes
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5389$as_echo "$xsi_shell" >&6; }
5390
5391
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5393$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5394lt_shell_append=no
5395( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5396    >/dev/null 2>&1 \
5397  && lt_shell_append=yes
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5399$as_echo "$lt_shell_append" >&6; }
5400
5401
5402if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5403  lt_unset=unset
5404else
5405  lt_unset=false
5406fi
5407
5408
5409
5410
5411
5412# test EBCDIC or ASCII
5413case `echo X|tr X '\101'` in
5414 A) # ASCII based system
5415    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5416  lt_SP2NL='tr \040 \012'
5417  lt_NL2SP='tr \015\012 \040\040'
5418  ;;
5419 *) # EBCDIC based system
5420  lt_SP2NL='tr \100 \n'
5421  lt_NL2SP='tr \r\n \100\100'
5422  ;;
5423esac
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5434$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5435if ${lt_cv_to_host_file_cmd+:} false; then :
5436  $as_echo_n "(cached) " >&6
5437else
5438  case $host in
5439  *-*-mingw* )
5440    case $build in
5441      *-*-mingw* ) # actually msys
5442        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5443        ;;
5444      *-*-cygwin* )
5445        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5446        ;;
5447      * ) # otherwise, assume *nix
5448        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5449        ;;
5450    esac
5451    ;;
5452  *-*-cygwin* )
5453    case $build in
5454      *-*-mingw* ) # actually msys
5455        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5456        ;;
5457      *-*-cygwin* )
5458        lt_cv_to_host_file_cmd=func_convert_file_noop
5459        ;;
5460      * ) # otherwise, assume *nix
5461        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5462        ;;
5463    esac
5464    ;;
5465  * ) # unhandled hosts (and "normal" native builds)
5466    lt_cv_to_host_file_cmd=func_convert_file_noop
5467    ;;
5468esac
5469
5470fi
5471
5472to_host_file_cmd=$lt_cv_to_host_file_cmd
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5474$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5475
5476
5477
5478
5479
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5481$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5482if ${lt_cv_to_tool_file_cmd+:} false; then :
5483  $as_echo_n "(cached) " >&6
5484else
5485  #assume ordinary cross tools, or native build.
5486lt_cv_to_tool_file_cmd=func_convert_file_noop
5487case $host in
5488  *-*-mingw* )
5489    case $build in
5490      *-*-mingw* ) # actually msys
5491        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5492        ;;
5493    esac
5494    ;;
5495esac
5496
5497fi
5498
5499to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5501$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5502
5503
5504
5505
5506
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5508$as_echo_n "checking for $LD option to reload object files... " >&6; }
5509if ${lt_cv_ld_reload_flag+:} false; then :
5510  $as_echo_n "(cached) " >&6
5511else
5512  lt_cv_ld_reload_flag='-r'
5513fi
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5515$as_echo "$lt_cv_ld_reload_flag" >&6; }
5516reload_flag=$lt_cv_ld_reload_flag
5517case $reload_flag in
5518"" | " "*) ;;
5519*) reload_flag=" $reload_flag" ;;
5520esac
5521reload_cmds='$LD$reload_flag -o $output$reload_objs'
5522case $host_os in
5523  cygwin* | mingw* | pw32* | cegcc*)
5524    if test "$GCC" != yes; then
5525      reload_cmds=false
5526    fi
5527    ;;
5528  darwin*)
5529    if test "$GCC" = yes; then
5530      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5531    else
5532      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5533    fi
5534    ;;
5535esac
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545if test -n "$ac_tool_prefix"; then
5546  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5547set dummy ${ac_tool_prefix}objdump; ac_word=$2
5548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549$as_echo_n "checking for $ac_word... " >&6; }
5550if ${ac_cv_prog_OBJDUMP+:} false; then :
5551  $as_echo_n "(cached) " >&6
5552else
5553  if test -n "$OBJDUMP"; then
5554  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5555else
5556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557for as_dir in $PATH
5558do
5559  IFS=$as_save_IFS
5560  test -z "$as_dir" && as_dir=.
5561    for ac_exec_ext in '' $ac_executable_extensions; do
5562  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5564    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565    break 2
5566  fi
5567done
5568  done
5569IFS=$as_save_IFS
5570
5571fi
5572fi
5573OBJDUMP=$ac_cv_prog_OBJDUMP
5574if test -n "$OBJDUMP"; then
5575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5576$as_echo "$OBJDUMP" >&6; }
5577else
5578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579$as_echo "no" >&6; }
5580fi
5581
5582
5583fi
5584if test -z "$ac_cv_prog_OBJDUMP"; then
5585  ac_ct_OBJDUMP=$OBJDUMP
5586  # Extract the first word of "objdump", so it can be a program name with args.
5587set dummy objdump; ac_word=$2
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589$as_echo_n "checking for $ac_word... " >&6; }
5590if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5591  $as_echo_n "(cached) " >&6
5592else
5593  if test -n "$ac_ct_OBJDUMP"; then
5594  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5595else
5596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597for as_dir in $PATH
5598do
5599  IFS=$as_save_IFS
5600  test -z "$as_dir" && as_dir=.
5601    for ac_exec_ext in '' $ac_executable_extensions; do
5602  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5604    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605    break 2
5606  fi
5607done
5608  done
5609IFS=$as_save_IFS
5610
5611fi
5612fi
5613ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5614if test -n "$ac_ct_OBJDUMP"; then
5615  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5616$as_echo "$ac_ct_OBJDUMP" >&6; }
5617else
5618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619$as_echo "no" >&6; }
5620fi
5621
5622  if test "x$ac_ct_OBJDUMP" = x; then
5623    OBJDUMP="false"
5624  else
5625    case $cross_compiling:$ac_tool_warned in
5626yes:)
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5628$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5629ac_tool_warned=yes ;;
5630esac
5631    OBJDUMP=$ac_ct_OBJDUMP
5632  fi
5633else
5634  OBJDUMP="$ac_cv_prog_OBJDUMP"
5635fi
5636
5637test -z "$OBJDUMP" && OBJDUMP=objdump
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5648$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5649if ${lt_cv_deplibs_check_method+:} false; then :
5650  $as_echo_n "(cached) " >&6
5651else
5652  lt_cv_file_magic_cmd='$MAGIC_CMD'
5653lt_cv_file_magic_test_file=
5654lt_cv_deplibs_check_method='unknown'
5655# Need to set the preceding variable on all platforms that support
5656# interlibrary dependencies.
5657# 'none' -- dependencies not supported.
5658# `unknown' -- same as none, but documents that we really don't know.
5659# 'pass_all' -- all dependencies passed with no checks.
5660# 'test_compile' -- check by making test program.
5661# 'file_magic [[regex]]' -- check by looking for files in library path
5662# which responds to the $file_magic_cmd with a given extended regex.
5663# If you have `file' or equivalent on your system and you're not sure
5664# whether `pass_all' will *always* work, you probably want this one.
5665
5666case $host_os in
5667aix[4-9]*)
5668  lt_cv_deplibs_check_method=pass_all
5669  ;;
5670
5671beos*)
5672  lt_cv_deplibs_check_method=pass_all
5673  ;;
5674
5675bsdi[45]*)
5676  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5677  lt_cv_file_magic_cmd='/usr/bin/file -L'
5678  lt_cv_file_magic_test_file=/shlib/libc.so
5679  ;;
5680
5681cygwin*)
5682  # func_win32_libid is a shell function defined in ltmain.sh
5683  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5684  lt_cv_file_magic_cmd='func_win32_libid'
5685  ;;
5686
5687mingw* | pw32*)
5688  # Base MSYS/MinGW do not provide the 'file' command needed by
5689  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5690  # unless we find 'file', for example because we are cross-compiling.
5691  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5692  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5693    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5694    lt_cv_file_magic_cmd='func_win32_libid'
5695  else
5696    # Keep this pattern in sync with the one in func_win32_libid.
5697    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5698    lt_cv_file_magic_cmd='$OBJDUMP -f'
5699  fi
5700  ;;
5701
5702cegcc*)
5703  # use the weaker test based on 'objdump'. See mingw*.
5704  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5705  lt_cv_file_magic_cmd='$OBJDUMP -f'
5706  ;;
5707
5708darwin* | rhapsody*)
5709  lt_cv_deplibs_check_method=pass_all
5710  ;;
5711
5712freebsd* | dragonfly*)
5713  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5714    case $host_cpu in
5715    i*86 )
5716      # Not sure whether the presence of OpenBSD here was a mistake.
5717      # Let's accept both of them until this is cleared up.
5718      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5719      lt_cv_file_magic_cmd=/usr/bin/file
5720      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5721      ;;
5722    esac
5723  else
5724    lt_cv_deplibs_check_method=pass_all
5725  fi
5726  ;;
5727
5728gnu*)
5729  lt_cv_deplibs_check_method=pass_all
5730  ;;
5731
5732haiku*)
5733  lt_cv_deplibs_check_method=pass_all
5734  ;;
5735
5736hpux10.20* | hpux11*)
5737  lt_cv_file_magic_cmd=/usr/bin/file
5738  case $host_cpu in
5739  ia64*)
5740    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5741    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5742    ;;
5743  hppa*64*)
5744    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5745    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5746    ;;
5747  *)
5748    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5749    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5750    ;;
5751  esac
5752  ;;
5753
5754interix[3-9]*)
5755  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5756  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5757  ;;
5758
5759irix5* | irix6* | nonstopux*)
5760  case $LD in
5761  *-32|*"-32 ") libmagic=32-bit;;
5762  *-n32|*"-n32 ") libmagic=N32;;
5763  *-64|*"-64 ") libmagic=64-bit;;
5764  *) libmagic=never-match;;
5765  esac
5766  lt_cv_deplibs_check_method=pass_all
5767  ;;
5768
5769# This must be glibc/ELF.
5770linux* | k*bsd*-gnu | kopensolaris*-gnu)
5771  lt_cv_deplibs_check_method=pass_all
5772  ;;
5773
5774netbsd*)
5775  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5776    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5777  else
5778    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5779  fi
5780  ;;
5781
5782newos6*)
5783  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5784  lt_cv_file_magic_cmd=/usr/bin/file
5785  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5786  ;;
5787
5788*nto* | *qnx*)
5789  lt_cv_deplibs_check_method=pass_all
5790  ;;
5791
5792openbsd*)
5793  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5794    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5795  else
5796    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5797  fi
5798  ;;
5799
5800osf3* | osf4* | osf5*)
5801  lt_cv_deplibs_check_method=pass_all
5802  ;;
5803
5804rdos*)
5805  lt_cv_deplibs_check_method=pass_all
5806  ;;
5807
5808solaris*)
5809  lt_cv_deplibs_check_method=pass_all
5810  ;;
5811
5812sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5813  lt_cv_deplibs_check_method=pass_all
5814  ;;
5815
5816sysv4 | sysv4.3*)
5817  case $host_vendor in
5818  motorola)
5819    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]'
5820    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5821    ;;
5822  ncr)
5823    lt_cv_deplibs_check_method=pass_all
5824    ;;
5825  sequent)
5826    lt_cv_file_magic_cmd='/bin/file'
5827    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5828    ;;
5829  sni)
5830    lt_cv_file_magic_cmd='/bin/file'
5831    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5832    lt_cv_file_magic_test_file=/lib/libc.so
5833    ;;
5834  siemens)
5835    lt_cv_deplibs_check_method=pass_all
5836    ;;
5837  pc)
5838    lt_cv_deplibs_check_method=pass_all
5839    ;;
5840  esac
5841  ;;
5842
5843tpf*)
5844  lt_cv_deplibs_check_method=pass_all
5845  ;;
5846esac
5847
5848fi
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5850$as_echo "$lt_cv_deplibs_check_method" >&6; }
5851
5852file_magic_glob=
5853want_nocaseglob=no
5854if test "$build" = "$host"; then
5855  case $host_os in
5856  mingw* | pw32*)
5857    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5858      want_nocaseglob=yes
5859    else
5860      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5861    fi
5862    ;;
5863  esac
5864fi
5865
5866file_magic_cmd=$lt_cv_file_magic_cmd
5867deplibs_check_method=$lt_cv_deplibs_check_method
5868test -z "$deplibs_check_method" && deplibs_check_method=unknown
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891if test -n "$ac_tool_prefix"; then
5892  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5893set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5895$as_echo_n "checking for $ac_word... " >&6; }
5896if ${ac_cv_prog_DLLTOOL+:} false; then :
5897  $as_echo_n "(cached) " >&6
5898else
5899  if test -n "$DLLTOOL"; then
5900  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5901else
5902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903for as_dir in $PATH
5904do
5905  IFS=$as_save_IFS
5906  test -z "$as_dir" && as_dir=.
5907    for ac_exec_ext in '' $ac_executable_extensions; do
5908  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5911    break 2
5912  fi
5913done
5914  done
5915IFS=$as_save_IFS
5916
5917fi
5918fi
5919DLLTOOL=$ac_cv_prog_DLLTOOL
5920if test -n "$DLLTOOL"; then
5921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5922$as_echo "$DLLTOOL" >&6; }
5923else
5924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925$as_echo "no" >&6; }
5926fi
5927
5928
5929fi
5930if test -z "$ac_cv_prog_DLLTOOL"; then
5931  ac_ct_DLLTOOL=$DLLTOOL
5932  # Extract the first word of "dlltool", so it can be a program name with args.
5933set dummy dlltool; ac_word=$2
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935$as_echo_n "checking for $ac_word... " >&6; }
5936if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5937  $as_echo_n "(cached) " >&6
5938else
5939  if test -n "$ac_ct_DLLTOOL"; then
5940  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5941else
5942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943for as_dir in $PATH
5944do
5945  IFS=$as_save_IFS
5946  test -z "$as_dir" && as_dir=.
5947    for ac_exec_ext in '' $ac_executable_extensions; do
5948  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951    break 2
5952  fi
5953done
5954  done
5955IFS=$as_save_IFS
5956
5957fi
5958fi
5959ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5960if test -n "$ac_ct_DLLTOOL"; then
5961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5962$as_echo "$ac_ct_DLLTOOL" >&6; }
5963else
5964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965$as_echo "no" >&6; }
5966fi
5967
5968  if test "x$ac_ct_DLLTOOL" = x; then
5969    DLLTOOL="false"
5970  else
5971    case $cross_compiling:$ac_tool_warned in
5972yes:)
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5975ac_tool_warned=yes ;;
5976esac
5977    DLLTOOL=$ac_ct_DLLTOOL
5978  fi
5979else
5980  DLLTOOL="$ac_cv_prog_DLLTOOL"
5981fi
5982
5983test -z "$DLLTOOL" && DLLTOOL=dlltool
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5995$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5996if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5997  $as_echo_n "(cached) " >&6
5998else
5999  lt_cv_sharedlib_from_linklib_cmd='unknown'
6000
6001case $host_os in
6002cygwin* | mingw* | pw32* | cegcc*)
6003  # two different shell functions defined in ltmain.sh
6004  # decide which to use based on capabilities of $DLLTOOL
6005  case `$DLLTOOL --help 2>&1` in
6006  *--identify-strict*)
6007    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6008    ;;
6009  *)
6010    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6011    ;;
6012  esac
6013  ;;
6014*)
6015  # fallback: assume linklib IS sharedlib
6016  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6017  ;;
6018esac
6019
6020fi
6021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6022$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6023sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6024test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6025
6026
6027
6028
6029
6030
6031
6032if test -n "$ac_tool_prefix"; then
6033  for ac_prog in ar
6034  do
6035    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6036set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038$as_echo_n "checking for $ac_word... " >&6; }
6039if ${ac_cv_prog_AR+:} false; then :
6040  $as_echo_n "(cached) " >&6
6041else
6042  if test -n "$AR"; then
6043  ac_cv_prog_AR="$AR" # Let the user override the test.
6044else
6045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046for as_dir in $PATH
6047do
6048  IFS=$as_save_IFS
6049  test -z "$as_dir" && as_dir=.
6050    for ac_exec_ext in '' $ac_executable_extensions; do
6051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054    break 2
6055  fi
6056done
6057  done
6058IFS=$as_save_IFS
6059
6060fi
6061fi
6062AR=$ac_cv_prog_AR
6063if test -n "$AR"; then
6064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6065$as_echo "$AR" >&6; }
6066else
6067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068$as_echo "no" >&6; }
6069fi
6070
6071
6072    test -n "$AR" && break
6073  done
6074fi
6075if test -z "$AR"; then
6076  ac_ct_AR=$AR
6077  for ac_prog in ar
6078do
6079  # Extract the first word of "$ac_prog", so it can be a program name with args.
6080set dummy $ac_prog; ac_word=$2
6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6082$as_echo_n "checking for $ac_word... " >&6; }
6083if ${ac_cv_prog_ac_ct_AR+:} false; then :
6084  $as_echo_n "(cached) " >&6
6085else
6086  if test -n "$ac_ct_AR"; then
6087  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6088else
6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090for as_dir in $PATH
6091do
6092  IFS=$as_save_IFS
6093  test -z "$as_dir" && as_dir=.
6094    for ac_exec_ext in '' $ac_executable_extensions; do
6095  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6096    ac_cv_prog_ac_ct_AR="$ac_prog"
6097    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6098    break 2
6099  fi
6100done
6101  done
6102IFS=$as_save_IFS
6103
6104fi
6105fi
6106ac_ct_AR=$ac_cv_prog_ac_ct_AR
6107if test -n "$ac_ct_AR"; then
6108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6109$as_echo "$ac_ct_AR" >&6; }
6110else
6111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6112$as_echo "no" >&6; }
6113fi
6114
6115
6116  test -n "$ac_ct_AR" && break
6117done
6118
6119  if test "x$ac_ct_AR" = x; then
6120    AR="false"
6121  else
6122    case $cross_compiling:$ac_tool_warned in
6123yes:)
6124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6126ac_tool_warned=yes ;;
6127esac
6128    AR=$ac_ct_AR
6129  fi
6130fi
6131
6132: ${AR=ar}
6133: ${AR_FLAGS=cru}
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6146$as_echo_n "checking for archiver @FILE support... " >&6; }
6147if ${lt_cv_ar_at_file+:} false; then :
6148  $as_echo_n "(cached) " >&6
6149else
6150  lt_cv_ar_at_file=no
6151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152/* end confdefs.h.  */
6153
6154int
6155main ()
6156{
6157
6158  ;
6159  return 0;
6160}
6161_ACEOF
6162if ac_fn_c_try_compile "$LINENO"; then :
6163  echo conftest.$ac_objext > conftest.lst
6164      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6165      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6166  (eval $lt_ar_try) 2>&5
6167  ac_status=$?
6168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169  test $ac_status = 0; }
6170      if test "$ac_status" -eq 0; then
6171	# Ensure the archiver fails upon bogus file names.
6172	rm -f conftest.$ac_objext libconftest.a
6173	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6174  (eval $lt_ar_try) 2>&5
6175  ac_status=$?
6176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6177  test $ac_status = 0; }
6178	if test "$ac_status" -ne 0; then
6179          lt_cv_ar_at_file=@
6180        fi
6181      fi
6182      rm -f conftest.* libconftest.a
6183
6184fi
6185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186
6187fi
6188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6189$as_echo "$lt_cv_ar_at_file" >&6; }
6190
6191if test "x$lt_cv_ar_at_file" = xno; then
6192  archiver_list_spec=
6193else
6194  archiver_list_spec=$lt_cv_ar_at_file
6195fi
6196
6197
6198
6199
6200
6201
6202
6203if test -n "$ac_tool_prefix"; then
6204  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6205set dummy ${ac_tool_prefix}strip; ac_word=$2
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6207$as_echo_n "checking for $ac_word... " >&6; }
6208if ${ac_cv_prog_STRIP+:} false; then :
6209  $as_echo_n "(cached) " >&6
6210else
6211  if test -n "$STRIP"; then
6212  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6213else
6214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215for as_dir in $PATH
6216do
6217  IFS=$as_save_IFS
6218  test -z "$as_dir" && as_dir=.
6219    for ac_exec_ext in '' $ac_executable_extensions; do
6220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6221    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223    break 2
6224  fi
6225done
6226  done
6227IFS=$as_save_IFS
6228
6229fi
6230fi
6231STRIP=$ac_cv_prog_STRIP
6232if test -n "$STRIP"; then
6233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6234$as_echo "$STRIP" >&6; }
6235else
6236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237$as_echo "no" >&6; }
6238fi
6239
6240
6241fi
6242if test -z "$ac_cv_prog_STRIP"; then
6243  ac_ct_STRIP=$STRIP
6244  # Extract the first word of "strip", so it can be a program name with args.
6245set dummy strip; ac_word=$2
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247$as_echo_n "checking for $ac_word... " >&6; }
6248if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6249  $as_echo_n "(cached) " >&6
6250else
6251  if test -n "$ac_ct_STRIP"; then
6252  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6253else
6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255for as_dir in $PATH
6256do
6257  IFS=$as_save_IFS
6258  test -z "$as_dir" && as_dir=.
6259    for ac_exec_ext in '' $ac_executable_extensions; do
6260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6261    ac_cv_prog_ac_ct_STRIP="strip"
6262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6263    break 2
6264  fi
6265done
6266  done
6267IFS=$as_save_IFS
6268
6269fi
6270fi
6271ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6272if test -n "$ac_ct_STRIP"; then
6273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6274$as_echo "$ac_ct_STRIP" >&6; }
6275else
6276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6277$as_echo "no" >&6; }
6278fi
6279
6280  if test "x$ac_ct_STRIP" = x; then
6281    STRIP=":"
6282  else
6283    case $cross_compiling:$ac_tool_warned in
6284yes:)
6285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287ac_tool_warned=yes ;;
6288esac
6289    STRIP=$ac_ct_STRIP
6290  fi
6291else
6292  STRIP="$ac_cv_prog_STRIP"
6293fi
6294
6295test -z "$STRIP" && STRIP=:
6296
6297
6298
6299
6300
6301
6302if test -n "$ac_tool_prefix"; then
6303  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6304set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6306$as_echo_n "checking for $ac_word... " >&6; }
6307if ${ac_cv_prog_RANLIB+:} false; then :
6308  $as_echo_n "(cached) " >&6
6309else
6310  if test -n "$RANLIB"; then
6311  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6312else
6313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6314for as_dir in $PATH
6315do
6316  IFS=$as_save_IFS
6317  test -z "$as_dir" && as_dir=.
6318    for ac_exec_ext in '' $ac_executable_extensions; do
6319  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6320    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6321    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6322    break 2
6323  fi
6324done
6325  done
6326IFS=$as_save_IFS
6327
6328fi
6329fi
6330RANLIB=$ac_cv_prog_RANLIB
6331if test -n "$RANLIB"; then
6332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6333$as_echo "$RANLIB" >&6; }
6334else
6335  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6336$as_echo "no" >&6; }
6337fi
6338
6339
6340fi
6341if test -z "$ac_cv_prog_RANLIB"; then
6342  ac_ct_RANLIB=$RANLIB
6343  # Extract the first word of "ranlib", so it can be a program name with args.
6344set dummy ranlib; ac_word=$2
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346$as_echo_n "checking for $ac_word... " >&6; }
6347if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6348  $as_echo_n "(cached) " >&6
6349else
6350  if test -n "$ac_ct_RANLIB"; then
6351  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6352else
6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356  IFS=$as_save_IFS
6357  test -z "$as_dir" && as_dir=.
6358    for ac_exec_ext in '' $ac_executable_extensions; do
6359  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360    ac_cv_prog_ac_ct_RANLIB="ranlib"
6361    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362    break 2
6363  fi
6364done
6365  done
6366IFS=$as_save_IFS
6367
6368fi
6369fi
6370ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6371if test -n "$ac_ct_RANLIB"; then
6372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6373$as_echo "$ac_ct_RANLIB" >&6; }
6374else
6375  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376$as_echo "no" >&6; }
6377fi
6378
6379  if test "x$ac_ct_RANLIB" = x; then
6380    RANLIB=":"
6381  else
6382    case $cross_compiling:$ac_tool_warned in
6383yes:)
6384{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6385$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6386ac_tool_warned=yes ;;
6387esac
6388    RANLIB=$ac_ct_RANLIB
6389  fi
6390else
6391  RANLIB="$ac_cv_prog_RANLIB"
6392fi
6393
6394test -z "$RANLIB" && RANLIB=:
6395
6396
6397
6398
6399
6400
6401# Determine commands to create old-style static archives.
6402old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6403old_postinstall_cmds='chmod 644 $oldlib'
6404old_postuninstall_cmds=
6405
6406if test -n "$RANLIB"; then
6407  case $host_os in
6408  openbsd*)
6409    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6410    ;;
6411  *)
6412    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6413    ;;
6414  esac
6415  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6416fi
6417
6418case $host_os in
6419  darwin*)
6420    lock_old_archive_extraction=yes ;;
6421  *)
6422    lock_old_archive_extraction=no ;;
6423esac
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463# If no C compiler was specified, use CC.
6464LTCC=${LTCC-"$CC"}
6465
6466# If no C compiler flags were specified, use CFLAGS.
6467LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6468
6469# Allow CC to be a program name with arguments.
6470compiler=$CC
6471
6472
6473# Check for command to grab the raw symbol name followed by C symbol from nm.
6474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6475$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6476if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6477  $as_echo_n "(cached) " >&6
6478else
6479
6480# These are sane defaults that work on at least a few old systems.
6481# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6482
6483# Character class describing NM global symbol codes.
6484symcode='[BCDEGRST]'
6485
6486# Regexp to match symbols that can be accessed directly from C.
6487sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6488
6489# Define system-specific variables.
6490case $host_os in
6491aix*)
6492  symcode='[BCDT]'
6493  ;;
6494cygwin* | mingw* | pw32* | cegcc*)
6495  symcode='[ABCDGISTW]'
6496  ;;
6497hpux*)
6498  if test "$host_cpu" = ia64; then
6499    symcode='[ABCDEGRST]'
6500  fi
6501  ;;
6502irix* | nonstopux*)
6503  symcode='[BCDEGRST]'
6504  ;;
6505osf*)
6506  symcode='[BCDEGQRST]'
6507  ;;
6508solaris*)
6509  symcode='[BDRT]'
6510  ;;
6511sco3.2v5*)
6512  symcode='[DT]'
6513  ;;
6514sysv4.2uw2*)
6515  symcode='[DT]'
6516  ;;
6517sysv5* | sco5v6* | unixware* | OpenUNIX*)
6518  symcode='[ABDT]'
6519  ;;
6520sysv4)
6521  symcode='[DFNSTU]'
6522  ;;
6523esac
6524
6525# If we're using GNU nm, then use its standard symbol codes.
6526case `$NM -V 2>&1` in
6527*GNU* | *'with BFD'*)
6528  symcode='[ABCDGIRSTW]' ;;
6529esac
6530
6531# Transform an extracted symbol line into a proper C declaration.
6532# Some systems (esp. on ia64) link data and code symbols differently,
6533# so use this general approach.
6534lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6535
6536# Transform an extracted symbol line into symbol name and symbol address
6537lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6538lt_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'"
6539
6540# Handle CRLF in mingw tool chain
6541opt_cr=
6542case $build_os in
6543mingw*)
6544  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6545  ;;
6546esac
6547
6548# Try without a prefix underscore, then with it.
6549for ac_symprfx in "" "_"; do
6550
6551  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6552  symxfrm="\\1 $ac_symprfx\\2 \\2"
6553
6554  # Write the raw and C identifiers.
6555  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6556    # Fake it for dumpbin and say T for any non-static function
6557    # and D for any global variable.
6558    # Also find C++ and __fastcall symbols from MSVC++,
6559    # which start with @ or ?.
6560    lt_cv_sys_global_symbol_pipe="$AWK '"\
6561"     {last_section=section; section=\$ 3};"\
6562"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6563"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6564"     \$ 0!~/External *\|/{next};"\
6565"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6566"     {if(hide[section]) next};"\
6567"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6568"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6569"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6570"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6571"     ' prfx=^$ac_symprfx"
6572  else
6573    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6574  fi
6575  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6576
6577  # Check to see that the pipe works correctly.
6578  pipe_works=no
6579
6580  rm -f conftest*
6581  cat > conftest.$ac_ext <<_LT_EOF
6582#ifdef __cplusplus
6583extern "C" {
6584#endif
6585char nm_test_var;
6586void nm_test_func(void);
6587void nm_test_func(void){}
6588#ifdef __cplusplus
6589}
6590#endif
6591int main(){nm_test_var='a';nm_test_func();return(0);}
6592_LT_EOF
6593
6594  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6595  (eval $ac_compile) 2>&5
6596  ac_status=$?
6597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6598  test $ac_status = 0; }; then
6599    # Now try to grab the symbols.
6600    nlist=conftest.nm
6601    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6602  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6603  ac_status=$?
6604  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6605  test $ac_status = 0; } && test -s "$nlist"; then
6606      # Try sorting and uniquifying the output.
6607      if sort "$nlist" | uniq > "$nlist"T; then
6608	mv -f "$nlist"T "$nlist"
6609      else
6610	rm -f "$nlist"T
6611      fi
6612
6613      # Make sure that we snagged all the symbols we need.
6614      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6615	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6616	  cat <<_LT_EOF > conftest.$ac_ext
6617/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6618#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6619/* DATA imports from DLLs on WIN32 con't be const, because runtime
6620   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6621# define LT_DLSYM_CONST
6622#elif defined(__osf__)
6623/* This system does not cope well with relocations in const data.  */
6624# define LT_DLSYM_CONST
6625#else
6626# define LT_DLSYM_CONST const
6627#endif
6628
6629#ifdef __cplusplus
6630extern "C" {
6631#endif
6632
6633_LT_EOF
6634	  # Now generate the symbol file.
6635	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6636
6637	  cat <<_LT_EOF >> conftest.$ac_ext
6638
6639/* The mapping between symbol names and symbols.  */
6640LT_DLSYM_CONST struct {
6641  const char *name;
6642  void       *address;
6643}
6644lt__PROGRAM__LTX_preloaded_symbols[] =
6645{
6646  { "@PROGRAM@", (void *) 0 },
6647_LT_EOF
6648	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6649	  cat <<\_LT_EOF >> conftest.$ac_ext
6650  {0, (void *) 0}
6651};
6652
6653/* This works around a problem in FreeBSD linker */
6654#ifdef FREEBSD_WORKAROUND
6655static const void *lt_preloaded_setup() {
6656  return lt__PROGRAM__LTX_preloaded_symbols;
6657}
6658#endif
6659
6660#ifdef __cplusplus
6661}
6662#endif
6663_LT_EOF
6664	  # Now try linking the two files.
6665	  mv conftest.$ac_objext conftstm.$ac_objext
6666	  lt_globsym_save_LIBS=$LIBS
6667	  lt_globsym_save_CFLAGS=$CFLAGS
6668	  LIBS="conftstm.$ac_objext"
6669	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6670	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6671  (eval $ac_link) 2>&5
6672  ac_status=$?
6673  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6674  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6675	    pipe_works=yes
6676	  fi
6677	  LIBS=$lt_globsym_save_LIBS
6678	  CFLAGS=$lt_globsym_save_CFLAGS
6679	else
6680	  echo "cannot find nm_test_func in $nlist" >&5
6681	fi
6682      else
6683	echo "cannot find nm_test_var in $nlist" >&5
6684      fi
6685    else
6686      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6687    fi
6688  else
6689    echo "$progname: failed program was:" >&5
6690    cat conftest.$ac_ext >&5
6691  fi
6692  rm -rf conftest* conftst*
6693
6694  # Do not use the global_symbol_pipe unless it works.
6695  if test "$pipe_works" = yes; then
6696    break
6697  else
6698    lt_cv_sys_global_symbol_pipe=
6699  fi
6700done
6701
6702fi
6703
6704if test -z "$lt_cv_sys_global_symbol_pipe"; then
6705  lt_cv_sys_global_symbol_to_cdecl=
6706fi
6707if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6709$as_echo "failed" >&6; }
6710else
6711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6712$as_echo "ok" >&6; }
6713fi
6714
6715# Response file support.
6716if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6717  nm_file_list_spec='@'
6718elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6719  nm_file_list_spec='@'
6720fi
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6749$as_echo_n "checking for sysroot... " >&6; }
6750
6751# Check whether --with-sysroot was given.
6752if test "${with_sysroot+set}" = set; then :
6753  withval=$with_sysroot;
6754else
6755  with_sysroot=no
6756fi
6757
6758
6759lt_sysroot=
6760case ${with_sysroot} in #(
6761 yes)
6762   if test "$GCC" = yes; then
6763     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6764   fi
6765   ;; #(
6766 /*)
6767   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6768   ;; #(
6769 no|'')
6770   ;; #(
6771 *)
6772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6773$as_echo "${with_sysroot}" >&6; }
6774   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6775   ;;
6776esac
6777
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6779$as_echo "${lt_sysroot:-no}" >&6; }
6780
6781
6782
6783
6784
6785# Check whether --enable-libtool-lock was given.
6786if test "${enable_libtool_lock+set}" = set; then :
6787  enableval=$enable_libtool_lock;
6788fi
6789
6790test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6791
6792# Some flags need to be propagated to the compiler or linker for good
6793# libtool support.
6794case $host in
6795ia64-*-hpux*)
6796  # Find out which ABI we are using.
6797  echo 'int i;' > conftest.$ac_ext
6798  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6799  (eval $ac_compile) 2>&5
6800  ac_status=$?
6801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802  test $ac_status = 0; }; then
6803    case `/usr/bin/file conftest.$ac_objext` in
6804      *ELF-32*)
6805	HPUX_IA64_MODE="32"
6806	;;
6807      *ELF-64*)
6808	HPUX_IA64_MODE="64"
6809	;;
6810    esac
6811  fi
6812  rm -rf conftest*
6813  ;;
6814*-*-irix6*)
6815  # Find out which ABI we are using.
6816  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6817  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6818  (eval $ac_compile) 2>&5
6819  ac_status=$?
6820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6821  test $ac_status = 0; }; then
6822    if test "$lt_cv_prog_gnu_ld" = yes; then
6823      case `/usr/bin/file conftest.$ac_objext` in
6824	*32-bit*)
6825	  LD="${LD-ld} -melf32bsmip"
6826	  ;;
6827	*N32*)
6828	  LD="${LD-ld} -melf32bmipn32"
6829	  ;;
6830	*64-bit*)
6831	  LD="${LD-ld} -melf64bmip"
6832	;;
6833      esac
6834    else
6835      case `/usr/bin/file conftest.$ac_objext` in
6836	*32-bit*)
6837	  LD="${LD-ld} -32"
6838	  ;;
6839	*N32*)
6840	  LD="${LD-ld} -n32"
6841	  ;;
6842	*64-bit*)
6843	  LD="${LD-ld} -64"
6844	  ;;
6845      esac
6846    fi
6847  fi
6848  rm -rf conftest*
6849  ;;
6850
6851x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6852s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6853  # Find out which ABI we are using.
6854  echo 'int i;' > conftest.$ac_ext
6855  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6856  (eval $ac_compile) 2>&5
6857  ac_status=$?
6858  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859  test $ac_status = 0; }; then
6860    case `/usr/bin/file conftest.o` in
6861      *32-bit*)
6862	case $host in
6863	  x86_64-*kfreebsd*-gnu)
6864	    LD="${LD-ld} -m elf_i386_fbsd"
6865	    ;;
6866	  x86_64-*linux*)
6867	    LD="${LD-ld} -m elf_i386"
6868	    ;;
6869	  ppc64-*linux*|powerpc64-*linux*)
6870	    LD="${LD-ld} -m elf32ppclinux"
6871	    ;;
6872	  s390x-*linux*)
6873	    LD="${LD-ld} -m elf_s390"
6874	    ;;
6875	  sparc64-*linux*)
6876	    LD="${LD-ld} -m elf32_sparc"
6877	    ;;
6878	esac
6879	;;
6880      *64-bit*)
6881	case $host in
6882	  x86_64-*kfreebsd*-gnu)
6883	    LD="${LD-ld} -m elf_x86_64_fbsd"
6884	    ;;
6885	  x86_64-*linux*)
6886	    LD="${LD-ld} -m elf_x86_64"
6887	    ;;
6888	  ppc*-*linux*|powerpc*-*linux*)
6889	    LD="${LD-ld} -m elf64ppc"
6890	    ;;
6891	  s390*-*linux*|s390*-*tpf*)
6892	    LD="${LD-ld} -m elf64_s390"
6893	    ;;
6894	  sparc*-*linux*)
6895	    LD="${LD-ld} -m elf64_sparc"
6896	    ;;
6897	esac
6898	;;
6899    esac
6900  fi
6901  rm -rf conftest*
6902  ;;
6903
6904*-*-sco3.2v5*)
6905  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6906  SAVE_CFLAGS="$CFLAGS"
6907  CFLAGS="$CFLAGS -belf"
6908  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6909$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6910if ${lt_cv_cc_needs_belf+:} false; then :
6911  $as_echo_n "(cached) " >&6
6912else
6913  ac_ext=c
6914ac_cpp='$CPP $CPPFLAGS'
6915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6917ac_compiler_gnu=$ac_cv_c_compiler_gnu
6918
6919     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920/* end confdefs.h.  */
6921
6922int
6923main ()
6924{
6925
6926  ;
6927  return 0;
6928}
6929_ACEOF
6930if ac_fn_c_try_link "$LINENO"; then :
6931  lt_cv_cc_needs_belf=yes
6932else
6933  lt_cv_cc_needs_belf=no
6934fi
6935rm -f core conftest.err conftest.$ac_objext \
6936    conftest$ac_exeext conftest.$ac_ext
6937     ac_ext=c
6938ac_cpp='$CPP $CPPFLAGS'
6939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6941ac_compiler_gnu=$ac_cv_c_compiler_gnu
6942
6943fi
6944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6945$as_echo "$lt_cv_cc_needs_belf" >&6; }
6946  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6947    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6948    CFLAGS="$SAVE_CFLAGS"
6949  fi
6950  ;;
6951*-*solaris*)
6952  # Find out which ABI we are using.
6953  echo 'int i;' > conftest.$ac_ext
6954  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6955  (eval $ac_compile) 2>&5
6956  ac_status=$?
6957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6958  test $ac_status = 0; }; then
6959    case `/usr/bin/file conftest.o` in
6960    *64-bit*)
6961      case $lt_cv_prog_gnu_ld in
6962      yes*)
6963        case $host in
6964        i?86-*-solaris*)
6965          LD="${LD-ld} -m elf_x86_64"
6966          ;;
6967        sparc*-*-solaris*)
6968          LD="${LD-ld} -m elf64_sparc"
6969          ;;
6970        esac
6971        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6972        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6973          LD="${LD-ld}_sol2"
6974        fi
6975        ;;
6976      *)
6977	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6978	  LD="${LD-ld} -64"
6979	fi
6980	;;
6981      esac
6982      ;;
6983    esac
6984  fi
6985  rm -rf conftest*
6986  ;;
6987esac
6988
6989need_locks="$enable_libtool_lock"
6990
6991if test -n "$ac_tool_prefix"; then
6992  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6993set dummy ${ac_tool_prefix}mt; ac_word=$2
6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6995$as_echo_n "checking for $ac_word... " >&6; }
6996if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6997  $as_echo_n "(cached) " >&6
6998else
6999  if test -n "$MANIFEST_TOOL"; then
7000  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7001else
7002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7003for as_dir in $PATH
7004do
7005  IFS=$as_save_IFS
7006  test -z "$as_dir" && as_dir=.
7007    for ac_exec_ext in '' $ac_executable_extensions; do
7008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7011    break 2
7012  fi
7013done
7014  done
7015IFS=$as_save_IFS
7016
7017fi
7018fi
7019MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7020if test -n "$MANIFEST_TOOL"; then
7021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7022$as_echo "$MANIFEST_TOOL" >&6; }
7023else
7024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025$as_echo "no" >&6; }
7026fi
7027
7028
7029fi
7030if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7031  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7032  # Extract the first word of "mt", so it can be a program name with args.
7033set dummy mt; ac_word=$2
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035$as_echo_n "checking for $ac_word... " >&6; }
7036if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7037  $as_echo_n "(cached) " >&6
7038else
7039  if test -n "$ac_ct_MANIFEST_TOOL"; then
7040  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045  IFS=$as_save_IFS
7046  test -z "$as_dir" && as_dir=.
7047    for ac_exec_ext in '' $ac_executable_extensions; do
7048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7049    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051    break 2
7052  fi
7053done
7054  done
7055IFS=$as_save_IFS
7056
7057fi
7058fi
7059ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7060if test -n "$ac_ct_MANIFEST_TOOL"; then
7061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7062$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7063else
7064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
7066fi
7067
7068  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7069    MANIFEST_TOOL=":"
7070  else
7071    case $cross_compiling:$ac_tool_warned in
7072yes:)
7073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7075ac_tool_warned=yes ;;
7076esac
7077    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7078  fi
7079else
7080  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7081fi
7082
7083test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7085$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7086if ${lt_cv_path_mainfest_tool+:} false; then :
7087  $as_echo_n "(cached) " >&6
7088else
7089  lt_cv_path_mainfest_tool=no
7090  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7091  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7092  cat conftest.err >&5
7093  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7094    lt_cv_path_mainfest_tool=yes
7095  fi
7096  rm -f conftest*
7097fi
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7099$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7100if test "x$lt_cv_path_mainfest_tool" != xyes; then
7101  MANIFEST_TOOL=:
7102fi
7103
7104
7105
7106
7107
7108
7109  case $host_os in
7110    rhapsody* | darwin*)
7111    if test -n "$ac_tool_prefix"; then
7112  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7113set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115$as_echo_n "checking for $ac_word... " >&6; }
7116if ${ac_cv_prog_DSYMUTIL+:} false; then :
7117  $as_echo_n "(cached) " >&6
7118else
7119  if test -n "$DSYMUTIL"; then
7120  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7121else
7122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123for as_dir in $PATH
7124do
7125  IFS=$as_save_IFS
7126  test -z "$as_dir" && as_dir=.
7127    for ac_exec_ext in '' $ac_executable_extensions; do
7128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131    break 2
7132  fi
7133done
7134  done
7135IFS=$as_save_IFS
7136
7137fi
7138fi
7139DSYMUTIL=$ac_cv_prog_DSYMUTIL
7140if test -n "$DSYMUTIL"; then
7141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7142$as_echo "$DSYMUTIL" >&6; }
7143else
7144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145$as_echo "no" >&6; }
7146fi
7147
7148
7149fi
7150if test -z "$ac_cv_prog_DSYMUTIL"; then
7151  ac_ct_DSYMUTIL=$DSYMUTIL
7152  # Extract the first word of "dsymutil", so it can be a program name with args.
7153set dummy dsymutil; ac_word=$2
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7155$as_echo_n "checking for $ac_word... " >&6; }
7156if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7157  $as_echo_n "(cached) " >&6
7158else
7159  if test -n "$ac_ct_DSYMUTIL"; then
7160  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7161else
7162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163for as_dir in $PATH
7164do
7165  IFS=$as_save_IFS
7166  test -z "$as_dir" && as_dir=.
7167    for ac_exec_ext in '' $ac_executable_extensions; do
7168  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7169    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7171    break 2
7172  fi
7173done
7174  done
7175IFS=$as_save_IFS
7176
7177fi
7178fi
7179ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7180if test -n "$ac_ct_DSYMUTIL"; then
7181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7182$as_echo "$ac_ct_DSYMUTIL" >&6; }
7183else
7184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185$as_echo "no" >&6; }
7186fi
7187
7188  if test "x$ac_ct_DSYMUTIL" = x; then
7189    DSYMUTIL=":"
7190  else
7191    case $cross_compiling:$ac_tool_warned in
7192yes:)
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7194$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7195ac_tool_warned=yes ;;
7196esac
7197    DSYMUTIL=$ac_ct_DSYMUTIL
7198  fi
7199else
7200  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7201fi
7202
7203    if test -n "$ac_tool_prefix"; then
7204  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7205set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207$as_echo_n "checking for $ac_word... " >&6; }
7208if ${ac_cv_prog_NMEDIT+:} false; then :
7209  $as_echo_n "(cached) " >&6
7210else
7211  if test -n "$NMEDIT"; then
7212  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7213else
7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215for as_dir in $PATH
7216do
7217  IFS=$as_save_IFS
7218  test -z "$as_dir" && as_dir=.
7219    for ac_exec_ext in '' $ac_executable_extensions; do
7220  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7222    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223    break 2
7224  fi
7225done
7226  done
7227IFS=$as_save_IFS
7228
7229fi
7230fi
7231NMEDIT=$ac_cv_prog_NMEDIT
7232if test -n "$NMEDIT"; then
7233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7234$as_echo "$NMEDIT" >&6; }
7235else
7236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237$as_echo "no" >&6; }
7238fi
7239
7240
7241fi
7242if test -z "$ac_cv_prog_NMEDIT"; then
7243  ac_ct_NMEDIT=$NMEDIT
7244  # Extract the first word of "nmedit", so it can be a program name with args.
7245set dummy nmedit; ac_word=$2
7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247$as_echo_n "checking for $ac_word... " >&6; }
7248if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7249  $as_echo_n "(cached) " >&6
7250else
7251  if test -n "$ac_ct_NMEDIT"; then
7252  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7253else
7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255for as_dir in $PATH
7256do
7257  IFS=$as_save_IFS
7258  test -z "$as_dir" && as_dir=.
7259    for ac_exec_ext in '' $ac_executable_extensions; do
7260  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7262    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263    break 2
7264  fi
7265done
7266  done
7267IFS=$as_save_IFS
7268
7269fi
7270fi
7271ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7272if test -n "$ac_ct_NMEDIT"; then
7273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7274$as_echo "$ac_ct_NMEDIT" >&6; }
7275else
7276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277$as_echo "no" >&6; }
7278fi
7279
7280  if test "x$ac_ct_NMEDIT" = x; then
7281    NMEDIT=":"
7282  else
7283    case $cross_compiling:$ac_tool_warned in
7284yes:)
7285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7287ac_tool_warned=yes ;;
7288esac
7289    NMEDIT=$ac_ct_NMEDIT
7290  fi
7291else
7292  NMEDIT="$ac_cv_prog_NMEDIT"
7293fi
7294
7295    if test -n "$ac_tool_prefix"; then
7296  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7297set dummy ${ac_tool_prefix}lipo; ac_word=$2
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299$as_echo_n "checking for $ac_word... " >&6; }
7300if ${ac_cv_prog_LIPO+:} false; then :
7301  $as_echo_n "(cached) " >&6
7302else
7303  if test -n "$LIPO"; then
7304  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7305else
7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309  IFS=$as_save_IFS
7310  test -z "$as_dir" && as_dir=.
7311    for ac_exec_ext in '' $ac_executable_extensions; do
7312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315    break 2
7316  fi
7317done
7318  done
7319IFS=$as_save_IFS
7320
7321fi
7322fi
7323LIPO=$ac_cv_prog_LIPO
7324if test -n "$LIPO"; then
7325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7326$as_echo "$LIPO" >&6; }
7327else
7328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329$as_echo "no" >&6; }
7330fi
7331
7332
7333fi
7334if test -z "$ac_cv_prog_LIPO"; then
7335  ac_ct_LIPO=$LIPO
7336  # Extract the first word of "lipo", so it can be a program name with args.
7337set dummy lipo; ac_word=$2
7338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339$as_echo_n "checking for $ac_word... " >&6; }
7340if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7341  $as_echo_n "(cached) " >&6
7342else
7343  if test -n "$ac_ct_LIPO"; then
7344  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7345else
7346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7347for as_dir in $PATH
7348do
7349  IFS=$as_save_IFS
7350  test -z "$as_dir" && as_dir=.
7351    for ac_exec_ext in '' $ac_executable_extensions; do
7352  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7353    ac_cv_prog_ac_ct_LIPO="lipo"
7354    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7355    break 2
7356  fi
7357done
7358  done
7359IFS=$as_save_IFS
7360
7361fi
7362fi
7363ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7364if test -n "$ac_ct_LIPO"; then
7365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7366$as_echo "$ac_ct_LIPO" >&6; }
7367else
7368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369$as_echo "no" >&6; }
7370fi
7371
7372  if test "x$ac_ct_LIPO" = x; then
7373    LIPO=":"
7374  else
7375    case $cross_compiling:$ac_tool_warned in
7376yes:)
7377{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7378$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7379ac_tool_warned=yes ;;
7380esac
7381    LIPO=$ac_ct_LIPO
7382  fi
7383else
7384  LIPO="$ac_cv_prog_LIPO"
7385fi
7386
7387    if test -n "$ac_tool_prefix"; then
7388  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7389set dummy ${ac_tool_prefix}otool; ac_word=$2
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391$as_echo_n "checking for $ac_word... " >&6; }
7392if ${ac_cv_prog_OTOOL+:} false; then :
7393  $as_echo_n "(cached) " >&6
7394else
7395  if test -n "$OTOOL"; then
7396  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7397else
7398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399for as_dir in $PATH
7400do
7401  IFS=$as_save_IFS
7402  test -z "$as_dir" && as_dir=.
7403    for ac_exec_ext in '' $ac_executable_extensions; do
7404  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7405    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7406    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7407    break 2
7408  fi
7409done
7410  done
7411IFS=$as_save_IFS
7412
7413fi
7414fi
7415OTOOL=$ac_cv_prog_OTOOL
7416if test -n "$OTOOL"; then
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7418$as_echo "$OTOOL" >&6; }
7419else
7420  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421$as_echo "no" >&6; }
7422fi
7423
7424
7425fi
7426if test -z "$ac_cv_prog_OTOOL"; then
7427  ac_ct_OTOOL=$OTOOL
7428  # Extract the first word of "otool", so it can be a program name with args.
7429set dummy otool; ac_word=$2
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7431$as_echo_n "checking for $ac_word... " >&6; }
7432if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7433  $as_echo_n "(cached) " >&6
7434else
7435  if test -n "$ac_ct_OTOOL"; then
7436  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7437else
7438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7439for as_dir in $PATH
7440do
7441  IFS=$as_save_IFS
7442  test -z "$as_dir" && as_dir=.
7443    for ac_exec_ext in '' $ac_executable_extensions; do
7444  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7445    ac_cv_prog_ac_ct_OTOOL="otool"
7446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7447    break 2
7448  fi
7449done
7450  done
7451IFS=$as_save_IFS
7452
7453fi
7454fi
7455ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7456if test -n "$ac_ct_OTOOL"; then
7457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7458$as_echo "$ac_ct_OTOOL" >&6; }
7459else
7460  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7461$as_echo "no" >&6; }
7462fi
7463
7464  if test "x$ac_ct_OTOOL" = x; then
7465    OTOOL=":"
7466  else
7467    case $cross_compiling:$ac_tool_warned in
7468yes:)
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7470$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7471ac_tool_warned=yes ;;
7472esac
7473    OTOOL=$ac_ct_OTOOL
7474  fi
7475else
7476  OTOOL="$ac_cv_prog_OTOOL"
7477fi
7478
7479    if test -n "$ac_tool_prefix"; then
7480  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7481set dummy ${ac_tool_prefix}otool64; ac_word=$2
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483$as_echo_n "checking for $ac_word... " >&6; }
7484if ${ac_cv_prog_OTOOL64+:} false; then :
7485  $as_echo_n "(cached) " >&6
7486else
7487  if test -n "$OTOOL64"; then
7488  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7489else
7490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491for as_dir in $PATH
7492do
7493  IFS=$as_save_IFS
7494  test -z "$as_dir" && as_dir=.
7495    for ac_exec_ext in '' $ac_executable_extensions; do
7496  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7497    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7499    break 2
7500  fi
7501done
7502  done
7503IFS=$as_save_IFS
7504
7505fi
7506fi
7507OTOOL64=$ac_cv_prog_OTOOL64
7508if test -n "$OTOOL64"; then
7509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7510$as_echo "$OTOOL64" >&6; }
7511else
7512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513$as_echo "no" >&6; }
7514fi
7515
7516
7517fi
7518if test -z "$ac_cv_prog_OTOOL64"; then
7519  ac_ct_OTOOL64=$OTOOL64
7520  # Extract the first word of "otool64", so it can be a program name with args.
7521set dummy otool64; ac_word=$2
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523$as_echo_n "checking for $ac_word... " >&6; }
7524if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7525  $as_echo_n "(cached) " >&6
7526else
7527  if test -n "$ac_ct_OTOOL64"; then
7528  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7529else
7530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $PATH
7532do
7533  IFS=$as_save_IFS
7534  test -z "$as_dir" && as_dir=.
7535    for ac_exec_ext in '' $ac_executable_extensions; do
7536  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537    ac_cv_prog_ac_ct_OTOOL64="otool64"
7538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539    break 2
7540  fi
7541done
7542  done
7543IFS=$as_save_IFS
7544
7545fi
7546fi
7547ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7548if test -n "$ac_ct_OTOOL64"; then
7549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7550$as_echo "$ac_ct_OTOOL64" >&6; }
7551else
7552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553$as_echo "no" >&6; }
7554fi
7555
7556  if test "x$ac_ct_OTOOL64" = x; then
7557    OTOOL64=":"
7558  else
7559    case $cross_compiling:$ac_tool_warned in
7560yes:)
7561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7563ac_tool_warned=yes ;;
7564esac
7565    OTOOL64=$ac_ct_OTOOL64
7566  fi
7567else
7568  OTOOL64="$ac_cv_prog_OTOOL64"
7569fi
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7598$as_echo_n "checking for -single_module linker flag... " >&6; }
7599if ${lt_cv_apple_cc_single_mod+:} false; then :
7600  $as_echo_n "(cached) " >&6
7601else
7602  lt_cv_apple_cc_single_mod=no
7603      if test -z "${LT_MULTI_MODULE}"; then
7604	# By default we will add the -single_module flag. You can override
7605	# by either setting the environment variable LT_MULTI_MODULE
7606	# non-empty at configure time, or by adding -multi_module to the
7607	# link flags.
7608	rm -rf libconftest.dylib*
7609	echo "int foo(void){return 1;}" > conftest.c
7610	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7611-dynamiclib -Wl,-single_module conftest.c" >&5
7612	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7613	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7614        _lt_result=$?
7615	# If there is a non-empty error log, and "single_module"
7616	# appears in it, assume the flag caused a linker warning
7617        if test -s conftest.err && $GREP single_module conftest.err; then
7618	  cat conftest.err >&5
7619	# Otherwise, if the output was created with a 0 exit code from
7620	# the compiler, it worked.
7621	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7622	  lt_cv_apple_cc_single_mod=yes
7623	else
7624	  cat conftest.err >&5
7625	fi
7626	rm -rf libconftest.dylib*
7627	rm -f conftest.*
7628      fi
7629fi
7630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7631$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7632
7633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7634$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7635if ${lt_cv_ld_exported_symbols_list+:} false; then :
7636  $as_echo_n "(cached) " >&6
7637else
7638  lt_cv_ld_exported_symbols_list=no
7639      save_LDFLAGS=$LDFLAGS
7640      echo "_main" > conftest.sym
7641      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7642      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643/* end confdefs.h.  */
7644
7645int
7646main ()
7647{
7648
7649  ;
7650  return 0;
7651}
7652_ACEOF
7653if ac_fn_c_try_link "$LINENO"; then :
7654  lt_cv_ld_exported_symbols_list=yes
7655else
7656  lt_cv_ld_exported_symbols_list=no
7657fi
7658rm -f core conftest.err conftest.$ac_objext \
7659    conftest$ac_exeext conftest.$ac_ext
7660	LDFLAGS="$save_LDFLAGS"
7661
7662fi
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7664$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7665
7666    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7667$as_echo_n "checking for -force_load linker flag... " >&6; }
7668if ${lt_cv_ld_force_load+:} false; then :
7669  $as_echo_n "(cached) " >&6
7670else
7671  lt_cv_ld_force_load=no
7672      cat > conftest.c << _LT_EOF
7673int forced_loaded() { return 2;}
7674_LT_EOF
7675      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7676      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7677      echo "$AR cru libconftest.a conftest.o" >&5
7678      $AR cru libconftest.a conftest.o 2>&5
7679      echo "$RANLIB libconftest.a" >&5
7680      $RANLIB libconftest.a 2>&5
7681      cat > conftest.c << _LT_EOF
7682int main() { return 0;}
7683_LT_EOF
7684      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7685      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7686      _lt_result=$?
7687      if test -s conftest.err && $GREP force_load conftest.err; then
7688	cat conftest.err >&5
7689      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7690	lt_cv_ld_force_load=yes
7691      else
7692	cat conftest.err >&5
7693      fi
7694        rm -f conftest.err libconftest.a conftest conftest.c
7695        rm -rf conftest.dSYM
7696
7697fi
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7699$as_echo "$lt_cv_ld_force_load" >&6; }
7700    case $host_os in
7701    rhapsody* | darwin1.[012])
7702      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7703    darwin1.*)
7704      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7705    darwin*) # darwin 5.x on
7706      # if running on 10.5 or later, the deployment target defaults
7707      # to the OS version, if on x86, and 10.4, the deployment
7708      # target defaults to 10.4. Don't you love it?
7709      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7710	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7711	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7712	10.[012]*)
7713	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7714	10.*)
7715	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7716      esac
7717    ;;
7718  esac
7719    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7720      _lt_dar_single_mod='$single_module'
7721    fi
7722    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7723      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7724    else
7725      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7726    fi
7727    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7728      _lt_dsymutil='~$DSYMUTIL $lib || :'
7729    else
7730      _lt_dsymutil=
7731    fi
7732    ;;
7733  esac
7734
7735for ac_header in dlfcn.h
7736do :
7737  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7738"
7739if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7740  cat >>confdefs.h <<_ACEOF
7741#define HAVE_DLFCN_H 1
7742_ACEOF
7743
7744fi
7745
7746done
7747
7748
7749
7750
7751
7752# Set options
7753
7754
7755
7756        enable_dlopen=no
7757
7758
7759  enable_win32_dll=no
7760
7761
7762            # Check whether --enable-shared was given.
7763if test "${enable_shared+set}" = set; then :
7764  enableval=$enable_shared; p=${PACKAGE-default}
7765    case $enableval in
7766    yes) enable_shared=yes ;;
7767    no) enable_shared=no ;;
7768    *)
7769      enable_shared=no
7770      # Look at the argument we got.  We use all the common list separators.
7771      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7772      for pkg in $enableval; do
7773	IFS="$lt_save_ifs"
7774	if test "X$pkg" = "X$p"; then
7775	  enable_shared=yes
7776	fi
7777      done
7778      IFS="$lt_save_ifs"
7779      ;;
7780    esac
7781else
7782  enable_shared=yes
7783fi
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793  # Check whether --enable-static was given.
7794if test "${enable_static+set}" = set; then :
7795  enableval=$enable_static; p=${PACKAGE-default}
7796    case $enableval in
7797    yes) enable_static=yes ;;
7798    no) enable_static=no ;;
7799    *)
7800     enable_static=no
7801      # Look at the argument we got.  We use all the common list separators.
7802      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7803      for pkg in $enableval; do
7804	IFS="$lt_save_ifs"
7805	if test "X$pkg" = "X$p"; then
7806	  enable_static=yes
7807	fi
7808      done
7809      IFS="$lt_save_ifs"
7810      ;;
7811    esac
7812else
7813  enable_static=yes
7814fi
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825# Check whether --with-pic was given.
7826if test "${with_pic+set}" = set; then :
7827  withval=$with_pic; lt_p=${PACKAGE-default}
7828    case $withval in
7829    yes|no) pic_mode=$withval ;;
7830    *)
7831      pic_mode=default
7832      # Look at the argument we got.  We use all the common list separators.
7833      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7834      for lt_pkg in $withval; do
7835	IFS="$lt_save_ifs"
7836	if test "X$lt_pkg" = "X$lt_p"; then
7837	  pic_mode=yes
7838	fi
7839      done
7840      IFS="$lt_save_ifs"
7841      ;;
7842    esac
7843else
7844  pic_mode=default
7845fi
7846
7847
7848test -z "$pic_mode" && pic_mode=default
7849
7850
7851
7852
7853
7854
7855
7856  # Check whether --enable-fast-install was given.
7857if test "${enable_fast_install+set}" = set; then :
7858  enableval=$enable_fast_install; p=${PACKAGE-default}
7859    case $enableval in
7860    yes) enable_fast_install=yes ;;
7861    no) enable_fast_install=no ;;
7862    *)
7863      enable_fast_install=no
7864      # Look at the argument we got.  We use all the common list separators.
7865      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7866      for pkg in $enableval; do
7867	IFS="$lt_save_ifs"
7868	if test "X$pkg" = "X$p"; then
7869	  enable_fast_install=yes
7870	fi
7871      done
7872      IFS="$lt_save_ifs"
7873      ;;
7874    esac
7875else
7876  enable_fast_install=yes
7877fi
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889# This can be used to rebuild libtool when needed
7890LIBTOOL_DEPS="$ltmain"
7891
7892# Always use our own libtool.
7893LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924test -z "$LN_S" && LN_S="ln -s"
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939if test -n "${ZSH_VERSION+set}" ; then
7940   setopt NO_GLOB_SUBST
7941fi
7942
7943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7944$as_echo_n "checking for objdir... " >&6; }
7945if ${lt_cv_objdir+:} false; then :
7946  $as_echo_n "(cached) " >&6
7947else
7948  rm -f .libs 2>/dev/null
7949mkdir .libs 2>/dev/null
7950if test -d .libs; then
7951  lt_cv_objdir=.libs
7952else
7953  # MS-DOS does not allow filenames that begin with a dot.
7954  lt_cv_objdir=_libs
7955fi
7956rmdir .libs 2>/dev/null
7957fi
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7959$as_echo "$lt_cv_objdir" >&6; }
7960objdir=$lt_cv_objdir
7961
7962
7963
7964
7965
7966cat >>confdefs.h <<_ACEOF
7967#define LT_OBJDIR "$lt_cv_objdir/"
7968_ACEOF
7969
7970
7971
7972
7973case $host_os in
7974aix3*)
7975  # AIX sometimes has problems with the GCC collect2 program.  For some
7976  # reason, if we set the COLLECT_NAMES environment variable, the problems
7977  # vanish in a puff of smoke.
7978  if test "X${COLLECT_NAMES+set}" != Xset; then
7979    COLLECT_NAMES=
7980    export COLLECT_NAMES
7981  fi
7982  ;;
7983esac
7984
7985# Global variables:
7986ofile=libtool
7987can_build_shared=yes
7988
7989# All known linkers require a `.a' archive for static linking (except MSVC,
7990# which needs '.lib').
7991libext=a
7992
7993with_gnu_ld="$lt_cv_prog_gnu_ld"
7994
7995old_CC="$CC"
7996old_CFLAGS="$CFLAGS"
7997
7998# Set sane defaults for various variables
7999test -z "$CC" && CC=cc
8000test -z "$LTCC" && LTCC=$CC
8001test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8002test -z "$LD" && LD=ld
8003test -z "$ac_objext" && ac_objext=o
8004
8005for cc_temp in $compiler""; do
8006  case $cc_temp in
8007    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8008    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8009    \-*) ;;
8010    *) break;;
8011  esac
8012done
8013cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8014
8015
8016# Only perform the check for file, if the check method requires it
8017test -z "$MAGIC_CMD" && MAGIC_CMD=file
8018case $deplibs_check_method in
8019file_magic*)
8020  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8021    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8022$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8023if ${lt_cv_path_MAGIC_CMD+:} false; then :
8024  $as_echo_n "(cached) " >&6
8025else
8026  case $MAGIC_CMD in
8027[\\/*] |  ?:[\\/]*)
8028  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8029  ;;
8030*)
8031  lt_save_MAGIC_CMD="$MAGIC_CMD"
8032  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8033  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8034  for ac_dir in $ac_dummy; do
8035    IFS="$lt_save_ifs"
8036    test -z "$ac_dir" && ac_dir=.
8037    if test -f $ac_dir/${ac_tool_prefix}file; then
8038      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8039      if test -n "$file_magic_test_file"; then
8040	case $deplibs_check_method in
8041	"file_magic "*)
8042	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8043	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8044	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8045	    $EGREP "$file_magic_regex" > /dev/null; then
8046	    :
8047	  else
8048	    cat <<_LT_EOF 1>&2
8049
8050*** Warning: the command libtool uses to detect shared libraries,
8051*** $file_magic_cmd, produces output that libtool cannot recognize.
8052*** The result is that libtool may fail to recognize shared libraries
8053*** as such.  This will affect the creation of libtool libraries that
8054*** depend on shared libraries, but programs linked with such libtool
8055*** libraries will work regardless of this problem.  Nevertheless, you
8056*** may want to report the problem to your system manager and/or to
8057*** bug-libtool@gnu.org
8058
8059_LT_EOF
8060	  fi ;;
8061	esac
8062      fi
8063      break
8064    fi
8065  done
8066  IFS="$lt_save_ifs"
8067  MAGIC_CMD="$lt_save_MAGIC_CMD"
8068  ;;
8069esac
8070fi
8071
8072MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8073if test -n "$MAGIC_CMD"; then
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8075$as_echo "$MAGIC_CMD" >&6; }
8076else
8077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078$as_echo "no" >&6; }
8079fi
8080
8081
8082
8083
8084
8085if test -z "$lt_cv_path_MAGIC_CMD"; then
8086  if test -n "$ac_tool_prefix"; then
8087    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8088$as_echo_n "checking for file... " >&6; }
8089if ${lt_cv_path_MAGIC_CMD+:} false; then :
8090  $as_echo_n "(cached) " >&6
8091else
8092  case $MAGIC_CMD in
8093[\\/*] |  ?:[\\/]*)
8094  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8095  ;;
8096*)
8097  lt_save_MAGIC_CMD="$MAGIC_CMD"
8098  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8099  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8100  for ac_dir in $ac_dummy; do
8101    IFS="$lt_save_ifs"
8102    test -z "$ac_dir" && ac_dir=.
8103    if test -f $ac_dir/file; then
8104      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8105      if test -n "$file_magic_test_file"; then
8106	case $deplibs_check_method in
8107	"file_magic "*)
8108	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8109	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8110	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8111	    $EGREP "$file_magic_regex" > /dev/null; then
8112	    :
8113	  else
8114	    cat <<_LT_EOF 1>&2
8115
8116*** Warning: the command libtool uses to detect shared libraries,
8117*** $file_magic_cmd, produces output that libtool cannot recognize.
8118*** The result is that libtool may fail to recognize shared libraries
8119*** as such.  This will affect the creation of libtool libraries that
8120*** depend on shared libraries, but programs linked with such libtool
8121*** libraries will work regardless of this problem.  Nevertheless, you
8122*** may want to report the problem to your system manager and/or to
8123*** bug-libtool@gnu.org
8124
8125_LT_EOF
8126	  fi ;;
8127	esac
8128      fi
8129      break
8130    fi
8131  done
8132  IFS="$lt_save_ifs"
8133  MAGIC_CMD="$lt_save_MAGIC_CMD"
8134  ;;
8135esac
8136fi
8137
8138MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8139if test -n "$MAGIC_CMD"; then
8140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8141$as_echo "$MAGIC_CMD" >&6; }
8142else
8143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144$as_echo "no" >&6; }
8145fi
8146
8147
8148  else
8149    MAGIC_CMD=:
8150  fi
8151fi
8152
8153  fi
8154  ;;
8155esac
8156
8157# Use C for the default configuration in the libtool script
8158
8159lt_save_CC="$CC"
8160ac_ext=c
8161ac_cpp='$CPP $CPPFLAGS'
8162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8164ac_compiler_gnu=$ac_cv_c_compiler_gnu
8165
8166
8167# Source file extension for C test sources.
8168ac_ext=c
8169
8170# Object file extension for compiled C test sources.
8171objext=o
8172objext=$objext
8173
8174# Code to be used in simple compile tests
8175lt_simple_compile_test_code="int some_variable = 0;"
8176
8177# Code to be used in simple link tests
8178lt_simple_link_test_code='int main(){return(0);}'
8179
8180
8181
8182
8183
8184
8185
8186# If no C compiler was specified, use CC.
8187LTCC=${LTCC-"$CC"}
8188
8189# If no C compiler flags were specified, use CFLAGS.
8190LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8191
8192# Allow CC to be a program name with arguments.
8193compiler=$CC
8194
8195# Save the default compiler, since it gets overwritten when the other
8196# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8197compiler_DEFAULT=$CC
8198
8199# save warnings/boilerplate of simple test code
8200ac_outfile=conftest.$ac_objext
8201echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8202eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8203_lt_compiler_boilerplate=`cat conftest.err`
8204$RM conftest*
8205
8206ac_outfile=conftest.$ac_objext
8207echo "$lt_simple_link_test_code" >conftest.$ac_ext
8208eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8209_lt_linker_boilerplate=`cat conftest.err`
8210$RM -r conftest*
8211
8212
8213if test -n "$compiler"; then
8214
8215lt_prog_compiler_no_builtin_flag=
8216
8217if test "$GCC" = yes; then
8218  case $cc_basename in
8219  nvcc*)
8220    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8221  *)
8222    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8223  esac
8224
8225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8226$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8227if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8228  $as_echo_n "(cached) " >&6
8229else
8230  lt_cv_prog_compiler_rtti_exceptions=no
8231   ac_outfile=conftest.$ac_objext
8232   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8233   lt_compiler_flag="-fno-rtti -fno-exceptions"
8234   # Insert the option either (1) after the last *FLAGS variable, or
8235   # (2) before a word containing "conftest.", or (3) at the end.
8236   # Note that $ac_compile itself does not contain backslashes and begins
8237   # with a dollar sign (not a hyphen), so the echo should work correctly.
8238   # The option is referenced via a variable to avoid confusing sed.
8239   lt_compile=`echo "$ac_compile" | $SED \
8240   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8241   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8242   -e 's:$: $lt_compiler_flag:'`
8243   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8244   (eval "$lt_compile" 2>conftest.err)
8245   ac_status=$?
8246   cat conftest.err >&5
8247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248   if (exit $ac_status) && test -s "$ac_outfile"; then
8249     # The compiler can only warn and ignore the option if not recognized
8250     # So say no if there are warnings other than the usual output.
8251     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8252     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8253     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8254       lt_cv_prog_compiler_rtti_exceptions=yes
8255     fi
8256   fi
8257   $RM conftest*
8258
8259fi
8260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8261$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8262
8263if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8264    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8265else
8266    :
8267fi
8268
8269fi
8270
8271
8272
8273
8274
8275
8276  lt_prog_compiler_wl=
8277lt_prog_compiler_pic=
8278lt_prog_compiler_static=
8279
8280
8281  if test "$GCC" = yes; then
8282    lt_prog_compiler_wl='-Wl,'
8283    lt_prog_compiler_static='-static'
8284
8285    case $host_os in
8286      aix*)
8287      # All AIX code is PIC.
8288      if test "$host_cpu" = ia64; then
8289	# AIX 5 now supports IA64 processor
8290	lt_prog_compiler_static='-Bstatic'
8291      fi
8292      ;;
8293
8294    amigaos*)
8295      case $host_cpu in
8296      powerpc)
8297            # see comment about AmigaOS4 .so support
8298            lt_prog_compiler_pic='-fPIC'
8299        ;;
8300      m68k)
8301            # FIXME: we need at least 68020 code to build shared libraries, but
8302            # adding the `-m68020' flag to GCC prevents building anything better,
8303            # like `-m68040'.
8304            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8305        ;;
8306      esac
8307      ;;
8308
8309    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8310      # PIC is the default for these OSes.
8311      ;;
8312
8313    mingw* | cygwin* | pw32* | os2* | cegcc*)
8314      # This hack is so that the source file can tell whether it is being
8315      # built for inclusion in a dll (and should export symbols for example).
8316      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8317      # (--disable-auto-import) libraries
8318      lt_prog_compiler_pic='-DDLL_EXPORT'
8319      ;;
8320
8321    darwin* | rhapsody*)
8322      # PIC is the default on this platform
8323      # Common symbols not allowed in MH_DYLIB files
8324      lt_prog_compiler_pic='-fno-common'
8325      ;;
8326
8327    haiku*)
8328      # PIC is the default for Haiku.
8329      # The "-static" flag exists, but is broken.
8330      lt_prog_compiler_static=
8331      ;;
8332
8333    hpux*)
8334      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8335      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8336      # sets the default TLS model and affects inlining.
8337      case $host_cpu in
8338      hppa*64*)
8339	# +Z the default
8340	;;
8341      *)
8342	lt_prog_compiler_pic='-fPIC'
8343	;;
8344      esac
8345      ;;
8346
8347    interix[3-9]*)
8348      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8349      # Instead, we relocate shared libraries at runtime.
8350      ;;
8351
8352    msdosdjgpp*)
8353      # Just because we use GCC doesn't mean we suddenly get shared libraries
8354      # on systems that don't support them.
8355      lt_prog_compiler_can_build_shared=no
8356      enable_shared=no
8357      ;;
8358
8359    *nto* | *qnx*)
8360      # QNX uses GNU C++, but need to define -shared option too, otherwise
8361      # it will coredump.
8362      lt_prog_compiler_pic='-fPIC -shared'
8363      ;;
8364
8365    sysv4*MP*)
8366      if test -d /usr/nec; then
8367	lt_prog_compiler_pic=-Kconform_pic
8368      fi
8369      ;;
8370
8371    *)
8372      lt_prog_compiler_pic='-fPIC'
8373      ;;
8374    esac
8375
8376    case $cc_basename in
8377    nvcc*) # Cuda Compiler Driver 2.2
8378      lt_prog_compiler_wl='-Xlinker '
8379      if test -n "$lt_prog_compiler_pic"; then
8380        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8381      fi
8382      ;;
8383    esac
8384  else
8385    # PORTME Check for flag to pass linker flags through the system compiler.
8386    case $host_os in
8387    aix*)
8388      lt_prog_compiler_wl='-Wl,'
8389      if test "$host_cpu" = ia64; then
8390	# AIX 5 now supports IA64 processor
8391	lt_prog_compiler_static='-Bstatic'
8392      else
8393	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8394      fi
8395      ;;
8396
8397    mingw* | cygwin* | pw32* | os2* | cegcc*)
8398      # This hack is so that the source file can tell whether it is being
8399      # built for inclusion in a dll (and should export symbols for example).
8400      lt_prog_compiler_pic='-DDLL_EXPORT'
8401      ;;
8402
8403    hpux9* | hpux10* | hpux11*)
8404      lt_prog_compiler_wl='-Wl,'
8405      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8406      # not for PA HP-UX.
8407      case $host_cpu in
8408      hppa*64*|ia64*)
8409	# +Z the default
8410	;;
8411      *)
8412	lt_prog_compiler_pic='+Z'
8413	;;
8414      esac
8415      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8416      lt_prog_compiler_static='${wl}-a ${wl}archive'
8417      ;;
8418
8419    irix5* | irix6* | nonstopux*)
8420      lt_prog_compiler_wl='-Wl,'
8421      # PIC (with -KPIC) is the default.
8422      lt_prog_compiler_static='-non_shared'
8423      ;;
8424
8425    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8426      case $cc_basename in
8427      # old Intel for x86_64 which still supported -KPIC.
8428      ecc*)
8429	lt_prog_compiler_wl='-Wl,'
8430	lt_prog_compiler_pic='-KPIC'
8431	lt_prog_compiler_static='-static'
8432        ;;
8433      # icc used to be incompatible with GCC.
8434      # ICC 10 doesn't accept -KPIC any more.
8435      icc* | ifort*)
8436	lt_prog_compiler_wl='-Wl,'
8437	lt_prog_compiler_pic='-fPIC'
8438	lt_prog_compiler_static='-static'
8439        ;;
8440      # Lahey Fortran 8.1.
8441      lf95*)
8442	lt_prog_compiler_wl='-Wl,'
8443	lt_prog_compiler_pic='--shared'
8444	lt_prog_compiler_static='--static'
8445	;;
8446      nagfor*)
8447	# NAG Fortran compiler
8448	lt_prog_compiler_wl='-Wl,-Wl,,'
8449	lt_prog_compiler_pic='-PIC'
8450	lt_prog_compiler_static='-Bstatic'
8451	;;
8452      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8453        # Portland Group compilers (*not* the Pentium gcc compiler,
8454	# which looks to be a dead project)
8455	lt_prog_compiler_wl='-Wl,'
8456	lt_prog_compiler_pic='-fpic'
8457	lt_prog_compiler_static='-Bstatic'
8458        ;;
8459      ccc*)
8460        lt_prog_compiler_wl='-Wl,'
8461        # All Alpha code is PIC.
8462        lt_prog_compiler_static='-non_shared'
8463        ;;
8464      xl* | bgxl* | bgf* | mpixl*)
8465	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8466	lt_prog_compiler_wl='-Wl,'
8467	lt_prog_compiler_pic='-qpic'
8468	lt_prog_compiler_static='-qstaticlink'
8469	;;
8470      *)
8471	case `$CC -V 2>&1 | sed 5q` in
8472	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8473	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8474	  lt_prog_compiler_pic='-KPIC'
8475	  lt_prog_compiler_static='-Bstatic'
8476	  lt_prog_compiler_wl=''
8477	  ;;
8478	*Sun\ F* | *Sun*Fortran*)
8479	  lt_prog_compiler_pic='-KPIC'
8480	  lt_prog_compiler_static='-Bstatic'
8481	  lt_prog_compiler_wl='-Qoption ld '
8482	  ;;
8483	*Sun\ C*)
8484	  # Sun C 5.9
8485	  lt_prog_compiler_pic='-KPIC'
8486	  lt_prog_compiler_static='-Bstatic'
8487	  lt_prog_compiler_wl='-Wl,'
8488	  ;;
8489        *Intel*\ [CF]*Compiler*)
8490	  lt_prog_compiler_wl='-Wl,'
8491	  lt_prog_compiler_pic='-fPIC'
8492	  lt_prog_compiler_static='-static'
8493	  ;;
8494	*Portland\ Group*)
8495	  lt_prog_compiler_wl='-Wl,'
8496	  lt_prog_compiler_pic='-fpic'
8497	  lt_prog_compiler_static='-Bstatic'
8498	  ;;
8499	esac
8500	;;
8501      esac
8502      ;;
8503
8504    newsos6)
8505      lt_prog_compiler_pic='-KPIC'
8506      lt_prog_compiler_static='-Bstatic'
8507      ;;
8508
8509    *nto* | *qnx*)
8510      # QNX uses GNU C++, but need to define -shared option too, otherwise
8511      # it will coredump.
8512      lt_prog_compiler_pic='-fPIC -shared'
8513      ;;
8514
8515    osf3* | osf4* | osf5*)
8516      lt_prog_compiler_wl='-Wl,'
8517      # All OSF/1 code is PIC.
8518      lt_prog_compiler_static='-non_shared'
8519      ;;
8520
8521    rdos*)
8522      lt_prog_compiler_static='-non_shared'
8523      ;;
8524
8525    solaris*)
8526      lt_prog_compiler_pic='-KPIC'
8527      lt_prog_compiler_static='-Bstatic'
8528      case $cc_basename in
8529      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8530	lt_prog_compiler_wl='-Qoption ld ';;
8531      *)
8532	lt_prog_compiler_wl='-Wl,';;
8533      esac
8534      ;;
8535
8536    sunos4*)
8537      lt_prog_compiler_wl='-Qoption ld '
8538      lt_prog_compiler_pic='-PIC'
8539      lt_prog_compiler_static='-Bstatic'
8540      ;;
8541
8542    sysv4 | sysv4.2uw2* | sysv4.3*)
8543      lt_prog_compiler_wl='-Wl,'
8544      lt_prog_compiler_pic='-KPIC'
8545      lt_prog_compiler_static='-Bstatic'
8546      ;;
8547
8548    sysv4*MP*)
8549      if test -d /usr/nec ;then
8550	lt_prog_compiler_pic='-Kconform_pic'
8551	lt_prog_compiler_static='-Bstatic'
8552      fi
8553      ;;
8554
8555    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8556      lt_prog_compiler_wl='-Wl,'
8557      lt_prog_compiler_pic='-KPIC'
8558      lt_prog_compiler_static='-Bstatic'
8559      ;;
8560
8561    unicos*)
8562      lt_prog_compiler_wl='-Wl,'
8563      lt_prog_compiler_can_build_shared=no
8564      ;;
8565
8566    uts4*)
8567      lt_prog_compiler_pic='-pic'
8568      lt_prog_compiler_static='-Bstatic'
8569      ;;
8570
8571    *)
8572      lt_prog_compiler_can_build_shared=no
8573      ;;
8574    esac
8575  fi
8576
8577case $host_os in
8578  # For platforms which do not support PIC, -DPIC is meaningless:
8579  *djgpp*)
8580    lt_prog_compiler_pic=
8581    ;;
8582  *)
8583    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8584    ;;
8585esac
8586
8587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8588$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8589if ${lt_cv_prog_compiler_pic+:} false; then :
8590  $as_echo_n "(cached) " >&6
8591else
8592  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8593fi
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8595$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8596lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8597
8598#
8599# Check to make sure the PIC flag actually works.
8600#
8601if test -n "$lt_prog_compiler_pic"; then
8602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8603$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8604if ${lt_cv_prog_compiler_pic_works+:} false; then :
8605  $as_echo_n "(cached) " >&6
8606else
8607  lt_cv_prog_compiler_pic_works=no
8608   ac_outfile=conftest.$ac_objext
8609   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8610   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8611   # Insert the option either (1) after the last *FLAGS variable, or
8612   # (2) before a word containing "conftest.", or (3) at the end.
8613   # Note that $ac_compile itself does not contain backslashes and begins
8614   # with a dollar sign (not a hyphen), so the echo should work correctly.
8615   # The option is referenced via a variable to avoid confusing sed.
8616   lt_compile=`echo "$ac_compile" | $SED \
8617   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8618   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8619   -e 's:$: $lt_compiler_flag:'`
8620   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8621   (eval "$lt_compile" 2>conftest.err)
8622   ac_status=$?
8623   cat conftest.err >&5
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   if (exit $ac_status) && test -s "$ac_outfile"; then
8626     # The compiler can only warn and ignore the option if not recognized
8627     # So say no if there are warnings other than the usual output.
8628     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8629     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8630     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8631       lt_cv_prog_compiler_pic_works=yes
8632     fi
8633   fi
8634   $RM conftest*
8635
8636fi
8637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8638$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8639
8640if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8641    case $lt_prog_compiler_pic in
8642     "" | " "*) ;;
8643     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8644     esac
8645else
8646    lt_prog_compiler_pic=
8647     lt_prog_compiler_can_build_shared=no
8648fi
8649
8650fi
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662#
8663# Check to make sure the static flag actually works.
8664#
8665wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8667$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8668if ${lt_cv_prog_compiler_static_works+:} false; then :
8669  $as_echo_n "(cached) " >&6
8670else
8671  lt_cv_prog_compiler_static_works=no
8672   save_LDFLAGS="$LDFLAGS"
8673   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8674   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8675   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8676     # The linker can only warn and ignore the option if not recognized
8677     # So say no if there are warnings
8678     if test -s conftest.err; then
8679       # Append any errors to the config.log.
8680       cat conftest.err 1>&5
8681       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8682       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8683       if diff conftest.exp conftest.er2 >/dev/null; then
8684         lt_cv_prog_compiler_static_works=yes
8685       fi
8686     else
8687       lt_cv_prog_compiler_static_works=yes
8688     fi
8689   fi
8690   $RM -r conftest*
8691   LDFLAGS="$save_LDFLAGS"
8692
8693fi
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8695$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8696
8697if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8698    :
8699else
8700    lt_prog_compiler_static=
8701fi
8702
8703
8704
8705
8706
8707
8708
8709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8710$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8711if ${lt_cv_prog_compiler_c_o+:} false; then :
8712  $as_echo_n "(cached) " >&6
8713else
8714  lt_cv_prog_compiler_c_o=no
8715   $RM -r conftest 2>/dev/null
8716   mkdir conftest
8717   cd conftest
8718   mkdir out
8719   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8720
8721   lt_compiler_flag="-o out/conftest2.$ac_objext"
8722   # Insert the option either (1) after the last *FLAGS variable, or
8723   # (2) before a word containing "conftest.", or (3) at the end.
8724   # Note that $ac_compile itself does not contain backslashes and begins
8725   # with a dollar sign (not a hyphen), so the echo should work correctly.
8726   lt_compile=`echo "$ac_compile" | $SED \
8727   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8728   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8729   -e 's:$: $lt_compiler_flag:'`
8730   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8731   (eval "$lt_compile" 2>out/conftest.err)
8732   ac_status=$?
8733   cat out/conftest.err >&5
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8736   then
8737     # The compiler can only warn and ignore the option if not recognized
8738     # So say no if there are warnings
8739     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8740     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8741     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8742       lt_cv_prog_compiler_c_o=yes
8743     fi
8744   fi
8745   chmod u+w . 2>&5
8746   $RM conftest*
8747   # SGI C++ compiler will create directory out/ii_files/ for
8748   # template instantiation
8749   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8750   $RM out/* && rmdir out
8751   cd ..
8752   $RM -r conftest
8753   $RM conftest*
8754
8755fi
8756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8757$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8758
8759
8760
8761
8762
8763
8764  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8765$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8766if ${lt_cv_prog_compiler_c_o+:} false; then :
8767  $as_echo_n "(cached) " >&6
8768else
8769  lt_cv_prog_compiler_c_o=no
8770   $RM -r conftest 2>/dev/null
8771   mkdir conftest
8772   cd conftest
8773   mkdir out
8774   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8775
8776   lt_compiler_flag="-o out/conftest2.$ac_objext"
8777   # Insert the option either (1) after the last *FLAGS variable, or
8778   # (2) before a word containing "conftest.", or (3) at the end.
8779   # Note that $ac_compile itself does not contain backslashes and begins
8780   # with a dollar sign (not a hyphen), so the echo should work correctly.
8781   lt_compile=`echo "$ac_compile" | $SED \
8782   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8783   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8784   -e 's:$: $lt_compiler_flag:'`
8785   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8786   (eval "$lt_compile" 2>out/conftest.err)
8787   ac_status=$?
8788   cat out/conftest.err >&5
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8791   then
8792     # The compiler can only warn and ignore the option if not recognized
8793     # So say no if there are warnings
8794     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8795     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8796     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8797       lt_cv_prog_compiler_c_o=yes
8798     fi
8799   fi
8800   chmod u+w . 2>&5
8801   $RM conftest*
8802   # SGI C++ compiler will create directory out/ii_files/ for
8803   # template instantiation
8804   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8805   $RM out/* && rmdir out
8806   cd ..
8807   $RM -r conftest
8808   $RM conftest*
8809
8810fi
8811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8812$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8813
8814
8815
8816
8817hard_links="nottested"
8818if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8819  # do not overwrite the value of need_locks provided by the user
8820  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8821$as_echo_n "checking if we can lock with hard links... " >&6; }
8822  hard_links=yes
8823  $RM conftest*
8824  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8825  touch conftest.a
8826  ln conftest.a conftest.b 2>&5 || hard_links=no
8827  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8829$as_echo "$hard_links" >&6; }
8830  if test "$hard_links" = no; then
8831    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8832$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8833    need_locks=warn
8834  fi
8835else
8836  need_locks=no
8837fi
8838
8839
8840
8841
8842
8843
8844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8845$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8846
8847  runpath_var=
8848  allow_undefined_flag=
8849  always_export_symbols=no
8850  archive_cmds=
8851  archive_expsym_cmds=
8852  compiler_needs_object=no
8853  enable_shared_with_static_runtimes=no
8854  export_dynamic_flag_spec=
8855  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8856  hardcode_automatic=no
8857  hardcode_direct=no
8858  hardcode_direct_absolute=no
8859  hardcode_libdir_flag_spec=
8860  hardcode_libdir_separator=
8861  hardcode_minus_L=no
8862  hardcode_shlibpath_var=unsupported
8863  inherit_rpath=no
8864  link_all_deplibs=unknown
8865  module_cmds=
8866  module_expsym_cmds=
8867  old_archive_from_new_cmds=
8868  old_archive_from_expsyms_cmds=
8869  thread_safe_flag_spec=
8870  whole_archive_flag_spec=
8871  # include_expsyms should be a list of space-separated symbols to be *always*
8872  # included in the symbol list
8873  include_expsyms=
8874  # exclude_expsyms can be an extended regexp of symbols to exclude
8875  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8876  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8877  # as well as any symbol that contains `d'.
8878  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8879  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8880  # platforms (ab)use it in PIC code, but their linkers get confused if
8881  # the symbol is explicitly referenced.  Since portable code cannot
8882  # rely on this symbol name, it's probably fine to never include it in
8883  # preloaded symbol tables.
8884  # Exclude shared library initialization/finalization symbols.
8885  extract_expsyms_cmds=
8886
8887  case $host_os in
8888  cygwin* | mingw* | pw32* | cegcc*)
8889    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8890    # When not using gcc, we currently assume that we are using
8891    # Microsoft Visual C++.
8892    if test "$GCC" != yes; then
8893      with_gnu_ld=no
8894    fi
8895    ;;
8896  interix*)
8897    # we just hope/assume this is gcc and not c89 (= MSVC++)
8898    with_gnu_ld=yes
8899    ;;
8900  openbsd*)
8901    with_gnu_ld=no
8902    ;;
8903  esac
8904
8905  ld_shlibs=yes
8906
8907  # On some targets, GNU ld is compatible enough with the native linker
8908  # that we're better off using the native interface for both.
8909  lt_use_gnu_ld_interface=no
8910  if test "$with_gnu_ld" = yes; then
8911    case $host_os in
8912      aix*)
8913	# The AIX port of GNU ld has always aspired to compatibility
8914	# with the native linker.  However, as the warning in the GNU ld
8915	# block says, versions before 2.19.5* couldn't really create working
8916	# shared libraries, regardless of the interface used.
8917	case `$LD -v 2>&1` in
8918	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8919	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8920	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8921	  *)
8922	    lt_use_gnu_ld_interface=yes
8923	    ;;
8924	esac
8925	;;
8926      *)
8927	lt_use_gnu_ld_interface=yes
8928	;;
8929    esac
8930  fi
8931
8932  if test "$lt_use_gnu_ld_interface" = yes; then
8933    # If archive_cmds runs LD, not CC, wlarc should be empty
8934    wlarc='${wl}'
8935
8936    # Set some defaults for GNU ld with shared library support. These
8937    # are reset later if shared libraries are not supported. Putting them
8938    # here allows them to be overridden if necessary.
8939    runpath_var=LD_RUN_PATH
8940    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8941    export_dynamic_flag_spec='${wl}--export-dynamic'
8942    # ancient GNU ld didn't support --whole-archive et. al.
8943    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8944      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8945    else
8946      whole_archive_flag_spec=
8947    fi
8948    supports_anon_versioning=no
8949    case `$LD -v 2>&1` in
8950      *GNU\ gold*) supports_anon_versioning=yes ;;
8951      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8952      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8953      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8954      *\ 2.11.*) ;; # other 2.11 versions
8955      *) supports_anon_versioning=yes ;;
8956    esac
8957
8958    # See if GNU ld supports shared libraries.
8959    case $host_os in
8960    aix[3-9]*)
8961      # On AIX/PPC, the GNU linker is very broken
8962      if test "$host_cpu" != ia64; then
8963	ld_shlibs=no
8964	cat <<_LT_EOF 1>&2
8965
8966*** Warning: the GNU linker, at least up to release 2.19, is reported
8967*** to be unable to reliably create shared libraries on AIX.
8968*** Therefore, libtool is disabling shared libraries support.  If you
8969*** really care for shared libraries, you may want to install binutils
8970*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8971*** You will then need to restart the configuration process.
8972
8973_LT_EOF
8974      fi
8975      ;;
8976
8977    amigaos*)
8978      case $host_cpu in
8979      powerpc)
8980            # see comment about AmigaOS4 .so support
8981            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8982            archive_expsym_cmds=''
8983        ;;
8984      m68k)
8985            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)'
8986            hardcode_libdir_flag_spec='-L$libdir'
8987            hardcode_minus_L=yes
8988        ;;
8989      esac
8990      ;;
8991
8992    beos*)
8993      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8994	allow_undefined_flag=unsupported
8995	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8996	# support --undefined.  This deserves some investigation.  FIXME
8997	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8998      else
8999	ld_shlibs=no
9000      fi
9001      ;;
9002
9003    cygwin* | mingw* | pw32* | cegcc*)
9004      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9005      # as there is no search path for DLLs.
9006      hardcode_libdir_flag_spec='-L$libdir'
9007      export_dynamic_flag_spec='${wl}--export-all-symbols'
9008      allow_undefined_flag=unsupported
9009      always_export_symbols=no
9010      enable_shared_with_static_runtimes=yes
9011      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9012      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9013
9014      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9015        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9016	# If the export-symbols file already is a .def file (1st line
9017	# is EXPORTS), use it as is; otherwise, prepend...
9018	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9019	  cp $export_symbols $output_objdir/$soname.def;
9020	else
9021	  echo EXPORTS > $output_objdir/$soname.def;
9022	  cat $export_symbols >> $output_objdir/$soname.def;
9023	fi~
9024	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9025      else
9026	ld_shlibs=no
9027      fi
9028      ;;
9029
9030    haiku*)
9031      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9032      link_all_deplibs=yes
9033      ;;
9034
9035    interix[3-9]*)
9036      hardcode_direct=no
9037      hardcode_shlibpath_var=no
9038      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9039      export_dynamic_flag_spec='${wl}-E'
9040      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9041      # Instead, shared libraries are loaded at an image base (0x10000000 by
9042      # default) and relocated if they conflict, which is a slow very memory
9043      # consuming and fragmenting process.  To avoid this, we pick a random,
9044      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9045      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9046      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9047      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'
9048      ;;
9049
9050    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9051      tmp_diet=no
9052      if test "$host_os" = linux-dietlibc; then
9053	case $cc_basename in
9054	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9055	esac
9056      fi
9057      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9058	 && test "$tmp_diet" = no
9059      then
9060	tmp_addflag=' $pic_flag'
9061	tmp_sharedflag='-shared'
9062	case $cc_basename,$host_cpu in
9063        pgcc*)				# Portland Group C compiler
9064	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9065	  tmp_addflag=' $pic_flag'
9066	  ;;
9067	pgf77* | pgf90* | pgf95* | pgfortran*)
9068					# Portland Group f77 and f90 compilers
9069	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9070	  tmp_addflag=' $pic_flag -Mnomain' ;;
9071	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9072	  tmp_addflag=' -i_dynamic' ;;
9073	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9074	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9075	ifc* | ifort*)			# Intel Fortran compiler
9076	  tmp_addflag=' -nofor_main' ;;
9077	lf95*)				# Lahey Fortran 8.1
9078	  whole_archive_flag_spec=
9079	  tmp_sharedflag='--shared' ;;
9080	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9081	  tmp_sharedflag='-qmkshrobj'
9082	  tmp_addflag= ;;
9083	nvcc*)	# Cuda Compiler Driver 2.2
9084	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9085	  compiler_needs_object=yes
9086	  ;;
9087	esac
9088	case `$CC -V 2>&1 | sed 5q` in
9089	*Sun\ C*)			# Sun C 5.9
9090	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9091	  compiler_needs_object=yes
9092	  tmp_sharedflag='-G' ;;
9093	*Sun\ F*)			# Sun Fortran 8.3
9094	  tmp_sharedflag='-G' ;;
9095	esac
9096	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9097
9098        if test "x$supports_anon_versioning" = xyes; then
9099          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9100	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9101	    echo "local: *; };" >> $output_objdir/$libname.ver~
9102	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9103        fi
9104
9105	case $cc_basename in
9106	xlf* | bgf* | bgxlf* | mpixlf*)
9107	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9108	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9109	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9110	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9111	  if test "x$supports_anon_versioning" = xyes; then
9112	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9113	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9114	      echo "local: *; };" >> $output_objdir/$libname.ver~
9115	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9116	  fi
9117	  ;;
9118	esac
9119      else
9120        ld_shlibs=no
9121      fi
9122      ;;
9123
9124    netbsd*)
9125      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9126	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9127	wlarc=
9128      else
9129	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9130	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9131      fi
9132      ;;
9133
9134    solaris*)
9135      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9136	ld_shlibs=no
9137	cat <<_LT_EOF 1>&2
9138
9139*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9140*** create shared libraries on Solaris systems.  Therefore, libtool
9141*** is disabling shared libraries support.  We urge you to upgrade GNU
9142*** binutils to release 2.9.1 or newer.  Another option is to modify
9143*** your PATH or compiler configuration so that the native linker is
9144*** used, and then restart.
9145
9146_LT_EOF
9147      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9148	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9149	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9150      else
9151	ld_shlibs=no
9152      fi
9153      ;;
9154
9155    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9156      case `$LD -v 2>&1` in
9157        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9158	ld_shlibs=no
9159	cat <<_LT_EOF 1>&2
9160
9161*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9162*** reliably create shared libraries on SCO systems.  Therefore, libtool
9163*** is disabling shared libraries support.  We urge you to upgrade GNU
9164*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9165*** your PATH or compiler configuration so that the native linker is
9166*** used, and then restart.
9167
9168_LT_EOF
9169	;;
9170	*)
9171	  # For security reasons, it is highly recommended that you always
9172	  # use absolute paths for naming shared libraries, and exclude the
9173	  # DT_RUNPATH tag from executables and libraries.  But doing so
9174	  # requires that you compile everything twice, which is a pain.
9175	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9176	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9177	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9178	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9179	  else
9180	    ld_shlibs=no
9181	  fi
9182	;;
9183      esac
9184      ;;
9185
9186    sunos4*)
9187      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9188      wlarc=
9189      hardcode_direct=yes
9190      hardcode_shlibpath_var=no
9191      ;;
9192
9193    *)
9194      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9195	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9196	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9197      else
9198	ld_shlibs=no
9199      fi
9200      ;;
9201    esac
9202
9203    if test "$ld_shlibs" = no; then
9204      runpath_var=
9205      hardcode_libdir_flag_spec=
9206      export_dynamic_flag_spec=
9207      whole_archive_flag_spec=
9208    fi
9209  else
9210    # PORTME fill in a description of your system's linker (not GNU ld)
9211    case $host_os in
9212    aix3*)
9213      allow_undefined_flag=unsupported
9214      always_export_symbols=yes
9215      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'
9216      # Note: this linker hardcodes the directories in LIBPATH if there
9217      # are no directories specified by -L.
9218      hardcode_minus_L=yes
9219      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9220	# Neither direct hardcoding nor static linking is supported with a
9221	# broken collect2.
9222	hardcode_direct=unsupported
9223      fi
9224      ;;
9225
9226    aix[4-9]*)
9227      if test "$host_cpu" = ia64; then
9228	# On IA64, the linker does run time linking by default, so we don't
9229	# have to do anything special.
9230	aix_use_runtimelinking=no
9231	exp_sym_flag='-Bexport'
9232	no_entry_flag=""
9233      else
9234	# If we're using GNU nm, then we don't want the "-C" option.
9235	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9236	# Also, AIX nm treats weak defined symbols like other global
9237	# defined symbols, whereas GNU nm marks them as "W".
9238	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9239	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9240	else
9241	  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'
9242	fi
9243	aix_use_runtimelinking=no
9244
9245	# Test if we are trying to use run time linking or normal
9246	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9247	# need to do runtime linking.
9248	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9249	  for ld_flag in $LDFLAGS; do
9250	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9251	    aix_use_runtimelinking=yes
9252	    break
9253	  fi
9254	  done
9255	  ;;
9256	esac
9257
9258	exp_sym_flag='-bexport'
9259	no_entry_flag='-bnoentry'
9260      fi
9261
9262      # When large executables or shared objects are built, AIX ld can
9263      # have problems creating the table of contents.  If linking a library
9264      # or program results in "error TOC overflow" add -mminimal-toc to
9265      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9266      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9267
9268      archive_cmds=''
9269      hardcode_direct=yes
9270      hardcode_direct_absolute=yes
9271      hardcode_libdir_separator=':'
9272      link_all_deplibs=yes
9273      file_list_spec='${wl}-f,'
9274
9275      if test "$GCC" = yes; then
9276	case $host_os in aix4.[012]|aix4.[012].*)
9277	# We only want to do this on AIX 4.2 and lower, the check
9278	# below for broken collect2 doesn't work under 4.3+
9279	  collect2name=`${CC} -print-prog-name=collect2`
9280	  if test -f "$collect2name" &&
9281	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9282	  then
9283	  # We have reworked collect2
9284	  :
9285	  else
9286	  # We have old collect2
9287	  hardcode_direct=unsupported
9288	  # It fails to find uninstalled libraries when the uninstalled
9289	  # path is not listed in the libpath.  Setting hardcode_minus_L
9290	  # to unsupported forces relinking
9291	  hardcode_minus_L=yes
9292	  hardcode_libdir_flag_spec='-L$libdir'
9293	  hardcode_libdir_separator=
9294	  fi
9295	  ;;
9296	esac
9297	shared_flag='-shared'
9298	if test "$aix_use_runtimelinking" = yes; then
9299	  shared_flag="$shared_flag "'${wl}-G'
9300	fi
9301      else
9302	# not using gcc
9303	if test "$host_cpu" = ia64; then
9304	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9305	# chokes on -Wl,-G. The following line is correct:
9306	  shared_flag='-G'
9307	else
9308	  if test "$aix_use_runtimelinking" = yes; then
9309	    shared_flag='${wl}-G'
9310	  else
9311	    shared_flag='${wl}-bM:SRE'
9312	  fi
9313	fi
9314      fi
9315
9316      export_dynamic_flag_spec='${wl}-bexpall'
9317      # It seems that -bexpall does not export symbols beginning with
9318      # underscore (_), so it is better to generate a list of symbols to export.
9319      always_export_symbols=yes
9320      if test "$aix_use_runtimelinking" = yes; then
9321	# Warning - without using the other runtime loading flags (-brtl),
9322	# -berok will link without error, but may produce a broken library.
9323	allow_undefined_flag='-berok'
9324        # Determine the default libpath from the value encoded in an
9325        # empty executable.
9326        if test "${lt_cv_aix_libpath+set}" = set; then
9327  aix_libpath=$lt_cv_aix_libpath
9328else
9329  if ${lt_cv_aix_libpath_+:} false; then :
9330  $as_echo_n "(cached) " >&6
9331else
9332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h.  */
9334
9335int
9336main ()
9337{
9338
9339  ;
9340  return 0;
9341}
9342_ACEOF
9343if ac_fn_c_try_link "$LINENO"; then :
9344
9345  lt_aix_libpath_sed='
9346      /Import File Strings/,/^$/ {
9347	  /^0/ {
9348	      s/^0  *\([^ ]*\) *$/\1/
9349	      p
9350	  }
9351      }'
9352  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9353  # Check for a 64-bit object if we didn't find anything.
9354  if test -z "$lt_cv_aix_libpath_"; then
9355    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9356  fi
9357fi
9358rm -f core conftest.err conftest.$ac_objext \
9359    conftest$ac_exeext conftest.$ac_ext
9360  if test -z "$lt_cv_aix_libpath_"; then
9361    lt_cv_aix_libpath_="/usr/lib:/lib"
9362  fi
9363
9364fi
9365
9366  aix_libpath=$lt_cv_aix_libpath_
9367fi
9368
9369        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9370        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9371      else
9372	if test "$host_cpu" = ia64; then
9373	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9374	  allow_undefined_flag="-z nodefs"
9375	  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"
9376	else
9377	 # Determine the default libpath from the value encoded in an
9378	 # empty executable.
9379	 if test "${lt_cv_aix_libpath+set}" = set; then
9380  aix_libpath=$lt_cv_aix_libpath
9381else
9382  if ${lt_cv_aix_libpath_+:} false; then :
9383  $as_echo_n "(cached) " >&6
9384else
9385  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9386/* end confdefs.h.  */
9387
9388int
9389main ()
9390{
9391
9392  ;
9393  return 0;
9394}
9395_ACEOF
9396if ac_fn_c_try_link "$LINENO"; then :
9397
9398  lt_aix_libpath_sed='
9399      /Import File Strings/,/^$/ {
9400	  /^0/ {
9401	      s/^0  *\([^ ]*\) *$/\1/
9402	      p
9403	  }
9404      }'
9405  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9406  # Check for a 64-bit object if we didn't find anything.
9407  if test -z "$lt_cv_aix_libpath_"; then
9408    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9409  fi
9410fi
9411rm -f core conftest.err conftest.$ac_objext \
9412    conftest$ac_exeext conftest.$ac_ext
9413  if test -z "$lt_cv_aix_libpath_"; then
9414    lt_cv_aix_libpath_="/usr/lib:/lib"
9415  fi
9416
9417fi
9418
9419  aix_libpath=$lt_cv_aix_libpath_
9420fi
9421
9422	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9423	  # Warning - without using the other run time loading flags,
9424	  # -berok will link without error, but may produce a broken library.
9425	  no_undefined_flag=' ${wl}-bernotok'
9426	  allow_undefined_flag=' ${wl}-berok'
9427	  if test "$with_gnu_ld" = yes; then
9428	    # We only use this code for GNU lds that support --whole-archive.
9429	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9430	  else
9431	    # Exported symbols can be pulled into shared objects from archives
9432	    whole_archive_flag_spec='$convenience'
9433	  fi
9434	  archive_cmds_need_lc=yes
9435	  # This is similar to how AIX traditionally builds its shared libraries.
9436	  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'
9437	fi
9438      fi
9439      ;;
9440
9441    amigaos*)
9442      case $host_cpu in
9443      powerpc)
9444            # see comment about AmigaOS4 .so support
9445            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446            archive_expsym_cmds=''
9447        ;;
9448      m68k)
9449            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)'
9450            hardcode_libdir_flag_spec='-L$libdir'
9451            hardcode_minus_L=yes
9452        ;;
9453      esac
9454      ;;
9455
9456    bsdi[45]*)
9457      export_dynamic_flag_spec=-rdynamic
9458      ;;
9459
9460    cygwin* | mingw* | pw32* | cegcc*)
9461      # When not using gcc, we currently assume that we are using
9462      # Microsoft Visual C++.
9463      # hardcode_libdir_flag_spec is actually meaningless, as there is
9464      # no search path for DLLs.
9465      case $cc_basename in
9466      cl*)
9467	# Native MSVC
9468	hardcode_libdir_flag_spec=' '
9469	allow_undefined_flag=unsupported
9470	always_export_symbols=yes
9471	file_list_spec='@'
9472	# Tell ltmain to make .lib files, not .a files.
9473	libext=lib
9474	# Tell ltmain to make .dll files, not .so files.
9475	shrext_cmds=".dll"
9476	# FIXME: Setting linknames here is a bad hack.
9477	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9478	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9479	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9480	  else
9481	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9482	  fi~
9483	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9484	  linknames='
9485	# The linker will not automatically build a static lib if we build a DLL.
9486	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9487	enable_shared_with_static_runtimes=yes
9488	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9489	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9490	# Don't use ranlib
9491	old_postinstall_cmds='chmod 644 $oldlib'
9492	postlink_cmds='lt_outputfile="@OUTPUT@"~
9493	  lt_tool_outputfile="@TOOL_OUTPUT@"~
9494	  case $lt_outputfile in
9495	    *.exe|*.EXE) ;;
9496	    *)
9497	      lt_outputfile="$lt_outputfile.exe"
9498	      lt_tool_outputfile="$lt_tool_outputfile.exe"
9499	      ;;
9500	  esac~
9501	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9502	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9503	    $RM "$lt_outputfile.manifest";
9504	  fi'
9505	;;
9506      *)
9507	# Assume MSVC wrapper
9508	hardcode_libdir_flag_spec=' '
9509	allow_undefined_flag=unsupported
9510	# Tell ltmain to make .lib files, not .a files.
9511	libext=lib
9512	# Tell ltmain to make .dll files, not .so files.
9513	shrext_cmds=".dll"
9514	# FIXME: Setting linknames here is a bad hack.
9515	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9516	# The linker will automatically build a .lib file if we build a DLL.
9517	old_archive_from_new_cmds='true'
9518	# FIXME: Should let the user specify the lib program.
9519	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9520	enable_shared_with_static_runtimes=yes
9521	;;
9522      esac
9523      ;;
9524
9525    darwin* | rhapsody*)
9526
9527
9528  archive_cmds_need_lc=no
9529  hardcode_direct=no
9530  hardcode_automatic=yes
9531  hardcode_shlibpath_var=unsupported
9532  if test "$lt_cv_ld_force_load" = "yes"; then
9533    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9534
9535  else
9536    whole_archive_flag_spec=''
9537  fi
9538  link_all_deplibs=yes
9539  allow_undefined_flag="$_lt_dar_allow_undefined"
9540  case $cc_basename in
9541     ifort*) _lt_dar_can_shared=yes ;;
9542     *) _lt_dar_can_shared=$GCC ;;
9543  esac
9544  if test "$_lt_dar_can_shared" = "yes"; then
9545    output_verbose_link_cmd=func_echo_all
9546    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9547    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9548    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}"
9549    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}"
9550
9551  else
9552  ld_shlibs=no
9553  fi
9554
9555      ;;
9556
9557    dgux*)
9558      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9559      hardcode_libdir_flag_spec='-L$libdir'
9560      hardcode_shlibpath_var=no
9561      ;;
9562
9563    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9564    # support.  Future versions do this automatically, but an explicit c++rt0.o
9565    # does not break anything, and helps significantly (at the cost of a little
9566    # extra space).
9567    freebsd2.2*)
9568      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9569      hardcode_libdir_flag_spec='-R$libdir'
9570      hardcode_direct=yes
9571      hardcode_shlibpath_var=no
9572      ;;
9573
9574    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9575    freebsd2.*)
9576      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9577      hardcode_direct=yes
9578      hardcode_minus_L=yes
9579      hardcode_shlibpath_var=no
9580      ;;
9581
9582    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9583    freebsd* | dragonfly*)
9584      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9585      hardcode_libdir_flag_spec='-R$libdir'
9586      hardcode_direct=yes
9587      hardcode_shlibpath_var=no
9588      ;;
9589
9590    hpux9*)
9591      if test "$GCC" = yes; then
9592	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9593      else
9594	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'
9595      fi
9596      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9597      hardcode_libdir_separator=:
9598      hardcode_direct=yes
9599
9600      # hardcode_minus_L: Not really in the search PATH,
9601      # but as the default location of the library.
9602      hardcode_minus_L=yes
9603      export_dynamic_flag_spec='${wl}-E'
9604      ;;
9605
9606    hpux10*)
9607      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9608	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9609      else
9610	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9611      fi
9612      if test "$with_gnu_ld" = no; then
9613	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9614	hardcode_libdir_separator=:
9615	hardcode_direct=yes
9616	hardcode_direct_absolute=yes
9617	export_dynamic_flag_spec='${wl}-E'
9618	# hardcode_minus_L: Not really in the search PATH,
9619	# but as the default location of the library.
9620	hardcode_minus_L=yes
9621      fi
9622      ;;
9623
9624    hpux11*)
9625      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9626	case $host_cpu in
9627	hppa*64*)
9628	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9629	  ;;
9630	ia64*)
9631	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9632	  ;;
9633	*)
9634	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9635	  ;;
9636	esac
9637      else
9638	case $host_cpu in
9639	hppa*64*)
9640	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9641	  ;;
9642	ia64*)
9643	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9644	  ;;
9645	*)
9646
9647	  # Older versions of the 11.00 compiler do not understand -b yet
9648	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9649	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9650$as_echo_n "checking if $CC understands -b... " >&6; }
9651if ${lt_cv_prog_compiler__b+:} false; then :
9652  $as_echo_n "(cached) " >&6
9653else
9654  lt_cv_prog_compiler__b=no
9655   save_LDFLAGS="$LDFLAGS"
9656   LDFLAGS="$LDFLAGS -b"
9657   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9658   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9659     # The linker can only warn and ignore the option if not recognized
9660     # So say no if there are warnings
9661     if test -s conftest.err; then
9662       # Append any errors to the config.log.
9663       cat conftest.err 1>&5
9664       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9665       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9666       if diff conftest.exp conftest.er2 >/dev/null; then
9667         lt_cv_prog_compiler__b=yes
9668       fi
9669     else
9670       lt_cv_prog_compiler__b=yes
9671     fi
9672   fi
9673   $RM -r conftest*
9674   LDFLAGS="$save_LDFLAGS"
9675
9676fi
9677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9678$as_echo "$lt_cv_prog_compiler__b" >&6; }
9679
9680if test x"$lt_cv_prog_compiler__b" = xyes; then
9681    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9682else
9683    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9684fi
9685
9686	  ;;
9687	esac
9688      fi
9689      if test "$with_gnu_ld" = no; then
9690	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9691	hardcode_libdir_separator=:
9692
9693	case $host_cpu in
9694	hppa*64*|ia64*)
9695	  hardcode_direct=no
9696	  hardcode_shlibpath_var=no
9697	  ;;
9698	*)
9699	  hardcode_direct=yes
9700	  hardcode_direct_absolute=yes
9701	  export_dynamic_flag_spec='${wl}-E'
9702
9703	  # hardcode_minus_L: Not really in the search PATH,
9704	  # but as the default location of the library.
9705	  hardcode_minus_L=yes
9706	  ;;
9707	esac
9708      fi
9709      ;;
9710
9711    irix5* | irix6* | nonstopux*)
9712      if test "$GCC" = yes; then
9713	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9714	# Try to use the -exported_symbol ld option, if it does not
9715	# work, assume that -exports_file does not work either and
9716	# implicitly export all symbols.
9717	# This should be the same for all languages, so no per-tag cache variable.
9718	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9719$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9720if ${lt_cv_irix_exported_symbol+:} false; then :
9721  $as_echo_n "(cached) " >&6
9722else
9723  save_LDFLAGS="$LDFLAGS"
9724	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9725	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726/* end confdefs.h.  */
9727int foo (void) { return 0; }
9728_ACEOF
9729if ac_fn_c_try_link "$LINENO"; then :
9730  lt_cv_irix_exported_symbol=yes
9731else
9732  lt_cv_irix_exported_symbol=no
9733fi
9734rm -f core conftest.err conftest.$ac_objext \
9735    conftest$ac_exeext conftest.$ac_ext
9736           LDFLAGS="$save_LDFLAGS"
9737fi
9738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9739$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9740	if test "$lt_cv_irix_exported_symbol" = yes; then
9741          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9742	fi
9743      else
9744	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9745	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9746      fi
9747      archive_cmds_need_lc='no'
9748      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9749      hardcode_libdir_separator=:
9750      inherit_rpath=yes
9751      link_all_deplibs=yes
9752      ;;
9753
9754    netbsd*)
9755      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9756	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9757      else
9758	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9759      fi
9760      hardcode_libdir_flag_spec='-R$libdir'
9761      hardcode_direct=yes
9762      hardcode_shlibpath_var=no
9763      ;;
9764
9765    newsos6)
9766      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9767      hardcode_direct=yes
9768      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9769      hardcode_libdir_separator=:
9770      hardcode_shlibpath_var=no
9771      ;;
9772
9773    *nto* | *qnx*)
9774      ;;
9775
9776    openbsd*)
9777      if test -f /usr/libexec/ld.so; then
9778	hardcode_direct=yes
9779	hardcode_shlibpath_var=no
9780	hardcode_direct_absolute=yes
9781	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9782	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9783	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9784	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9785	  export_dynamic_flag_spec='${wl}-E'
9786	else
9787	  case $host_os in
9788	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9789	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9790	     hardcode_libdir_flag_spec='-R$libdir'
9791	     ;;
9792	   *)
9793	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9794	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9795	     ;;
9796	  esac
9797	fi
9798      else
9799	ld_shlibs=no
9800      fi
9801      ;;
9802
9803    os2*)
9804      hardcode_libdir_flag_spec='-L$libdir'
9805      hardcode_minus_L=yes
9806      allow_undefined_flag=unsupported
9807      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'
9808      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9809      ;;
9810
9811    osf3*)
9812      if test "$GCC" = yes; then
9813	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9814	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9815      else
9816	allow_undefined_flag=' -expect_unresolved \*'
9817	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9818      fi
9819      archive_cmds_need_lc='no'
9820      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9821      hardcode_libdir_separator=:
9822      ;;
9823
9824    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9825      if test "$GCC" = yes; then
9826	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9827	archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9828	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9829      else
9830	allow_undefined_flag=' -expect_unresolved \*'
9831	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9832	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~
9833	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9834
9835	# Both c and cxx compiler support -rpath directly
9836	hardcode_libdir_flag_spec='-rpath $libdir'
9837      fi
9838      archive_cmds_need_lc='no'
9839      hardcode_libdir_separator=:
9840      ;;
9841
9842    solaris*)
9843      no_undefined_flag=' -z defs'
9844      if test "$GCC" = yes; then
9845	wlarc='${wl}'
9846	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9847	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9848	  $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9849      else
9850	case `$CC -V 2>&1` in
9851	*"Compilers 5.0"*)
9852	  wlarc=''
9853	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9854	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9855	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9856	  ;;
9857	*)
9858	  wlarc='${wl}'
9859	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9860	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9861	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9862	  ;;
9863	esac
9864      fi
9865      hardcode_libdir_flag_spec='-R$libdir'
9866      hardcode_shlibpath_var=no
9867      case $host_os in
9868      solaris2.[0-5] | solaris2.[0-5].*) ;;
9869      *)
9870	# The compiler driver will combine and reorder linker options,
9871	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9872	# but is careful enough not to reorder.
9873	# Supported since Solaris 2.6 (maybe 2.5.1?)
9874	if test "$GCC" = yes; then
9875	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9876	else
9877	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9878	fi
9879	;;
9880      esac
9881      link_all_deplibs=yes
9882      ;;
9883
9884    sunos4*)
9885      if test "x$host_vendor" = xsequent; then
9886	# Use $CC to link under sequent, because it throws in some extra .o
9887	# files that make .init and .fini sections work.
9888	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9889      else
9890	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9891      fi
9892      hardcode_libdir_flag_spec='-L$libdir'
9893      hardcode_direct=yes
9894      hardcode_minus_L=yes
9895      hardcode_shlibpath_var=no
9896      ;;
9897
9898    sysv4)
9899      case $host_vendor in
9900	sni)
9901	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9902	  hardcode_direct=yes # is this really true???
9903	;;
9904	siemens)
9905	  ## LD is ld it makes a PLAMLIB
9906	  ## CC just makes a GrossModule.
9907	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9908	  reload_cmds='$CC -r -o $output$reload_objs'
9909	  hardcode_direct=no
9910        ;;
9911	motorola)
9912	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9913	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9914	;;
9915      esac
9916      runpath_var='LD_RUN_PATH'
9917      hardcode_shlibpath_var=no
9918      ;;
9919
9920    sysv4.3*)
9921      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9922      hardcode_shlibpath_var=no
9923      export_dynamic_flag_spec='-Bexport'
9924      ;;
9925
9926    sysv4*MP*)
9927      if test -d /usr/nec; then
9928	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9929	hardcode_shlibpath_var=no
9930	runpath_var=LD_RUN_PATH
9931	hardcode_runpath_var=yes
9932	ld_shlibs=yes
9933      fi
9934      ;;
9935
9936    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9937      no_undefined_flag='${wl}-z,text'
9938      archive_cmds_need_lc=no
9939      hardcode_shlibpath_var=no
9940      runpath_var='LD_RUN_PATH'
9941
9942      if test "$GCC" = yes; then
9943	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9944	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9945      else
9946	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9947	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9948      fi
9949      ;;
9950
9951    sysv5* | sco3.2v5* | sco5v6*)
9952      # Note: We can NOT use -z defs as we might desire, because we do not
9953      # link with -lc, and that would cause any symbols used from libc to
9954      # always be unresolved, which means just about no library would
9955      # ever link correctly.  If we're not using GNU ld we use -z text
9956      # though, which does catch some bad symbols but isn't as heavy-handed
9957      # as -z defs.
9958      no_undefined_flag='${wl}-z,text'
9959      allow_undefined_flag='${wl}-z,nodefs'
9960      archive_cmds_need_lc=no
9961      hardcode_shlibpath_var=no
9962      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9963      hardcode_libdir_separator=':'
9964      link_all_deplibs=yes
9965      export_dynamic_flag_spec='${wl}-Bexport'
9966      runpath_var='LD_RUN_PATH'
9967
9968      if test "$GCC" = yes; then
9969	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9970	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9971      else
9972	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9973	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9974      fi
9975      ;;
9976
9977    uts4*)
9978      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9979      hardcode_libdir_flag_spec='-L$libdir'
9980      hardcode_shlibpath_var=no
9981      ;;
9982
9983    *)
9984      ld_shlibs=no
9985      ;;
9986    esac
9987
9988    if test x$host_vendor = xsni; then
9989      case $host in
9990      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9991	export_dynamic_flag_spec='${wl}-Blargedynsym'
9992	;;
9993      esac
9994    fi
9995  fi
9996
9997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9998$as_echo "$ld_shlibs" >&6; }
9999test "$ld_shlibs" = no && can_build_shared=no
10000
10001with_gnu_ld=$with_gnu_ld
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017#
10018# Do we need to explicitly link libc?
10019#
10020case "x$archive_cmds_need_lc" in
10021x|xyes)
10022  # Assume -lc should be added
10023  archive_cmds_need_lc=yes
10024
10025  if test "$enable_shared" = yes && test "$GCC" = yes; then
10026    case $archive_cmds in
10027    *'~'*)
10028      # FIXME: we may have to deal with multi-command sequences.
10029      ;;
10030    '$CC '*)
10031      # Test whether the compiler implicitly links with -lc since on some
10032      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10033      # to ld, don't add -lc before -lgcc.
10034      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10035$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10036if ${lt_cv_archive_cmds_need_lc+:} false; then :
10037  $as_echo_n "(cached) " >&6
10038else
10039  $RM conftest*
10040	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10041
10042	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10043  (eval $ac_compile) 2>&5
10044  ac_status=$?
10045  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10046  test $ac_status = 0; } 2>conftest.err; then
10047	  soname=conftest
10048	  lib=conftest
10049	  libobjs=conftest.$ac_objext
10050	  deplibs=
10051	  wl=$lt_prog_compiler_wl
10052	  pic_flag=$lt_prog_compiler_pic
10053	  compiler_flags=-v
10054	  linker_flags=-v
10055	  verstring=
10056	  output_objdir=.
10057	  libname=conftest
10058	  lt_save_allow_undefined_flag=$allow_undefined_flag
10059	  allow_undefined_flag=
10060	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10061  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10062  ac_status=$?
10063  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10064  test $ac_status = 0; }
10065	  then
10066	    lt_cv_archive_cmds_need_lc=no
10067	  else
10068	    lt_cv_archive_cmds_need_lc=yes
10069	  fi
10070	  allow_undefined_flag=$lt_save_allow_undefined_flag
10071	else
10072	  cat conftest.err 1>&5
10073	fi
10074	$RM conftest*
10075
10076fi
10077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10078$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10079      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10080      ;;
10081    esac
10082  fi
10083  ;;
10084esac
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10238$as_echo_n "checking dynamic linker characteristics... " >&6; }
10239
10240if test "$GCC" = yes; then
10241  case $host_os in
10242    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10243    *) lt_awk_arg="/^libraries:/" ;;
10244  esac
10245  case $host_os in
10246    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10247    *) lt_sed_strip_eq="s,=/,/,g" ;;
10248  esac
10249  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10250  case $lt_search_path_spec in
10251  *\;*)
10252    # if the path contains ";" then we assume it to be the separator
10253    # otherwise default to the standard path separator (i.e. ":") - it is
10254    # assumed that no part of a normal pathname contains ";" but that should
10255    # okay in the real world where ";" in dirpaths is itself problematic.
10256    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10257    ;;
10258  *)
10259    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10260    ;;
10261  esac
10262  # Ok, now we have the path, separated by spaces, we can step through it
10263  # and add multilib dir if necessary.
10264  lt_tmp_lt_search_path_spec=
10265  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10266  for lt_sys_path in $lt_search_path_spec; do
10267    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10268      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10269    else
10270      test -d "$lt_sys_path" && \
10271	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10272    fi
10273  done
10274  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10275BEGIN {RS=" "; FS="/|\n";} {
10276  lt_foo="";
10277  lt_count=0;
10278  for (lt_i = NF; lt_i > 0; lt_i--) {
10279    if ($lt_i != "" && $lt_i != ".") {
10280      if ($lt_i == "..") {
10281        lt_count++;
10282      } else {
10283        if (lt_count == 0) {
10284          lt_foo="/" $lt_i lt_foo;
10285        } else {
10286          lt_count--;
10287        }
10288      }
10289    }
10290  }
10291  if (lt_foo != "") { lt_freq[lt_foo]++; }
10292  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10293}'`
10294  # AWK program above erroneously prepends '/' to C:/dos/paths
10295  # for these hosts.
10296  case $host_os in
10297    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10298      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10299  esac
10300  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10301else
10302  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10303fi
10304library_names_spec=
10305libname_spec='lib$name'
10306soname_spec=
10307shrext_cmds=".so"
10308postinstall_cmds=
10309postuninstall_cmds=
10310finish_cmds=
10311finish_eval=
10312shlibpath_var=
10313shlibpath_overrides_runpath=unknown
10314version_type=none
10315dynamic_linker="$host_os ld.so"
10316sys_lib_dlsearch_path_spec="/lib /usr/lib"
10317need_lib_prefix=unknown
10318hardcode_into_libs=no
10319
10320# when you set need_version to no, make sure it does not cause -set_version
10321# flags to be left without arguments
10322need_version=unknown
10323
10324case $host_os in
10325aix3*)
10326  version_type=linux # correct to gnu/linux during the next big refactor
10327  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10328  shlibpath_var=LIBPATH
10329
10330  # AIX 3 has no versioning support, so we append a major version to the name.
10331  soname_spec='${libname}${release}${shared_ext}$major'
10332  ;;
10333
10334aix[4-9]*)
10335  version_type=linux # correct to gnu/linux during the next big refactor
10336  need_lib_prefix=no
10337  need_version=no
10338  hardcode_into_libs=yes
10339  if test "$host_cpu" = ia64; then
10340    # AIX 5 supports IA64
10341    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10342    shlibpath_var=LD_LIBRARY_PATH
10343  else
10344    # With GCC up to 2.95.x, collect2 would create an import file
10345    # for dependence libraries.  The import file would start with
10346    # the line `#! .'.  This would cause the generated library to
10347    # depend on `.', always an invalid library.  This was fixed in
10348    # development snapshots of GCC prior to 3.0.
10349    case $host_os in
10350      aix4 | aix4.[01] | aix4.[01].*)
10351      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10352	   echo ' yes '
10353	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10354	:
10355      else
10356	can_build_shared=no
10357      fi
10358      ;;
10359    esac
10360    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10361    # soname into executable. Probably we can add versioning support to
10362    # collect2, so additional links can be useful in future.
10363    if test "$aix_use_runtimelinking" = yes; then
10364      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10365      # instead of lib<name>.a to let people know that these are not
10366      # typical AIX shared libraries.
10367      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10368    else
10369      # We preserve .a as extension for shared libraries through AIX4.2
10370      # and later when we are not doing run time linking.
10371      library_names_spec='${libname}${release}.a $libname.a'
10372      soname_spec='${libname}${release}${shared_ext}$major'
10373    fi
10374    shlibpath_var=LIBPATH
10375  fi
10376  ;;
10377
10378amigaos*)
10379  case $host_cpu in
10380  powerpc)
10381    # Since July 2007 AmigaOS4 officially supports .so libraries.
10382    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10383    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10384    ;;
10385  m68k)
10386    library_names_spec='$libname.ixlibrary $libname.a'
10387    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10388    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
10389    ;;
10390  esac
10391  ;;
10392
10393beos*)
10394  library_names_spec='${libname}${shared_ext}'
10395  dynamic_linker="$host_os ld.so"
10396  shlibpath_var=LIBRARY_PATH
10397  ;;
10398
10399bsdi[45]*)
10400  version_type=linux # correct to gnu/linux during the next big refactor
10401  need_version=no
10402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10403  soname_spec='${libname}${release}${shared_ext}$major'
10404  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10405  shlibpath_var=LD_LIBRARY_PATH
10406  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10407  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10408  # the default ld.so.conf also contains /usr/contrib/lib and
10409  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10410  # libtool to hard-code these into programs
10411  ;;
10412
10413cygwin* | mingw* | pw32* | cegcc*)
10414  version_type=windows
10415  shrext_cmds=".dll"
10416  need_version=no
10417  need_lib_prefix=no
10418
10419  case $GCC,$cc_basename in
10420  yes,*)
10421    # gcc
10422    library_names_spec='$libname.dll.a'
10423    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10424    postinstall_cmds='base_file=`basename \${file}`~
10425      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10426      dldir=$destdir/`dirname \$dlpath`~
10427      test -d \$dldir || mkdir -p \$dldir~
10428      $install_prog $dir/$dlname \$dldir/$dlname~
10429      chmod a+x \$dldir/$dlname~
10430      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10431        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10432      fi'
10433    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10434      dlpath=$dir/\$dldll~
10435       $RM \$dlpath'
10436    shlibpath_overrides_runpath=yes
10437
10438    case $host_os in
10439    cygwin*)
10440      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10441      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10442
10443      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10444      ;;
10445    mingw* | cegcc*)
10446      # MinGW DLLs use traditional 'lib' prefix
10447      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10448      ;;
10449    pw32*)
10450      # pw32 DLLs use 'pw' prefix rather than 'lib'
10451      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10452      ;;
10453    esac
10454    dynamic_linker='Win32 ld.exe'
10455    ;;
10456
10457  *,cl*)
10458    # Native MSVC
10459    libname_spec='$name'
10460    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10461    library_names_spec='${libname}.dll.lib'
10462
10463    case $build_os in
10464    mingw*)
10465      sys_lib_search_path_spec=
10466      lt_save_ifs=$IFS
10467      IFS=';'
10468      for lt_path in $LIB
10469      do
10470        IFS=$lt_save_ifs
10471        # Let DOS variable expansion print the short 8.3 style file name.
10472        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10473        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10474      done
10475      IFS=$lt_save_ifs
10476      # Convert to MSYS style.
10477      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10478      ;;
10479    cygwin*)
10480      # Convert to unix form, then to dos form, then back to unix form
10481      # but this time dos style (no spaces!) so that the unix form looks
10482      # like /cygdrive/c/PROGRA~1:/cygdr...
10483      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10484      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10485      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10486      ;;
10487    *)
10488      sys_lib_search_path_spec="$LIB"
10489      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10490        # It is most probably a Windows format PATH.
10491        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10492      else
10493        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10494      fi
10495      # FIXME: find the short name or the path components, as spaces are
10496      # common. (e.g. "Program Files" -> "PROGRA~1")
10497      ;;
10498    esac
10499
10500    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10501    postinstall_cmds='base_file=`basename \${file}`~
10502      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10503      dldir=$destdir/`dirname \$dlpath`~
10504      test -d \$dldir || mkdir -p \$dldir~
10505      $install_prog $dir/$dlname \$dldir/$dlname'
10506    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10507      dlpath=$dir/\$dldll~
10508       $RM \$dlpath'
10509    shlibpath_overrides_runpath=yes
10510    dynamic_linker='Win32 link.exe'
10511    ;;
10512
10513  *)
10514    # Assume MSVC wrapper
10515    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10516    dynamic_linker='Win32 ld.exe'
10517    ;;
10518  esac
10519  # FIXME: first we should search . and the directory the executable is in
10520  shlibpath_var=PATH
10521  ;;
10522
10523darwin* | rhapsody*)
10524  dynamic_linker="$host_os dyld"
10525  version_type=darwin
10526  need_lib_prefix=no
10527  need_version=no
10528  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10529  soname_spec='${libname}${release}${major}$shared_ext'
10530  shlibpath_overrides_runpath=yes
10531  shlibpath_var=DYLD_LIBRARY_PATH
10532  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10533
10534  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10535  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10536  ;;
10537
10538dgux*)
10539  version_type=linux # correct to gnu/linux during the next big refactor
10540  need_lib_prefix=no
10541  need_version=no
10542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10543  soname_spec='${libname}${release}${shared_ext}$major'
10544  shlibpath_var=LD_LIBRARY_PATH
10545  ;;
10546
10547freebsd* | dragonfly*)
10548  # DragonFly does not have aout.  When/if they implement a new
10549  # versioning mechanism, adjust this.
10550  if test -x /usr/bin/objformat; then
10551    objformat=`/usr/bin/objformat`
10552  else
10553    case $host_os in
10554    freebsd[23].*) objformat=aout ;;
10555    *) objformat=elf ;;
10556    esac
10557  fi
10558  version_type=freebsd-$objformat
10559  case $version_type in
10560    freebsd-elf*)
10561      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10562      need_version=no
10563      need_lib_prefix=no
10564      ;;
10565    freebsd-*)
10566      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10567      need_version=yes
10568      ;;
10569  esac
10570  shlibpath_var=LD_LIBRARY_PATH
10571  case $host_os in
10572  freebsd2.*)
10573    shlibpath_overrides_runpath=yes
10574    ;;
10575  freebsd3.[01]* | freebsdelf3.[01]*)
10576    shlibpath_overrides_runpath=yes
10577    hardcode_into_libs=yes
10578    ;;
10579  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10580  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10581    shlibpath_overrides_runpath=no
10582    hardcode_into_libs=yes
10583    ;;
10584  *) # from 4.6 on, and DragonFly
10585    shlibpath_overrides_runpath=yes
10586    hardcode_into_libs=yes
10587    ;;
10588  esac
10589  ;;
10590
10591gnu*)
10592  version_type=linux # correct to gnu/linux during the next big refactor
10593  need_lib_prefix=no
10594  need_version=no
10595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10596  soname_spec='${libname}${release}${shared_ext}$major'
10597  shlibpath_var=LD_LIBRARY_PATH
10598  shlibpath_overrides_runpath=no
10599  hardcode_into_libs=yes
10600  ;;
10601
10602haiku*)
10603  version_type=linux # correct to gnu/linux during the next big refactor
10604  need_lib_prefix=no
10605  need_version=no
10606  dynamic_linker="$host_os runtime_loader"
10607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10608  soname_spec='${libname}${release}${shared_ext}$major'
10609  shlibpath_var=LIBRARY_PATH
10610  shlibpath_overrides_runpath=yes
10611  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10612  hardcode_into_libs=yes
10613  ;;
10614
10615hpux9* | hpux10* | hpux11*)
10616  # Give a soname corresponding to the major version so that dld.sl refuses to
10617  # link against other versions.
10618  version_type=sunos
10619  need_lib_prefix=no
10620  need_version=no
10621  case $host_cpu in
10622  ia64*)
10623    shrext_cmds='.so'
10624    hardcode_into_libs=yes
10625    dynamic_linker="$host_os dld.so"
10626    shlibpath_var=LD_LIBRARY_PATH
10627    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10628    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10629    soname_spec='${libname}${release}${shared_ext}$major'
10630    if test "X$HPUX_IA64_MODE" = X32; then
10631      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10632    else
10633      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10634    fi
10635    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10636    ;;
10637  hppa*64*)
10638    shrext_cmds='.sl'
10639    hardcode_into_libs=yes
10640    dynamic_linker="$host_os dld.sl"
10641    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10642    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10643    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10644    soname_spec='${libname}${release}${shared_ext}$major'
10645    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10646    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10647    ;;
10648  *)
10649    shrext_cmds='.sl'
10650    dynamic_linker="$host_os dld.sl"
10651    shlibpath_var=SHLIB_PATH
10652    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10653    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654    soname_spec='${libname}${release}${shared_ext}$major'
10655    ;;
10656  esac
10657  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10658  postinstall_cmds='chmod 555 $lib'
10659  # or fails outright, so override atomically:
10660  install_override_mode=555
10661  ;;
10662
10663interix[3-9]*)
10664  version_type=linux # correct to gnu/linux during the next big refactor
10665  need_lib_prefix=no
10666  need_version=no
10667  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10668  soname_spec='${libname}${release}${shared_ext}$major'
10669  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10670  shlibpath_var=LD_LIBRARY_PATH
10671  shlibpath_overrides_runpath=no
10672  hardcode_into_libs=yes
10673  ;;
10674
10675irix5* | irix6* | nonstopux*)
10676  case $host_os in
10677    nonstopux*) version_type=nonstopux ;;
10678    *)
10679	if test "$lt_cv_prog_gnu_ld" = yes; then
10680		version_type=linux # correct to gnu/linux during the next big refactor
10681	else
10682		version_type=irix
10683	fi ;;
10684  esac
10685  need_lib_prefix=no
10686  need_version=no
10687  soname_spec='${libname}${release}${shared_ext}$major'
10688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10689  case $host_os in
10690  irix5* | nonstopux*)
10691    libsuff= shlibsuff=
10692    ;;
10693  *)
10694    case $LD in # libtool.m4 will add one of these switches to LD
10695    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10696      libsuff= shlibsuff= libmagic=32-bit;;
10697    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10698      libsuff=32 shlibsuff=N32 libmagic=N32;;
10699    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10700      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10701    *) libsuff= shlibsuff= libmagic=never-match;;
10702    esac
10703    ;;
10704  esac
10705  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10706  shlibpath_overrides_runpath=no
10707  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10708  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10709  hardcode_into_libs=yes
10710  ;;
10711
10712# No shared lib support for Linux oldld, aout, or coff.
10713linux*oldld* | linux*aout* | linux*coff*)
10714  dynamic_linker=no
10715  ;;
10716
10717# This must be glibc/ELF.
10718linux* | k*bsd*-gnu | kopensolaris*-gnu)
10719  version_type=linux # correct to gnu/linux during the next big refactor
10720  need_lib_prefix=no
10721  need_version=no
10722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10723  soname_spec='${libname}${release}${shared_ext}$major'
10724  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10725  shlibpath_var=LD_LIBRARY_PATH
10726  shlibpath_overrides_runpath=no
10727
10728  # Some binutils ld are patched to set DT_RUNPATH
10729  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10730  $as_echo_n "(cached) " >&6
10731else
10732  lt_cv_shlibpath_overrides_runpath=no
10733    save_LDFLAGS=$LDFLAGS
10734    save_libdir=$libdir
10735    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10736	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10737    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738/* end confdefs.h.  */
10739
10740int
10741main ()
10742{
10743
10744  ;
10745  return 0;
10746}
10747_ACEOF
10748if ac_fn_c_try_link "$LINENO"; then :
10749  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10750  lt_cv_shlibpath_overrides_runpath=yes
10751fi
10752fi
10753rm -f core conftest.err conftest.$ac_objext \
10754    conftest$ac_exeext conftest.$ac_ext
10755    LDFLAGS=$save_LDFLAGS
10756    libdir=$save_libdir
10757
10758fi
10759
10760  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10761
10762  # This implies no fast_install, which is unacceptable.
10763  # Some rework will be needed to allow for fast_install
10764  # before this can be enabled.
10765  hardcode_into_libs=yes
10766
10767  # Append ld.so.conf contents to the search path
10768  if test -f /etc/ld.so.conf; then
10769    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;s/"//g;/^$/d' | tr '\n' ' '`
10770    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10771  fi
10772
10773  # We used to test for /lib/ld.so.1 and disable shared libraries on
10774  # powerpc, because MkLinux only supported shared libraries with the
10775  # GNU dynamic linker.  Since this was broken with cross compilers,
10776  # most powerpc-linux boxes support dynamic linking these days and
10777  # people can always --disable-shared, the test was removed, and we
10778  # assume the GNU/Linux dynamic linker is in use.
10779  dynamic_linker='GNU/Linux ld.so'
10780  ;;
10781
10782netbsd*)
10783  version_type=sunos
10784  need_lib_prefix=no
10785  need_version=no
10786  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10787    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10788    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10789    dynamic_linker='NetBSD (a.out) ld.so'
10790  else
10791    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10792    soname_spec='${libname}${release}${shared_ext}$major'
10793    dynamic_linker='NetBSD ld.elf_so'
10794  fi
10795  shlibpath_var=LD_LIBRARY_PATH
10796  shlibpath_overrides_runpath=yes
10797  hardcode_into_libs=yes
10798  ;;
10799
10800newsos6)
10801  version_type=linux # correct to gnu/linux during the next big refactor
10802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10803  shlibpath_var=LD_LIBRARY_PATH
10804  shlibpath_overrides_runpath=yes
10805  ;;
10806
10807*nto* | *qnx*)
10808  version_type=qnx
10809  need_lib_prefix=no
10810  need_version=no
10811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10812  soname_spec='${libname}${release}${shared_ext}$major'
10813  shlibpath_var=LD_LIBRARY_PATH
10814  shlibpath_overrides_runpath=no
10815  hardcode_into_libs=yes
10816  dynamic_linker='ldqnx.so'
10817  ;;
10818
10819openbsd*)
10820  version_type=sunos
10821  sys_lib_dlsearch_path_spec="/usr/lib"
10822  need_lib_prefix=no
10823  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10824  case $host_os in
10825    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10826    *)				need_version=no  ;;
10827  esac
10828  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10829  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10830  shlibpath_var=LD_LIBRARY_PATH
10831  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10832    case $host_os in
10833      openbsd2.[89] | openbsd2.[89].*)
10834	shlibpath_overrides_runpath=no
10835	;;
10836      *)
10837	shlibpath_overrides_runpath=yes
10838	;;
10839      esac
10840  else
10841    shlibpath_overrides_runpath=yes
10842  fi
10843  ;;
10844
10845os2*)
10846  libname_spec='$name'
10847  shrext_cmds=".dll"
10848  need_lib_prefix=no
10849  library_names_spec='$libname${shared_ext} $libname.a'
10850  dynamic_linker='OS/2 ld.exe'
10851  shlibpath_var=LIBPATH
10852  ;;
10853
10854osf3* | osf4* | osf5*)
10855  version_type=osf
10856  need_lib_prefix=no
10857  need_version=no
10858  soname_spec='${libname}${release}${shared_ext}$major'
10859  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10860  shlibpath_var=LD_LIBRARY_PATH
10861  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10862  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10863  ;;
10864
10865rdos*)
10866  dynamic_linker=no
10867  ;;
10868
10869solaris*)
10870  version_type=linux # correct to gnu/linux during the next big refactor
10871  need_lib_prefix=no
10872  need_version=no
10873  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874  soname_spec='${libname}${release}${shared_ext}$major'
10875  shlibpath_var=LD_LIBRARY_PATH
10876  shlibpath_overrides_runpath=yes
10877  hardcode_into_libs=yes
10878  # ldd complains unless libraries are executable
10879  postinstall_cmds='chmod +x $lib'
10880  ;;
10881
10882sunos4*)
10883  version_type=sunos
10884  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10885  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10886  shlibpath_var=LD_LIBRARY_PATH
10887  shlibpath_overrides_runpath=yes
10888  if test "$with_gnu_ld" = yes; then
10889    need_lib_prefix=no
10890  fi
10891  need_version=yes
10892  ;;
10893
10894sysv4 | sysv4.3*)
10895  version_type=linux # correct to gnu/linux during the next big refactor
10896  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10897  soname_spec='${libname}${release}${shared_ext}$major'
10898  shlibpath_var=LD_LIBRARY_PATH
10899  case $host_vendor in
10900    sni)
10901      shlibpath_overrides_runpath=no
10902      need_lib_prefix=no
10903      runpath_var=LD_RUN_PATH
10904      ;;
10905    siemens)
10906      need_lib_prefix=no
10907      ;;
10908    motorola)
10909      need_lib_prefix=no
10910      need_version=no
10911      shlibpath_overrides_runpath=no
10912      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10913      ;;
10914  esac
10915  ;;
10916
10917sysv4*MP*)
10918  if test -d /usr/nec ;then
10919    version_type=linux # correct to gnu/linux during the next big refactor
10920    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10921    soname_spec='$libname${shared_ext}.$major'
10922    shlibpath_var=LD_LIBRARY_PATH
10923  fi
10924  ;;
10925
10926sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10927  version_type=freebsd-elf
10928  need_lib_prefix=no
10929  need_version=no
10930  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10931  soname_spec='${libname}${release}${shared_ext}$major'
10932  shlibpath_var=LD_LIBRARY_PATH
10933  shlibpath_overrides_runpath=yes
10934  hardcode_into_libs=yes
10935  if test "$with_gnu_ld" = yes; then
10936    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10937  else
10938    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10939    case $host_os in
10940      sco3.2v5*)
10941        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10942	;;
10943    esac
10944  fi
10945  sys_lib_dlsearch_path_spec='/usr/lib'
10946  ;;
10947
10948tpf*)
10949  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10950  version_type=linux # correct to gnu/linux during the next big refactor
10951  need_lib_prefix=no
10952  need_version=no
10953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10954  shlibpath_var=LD_LIBRARY_PATH
10955  shlibpath_overrides_runpath=no
10956  hardcode_into_libs=yes
10957  ;;
10958
10959uts4*)
10960  version_type=linux # correct to gnu/linux during the next big refactor
10961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10962  soname_spec='${libname}${release}${shared_ext}$major'
10963  shlibpath_var=LD_LIBRARY_PATH
10964  ;;
10965
10966*)
10967  dynamic_linker=no
10968  ;;
10969esac
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10971$as_echo "$dynamic_linker" >&6; }
10972test "$dynamic_linker" = no && can_build_shared=no
10973
10974variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10975if test "$GCC" = yes; then
10976  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10977fi
10978
10979if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10980  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10981fi
10982if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10983  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10984fi
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11078$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11079hardcode_action=
11080if test -n "$hardcode_libdir_flag_spec" ||
11081   test -n "$runpath_var" ||
11082   test "X$hardcode_automatic" = "Xyes" ; then
11083
11084  # We can hardcode non-existent directories.
11085  if test "$hardcode_direct" != no &&
11086     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11087     # have to relink, otherwise we might link with an installed library
11088     # when we should be linking with a yet-to-be-installed one
11089     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11090     test "$hardcode_minus_L" != no; then
11091    # Linking always hardcodes the temporary library directory.
11092    hardcode_action=relink
11093  else
11094    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11095    hardcode_action=immediate
11096  fi
11097else
11098  # We cannot hardcode anything, or else we can only hardcode existing
11099  # directories.
11100  hardcode_action=unsupported
11101fi
11102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11103$as_echo "$hardcode_action" >&6; }
11104
11105if test "$hardcode_action" = relink ||
11106   test "$inherit_rpath" = yes; then
11107  # Fast installation is not supported
11108  enable_fast_install=no
11109elif test "$shlibpath_overrides_runpath" = yes ||
11110     test "$enable_shared" = no; then
11111  # Fast installation is not necessary
11112  enable_fast_install=needless
11113fi
11114
11115
11116
11117
11118
11119
11120  if test "x$enable_dlopen" != xyes; then
11121  enable_dlopen=unknown
11122  enable_dlopen_self=unknown
11123  enable_dlopen_self_static=unknown
11124else
11125  lt_cv_dlopen=no
11126  lt_cv_dlopen_libs=
11127
11128  case $host_os in
11129  beos*)
11130    lt_cv_dlopen="load_add_on"
11131    lt_cv_dlopen_libs=
11132    lt_cv_dlopen_self=yes
11133    ;;
11134
11135  mingw* | pw32* | cegcc*)
11136    lt_cv_dlopen="LoadLibrary"
11137    lt_cv_dlopen_libs=
11138    ;;
11139
11140  cygwin*)
11141    lt_cv_dlopen="dlopen"
11142    lt_cv_dlopen_libs=
11143    ;;
11144
11145  darwin*)
11146  # if libdl is installed we need to link against it
11147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11148$as_echo_n "checking for dlopen in -ldl... " >&6; }
11149if ${ac_cv_lib_dl_dlopen+:} false; then :
11150  $as_echo_n "(cached) " >&6
11151else
11152  ac_check_lib_save_LIBS=$LIBS
11153LIBS="-ldl  $LIBS"
11154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155/* end confdefs.h.  */
11156
11157/* Override any GCC internal prototype to avoid an error.
11158   Use char because int might match the return type of a GCC
11159   builtin and then its argument prototype would still apply.  */
11160#ifdef __cplusplus
11161extern "C"
11162#endif
11163char dlopen ();
11164int
11165main ()
11166{
11167return dlopen ();
11168  ;
11169  return 0;
11170}
11171_ACEOF
11172if ac_fn_c_try_link "$LINENO"; then :
11173  ac_cv_lib_dl_dlopen=yes
11174else
11175  ac_cv_lib_dl_dlopen=no
11176fi
11177rm -f core conftest.err conftest.$ac_objext \
11178    conftest$ac_exeext conftest.$ac_ext
11179LIBS=$ac_check_lib_save_LIBS
11180fi
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11182$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11183if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11184  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11185else
11186
11187    lt_cv_dlopen="dyld"
11188    lt_cv_dlopen_libs=
11189    lt_cv_dlopen_self=yes
11190
11191fi
11192
11193    ;;
11194
11195  *)
11196    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11197if test "x$ac_cv_func_shl_load" = xyes; then :
11198  lt_cv_dlopen="shl_load"
11199else
11200  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11201$as_echo_n "checking for shl_load in -ldld... " >&6; }
11202if ${ac_cv_lib_dld_shl_load+:} false; then :
11203  $as_echo_n "(cached) " >&6
11204else
11205  ac_check_lib_save_LIBS=$LIBS
11206LIBS="-ldld  $LIBS"
11207cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11208/* end confdefs.h.  */
11209
11210/* Override any GCC internal prototype to avoid an error.
11211   Use char because int might match the return type of a GCC
11212   builtin and then its argument prototype would still apply.  */
11213#ifdef __cplusplus
11214extern "C"
11215#endif
11216char shl_load ();
11217int
11218main ()
11219{
11220return shl_load ();
11221  ;
11222  return 0;
11223}
11224_ACEOF
11225if ac_fn_c_try_link "$LINENO"; then :
11226  ac_cv_lib_dld_shl_load=yes
11227else
11228  ac_cv_lib_dld_shl_load=no
11229fi
11230rm -f core conftest.err conftest.$ac_objext \
11231    conftest$ac_exeext conftest.$ac_ext
11232LIBS=$ac_check_lib_save_LIBS
11233fi
11234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11235$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11236if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11237  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11238else
11239  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11240if test "x$ac_cv_func_dlopen" = xyes; then :
11241  lt_cv_dlopen="dlopen"
11242else
11243  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11244$as_echo_n "checking for dlopen in -ldl... " >&6; }
11245if ${ac_cv_lib_dl_dlopen+:} false; then :
11246  $as_echo_n "(cached) " >&6
11247else
11248  ac_check_lib_save_LIBS=$LIBS
11249LIBS="-ldl  $LIBS"
11250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11251/* end confdefs.h.  */
11252
11253/* Override any GCC internal prototype to avoid an error.
11254   Use char because int might match the return type of a GCC
11255   builtin and then its argument prototype would still apply.  */
11256#ifdef __cplusplus
11257extern "C"
11258#endif
11259char dlopen ();
11260int
11261main ()
11262{
11263return dlopen ();
11264  ;
11265  return 0;
11266}
11267_ACEOF
11268if ac_fn_c_try_link "$LINENO"; then :
11269  ac_cv_lib_dl_dlopen=yes
11270else
11271  ac_cv_lib_dl_dlopen=no
11272fi
11273rm -f core conftest.err conftest.$ac_objext \
11274    conftest$ac_exeext conftest.$ac_ext
11275LIBS=$ac_check_lib_save_LIBS
11276fi
11277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11278$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11279if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11280  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11281else
11282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11283$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11284if ${ac_cv_lib_svld_dlopen+:} false; then :
11285  $as_echo_n "(cached) " >&6
11286else
11287  ac_check_lib_save_LIBS=$LIBS
11288LIBS="-lsvld  $LIBS"
11289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290/* end confdefs.h.  */
11291
11292/* Override any GCC internal prototype to avoid an error.
11293   Use char because int might match the return type of a GCC
11294   builtin and then its argument prototype would still apply.  */
11295#ifdef __cplusplus
11296extern "C"
11297#endif
11298char dlopen ();
11299int
11300main ()
11301{
11302return dlopen ();
11303  ;
11304  return 0;
11305}
11306_ACEOF
11307if ac_fn_c_try_link "$LINENO"; then :
11308  ac_cv_lib_svld_dlopen=yes
11309else
11310  ac_cv_lib_svld_dlopen=no
11311fi
11312rm -f core conftest.err conftest.$ac_objext \
11313    conftest$ac_exeext conftest.$ac_ext
11314LIBS=$ac_check_lib_save_LIBS
11315fi
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11317$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11318if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11319  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11320else
11321  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11322$as_echo_n "checking for dld_link in -ldld... " >&6; }
11323if ${ac_cv_lib_dld_dld_link+:} false; then :
11324  $as_echo_n "(cached) " >&6
11325else
11326  ac_check_lib_save_LIBS=$LIBS
11327LIBS="-ldld  $LIBS"
11328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11329/* end confdefs.h.  */
11330
11331/* Override any GCC internal prototype to avoid an error.
11332   Use char because int might match the return type of a GCC
11333   builtin and then its argument prototype would still apply.  */
11334#ifdef __cplusplus
11335extern "C"
11336#endif
11337char dld_link ();
11338int
11339main ()
11340{
11341return dld_link ();
11342  ;
11343  return 0;
11344}
11345_ACEOF
11346if ac_fn_c_try_link "$LINENO"; then :
11347  ac_cv_lib_dld_dld_link=yes
11348else
11349  ac_cv_lib_dld_dld_link=no
11350fi
11351rm -f core conftest.err conftest.$ac_objext \
11352    conftest$ac_exeext conftest.$ac_ext
11353LIBS=$ac_check_lib_save_LIBS
11354fi
11355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11356$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11357if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11358  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11359fi
11360
11361
11362fi
11363
11364
11365fi
11366
11367
11368fi
11369
11370
11371fi
11372
11373
11374fi
11375
11376    ;;
11377  esac
11378
11379  if test "x$lt_cv_dlopen" != xno; then
11380    enable_dlopen=yes
11381  else
11382    enable_dlopen=no
11383  fi
11384
11385  case $lt_cv_dlopen in
11386  dlopen)
11387    save_CPPFLAGS="$CPPFLAGS"
11388    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11389
11390    save_LDFLAGS="$LDFLAGS"
11391    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11392
11393    save_LIBS="$LIBS"
11394    LIBS="$lt_cv_dlopen_libs $LIBS"
11395
11396    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11397$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11398if ${lt_cv_dlopen_self+:} false; then :
11399  $as_echo_n "(cached) " >&6
11400else
11401  	  if test "$cross_compiling" = yes; then :
11402  lt_cv_dlopen_self=cross
11403else
11404  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11405  lt_status=$lt_dlunknown
11406  cat > conftest.$ac_ext <<_LT_EOF
11407#line $LINENO "configure"
11408#include "confdefs.h"
11409
11410#if HAVE_DLFCN_H
11411#include <dlfcn.h>
11412#endif
11413
11414#include <stdio.h>
11415
11416#ifdef RTLD_GLOBAL
11417#  define LT_DLGLOBAL		RTLD_GLOBAL
11418#else
11419#  ifdef DL_GLOBAL
11420#    define LT_DLGLOBAL		DL_GLOBAL
11421#  else
11422#    define LT_DLGLOBAL		0
11423#  endif
11424#endif
11425
11426/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11427   find out it does not work in some platform. */
11428#ifndef LT_DLLAZY_OR_NOW
11429#  ifdef RTLD_LAZY
11430#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11431#  else
11432#    ifdef DL_LAZY
11433#      define LT_DLLAZY_OR_NOW		DL_LAZY
11434#    else
11435#      ifdef RTLD_NOW
11436#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11437#      else
11438#        ifdef DL_NOW
11439#          define LT_DLLAZY_OR_NOW	DL_NOW
11440#        else
11441#          define LT_DLLAZY_OR_NOW	0
11442#        endif
11443#      endif
11444#    endif
11445#  endif
11446#endif
11447
11448/* When -fvisbility=hidden is used, assume the code has been annotated
11449   correspondingly for the symbols needed.  */
11450#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11451int fnord () __attribute__((visibility("default")));
11452#endif
11453
11454int fnord () { return 42; }
11455int main ()
11456{
11457  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11458  int status = $lt_dlunknown;
11459
11460  if (self)
11461    {
11462      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11463      else
11464        {
11465	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11466          else puts (dlerror ());
11467	}
11468      /* dlclose (self); */
11469    }
11470  else
11471    puts (dlerror ());
11472
11473  return status;
11474}
11475_LT_EOF
11476  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11477  (eval $ac_link) 2>&5
11478  ac_status=$?
11479  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11480  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11481    (./conftest; exit; ) >&5 2>/dev/null
11482    lt_status=$?
11483    case x$lt_status in
11484      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11485      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11486      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11487    esac
11488  else :
11489    # compilation failed
11490    lt_cv_dlopen_self=no
11491  fi
11492fi
11493rm -fr conftest*
11494
11495
11496fi
11497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11498$as_echo "$lt_cv_dlopen_self" >&6; }
11499
11500    if test "x$lt_cv_dlopen_self" = xyes; then
11501      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11502      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11503$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11504if ${lt_cv_dlopen_self_static+:} false; then :
11505  $as_echo_n "(cached) " >&6
11506else
11507  	  if test "$cross_compiling" = yes; then :
11508  lt_cv_dlopen_self_static=cross
11509else
11510  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11511  lt_status=$lt_dlunknown
11512  cat > conftest.$ac_ext <<_LT_EOF
11513#line $LINENO "configure"
11514#include "confdefs.h"
11515
11516#if HAVE_DLFCN_H
11517#include <dlfcn.h>
11518#endif
11519
11520#include <stdio.h>
11521
11522#ifdef RTLD_GLOBAL
11523#  define LT_DLGLOBAL		RTLD_GLOBAL
11524#else
11525#  ifdef DL_GLOBAL
11526#    define LT_DLGLOBAL		DL_GLOBAL
11527#  else
11528#    define LT_DLGLOBAL		0
11529#  endif
11530#endif
11531
11532/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11533   find out it does not work in some platform. */
11534#ifndef LT_DLLAZY_OR_NOW
11535#  ifdef RTLD_LAZY
11536#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11537#  else
11538#    ifdef DL_LAZY
11539#      define LT_DLLAZY_OR_NOW		DL_LAZY
11540#    else
11541#      ifdef RTLD_NOW
11542#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11543#      else
11544#        ifdef DL_NOW
11545#          define LT_DLLAZY_OR_NOW	DL_NOW
11546#        else
11547#          define LT_DLLAZY_OR_NOW	0
11548#        endif
11549#      endif
11550#    endif
11551#  endif
11552#endif
11553
11554/* When -fvisbility=hidden is used, assume the code has been annotated
11555   correspondingly for the symbols needed.  */
11556#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11557int fnord () __attribute__((visibility("default")));
11558#endif
11559
11560int fnord () { return 42; }
11561int main ()
11562{
11563  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11564  int status = $lt_dlunknown;
11565
11566  if (self)
11567    {
11568      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11569      else
11570        {
11571	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11572          else puts (dlerror ());
11573	}
11574      /* dlclose (self); */
11575    }
11576  else
11577    puts (dlerror ());
11578
11579  return status;
11580}
11581_LT_EOF
11582  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11583  (eval $ac_link) 2>&5
11584  ac_status=$?
11585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11586  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11587    (./conftest; exit; ) >&5 2>/dev/null
11588    lt_status=$?
11589    case x$lt_status in
11590      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11591      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11592      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11593    esac
11594  else :
11595    # compilation failed
11596    lt_cv_dlopen_self_static=no
11597  fi
11598fi
11599rm -fr conftest*
11600
11601
11602fi
11603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11604$as_echo "$lt_cv_dlopen_self_static" >&6; }
11605    fi
11606
11607    CPPFLAGS="$save_CPPFLAGS"
11608    LDFLAGS="$save_LDFLAGS"
11609    LIBS="$save_LIBS"
11610    ;;
11611  esac
11612
11613  case $lt_cv_dlopen_self in
11614  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11615  *) enable_dlopen_self=unknown ;;
11616  esac
11617
11618  case $lt_cv_dlopen_self_static in
11619  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11620  *) enable_dlopen_self_static=unknown ;;
11621  esac
11622fi
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640striplib=
11641old_striplib=
11642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11643$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11644if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11645  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11646  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648$as_echo "yes" >&6; }
11649else
11650# FIXME - insert some real tests, host_os isn't really good enough
11651  case $host_os in
11652  darwin*)
11653    if test -n "$STRIP" ; then
11654      striplib="$STRIP -x"
11655      old_striplib="$STRIP -S"
11656      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11657$as_echo "yes" >&6; }
11658    else
11659      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660$as_echo "no" >&6; }
11661    fi
11662    ;;
11663  *)
11664    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11665$as_echo "no" >&6; }
11666    ;;
11667  esac
11668fi
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681  # Report which library types will actually be built
11682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11683$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11685$as_echo "$can_build_shared" >&6; }
11686
11687  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11688$as_echo_n "checking whether to build shared libraries... " >&6; }
11689  test "$can_build_shared" = "no" && enable_shared=no
11690
11691  # On AIX, shared libraries and static libraries use the same namespace, and
11692  # are all built from PIC.
11693  case $host_os in
11694  aix3*)
11695    test "$enable_shared" = yes && enable_static=no
11696    if test -n "$RANLIB"; then
11697      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11698      postinstall_cmds='$RANLIB $lib'
11699    fi
11700    ;;
11701
11702  aix[4-9]*)
11703    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11704      test "$enable_shared" = yes && enable_static=no
11705    fi
11706    ;;
11707  esac
11708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11709$as_echo "$enable_shared" >&6; }
11710
11711  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11712$as_echo_n "checking whether to build static libraries... " >&6; }
11713  # Make sure either enable_shared or enable_static is yes.
11714  test "$enable_shared" = yes || enable_static=yes
11715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11716$as_echo "$enable_static" >&6; }
11717
11718
11719
11720
11721fi
11722ac_ext=c
11723ac_cpp='$CPP $CPPFLAGS'
11724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11726ac_compiler_gnu=$ac_cv_c_compiler_gnu
11727
11728CC="$lt_save_CC"
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744        ac_config_commands="$ac_config_commands libtool"
11745
11746
11747
11748
11749# Only expand once:
11750
11751
11752
11753for ac_prog in gawk mawk nawk awk
11754do
11755  # Extract the first word of "$ac_prog", so it can be a program name with args.
11756set dummy $ac_prog; ac_word=$2
11757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11758$as_echo_n "checking for $ac_word... " >&6; }
11759if ${ac_cv_prog_AWK+:} false; then :
11760  $as_echo_n "(cached) " >&6
11761else
11762  if test -n "$AWK"; then
11763  ac_cv_prog_AWK="$AWK" # Let the user override the test.
11764else
11765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11766for as_dir in $PATH
11767do
11768  IFS=$as_save_IFS
11769  test -z "$as_dir" && as_dir=.
11770    for ac_exec_ext in '' $ac_executable_extensions; do
11771  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11772    ac_cv_prog_AWK="$ac_prog"
11773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11774    break 2
11775  fi
11776done
11777  done
11778IFS=$as_save_IFS
11779
11780fi
11781fi
11782AWK=$ac_cv_prog_AWK
11783if test -n "$AWK"; then
11784  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11785$as_echo "$AWK" >&6; }
11786else
11787  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11788$as_echo "no" >&6; }
11789fi
11790
11791
11792  test -n "$AWK" && break
11793done
11794
11795ac_ext=c
11796ac_cpp='$CPP $CPPFLAGS'
11797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11799ac_compiler_gnu=$ac_cv_c_compiler_gnu
11800if test -n "$ac_tool_prefix"; then
11801  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11802set dummy ${ac_tool_prefix}gcc; ac_word=$2
11803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11804$as_echo_n "checking for $ac_word... " >&6; }
11805if ${ac_cv_prog_CC+:} false; then :
11806  $as_echo_n "(cached) " >&6
11807else
11808  if test -n "$CC"; then
11809  ac_cv_prog_CC="$CC" # Let the user override the test.
11810else
11811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812for as_dir in $PATH
11813do
11814  IFS=$as_save_IFS
11815  test -z "$as_dir" && as_dir=.
11816    for ac_exec_ext in '' $ac_executable_extensions; do
11817  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11818    ac_cv_prog_CC="${ac_tool_prefix}gcc"
11819    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11820    break 2
11821  fi
11822done
11823  done
11824IFS=$as_save_IFS
11825
11826fi
11827fi
11828CC=$ac_cv_prog_CC
11829if test -n "$CC"; then
11830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11831$as_echo "$CC" >&6; }
11832else
11833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834$as_echo "no" >&6; }
11835fi
11836
11837
11838fi
11839if test -z "$ac_cv_prog_CC"; then
11840  ac_ct_CC=$CC
11841  # Extract the first word of "gcc", so it can be a program name with args.
11842set dummy gcc; ac_word=$2
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844$as_echo_n "checking for $ac_word... " >&6; }
11845if ${ac_cv_prog_ac_ct_CC+:} false; then :
11846  $as_echo_n "(cached) " >&6
11847else
11848  if test -n "$ac_ct_CC"; then
11849  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11850else
11851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852for as_dir in $PATH
11853do
11854  IFS=$as_save_IFS
11855  test -z "$as_dir" && as_dir=.
11856    for ac_exec_ext in '' $ac_executable_extensions; do
11857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11858    ac_cv_prog_ac_ct_CC="gcc"
11859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11860    break 2
11861  fi
11862done
11863  done
11864IFS=$as_save_IFS
11865
11866fi
11867fi
11868ac_ct_CC=$ac_cv_prog_ac_ct_CC
11869if test -n "$ac_ct_CC"; then
11870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11871$as_echo "$ac_ct_CC" >&6; }
11872else
11873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874$as_echo "no" >&6; }
11875fi
11876
11877  if test "x$ac_ct_CC" = x; then
11878    CC=""
11879  else
11880    case $cross_compiling:$ac_tool_warned in
11881yes:)
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11883$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11884ac_tool_warned=yes ;;
11885esac
11886    CC=$ac_ct_CC
11887  fi
11888else
11889  CC="$ac_cv_prog_CC"
11890fi
11891
11892if test -z "$CC"; then
11893          if test -n "$ac_tool_prefix"; then
11894    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11895set dummy ${ac_tool_prefix}cc; ac_word=$2
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897$as_echo_n "checking for $ac_word... " >&6; }
11898if ${ac_cv_prog_CC+:} false; then :
11899  $as_echo_n "(cached) " >&6
11900else
11901  if test -n "$CC"; then
11902  ac_cv_prog_CC="$CC" # Let the user override the test.
11903else
11904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905for as_dir in $PATH
11906do
11907  IFS=$as_save_IFS
11908  test -z "$as_dir" && as_dir=.
11909    for ac_exec_ext in '' $ac_executable_extensions; do
11910  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11911    ac_cv_prog_CC="${ac_tool_prefix}cc"
11912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11913    break 2
11914  fi
11915done
11916  done
11917IFS=$as_save_IFS
11918
11919fi
11920fi
11921CC=$ac_cv_prog_CC
11922if test -n "$CC"; then
11923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11924$as_echo "$CC" >&6; }
11925else
11926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927$as_echo "no" >&6; }
11928fi
11929
11930
11931  fi
11932fi
11933if test -z "$CC"; then
11934  # Extract the first word of "cc", so it can be a program name with args.
11935set dummy cc; ac_word=$2
11936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937$as_echo_n "checking for $ac_word... " >&6; }
11938if ${ac_cv_prog_CC+:} false; then :
11939  $as_echo_n "(cached) " >&6
11940else
11941  if test -n "$CC"; then
11942  ac_cv_prog_CC="$CC" # Let the user override the test.
11943else
11944  ac_prog_rejected=no
11945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11946for as_dir in $PATH
11947do
11948  IFS=$as_save_IFS
11949  test -z "$as_dir" && as_dir=.
11950    for ac_exec_ext in '' $ac_executable_extensions; do
11951  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11952    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11953       ac_prog_rejected=yes
11954       continue
11955     fi
11956    ac_cv_prog_CC="cc"
11957    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11958    break 2
11959  fi
11960done
11961  done
11962IFS=$as_save_IFS
11963
11964if test $ac_prog_rejected = yes; then
11965  # We found a bogon in the path, so make sure we never use it.
11966  set dummy $ac_cv_prog_CC
11967  shift
11968  if test $# != 0; then
11969    # We chose a different compiler from the bogus one.
11970    # However, it has the same basename, so the bogon will be chosen
11971    # first if we set CC to just the basename; use the full file name.
11972    shift
11973    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11974  fi
11975fi
11976fi
11977fi
11978CC=$ac_cv_prog_CC
11979if test -n "$CC"; then
11980  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11981$as_echo "$CC" >&6; }
11982else
11983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11984$as_echo "no" >&6; }
11985fi
11986
11987
11988fi
11989if test -z "$CC"; then
11990  if test -n "$ac_tool_prefix"; then
11991  for ac_prog in cl.exe
11992  do
11993    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11994set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11996$as_echo_n "checking for $ac_word... " >&6; }
11997if ${ac_cv_prog_CC+:} false; then :
11998  $as_echo_n "(cached) " >&6
11999else
12000  if test -n "$CC"; then
12001  ac_cv_prog_CC="$CC" # Let the user override the test.
12002else
12003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004for as_dir in $PATH
12005do
12006  IFS=$as_save_IFS
12007  test -z "$as_dir" && as_dir=.
12008    for ac_exec_ext in '' $ac_executable_extensions; do
12009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12010    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12012    break 2
12013  fi
12014done
12015  done
12016IFS=$as_save_IFS
12017
12018fi
12019fi
12020CC=$ac_cv_prog_CC
12021if test -n "$CC"; then
12022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12023$as_echo "$CC" >&6; }
12024else
12025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026$as_echo "no" >&6; }
12027fi
12028
12029
12030    test -n "$CC" && break
12031  done
12032fi
12033if test -z "$CC"; then
12034  ac_ct_CC=$CC
12035  for ac_prog in cl.exe
12036do
12037  # Extract the first word of "$ac_prog", so it can be a program name with args.
12038set dummy $ac_prog; ac_word=$2
12039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12040$as_echo_n "checking for $ac_word... " >&6; }
12041if ${ac_cv_prog_ac_ct_CC+:} false; then :
12042  $as_echo_n "(cached) " >&6
12043else
12044  if test -n "$ac_ct_CC"; then
12045  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12046else
12047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048for as_dir in $PATH
12049do
12050  IFS=$as_save_IFS
12051  test -z "$as_dir" && as_dir=.
12052    for ac_exec_ext in '' $ac_executable_extensions; do
12053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12054    ac_cv_prog_ac_ct_CC="$ac_prog"
12055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12056    break 2
12057  fi
12058done
12059  done
12060IFS=$as_save_IFS
12061
12062fi
12063fi
12064ac_ct_CC=$ac_cv_prog_ac_ct_CC
12065if test -n "$ac_ct_CC"; then
12066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12067$as_echo "$ac_ct_CC" >&6; }
12068else
12069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070$as_echo "no" >&6; }
12071fi
12072
12073
12074  test -n "$ac_ct_CC" && break
12075done
12076
12077  if test "x$ac_ct_CC" = x; then
12078    CC=""
12079  else
12080    case $cross_compiling:$ac_tool_warned in
12081yes:)
12082{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12084ac_tool_warned=yes ;;
12085esac
12086    CC=$ac_ct_CC
12087  fi
12088fi
12089
12090fi
12091
12092
12093test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12095as_fn_error $? "no acceptable C compiler found in \$PATH
12096See \`config.log' for more details" "$LINENO" 5; }
12097
12098# Provide some information about the compiler.
12099$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12100set X $ac_compile
12101ac_compiler=$2
12102for ac_option in --version -v -V -qversion; do
12103  { { ac_try="$ac_compiler $ac_option >&5"
12104case "(($ac_try" in
12105  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12106  *) ac_try_echo=$ac_try;;
12107esac
12108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12109$as_echo "$ac_try_echo"; } >&5
12110  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12111  ac_status=$?
12112  if test -s conftest.err; then
12113    sed '10a\
12114... rest of stderr output deleted ...
12115         10q' conftest.err >conftest.er1
12116    cat conftest.er1 >&5
12117  fi
12118  rm -f conftest.er1 conftest.err
12119  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12120  test $ac_status = 0; }
12121done
12122
12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12124$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12125if ${ac_cv_c_compiler_gnu+:} false; then :
12126  $as_echo_n "(cached) " >&6
12127else
12128  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12129/* end confdefs.h.  */
12130
12131int
12132main ()
12133{
12134#ifndef __GNUC__
12135       choke me
12136#endif
12137
12138  ;
12139  return 0;
12140}
12141_ACEOF
12142if ac_fn_c_try_compile "$LINENO"; then :
12143  ac_compiler_gnu=yes
12144else
12145  ac_compiler_gnu=no
12146fi
12147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12148ac_cv_c_compiler_gnu=$ac_compiler_gnu
12149
12150fi
12151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12152$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12153if test $ac_compiler_gnu = yes; then
12154  GCC=yes
12155else
12156  GCC=
12157fi
12158ac_test_CFLAGS=${CFLAGS+set}
12159ac_save_CFLAGS=$CFLAGS
12160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12161$as_echo_n "checking whether $CC accepts -g... " >&6; }
12162if ${ac_cv_prog_cc_g+:} false; then :
12163  $as_echo_n "(cached) " >&6
12164else
12165  ac_save_c_werror_flag=$ac_c_werror_flag
12166   ac_c_werror_flag=yes
12167   ac_cv_prog_cc_g=no
12168   CFLAGS="-g"
12169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12170/* end confdefs.h.  */
12171
12172int
12173main ()
12174{
12175
12176  ;
12177  return 0;
12178}
12179_ACEOF
12180if ac_fn_c_try_compile "$LINENO"; then :
12181  ac_cv_prog_cc_g=yes
12182else
12183  CFLAGS=""
12184      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185/* end confdefs.h.  */
12186
12187int
12188main ()
12189{
12190
12191  ;
12192  return 0;
12193}
12194_ACEOF
12195if ac_fn_c_try_compile "$LINENO"; then :
12196
12197else
12198  ac_c_werror_flag=$ac_save_c_werror_flag
12199	 CFLAGS="-g"
12200	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201/* end confdefs.h.  */
12202
12203int
12204main ()
12205{
12206
12207  ;
12208  return 0;
12209}
12210_ACEOF
12211if ac_fn_c_try_compile "$LINENO"; then :
12212  ac_cv_prog_cc_g=yes
12213fi
12214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215fi
12216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217fi
12218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219   ac_c_werror_flag=$ac_save_c_werror_flag
12220fi
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12222$as_echo "$ac_cv_prog_cc_g" >&6; }
12223if test "$ac_test_CFLAGS" = set; then
12224  CFLAGS=$ac_save_CFLAGS
12225elif test $ac_cv_prog_cc_g = yes; then
12226  if test "$GCC" = yes; then
12227    CFLAGS="-g -O2"
12228  else
12229    CFLAGS="-g"
12230  fi
12231else
12232  if test "$GCC" = yes; then
12233    CFLAGS="-O2"
12234  else
12235    CFLAGS=
12236  fi
12237fi
12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12239$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12240if ${ac_cv_prog_cc_c89+:} false; then :
12241  $as_echo_n "(cached) " >&6
12242else
12243  ac_cv_prog_cc_c89=no
12244ac_save_CC=$CC
12245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246/* end confdefs.h.  */
12247#include <stdarg.h>
12248#include <stdio.h>
12249struct stat;
12250/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12251struct buf { int x; };
12252FILE * (*rcsopen) (struct buf *, struct stat *, int);
12253static char *e (p, i)
12254     char **p;
12255     int i;
12256{
12257  return p[i];
12258}
12259static char *f (char * (*g) (char **, int), char **p, ...)
12260{
12261  char *s;
12262  va_list v;
12263  va_start (v,p);
12264  s = g (p, va_arg (v,int));
12265  va_end (v);
12266  return s;
12267}
12268
12269/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12270   function prototypes and stuff, but not '\xHH' hex character constants.
12271   These don't provoke an error unfortunately, instead are silently treated
12272   as 'x'.  The following induces an error, until -std is added to get
12273   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12274   array size at least.  It's necessary to write '\x00'==0 to get something
12275   that's true only with -std.  */
12276int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12277
12278/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12279   inside strings and character constants.  */
12280#define FOO(x) 'x'
12281int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12282
12283int test (int i, double x);
12284struct s1 {int (*f) (int a);};
12285struct s2 {int (*f) (double a);};
12286int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12287int argc;
12288char **argv;
12289int
12290main ()
12291{
12292return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12293  ;
12294  return 0;
12295}
12296_ACEOF
12297for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12298	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12299do
12300  CC="$ac_save_CC $ac_arg"
12301  if ac_fn_c_try_compile "$LINENO"; then :
12302  ac_cv_prog_cc_c89=$ac_arg
12303fi
12304rm -f core conftest.err conftest.$ac_objext
12305  test "x$ac_cv_prog_cc_c89" != "xno" && break
12306done
12307rm -f conftest.$ac_ext
12308CC=$ac_save_CC
12309
12310fi
12311# AC_CACHE_VAL
12312case "x$ac_cv_prog_cc_c89" in
12313  x)
12314    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12315$as_echo "none needed" >&6; } ;;
12316  xno)
12317    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12318$as_echo "unsupported" >&6; } ;;
12319  *)
12320    CC="$CC $ac_cv_prog_cc_c89"
12321    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12322$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12323esac
12324if test "x$ac_cv_prog_cc_c89" != xno; then :
12325
12326fi
12327
12328ac_ext=c
12329ac_cpp='$CPP $CPPFLAGS'
12330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12332ac_compiler_gnu=$ac_cv_c_compiler_gnu
12333
12334depcc="$CC"   am_compiler_list=
12335
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12337$as_echo_n "checking dependency style of $depcc... " >&6; }
12338if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12339  $as_echo_n "(cached) " >&6
12340else
12341  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12342  # We make a subdir and do the tests there.  Otherwise we can end up
12343  # making bogus files that we don't know about and never remove.  For
12344  # instance it was reported that on HP-UX the gcc test will end up
12345  # making a dummy file named 'D' -- because '-MD' means "put the output
12346  # in D".
12347  rm -rf conftest.dir
12348  mkdir conftest.dir
12349  # Copy depcomp to subdir because otherwise we won't find it if we're
12350  # using a relative directory.
12351  cp "$am_depcomp" conftest.dir
12352  cd conftest.dir
12353  # We will build objects and dependencies in a subdirectory because
12354  # it helps to detect inapplicable dependency modes.  For instance
12355  # both Tru64's cc and ICC support -MD to output dependencies as a
12356  # side effect of compilation, but ICC will put the dependencies in
12357  # the current directory while Tru64 will put them in the object
12358  # directory.
12359  mkdir sub
12360
12361  am_cv_CC_dependencies_compiler_type=none
12362  if test "$am_compiler_list" = ""; then
12363     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12364  fi
12365  am__universal=false
12366  case " $depcc " in #(
12367     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12368     esac
12369
12370  for depmode in $am_compiler_list; do
12371    # Setup a source with many dependencies, because some compilers
12372    # like to wrap large dependency lists on column 80 (with \), and
12373    # we should not choose a depcomp mode which is confused by this.
12374    #
12375    # We need to recreate these files for each test, as the compiler may
12376    # overwrite some of them when testing with obscure command lines.
12377    # This happens at least with the AIX C compiler.
12378    : > sub/conftest.c
12379    for i in 1 2 3 4 5 6; do
12380      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12381      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12382      # Solaris 10 /bin/sh.
12383      echo '/* dummy */' > sub/conftst$i.h
12384    done
12385    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12386
12387    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12388    # mode.  It turns out that the SunPro C++ compiler does not properly
12389    # handle '-M -o', and we need to detect this.  Also, some Intel
12390    # versions had trouble with output in subdirs.
12391    am__obj=sub/conftest.${OBJEXT-o}
12392    am__minus_obj="-o $am__obj"
12393    case $depmode in
12394    gcc)
12395      # This depmode causes a compiler race in universal mode.
12396      test "$am__universal" = false || continue
12397      ;;
12398    nosideeffect)
12399      # After this tag, mechanisms are not by side-effect, so they'll
12400      # only be used when explicitly requested.
12401      if test "x$enable_dependency_tracking" = xyes; then
12402	continue
12403      else
12404	break
12405      fi
12406      ;;
12407    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12408      # This compiler won't grok '-c -o', but also, the minuso test has
12409      # not run yet.  These depmodes are late enough in the game, and
12410      # so weak that their functioning should not be impacted.
12411      am__obj=conftest.${OBJEXT-o}
12412      am__minus_obj=
12413      ;;
12414    none) break ;;
12415    esac
12416    if depmode=$depmode \
12417       source=sub/conftest.c object=$am__obj \
12418       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12419       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12420         >/dev/null 2>conftest.err &&
12421       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12422       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12423       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12424       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12425      # icc doesn't choke on unknown options, it will just issue warnings
12426      # or remarks (even with -Werror).  So we grep stderr for any message
12427      # that says an option was ignored or not supported.
12428      # When given -MP, icc 7.0 and 7.1 complain thusly:
12429      #   icc: Command line warning: ignoring option '-M'; no argument required
12430      # The diagnosis changed in icc 8.0:
12431      #   icc: Command line remark: option '-MP' not supported
12432      if (grep 'ignoring option' conftest.err ||
12433          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12434        am_cv_CC_dependencies_compiler_type=$depmode
12435        break
12436      fi
12437    fi
12438  done
12439
12440  cd ..
12441  rm -rf conftest.dir
12442else
12443  am_cv_CC_dependencies_compiler_type=none
12444fi
12445
12446fi
12447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12448$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12449CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12450
12451 if
12452  test "x$enable_dependency_tracking" != xno \
12453  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12454  am__fastdepCC_TRUE=
12455  am__fastdepCC_FALSE='#'
12456else
12457  am__fastdepCC_TRUE='#'
12458  am__fastdepCC_FALSE=
12459fi
12460
12461
12462
12463# automake 1.9 could use AM_PROG_STDC but 1.10 became picky and needs CC_C_0
12464if test "x$CC" != xcc; then
12465  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12466$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12467else
12468  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12469$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12470fi
12471set dummy $CC; ac_cc=`$as_echo "$2" |
12472		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12473if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12474  $as_echo_n "(cached) " >&6
12475else
12476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477/* end confdefs.h.  */
12478
12479int
12480main ()
12481{
12482
12483  ;
12484  return 0;
12485}
12486_ACEOF
12487# Make sure it works both with $CC and with simple cc.
12488# We do the test twice because some compilers refuse to overwrite an
12489# existing .o file with -o, though they will create one.
12490ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12491rm -f conftest2.*
12492if { { case "(($ac_try" in
12493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494  *) ac_try_echo=$ac_try;;
12495esac
12496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12497$as_echo "$ac_try_echo"; } >&5
12498  (eval "$ac_try") 2>&5
12499  ac_status=$?
12500  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12501  test $ac_status = 0; } &&
12502   test -f conftest2.$ac_objext && { { case "(($ac_try" in
12503  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504  *) ac_try_echo=$ac_try;;
12505esac
12506eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12507$as_echo "$ac_try_echo"; } >&5
12508  (eval "$ac_try") 2>&5
12509  ac_status=$?
12510  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12511  test $ac_status = 0; };
12512then
12513  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12514  if test "x$CC" != xcc; then
12515    # Test first that cc exists at all.
12516    if { ac_try='cc -c conftest.$ac_ext >&5'
12517  { { case "(($ac_try" in
12518  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519  *) ac_try_echo=$ac_try;;
12520esac
12521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12522$as_echo "$ac_try_echo"; } >&5
12523  (eval "$ac_try") 2>&5
12524  ac_status=$?
12525  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12526  test $ac_status = 0; }; }; then
12527      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12528      rm -f conftest2.*
12529      if { { case "(($ac_try" in
12530  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531  *) ac_try_echo=$ac_try;;
12532esac
12533eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12534$as_echo "$ac_try_echo"; } >&5
12535  (eval "$ac_try") 2>&5
12536  ac_status=$?
12537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12538  test $ac_status = 0; } &&
12539	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12541  *) ac_try_echo=$ac_try;;
12542esac
12543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12544$as_echo "$ac_try_echo"; } >&5
12545  (eval "$ac_try") 2>&5
12546  ac_status=$?
12547  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12548  test $ac_status = 0; };
12549      then
12550	# cc works too.
12551	:
12552      else
12553	# cc exists but doesn't like -o.
12554	eval ac_cv_prog_cc_${ac_cc}_c_o=no
12555      fi
12556    fi
12557  fi
12558else
12559  eval ac_cv_prog_cc_${ac_cc}_c_o=no
12560fi
12561rm -f core conftest*
12562
12563fi
12564if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12566$as_echo "yes" >&6; }
12567else
12568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569$as_echo "no" >&6; }
12570
12571$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12572
12573fi
12574
12575# FIXME: we rely on the cache variable name because
12576# there is no other way.
12577set dummy $CC
12578am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12579eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12580if test "$am_t" != yes; then
12581   # Losing compiler, so override with the script.
12582   # FIXME: It is wrong to rewrite CC.
12583   # But if we don't then we get into trouble of one sort or another.
12584   # A longer-term fix would be to have automake use am__CC in this case,
12585   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12586   CC="$am_aux_dir/compile $CC"
12587fi
12588
12589
12590# AM_PROG_CC_STDC
12591
12592ac_ext=cpp
12593ac_cpp='$CXXCPP $CPPFLAGS'
12594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12597if test -z "$CXX"; then
12598  if test -n "$CCC"; then
12599    CXX=$CCC
12600  else
12601    if test -n "$ac_tool_prefix"; then
12602  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12603  do
12604    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12605set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12607$as_echo_n "checking for $ac_word... " >&6; }
12608if ${ac_cv_prog_CXX+:} false; then :
12609  $as_echo_n "(cached) " >&6
12610else
12611  if test -n "$CXX"; then
12612  ac_cv_prog_CXX="$CXX" # Let the user override the test.
12613else
12614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12615for as_dir in $PATH
12616do
12617  IFS=$as_save_IFS
12618  test -z "$as_dir" && as_dir=.
12619    for ac_exec_ext in '' $ac_executable_extensions; do
12620  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12621    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12622    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12623    break 2
12624  fi
12625done
12626  done
12627IFS=$as_save_IFS
12628
12629fi
12630fi
12631CXX=$ac_cv_prog_CXX
12632if test -n "$CXX"; then
12633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12634$as_echo "$CXX" >&6; }
12635else
12636  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12637$as_echo "no" >&6; }
12638fi
12639
12640
12641    test -n "$CXX" && break
12642  done
12643fi
12644if test -z "$CXX"; then
12645  ac_ct_CXX=$CXX
12646  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12647do
12648  # Extract the first word of "$ac_prog", so it can be a program name with args.
12649set dummy $ac_prog; ac_word=$2
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12651$as_echo_n "checking for $ac_word... " >&6; }
12652if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12653  $as_echo_n "(cached) " >&6
12654else
12655  if test -n "$ac_ct_CXX"; then
12656  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12657else
12658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12659for as_dir in $PATH
12660do
12661  IFS=$as_save_IFS
12662  test -z "$as_dir" && as_dir=.
12663    for ac_exec_ext in '' $ac_executable_extensions; do
12664  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12665    ac_cv_prog_ac_ct_CXX="$ac_prog"
12666    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12667    break 2
12668  fi
12669done
12670  done
12671IFS=$as_save_IFS
12672
12673fi
12674fi
12675ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12676if test -n "$ac_ct_CXX"; then
12677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12678$as_echo "$ac_ct_CXX" >&6; }
12679else
12680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681$as_echo "no" >&6; }
12682fi
12683
12684
12685  test -n "$ac_ct_CXX" && break
12686done
12687
12688  if test "x$ac_ct_CXX" = x; then
12689    CXX="g++"
12690  else
12691    case $cross_compiling:$ac_tool_warned in
12692yes:)
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12695ac_tool_warned=yes ;;
12696esac
12697    CXX=$ac_ct_CXX
12698  fi
12699fi
12700
12701  fi
12702fi
12703# Provide some information about the compiler.
12704$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12705set X $ac_compile
12706ac_compiler=$2
12707for ac_option in --version -v -V -qversion; do
12708  { { ac_try="$ac_compiler $ac_option >&5"
12709case "(($ac_try" in
12710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711  *) ac_try_echo=$ac_try;;
12712esac
12713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12714$as_echo "$ac_try_echo"; } >&5
12715  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12716  ac_status=$?
12717  if test -s conftest.err; then
12718    sed '10a\
12719... rest of stderr output deleted ...
12720         10q' conftest.err >conftest.er1
12721    cat conftest.er1 >&5
12722  fi
12723  rm -f conftest.er1 conftest.err
12724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12725  test $ac_status = 0; }
12726done
12727
12728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12729$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12730if ${ac_cv_cxx_compiler_gnu+:} false; then :
12731  $as_echo_n "(cached) " >&6
12732else
12733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734/* end confdefs.h.  */
12735
12736int
12737main ()
12738{
12739#ifndef __GNUC__
12740       choke me
12741#endif
12742
12743  ;
12744  return 0;
12745}
12746_ACEOF
12747if ac_fn_cxx_try_compile "$LINENO"; then :
12748  ac_compiler_gnu=yes
12749else
12750  ac_compiler_gnu=no
12751fi
12752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12754
12755fi
12756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12757$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12758if test $ac_compiler_gnu = yes; then
12759  GXX=yes
12760else
12761  GXX=
12762fi
12763ac_test_CXXFLAGS=${CXXFLAGS+set}
12764ac_save_CXXFLAGS=$CXXFLAGS
12765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12766$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12767if ${ac_cv_prog_cxx_g+:} false; then :
12768  $as_echo_n "(cached) " >&6
12769else
12770  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12771   ac_cxx_werror_flag=yes
12772   ac_cv_prog_cxx_g=no
12773   CXXFLAGS="-g"
12774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775/* end confdefs.h.  */
12776
12777int
12778main ()
12779{
12780
12781  ;
12782  return 0;
12783}
12784_ACEOF
12785if ac_fn_cxx_try_compile "$LINENO"; then :
12786  ac_cv_prog_cxx_g=yes
12787else
12788  CXXFLAGS=""
12789      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790/* end confdefs.h.  */
12791
12792int
12793main ()
12794{
12795
12796  ;
12797  return 0;
12798}
12799_ACEOF
12800if ac_fn_cxx_try_compile "$LINENO"; then :
12801
12802else
12803  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12804	 CXXFLAGS="-g"
12805	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806/* end confdefs.h.  */
12807
12808int
12809main ()
12810{
12811
12812  ;
12813  return 0;
12814}
12815_ACEOF
12816if ac_fn_cxx_try_compile "$LINENO"; then :
12817  ac_cv_prog_cxx_g=yes
12818fi
12819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820fi
12821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822fi
12823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12825fi
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12827$as_echo "$ac_cv_prog_cxx_g" >&6; }
12828if test "$ac_test_CXXFLAGS" = set; then
12829  CXXFLAGS=$ac_save_CXXFLAGS
12830elif test $ac_cv_prog_cxx_g = yes; then
12831  if test "$GXX" = yes; then
12832    CXXFLAGS="-g -O2"
12833  else
12834    CXXFLAGS="-g"
12835  fi
12836else
12837  if test "$GXX" = yes; then
12838    CXXFLAGS="-O2"
12839  else
12840    CXXFLAGS=
12841  fi
12842fi
12843ac_ext=c
12844ac_cpp='$CPP $CPPFLAGS'
12845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12847ac_compiler_gnu=$ac_cv_c_compiler_gnu
12848
12849depcc="$CXX"  am_compiler_list=
12850
12851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12852$as_echo_n "checking dependency style of $depcc... " >&6; }
12853if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12854  $as_echo_n "(cached) " >&6
12855else
12856  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12857  # We make a subdir and do the tests there.  Otherwise we can end up
12858  # making bogus files that we don't know about and never remove.  For
12859  # instance it was reported that on HP-UX the gcc test will end up
12860  # making a dummy file named 'D' -- because '-MD' means "put the output
12861  # in D".
12862  rm -rf conftest.dir
12863  mkdir conftest.dir
12864  # Copy depcomp to subdir because otherwise we won't find it if we're
12865  # using a relative directory.
12866  cp "$am_depcomp" conftest.dir
12867  cd conftest.dir
12868  # We will build objects and dependencies in a subdirectory because
12869  # it helps to detect inapplicable dependency modes.  For instance
12870  # both Tru64's cc and ICC support -MD to output dependencies as a
12871  # side effect of compilation, but ICC will put the dependencies in
12872  # the current directory while Tru64 will put them in the object
12873  # directory.
12874  mkdir sub
12875
12876  am_cv_CXX_dependencies_compiler_type=none
12877  if test "$am_compiler_list" = ""; then
12878     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12879  fi
12880  am__universal=false
12881  case " $depcc " in #(
12882     *\ -arch\ *\ -arch\ *) am__universal=true ;;
12883     esac
12884
12885  for depmode in $am_compiler_list; do
12886    # Setup a source with many dependencies, because some compilers
12887    # like to wrap large dependency lists on column 80 (with \), and
12888    # we should not choose a depcomp mode which is confused by this.
12889    #
12890    # We need to recreate these files for each test, as the compiler may
12891    # overwrite some of them when testing with obscure command lines.
12892    # This happens at least with the AIX C compiler.
12893    : > sub/conftest.c
12894    for i in 1 2 3 4 5 6; do
12895      echo '#include "conftst'$i'.h"' >> sub/conftest.c
12896      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12897      # Solaris 10 /bin/sh.
12898      echo '/* dummy */' > sub/conftst$i.h
12899    done
12900    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12901
12902    # We check with '-c' and '-o' for the sake of the "dashmstdout"
12903    # mode.  It turns out that the SunPro C++ compiler does not properly
12904    # handle '-M -o', and we need to detect this.  Also, some Intel
12905    # versions had trouble with output in subdirs.
12906    am__obj=sub/conftest.${OBJEXT-o}
12907    am__minus_obj="-o $am__obj"
12908    case $depmode in
12909    gcc)
12910      # This depmode causes a compiler race in universal mode.
12911      test "$am__universal" = false || continue
12912      ;;
12913    nosideeffect)
12914      # After this tag, mechanisms are not by side-effect, so they'll
12915      # only be used when explicitly requested.
12916      if test "x$enable_dependency_tracking" = xyes; then
12917	continue
12918      else
12919	break
12920      fi
12921      ;;
12922    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12923      # This compiler won't grok '-c -o', but also, the minuso test has
12924      # not run yet.  These depmodes are late enough in the game, and
12925      # so weak that their functioning should not be impacted.
12926      am__obj=conftest.${OBJEXT-o}
12927      am__minus_obj=
12928      ;;
12929    none) break ;;
12930    esac
12931    if depmode=$depmode \
12932       source=sub/conftest.c object=$am__obj \
12933       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12934       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12935         >/dev/null 2>conftest.err &&
12936       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12937       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12938       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12939       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12940      # icc doesn't choke on unknown options, it will just issue warnings
12941      # or remarks (even with -Werror).  So we grep stderr for any message
12942      # that says an option was ignored or not supported.
12943      # When given -MP, icc 7.0 and 7.1 complain thusly:
12944      #   icc: Command line warning: ignoring option '-M'; no argument required
12945      # The diagnosis changed in icc 8.0:
12946      #   icc: Command line remark: option '-MP' not supported
12947      if (grep 'ignoring option' conftest.err ||
12948          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12949        am_cv_CXX_dependencies_compiler_type=$depmode
12950        break
12951      fi
12952    fi
12953  done
12954
12955  cd ..
12956  rm -rf conftest.dir
12957else
12958  am_cv_CXX_dependencies_compiler_type=none
12959fi
12960
12961fi
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12963$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12964CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12965
12966 if
12967  test "x$enable_dependency_tracking" != xno \
12968  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12969  am__fastdepCXX_TRUE=
12970  am__fastdepCXX_FALSE='#'
12971else
12972  am__fastdepCXX_TRUE='#'
12973  am__fastdepCXX_FALSE=
12974fi
12975
12976
12977
12978
12979func_stripname_cnf ()
12980{
12981  case ${2} in
12982  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12983  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12984  esac
12985} # func_stripname_cnf
12986
12987      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12988    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12989    (test "X$CXX" != "Xg++"))) ; then
12990  ac_ext=cpp
12991ac_cpp='$CXXCPP $CPPFLAGS'
12992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12996$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12997if test -z "$CXXCPP"; then
12998  if ${ac_cv_prog_CXXCPP+:} false; then :
12999  $as_echo_n "(cached) " >&6
13000else
13001      # Double quotes because CXXCPP needs to be expanded
13002    for CXXCPP in "$CXX -E" "/lib/cpp"
13003    do
13004      ac_preproc_ok=false
13005for ac_cxx_preproc_warn_flag in '' yes
13006do
13007  # Use a header file that comes with gcc, so configuring glibc
13008  # with a fresh cross-compiler works.
13009  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13010  # <limits.h> exists even on freestanding compilers.
13011  # On the NeXT, cc -E runs the code through the compiler's parser,
13012  # not just through cpp. "Syntax error" is here to catch this case.
13013  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014/* end confdefs.h.  */
13015#ifdef __STDC__
13016# include <limits.h>
13017#else
13018# include <assert.h>
13019#endif
13020		     Syntax error
13021_ACEOF
13022if ac_fn_cxx_try_cpp "$LINENO"; then :
13023
13024else
13025  # Broken: fails on valid input.
13026continue
13027fi
13028rm -f conftest.err conftest.i conftest.$ac_ext
13029
13030  # OK, works on sane cases.  Now check whether nonexistent headers
13031  # can be detected and how.
13032  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13033/* end confdefs.h.  */
13034#include <ac_nonexistent.h>
13035_ACEOF
13036if ac_fn_cxx_try_cpp "$LINENO"; then :
13037  # Broken: success on invalid input.
13038continue
13039else
13040  # Passes both tests.
13041ac_preproc_ok=:
13042break
13043fi
13044rm -f conftest.err conftest.i conftest.$ac_ext
13045
13046done
13047# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13048rm -f conftest.i conftest.err conftest.$ac_ext
13049if $ac_preproc_ok; then :
13050  break
13051fi
13052
13053    done
13054    ac_cv_prog_CXXCPP=$CXXCPP
13055
13056fi
13057  CXXCPP=$ac_cv_prog_CXXCPP
13058else
13059  ac_cv_prog_CXXCPP=$CXXCPP
13060fi
13061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13062$as_echo "$CXXCPP" >&6; }
13063ac_preproc_ok=false
13064for ac_cxx_preproc_warn_flag in '' yes
13065do
13066  # Use a header file that comes with gcc, so configuring glibc
13067  # with a fresh cross-compiler works.
13068  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13069  # <limits.h> exists even on freestanding compilers.
13070  # On the NeXT, cc -E runs the code through the compiler's parser,
13071  # not just through cpp. "Syntax error" is here to catch this case.
13072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13073/* end confdefs.h.  */
13074#ifdef __STDC__
13075# include <limits.h>
13076#else
13077# include <assert.h>
13078#endif
13079		     Syntax error
13080_ACEOF
13081if ac_fn_cxx_try_cpp "$LINENO"; then :
13082
13083else
13084  # Broken: fails on valid input.
13085continue
13086fi
13087rm -f conftest.err conftest.i conftest.$ac_ext
13088
13089  # OK, works on sane cases.  Now check whether nonexistent headers
13090  # can be detected and how.
13091  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092/* end confdefs.h.  */
13093#include <ac_nonexistent.h>
13094_ACEOF
13095if ac_fn_cxx_try_cpp "$LINENO"; then :
13096  # Broken: success on invalid input.
13097continue
13098else
13099  # Passes both tests.
13100ac_preproc_ok=:
13101break
13102fi
13103rm -f conftest.err conftest.i conftest.$ac_ext
13104
13105done
13106# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13107rm -f conftest.i conftest.err conftest.$ac_ext
13108if $ac_preproc_ok; then :
13109
13110else
13111  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13113as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13114See \`config.log' for more details" "$LINENO" 5; }
13115fi
13116
13117ac_ext=c
13118ac_cpp='$CPP $CPPFLAGS'
13119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13121ac_compiler_gnu=$ac_cv_c_compiler_gnu
13122
13123else
13124  _lt_caught_CXX_error=yes
13125fi
13126
13127ac_ext=cpp
13128ac_cpp='$CXXCPP $CPPFLAGS'
13129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13132
13133archive_cmds_need_lc_CXX=no
13134allow_undefined_flag_CXX=
13135always_export_symbols_CXX=no
13136archive_expsym_cmds_CXX=
13137compiler_needs_object_CXX=no
13138export_dynamic_flag_spec_CXX=
13139hardcode_direct_CXX=no
13140hardcode_direct_absolute_CXX=no
13141hardcode_libdir_flag_spec_CXX=
13142hardcode_libdir_separator_CXX=
13143hardcode_minus_L_CXX=no
13144hardcode_shlibpath_var_CXX=unsupported
13145hardcode_automatic_CXX=no
13146inherit_rpath_CXX=no
13147module_cmds_CXX=
13148module_expsym_cmds_CXX=
13149link_all_deplibs_CXX=unknown
13150old_archive_cmds_CXX=$old_archive_cmds
13151reload_flag_CXX=$reload_flag
13152reload_cmds_CXX=$reload_cmds
13153no_undefined_flag_CXX=
13154whole_archive_flag_spec_CXX=
13155enable_shared_with_static_runtimes_CXX=no
13156
13157# Source file extension for C++ test sources.
13158ac_ext=cpp
13159
13160# Object file extension for compiled C++ test sources.
13161objext=o
13162objext_CXX=$objext
13163
13164# No sense in running all these tests if we already determined that
13165# the CXX compiler isn't working.  Some variables (like enable_shared)
13166# are currently assumed to apply to all compilers on this platform,
13167# and will be corrupted by setting them based on a non-working compiler.
13168if test "$_lt_caught_CXX_error" != yes; then
13169  # Code to be used in simple compile tests
13170  lt_simple_compile_test_code="int some_variable = 0;"
13171
13172  # Code to be used in simple link tests
13173  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13174
13175  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13176
13177
13178
13179
13180
13181
13182# If no C compiler was specified, use CC.
13183LTCC=${LTCC-"$CC"}
13184
13185# If no C compiler flags were specified, use CFLAGS.
13186LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13187
13188# Allow CC to be a program name with arguments.
13189compiler=$CC
13190
13191
13192  # save warnings/boilerplate of simple test code
13193  ac_outfile=conftest.$ac_objext
13194echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13195eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13196_lt_compiler_boilerplate=`cat conftest.err`
13197$RM conftest*
13198
13199  ac_outfile=conftest.$ac_objext
13200echo "$lt_simple_link_test_code" >conftest.$ac_ext
13201eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13202_lt_linker_boilerplate=`cat conftest.err`
13203$RM -r conftest*
13204
13205
13206  # Allow CC to be a program name with arguments.
13207  lt_save_CC=$CC
13208  lt_save_CFLAGS=$CFLAGS
13209  lt_save_LD=$LD
13210  lt_save_GCC=$GCC
13211  GCC=$GXX
13212  lt_save_with_gnu_ld=$with_gnu_ld
13213  lt_save_path_LD=$lt_cv_path_LD
13214  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13215    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13216  else
13217    $as_unset lt_cv_prog_gnu_ld
13218  fi
13219  if test -n "${lt_cv_path_LDCXX+set}"; then
13220    lt_cv_path_LD=$lt_cv_path_LDCXX
13221  else
13222    $as_unset lt_cv_path_LD
13223  fi
13224  test -z "${LDCXX+set}" || LD=$LDCXX
13225  CC=${CXX-"c++"}
13226  CFLAGS=$CXXFLAGS
13227  compiler=$CC
13228  compiler_CXX=$CC
13229  for cc_temp in $compiler""; do
13230  case $cc_temp in
13231    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13232    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13233    \-*) ;;
13234    *) break;;
13235  esac
13236done
13237cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13238
13239
13240  if test -n "$compiler"; then
13241    # We don't want -fno-exception when compiling C++ code, so set the
13242    # no_builtin_flag separately
13243    if test "$GXX" = yes; then
13244      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13245    else
13246      lt_prog_compiler_no_builtin_flag_CXX=
13247    fi
13248
13249    if test "$GXX" = yes; then
13250      # Set up default GNU C++ configuration
13251
13252
13253
13254# Check whether --with-gnu-ld was given.
13255if test "${with_gnu_ld+set}" = set; then :
13256  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13257else
13258  with_gnu_ld=no
13259fi
13260
13261ac_prog=ld
13262if test "$GCC" = yes; then
13263  # Check if gcc -print-prog-name=ld gives a path.
13264  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13265$as_echo_n "checking for ld used by $CC... " >&6; }
13266  case $host in
13267  *-*-mingw*)
13268    # gcc leaves a trailing carriage return which upsets mingw
13269    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13270  *)
13271    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13272  esac
13273  case $ac_prog in
13274    # Accept absolute paths.
13275    [\\/]* | ?:[\\/]*)
13276      re_direlt='/[^/][^/]*/\.\./'
13277      # Canonicalize the pathname of ld
13278      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13279      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13280	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13281      done
13282      test -z "$LD" && LD="$ac_prog"
13283      ;;
13284  "")
13285    # If it fails, then pretend we aren't using GCC.
13286    ac_prog=ld
13287    ;;
13288  *)
13289    # If it is relative, then search for the first ld in PATH.
13290    with_gnu_ld=unknown
13291    ;;
13292  esac
13293elif test "$with_gnu_ld" = yes; then
13294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13295$as_echo_n "checking for GNU ld... " >&6; }
13296else
13297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13298$as_echo_n "checking for non-GNU ld... " >&6; }
13299fi
13300if ${lt_cv_path_LD+:} false; then :
13301  $as_echo_n "(cached) " >&6
13302else
13303  if test -z "$LD"; then
13304  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13305  for ac_dir in $PATH; do
13306    IFS="$lt_save_ifs"
13307    test -z "$ac_dir" && ac_dir=.
13308    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13309      lt_cv_path_LD="$ac_dir/$ac_prog"
13310      # Check to see if the program is GNU ld.  I'd rather use --version,
13311      # but apparently some variants of GNU ld only accept -v.
13312      # Break only if it was the GNU/non-GNU ld that we prefer.
13313      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13314      *GNU* | *'with BFD'*)
13315	test "$with_gnu_ld" != no && break
13316	;;
13317      *)
13318	test "$with_gnu_ld" != yes && break
13319	;;
13320      esac
13321    fi
13322  done
13323  IFS="$lt_save_ifs"
13324else
13325  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13326fi
13327fi
13328
13329LD="$lt_cv_path_LD"
13330if test -n "$LD"; then
13331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13332$as_echo "$LD" >&6; }
13333else
13334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13335$as_echo "no" >&6; }
13336fi
13337test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13339$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13340if ${lt_cv_prog_gnu_ld+:} false; then :
13341  $as_echo_n "(cached) " >&6
13342else
13343  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13344case `$LD -v 2>&1 </dev/null` in
13345*GNU* | *'with BFD'*)
13346  lt_cv_prog_gnu_ld=yes
13347  ;;
13348*)
13349  lt_cv_prog_gnu_ld=no
13350  ;;
13351esac
13352fi
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13354$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13355with_gnu_ld=$lt_cv_prog_gnu_ld
13356
13357
13358
13359
13360
13361
13362
13363      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13364      # archiving commands below assume that GNU ld is being used.
13365      if test "$with_gnu_ld" = yes; then
13366        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13367        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13368
13369        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13370        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13371
13372        # If archive_cmds runs LD, not CC, wlarc should be empty
13373        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13374        #     investigate it a little bit more. (MM)
13375        wlarc='${wl}'
13376
13377        # ancient GNU ld didn't support --whole-archive et. al.
13378        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13379	  $GREP 'no-whole-archive' > /dev/null; then
13380          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13381        else
13382          whole_archive_flag_spec_CXX=
13383        fi
13384      else
13385        with_gnu_ld=no
13386        wlarc=
13387
13388        # A generic and very simple default shared library creation
13389        # command for GNU C++ for the case where it uses the native
13390        # linker, instead of GNU ld.  If possible, this setting should
13391        # overridden to take advantage of the native linker features on
13392        # the platform it is being used on.
13393        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13394      fi
13395
13396      # Commands to make compiler produce verbose output that lists
13397      # what "hidden" libraries, object files and flags are used when
13398      # linking a shared library.
13399      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13400
13401    else
13402      GXX=no
13403      with_gnu_ld=no
13404      wlarc=
13405    fi
13406
13407    # PORTME: fill in a description of your system's C++ link characteristics
13408    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13409$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13410    ld_shlibs_CXX=yes
13411    case $host_os in
13412      aix3*)
13413        # FIXME: insert proper C++ library support
13414        ld_shlibs_CXX=no
13415        ;;
13416      aix[4-9]*)
13417        if test "$host_cpu" = ia64; then
13418          # On IA64, the linker does run time linking by default, so we don't
13419          # have to do anything special.
13420          aix_use_runtimelinking=no
13421          exp_sym_flag='-Bexport'
13422          no_entry_flag=""
13423        else
13424          aix_use_runtimelinking=no
13425
13426          # Test if we are trying to use run time linking or normal
13427          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13428          # need to do runtime linking.
13429          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13430	    for ld_flag in $LDFLAGS; do
13431	      case $ld_flag in
13432	      *-brtl*)
13433	        aix_use_runtimelinking=yes
13434	        break
13435	        ;;
13436	      esac
13437	    done
13438	    ;;
13439          esac
13440
13441          exp_sym_flag='-bexport'
13442          no_entry_flag='-bnoentry'
13443        fi
13444
13445        # When large executables or shared objects are built, AIX ld can
13446        # have problems creating the table of contents.  If linking a library
13447        # or program results in "error TOC overflow" add -mminimal-toc to
13448        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13449        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13450
13451        archive_cmds_CXX=''
13452        hardcode_direct_CXX=yes
13453        hardcode_direct_absolute_CXX=yes
13454        hardcode_libdir_separator_CXX=':'
13455        link_all_deplibs_CXX=yes
13456        file_list_spec_CXX='${wl}-f,'
13457
13458        if test "$GXX" = yes; then
13459          case $host_os in aix4.[012]|aix4.[012].*)
13460          # We only want to do this on AIX 4.2 and lower, the check
13461          # below for broken collect2 doesn't work under 4.3+
13462	  collect2name=`${CC} -print-prog-name=collect2`
13463	  if test -f "$collect2name" &&
13464	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13465	  then
13466	    # We have reworked collect2
13467	    :
13468	  else
13469	    # We have old collect2
13470	    hardcode_direct_CXX=unsupported
13471	    # It fails to find uninstalled libraries when the uninstalled
13472	    # path is not listed in the libpath.  Setting hardcode_minus_L
13473	    # to unsupported forces relinking
13474	    hardcode_minus_L_CXX=yes
13475	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13476	    hardcode_libdir_separator_CXX=
13477	  fi
13478          esac
13479          shared_flag='-shared'
13480	  if test "$aix_use_runtimelinking" = yes; then
13481	    shared_flag="$shared_flag "'${wl}-G'
13482	  fi
13483        else
13484          # not using gcc
13485          if test "$host_cpu" = ia64; then
13486	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13487	  # chokes on -Wl,-G. The following line is correct:
13488	  shared_flag='-G'
13489          else
13490	    if test "$aix_use_runtimelinking" = yes; then
13491	      shared_flag='${wl}-G'
13492	    else
13493	      shared_flag='${wl}-bM:SRE'
13494	    fi
13495          fi
13496        fi
13497
13498        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13499        # It seems that -bexpall does not export symbols beginning with
13500        # underscore (_), so it is better to generate a list of symbols to
13501	# export.
13502        always_export_symbols_CXX=yes
13503        if test "$aix_use_runtimelinking" = yes; then
13504          # Warning - without using the other runtime loading flags (-brtl),
13505          # -berok will link without error, but may produce a broken library.
13506          allow_undefined_flag_CXX='-berok'
13507          # Determine the default libpath from the value encoded in an empty
13508          # executable.
13509          if test "${lt_cv_aix_libpath+set}" = set; then
13510  aix_libpath=$lt_cv_aix_libpath
13511else
13512  if ${lt_cv_aix_libpath__CXX+:} false; then :
13513  $as_echo_n "(cached) " >&6
13514else
13515  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516/* end confdefs.h.  */
13517
13518int
13519main ()
13520{
13521
13522  ;
13523  return 0;
13524}
13525_ACEOF
13526if ac_fn_cxx_try_link "$LINENO"; then :
13527
13528  lt_aix_libpath_sed='
13529      /Import File Strings/,/^$/ {
13530	  /^0/ {
13531	      s/^0  *\([^ ]*\) *$/\1/
13532	      p
13533	  }
13534      }'
13535  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13536  # Check for a 64-bit object if we didn't find anything.
13537  if test -z "$lt_cv_aix_libpath__CXX"; then
13538    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13539  fi
13540fi
13541rm -f core conftest.err conftest.$ac_objext \
13542    conftest$ac_exeext conftest.$ac_ext
13543  if test -z "$lt_cv_aix_libpath__CXX"; then
13544    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13545  fi
13546
13547fi
13548
13549  aix_libpath=$lt_cv_aix_libpath__CXX
13550fi
13551
13552          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13553
13554          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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13555        else
13556          if test "$host_cpu" = ia64; then
13557	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13558	    allow_undefined_flag_CXX="-z nodefs"
13559	    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"
13560          else
13561	    # Determine the default libpath from the value encoded in an
13562	    # empty executable.
13563	    if test "${lt_cv_aix_libpath+set}" = set; then
13564  aix_libpath=$lt_cv_aix_libpath
13565else
13566  if ${lt_cv_aix_libpath__CXX+:} false; then :
13567  $as_echo_n "(cached) " >&6
13568else
13569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570/* end confdefs.h.  */
13571
13572int
13573main ()
13574{
13575
13576  ;
13577  return 0;
13578}
13579_ACEOF
13580if ac_fn_cxx_try_link "$LINENO"; then :
13581
13582  lt_aix_libpath_sed='
13583      /Import File Strings/,/^$/ {
13584	  /^0/ {
13585	      s/^0  *\([^ ]*\) *$/\1/
13586	      p
13587	  }
13588      }'
13589  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13590  # Check for a 64-bit object if we didn't find anything.
13591  if test -z "$lt_cv_aix_libpath__CXX"; then
13592    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13593  fi
13594fi
13595rm -f core conftest.err conftest.$ac_objext \
13596    conftest$ac_exeext conftest.$ac_ext
13597  if test -z "$lt_cv_aix_libpath__CXX"; then
13598    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13599  fi
13600
13601fi
13602
13603  aix_libpath=$lt_cv_aix_libpath__CXX
13604fi
13605
13606	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13607	    # Warning - without using the other run time loading flags,
13608	    # -berok will link without error, but may produce a broken library.
13609	    no_undefined_flag_CXX=' ${wl}-bernotok'
13610	    allow_undefined_flag_CXX=' ${wl}-berok'
13611	    if test "$with_gnu_ld" = yes; then
13612	      # We only use this code for GNU lds that support --whole-archive.
13613	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13614	    else
13615	      # Exported symbols can be pulled into shared objects from archives
13616	      whole_archive_flag_spec_CXX='$convenience'
13617	    fi
13618	    archive_cmds_need_lc_CXX=yes
13619	    # This is similar to how AIX traditionally builds its shared
13620	    # libraries.
13621	    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'
13622          fi
13623        fi
13624        ;;
13625
13626      beos*)
13627	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13628	  allow_undefined_flag_CXX=unsupported
13629	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13630	  # support --undefined.  This deserves some investigation.  FIXME
13631	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13632	else
13633	  ld_shlibs_CXX=no
13634	fi
13635	;;
13636
13637      chorus*)
13638        case $cc_basename in
13639          *)
13640	  # FIXME: insert proper C++ library support
13641	  ld_shlibs_CXX=no
13642	  ;;
13643        esac
13644        ;;
13645
13646      cygwin* | mingw* | pw32* | cegcc*)
13647	case $GXX,$cc_basename in
13648	,cl* | no,cl*)
13649	  # Native MSVC
13650	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13651	  # no search path for DLLs.
13652	  hardcode_libdir_flag_spec_CXX=' '
13653	  allow_undefined_flag_CXX=unsupported
13654	  always_export_symbols_CXX=yes
13655	  file_list_spec_CXX='@'
13656	  # Tell ltmain to make .lib files, not .a files.
13657	  libext=lib
13658	  # Tell ltmain to make .dll files, not .so files.
13659	  shrext_cmds=".dll"
13660	  # FIXME: Setting linknames here is a bad hack.
13661	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13662	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13663	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13664	    else
13665	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13666	    fi~
13667	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13668	    linknames='
13669	  # The linker will not automatically build a static lib if we build a DLL.
13670	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13671	  enable_shared_with_static_runtimes_CXX=yes
13672	  # Don't use ranlib
13673	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13674	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13675	    lt_tool_outputfile="@TOOL_OUTPUT@"~
13676	    case $lt_outputfile in
13677	      *.exe|*.EXE) ;;
13678	      *)
13679		lt_outputfile="$lt_outputfile.exe"
13680		lt_tool_outputfile="$lt_tool_outputfile.exe"
13681		;;
13682	    esac~
13683	    func_to_tool_file "$lt_outputfile"~
13684	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13685	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13686	      $RM "$lt_outputfile.manifest";
13687	    fi'
13688	  ;;
13689	*)
13690	  # g++
13691	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13692	  # as there is no search path for DLLs.
13693	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13694	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13695	  allow_undefined_flag_CXX=unsupported
13696	  always_export_symbols_CXX=no
13697	  enable_shared_with_static_runtimes_CXX=yes
13698
13699	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13700	    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'
13701	    # If the export-symbols file already is a .def file (1st line
13702	    # is EXPORTS), use it as is; otherwise, prepend...
13703	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13704	      cp $export_symbols $output_objdir/$soname.def;
13705	    else
13706	      echo EXPORTS > $output_objdir/$soname.def;
13707	      cat $export_symbols >> $output_objdir/$soname.def;
13708	    fi~
13709	    $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'
13710	  else
13711	    ld_shlibs_CXX=no
13712	  fi
13713	  ;;
13714	esac
13715	;;
13716      darwin* | rhapsody*)
13717
13718
13719  archive_cmds_need_lc_CXX=no
13720  hardcode_direct_CXX=no
13721  hardcode_automatic_CXX=yes
13722  hardcode_shlibpath_var_CXX=unsupported
13723  if test "$lt_cv_ld_force_load" = "yes"; then
13724    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13725
13726  else
13727    whole_archive_flag_spec_CXX=''
13728  fi
13729  link_all_deplibs_CXX=yes
13730  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13731  case $cc_basename in
13732     ifort*) _lt_dar_can_shared=yes ;;
13733     *) _lt_dar_can_shared=$GCC ;;
13734  esac
13735  if test "$_lt_dar_can_shared" = "yes"; then
13736    output_verbose_link_cmd=func_echo_all
13737    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}"
13738    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13739    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}"
13740    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}"
13741       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13742      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}"
13743      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}"
13744    fi
13745
13746  else
13747  ld_shlibs_CXX=no
13748  fi
13749
13750	;;
13751
13752      dgux*)
13753        case $cc_basename in
13754          ec++*)
13755	    # FIXME: insert proper C++ library support
13756	    ld_shlibs_CXX=no
13757	    ;;
13758          ghcx*)
13759	    # Green Hills C++ Compiler
13760	    # FIXME: insert proper C++ library support
13761	    ld_shlibs_CXX=no
13762	    ;;
13763          *)
13764	    # FIXME: insert proper C++ library support
13765	    ld_shlibs_CXX=no
13766	    ;;
13767        esac
13768        ;;
13769
13770      freebsd2.*)
13771        # C++ shared libraries reported to be fairly broken before
13772	# switch to ELF
13773        ld_shlibs_CXX=no
13774        ;;
13775
13776      freebsd-elf*)
13777        archive_cmds_need_lc_CXX=no
13778        ;;
13779
13780      freebsd* | dragonfly*)
13781        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13782        # conventions
13783        ld_shlibs_CXX=yes
13784        ;;
13785
13786      gnu*)
13787        ;;
13788
13789      haiku*)
13790        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13791        link_all_deplibs_CXX=yes
13792        ;;
13793
13794      hpux9*)
13795        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13796        hardcode_libdir_separator_CXX=:
13797        export_dynamic_flag_spec_CXX='${wl}-E'
13798        hardcode_direct_CXX=yes
13799        hardcode_minus_L_CXX=yes # Not in the search PATH,
13800				             # but as the default
13801				             # location of the library.
13802
13803        case $cc_basename in
13804          CC*)
13805            # FIXME: insert proper C++ library support
13806            ld_shlibs_CXX=no
13807            ;;
13808          aCC*)
13809            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'
13810            # Commands to make compiler produce verbose output that lists
13811            # what "hidden" libraries, object files and flags are used when
13812            # linking a shared library.
13813            #
13814            # There doesn't appear to be a way to prevent this compiler from
13815            # explicitly linking system object files so we need to strip them
13816            # from the output so that they don't get included in the library
13817            # dependencies.
13818            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; func_echo_all "$list"'
13819            ;;
13820          *)
13821            if test "$GXX" = yes; then
13822              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
13823            else
13824              # FIXME: insert proper C++ library support
13825              ld_shlibs_CXX=no
13826            fi
13827            ;;
13828        esac
13829        ;;
13830
13831      hpux10*|hpux11*)
13832        if test $with_gnu_ld = no; then
13833	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13834	  hardcode_libdir_separator_CXX=:
13835
13836          case $host_cpu in
13837            hppa*64*|ia64*)
13838              ;;
13839            *)
13840	      export_dynamic_flag_spec_CXX='${wl}-E'
13841              ;;
13842          esac
13843        fi
13844        case $host_cpu in
13845          hppa*64*|ia64*)
13846            hardcode_direct_CXX=no
13847            hardcode_shlibpath_var_CXX=no
13848            ;;
13849          *)
13850            hardcode_direct_CXX=yes
13851            hardcode_direct_absolute_CXX=yes
13852            hardcode_minus_L_CXX=yes # Not in the search PATH,
13853					         # but as the default
13854					         # location of the library.
13855            ;;
13856        esac
13857
13858        case $cc_basename in
13859          CC*)
13860	    # FIXME: insert proper C++ library support
13861	    ld_shlibs_CXX=no
13862	    ;;
13863          aCC*)
13864	    case $host_cpu in
13865	      hppa*64*)
13866	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13867	        ;;
13868	      ia64*)
13869	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13870	        ;;
13871	      *)
13872	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13873	        ;;
13874	    esac
13875	    # Commands to make compiler produce verbose output that lists
13876	    # what "hidden" libraries, object files and flags are used when
13877	    # linking a shared library.
13878	    #
13879	    # There doesn't appear to be a way to prevent this compiler from
13880	    # explicitly linking system object files so we need to strip them
13881	    # from the output so that they don't get included in the library
13882	    # dependencies.
13883	    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; func_echo_all "$list"'
13884	    ;;
13885          *)
13886	    if test "$GXX" = yes; then
13887	      if test $with_gnu_ld = no; then
13888	        case $host_cpu in
13889	          hppa*64*)
13890	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13891	            ;;
13892	          ia64*)
13893	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13894	            ;;
13895	          *)
13896	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13897	            ;;
13898	        esac
13899	      fi
13900	    else
13901	      # FIXME: insert proper C++ library support
13902	      ld_shlibs_CXX=no
13903	    fi
13904	    ;;
13905        esac
13906        ;;
13907
13908      interix[3-9]*)
13909	hardcode_direct_CXX=no
13910	hardcode_shlibpath_var_CXX=no
13911	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13912	export_dynamic_flag_spec_CXX='${wl}-E'
13913	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13914	# Instead, shared libraries are loaded at an image base (0x10000000 by
13915	# default) and relocated if they conflict, which is a slow very memory
13916	# consuming and fragmenting process.  To avoid this, we pick a random,
13917	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13918	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13919	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'
13920	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'
13921	;;
13922      irix5* | irix6*)
13923        case $cc_basename in
13924          CC*)
13925	    # SGI C++
13926	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13927
13928	    # Archives containing C++ object files must be created using
13929	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13930	    # necessary to make sure instantiated templates are included
13931	    # in the archive.
13932	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13933	    ;;
13934          *)
13935	    if test "$GXX" = yes; then
13936	      if test "$with_gnu_ld" = no; then
13937	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13938	      else
13939	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13940	      fi
13941	    fi
13942	    link_all_deplibs_CXX=yes
13943	    ;;
13944        esac
13945        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13946        hardcode_libdir_separator_CXX=:
13947        inherit_rpath_CXX=yes
13948        ;;
13949
13950      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13951        case $cc_basename in
13952          KCC*)
13953	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13954
13955	    # KCC will only create a shared library if the output file
13956	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13957	    # to its proper name (with version) after linking.
13958	    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'
13959	    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'
13960	    # Commands to make compiler produce verbose output that lists
13961	    # what "hidden" libraries, object files and flags are used when
13962	    # linking a shared library.
13963	    #
13964	    # There doesn't appear to be a way to prevent this compiler from
13965	    # explicitly linking system object files so we need to strip them
13966	    # from the output so that they don't get included in the library
13967	    # dependencies.
13968	    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; func_echo_all "$list"'
13969
13970	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13971	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13972
13973	    # Archives containing C++ object files must be created using
13974	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13975	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13976	    ;;
13977	  icpc* | ecpc* )
13978	    # Intel C++
13979	    with_gnu_ld=yes
13980	    # version 8.0 and above of icpc choke on multiply defined symbols
13981	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13982	    # earlier do not add the objects themselves.
13983	    case `$CC -V 2>&1` in
13984	      *"Version 7."*)
13985	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13986		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'
13987		;;
13988	      *)  # Version 8.0 or newer
13989	        tmp_idyn=
13990	        case $host_cpu in
13991		  ia64*) tmp_idyn=' -i_dynamic';;
13992		esac
13993	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13994		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'
13995		;;
13996	    esac
13997	    archive_cmds_need_lc_CXX=no
13998	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13999	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14000	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14001	    ;;
14002          pgCC* | pgcpp*)
14003            # Portland Group C++ compiler
14004	    case `$CC -V` in
14005	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14006	      prelink_cmds_CXX='tpldir=Template.dir~
14007		rm -rf $tpldir~
14008		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14009		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14010	      old_archive_cmds_CXX='tpldir=Template.dir~
14011		rm -rf $tpldir~
14012		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14013		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14014		$RANLIB $oldlib'
14015	      archive_cmds_CXX='tpldir=Template.dir~
14016		rm -rf $tpldir~
14017		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14018		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14019	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14020		rm -rf $tpldir~
14021		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14022		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14023	      ;;
14024	    *) # Version 6 and above use weak symbols
14025	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14026	      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'
14027	      ;;
14028	    esac
14029
14030	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14031	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14032	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14033            ;;
14034	  cxx*)
14035	    # Compaq C++
14036	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14037	    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'
14038
14039	    runpath_var=LD_RUN_PATH
14040	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14041	    hardcode_libdir_separator_CXX=:
14042
14043	    # Commands to make compiler produce verbose output that lists
14044	    # what "hidden" libraries, object files and flags are used when
14045	    # linking a shared library.
14046	    #
14047	    # There doesn't appear to be a way to prevent this compiler from
14048	    # explicitly linking system object files so we need to strip them
14049	    # from the output so that they don't get included in the library
14050	    # dependencies.
14051	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14052	    ;;
14053	  xl* | mpixl* | bgxl*)
14054	    # IBM XL 8.0 on PPC, with GNU ld
14055	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14056	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14057	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14058	    if test "x$supports_anon_versioning" = xyes; then
14059	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14060		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14061		echo "local: *; };" >> $output_objdir/$libname.ver~
14062		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14063	    fi
14064	    ;;
14065	  *)
14066	    case `$CC -V 2>&1 | sed 5q` in
14067	    *Sun\ C*)
14068	      # Sun C++ 5.9
14069	      no_undefined_flag_CXX=' -zdefs'
14070	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14071	      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'
14072	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14073	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14074	      compiler_needs_object_CXX=yes
14075
14076	      # Not sure whether something based on
14077	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14078	      # would be better.
14079	      output_verbose_link_cmd='func_echo_all'
14080
14081	      # Archives containing C++ object files must be created using
14082	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14083	      # necessary to make sure instantiated templates are included
14084	      # in the archive.
14085	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14086	      ;;
14087	    esac
14088	    ;;
14089	esac
14090	;;
14091
14092      lynxos*)
14093        # FIXME: insert proper C++ library support
14094	ld_shlibs_CXX=no
14095	;;
14096
14097      m88k*)
14098        # FIXME: insert proper C++ library support
14099        ld_shlibs_CXX=no
14100	;;
14101
14102      mvs*)
14103        case $cc_basename in
14104          cxx*)
14105	    # FIXME: insert proper C++ library support
14106	    ld_shlibs_CXX=no
14107	    ;;
14108	  *)
14109	    # FIXME: insert proper C++ library support
14110	    ld_shlibs_CXX=no
14111	    ;;
14112	esac
14113	;;
14114
14115      netbsd*)
14116        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14117	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14118	  wlarc=
14119	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14120	  hardcode_direct_CXX=yes
14121	  hardcode_shlibpath_var_CXX=no
14122	fi
14123	# Workaround some broken pre-1.5 toolchains
14124	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14125	;;
14126
14127      *nto* | *qnx*)
14128        ld_shlibs_CXX=yes
14129	;;
14130
14131      openbsd2*)
14132        # C++ shared libraries are fairly broken
14133	ld_shlibs_CXX=no
14134	;;
14135
14136      openbsd*)
14137	if test -f /usr/libexec/ld.so; then
14138	  hardcode_direct_CXX=yes
14139	  hardcode_shlibpath_var_CXX=no
14140	  hardcode_direct_absolute_CXX=yes
14141	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14142	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14143	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14144	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14145	    export_dynamic_flag_spec_CXX='${wl}-E'
14146	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14147	  fi
14148	  output_verbose_link_cmd=func_echo_all
14149	else
14150	  ld_shlibs_CXX=no
14151	fi
14152	;;
14153
14154      osf3* | osf4* | osf5*)
14155        case $cc_basename in
14156          KCC*)
14157	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14158
14159	    # KCC will only create a shared library if the output file
14160	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14161	    # to its proper name (with version) after linking.
14162	    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'
14163
14164	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14165	    hardcode_libdir_separator_CXX=:
14166
14167	    # Archives containing C++ object files must be created using
14168	    # the KAI C++ compiler.
14169	    case $host in
14170	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14171	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14172	    esac
14173	    ;;
14174          RCC*)
14175	    # Rational C++ 2.4.1
14176	    # FIXME: insert proper C++ library support
14177	    ld_shlibs_CXX=no
14178	    ;;
14179          cxx*)
14180	    case $host in
14181	      osf3*)
14182	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14183	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14184	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14185		;;
14186	      *)
14187	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14188	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14189	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14190	          echo "-hidden">> $lib.exp~
14191	          $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14192	          $RM $lib.exp'
14193	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14194		;;
14195	    esac
14196
14197	    hardcode_libdir_separator_CXX=:
14198
14199	    # Commands to make compiler produce verbose output that lists
14200	    # what "hidden" libraries, object files and flags are used when
14201	    # linking a shared library.
14202	    #
14203	    # There doesn't appear to be a way to prevent this compiler from
14204	    # explicitly linking system object files so we need to strip them
14205	    # from the output so that they don't get included in the library
14206	    # dependencies.
14207	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14208	    ;;
14209	  *)
14210	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14211	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14212	      case $host in
14213	        osf3*)
14214	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14215		  ;;
14216	        *)
14217	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14218		  ;;
14219	      esac
14220
14221	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14222	      hardcode_libdir_separator_CXX=:
14223
14224	      # Commands to make compiler produce verbose output that lists
14225	      # what "hidden" libraries, object files and flags are used when
14226	      # linking a shared library.
14227	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14228
14229	    else
14230	      # FIXME: insert proper C++ library support
14231	      ld_shlibs_CXX=no
14232	    fi
14233	    ;;
14234        esac
14235        ;;
14236
14237      psos*)
14238        # FIXME: insert proper C++ library support
14239        ld_shlibs_CXX=no
14240        ;;
14241
14242      sunos4*)
14243        case $cc_basename in
14244          CC*)
14245	    # Sun C++ 4.x
14246	    # FIXME: insert proper C++ library support
14247	    ld_shlibs_CXX=no
14248	    ;;
14249          lcc*)
14250	    # Lucid
14251	    # FIXME: insert proper C++ library support
14252	    ld_shlibs_CXX=no
14253	    ;;
14254          *)
14255	    # FIXME: insert proper C++ library support
14256	    ld_shlibs_CXX=no
14257	    ;;
14258        esac
14259        ;;
14260
14261      solaris*)
14262        case $cc_basename in
14263          CC* | sunCC*)
14264	    # Sun C++ 4.2, 5.x and Centerline C++
14265            archive_cmds_need_lc_CXX=yes
14266	    no_undefined_flag_CXX=' -zdefs'
14267	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14268	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14269	      $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'
14270
14271	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14272	    hardcode_shlibpath_var_CXX=no
14273	    case $host_os in
14274	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14275	      *)
14276		# The compiler driver will combine and reorder linker options,
14277		# but understands `-z linker_flag'.
14278	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14279		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14280	        ;;
14281	    esac
14282	    link_all_deplibs_CXX=yes
14283
14284	    output_verbose_link_cmd='func_echo_all'
14285
14286	    # Archives containing C++ object files must be created using
14287	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14288	    # necessary to make sure instantiated templates are included
14289	    # in the archive.
14290	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14291	    ;;
14292          gcx*)
14293	    # Green Hills C++ Compiler
14294	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14295
14296	    # The C++ compiler must be used to create the archive.
14297	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14298	    ;;
14299          *)
14300	    # GNU C++ compiler with Solaris linker
14301	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14302	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14303	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14304	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14305	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14306		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14307
14308	        # Commands to make compiler produce verbose output that lists
14309	        # what "hidden" libraries, object files and flags are used when
14310	        # linking a shared library.
14311	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14312	      else
14313	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14314	        # platform.
14315	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14316	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14317		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14318
14319	        # Commands to make compiler produce verbose output that lists
14320	        # what "hidden" libraries, object files and flags are used when
14321	        # linking a shared library.
14322	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14323	      fi
14324
14325	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14326	      case $host_os in
14327		solaris2.[0-5] | solaris2.[0-5].*) ;;
14328		*)
14329		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14330		  ;;
14331	      esac
14332	    fi
14333	    ;;
14334        esac
14335        ;;
14336
14337    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14338      no_undefined_flag_CXX='${wl}-z,text'
14339      archive_cmds_need_lc_CXX=no
14340      hardcode_shlibpath_var_CXX=no
14341      runpath_var='LD_RUN_PATH'
14342
14343      case $cc_basename in
14344        CC*)
14345	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14346	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14347	  ;;
14348	*)
14349	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14350	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14351	  ;;
14352      esac
14353      ;;
14354
14355      sysv5* | sco3.2v5* | sco5v6*)
14356	# Note: We can NOT use -z defs as we might desire, because we do not
14357	# link with -lc, and that would cause any symbols used from libc to
14358	# always be unresolved, which means just about no library would
14359	# ever link correctly.  If we're not using GNU ld we use -z text
14360	# though, which does catch some bad symbols but isn't as heavy-handed
14361	# as -z defs.
14362	no_undefined_flag_CXX='${wl}-z,text'
14363	allow_undefined_flag_CXX='${wl}-z,nodefs'
14364	archive_cmds_need_lc_CXX=no
14365	hardcode_shlibpath_var_CXX=no
14366	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14367	hardcode_libdir_separator_CXX=':'
14368	link_all_deplibs_CXX=yes
14369	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14370	runpath_var='LD_RUN_PATH'
14371
14372	case $cc_basename in
14373          CC*)
14374	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14375	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14376	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14377	      '"$old_archive_cmds_CXX"
14378	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14379	      '"$reload_cmds_CXX"
14380	    ;;
14381	  *)
14382	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14383	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14384	    ;;
14385	esac
14386      ;;
14387
14388      tandem*)
14389        case $cc_basename in
14390          NCC*)
14391	    # NonStop-UX NCC 3.20
14392	    # FIXME: insert proper C++ library support
14393	    ld_shlibs_CXX=no
14394	    ;;
14395          *)
14396	    # FIXME: insert proper C++ library support
14397	    ld_shlibs_CXX=no
14398	    ;;
14399        esac
14400        ;;
14401
14402      vxworks*)
14403        # FIXME: insert proper C++ library support
14404        ld_shlibs_CXX=no
14405        ;;
14406
14407      *)
14408        # FIXME: insert proper C++ library support
14409        ld_shlibs_CXX=no
14410        ;;
14411    esac
14412
14413    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14414$as_echo "$ld_shlibs_CXX" >&6; }
14415    test "$ld_shlibs_CXX" = no && can_build_shared=no
14416
14417    GCC_CXX="$GXX"
14418    LD_CXX="$LD"
14419
14420    ## CAVEAT EMPTOR:
14421    ## There is no encapsulation within the following macros, do not change
14422    ## the running order or otherwise move them around unless you know exactly
14423    ## what you are doing...
14424    # Dependencies to place before and after the object being linked:
14425predep_objects_CXX=
14426postdep_objects_CXX=
14427predeps_CXX=
14428postdeps_CXX=
14429compiler_lib_search_path_CXX=
14430
14431cat > conftest.$ac_ext <<_LT_EOF
14432class Foo
14433{
14434public:
14435  Foo (void) { a = 0; }
14436private:
14437  int a;
14438};
14439_LT_EOF
14440
14441
14442_lt_libdeps_save_CFLAGS=$CFLAGS
14443case "$CC $CFLAGS " in #(
14444*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14445*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14446*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14447esac
14448
14449if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14450  (eval $ac_compile) 2>&5
14451  ac_status=$?
14452  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14453  test $ac_status = 0; }; then
14454  # Parse the compiler output and extract the necessary
14455  # objects, libraries and library flags.
14456
14457  # Sentinel used to keep track of whether or not we are before
14458  # the conftest object file.
14459  pre_test_object_deps_done=no
14460
14461  for p in `eval "$output_verbose_link_cmd"`; do
14462    case ${prev}${p} in
14463
14464    -L* | -R* | -l*)
14465       # Some compilers place space between "-{L,R}" and the path.
14466       # Remove the space.
14467       if test $p = "-L" ||
14468          test $p = "-R"; then
14469	 prev=$p
14470	 continue
14471       fi
14472
14473       # Expand the sysroot to ease extracting the directories later.
14474       if test -z "$prev"; then
14475         case $p in
14476         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14477         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14478         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14479         esac
14480       fi
14481       case $p in
14482       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14483       esac
14484       if test "$pre_test_object_deps_done" = no; then
14485	 case ${prev} in
14486	 -L | -R)
14487	   # Internal compiler library paths should come after those
14488	   # provided the user.  The postdeps already come after the
14489	   # user supplied libs so there is no need to process them.
14490	   if test -z "$compiler_lib_search_path_CXX"; then
14491	     compiler_lib_search_path_CXX="${prev}${p}"
14492	   else
14493	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14494	   fi
14495	   ;;
14496	 # The "-l" case would never come before the object being
14497	 # linked, so don't bother handling this case.
14498	 esac
14499       else
14500	 if test -z "$postdeps_CXX"; then
14501	   postdeps_CXX="${prev}${p}"
14502	 else
14503	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14504	 fi
14505       fi
14506       prev=
14507       ;;
14508
14509    *.lto.$objext) ;; # Ignore GCC LTO objects
14510    *.$objext)
14511       # This assumes that the test object file only shows up
14512       # once in the compiler output.
14513       if test "$p" = "conftest.$objext"; then
14514	 pre_test_object_deps_done=yes
14515	 continue
14516       fi
14517
14518       if test "$pre_test_object_deps_done" = no; then
14519	 if test -z "$predep_objects_CXX"; then
14520	   predep_objects_CXX="$p"
14521	 else
14522	   predep_objects_CXX="$predep_objects_CXX $p"
14523	 fi
14524       else
14525	 if test -z "$postdep_objects_CXX"; then
14526	   postdep_objects_CXX="$p"
14527	 else
14528	   postdep_objects_CXX="$postdep_objects_CXX $p"
14529	 fi
14530       fi
14531       ;;
14532
14533    *) ;; # Ignore the rest.
14534
14535    esac
14536  done
14537
14538  # Clean up.
14539  rm -f a.out a.exe
14540else
14541  echo "libtool.m4: error: problem compiling CXX test program"
14542fi
14543
14544$RM -f confest.$objext
14545CFLAGS=$_lt_libdeps_save_CFLAGS
14546
14547# PORTME: override above test on systems where it is broken
14548case $host_os in
14549interix[3-9]*)
14550  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14551  # hack all around it, let's just trust "g++" to DTRT.
14552  predep_objects_CXX=
14553  postdep_objects_CXX=
14554  postdeps_CXX=
14555  ;;
14556
14557linux*)
14558  case `$CC -V 2>&1 | sed 5q` in
14559  *Sun\ C*)
14560    # Sun C++ 5.9
14561
14562    # The more standards-conforming stlport4 library is
14563    # incompatible with the Cstd library. Avoid specifying
14564    # it if it's in CXXFLAGS. Ignore libCrun as
14565    # -library=stlport4 depends on it.
14566    case " $CXX $CXXFLAGS " in
14567    *" -library=stlport4 "*)
14568      solaris_use_stlport4=yes
14569      ;;
14570    esac
14571
14572    if test "$solaris_use_stlport4" != yes; then
14573      postdeps_CXX='-library=Cstd -library=Crun'
14574    fi
14575    ;;
14576  esac
14577  ;;
14578
14579solaris*)
14580  case $cc_basename in
14581  CC* | sunCC*)
14582    # The more standards-conforming stlport4 library is
14583    # incompatible with the Cstd library. Avoid specifying
14584    # it if it's in CXXFLAGS. Ignore libCrun as
14585    # -library=stlport4 depends on it.
14586    case " $CXX $CXXFLAGS " in
14587    *" -library=stlport4 "*)
14588      solaris_use_stlport4=yes
14589      ;;
14590    esac
14591
14592    # Adding this requires a known-good setup of shared libraries for
14593    # Sun compiler versions before 5.6, else PIC objects from an old
14594    # archive will be linked into the output, leading to subtle bugs.
14595    if test "$solaris_use_stlport4" != yes; then
14596      postdeps_CXX='-library=Cstd -library=Crun'
14597    fi
14598    ;;
14599  esac
14600  ;;
14601esac
14602
14603
14604case " $postdeps_CXX " in
14605*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14606esac
14607 compiler_lib_search_dirs_CXX=
14608if test -n "${compiler_lib_search_path_CXX}"; then
14609 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14610fi
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642    lt_prog_compiler_wl_CXX=
14643lt_prog_compiler_pic_CXX=
14644lt_prog_compiler_static_CXX=
14645
14646
14647  # C++ specific cases for pic, static, wl, etc.
14648  if test "$GXX" = yes; then
14649    lt_prog_compiler_wl_CXX='-Wl,'
14650    lt_prog_compiler_static_CXX='-static'
14651
14652    case $host_os in
14653    aix*)
14654      # All AIX code is PIC.
14655      if test "$host_cpu" = ia64; then
14656	# AIX 5 now supports IA64 processor
14657	lt_prog_compiler_static_CXX='-Bstatic'
14658      fi
14659      ;;
14660
14661    amigaos*)
14662      case $host_cpu in
14663      powerpc)
14664            # see comment about AmigaOS4 .so support
14665            lt_prog_compiler_pic_CXX='-fPIC'
14666        ;;
14667      m68k)
14668            # FIXME: we need at least 68020 code to build shared libraries, but
14669            # adding the `-m68020' flag to GCC prevents building anything better,
14670            # like `-m68040'.
14671            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14672        ;;
14673      esac
14674      ;;
14675
14676    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14677      # PIC is the default for these OSes.
14678      ;;
14679    mingw* | cygwin* | os2* | pw32* | cegcc*)
14680      # This hack is so that the source file can tell whether it is being
14681      # built for inclusion in a dll (and should export symbols for example).
14682      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14683      # (--disable-auto-import) libraries
14684      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14685      ;;
14686    darwin* | rhapsody*)
14687      # PIC is the default on this platform
14688      # Common symbols not allowed in MH_DYLIB files
14689      lt_prog_compiler_pic_CXX='-fno-common'
14690      ;;
14691    *djgpp*)
14692      # DJGPP does not support shared libraries at all
14693      lt_prog_compiler_pic_CXX=
14694      ;;
14695    haiku*)
14696      # PIC is the default for Haiku.
14697      # The "-static" flag exists, but is broken.
14698      lt_prog_compiler_static_CXX=
14699      ;;
14700    interix[3-9]*)
14701      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14702      # Instead, we relocate shared libraries at runtime.
14703      ;;
14704    sysv4*MP*)
14705      if test -d /usr/nec; then
14706	lt_prog_compiler_pic_CXX=-Kconform_pic
14707      fi
14708      ;;
14709    hpux*)
14710      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14711      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14712      # sets the default TLS model and affects inlining.
14713      case $host_cpu in
14714      hppa*64*)
14715	;;
14716      *)
14717	lt_prog_compiler_pic_CXX='-fPIC'
14718	;;
14719      esac
14720      ;;
14721    *qnx* | *nto*)
14722      # QNX uses GNU C++, but need to define -shared option too, otherwise
14723      # it will coredump.
14724      lt_prog_compiler_pic_CXX='-fPIC -shared'
14725      ;;
14726    *)
14727      lt_prog_compiler_pic_CXX='-fPIC'
14728      ;;
14729    esac
14730  else
14731    case $host_os in
14732      aix[4-9]*)
14733	# All AIX code is PIC.
14734	if test "$host_cpu" = ia64; then
14735	  # AIX 5 now supports IA64 processor
14736	  lt_prog_compiler_static_CXX='-Bstatic'
14737	else
14738	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14739	fi
14740	;;
14741      chorus*)
14742	case $cc_basename in
14743	cxch68*)
14744	  # Green Hills C++ Compiler
14745	  # _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"
14746	  ;;
14747	esac
14748	;;
14749      mingw* | cygwin* | os2* | pw32* | cegcc*)
14750	# This hack is so that the source file can tell whether it is being
14751	# built for inclusion in a dll (and should export symbols for example).
14752	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14753	;;
14754      dgux*)
14755	case $cc_basename in
14756	  ec++*)
14757	    lt_prog_compiler_pic_CXX='-KPIC'
14758	    ;;
14759	  ghcx*)
14760	    # Green Hills C++ Compiler
14761	    lt_prog_compiler_pic_CXX='-pic'
14762	    ;;
14763	  *)
14764	    ;;
14765	esac
14766	;;
14767      freebsd* | dragonfly*)
14768	# FreeBSD uses GNU C++
14769	;;
14770      hpux9* | hpux10* | hpux11*)
14771	case $cc_basename in
14772	  CC*)
14773	    lt_prog_compiler_wl_CXX='-Wl,'
14774	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14775	    if test "$host_cpu" != ia64; then
14776	      lt_prog_compiler_pic_CXX='+Z'
14777	    fi
14778	    ;;
14779	  aCC*)
14780	    lt_prog_compiler_wl_CXX='-Wl,'
14781	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14782	    case $host_cpu in
14783	    hppa*64*|ia64*)
14784	      # +Z the default
14785	      ;;
14786	    *)
14787	      lt_prog_compiler_pic_CXX='+Z'
14788	      ;;
14789	    esac
14790	    ;;
14791	  *)
14792	    ;;
14793	esac
14794	;;
14795      interix*)
14796	# This is c89, which is MS Visual C++ (no shared libs)
14797	# Anyone wants to do a port?
14798	;;
14799      irix5* | irix6* | nonstopux*)
14800	case $cc_basename in
14801	  CC*)
14802	    lt_prog_compiler_wl_CXX='-Wl,'
14803	    lt_prog_compiler_static_CXX='-non_shared'
14804	    # CC pic flag -KPIC is the default.
14805	    ;;
14806	  *)
14807	    ;;
14808	esac
14809	;;
14810      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14811	case $cc_basename in
14812	  KCC*)
14813	    # KAI C++ Compiler
14814	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14815	    lt_prog_compiler_pic_CXX='-fPIC'
14816	    ;;
14817	  ecpc* )
14818	    # old Intel C++ for x86_64 which still supported -KPIC.
14819	    lt_prog_compiler_wl_CXX='-Wl,'
14820	    lt_prog_compiler_pic_CXX='-KPIC'
14821	    lt_prog_compiler_static_CXX='-static'
14822	    ;;
14823	  icpc* )
14824	    # Intel C++, used to be incompatible with GCC.
14825	    # ICC 10 doesn't accept -KPIC any more.
14826	    lt_prog_compiler_wl_CXX='-Wl,'
14827	    lt_prog_compiler_pic_CXX='-fPIC'
14828	    lt_prog_compiler_static_CXX='-static'
14829	    ;;
14830	  pgCC* | pgcpp*)
14831	    # Portland Group C++ compiler
14832	    lt_prog_compiler_wl_CXX='-Wl,'
14833	    lt_prog_compiler_pic_CXX='-fpic'
14834	    lt_prog_compiler_static_CXX='-Bstatic'
14835	    ;;
14836	  cxx*)
14837	    # Compaq C++
14838	    # Make sure the PIC flag is empty.  It appears that all Alpha
14839	    # Linux and Compaq Tru64 Unix objects are PIC.
14840	    lt_prog_compiler_pic_CXX=
14841	    lt_prog_compiler_static_CXX='-non_shared'
14842	    ;;
14843	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14844	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14845	    lt_prog_compiler_wl_CXX='-Wl,'
14846	    lt_prog_compiler_pic_CXX='-qpic'
14847	    lt_prog_compiler_static_CXX='-qstaticlink'
14848	    ;;
14849	  *)
14850	    case `$CC -V 2>&1 | sed 5q` in
14851	    *Sun\ C*)
14852	      # Sun C++ 5.9
14853	      lt_prog_compiler_pic_CXX='-KPIC'
14854	      lt_prog_compiler_static_CXX='-Bstatic'
14855	      lt_prog_compiler_wl_CXX='-Qoption ld '
14856	      ;;
14857	    esac
14858	    ;;
14859	esac
14860	;;
14861      lynxos*)
14862	;;
14863      m88k*)
14864	;;
14865      mvs*)
14866	case $cc_basename in
14867	  cxx*)
14868	    lt_prog_compiler_pic_CXX='-W c,exportall'
14869	    ;;
14870	  *)
14871	    ;;
14872	esac
14873	;;
14874      netbsd*)
14875	;;
14876      *qnx* | *nto*)
14877        # QNX uses GNU C++, but need to define -shared option too, otherwise
14878        # it will coredump.
14879        lt_prog_compiler_pic_CXX='-fPIC -shared'
14880        ;;
14881      osf3* | osf4* | osf5*)
14882	case $cc_basename in
14883	  KCC*)
14884	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14885	    ;;
14886	  RCC*)
14887	    # Rational C++ 2.4.1
14888	    lt_prog_compiler_pic_CXX='-pic'
14889	    ;;
14890	  cxx*)
14891	    # Digital/Compaq C++
14892	    lt_prog_compiler_wl_CXX='-Wl,'
14893	    # Make sure the PIC flag is empty.  It appears that all Alpha
14894	    # Linux and Compaq Tru64 Unix objects are PIC.
14895	    lt_prog_compiler_pic_CXX=
14896	    lt_prog_compiler_static_CXX='-non_shared'
14897	    ;;
14898	  *)
14899	    ;;
14900	esac
14901	;;
14902      psos*)
14903	;;
14904      solaris*)
14905	case $cc_basename in
14906	  CC* | sunCC*)
14907	    # Sun C++ 4.2, 5.x and Centerline C++
14908	    lt_prog_compiler_pic_CXX='-KPIC'
14909	    lt_prog_compiler_static_CXX='-Bstatic'
14910	    lt_prog_compiler_wl_CXX='-Qoption ld '
14911	    ;;
14912	  gcx*)
14913	    # Green Hills C++ Compiler
14914	    lt_prog_compiler_pic_CXX='-PIC'
14915	    ;;
14916	  *)
14917	    ;;
14918	esac
14919	;;
14920      sunos4*)
14921	case $cc_basename in
14922	  CC*)
14923	    # Sun C++ 4.x
14924	    lt_prog_compiler_pic_CXX='-pic'
14925	    lt_prog_compiler_static_CXX='-Bstatic'
14926	    ;;
14927	  lcc*)
14928	    # Lucid
14929	    lt_prog_compiler_pic_CXX='-pic'
14930	    ;;
14931	  *)
14932	    ;;
14933	esac
14934	;;
14935      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14936	case $cc_basename in
14937	  CC*)
14938	    lt_prog_compiler_wl_CXX='-Wl,'
14939	    lt_prog_compiler_pic_CXX='-KPIC'
14940	    lt_prog_compiler_static_CXX='-Bstatic'
14941	    ;;
14942	esac
14943	;;
14944      tandem*)
14945	case $cc_basename in
14946	  NCC*)
14947	    # NonStop-UX NCC 3.20
14948	    lt_prog_compiler_pic_CXX='-KPIC'
14949	    ;;
14950	  *)
14951	    ;;
14952	esac
14953	;;
14954      vxworks*)
14955	;;
14956      *)
14957	lt_prog_compiler_can_build_shared_CXX=no
14958	;;
14959    esac
14960  fi
14961
14962case $host_os in
14963  # For platforms which do not support PIC, -DPIC is meaningless:
14964  *djgpp*)
14965    lt_prog_compiler_pic_CXX=
14966    ;;
14967  *)
14968    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14969    ;;
14970esac
14971
14972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14973$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14974if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14975  $as_echo_n "(cached) " >&6
14976else
14977  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14978fi
14979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14980$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14981lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14982
14983#
14984# Check to make sure the PIC flag actually works.
14985#
14986if test -n "$lt_prog_compiler_pic_CXX"; then
14987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14988$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14989if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14990  $as_echo_n "(cached) " >&6
14991else
14992  lt_cv_prog_compiler_pic_works_CXX=no
14993   ac_outfile=conftest.$ac_objext
14994   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14995   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14996   # Insert the option either (1) after the last *FLAGS variable, or
14997   # (2) before a word containing "conftest.", or (3) at the end.
14998   # Note that $ac_compile itself does not contain backslashes and begins
14999   # with a dollar sign (not a hyphen), so the echo should work correctly.
15000   # The option is referenced via a variable to avoid confusing sed.
15001   lt_compile=`echo "$ac_compile" | $SED \
15002   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15003   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15004   -e 's:$: $lt_compiler_flag:'`
15005   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15006   (eval "$lt_compile" 2>conftest.err)
15007   ac_status=$?
15008   cat conftest.err >&5
15009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010   if (exit $ac_status) && test -s "$ac_outfile"; then
15011     # The compiler can only warn and ignore the option if not recognized
15012     # So say no if there are warnings other than the usual output.
15013     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15014     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15015     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15016       lt_cv_prog_compiler_pic_works_CXX=yes
15017     fi
15018   fi
15019   $RM conftest*
15020
15021fi
15022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15023$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15024
15025if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15026    case $lt_prog_compiler_pic_CXX in
15027     "" | " "*) ;;
15028     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15029     esac
15030else
15031    lt_prog_compiler_pic_CXX=
15032     lt_prog_compiler_can_build_shared_CXX=no
15033fi
15034
15035fi
15036
15037
15038
15039
15040
15041#
15042# Check to make sure the static flag actually works.
15043#
15044wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15046$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15047if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15048  $as_echo_n "(cached) " >&6
15049else
15050  lt_cv_prog_compiler_static_works_CXX=no
15051   save_LDFLAGS="$LDFLAGS"
15052   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15053   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15054   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15055     # The linker can only warn and ignore the option if not recognized
15056     # So say no if there are warnings
15057     if test -s conftest.err; then
15058       # Append any errors to the config.log.
15059       cat conftest.err 1>&5
15060       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15061       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15062       if diff conftest.exp conftest.er2 >/dev/null; then
15063         lt_cv_prog_compiler_static_works_CXX=yes
15064       fi
15065     else
15066       lt_cv_prog_compiler_static_works_CXX=yes
15067     fi
15068   fi
15069   $RM -r conftest*
15070   LDFLAGS="$save_LDFLAGS"
15071
15072fi
15073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15074$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15075
15076if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15077    :
15078else
15079    lt_prog_compiler_static_CXX=
15080fi
15081
15082
15083
15084
15085    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15086$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15087if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15088  $as_echo_n "(cached) " >&6
15089else
15090  lt_cv_prog_compiler_c_o_CXX=no
15091   $RM -r conftest 2>/dev/null
15092   mkdir conftest
15093   cd conftest
15094   mkdir out
15095   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15096
15097   lt_compiler_flag="-o out/conftest2.$ac_objext"
15098   # Insert the option either (1) after the last *FLAGS variable, or
15099   # (2) before a word containing "conftest.", or (3) at the end.
15100   # Note that $ac_compile itself does not contain backslashes and begins
15101   # with a dollar sign (not a hyphen), so the echo should work correctly.
15102   lt_compile=`echo "$ac_compile" | $SED \
15103   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15104   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15105   -e 's:$: $lt_compiler_flag:'`
15106   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15107   (eval "$lt_compile" 2>out/conftest.err)
15108   ac_status=$?
15109   cat out/conftest.err >&5
15110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15112   then
15113     # The compiler can only warn and ignore the option if not recognized
15114     # So say no if there are warnings
15115     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15116     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15117     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15118       lt_cv_prog_compiler_c_o_CXX=yes
15119     fi
15120   fi
15121   chmod u+w . 2>&5
15122   $RM conftest*
15123   # SGI C++ compiler will create directory out/ii_files/ for
15124   # template instantiation
15125   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15126   $RM out/* && rmdir out
15127   cd ..
15128   $RM -r conftest
15129   $RM conftest*
15130
15131fi
15132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15133$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15134
15135
15136
15137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15138$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15139if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15140  $as_echo_n "(cached) " >&6
15141else
15142  lt_cv_prog_compiler_c_o_CXX=no
15143   $RM -r conftest 2>/dev/null
15144   mkdir conftest
15145   cd conftest
15146   mkdir out
15147   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15148
15149   lt_compiler_flag="-o out/conftest2.$ac_objext"
15150   # Insert the option either (1) after the last *FLAGS variable, or
15151   # (2) before a word containing "conftest.", or (3) at the end.
15152   # Note that $ac_compile itself does not contain backslashes and begins
15153   # with a dollar sign (not a hyphen), so the echo should work correctly.
15154   lt_compile=`echo "$ac_compile" | $SED \
15155   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15156   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15157   -e 's:$: $lt_compiler_flag:'`
15158   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15159   (eval "$lt_compile" 2>out/conftest.err)
15160   ac_status=$?
15161   cat out/conftest.err >&5
15162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15164   then
15165     # The compiler can only warn and ignore the option if not recognized
15166     # So say no if there are warnings
15167     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15168     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15169     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15170       lt_cv_prog_compiler_c_o_CXX=yes
15171     fi
15172   fi
15173   chmod u+w . 2>&5
15174   $RM conftest*
15175   # SGI C++ compiler will create directory out/ii_files/ for
15176   # template instantiation
15177   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15178   $RM out/* && rmdir out
15179   cd ..
15180   $RM -r conftest
15181   $RM conftest*
15182
15183fi
15184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15185$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15186
15187
15188
15189
15190hard_links="nottested"
15191if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15192  # do not overwrite the value of need_locks provided by the user
15193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15194$as_echo_n "checking if we can lock with hard links... " >&6; }
15195  hard_links=yes
15196  $RM conftest*
15197  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15198  touch conftest.a
15199  ln conftest.a conftest.b 2>&5 || hard_links=no
15200  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15202$as_echo "$hard_links" >&6; }
15203  if test "$hard_links" = no; then
15204    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15205$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15206    need_locks=warn
15207  fi
15208else
15209  need_locks=no
15210fi
15211
15212
15213
15214    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15215$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15216
15217  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15218  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15219  case $host_os in
15220  aix[4-9]*)
15221    # If we're using GNU nm, then we don't want the "-C" option.
15222    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15223    # Also, AIX nm treats weak defined symbols like other global defined
15224    # symbols, whereas GNU nm marks them as "W".
15225    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15226      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15227    else
15228      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'
15229    fi
15230    ;;
15231  pw32*)
15232    export_symbols_cmds_CXX="$ltdll_cmds"
15233    ;;
15234  cygwin* | mingw* | cegcc*)
15235    case $cc_basename in
15236    cl*)
15237      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15238      ;;
15239    *)
15240      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15241      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15242      ;;
15243    esac
15244    ;;
15245  *)
15246    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15247    ;;
15248  esac
15249
15250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15251$as_echo "$ld_shlibs_CXX" >&6; }
15252test "$ld_shlibs_CXX" = no && can_build_shared=no
15253
15254with_gnu_ld_CXX=$with_gnu_ld
15255
15256
15257
15258
15259
15260
15261#
15262# Do we need to explicitly link libc?
15263#
15264case "x$archive_cmds_need_lc_CXX" in
15265x|xyes)
15266  # Assume -lc should be added
15267  archive_cmds_need_lc_CXX=yes
15268
15269  if test "$enable_shared" = yes && test "$GCC" = yes; then
15270    case $archive_cmds_CXX in
15271    *'~'*)
15272      # FIXME: we may have to deal with multi-command sequences.
15273      ;;
15274    '$CC '*)
15275      # Test whether the compiler implicitly links with -lc since on some
15276      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15277      # to ld, don't add -lc before -lgcc.
15278      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15279$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15280if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15281  $as_echo_n "(cached) " >&6
15282else
15283  $RM conftest*
15284	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15285
15286	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15287  (eval $ac_compile) 2>&5
15288  ac_status=$?
15289  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15290  test $ac_status = 0; } 2>conftest.err; then
15291	  soname=conftest
15292	  lib=conftest
15293	  libobjs=conftest.$ac_objext
15294	  deplibs=
15295	  wl=$lt_prog_compiler_wl_CXX
15296	  pic_flag=$lt_prog_compiler_pic_CXX
15297	  compiler_flags=-v
15298	  linker_flags=-v
15299	  verstring=
15300	  output_objdir=.
15301	  libname=conftest
15302	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15303	  allow_undefined_flag_CXX=
15304	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15305  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15306  ac_status=$?
15307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15308  test $ac_status = 0; }
15309	  then
15310	    lt_cv_archive_cmds_need_lc_CXX=no
15311	  else
15312	    lt_cv_archive_cmds_need_lc_CXX=yes
15313	  fi
15314	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15315	else
15316	  cat conftest.err 1>&5
15317	fi
15318	$RM conftest*
15319
15320fi
15321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15322$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15323      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15324      ;;
15325    esac
15326  fi
15327  ;;
15328esac
15329
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15392$as_echo_n "checking dynamic linker characteristics... " >&6; }
15393
15394library_names_spec=
15395libname_spec='lib$name'
15396soname_spec=
15397shrext_cmds=".so"
15398postinstall_cmds=
15399postuninstall_cmds=
15400finish_cmds=
15401finish_eval=
15402shlibpath_var=
15403shlibpath_overrides_runpath=unknown
15404version_type=none
15405dynamic_linker="$host_os ld.so"
15406sys_lib_dlsearch_path_spec="/lib /usr/lib"
15407need_lib_prefix=unknown
15408hardcode_into_libs=no
15409
15410# when you set need_version to no, make sure it does not cause -set_version
15411# flags to be left without arguments
15412need_version=unknown
15413
15414case $host_os in
15415aix3*)
15416  version_type=linux # correct to gnu/linux during the next big refactor
15417  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15418  shlibpath_var=LIBPATH
15419
15420  # AIX 3 has no versioning support, so we append a major version to the name.
15421  soname_spec='${libname}${release}${shared_ext}$major'
15422  ;;
15423
15424aix[4-9]*)
15425  version_type=linux # correct to gnu/linux during the next big refactor
15426  need_lib_prefix=no
15427  need_version=no
15428  hardcode_into_libs=yes
15429  if test "$host_cpu" = ia64; then
15430    # AIX 5 supports IA64
15431    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15432    shlibpath_var=LD_LIBRARY_PATH
15433  else
15434    # With GCC up to 2.95.x, collect2 would create an import file
15435    # for dependence libraries.  The import file would start with
15436    # the line `#! .'.  This would cause the generated library to
15437    # depend on `.', always an invalid library.  This was fixed in
15438    # development snapshots of GCC prior to 3.0.
15439    case $host_os in
15440      aix4 | aix4.[01] | aix4.[01].*)
15441      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15442	   echo ' yes '
15443	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15444	:
15445      else
15446	can_build_shared=no
15447      fi
15448      ;;
15449    esac
15450    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15451    # soname into executable. Probably we can add versioning support to
15452    # collect2, so additional links can be useful in future.
15453    if test "$aix_use_runtimelinking" = yes; then
15454      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15455      # instead of lib<name>.a to let people know that these are not
15456      # typical AIX shared libraries.
15457      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458    else
15459      # We preserve .a as extension for shared libraries through AIX4.2
15460      # and later when we are not doing run time linking.
15461      library_names_spec='${libname}${release}.a $libname.a'
15462      soname_spec='${libname}${release}${shared_ext}$major'
15463    fi
15464    shlibpath_var=LIBPATH
15465  fi
15466  ;;
15467
15468amigaos*)
15469  case $host_cpu in
15470  powerpc)
15471    # Since July 2007 AmigaOS4 officially supports .so libraries.
15472    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15473    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15474    ;;
15475  m68k)
15476    library_names_spec='$libname.ixlibrary $libname.a'
15477    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15478    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
15479    ;;
15480  esac
15481  ;;
15482
15483beos*)
15484  library_names_spec='${libname}${shared_ext}'
15485  dynamic_linker="$host_os ld.so"
15486  shlibpath_var=LIBRARY_PATH
15487  ;;
15488
15489bsdi[45]*)
15490  version_type=linux # correct to gnu/linux during the next big refactor
15491  need_version=no
15492  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15493  soname_spec='${libname}${release}${shared_ext}$major'
15494  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15495  shlibpath_var=LD_LIBRARY_PATH
15496  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15497  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15498  # the default ld.so.conf also contains /usr/contrib/lib and
15499  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15500  # libtool to hard-code these into programs
15501  ;;
15502
15503cygwin* | mingw* | pw32* | cegcc*)
15504  version_type=windows
15505  shrext_cmds=".dll"
15506  need_version=no
15507  need_lib_prefix=no
15508
15509  case $GCC,$cc_basename in
15510  yes,*)
15511    # gcc
15512    library_names_spec='$libname.dll.a'
15513    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15514    postinstall_cmds='base_file=`basename \${file}`~
15515      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15516      dldir=$destdir/`dirname \$dlpath`~
15517      test -d \$dldir || mkdir -p \$dldir~
15518      $install_prog $dir/$dlname \$dldir/$dlname~
15519      chmod a+x \$dldir/$dlname~
15520      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15521        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15522      fi'
15523    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15524      dlpath=$dir/\$dldll~
15525       $RM \$dlpath'
15526    shlibpath_overrides_runpath=yes
15527
15528    case $host_os in
15529    cygwin*)
15530      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15531      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15532
15533      ;;
15534    mingw* | cegcc*)
15535      # MinGW DLLs use traditional 'lib' prefix
15536      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15537      ;;
15538    pw32*)
15539      # pw32 DLLs use 'pw' prefix rather than 'lib'
15540      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15541      ;;
15542    esac
15543    dynamic_linker='Win32 ld.exe'
15544    ;;
15545
15546  *,cl*)
15547    # Native MSVC
15548    libname_spec='$name'
15549    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15550    library_names_spec='${libname}.dll.lib'
15551
15552    case $build_os in
15553    mingw*)
15554      sys_lib_search_path_spec=
15555      lt_save_ifs=$IFS
15556      IFS=';'
15557      for lt_path in $LIB
15558      do
15559        IFS=$lt_save_ifs
15560        # Let DOS variable expansion print the short 8.3 style file name.
15561        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15562        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15563      done
15564      IFS=$lt_save_ifs
15565      # Convert to MSYS style.
15566      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15567      ;;
15568    cygwin*)
15569      # Convert to unix form, then to dos form, then back to unix form
15570      # but this time dos style (no spaces!) so that the unix form looks
15571      # like /cygdrive/c/PROGRA~1:/cygdr...
15572      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15573      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15574      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15575      ;;
15576    *)
15577      sys_lib_search_path_spec="$LIB"
15578      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15579        # It is most probably a Windows format PATH.
15580        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15581      else
15582        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15583      fi
15584      # FIXME: find the short name or the path components, as spaces are
15585      # common. (e.g. "Program Files" -> "PROGRA~1")
15586      ;;
15587    esac
15588
15589    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15590    postinstall_cmds='base_file=`basename \${file}`~
15591      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15592      dldir=$destdir/`dirname \$dlpath`~
15593      test -d \$dldir || mkdir -p \$dldir~
15594      $install_prog $dir/$dlname \$dldir/$dlname'
15595    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15596      dlpath=$dir/\$dldll~
15597       $RM \$dlpath'
15598    shlibpath_overrides_runpath=yes
15599    dynamic_linker='Win32 link.exe'
15600    ;;
15601
15602  *)
15603    # Assume MSVC wrapper
15604    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15605    dynamic_linker='Win32 ld.exe'
15606    ;;
15607  esac
15608  # FIXME: first we should search . and the directory the executable is in
15609  shlibpath_var=PATH
15610  ;;
15611
15612darwin* | rhapsody*)
15613  dynamic_linker="$host_os dyld"
15614  version_type=darwin
15615  need_lib_prefix=no
15616  need_version=no
15617  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15618  soname_spec='${libname}${release}${major}$shared_ext'
15619  shlibpath_overrides_runpath=yes
15620  shlibpath_var=DYLD_LIBRARY_PATH
15621  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15622
15623  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15624  ;;
15625
15626dgux*)
15627  version_type=linux # correct to gnu/linux during the next big refactor
15628  need_lib_prefix=no
15629  need_version=no
15630  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15631  soname_spec='${libname}${release}${shared_ext}$major'
15632  shlibpath_var=LD_LIBRARY_PATH
15633  ;;
15634
15635freebsd* | dragonfly*)
15636  # DragonFly does not have aout.  When/if they implement a new
15637  # versioning mechanism, adjust this.
15638  if test -x /usr/bin/objformat; then
15639    objformat=`/usr/bin/objformat`
15640  else
15641    case $host_os in
15642    freebsd[23].*) objformat=aout ;;
15643    *) objformat=elf ;;
15644    esac
15645  fi
15646  version_type=freebsd-$objformat
15647  case $version_type in
15648    freebsd-elf*)
15649      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15650      need_version=no
15651      need_lib_prefix=no
15652      ;;
15653    freebsd-*)
15654      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15655      need_version=yes
15656      ;;
15657  esac
15658  shlibpath_var=LD_LIBRARY_PATH
15659  case $host_os in
15660  freebsd2.*)
15661    shlibpath_overrides_runpath=yes
15662    ;;
15663  freebsd3.[01]* | freebsdelf3.[01]*)
15664    shlibpath_overrides_runpath=yes
15665    hardcode_into_libs=yes
15666    ;;
15667  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15668  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15669    shlibpath_overrides_runpath=no
15670    hardcode_into_libs=yes
15671    ;;
15672  *) # from 4.6 on, and DragonFly
15673    shlibpath_overrides_runpath=yes
15674    hardcode_into_libs=yes
15675    ;;
15676  esac
15677  ;;
15678
15679gnu*)
15680  version_type=linux # correct to gnu/linux during the next big refactor
15681  need_lib_prefix=no
15682  need_version=no
15683  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15684  soname_spec='${libname}${release}${shared_ext}$major'
15685  shlibpath_var=LD_LIBRARY_PATH
15686  shlibpath_overrides_runpath=no
15687  hardcode_into_libs=yes
15688  ;;
15689
15690haiku*)
15691  version_type=linux # correct to gnu/linux during the next big refactor
15692  need_lib_prefix=no
15693  need_version=no
15694  dynamic_linker="$host_os runtime_loader"
15695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15696  soname_spec='${libname}${release}${shared_ext}$major'
15697  shlibpath_var=LIBRARY_PATH
15698  shlibpath_overrides_runpath=yes
15699  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15700  hardcode_into_libs=yes
15701  ;;
15702
15703hpux9* | hpux10* | hpux11*)
15704  # Give a soname corresponding to the major version so that dld.sl refuses to
15705  # link against other versions.
15706  version_type=sunos
15707  need_lib_prefix=no
15708  need_version=no
15709  case $host_cpu in
15710  ia64*)
15711    shrext_cmds='.so'
15712    hardcode_into_libs=yes
15713    dynamic_linker="$host_os dld.so"
15714    shlibpath_var=LD_LIBRARY_PATH
15715    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15716    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15717    soname_spec='${libname}${release}${shared_ext}$major'
15718    if test "X$HPUX_IA64_MODE" = X32; then
15719      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15720    else
15721      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15722    fi
15723    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15724    ;;
15725  hppa*64*)
15726    shrext_cmds='.sl'
15727    hardcode_into_libs=yes
15728    dynamic_linker="$host_os dld.sl"
15729    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15730    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15731    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15732    soname_spec='${libname}${release}${shared_ext}$major'
15733    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15734    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15735    ;;
15736  *)
15737    shrext_cmds='.sl'
15738    dynamic_linker="$host_os dld.sl"
15739    shlibpath_var=SHLIB_PATH
15740    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15741    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15742    soname_spec='${libname}${release}${shared_ext}$major'
15743    ;;
15744  esac
15745  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15746  postinstall_cmds='chmod 555 $lib'
15747  # or fails outright, so override atomically:
15748  install_override_mode=555
15749  ;;
15750
15751interix[3-9]*)
15752  version_type=linux # correct to gnu/linux during the next big refactor
15753  need_lib_prefix=no
15754  need_version=no
15755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15756  soname_spec='${libname}${release}${shared_ext}$major'
15757  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15758  shlibpath_var=LD_LIBRARY_PATH
15759  shlibpath_overrides_runpath=no
15760  hardcode_into_libs=yes
15761  ;;
15762
15763irix5* | irix6* | nonstopux*)
15764  case $host_os in
15765    nonstopux*) version_type=nonstopux ;;
15766    *)
15767	if test "$lt_cv_prog_gnu_ld" = yes; then
15768		version_type=linux # correct to gnu/linux during the next big refactor
15769	else
15770		version_type=irix
15771	fi ;;
15772  esac
15773  need_lib_prefix=no
15774  need_version=no
15775  soname_spec='${libname}${release}${shared_ext}$major'
15776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15777  case $host_os in
15778  irix5* | nonstopux*)
15779    libsuff= shlibsuff=
15780    ;;
15781  *)
15782    case $LD in # libtool.m4 will add one of these switches to LD
15783    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15784      libsuff= shlibsuff= libmagic=32-bit;;
15785    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15786      libsuff=32 shlibsuff=N32 libmagic=N32;;
15787    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15788      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15789    *) libsuff= shlibsuff= libmagic=never-match;;
15790    esac
15791    ;;
15792  esac
15793  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15794  shlibpath_overrides_runpath=no
15795  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15796  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15797  hardcode_into_libs=yes
15798  ;;
15799
15800# No shared lib support for Linux oldld, aout, or coff.
15801linux*oldld* | linux*aout* | linux*coff*)
15802  dynamic_linker=no
15803  ;;
15804
15805# This must be glibc/ELF.
15806linux* | k*bsd*-gnu | kopensolaris*-gnu)
15807  version_type=linux # correct to gnu/linux during the next big refactor
15808  need_lib_prefix=no
15809  need_version=no
15810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15811  soname_spec='${libname}${release}${shared_ext}$major'
15812  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15813  shlibpath_var=LD_LIBRARY_PATH
15814  shlibpath_overrides_runpath=no
15815
15816  # Some binutils ld are patched to set DT_RUNPATH
15817  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15818  $as_echo_n "(cached) " >&6
15819else
15820  lt_cv_shlibpath_overrides_runpath=no
15821    save_LDFLAGS=$LDFLAGS
15822    save_libdir=$libdir
15823    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15824	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15825    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15826/* end confdefs.h.  */
15827
15828int
15829main ()
15830{
15831
15832  ;
15833  return 0;
15834}
15835_ACEOF
15836if ac_fn_cxx_try_link "$LINENO"; then :
15837  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15838  lt_cv_shlibpath_overrides_runpath=yes
15839fi
15840fi
15841rm -f core conftest.err conftest.$ac_objext \
15842    conftest$ac_exeext conftest.$ac_ext
15843    LDFLAGS=$save_LDFLAGS
15844    libdir=$save_libdir
15845
15846fi
15847
15848  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15849
15850  # This implies no fast_install, which is unacceptable.
15851  # Some rework will be needed to allow for fast_install
15852  # before this can be enabled.
15853  hardcode_into_libs=yes
15854
15855  # Append ld.so.conf contents to the search path
15856  if test -f /etc/ld.so.conf; then
15857    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;s/"//g;/^$/d' | tr '\n' ' '`
15858    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15859  fi
15860
15861  # We used to test for /lib/ld.so.1 and disable shared libraries on
15862  # powerpc, because MkLinux only supported shared libraries with the
15863  # GNU dynamic linker.  Since this was broken with cross compilers,
15864  # most powerpc-linux boxes support dynamic linking these days and
15865  # people can always --disable-shared, the test was removed, and we
15866  # assume the GNU/Linux dynamic linker is in use.
15867  dynamic_linker='GNU/Linux ld.so'
15868  ;;
15869
15870netbsd*)
15871  version_type=sunos
15872  need_lib_prefix=no
15873  need_version=no
15874  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15875    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15876    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15877    dynamic_linker='NetBSD (a.out) ld.so'
15878  else
15879    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15880    soname_spec='${libname}${release}${shared_ext}$major'
15881    dynamic_linker='NetBSD ld.elf_so'
15882  fi
15883  shlibpath_var=LD_LIBRARY_PATH
15884  shlibpath_overrides_runpath=yes
15885  hardcode_into_libs=yes
15886  ;;
15887
15888newsos6)
15889  version_type=linux # correct to gnu/linux during the next big refactor
15890  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15891  shlibpath_var=LD_LIBRARY_PATH
15892  shlibpath_overrides_runpath=yes
15893  ;;
15894
15895*nto* | *qnx*)
15896  version_type=qnx
15897  need_lib_prefix=no
15898  need_version=no
15899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15900  soname_spec='${libname}${release}${shared_ext}$major'
15901  shlibpath_var=LD_LIBRARY_PATH
15902  shlibpath_overrides_runpath=no
15903  hardcode_into_libs=yes
15904  dynamic_linker='ldqnx.so'
15905  ;;
15906
15907openbsd*)
15908  version_type=sunos
15909  sys_lib_dlsearch_path_spec="/usr/lib"
15910  need_lib_prefix=no
15911  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15912  case $host_os in
15913    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15914    *)				need_version=no  ;;
15915  esac
15916  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15917  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15918  shlibpath_var=LD_LIBRARY_PATH
15919  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15920    case $host_os in
15921      openbsd2.[89] | openbsd2.[89].*)
15922	shlibpath_overrides_runpath=no
15923	;;
15924      *)
15925	shlibpath_overrides_runpath=yes
15926	;;
15927      esac
15928  else
15929    shlibpath_overrides_runpath=yes
15930  fi
15931  ;;
15932
15933os2*)
15934  libname_spec='$name'
15935  shrext_cmds=".dll"
15936  need_lib_prefix=no
15937  library_names_spec='$libname${shared_ext} $libname.a'
15938  dynamic_linker='OS/2 ld.exe'
15939  shlibpath_var=LIBPATH
15940  ;;
15941
15942osf3* | osf4* | osf5*)
15943  version_type=osf
15944  need_lib_prefix=no
15945  need_version=no
15946  soname_spec='${libname}${release}${shared_ext}$major'
15947  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948  shlibpath_var=LD_LIBRARY_PATH
15949  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15950  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15951  ;;
15952
15953rdos*)
15954  dynamic_linker=no
15955  ;;
15956
15957solaris*)
15958  version_type=linux # correct to gnu/linux during the next big refactor
15959  need_lib_prefix=no
15960  need_version=no
15961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15962  soname_spec='${libname}${release}${shared_ext}$major'
15963  shlibpath_var=LD_LIBRARY_PATH
15964  shlibpath_overrides_runpath=yes
15965  hardcode_into_libs=yes
15966  # ldd complains unless libraries are executable
15967  postinstall_cmds='chmod +x $lib'
15968  ;;
15969
15970sunos4*)
15971  version_type=sunos
15972  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15973  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15974  shlibpath_var=LD_LIBRARY_PATH
15975  shlibpath_overrides_runpath=yes
15976  if test "$with_gnu_ld" = yes; then
15977    need_lib_prefix=no
15978  fi
15979  need_version=yes
15980  ;;
15981
15982sysv4 | sysv4.3*)
15983  version_type=linux # correct to gnu/linux during the next big refactor
15984  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15985  soname_spec='${libname}${release}${shared_ext}$major'
15986  shlibpath_var=LD_LIBRARY_PATH
15987  case $host_vendor in
15988    sni)
15989      shlibpath_overrides_runpath=no
15990      need_lib_prefix=no
15991      runpath_var=LD_RUN_PATH
15992      ;;
15993    siemens)
15994      need_lib_prefix=no
15995      ;;
15996    motorola)
15997      need_lib_prefix=no
15998      need_version=no
15999      shlibpath_overrides_runpath=no
16000      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16001      ;;
16002  esac
16003  ;;
16004
16005sysv4*MP*)
16006  if test -d /usr/nec ;then
16007    version_type=linux # correct to gnu/linux during the next big refactor
16008    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16009    soname_spec='$libname${shared_ext}.$major'
16010    shlibpath_var=LD_LIBRARY_PATH
16011  fi
16012  ;;
16013
16014sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16015  version_type=freebsd-elf
16016  need_lib_prefix=no
16017  need_version=no
16018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16019  soname_spec='${libname}${release}${shared_ext}$major'
16020  shlibpath_var=LD_LIBRARY_PATH
16021  shlibpath_overrides_runpath=yes
16022  hardcode_into_libs=yes
16023  if test "$with_gnu_ld" = yes; then
16024    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16025  else
16026    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16027    case $host_os in
16028      sco3.2v5*)
16029        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16030	;;
16031    esac
16032  fi
16033  sys_lib_dlsearch_path_spec='/usr/lib'
16034  ;;
16035
16036tpf*)
16037  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16038  version_type=linux # correct to gnu/linux during the next big refactor
16039  need_lib_prefix=no
16040  need_version=no
16041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16042  shlibpath_var=LD_LIBRARY_PATH
16043  shlibpath_overrides_runpath=no
16044  hardcode_into_libs=yes
16045  ;;
16046
16047uts4*)
16048  version_type=linux # correct to gnu/linux during the next big refactor
16049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050  soname_spec='${libname}${release}${shared_ext}$major'
16051  shlibpath_var=LD_LIBRARY_PATH
16052  ;;
16053
16054*)
16055  dynamic_linker=no
16056  ;;
16057esac
16058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16059$as_echo "$dynamic_linker" >&6; }
16060test "$dynamic_linker" = no && can_build_shared=no
16061
16062variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16063if test "$GCC" = yes; then
16064  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16065fi
16066
16067if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16068  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16069fi
16070if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16071  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16072fi
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16112$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16113hardcode_action_CXX=
16114if test -n "$hardcode_libdir_flag_spec_CXX" ||
16115   test -n "$runpath_var_CXX" ||
16116   test "X$hardcode_automatic_CXX" = "Xyes" ; then
16117
16118  # We can hardcode non-existent directories.
16119  if test "$hardcode_direct_CXX" != no &&
16120     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16121     # have to relink, otherwise we might link with an installed library
16122     # when we should be linking with a yet-to-be-installed one
16123     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16124     test "$hardcode_minus_L_CXX" != no; then
16125    # Linking always hardcodes the temporary library directory.
16126    hardcode_action_CXX=relink
16127  else
16128    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16129    hardcode_action_CXX=immediate
16130  fi
16131else
16132  # We cannot hardcode anything, or else we can only hardcode existing
16133  # directories.
16134  hardcode_action_CXX=unsupported
16135fi
16136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16137$as_echo "$hardcode_action_CXX" >&6; }
16138
16139if test "$hardcode_action_CXX" = relink ||
16140   test "$inherit_rpath_CXX" = yes; then
16141  # Fast installation is not supported
16142  enable_fast_install=no
16143elif test "$shlibpath_overrides_runpath" = yes ||
16144     test "$enable_shared" = no; then
16145  # Fast installation is not necessary
16146  enable_fast_install=needless
16147fi
16148
16149
16150
16151
16152
16153
16154
16155  fi # test -n "$compiler"
16156
16157  CC=$lt_save_CC
16158  CFLAGS=$lt_save_CFLAGS
16159  LDCXX=$LD
16160  LD=$lt_save_LD
16161  GCC=$lt_save_GCC
16162  with_gnu_ld=$lt_save_with_gnu_ld
16163  lt_cv_path_LDCXX=$lt_cv_path_LD
16164  lt_cv_path_LD=$lt_save_path_LD
16165  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16166  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16167fi # test "$_lt_caught_CXX_error" != yes
16168
16169ac_ext=c
16170ac_cpp='$CPP $CPPFLAGS'
16171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16173ac_compiler_gnu=$ac_cv_c_compiler_gnu
16174
16175
16176
16177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16178$as_echo_n "checking whether ln -s works... " >&6; }
16179LN_S=$as_ln_s
16180if test "$LN_S" = "ln -s"; then
16181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16182$as_echo "yes" >&6; }
16183else
16184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16185$as_echo "no, using $LN_S" >&6; }
16186fi
16187
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16189$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16190if ${ac_cv_c_bigendian+:} false; then :
16191  $as_echo_n "(cached) " >&6
16192else
16193  ac_cv_c_bigendian=unknown
16194    # See if we're dealing with a universal compiler.
16195    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196/* end confdefs.h.  */
16197#ifndef __APPLE_CC__
16198	       not a universal capable compiler
16199	     #endif
16200	     typedef int dummy;
16201
16202_ACEOF
16203if ac_fn_c_try_compile "$LINENO"; then :
16204
16205	# Check for potential -arch flags.  It is not universal unless
16206	# there are at least two -arch flags with different values.
16207	ac_arch=
16208	ac_prev=
16209	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16210	 if test -n "$ac_prev"; then
16211	   case $ac_word in
16212	     i?86 | x86_64 | ppc | ppc64)
16213	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16214		 ac_arch=$ac_word
16215	       else
16216		 ac_cv_c_bigendian=universal
16217		 break
16218	       fi
16219	       ;;
16220	   esac
16221	   ac_prev=
16222	 elif test "x$ac_word" = "x-arch"; then
16223	   ac_prev=arch
16224	 fi
16225       done
16226fi
16227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228    if test $ac_cv_c_bigendian = unknown; then
16229      # See if sys/param.h defines the BYTE_ORDER macro.
16230      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16231/* end confdefs.h.  */
16232#include <sys/types.h>
16233	     #include <sys/param.h>
16234
16235int
16236main ()
16237{
16238#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16239		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16240		     && LITTLE_ENDIAN)
16241	      bogus endian macros
16242	     #endif
16243
16244  ;
16245  return 0;
16246}
16247_ACEOF
16248if ac_fn_c_try_compile "$LINENO"; then :
16249  # It does; now see whether it defined to BIG_ENDIAN or not.
16250	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16251/* end confdefs.h.  */
16252#include <sys/types.h>
16253		#include <sys/param.h>
16254
16255int
16256main ()
16257{
16258#if BYTE_ORDER != BIG_ENDIAN
16259		 not big endian
16260		#endif
16261
16262  ;
16263  return 0;
16264}
16265_ACEOF
16266if ac_fn_c_try_compile "$LINENO"; then :
16267  ac_cv_c_bigendian=yes
16268else
16269  ac_cv_c_bigendian=no
16270fi
16271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16272fi
16273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16274    fi
16275    if test $ac_cv_c_bigendian = unknown; then
16276      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16277      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278/* end confdefs.h.  */
16279#include <limits.h>
16280
16281int
16282main ()
16283{
16284#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16285	      bogus endian macros
16286	     #endif
16287
16288  ;
16289  return 0;
16290}
16291_ACEOF
16292if ac_fn_c_try_compile "$LINENO"; then :
16293  # It does; now see whether it defined to _BIG_ENDIAN or not.
16294	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16295/* end confdefs.h.  */
16296#include <limits.h>
16297
16298int
16299main ()
16300{
16301#ifndef _BIG_ENDIAN
16302		 not big endian
16303		#endif
16304
16305  ;
16306  return 0;
16307}
16308_ACEOF
16309if ac_fn_c_try_compile "$LINENO"; then :
16310  ac_cv_c_bigendian=yes
16311else
16312  ac_cv_c_bigendian=no
16313fi
16314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16315fi
16316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16317    fi
16318    if test $ac_cv_c_bigendian = unknown; then
16319      # Compile a test program.
16320      if test "$cross_compiling" = yes; then :
16321  # Try to guess by grepping values from an object file.
16322	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16323/* end confdefs.h.  */
16324short int ascii_mm[] =
16325		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16326		short int ascii_ii[] =
16327		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16328		int use_ascii (int i) {
16329		  return ascii_mm[i] + ascii_ii[i];
16330		}
16331		short int ebcdic_ii[] =
16332		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16333		short int ebcdic_mm[] =
16334		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16335		int use_ebcdic (int i) {
16336		  return ebcdic_mm[i] + ebcdic_ii[i];
16337		}
16338		extern int foo;
16339
16340int
16341main ()
16342{
16343return use_ascii (foo) == use_ebcdic (foo);
16344  ;
16345  return 0;
16346}
16347_ACEOF
16348if ac_fn_c_try_compile "$LINENO"; then :
16349  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16350	      ac_cv_c_bigendian=yes
16351	    fi
16352	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16353	      if test "$ac_cv_c_bigendian" = unknown; then
16354		ac_cv_c_bigendian=no
16355	      else
16356		# finding both strings is unlikely to happen, but who knows?
16357		ac_cv_c_bigendian=unknown
16358	      fi
16359	    fi
16360fi
16361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16362else
16363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16364/* end confdefs.h.  */
16365$ac_includes_default
16366int
16367main ()
16368{
16369
16370	     /* Are we little or big endian?  From Harbison&Steele.  */
16371	     union
16372	     {
16373	       long int l;
16374	       char c[sizeof (long int)];
16375	     } u;
16376	     u.l = 1;
16377	     return u.c[sizeof (long int) - 1] == 1;
16378
16379  ;
16380  return 0;
16381}
16382_ACEOF
16383if ac_fn_c_try_run "$LINENO"; then :
16384  ac_cv_c_bigendian=no
16385else
16386  ac_cv_c_bigendian=yes
16387fi
16388rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16389  conftest.$ac_objext conftest.beam conftest.$ac_ext
16390fi
16391
16392    fi
16393fi
16394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16395$as_echo "$ac_cv_c_bigendian" >&6; }
16396 case $ac_cv_c_bigendian in #(
16397   yes)
16398     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16399;; #(
16400   no)
16401      ;; #(
16402   universal)
16403
16404$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16405
16406     ;; #(
16407   *)
16408     as_fn_error $? "unknown endianness
16409 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16410 esac
16411
16412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16413$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16414if ${ac_cv_c_const+:} false; then :
16415  $as_echo_n "(cached) " >&6
16416else
16417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418/* end confdefs.h.  */
16419
16420int
16421main ()
16422{
16423
16424#ifndef __cplusplus
16425  /* Ultrix mips cc rejects this sort of thing.  */
16426  typedef int charset[2];
16427  const charset cs = { 0, 0 };
16428  /* SunOS 4.1.1 cc rejects this.  */
16429  char const *const *pcpcc;
16430  char **ppc;
16431  /* NEC SVR4.0.2 mips cc rejects this.  */
16432  struct point {int x, y;};
16433  static struct point const zero = {0,0};
16434  /* AIX XL C 1.02.0.0 rejects this.
16435     It does not let you subtract one const X* pointer from another in
16436     an arm of an if-expression whose if-part is not a constant
16437     expression */
16438  const char *g = "string";
16439  pcpcc = &g + (g ? g-g : 0);
16440  /* HPUX 7.0 cc rejects these. */
16441  ++pcpcc;
16442  ppc = (char**) pcpcc;
16443  pcpcc = (char const *const *) ppc;
16444  { /* SCO 3.2v4 cc rejects this sort of thing.  */
16445    char tx;
16446    char *t = &tx;
16447    char const *s = 0 ? (char *) 0 : (char const *) 0;
16448
16449    *t++ = 0;
16450    if (s) return 0;
16451  }
16452  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16453    int x[] = {25, 17};
16454    const int *foo = &x[0];
16455    ++foo;
16456  }
16457  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16458    typedef const int *iptr;
16459    iptr p = 0;
16460    ++p;
16461  }
16462  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16463       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16464    struct s { int j; const int *ap[3]; } bx;
16465    struct s *b = &bx; b->j = 5;
16466  }
16467  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16468    const int foo = 10;
16469    if (!foo) return 0;
16470  }
16471  return !cs[0] && !zero.x;
16472#endif
16473
16474  ;
16475  return 0;
16476}
16477_ACEOF
16478if ac_fn_c_try_compile "$LINENO"; then :
16479  ac_cv_c_const=yes
16480else
16481  ac_cv_c_const=no
16482fi
16483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16484fi
16485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16486$as_echo "$ac_cv_c_const" >&6; }
16487if test $ac_cv_c_const = no; then
16488
16489$as_echo "#define const /**/" >>confdefs.h
16490
16491fi
16492
16493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16494$as_echo_n "checking for inline... " >&6; }
16495if ${ac_cv_c_inline+:} false; then :
16496  $as_echo_n "(cached) " >&6
16497else
16498  ac_cv_c_inline=no
16499for ac_kw in inline __inline__ __inline; do
16500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501/* end confdefs.h.  */
16502#ifndef __cplusplus
16503typedef int foo_t;
16504static $ac_kw foo_t static_foo () {return 0; }
16505$ac_kw foo_t foo () {return 0; }
16506#endif
16507
16508_ACEOF
16509if ac_fn_c_try_compile "$LINENO"; then :
16510  ac_cv_c_inline=$ac_kw
16511fi
16512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16513  test "$ac_cv_c_inline" != no && break
16514done
16515
16516fi
16517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16518$as_echo "$ac_cv_c_inline" >&6; }
16519
16520case $ac_cv_c_inline in
16521  inline | yes) ;;
16522  *)
16523    case $ac_cv_c_inline in
16524      no) ac_val=;;
16525      *) ac_val=$ac_cv_c_inline;;
16526    esac
16527    cat >>confdefs.h <<_ACEOF
16528#ifndef __cplusplus
16529#define inline $ac_val
16530#endif
16531_ACEOF
16532    ;;
16533esac
16534
16535# Check whether --enable-largefile was given.
16536if test "${enable_largefile+set}" = set; then :
16537  enableval=$enable_largefile;
16538fi
16539
16540if test "$enable_largefile" != no; then
16541
16542  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
16543$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
16544if ${ac_cv_sys_largefile_CC+:} false; then :
16545  $as_echo_n "(cached) " >&6
16546else
16547  ac_cv_sys_largefile_CC=no
16548     if test "$GCC" != yes; then
16549       ac_save_CC=$CC
16550       while :; do
16551	 # IRIX 6.2 and later do not support large files by default,
16552	 # so use the C compiler's -n32 option if that helps.
16553	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16554/* end confdefs.h.  */
16555#include <sys/types.h>
16556 /* Check that off_t can represent 2**63 - 1 correctly.
16557    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16558    since some C++ compilers masquerading as C compilers
16559    incorrectly reject 9223372036854775807.  */
16560#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16561  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16562		       && LARGE_OFF_T % 2147483647 == 1)
16563		      ? 1 : -1];
16564int
16565main ()
16566{
16567
16568  ;
16569  return 0;
16570}
16571_ACEOF
16572	 if ac_fn_c_try_compile "$LINENO"; then :
16573  break
16574fi
16575rm -f core conftest.err conftest.$ac_objext
16576	 CC="$CC -n32"
16577	 if ac_fn_c_try_compile "$LINENO"; then :
16578  ac_cv_sys_largefile_CC=' -n32'; break
16579fi
16580rm -f core conftest.err conftest.$ac_objext
16581	 break
16582       done
16583       CC=$ac_save_CC
16584       rm -f conftest.$ac_ext
16585    fi
16586fi
16587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
16588$as_echo "$ac_cv_sys_largefile_CC" >&6; }
16589  if test "$ac_cv_sys_largefile_CC" != no; then
16590    CC=$CC$ac_cv_sys_largefile_CC
16591  fi
16592
16593  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
16594$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
16595if ${ac_cv_sys_file_offset_bits+:} false; then :
16596  $as_echo_n "(cached) " >&6
16597else
16598  while :; do
16599  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16600/* end confdefs.h.  */
16601#include <sys/types.h>
16602 /* Check that off_t can represent 2**63 - 1 correctly.
16603    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16604    since some C++ compilers masquerading as C compilers
16605    incorrectly reject 9223372036854775807.  */
16606#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16607  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16608		       && LARGE_OFF_T % 2147483647 == 1)
16609		      ? 1 : -1];
16610int
16611main ()
16612{
16613
16614  ;
16615  return 0;
16616}
16617_ACEOF
16618if ac_fn_c_try_compile "$LINENO"; then :
16619  ac_cv_sys_file_offset_bits=no; break
16620fi
16621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16623/* end confdefs.h.  */
16624#define _FILE_OFFSET_BITS 64
16625#include <sys/types.h>
16626 /* Check that off_t can represent 2**63 - 1 correctly.
16627    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16628    since some C++ compilers masquerading as C compilers
16629    incorrectly reject 9223372036854775807.  */
16630#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16631  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16632		       && LARGE_OFF_T % 2147483647 == 1)
16633		      ? 1 : -1];
16634int
16635main ()
16636{
16637
16638  ;
16639  return 0;
16640}
16641_ACEOF
16642if ac_fn_c_try_compile "$LINENO"; then :
16643  ac_cv_sys_file_offset_bits=64; break
16644fi
16645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16646  ac_cv_sys_file_offset_bits=unknown
16647  break
16648done
16649fi
16650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
16651$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
16652case $ac_cv_sys_file_offset_bits in #(
16653  no | unknown) ;;
16654  *)
16655cat >>confdefs.h <<_ACEOF
16656#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
16657_ACEOF
16658;;
16659esac
16660rm -rf conftest*
16661  if test $ac_cv_sys_file_offset_bits = unknown; then
16662    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
16663$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
16664if ${ac_cv_sys_large_files+:} false; then :
16665  $as_echo_n "(cached) " >&6
16666else
16667  while :; do
16668  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669/* end confdefs.h.  */
16670#include <sys/types.h>
16671 /* Check that off_t can represent 2**63 - 1 correctly.
16672    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16673    since some C++ compilers masquerading as C compilers
16674    incorrectly reject 9223372036854775807.  */
16675#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16676  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16677		       && LARGE_OFF_T % 2147483647 == 1)
16678		      ? 1 : -1];
16679int
16680main ()
16681{
16682
16683  ;
16684  return 0;
16685}
16686_ACEOF
16687if ac_fn_c_try_compile "$LINENO"; then :
16688  ac_cv_sys_large_files=no; break
16689fi
16690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16692/* end confdefs.h.  */
16693#define _LARGE_FILES 1
16694#include <sys/types.h>
16695 /* Check that off_t can represent 2**63 - 1 correctly.
16696    We can't simply define LARGE_OFF_T to be 9223372036854775807,
16697    since some C++ compilers masquerading as C compilers
16698    incorrectly reject 9223372036854775807.  */
16699#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
16700  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
16701		       && LARGE_OFF_T % 2147483647 == 1)
16702		      ? 1 : -1];
16703int
16704main ()
16705{
16706
16707  ;
16708  return 0;
16709}
16710_ACEOF
16711if ac_fn_c_try_compile "$LINENO"; then :
16712  ac_cv_sys_large_files=1; break
16713fi
16714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16715  ac_cv_sys_large_files=unknown
16716  break
16717done
16718fi
16719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
16720$as_echo "$ac_cv_sys_large_files" >&6; }
16721case $ac_cv_sys_large_files in #(
16722  no | unknown) ;;
16723  *)
16724cat >>confdefs.h <<_ACEOF
16725#define _LARGE_FILES $ac_cv_sys_large_files
16726_ACEOF
16727;;
16728esac
16729rm -rf conftest*
16730  fi
16731
16732
16733fi
16734
16735
16736# By default we simply use the C compiler to build assembly code.
16737
16738test "${CCAS+set}" = set || CCAS=$CC
16739test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
16740
16741
16742
16743depcc="$CCAS"   am_compiler_list=
16744
16745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16746$as_echo_n "checking dependency style of $depcc... " >&6; }
16747if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
16748  $as_echo_n "(cached) " >&6
16749else
16750  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16751  # We make a subdir and do the tests there.  Otherwise we can end up
16752  # making bogus files that we don't know about and never remove.  For
16753  # instance it was reported that on HP-UX the gcc test will end up
16754  # making a dummy file named 'D' -- because '-MD' means "put the output
16755  # in D".
16756  rm -rf conftest.dir
16757  mkdir conftest.dir
16758  # Copy depcomp to subdir because otherwise we won't find it if we're
16759  # using a relative directory.
16760  cp "$am_depcomp" conftest.dir
16761  cd conftest.dir
16762  # We will build objects and dependencies in a subdirectory because
16763  # it helps to detect inapplicable dependency modes.  For instance
16764  # both Tru64's cc and ICC support -MD to output dependencies as a
16765  # side effect of compilation, but ICC will put the dependencies in
16766  # the current directory while Tru64 will put them in the object
16767  # directory.
16768  mkdir sub
16769
16770  am_cv_CCAS_dependencies_compiler_type=none
16771  if test "$am_compiler_list" = ""; then
16772     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16773  fi
16774  am__universal=false
16775
16776
16777  for depmode in $am_compiler_list; do
16778    # Setup a source with many dependencies, because some compilers
16779    # like to wrap large dependency lists on column 80 (with \), and
16780    # we should not choose a depcomp mode which is confused by this.
16781    #
16782    # We need to recreate these files for each test, as the compiler may
16783    # overwrite some of them when testing with obscure command lines.
16784    # This happens at least with the AIX C compiler.
16785    : > sub/conftest.c
16786    for i in 1 2 3 4 5 6; do
16787      echo '#include "conftst'$i'.h"' >> sub/conftest.c
16788      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16789      # Solaris 10 /bin/sh.
16790      echo '/* dummy */' > sub/conftst$i.h
16791    done
16792    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16793
16794    # We check with '-c' and '-o' for the sake of the "dashmstdout"
16795    # mode.  It turns out that the SunPro C++ compiler does not properly
16796    # handle '-M -o', and we need to detect this.  Also, some Intel
16797    # versions had trouble with output in subdirs.
16798    am__obj=sub/conftest.${OBJEXT-o}
16799    am__minus_obj="-o $am__obj"
16800    case $depmode in
16801    gcc)
16802      # This depmode causes a compiler race in universal mode.
16803      test "$am__universal" = false || continue
16804      ;;
16805    nosideeffect)
16806      # After this tag, mechanisms are not by side-effect, so they'll
16807      # only be used when explicitly requested.
16808      if test "x$enable_dependency_tracking" = xyes; then
16809	continue
16810      else
16811	break
16812      fi
16813      ;;
16814    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16815      # This compiler won't grok '-c -o', but also, the minuso test has
16816      # not run yet.  These depmodes are late enough in the game, and
16817      # so weak that their functioning should not be impacted.
16818      am__obj=conftest.${OBJEXT-o}
16819      am__minus_obj=
16820      ;;
16821    none) break ;;
16822    esac
16823    if depmode=$depmode \
16824       source=sub/conftest.c object=$am__obj \
16825       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16826       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16827         >/dev/null 2>conftest.err &&
16828       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16829       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16830       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16831       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16832      # icc doesn't choke on unknown options, it will just issue warnings
16833      # or remarks (even with -Werror).  So we grep stderr for any message
16834      # that says an option was ignored or not supported.
16835      # When given -MP, icc 7.0 and 7.1 complain thusly:
16836      #   icc: Command line warning: ignoring option '-M'; no argument required
16837      # The diagnosis changed in icc 8.0:
16838      #   icc: Command line remark: option '-MP' not supported
16839      if (grep 'ignoring option' conftest.err ||
16840          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16841        am_cv_CCAS_dependencies_compiler_type=$depmode
16842        break
16843      fi
16844    fi
16845  done
16846
16847  cd ..
16848  rm -rf conftest.dir
16849else
16850  am_cv_CCAS_dependencies_compiler_type=none
16851fi
16852
16853fi
16854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
16855$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
16856CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
16857
16858 if
16859  test "x$enable_dependency_tracking" != xno \
16860  && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
16861  am__fastdepCCAS_TRUE=
16862  am__fastdepCCAS_FALSE='#'
16863else
16864  am__fastdepCCAS_TRUE='#'
16865  am__fastdepCCAS_FALSE=
16866fi
16867
16868
16869
16870if test x"$with_extra_cflags" != "x"; then
16871   CFLAGS="$CFLAGS $with_extra_cflags"
16872   CXXFLAGS="$CXXFLAGS $with_extra_cflags"
16873   CCASFLAGS="$CCASFLAGS $with_extra_cflags"
16874fi
16875
16876for ac_header in stdint.h inttypes.h sys/types.h getopt.h malloc.h sys/soundcard.h
16877do :
16878  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16879ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16880if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16881  cat >>confdefs.h <<_ACEOF
16882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16883_ACEOF
16884
16885fi
16886
16887done
16888
16889
16890#maddog:  check for math lib, and add it to LIBS (needed for fmax, lround...)
16891#maddog:  (How does this interact with cpml stuff below???????)
16892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16893$as_echo_n "checking for sin in -lm... " >&6; }
16894if ${ac_cv_lib_m_sin+:} false; then :
16895  $as_echo_n "(cached) " >&6
16896else
16897  ac_check_lib_save_LIBS=$LIBS
16898LIBS="-lm  $LIBS"
16899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16900/* end confdefs.h.  */
16901
16902/* Override any GCC internal prototype to avoid an error.
16903   Use char because int might match the return type of a GCC
16904   builtin and then its argument prototype would still apply.  */
16905#ifdef __cplusplus
16906extern "C"
16907#endif
16908char sin ();
16909int
16910main ()
16911{
16912return sin ();
16913  ;
16914  return 0;
16915}
16916_ACEOF
16917if ac_fn_c_try_link "$LINENO"; then :
16918  ac_cv_lib_m_sin=yes
16919else
16920  ac_cv_lib_m_sin=no
16921fi
16922rm -f core conftest.err conftest.$ac_objext \
16923    conftest$ac_exeext conftest.$ac_ext
16924LIBS=$ac_check_lib_save_LIBS
16925fi
16926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16927$as_echo "$ac_cv_lib_m_sin" >&6; }
16928if test "x$ac_cv_lib_m_sin" = xyes; then :
16929  cat >>confdefs.h <<_ACEOF
16930#define HAVE_LIBM 1
16931_ACEOF
16932
16933  LIBS="-lm $LIBS"
16934
16935fi
16936
16937for ac_func in posix_memalign memalign fmax fmin lround
16938do :
16939  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16940ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16941if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16942  cat >>confdefs.h <<_ACEOF
16943#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16944_ACEOF
16945
16946fi
16947done
16948
16949
16950ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
16951if test "x$ac_cv_func_getopt_long" = xyes; then :
16952
16953$as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
16954
16955else
16956   # FreeBSD and BSD/OS have a gnugetopt library for this:
16957               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt" >&5
16958$as_echo_n "checking for getopt_long in -lgnugetopt... " >&6; }
16959if ${ac_cv_lib_gnugetopt_getopt_long+:} false; then :
16960  $as_echo_n "(cached) " >&6
16961else
16962  ac_check_lib_save_LIBS=$LIBS
16963LIBS="-lgnugetopt  $LIBS"
16964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965/* end confdefs.h.  */
16966
16967/* Override any GCC internal prototype to avoid an error.
16968   Use char because int might match the return type of a GCC
16969   builtin and then its argument prototype would still apply.  */
16970#ifdef __cplusplus
16971extern "C"
16972#endif
16973char getopt_long ();
16974int
16975main ()
16976{
16977return getopt_long ();
16978  ;
16979  return 0;
16980}
16981_ACEOF
16982if ac_fn_c_try_link "$LINENO"; then :
16983  ac_cv_lib_gnugetopt_getopt_long=yes
16984else
16985  ac_cv_lib_gnugetopt_getopt_long=no
16986fi
16987rm -f core conftest.err conftest.$ac_objext \
16988    conftest$ac_exeext conftest.$ac_ext
16989LIBS=$ac_check_lib_save_LIBS
16990fi
16991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
16992$as_echo "$ac_cv_lib_gnugetopt_getopt_long" >&6; }
16993if test "x$ac_cv_lib_gnugetopt_getopt_long" = xyes; then :
16994
16995$as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
16996
16997                             LIBGETOPT_LIB="-lgnugetopt"
16998fi
16999
17000
17001fi
17002
17003
17004
17005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
17006$as_echo_n "checking return type of signal handlers... " >&6; }
17007if ${ac_cv_type_signal+:} false; then :
17008  $as_echo_n "(cached) " >&6
17009else
17010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17011/* end confdefs.h.  */
17012#include <sys/types.h>
17013#include <signal.h>
17014
17015int
17016main ()
17017{
17018return *(signal (0, 0)) (0) == 1;
17019  ;
17020  return 0;
17021}
17022_ACEOF
17023if ac_fn_c_try_compile "$LINENO"; then :
17024  ac_cv_type_signal=int
17025else
17026  ac_cv_type_signal=void
17027fi
17028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17029fi
17030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
17031$as_echo "$ac_cv_type_signal" >&6; }
17032
17033cat >>confdefs.h <<_ACEOF
17034#define RETSIGTYPE $ac_cv_type_signal
17035_ACEOF
17036
17037
17038
17039{ $as_echo "$as_me:${as_lineno-$LINENO}: The host is $host  $host_cpu  $host_vendor  $host_os ." >&5
17040$as_echo "$as_me: The host is $host  $host_cpu  $host_vendor  $host_os ." >&6;}
17041
17042LIBM_LIBS="-lm "
17043
17044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alpha architecture" >&5
17045$as_echo_n "checking for alpha architecture... " >&6; }
17046case $host in
17047	alpha*-*-linux-*)
17048	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17049$as_echo "yes" >&6; }
17050	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lcpml" >&5
17051$as_echo_n "checking for asin in -lcpml... " >&6; }
17052if ${ac_cv_lib_cpml_asin+:} false; then :
17053  $as_echo_n "(cached) " >&6
17054else
17055  ac_check_lib_save_LIBS=$LIBS
17056LIBS="-lcpml  $LIBS"
17057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17058/* end confdefs.h.  */
17059
17060/* Override any GCC internal prototype to avoid an error.
17061   Use char because int might match the return type of a GCC
17062   builtin and then its argument prototype would still apply.  */
17063#ifdef __cplusplus
17064extern "C"
17065#endif
17066char asin ();
17067int
17068main ()
17069{
17070return asin ();
17071  ;
17072  return 0;
17073}
17074_ACEOF
17075if ac_fn_c_try_link "$LINENO"; then :
17076  ac_cv_lib_cpml_asin=yes
17077else
17078  ac_cv_lib_cpml_asin=no
17079fi
17080rm -f core conftest.err conftest.$ac_objext \
17081    conftest$ac_exeext conftest.$ac_ext
17082LIBS=$ac_check_lib_save_LIBS
17083fi
17084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpml_asin" >&5
17085$as_echo "$ac_cv_lib_cpml_asin" >&6; }
17086if test "x$ac_cv_lib_cpml_asin" = xyes; then :
17087   LIBM_LIBS="-lcpml"
17088                           have_cpml=true
17089fi
17090
17091            ;;
17092        *)
17093            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17094$as_echo "no" >&6; }
17095            ;;
17096esac
17097
17098case $host in
17099  *-apple-darwin*)
17100   CFLAGS="$CFLAGS -no-cpp-precomp"
17101   ;;
17102  *-unknown-netbsdelf2.*)
17103   LIBS="-lossaudio"
17104   ;;
17105  *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) EXTRA_LDFLAGS="-no-undefined"
17106   ;;
17107esac
17108
17109
17110
17111have_video4linux=false
17112
17113# Check whether --with-v4l was given.
17114if test "${with_v4l+set}" = set; then :
17115  withval=$with_v4l;
17116fi
17117
17118if test "x$with_v4l" != "xno"; then :
17119
17120case $host in
17121  *-*-*)
17122  ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
17123if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
17124  have_video4linux=true
17125
17126$as_echo "#define HAVE_V4L 1" >>confdefs.h
17127
17128fi
17129
17130
17131  ;;
17132esac
17133fi
17134
17135if test "x$have_video4linux" != "xtrue" && test "x$with_v4l" != "xno"; then :
17136  have_video4linux=false
17137	 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: videodev.h not found - please install the linux kernel headers programms needing v4l disabled" >&5
17138$as_echo "$as_me: WARNING: videodev.h not found - please install the linux kernel headers programms needing v4l disabled" >&2;}
17139fi
17140 if test x$have_video4linux = xtrue; then
17141  HAVE_V4L_TRUE=
17142  HAVE_V4L_FALSE='#'
17143else
17144  HAVE_V4L_TRUE='#'
17145  HAVE_V4L_FALSE=
17146fi
17147
17148
17149
17150
17151
17152ac_ext=c
17153ac_cpp='$CPP $CPPFLAGS'
17154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17156ac_compiler_gnu=$ac_cv_c_compiler_gnu
17157
17158acx_pthread_ok=no
17159
17160# We used to check for pthread.h first, but this fails if pthread.h
17161# requires special compiler flags (e.g. on True64 or Sequent).
17162# It gets checked for in the link test anyway.
17163
17164# First of all, check if the user has set any of the PTHREAD_LIBS,
17165# etcetera environment variables, and if threads linking works using
17166# them:
17167if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
17168        save_CFLAGS="$CFLAGS"
17169        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17170        save_LIBS="$LIBS"
17171        LIBS="$PTHREAD_LIBS $LIBS"
17172        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
17173$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
17174        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17175/* end confdefs.h.  */
17176
17177/* Override any GCC internal prototype to avoid an error.
17178   Use char because int might match the return type of a GCC
17179   builtin and then its argument prototype would still apply.  */
17180#ifdef __cplusplus
17181extern "C"
17182#endif
17183char pthread_join ();
17184int
17185main ()
17186{
17187return pthread_join ();
17188  ;
17189  return 0;
17190}
17191_ACEOF
17192if ac_fn_c_try_link "$LINENO"; then :
17193  acx_pthread_ok=yes
17194fi
17195rm -f core conftest.err conftest.$ac_objext \
17196    conftest$ac_exeext conftest.$ac_ext
17197        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17198$as_echo "$acx_pthread_ok" >&6; }
17199        if test x"$acx_pthread_ok" = xno; then
17200                PTHREAD_LIBS=""
17201                PTHREAD_CFLAGS=""
17202        fi
17203        LIBS="$save_LIBS"
17204        CFLAGS="$save_CFLAGS"
17205fi
17206
17207# We must check for the threads library under a number of different
17208# names; the ordering is very important because some systems
17209# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
17210# libraries is broken (non-POSIX).
17211
17212# Create a list of thread flags to try.  Items starting with a "-" are
17213# C compiler flags, and other items are library names, except for "none"
17214# which indicates that we try without any flags at all, and "pthread-config"
17215# which is a program returning the flags for the Pth emulation library.
17216
17217acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
17218
17219# The ordering *is* (sometimes) important.  Some notes on the
17220# individual items follow:
17221
17222# pthreads: AIX (must check this before -lpthread)
17223# none: in case threads are in libc; should be tried before -Kthread and
17224#       other compiler flags to prevent continual compiler warnings
17225# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
17226# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
17227# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
17228# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
17229# -pthreads: Solaris/gcc
17230# -mthreads: Mingw32/gcc, Lynx/gcc
17231# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
17232#      doesn't hurt to check since this sometimes defines pthreads too;
17233#      also defines -D_REENTRANT)
17234# pthread: Linux, etcetera
17235# --thread-safe: KAI C++
17236# pthread-config: use pthread-config program (for GNU Pth library)
17237
17238case "${host_cpu}-${host_os}" in
17239        *solaris*)
17240
17241        # On Solaris (at least, for some versions), libc contains stubbed
17242        # (non-functional) versions of the pthreads routines, so link-based
17243        # tests will erroneously succeed.  (We need to link with -pthread or
17244        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
17245        # a function called by this macro, so we could check for that, but
17246        # who knows whether they'll stub that too in a future libc.)  So,
17247        # we'll just look for -pthreads and -lpthread first:
17248
17249        acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
17250        ;;
17251esac
17252
17253if test x"$acx_pthread_ok" = xno; then
17254for flag in $acx_pthread_flags; do
17255
17256        case $flag in
17257                none)
17258                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
17259$as_echo_n "checking whether pthreads work without any flags... " >&6; }
17260                ;;
17261
17262                -*)
17263                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
17264$as_echo_n "checking whether pthreads work with $flag... " >&6; }
17265                PTHREAD_CFLAGS="$flag"
17266                ;;
17267
17268                pthread-config)
17269                # Extract the first word of "pthread-config", so it can be a program name with args.
17270set dummy pthread-config; ac_word=$2
17271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17272$as_echo_n "checking for $ac_word... " >&6; }
17273if ${ac_cv_prog_acx_pthread_config+:} false; then :
17274  $as_echo_n "(cached) " >&6
17275else
17276  if test -n "$acx_pthread_config"; then
17277  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
17278else
17279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17280for as_dir in $PATH
17281do
17282  IFS=$as_save_IFS
17283  test -z "$as_dir" && as_dir=.
17284    for ac_exec_ext in '' $ac_executable_extensions; do
17285  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17286    ac_cv_prog_acx_pthread_config="yes"
17287    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17288    break 2
17289  fi
17290done
17291  done
17292IFS=$as_save_IFS
17293
17294  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
17295fi
17296fi
17297acx_pthread_config=$ac_cv_prog_acx_pthread_config
17298if test -n "$acx_pthread_config"; then
17299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
17300$as_echo "$acx_pthread_config" >&6; }
17301else
17302  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17303$as_echo "no" >&6; }
17304fi
17305
17306
17307                if test x"$acx_pthread_config" = xno; then continue; fi
17308                PTHREAD_CFLAGS="`pthread-config --cflags`"
17309                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
17310                ;;
17311
17312                *)
17313                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
17314$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
17315                PTHREAD_LIBS="-l$flag"
17316                ;;
17317        esac
17318
17319        save_LIBS="$LIBS"
17320        save_CFLAGS="$CFLAGS"
17321        LIBS="$PTHREAD_LIBS $LIBS"
17322        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17323
17324        # Check for various functions.  We must include pthread.h,
17325        # since some functions may be macros.  (On the Sequent, we
17326        # need a special flag -Kthread to make this header compile.)
17327        # We check for pthread_join because it is in -lpthread on IRIX
17328        # while pthread_create is in libc.  We check for pthread_attr_init
17329        # due to DEC craziness with -lpthreads.  We check for
17330        # pthread_cleanup_push because it is one of the few pthread
17331        # functions on Solaris that doesn't have a non-functional libc stub.
17332        # We try pthread_create on general principles.
17333        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17334/* end confdefs.h.  */
17335#include <pthread.h>
17336int
17337main ()
17338{
17339pthread_t th; pthread_join(th, 0);
17340                     pthread_attr_init(0); pthread_cleanup_push(0, 0);
17341                     pthread_create(0,0,0,0); pthread_cleanup_pop(0);
17342  ;
17343  return 0;
17344}
17345_ACEOF
17346if ac_fn_c_try_link "$LINENO"; then :
17347  acx_pthread_ok=yes
17348fi
17349rm -f core conftest.err conftest.$ac_objext \
17350    conftest$ac_exeext conftest.$ac_ext
17351
17352        LIBS="$save_LIBS"
17353        CFLAGS="$save_CFLAGS"
17354
17355        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
17356$as_echo "$acx_pthread_ok" >&6; }
17357        if test "x$acx_pthread_ok" = xyes; then
17358                break;
17359        fi
17360
17361        PTHREAD_LIBS=""
17362        PTHREAD_CFLAGS=""
17363done
17364fi
17365
17366# Various other checks:
17367if test "x$acx_pthread_ok" = xyes; then
17368        save_LIBS="$LIBS"
17369        LIBS="$PTHREAD_LIBS $LIBS"
17370        save_CFLAGS="$CFLAGS"
17371        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17372
17373        # Detect AIX lossage: threads are created detached by default
17374        # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
17375        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
17376$as_echo_n "checking for joinable pthread attribute... " >&6; }
17377        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17378/* end confdefs.h.  */
17379#include <pthread.h>
17380int
17381main ()
17382{
17383int attr=PTHREAD_CREATE_JOINABLE;
17384  ;
17385  return 0;
17386}
17387_ACEOF
17388if ac_fn_c_try_link "$LINENO"; then :
17389  ok=PTHREAD_CREATE_JOINABLE
17390else
17391  ok=unknown
17392fi
17393rm -f core conftest.err conftest.$ac_objext \
17394    conftest$ac_exeext conftest.$ac_ext
17395        if test x"$ok" = xunknown; then
17396                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397/* end confdefs.h.  */
17398#include <pthread.h>
17399int
17400main ()
17401{
17402int attr=PTHREAD_CREATE_UNDETACHED;
17403  ;
17404  return 0;
17405}
17406_ACEOF
17407if ac_fn_c_try_link "$LINENO"; then :
17408  ok=PTHREAD_CREATE_UNDETACHED
17409else
17410  ok=unknown
17411fi
17412rm -f core conftest.err conftest.$ac_objext \
17413    conftest$ac_exeext conftest.$ac_ext
17414        fi
17415        if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
17416
17417$as_echo "#define PTHREAD_CREATE_JOINABLE \$ok" >>confdefs.h
17418
17419        fi
17420        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
17421$as_echo "${ok}" >&6; }
17422        if test x"$ok" = xunknown; then
17423                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we do not know how to create joinable pthreads" >&5
17424$as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
17425        fi
17426
17427        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
17428$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
17429        flag=no
17430        case "${host_cpu}-${host_os}" in
17431                *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
17432                *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
17433        esac
17434        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
17435$as_echo "${flag}" >&6; }
17436        if test "x$flag" != xno; then
17437                PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
17438        fi
17439
17440        LIBS="$save_LIBS"
17441        CFLAGS="$save_CFLAGS"
17442
17443        # More AIX lossage: must compile with cc_r
17444        # Extract the first word of "cc_r", so it can be a program name with args.
17445set dummy cc_r; ac_word=$2
17446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17447$as_echo_n "checking for $ac_word... " >&6; }
17448if ${ac_cv_prog_PTHREAD_CC+:} false; then :
17449  $as_echo_n "(cached) " >&6
17450else
17451  if test -n "$PTHREAD_CC"; then
17452  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
17453else
17454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17455for as_dir in $PATH
17456do
17457  IFS=$as_save_IFS
17458  test -z "$as_dir" && as_dir=.
17459    for ac_exec_ext in '' $ac_executable_extensions; do
17460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17461    ac_cv_prog_PTHREAD_CC="cc_r"
17462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17463    break 2
17464  fi
17465done
17466  done
17467IFS=$as_save_IFS
17468
17469  test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
17470fi
17471fi
17472PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
17473if test -n "$PTHREAD_CC"; then
17474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
17475$as_echo "$PTHREAD_CC" >&6; }
17476else
17477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17478$as_echo "no" >&6; }
17479fi
17480
17481
17482else
17483        PTHREAD_CC="$CC"
17484fi
17485
17486
17487
17488
17489
17490# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
17491if test x"$acx_pthread_ok" = xyes; then
17492
17493$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
17494
17495        :
17496else
17497        acx_pthread_ok=no
17498
17499fi
17500ac_ext=c
17501ac_cpp='$CPP $CPPFLAGS'
17502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17504ac_compiler_gnu=$ac_cv_c_compiler_gnu
17505
17506
17507CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
17508CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
17509CC="$PTHREAD_CC"
17510
17511oldLIBS="$LIBS"
17512LIBS="$LIBS $PTHREAD_LIBS"
17513ac_fn_c_check_func "$LINENO" "pthread_attr_getstacksize" "ac_cv_func_pthread_attr_getstacksize"
17514if test "x$ac_cv_func_pthread_attr_getstacksize" = xyes; then :
17515
17516$as_echo "#define HAVE_PTHREADSTACKSIZE 1" >>confdefs.h
17517
17518fi
17519
17520LIBS="$oldLIBS"
17521
17522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_start_compress in -ljpeg" >&5
17523$as_echo_n "checking for jpeg_start_compress in -ljpeg... " >&6; }
17524if ${ac_cv_lib_jpeg_jpeg_start_compress+:} false; then :
17525  $as_echo_n "(cached) " >&6
17526else
17527  ac_check_lib_save_LIBS=$LIBS
17528LIBS="-ljpeg  $LIBS"
17529cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17530/* end confdefs.h.  */
17531
17532/* Override any GCC internal prototype to avoid an error.
17533   Use char because int might match the return type of a GCC
17534   builtin and then its argument prototype would still apply.  */
17535#ifdef __cplusplus
17536extern "C"
17537#endif
17538char jpeg_start_compress ();
17539int
17540main ()
17541{
17542return jpeg_start_compress ();
17543  ;
17544  return 0;
17545}
17546_ACEOF
17547if ac_fn_c_try_link "$LINENO"; then :
17548  ac_cv_lib_jpeg_jpeg_start_compress=yes
17549else
17550  ac_cv_lib_jpeg_jpeg_start_compress=no
17551fi
17552rm -f core conftest.err conftest.$ac_objext \
17553    conftest$ac_exeext conftest.$ac_ext
17554LIBS=$ac_check_lib_save_LIBS
17555fi
17556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_start_compress" >&5
17557$as_echo "$ac_cv_lib_jpeg_jpeg_start_compress" >&6; }
17558if test "x$ac_cv_lib_jpeg_jpeg_start_compress" = xyes; then :
17559   JPEG_LIBS="-ljpeg"
17560	      JPEG_CFLAGS=""
17561	    have_libjpeg=true
17562fi
17563
17564
17565if test x$have_libjpeg != "xtrue"; then
17566   as_fn_error $? "JPEG 6b library missing - Go to http://www.ijg.org/" "$LINENO" 5
17567fi
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
17580	if test -n "$ac_tool_prefix"; then
17581  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
17582set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
17583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17584$as_echo_n "checking for $ac_word... " >&6; }
17585if ${ac_cv_path_PKG_CONFIG+:} false; then :
17586  $as_echo_n "(cached) " >&6
17587else
17588  case $PKG_CONFIG in
17589  [\\/]* | ?:[\\/]*)
17590  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17591  ;;
17592  *)
17593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17594for as_dir in $PATH
17595do
17596  IFS=$as_save_IFS
17597  test -z "$as_dir" && as_dir=.
17598    for ac_exec_ext in '' $ac_executable_extensions; do
17599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17600    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17602    break 2
17603  fi
17604done
17605  done
17606IFS=$as_save_IFS
17607
17608  ;;
17609esac
17610fi
17611PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17612if test -n "$PKG_CONFIG"; then
17613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17614$as_echo "$PKG_CONFIG" >&6; }
17615else
17616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17617$as_echo "no" >&6; }
17618fi
17619
17620
17621fi
17622if test -z "$ac_cv_path_PKG_CONFIG"; then
17623  ac_pt_PKG_CONFIG=$PKG_CONFIG
17624  # Extract the first word of "pkg-config", so it can be a program name with args.
17625set dummy pkg-config; ac_word=$2
17626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17627$as_echo_n "checking for $ac_word... " >&6; }
17628if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
17629  $as_echo_n "(cached) " >&6
17630else
17631  case $ac_pt_PKG_CONFIG in
17632  [\\/]* | ?:[\\/]*)
17633  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
17634  ;;
17635  *)
17636  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17637for as_dir in $PATH
17638do
17639  IFS=$as_save_IFS
17640  test -z "$as_dir" && as_dir=.
17641    for ac_exec_ext in '' $ac_executable_extensions; do
17642  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17643    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17645    break 2
17646  fi
17647done
17648  done
17649IFS=$as_save_IFS
17650
17651  ;;
17652esac
17653fi
17654ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
17655if test -n "$ac_pt_PKG_CONFIG"; then
17656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
17657$as_echo "$ac_pt_PKG_CONFIG" >&6; }
17658else
17659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17660$as_echo "no" >&6; }
17661fi
17662
17663  if test "x$ac_pt_PKG_CONFIG" = x; then
17664    PKG_CONFIG=""
17665  else
17666    case $cross_compiling:$ac_tool_warned in
17667yes:)
17668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17670ac_tool_warned=yes ;;
17671esac
17672    PKG_CONFIG=$ac_pt_PKG_CONFIG
17673  fi
17674else
17675  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
17676fi
17677
17678fi
17679if test -n "$PKG_CONFIG"; then
17680	_pkg_min_version=0.9.0
17681	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
17682$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
17683	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
17684		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17685$as_echo "yes" >&6; }
17686	else
17687		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17688$as_echo "no" >&6; }
17689		PKG_CONFIG=""
17690	fi
17691fi
17692
17693have_libquicktime=false
17694if test x$with_libquicktime != xno ; then
17695
17696pkg_failed=no
17697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBQUICKTIME" >&5
17698$as_echo_n "checking for LIBQUICKTIME... " >&6; }
17699
17700if test -n "$LIBQUICKTIME_CFLAGS"; then
17701    pkg_cv_LIBQUICKTIME_CFLAGS="$LIBQUICKTIME_CFLAGS"
17702 elif test -n "$PKG_CONFIG"; then
17703    if test -n "$PKG_CONFIG" && \
17704    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquicktime > 0.9.7\""; } >&5
17705  ($PKG_CONFIG --exists --print-errors "libquicktime > 0.9.7") 2>&5
17706  ac_status=$?
17707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17708  test $ac_status = 0; }; then
17709  pkg_cv_LIBQUICKTIME_CFLAGS=`$PKG_CONFIG --cflags "libquicktime > 0.9.7" 2>/dev/null`
17710		      test "x$?" != "x0" && pkg_failed=yes
17711else
17712  pkg_failed=yes
17713fi
17714 else
17715    pkg_failed=untried
17716fi
17717if test -n "$LIBQUICKTIME_LIBS"; then
17718    pkg_cv_LIBQUICKTIME_LIBS="$LIBQUICKTIME_LIBS"
17719 elif test -n "$PKG_CONFIG"; then
17720    if test -n "$PKG_CONFIG" && \
17721    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquicktime > 0.9.7\""; } >&5
17722  ($PKG_CONFIG --exists --print-errors "libquicktime > 0.9.7") 2>&5
17723  ac_status=$?
17724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17725  test $ac_status = 0; }; then
17726  pkg_cv_LIBQUICKTIME_LIBS=`$PKG_CONFIG --libs "libquicktime > 0.9.7" 2>/dev/null`
17727		      test "x$?" != "x0" && pkg_failed=yes
17728else
17729  pkg_failed=yes
17730fi
17731 else
17732    pkg_failed=untried
17733fi
17734
17735
17736
17737if test $pkg_failed = yes; then
17738   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17739$as_echo "no" >&6; }
17740
17741if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17742        _pkg_short_errors_supported=yes
17743else
17744        _pkg_short_errors_supported=no
17745fi
17746        if test $_pkg_short_errors_supported = yes; then
17747	        LIBQUICKTIME_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libquicktime > 0.9.7" 2>&1`
17748        else
17749	        LIBQUICKTIME_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libquicktime > 0.9.7" 2>&1`
17750        fi
17751	# Put the nasty error message in config.log where it belongs
17752	echo "$LIBQUICKTIME_PKG_ERRORS" >&5
17753
17754	have_libquicktime=false
17755elif test $pkg_failed = untried; then
17756     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17757$as_echo "no" >&6; }
17758	have_libquicktime=false
17759else
17760	LIBQUICKTIME_CFLAGS=$pkg_cv_LIBQUICKTIME_CFLAGS
17761	LIBQUICKTIME_LIBS=$pkg_cv_LIBQUICKTIME_LIBS
17762        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17763$as_echo "yes" >&6; }
17764	have_libquicktime=true
17765
17766$as_echo "#define HAVE_LIBQUICKTIME 1" >>confdefs.h
17767
17768fi
17769fi
17770 if test x$have_libquicktime = xtrue; then
17771  HAVE_LIBQUICKTIME_TRUE=
17772  HAVE_LIBQUICKTIME_FALSE='#'
17773else
17774  HAVE_LIBQUICKTIME_TRUE='#'
17775  HAVE_LIBQUICKTIME_FALSE=
17776fi
17777
17778
17779have_libpng=false
17780if test x$with_libpng != xno ; then
17781
17782pkg_failed=no
17783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
17784$as_echo_n "checking for LIBPNG... " >&6; }
17785
17786if test -n "$LIBPNG_CFLAGS"; then
17787    pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
17788 elif test -n "$PKG_CONFIG"; then
17789    if test -n "$PKG_CONFIG" && \
17790    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
17791  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
17792  ac_status=$?
17793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17794  test $ac_status = 0; }; then
17795  pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
17796		      test "x$?" != "x0" && pkg_failed=yes
17797else
17798  pkg_failed=yes
17799fi
17800 else
17801    pkg_failed=untried
17802fi
17803if test -n "$LIBPNG_LIBS"; then
17804    pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
17805 elif test -n "$PKG_CONFIG"; then
17806    if test -n "$PKG_CONFIG" && \
17807    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
17808  ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
17809  ac_status=$?
17810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17811  test $ac_status = 0; }; then
17812  pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
17813		      test "x$?" != "x0" && pkg_failed=yes
17814else
17815  pkg_failed=yes
17816fi
17817 else
17818    pkg_failed=untried
17819fi
17820
17821
17822
17823if test $pkg_failed = yes; then
17824   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17825$as_echo "no" >&6; }
17826
17827if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17828        _pkg_short_errors_supported=yes
17829else
17830        _pkg_short_errors_supported=no
17831fi
17832        if test $_pkg_short_errors_supported = yes; then
17833	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
17834        else
17835	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
17836        fi
17837	# Put the nasty error message in config.log where it belongs
17838	echo "$LIBPNG_PKG_ERRORS" >&5
17839
17840	have_libpng=false
17841elif test $pkg_failed = untried; then
17842     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17843$as_echo "no" >&6; }
17844	have_libpng=false
17845else
17846	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
17847	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
17848        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17849$as_echo "yes" >&6; }
17850	have_libpng=true
17851fi
17852  if test x$have_libpng = xfalse ; then
17853
17854pkg_failed=no
17855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
17856$as_echo_n "checking for LIBPNG... " >&6; }
17857
17858if test -n "$LIBPNG_CFLAGS"; then
17859    pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
17860 elif test -n "$PKG_CONFIG"; then
17861    if test -n "$PKG_CONFIG" && \
17862    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12\""; } >&5
17863  ($PKG_CONFIG --exists --print-errors "libpng12") 2>&5
17864  ac_status=$?
17865  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17866  test $ac_status = 0; }; then
17867  pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12" 2>/dev/null`
17868		      test "x$?" != "x0" && pkg_failed=yes
17869else
17870  pkg_failed=yes
17871fi
17872 else
17873    pkg_failed=untried
17874fi
17875if test -n "$LIBPNG_LIBS"; then
17876    pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
17877 elif test -n "$PKG_CONFIG"; then
17878    if test -n "$PKG_CONFIG" && \
17879    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12\""; } >&5
17880  ($PKG_CONFIG --exists --print-errors "libpng12") 2>&5
17881  ac_status=$?
17882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17883  test $ac_status = 0; }; then
17884  pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng12" 2>/dev/null`
17885		      test "x$?" != "x0" && pkg_failed=yes
17886else
17887  pkg_failed=yes
17888fi
17889 else
17890    pkg_failed=untried
17891fi
17892
17893
17894
17895if test $pkg_failed = yes; then
17896   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17897$as_echo "no" >&6; }
17898
17899if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17900        _pkg_short_errors_supported=yes
17901else
17902        _pkg_short_errors_supported=no
17903fi
17904        if test $_pkg_short_errors_supported = yes; then
17905	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng12" 2>&1`
17906        else
17907	        LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng12" 2>&1`
17908        fi
17909	# Put the nasty error message in config.log where it belongs
17910	echo "$LIBPNG_PKG_ERRORS" >&5
17911
17912	have_libpng=false
17913elif test $pkg_failed = untried; then
17914     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17915$as_echo "no" >&6; }
17916	have_libpng=false
17917else
17918	LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
17919	LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
17920        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17921$as_echo "yes" >&6; }
17922	have_libpng=true
17923fi
17924  fi
17925fi
17926 if test x$have_libpng = xtrue; then
17927  HAVE_LIBPNG_TRUE=
17928  HAVE_LIBPNG_FALSE='#'
17929else
17930  HAVE_LIBPNG_TRUE='#'
17931  HAVE_LIBPNG_FALSE=
17932fi
17933
17934
17935have_libdv=false
17936if test x$with_libdv != xno ; then
17937
17938pkg_failed=no
17939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDV" >&5
17940$as_echo_n "checking for LIBDV... " >&6; }
17941
17942if test -n "$LIBDV_CFLAGS"; then
17943    pkg_cv_LIBDV_CFLAGS="$LIBDV_CFLAGS"
17944 elif test -n "$PKG_CONFIG"; then
17945    if test -n "$PKG_CONFIG" && \
17946    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdv >= 0.9\""; } >&5
17947  ($PKG_CONFIG --exists --print-errors "libdv >= 0.9") 2>&5
17948  ac_status=$?
17949  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17950  test $ac_status = 0; }; then
17951  pkg_cv_LIBDV_CFLAGS=`$PKG_CONFIG --cflags "libdv >= 0.9" 2>/dev/null`
17952		      test "x$?" != "x0" && pkg_failed=yes
17953else
17954  pkg_failed=yes
17955fi
17956 else
17957    pkg_failed=untried
17958fi
17959if test -n "$LIBDV_LIBS"; then
17960    pkg_cv_LIBDV_LIBS="$LIBDV_LIBS"
17961 elif test -n "$PKG_CONFIG"; then
17962    if test -n "$PKG_CONFIG" && \
17963    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdv >= 0.9\""; } >&5
17964  ($PKG_CONFIG --exists --print-errors "libdv >= 0.9") 2>&5
17965  ac_status=$?
17966  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17967  test $ac_status = 0; }; then
17968  pkg_cv_LIBDV_LIBS=`$PKG_CONFIG --libs "libdv >= 0.9" 2>/dev/null`
17969		      test "x$?" != "x0" && pkg_failed=yes
17970else
17971  pkg_failed=yes
17972fi
17973 else
17974    pkg_failed=untried
17975fi
17976
17977
17978
17979if test $pkg_failed = yes; then
17980   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17981$as_echo "no" >&6; }
17982
17983if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17984        _pkg_short_errors_supported=yes
17985else
17986        _pkg_short_errors_supported=no
17987fi
17988        if test $_pkg_short_errors_supported = yes; then
17989	        LIBDV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdv >= 0.9" 2>&1`
17990        else
17991	        LIBDV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdv >= 0.9" 2>&1`
17992        fi
17993	# Put the nasty error message in config.log where it belongs
17994	echo "$LIBDV_PKG_ERRORS" >&5
17995
17996	have_libdv=false
17997elif test $pkg_failed = untried; then
17998     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17999$as_echo "no" >&6; }
18000	have_libdv=false
18001else
18002	LIBDV_CFLAGS=$pkg_cv_LIBDV_CFLAGS
18003	LIBDV_LIBS=$pkg_cv_LIBDV_LIBS
18004        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18005$as_echo "yes" >&6; }
18006	have_libdv=true
18007
18008$as_echo "#define HAVE_LIBDV 1" >>confdefs.h
18009
18010fi
18011fi
18012
18013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18014$as_echo_n "checking for X... " >&6; }
18015
18016
18017# Check whether --with-x was given.
18018if test "${with_x+set}" = set; then :
18019  withval=$with_x;
18020fi
18021
18022# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18023if test "x$with_x" = xno; then
18024  # The user explicitly disabled X.
18025  have_x=disabled
18026else
18027  case $x_includes,$x_libraries in #(
18028    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
18029    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
18030  $as_echo_n "(cached) " >&6
18031else
18032  # One or both of the vars are not set, and there is no cached value.
18033ac_x_includes=no ac_x_libraries=no
18034rm -f -r conftest.dir
18035if mkdir conftest.dir; then
18036  cd conftest.dir
18037  cat >Imakefile <<'_ACEOF'
18038incroot:
18039	@echo incroot='${INCROOT}'
18040usrlibdir:
18041	@echo usrlibdir='${USRLIBDIR}'
18042libdir:
18043	@echo libdir='${LIBDIR}'
18044_ACEOF
18045  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18046    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18047    for ac_var in incroot usrlibdir libdir; do
18048      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18049    done
18050    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18051    for ac_extension in a so sl dylib la dll; do
18052      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18053	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18054	ac_im_usrlibdir=$ac_im_libdir; break
18055      fi
18056    done
18057    # Screen out bogus values from the imake configuration.  They are
18058    # bogus both because they are the default anyway, and because
18059    # using them would break gcc on systems where it needs fixed includes.
18060    case $ac_im_incroot in
18061	/usr/include) ac_x_includes= ;;
18062	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18063    esac
18064    case $ac_im_usrlibdir in
18065	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
18066	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18067    esac
18068  fi
18069  cd ..
18070  rm -f -r conftest.dir
18071fi
18072
18073# Standard set of common directories for X headers.
18074# Check X11 before X11Rn because it is often a symlink to the current release.
18075ac_x_header_dirs='
18076/usr/X11/include
18077/usr/X11R7/include
18078/usr/X11R6/include
18079/usr/X11R5/include
18080/usr/X11R4/include
18081
18082/usr/include/X11
18083/usr/include/X11R7
18084/usr/include/X11R6
18085/usr/include/X11R5
18086/usr/include/X11R4
18087
18088/usr/local/X11/include
18089/usr/local/X11R7/include
18090/usr/local/X11R6/include
18091/usr/local/X11R5/include
18092/usr/local/X11R4/include
18093
18094/usr/local/include/X11
18095/usr/local/include/X11R7
18096/usr/local/include/X11R6
18097/usr/local/include/X11R5
18098/usr/local/include/X11R4
18099
18100/usr/X386/include
18101/usr/x386/include
18102/usr/XFree86/include/X11
18103
18104/usr/include
18105/usr/local/include
18106/usr/unsupported/include
18107/usr/athena/include
18108/usr/local/x11r5/include
18109/usr/lpp/Xamples/include
18110
18111/usr/openwin/include
18112/usr/openwin/share/include'
18113
18114if test "$ac_x_includes" = no; then
18115  # Guess where to find include files, by looking for Xlib.h.
18116  # First, try using that file with no special directory specified.
18117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18118/* end confdefs.h.  */
18119#include <X11/Xlib.h>
18120_ACEOF
18121if ac_fn_c_try_cpp "$LINENO"; then :
18122  # We can compile using X headers with no special include directory.
18123ac_x_includes=
18124else
18125  for ac_dir in $ac_x_header_dirs; do
18126  if test -r "$ac_dir/X11/Xlib.h"; then
18127    ac_x_includes=$ac_dir
18128    break
18129  fi
18130done
18131fi
18132rm -f conftest.err conftest.i conftest.$ac_ext
18133fi # $ac_x_includes = no
18134
18135if test "$ac_x_libraries" = no; then
18136  # Check for the libraries.
18137  # See if we find them without any special options.
18138  # Don't add to $LIBS permanently.
18139  ac_save_LIBS=$LIBS
18140  LIBS="-lX11 $LIBS"
18141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142/* end confdefs.h.  */
18143#include <X11/Xlib.h>
18144int
18145main ()
18146{
18147XrmInitialize ()
18148  ;
18149  return 0;
18150}
18151_ACEOF
18152if ac_fn_c_try_link "$LINENO"; then :
18153  LIBS=$ac_save_LIBS
18154# We can link X programs with no special library path.
18155ac_x_libraries=
18156else
18157  LIBS=$ac_save_LIBS
18158for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18159do
18160  # Don't even attempt the hair of trying to link an X program!
18161  for ac_extension in a so sl dylib la dll; do
18162    if test -r "$ac_dir/libX11.$ac_extension"; then
18163      ac_x_libraries=$ac_dir
18164      break 2
18165    fi
18166  done
18167done
18168fi
18169rm -f core conftest.err conftest.$ac_objext \
18170    conftest$ac_exeext conftest.$ac_ext
18171fi # $ac_x_libraries = no
18172
18173case $ac_x_includes,$ac_x_libraries in #(
18174  no,* | *,no | *\'*)
18175    # Didn't find X, or a directory has "'" in its name.
18176    ac_cv_have_x="have_x=no";; #(
18177  *)
18178    # Record where we found X for the cache.
18179    ac_cv_have_x="have_x=yes\
18180	ac_x_includes='$ac_x_includes'\
18181	ac_x_libraries='$ac_x_libraries'"
18182esac
18183fi
18184;; #(
18185    *) have_x=yes;;
18186  esac
18187  eval "$ac_cv_have_x"
18188fi # $with_x != no
18189
18190if test "$have_x" != yes; then
18191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18192$as_echo "$have_x" >&6; }
18193  no_x=yes
18194else
18195  # If each of the values was on the command line, it overrides each guess.
18196  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18197  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18198  # Update the cache value to reflect the command line values.
18199  ac_cv_have_x="have_x=yes\
18200	ac_x_includes='$x_includes'\
18201	ac_x_libraries='$x_libraries'"
18202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18203$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18204fi
18205
18206if test "$no_x" = yes; then
18207  # Not all programs may use this symbol, but it does not hurt to define it.
18208
18209$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18210
18211  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18212else
18213  if test -n "$x_includes"; then
18214    X_CFLAGS="$X_CFLAGS -I$x_includes"
18215  fi
18216
18217  # It would also be nice to do this for all -L options, not just this one.
18218  if test -n "$x_libraries"; then
18219    X_LIBS="$X_LIBS -L$x_libraries"
18220    # For Solaris; some versions of Sun CC require a space after -R and
18221    # others require no space.  Words are not sufficient . . . .
18222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18223$as_echo_n "checking whether -R must be followed by a space... " >&6; }
18224    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18225    ac_xsave_c_werror_flag=$ac_c_werror_flag
18226    ac_c_werror_flag=yes
18227    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18228/* end confdefs.h.  */
18229
18230int
18231main ()
18232{
18233
18234  ;
18235  return 0;
18236}
18237_ACEOF
18238if ac_fn_c_try_link "$LINENO"; then :
18239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18240$as_echo "no" >&6; }
18241       X_LIBS="$X_LIBS -R$x_libraries"
18242else
18243  LIBS="$ac_xsave_LIBS -R $x_libraries"
18244       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245/* end confdefs.h.  */
18246
18247int
18248main ()
18249{
18250
18251  ;
18252  return 0;
18253}
18254_ACEOF
18255if ac_fn_c_try_link "$LINENO"; then :
18256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18257$as_echo "yes" >&6; }
18258	  X_LIBS="$X_LIBS -R $x_libraries"
18259else
18260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
18261$as_echo "neither works" >&6; }
18262fi
18263rm -f core conftest.err conftest.$ac_objext \
18264    conftest$ac_exeext conftest.$ac_ext
18265fi
18266rm -f core conftest.err conftest.$ac_objext \
18267    conftest$ac_exeext conftest.$ac_ext
18268    ac_c_werror_flag=$ac_xsave_c_werror_flag
18269    LIBS=$ac_xsave_LIBS
18270  fi
18271
18272  # Check for system-dependent libraries X programs must link with.
18273  # Do this before checking for the system-independent R6 libraries
18274  # (-lICE), since we may need -lsocket or whatever for X linking.
18275
18276  if test "$ISC" = yes; then
18277    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18278  else
18279    # Martyn Johnson says this is needed for Ultrix, if the X
18280    # libraries were built with DECnet support.  And Karl Berry says
18281    # the Alpha needs dnet_stub (dnet does not exist).
18282    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18283    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284/* end confdefs.h.  */
18285
18286/* Override any GCC internal prototype to avoid an error.
18287   Use char because int might match the return type of a GCC
18288   builtin and then its argument prototype would still apply.  */
18289#ifdef __cplusplus
18290extern "C"
18291#endif
18292char XOpenDisplay ();
18293int
18294main ()
18295{
18296return XOpenDisplay ();
18297  ;
18298  return 0;
18299}
18300_ACEOF
18301if ac_fn_c_try_link "$LINENO"; then :
18302
18303else
18304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
18305$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
18306if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
18307  $as_echo_n "(cached) " >&6
18308else
18309  ac_check_lib_save_LIBS=$LIBS
18310LIBS="-ldnet  $LIBS"
18311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312/* end confdefs.h.  */
18313
18314/* Override any GCC internal prototype to avoid an error.
18315   Use char because int might match the return type of a GCC
18316   builtin and then its argument prototype would still apply.  */
18317#ifdef __cplusplus
18318extern "C"
18319#endif
18320char dnet_ntoa ();
18321int
18322main ()
18323{
18324return dnet_ntoa ();
18325  ;
18326  return 0;
18327}
18328_ACEOF
18329if ac_fn_c_try_link "$LINENO"; then :
18330  ac_cv_lib_dnet_dnet_ntoa=yes
18331else
18332  ac_cv_lib_dnet_dnet_ntoa=no
18333fi
18334rm -f core conftest.err conftest.$ac_objext \
18335    conftest$ac_exeext conftest.$ac_ext
18336LIBS=$ac_check_lib_save_LIBS
18337fi
18338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18339$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18340if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
18341  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18342fi
18343
18344    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18345      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
18346$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
18347if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
18348  $as_echo_n "(cached) " >&6
18349else
18350  ac_check_lib_save_LIBS=$LIBS
18351LIBS="-ldnet_stub  $LIBS"
18352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353/* end confdefs.h.  */
18354
18355/* Override any GCC internal prototype to avoid an error.
18356   Use char because int might match the return type of a GCC
18357   builtin and then its argument prototype would still apply.  */
18358#ifdef __cplusplus
18359extern "C"
18360#endif
18361char dnet_ntoa ();
18362int
18363main ()
18364{
18365return dnet_ntoa ();
18366  ;
18367  return 0;
18368}
18369_ACEOF
18370if ac_fn_c_try_link "$LINENO"; then :
18371  ac_cv_lib_dnet_stub_dnet_ntoa=yes
18372else
18373  ac_cv_lib_dnet_stub_dnet_ntoa=no
18374fi
18375rm -f core conftest.err conftest.$ac_objext \
18376    conftest$ac_exeext conftest.$ac_ext
18377LIBS=$ac_check_lib_save_LIBS
18378fi
18379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18380$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18381if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
18382  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18383fi
18384
18385    fi
18386fi
18387rm -f core conftest.err conftest.$ac_objext \
18388    conftest$ac_exeext conftest.$ac_ext
18389    LIBS="$ac_xsave_LIBS"
18390
18391    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18392    # to get the SysV transport functions.
18393    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18394    # needs -lnsl.
18395    # The nsl library prevents programs from opening the X display
18396    # on Irix 5.2, according to T.E. Dickey.
18397    # The functions gethostbyname, getservbyname, and inet_addr are
18398    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18399    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18400if test "x$ac_cv_func_gethostbyname" = xyes; then :
18401
18402fi
18403
18404    if test $ac_cv_func_gethostbyname = no; then
18405      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18406$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18407if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18408  $as_echo_n "(cached) " >&6
18409else
18410  ac_check_lib_save_LIBS=$LIBS
18411LIBS="-lnsl  $LIBS"
18412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18413/* end confdefs.h.  */
18414
18415/* Override any GCC internal prototype to avoid an error.
18416   Use char because int might match the return type of a GCC
18417   builtin and then its argument prototype would still apply.  */
18418#ifdef __cplusplus
18419extern "C"
18420#endif
18421char gethostbyname ();
18422int
18423main ()
18424{
18425return gethostbyname ();
18426  ;
18427  return 0;
18428}
18429_ACEOF
18430if ac_fn_c_try_link "$LINENO"; then :
18431  ac_cv_lib_nsl_gethostbyname=yes
18432else
18433  ac_cv_lib_nsl_gethostbyname=no
18434fi
18435rm -f core conftest.err conftest.$ac_objext \
18436    conftest$ac_exeext conftest.$ac_ext
18437LIBS=$ac_check_lib_save_LIBS
18438fi
18439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18440$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18441if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18442  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18443fi
18444
18445      if test $ac_cv_lib_nsl_gethostbyname = no; then
18446	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
18447$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
18448if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
18449  $as_echo_n "(cached) " >&6
18450else
18451  ac_check_lib_save_LIBS=$LIBS
18452LIBS="-lbsd  $LIBS"
18453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18454/* end confdefs.h.  */
18455
18456/* Override any GCC internal prototype to avoid an error.
18457   Use char because int might match the return type of a GCC
18458   builtin and then its argument prototype would still apply.  */
18459#ifdef __cplusplus
18460extern "C"
18461#endif
18462char gethostbyname ();
18463int
18464main ()
18465{
18466return gethostbyname ();
18467  ;
18468  return 0;
18469}
18470_ACEOF
18471if ac_fn_c_try_link "$LINENO"; then :
18472  ac_cv_lib_bsd_gethostbyname=yes
18473else
18474  ac_cv_lib_bsd_gethostbyname=no
18475fi
18476rm -f core conftest.err conftest.$ac_objext \
18477    conftest$ac_exeext conftest.$ac_ext
18478LIBS=$ac_check_lib_save_LIBS
18479fi
18480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
18481$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
18482if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
18483  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18484fi
18485
18486      fi
18487    fi
18488
18489    # lieder@skyler.mavd.honeywell.com says without -lsocket,
18490    # socket/setsockopt and other routines are undefined under SCO ODT
18491    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18492    # on later versions), says Simon Leinen: it contains gethostby*
18493    # variants that don't use the name server (or something).  -lsocket
18494    # must be given before -lnsl if both are needed.  We assume that
18495    # if connect needs -lnsl, so does gethostbyname.
18496    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
18497if test "x$ac_cv_func_connect" = xyes; then :
18498
18499fi
18500
18501    if test $ac_cv_func_connect = no; then
18502      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18503$as_echo_n "checking for connect in -lsocket... " >&6; }
18504if ${ac_cv_lib_socket_connect+:} false; then :
18505  $as_echo_n "(cached) " >&6
18506else
18507  ac_check_lib_save_LIBS=$LIBS
18508LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18510/* end confdefs.h.  */
18511
18512/* Override any GCC internal prototype to avoid an error.
18513   Use char because int might match the return type of a GCC
18514   builtin and then its argument prototype would still apply.  */
18515#ifdef __cplusplus
18516extern "C"
18517#endif
18518char connect ();
18519int
18520main ()
18521{
18522return connect ();
18523  ;
18524  return 0;
18525}
18526_ACEOF
18527if ac_fn_c_try_link "$LINENO"; then :
18528  ac_cv_lib_socket_connect=yes
18529else
18530  ac_cv_lib_socket_connect=no
18531fi
18532rm -f core conftest.err conftest.$ac_objext \
18533    conftest$ac_exeext conftest.$ac_ext
18534LIBS=$ac_check_lib_save_LIBS
18535fi
18536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18537$as_echo "$ac_cv_lib_socket_connect" >&6; }
18538if test "x$ac_cv_lib_socket_connect" = xyes; then :
18539  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18540fi
18541
18542    fi
18543
18544    # Guillermo Gomez says -lposix is necessary on A/UX.
18545    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
18546if test "x$ac_cv_func_remove" = xyes; then :
18547
18548fi
18549
18550    if test $ac_cv_func_remove = no; then
18551      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
18552$as_echo_n "checking for remove in -lposix... " >&6; }
18553if ${ac_cv_lib_posix_remove+:} false; then :
18554  $as_echo_n "(cached) " >&6
18555else
18556  ac_check_lib_save_LIBS=$LIBS
18557LIBS="-lposix  $LIBS"
18558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18559/* end confdefs.h.  */
18560
18561/* Override any GCC internal prototype to avoid an error.
18562   Use char because int might match the return type of a GCC
18563   builtin and then its argument prototype would still apply.  */
18564#ifdef __cplusplus
18565extern "C"
18566#endif
18567char remove ();
18568int
18569main ()
18570{
18571return remove ();
18572  ;
18573  return 0;
18574}
18575_ACEOF
18576if ac_fn_c_try_link "$LINENO"; then :
18577  ac_cv_lib_posix_remove=yes
18578else
18579  ac_cv_lib_posix_remove=no
18580fi
18581rm -f core conftest.err conftest.$ac_objext \
18582    conftest$ac_exeext conftest.$ac_ext
18583LIBS=$ac_check_lib_save_LIBS
18584fi
18585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
18586$as_echo "$ac_cv_lib_posix_remove" >&6; }
18587if test "x$ac_cv_lib_posix_remove" = xyes; then :
18588  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18589fi
18590
18591    fi
18592
18593    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18594    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
18595if test "x$ac_cv_func_shmat" = xyes; then :
18596
18597fi
18598
18599    if test $ac_cv_func_shmat = no; then
18600      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
18601$as_echo_n "checking for shmat in -lipc... " >&6; }
18602if ${ac_cv_lib_ipc_shmat+:} false; then :
18603  $as_echo_n "(cached) " >&6
18604else
18605  ac_check_lib_save_LIBS=$LIBS
18606LIBS="-lipc  $LIBS"
18607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18608/* end confdefs.h.  */
18609
18610/* Override any GCC internal prototype to avoid an error.
18611   Use char because int might match the return type of a GCC
18612   builtin and then its argument prototype would still apply.  */
18613#ifdef __cplusplus
18614extern "C"
18615#endif
18616char shmat ();
18617int
18618main ()
18619{
18620return shmat ();
18621  ;
18622  return 0;
18623}
18624_ACEOF
18625if ac_fn_c_try_link "$LINENO"; then :
18626  ac_cv_lib_ipc_shmat=yes
18627else
18628  ac_cv_lib_ipc_shmat=no
18629fi
18630rm -f core conftest.err conftest.$ac_objext \
18631    conftest$ac_exeext conftest.$ac_ext
18632LIBS=$ac_check_lib_save_LIBS
18633fi
18634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
18635$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
18636if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
18637  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18638fi
18639
18640    fi
18641  fi
18642
18643  # Check for libraries that X11R6 Xt/Xaw programs need.
18644  ac_save_LDFLAGS=$LDFLAGS
18645  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18646  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18647  # check for ICE first), but we must link in the order -lSM -lICE or
18648  # we get undefined symbols.  So assume we have SM if we have ICE.
18649  # These have to be linked with before -lX11, unlike the other
18650  # libraries we check for below, so use a different variable.
18651  # John Interrante, Karl Berry
18652  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
18653$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
18654if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
18655  $as_echo_n "(cached) " >&6
18656else
18657  ac_check_lib_save_LIBS=$LIBS
18658LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660/* end confdefs.h.  */
18661
18662/* Override any GCC internal prototype to avoid an error.
18663   Use char because int might match the return type of a GCC
18664   builtin and then its argument prototype would still apply.  */
18665#ifdef __cplusplus
18666extern "C"
18667#endif
18668char IceConnectionNumber ();
18669int
18670main ()
18671{
18672return IceConnectionNumber ();
18673  ;
18674  return 0;
18675}
18676_ACEOF
18677if ac_fn_c_try_link "$LINENO"; then :
18678  ac_cv_lib_ICE_IceConnectionNumber=yes
18679else
18680  ac_cv_lib_ICE_IceConnectionNumber=no
18681fi
18682rm -f core conftest.err conftest.$ac_objext \
18683    conftest$ac_exeext conftest.$ac_ext
18684LIBS=$ac_check_lib_save_LIBS
18685fi
18686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18687$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
18688if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
18689  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18690fi
18691
18692  LDFLAGS=$ac_save_LDFLAGS
18693
18694fi
18695
18696
18697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
18698$as_echo_n "checking for __progname... " >&6; }
18699if ${mjt_cv_extern___progname+:} false; then :
18700  $as_echo_n "(cached) " >&6
18701else
18702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703/* end confdefs.h.  */
18704
18705int
18706main ()
18707{
18708extern char *__progname;
18709                                                  puts(__progname);
18710  ;
18711  return 0;
18712}
18713_ACEOF
18714if ac_fn_c_try_link "$LINENO"; then :
18715  mjt_cv_extern___progname=yes
18716else
18717  mjt_cv_extern___progname=no
18718fi
18719rm -f core conftest.err conftest.$ac_objext \
18720    conftest$ac_exeext conftest.$ac_ext
18721fi
18722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mjt_cv_extern___progname" >&5
18723$as_echo "$mjt_cv_extern___progname" >&6; }
18724if test x$mjt_cv_extern___progname = xyes ; then
18725
18726$as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
18727
18728fi
18729
18730have_dga=false
18731if test x$with_dga != xno ; then
18732
18733	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
18734$as_echo_n "checking for XF86DGAQueryExtension in -lXxf86dga... " >&6; }
18735if ${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+:} false; then :
18736  $as_echo_n "(cached) " >&6
18737else
18738  ac_check_lib_save_LIBS=$LIBS
18739LIBS="-lXxf86dga $X_LIBS $X_PRE_LIBS -lXext $X_EXTRA_LIBS $LIBS"
18740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18741/* end confdefs.h.  */
18742
18743/* Override any GCC internal prototype to avoid an error.
18744   Use char because int might match the return type of a GCC
18745   builtin and then its argument prototype would still apply.  */
18746#ifdef __cplusplus
18747extern "C"
18748#endif
18749char XF86DGAQueryExtension ();
18750int
18751main ()
18752{
18753return XF86DGAQueryExtension ();
18754  ;
18755  return 0;
18756}
18757_ACEOF
18758if ac_fn_c_try_link "$LINENO"; then :
18759  ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
18760else
18761  ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
18762fi
18763rm -f core conftest.err conftest.$ac_objext \
18764    conftest$ac_exeext conftest.$ac_ext
18765LIBS=$ac_check_lib_save_LIBS
18766fi
18767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
18768$as_echo "$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6; }
18769if test "x$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" = xyes; then :
18770  V4LCONF_LIBS="$X_LIBS -lXxf86dga"
18771		     have_dga="true"
18772
18773$as_echo "#define HAVE_LIBXXF86DGA 1" >>confdefs.h
18774
18775else
18776  have_dga="false"
18777fi
18778
18779fi
18780 if test x$have_dga = xtrue; then
18781  HAVE_LIBXXF86DGA_TRUE=
18782  HAVE_LIBXXF86DGA_FALSE='#'
18783else
18784  HAVE_LIBXXF86DGA_TRUE='#'
18785  HAVE_LIBXXF86DGA_FALSE=
18786fi
18787
18788
18789have_gtk=false
18790if test x$with_gtk != xno ; then
18791
18792pkg_failed=no
18793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
18794$as_echo_n "checking for GTK... " >&6; }
18795
18796if test -n "$GTK_CFLAGS"; then
18797    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
18798 elif test -n "$PKG_CONFIG"; then
18799    if test -n "$PKG_CONFIG" && \
18800    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0\""; } >&5
18801  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0") 2>&5
18802  ac_status=$?
18803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18804  test $ac_status = 0; }; then
18805  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4.0" 2>/dev/null`
18806		      test "x$?" != "x0" && pkg_failed=yes
18807else
18808  pkg_failed=yes
18809fi
18810 else
18811    pkg_failed=untried
18812fi
18813if test -n "$GTK_LIBS"; then
18814    pkg_cv_GTK_LIBS="$GTK_LIBS"
18815 elif test -n "$PKG_CONFIG"; then
18816    if test -n "$PKG_CONFIG" && \
18817    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.4.0\""; } >&5
18818  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.4.0") 2>&5
18819  ac_status=$?
18820  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18821  test $ac_status = 0; }; then
18822  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4.0" 2>/dev/null`
18823		      test "x$?" != "x0" && pkg_failed=yes
18824else
18825  pkg_failed=yes
18826fi
18827 else
18828    pkg_failed=untried
18829fi
18830
18831
18832
18833if test $pkg_failed = yes; then
18834   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18835$as_echo "no" >&6; }
18836
18837if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18838        _pkg_short_errors_supported=yes
18839else
18840        _pkg_short_errors_supported=no
18841fi
18842        if test $_pkg_short_errors_supported = yes; then
18843	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.4.0" 2>&1`
18844        else
18845	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.4.0" 2>&1`
18846        fi
18847	# Put the nasty error message in config.log where it belongs
18848	echo "$GTK_PKG_ERRORS" >&5
18849
18850	have_gtk="false"
18851elif test $pkg_failed = untried; then
18852     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18853$as_echo "no" >&6; }
18854	have_gtk="false"
18855else
18856	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
18857	GTK_LIBS=$pkg_cv_GTK_LIBS
18858        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18859$as_echo "yes" >&6; }
18860	have_gtk="true"
18861fi
18862fi
18863 if test x$have_gtk = xtrue; then
18864  HAVE_GTK_TRUE=
18865  HAVE_GTK_FALSE='#'
18866else
18867  HAVE_GTK_TRUE='#'
18868  HAVE_GTK_FALSE=
18869fi
18870
18871
18872have_sdl=false
18873if test x$with_libsdl != xno ; then
18874
18875pkg_failed=no
18876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
18877$as_echo_n "checking for SDL... " >&6; }
18878
18879if test -n "$SDL_CFLAGS"; then
18880    pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
18881 elif test -n "$PKG_CONFIG"; then
18882    if test -n "$PKG_CONFIG" && \
18883    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl > 1.1.3\""; } >&5
18884  ($PKG_CONFIG --exists --print-errors "sdl > 1.1.3") 2>&5
18885  ac_status=$?
18886  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18887  test $ac_status = 0; }; then
18888  pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl > 1.1.3" 2>/dev/null`
18889		      test "x$?" != "x0" && pkg_failed=yes
18890else
18891  pkg_failed=yes
18892fi
18893 else
18894    pkg_failed=untried
18895fi
18896if test -n "$SDL_LIBS"; then
18897    pkg_cv_SDL_LIBS="$SDL_LIBS"
18898 elif test -n "$PKG_CONFIG"; then
18899    if test -n "$PKG_CONFIG" && \
18900    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl > 1.1.3\""; } >&5
18901  ($PKG_CONFIG --exists --print-errors "sdl > 1.1.3") 2>&5
18902  ac_status=$?
18903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18904  test $ac_status = 0; }; then
18905  pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl > 1.1.3" 2>/dev/null`
18906		      test "x$?" != "x0" && pkg_failed=yes
18907else
18908  pkg_failed=yes
18909fi
18910 else
18911    pkg_failed=untried
18912fi
18913
18914
18915
18916if test $pkg_failed = yes; then
18917   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18918$as_echo "no" >&6; }
18919
18920if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18921        _pkg_short_errors_supported=yes
18922else
18923        _pkg_short_errors_supported=no
18924fi
18925        if test $_pkg_short_errors_supported = yes; then
18926	        SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl > 1.1.3" 2>&1`
18927        else
18928	        SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl > 1.1.3" 2>&1`
18929        fi
18930	# Put the nasty error message in config.log where it belongs
18931	echo "$SDL_PKG_ERRORS" >&5
18932
18933	have_sdl=false
18934elif test $pkg_failed = untried; then
18935     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18936$as_echo "no" >&6; }
18937	have_sdl=false
18938else
18939	SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
18940	SDL_LIBS=$pkg_cv_SDL_LIBS
18941        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18942$as_echo "yes" >&6; }
18943	have_sdl=true
18944
18945$as_echo "#define HAVE_SDL 1" >>confdefs.h
18946
18947fi
18948fi
18949 if test x$have_sdl = xtrue; then
18950  HAVE_SDL_TRUE=
18951  HAVE_SDL_FALSE='#'
18952else
18953  HAVE_SDL_TRUE='#'
18954  HAVE_SDL_FALSE=
18955fi
18956
18957
18958have_sdlgfx=false
18959if test x$with_sdlgfx != xno ; then
18960
18961	if test x$have_sdl = xtrue; then
18962		OLD_LIBS="$LIBS"
18963		LIBS="$LIBS -lSDL -lSDL_gfx"
18964		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for vlineColor in -lSDL_gfx" >&5
18965$as_echo_n "checking for vlineColor in -lSDL_gfx... " >&6; }
18966if ${ac_cv_lib_SDL_gfx_vlineColor+:} false; then :
18967  $as_echo_n "(cached) " >&6
18968else
18969  ac_check_lib_save_LIBS=$LIBS
18970LIBS="-lSDL_gfx  $LIBS"
18971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972/* end confdefs.h.  */
18973
18974/* Override any GCC internal prototype to avoid an error.
18975   Use char because int might match the return type of a GCC
18976   builtin and then its argument prototype would still apply.  */
18977#ifdef __cplusplus
18978extern "C"
18979#endif
18980char vlineColor ();
18981int
18982main ()
18983{
18984return vlineColor ();
18985  ;
18986  return 0;
18987}
18988_ACEOF
18989if ac_fn_c_try_link "$LINENO"; then :
18990  ac_cv_lib_SDL_gfx_vlineColor=yes
18991else
18992  ac_cv_lib_SDL_gfx_vlineColor=no
18993fi
18994rm -f core conftest.err conftest.$ac_objext \
18995    conftest$ac_exeext conftest.$ac_ext
18996LIBS=$ac_check_lib_save_LIBS
18997fi
18998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_gfx_vlineColor" >&5
18999$as_echo "$ac_cv_lib_SDL_gfx_vlineColor" >&6; }
19000if test "x$ac_cv_lib_SDL_gfx_vlineColor" = xyes; then :
19001  SDLgfx_LIBS="-lSDL_gfx"
19002
19003$as_echo "#define HAVE_SDLgfx 1" >>confdefs.h
19004
19005			      have_sdlgfx=true
19006else
19007  have_sdlgfx=false
19008fi
19009
19010		LIBS="$OLD_LIBS"
19011	fi
19012
19013fi
19014 if test x$have_sdlgfx = xtrue; then
19015  HAVE_SDLgfx_TRUE=
19016  HAVE_SDLgfx_FALSE='#'
19017else
19018  HAVE_SDLgfx_TRUE='#'
19019  HAVE_SDLgfx_FALSE=
19020fi
19021
19022
19023
19024have_asm_mmx=false
19025have_x86cpu=false
19026have_altivec=false
19027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Architecture" >&5
19028$as_echo_n "checking Architecture... " >&6; }
19029case $host_cpu in
19030  i[3-7]86)
19031    { $as_echo "$as_me:${as_lineno-$LINENO}: result: IA32" >&5
19032$as_echo "IA32" >&6; }
19033
19034$as_echo "#define HAVE_X86CPU 1" >>confdefs.h
19035
19036    have_x86cpu=true
19037    PROGRAM_NOPIC="-fno-PIC"
19038    ;;
19039  x86_64*)
19040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: x86_64" >&5
19041$as_echo "x86_64" >&6; }
19042
19043$as_echo "#define HAVE_X86CPU 1" >>confdefs.h
19044
19045    have_x86cpu=true
19046    have_x86_64cpu=true
19047    PROGRAM_NOPIC="-fno-PIC"
19048    ;;
19049  powerpc | powerpc64)
19050    { $as_echo "$as_me:${as_lineno-$LINENO}: result: PowerPC" >&5
19051$as_echo "PowerPC" >&6; }
19052
19053$as_echo "#define HAVE_PPCCPU 1" >>confdefs.h
19054
19055    have_ppccpu=true
19056    PROGRAM_NOPIC=""
19057    ;;
19058  *)
19059    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
19060$as_echo "unknown" >&6; }
19061    PROGRAM_NOPIC=""
19062    ;;
19063esac
19064
19065case $host in
19066  *-apple-darwin*)
19067   PROGRAM_NOPIC="-mdynamic-no-pic" # dynamic-no-pic is an Apple gcc option
19068   ;;
19069esac
19070
19071
19072
19073
19074if test "$enable_simd_accel" != "false" -a "$enable_simd_accel" != "no"
19075then
19076  if test x$have_x86cpu = xtrue
19077  then
19078      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler accepts inline MMX assembly" >&5
19079$as_echo_n "checking if C compiler accepts inline MMX assembly... " >&6; }
19080      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19081/* end confdefs.h.  */
19082
19083int
19084main ()
19085{
19086__asm__ __volatile__("emms":::"memory");
19087  ;
19088  return 0;
19089}
19090_ACEOF
19091if ac_fn_c_try_compile "$LINENO"; then :
19092  have_asm_mmx=true
19093else
19094  have_asm_mmx=false
19095fi
19096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19097      if test $have_asm_mmx = true; then
19098	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19099$as_echo "yes" >&6; }
19100      else
19101	 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19102$as_echo "no" >&6; }
19103      fi
19104
19105      if test $have_asm_mmx = true; then
19106
19107$as_echo "#define HAVE_ASM_MMX 1" >>confdefs.h
19108
19109      fi
19110  fi
19111
19112  if test x$have_ppccpu = xtrue
19113  then
19114    { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for AltiVec" >&5
19115$as_echo_n "checking compiler support for AltiVec... " >&6; }
19116    cat > conftest.c <<EOF
19117#ifdef HAVE_ALTIVEC_H
19118#include <altivec.h>
19119#endif
19120int main() {
19121    union { vector signed int v;
19122            signed int i;
19123          } vi;
19124    vi.v = vec_splat_s32(1);
19125    return vi.i;
19126}
19127EOF
19128    ALTIVEC_CFLAGS=""
19129    if $CC -o conftest conftest.c >/dev/null 2>&1; then
19130      have_altivec=true
19131    elif $CC $CFLAGS -faltivec -maltivec -o conftest conftest.c >/dev/null 2>&1; then
19132      # Mac OS X style with -maltivec
19133      have_altivec=true
19134      ALTIVEC_CFLAGS="-faltivec -maltivec"
19135    elif $CC $CFLAGS -faltivec -o conftest conftest.c >/dev/null 2>&1; then
19136      # Mac OS X style without -maltivec
19137      have_altivec=true
19138      ALTIVEC_CFLAGS="-faltivec"
19139    elif $CC $CFLAGS -fvec -o conftest conftest.c >/dev/null 2>&1; then
19140      # Motorola style
19141      have_altivec=true
19142      ALTIVEC_CFLAGS="-fvec"
19143    elif $CC $CFLAGS -DHAVE_ALTIVEC_H=1 -maltivec -mabi=altivec -o conftest conftest.c >/dev/null 2>&1; then
19144      # gcc 3.1 style
19145      have_altivec=true
19146      ALTIVEC_CFLAGS="-DHAVE_ALTIVEC_H=1 -maltivec -mabi=altivec"
19147    fi
19148    rm -f conftest*;
19149
19150    if test x$have_altivec = xtrue
19151    then
19152      CFLAGS="$CFLAGS ${ALTIVEC_CFLAGS}"
19153      CXXFLAGS="$CXXFLAGS ${ALTIVEC_CFLAGS}"
19154      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19155$as_echo "yes" >&6; }
19156
19157$as_echo "#define HAVE_ALTIVEC 1" >>confdefs.h
19158
19159    else
19160      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19161$as_echo "no" >&6; }
19162    fi
19163  fi
19164fi
19165
19166
19167if test x$have_x86cpu = xtrue -o x$have_ppccpu = xtrue; then
19168  if test x$host_alias != x; then
19169        { $as_echo "$as_me:${as_lineno-$LINENO}: checking sub-architecture settings" >&5
19170$as_echo_n "checking sub-architecture settings... " >&6; }
19171    if test x$have_x86cpu = xtrue; then
19172       host_mod_cpu=`echo $host_cpu | tr _ -`
19173    fi
19174  else
19175    if test ! -r $srcdir/cpuinfo.sh; then
19176       as_fn_error $? "cpuinfo.sh script not found - do a cvs update" "$LINENO" 5
19177    fi
19178    { $as_echo "$as_me:${as_lineno-$LINENO}: checking sub-architecture settings" >&5
19179$as_echo_n "checking sub-architecture settings... " >&6; }
19180    chmod +x $srcdir/cpuinfo.sh
19181    if test x$have_x86cpu = xtrue; then
19182    elif test x$have_ppccpu = xtrue; then
19183    fi
19184  fi
19185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCHFLAGS" >&5
19186$as_echo "$ARCHFLAGS" >&6; }
19187fi
19188
19189if test "x$enable_static_build" = "xyes" ; then
19190  echo "Forcing static linkage..."
19191  LT_STATIC=-all-static
19192else
19193  echo enable_static_build="\'${enable_static_build}\'"
19194fi
19195
19196
19197
19198
19199 if test x$have_asm_mmx = xtrue; then
19200  HAVE_ASM_MMX_TRUE=
19201  HAVE_ASM_MMX_FALSE='#'
19202else
19203  HAVE_ASM_MMX_TRUE='#'
19204  HAVE_ASM_MMX_FALSE=
19205fi
19206
19207 if test x$have_x86cpu = xtrue; then
19208  HAVE_X86CPU_TRUE=
19209  HAVE_X86CPU_FALSE='#'
19210else
19211  HAVE_X86CPU_TRUE='#'
19212  HAVE_X86CPU_FALSE=
19213fi
19214
19215 if test x$have_ppccpu = xtrue; then
19216  HAVE_PPCCPU_TRUE=
19217  HAVE_PPCCPU_FALSE='#'
19218else
19219  HAVE_PPCCPU_TRUE='#'
19220  HAVE_PPCCPU_FALSE=
19221fi
19222
19223 if test x$have_altivec = xtrue; then
19224  HAVE_ALTIVEC_TRUE=
19225  HAVE_ALTIVEC_FALSE='#'
19226else
19227  HAVE_ALTIVEC_TRUE='#'
19228  HAVE_ALTIVEC_FALSE=
19229fi
19230
19231
19232# This is a redhat ppc hack - OSX (which also uses gcc4) does NOT have any
19233# of the problems with undefined symbols, etc caused by a misplaced reference
19234# to an encoder routine (next_larger_quant) in the utils/altivec routines.
19235ALTIVEC_EXTRA_LIBS=
19236if test x$have_altivec = xtrue; then
19237   ALTIVEC_EXTRA_LIBS=-lmpeg2encpp
19238fi
19239
19240
19241have_v4l_or_sdl=false
19242if test x$have_video4linux = xtrue; then
19243  have_v4l_or_sdl=true
19244else
19245  if test x$have_sdl = xtrue; then
19246    have_v4l_or_sdl=true
19247  fi
19248fi
19249 if test x$have_v4l_or_sdl = xtrue; then
19250  HAVE_V4L_OR_SDL_TRUE=
19251  HAVE_V4L_OR_SDL_FALSE='#'
19252else
19253  HAVE_V4L_OR_SDL_TRUE='#'
19254  HAVE_V4L_OR_SDL_FALSE=
19255fi
19256
19257
19258
19259CFLAGS="$ARCHFLAGS $CFLAGS"
19260CXXFLAGS="$ARCHFLAGS $CXXFLAGS"
19261
19262if test "x${GCC}" != "xyes" ; then
19263  enable_compile_warnings=no
19264fi
19265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
19266$as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
19267warnCFLAGS=
19268warnCXXFLAGS=
19269if test "x$enable_compile_warnings" != "xno" ; then
19270 if test "x$GCC" = "xyes" ; then
19271    case "$CFLAGS" in
19272     *-Wall*) ;;
19273     *) warnCFLAGS="-Wall -Wunused" ;;
19274    esac
19275  if test "x$enable_compile_warnings" = "xyes" ; then
19276    warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wcast-align -Wwrite-strings -Wcast-qual"
19277    warnCXXFLAGS="$warnCXXFLAGS -Wmissing-prototypes  -Wpointer-arith -Wcast-align -Wwrite-strings -Wcast-qual"
19278  fi
19279  if test "x$enable_warnings_as_errors" = "xyes" ; then
19280    warnCFLAGS="$warnCFLAGS -Werror"
19281    warnCXXFLAGS="$warnCXXFLAGS -Werror"
19282  fi
19283 fi
19284fi
19285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $warnCFLAGS" >&5
19286$as_echo "$warnCFLAGS" >&6; }
19287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $warnCXXFLAGS" >&5
19288$as_echo "$warnCXXFLAGS" >&6; }
19289if test "x$cflags_set" != "xyes" ; then
19290  CFLAGS="$CFLAGS $warnCFLAGS"
19291  CXXFLAGS="$CXXFLAGS $warnCXXFLAGS"
19292  cflags_set=yes
19293fi
19294
19295# Check whether --enable-assert was given.
19296if test "${enable_assert+set}" = set; then :
19297  enableval=$enable_assert;  case "$enableval" in yes|no) : ;; *) as_fn_error $? "bad value for --enable-assert" "$LINENO" 5                ;; esac
19298else
19299   enable_assert=yes
19300fi
19301
19302
19303if test x"$enable_assert"                 = x"no"; then NDEBUG=1;                fi
19304
19305
19306$as_echo "#define MJPEGTOOLS 1" >>confdefs.h
19307
19308
19309case x"$NDEBUG"                in x"1")
19310
19311$as_echo "#define NDEBUG 1" >>confdefs.h
19312
19313	;;
19314esac
19315
19316ac_config_files="$ac_config_files Makefile debian/Makefile debian/control docs/Makefile lavtools/Makefile yuvcorrect/Makefile yuvdenoise/Makefile yuvdeinterlace/Makefile yuvscaler/Makefile y4munsharp/Makefile y4mutils/Makefile yuvfilters/Makefile mpeg2enc/Makefile aenc/Makefile mplex/Makefile scripts/Makefile utils/Makefile utils/altivec/Makefile utils/mmxsse/Makefile y4mdenoise/Makefile y4mscaler/Makefile mjpegtools.pc mjpegtools.spec"
19317
19318cat >confcache <<\_ACEOF
19319# This file is a shell script that caches the results of configure
19320# tests run on this system so they can be shared between configure
19321# scripts and configure runs, see configure's option --config-cache.
19322# It is not useful on other systems.  If it contains results you don't
19323# want to keep, you may remove or edit it.
19324#
19325# config.status only pays attention to the cache file if you give it
19326# the --recheck option to rerun configure.
19327#
19328# `ac_cv_env_foo' variables (set or unset) will be overridden when
19329# loading this file, other *unset* `ac_cv_foo' will be assigned the
19330# following values.
19331
19332_ACEOF
19333
19334# The following way of writing the cache mishandles newlines in values,
19335# but we know of no workaround that is simple, portable, and efficient.
19336# So, we kill variables containing newlines.
19337# Ultrix sh set writes to stderr and can't be redirected directly,
19338# and sets the high bit in the cache file unless we assign to the vars.
19339(
19340  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19341    eval ac_val=\$$ac_var
19342    case $ac_val in #(
19343    *${as_nl}*)
19344      case $ac_var in #(
19345      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19346$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19347      esac
19348      case $ac_var in #(
19349      _ | IFS | as_nl) ;; #(
19350      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19351      *) { eval $ac_var=; unset $ac_var;} ;;
19352      esac ;;
19353    esac
19354  done
19355
19356  (set) 2>&1 |
19357    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19358    *${as_nl}ac_space=\ *)
19359      # `set' does not quote correctly, so add quotes: double-quote
19360      # substitution turns \\\\ into \\, and sed turns \\ into \.
19361      sed -n \
19362	"s/'/'\\\\''/g;
19363	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19364      ;; #(
19365    *)
19366      # `set' quotes correctly as required by POSIX, so do not add quotes.
19367      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19368      ;;
19369    esac |
19370    sort
19371) |
19372  sed '
19373     /^ac_cv_env_/b end
19374     t clear
19375     :clear
19376     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19377     t end
19378     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19379     :end' >>confcache
19380if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19381  if test -w "$cache_file"; then
19382    if test "x$cache_file" != "x/dev/null"; then
19383      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19384$as_echo "$as_me: updating cache $cache_file" >&6;}
19385      if test ! -f "$cache_file" || test -h "$cache_file"; then
19386	cat confcache >"$cache_file"
19387      else
19388        case $cache_file in #(
19389        */* | ?:*)
19390	  mv -f confcache "$cache_file"$$ &&
19391	  mv -f "$cache_file"$$ "$cache_file" ;; #(
19392        *)
19393	  mv -f confcache "$cache_file" ;;
19394	esac
19395      fi
19396    fi
19397  else
19398    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19399$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19400  fi
19401fi
19402rm -f confcache
19403
19404test "x$prefix" = xNONE && prefix=$ac_default_prefix
19405# Let make expand exec_prefix.
19406test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19407
19408DEFS=-DHAVE_CONFIG_H
19409
19410ac_libobjs=
19411ac_ltlibobjs=
19412U=
19413for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19414  # 1. Remove the extension, and $U if already installed.
19415  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19416  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19417  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19418  #    will be set to the directory where LIBOBJS objects are built.
19419  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19420  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19421done
19422LIBOBJS=$ac_libobjs
19423
19424LTLIBOBJS=$ac_ltlibobjs
19425
19426
19427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19428$as_echo_n "checking that generated files are newer than configure... " >&6; }
19429   if test -n "$am_sleep_pid"; then
19430     # Hide warnings about reused PIDs.
19431     wait $am_sleep_pid 2>/dev/null
19432   fi
19433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19434$as_echo "done" >&6; }
19435 if test -n "$EXEEXT"; then
19436  am__EXEEXT_TRUE=
19437  am__EXEEXT_FALSE='#'
19438else
19439  am__EXEEXT_TRUE='#'
19440  am__EXEEXT_FALSE=
19441fi
19442
19443if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19444  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19445Usually this means the macro was only invoked conditionally." "$LINENO" 5
19446fi
19447if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19448  as_fn_error $? "conditional \"AMDEP\" was never defined.
19449Usually this means the macro was only invoked conditionally." "$LINENO" 5
19450fi
19451if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19452  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19453Usually this means the macro was only invoked conditionally." "$LINENO" 5
19454fi
19455if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19456  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19457Usually this means the macro was only invoked conditionally." "$LINENO" 5
19458fi
19459if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19460  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19461Usually this means the macro was only invoked conditionally." "$LINENO" 5
19462fi
19463
19464if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19465  as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19466Usually this means the macro was only invoked conditionally." "$LINENO" 5
19467fi
19468if test -z "${HAVE_V4L_TRUE}" && test -z "${HAVE_V4L_FALSE}"; then
19469  as_fn_error $? "conditional \"HAVE_V4L\" was never defined.
19470Usually this means the macro was only invoked conditionally." "$LINENO" 5
19471fi
19472if test -z "${HAVE_LIBQUICKTIME_TRUE}" && test -z "${HAVE_LIBQUICKTIME_FALSE}"; then
19473  as_fn_error $? "conditional \"HAVE_LIBQUICKTIME\" was never defined.
19474Usually this means the macro was only invoked conditionally." "$LINENO" 5
19475fi
19476if test -z "${HAVE_LIBPNG_TRUE}" && test -z "${HAVE_LIBPNG_FALSE}"; then
19477  as_fn_error $? "conditional \"HAVE_LIBPNG\" was never defined.
19478Usually this means the macro was only invoked conditionally." "$LINENO" 5
19479fi
19480if test -z "${HAVE_LIBXXF86DGA_TRUE}" && test -z "${HAVE_LIBXXF86DGA_FALSE}"; then
19481  as_fn_error $? "conditional \"HAVE_LIBXXF86DGA\" was never defined.
19482Usually this means the macro was only invoked conditionally." "$LINENO" 5
19483fi
19484if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
19485  as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
19486Usually this means the macro was only invoked conditionally." "$LINENO" 5
19487fi
19488if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
19489  as_fn_error $? "conditional \"HAVE_SDL\" was never defined.
19490Usually this means the macro was only invoked conditionally." "$LINENO" 5
19491fi
19492if test -z "${HAVE_SDLgfx_TRUE}" && test -z "${HAVE_SDLgfx_FALSE}"; then
19493  as_fn_error $? "conditional \"HAVE_SDLgfx\" was never defined.
19494Usually this means the macro was only invoked conditionally." "$LINENO" 5
19495fi
19496if test -z "${HAVE_ASM_MMX_TRUE}" && test -z "${HAVE_ASM_MMX_FALSE}"; then
19497  as_fn_error $? "conditional \"HAVE_ASM_MMX\" was never defined.
19498Usually this means the macro was only invoked conditionally." "$LINENO" 5
19499fi
19500if test -z "${HAVE_X86CPU_TRUE}" && test -z "${HAVE_X86CPU_FALSE}"; then
19501  as_fn_error $? "conditional \"HAVE_X86CPU\" was never defined.
19502Usually this means the macro was only invoked conditionally." "$LINENO" 5
19503fi
19504if test -z "${HAVE_PPCCPU_TRUE}" && test -z "${HAVE_PPCCPU_FALSE}"; then
19505  as_fn_error $? "conditional \"HAVE_PPCCPU\" was never defined.
19506Usually this means the macro was only invoked conditionally." "$LINENO" 5
19507fi
19508if test -z "${HAVE_ALTIVEC_TRUE}" && test -z "${HAVE_ALTIVEC_FALSE}"; then
19509  as_fn_error $? "conditional \"HAVE_ALTIVEC\" was never defined.
19510Usually this means the macro was only invoked conditionally." "$LINENO" 5
19511fi
19512if test -z "${HAVE_V4L_OR_SDL_TRUE}" && test -z "${HAVE_V4L_OR_SDL_FALSE}"; then
19513  as_fn_error $? "conditional \"HAVE_V4L_OR_SDL\" was never defined.
19514Usually this means the macro was only invoked conditionally." "$LINENO" 5
19515fi
19516
19517: "${CONFIG_STATUS=./config.status}"
19518ac_write_fail=0
19519ac_clean_files_save=$ac_clean_files
19520ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19521{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19522$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19523as_write_fail=0
19524cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19525#! $SHELL
19526# Generated by $as_me.
19527# Run this file to recreate the current configuration.
19528# Compiler output produced by configure, useful for debugging
19529# configure, is in config.log if it exists.
19530
19531debug=false
19532ac_cs_recheck=false
19533ac_cs_silent=false
19534
19535SHELL=\${CONFIG_SHELL-$SHELL}
19536export SHELL
19537_ASEOF
19538cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19539## -------------------- ##
19540## M4sh Initialization. ##
19541## -------------------- ##
19542
19543# Be more Bourne compatible
19544DUALCASE=1; export DUALCASE # for MKS sh
19545if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19546  emulate sh
19547  NULLCMD=:
19548  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19549  # is contrary to our usage.  Disable this feature.
19550  alias -g '${1+"$@"}'='"$@"'
19551  setopt NO_GLOB_SUBST
19552else
19553  case `(set -o) 2>/dev/null` in #(
19554  *posix*) :
19555    set -o posix ;; #(
19556  *) :
19557     ;;
19558esac
19559fi
19560
19561
19562as_nl='
19563'
19564export as_nl
19565# Printing a long string crashes Solaris 7 /usr/bin/printf.
19566as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19567as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19568as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19569# Prefer a ksh shell builtin over an external printf program on Solaris,
19570# but without wasting forks for bash or zsh.
19571if test -z "$BASH_VERSION$ZSH_VERSION" \
19572    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19573  as_echo='print -r --'
19574  as_echo_n='print -rn --'
19575elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19576  as_echo='printf %s\n'
19577  as_echo_n='printf %s'
19578else
19579  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19580    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19581    as_echo_n='/usr/ucb/echo -n'
19582  else
19583    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19584    as_echo_n_body='eval
19585      arg=$1;
19586      case $arg in #(
19587      *"$as_nl"*)
19588	expr "X$arg" : "X\\(.*\\)$as_nl";
19589	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19590      esac;
19591      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19592    '
19593    export as_echo_n_body
19594    as_echo_n='sh -c $as_echo_n_body as_echo'
19595  fi
19596  export as_echo_body
19597  as_echo='sh -c $as_echo_body as_echo'
19598fi
19599
19600# The user is always right.
19601if test "${PATH_SEPARATOR+set}" != set; then
19602  PATH_SEPARATOR=:
19603  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19604    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19605      PATH_SEPARATOR=';'
19606  }
19607fi
19608
19609
19610# IFS
19611# We need space, tab and new line, in precisely that order.  Quoting is
19612# there to prevent editors from complaining about space-tab.
19613# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19614# splitting by setting IFS to empty value.)
19615IFS=" ""	$as_nl"
19616
19617# Find who we are.  Look in the path if we contain no directory separator.
19618as_myself=
19619case $0 in #((
19620  *[\\/]* ) as_myself=$0 ;;
19621  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19622for as_dir in $PATH
19623do
19624  IFS=$as_save_IFS
19625  test -z "$as_dir" && as_dir=.
19626    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19627  done
19628IFS=$as_save_IFS
19629
19630     ;;
19631esac
19632# We did not find ourselves, most probably we were run as `sh COMMAND'
19633# in which case we are not to be found in the path.
19634if test "x$as_myself" = x; then
19635  as_myself=$0
19636fi
19637if test ! -f "$as_myself"; then
19638  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19639  exit 1
19640fi
19641
19642# Unset variables that we do not need and which cause bugs (e.g. in
19643# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19644# suppresses any "Segmentation fault" message there.  '((' could
19645# trigger a bug in pdksh 5.2.14.
19646for as_var in BASH_ENV ENV MAIL MAILPATH
19647do eval test x\${$as_var+set} = xset \
19648  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19649done
19650PS1='$ '
19651PS2='> '
19652PS4='+ '
19653
19654# NLS nuisances.
19655LC_ALL=C
19656export LC_ALL
19657LANGUAGE=C
19658export LANGUAGE
19659
19660# CDPATH.
19661(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19662
19663
19664# as_fn_error STATUS ERROR [LINENO LOG_FD]
19665# ----------------------------------------
19666# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19667# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19668# script with STATUS, using 1 if that was 0.
19669as_fn_error ()
19670{
19671  as_status=$1; test $as_status -eq 0 && as_status=1
19672  if test "$4"; then
19673    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19674    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19675  fi
19676  $as_echo "$as_me: error: $2" >&2
19677  as_fn_exit $as_status
19678} # as_fn_error
19679
19680
19681# as_fn_set_status STATUS
19682# -----------------------
19683# Set $? to STATUS, without forking.
19684as_fn_set_status ()
19685{
19686  return $1
19687} # as_fn_set_status
19688
19689# as_fn_exit STATUS
19690# -----------------
19691# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19692as_fn_exit ()
19693{
19694  set +e
19695  as_fn_set_status $1
19696  exit $1
19697} # as_fn_exit
19698
19699# as_fn_unset VAR
19700# ---------------
19701# Portably unset VAR.
19702as_fn_unset ()
19703{
19704  { eval $1=; unset $1;}
19705}
19706as_unset=as_fn_unset
19707# as_fn_append VAR VALUE
19708# ----------------------
19709# Append the text in VALUE to the end of the definition contained in VAR. Take
19710# advantage of any shell optimizations that allow amortized linear growth over
19711# repeated appends, instead of the typical quadratic growth present in naive
19712# implementations.
19713if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19714  eval 'as_fn_append ()
19715  {
19716    eval $1+=\$2
19717  }'
19718else
19719  as_fn_append ()
19720  {
19721    eval $1=\$$1\$2
19722  }
19723fi # as_fn_append
19724
19725# as_fn_arith ARG...
19726# ------------------
19727# Perform arithmetic evaluation on the ARGs, and store the result in the
19728# global $as_val. Take advantage of shells that can avoid forks. The arguments
19729# must be portable across $(()) and expr.
19730if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19731  eval 'as_fn_arith ()
19732  {
19733    as_val=$(( $* ))
19734  }'
19735else
19736  as_fn_arith ()
19737  {
19738    as_val=`expr "$@" || test $? -eq 1`
19739  }
19740fi # as_fn_arith
19741
19742
19743if expr a : '\(a\)' >/dev/null 2>&1 &&
19744   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19745  as_expr=expr
19746else
19747  as_expr=false
19748fi
19749
19750if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19751  as_basename=basename
19752else
19753  as_basename=false
19754fi
19755
19756if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19757  as_dirname=dirname
19758else
19759  as_dirname=false
19760fi
19761
19762as_me=`$as_basename -- "$0" ||
19763$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19764	 X"$0" : 'X\(//\)$' \| \
19765	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19766$as_echo X/"$0" |
19767    sed '/^.*\/\([^/][^/]*\)\/*$/{
19768	    s//\1/
19769	    q
19770	  }
19771	  /^X\/\(\/\/\)$/{
19772	    s//\1/
19773	    q
19774	  }
19775	  /^X\/\(\/\).*/{
19776	    s//\1/
19777	    q
19778	  }
19779	  s/.*/./; q'`
19780
19781# Avoid depending upon Character Ranges.
19782as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19783as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19784as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19785as_cr_digits='0123456789'
19786as_cr_alnum=$as_cr_Letters$as_cr_digits
19787
19788ECHO_C= ECHO_N= ECHO_T=
19789case `echo -n x` in #(((((
19790-n*)
19791  case `echo 'xy\c'` in
19792  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19793  xy)  ECHO_C='\c';;
19794  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19795       ECHO_T='	';;
19796  esac;;
19797*)
19798  ECHO_N='-n';;
19799esac
19800
19801rm -f conf$$ conf$$.exe conf$$.file
19802if test -d conf$$.dir; then
19803  rm -f conf$$.dir/conf$$.file
19804else
19805  rm -f conf$$.dir
19806  mkdir conf$$.dir 2>/dev/null
19807fi
19808if (echo >conf$$.file) 2>/dev/null; then
19809  if ln -s conf$$.file conf$$ 2>/dev/null; then
19810    as_ln_s='ln -s'
19811    # ... but there are two gotchas:
19812    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19813    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19814    # In both cases, we have to default to `cp -pR'.
19815    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19816      as_ln_s='cp -pR'
19817  elif ln conf$$.file conf$$ 2>/dev/null; then
19818    as_ln_s=ln
19819  else
19820    as_ln_s='cp -pR'
19821  fi
19822else
19823  as_ln_s='cp -pR'
19824fi
19825rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19826rmdir conf$$.dir 2>/dev/null
19827
19828
19829# as_fn_mkdir_p
19830# -------------
19831# Create "$as_dir" as a directory, including parents if necessary.
19832as_fn_mkdir_p ()
19833{
19834
19835  case $as_dir in #(
19836  -*) as_dir=./$as_dir;;
19837  esac
19838  test -d "$as_dir" || eval $as_mkdir_p || {
19839    as_dirs=
19840    while :; do
19841      case $as_dir in #(
19842      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19843      *) as_qdir=$as_dir;;
19844      esac
19845      as_dirs="'$as_qdir' $as_dirs"
19846      as_dir=`$as_dirname -- "$as_dir" ||
19847$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19848	 X"$as_dir" : 'X\(//\)[^/]' \| \
19849	 X"$as_dir" : 'X\(//\)$' \| \
19850	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19851$as_echo X"$as_dir" |
19852    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19853	    s//\1/
19854	    q
19855	  }
19856	  /^X\(\/\/\)[^/].*/{
19857	    s//\1/
19858	    q
19859	  }
19860	  /^X\(\/\/\)$/{
19861	    s//\1/
19862	    q
19863	  }
19864	  /^X\(\/\).*/{
19865	    s//\1/
19866	    q
19867	  }
19868	  s/.*/./; q'`
19869      test -d "$as_dir" && break
19870    done
19871    test -z "$as_dirs" || eval "mkdir $as_dirs"
19872  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19873
19874
19875} # as_fn_mkdir_p
19876if mkdir -p . 2>/dev/null; then
19877  as_mkdir_p='mkdir -p "$as_dir"'
19878else
19879  test -d ./-p && rmdir ./-p
19880  as_mkdir_p=false
19881fi
19882
19883
19884# as_fn_executable_p FILE
19885# -----------------------
19886# Test if FILE is an executable regular file.
19887as_fn_executable_p ()
19888{
19889  test -f "$1" && test -x "$1"
19890} # as_fn_executable_p
19891as_test_x='test -x'
19892as_executable_p=as_fn_executable_p
19893
19894# Sed expression to map a string onto a valid CPP name.
19895as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19896
19897# Sed expression to map a string onto a valid variable name.
19898as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19899
19900
19901exec 6>&1
19902## ----------------------------------- ##
19903## Main body of $CONFIG_STATUS script. ##
19904## ----------------------------------- ##
19905_ASEOF
19906test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19907
19908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19909# Save the log message, to keep $0 and so on meaningful, and to
19910# report actual input values of CONFIG_FILES etc. instead of their
19911# values after options handling.
19912ac_log="
19913This file was extended by mjpegtools $as_me 2.1.0, which was
19914generated by GNU Autoconf 2.69.  Invocation command line was
19915
19916  CONFIG_FILES    = $CONFIG_FILES
19917  CONFIG_HEADERS  = $CONFIG_HEADERS
19918  CONFIG_LINKS    = $CONFIG_LINKS
19919  CONFIG_COMMANDS = $CONFIG_COMMANDS
19920  $ $0 $@
19921
19922on `(hostname || uname -n) 2>/dev/null | sed 1q`
19923"
19924
19925_ACEOF
19926
19927case $ac_config_files in *"
19928"*) set x $ac_config_files; shift; ac_config_files=$*;;
19929esac
19930
19931case $ac_config_headers in *"
19932"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19933esac
19934
19935
19936cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19937# Files that config.status was made for.
19938config_files="$ac_config_files"
19939config_headers="$ac_config_headers"
19940config_commands="$ac_config_commands"
19941
19942_ACEOF
19943
19944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19945ac_cs_usage="\
19946\`$as_me' instantiates files and other configuration actions
19947from templates according to the current configuration.  Unless the files
19948and actions are specified as TAGs, all are instantiated by default.
19949
19950Usage: $0 [OPTION]... [TAG]...
19951
19952  -h, --help       print this help, then exit
19953  -V, --version    print version number and configuration settings, then exit
19954      --config     print configuration, then exit
19955  -q, --quiet, --silent
19956                   do not print progress messages
19957  -d, --debug      don't remove temporary files
19958      --recheck    update $as_me by reconfiguring in the same conditions
19959      --file=FILE[:TEMPLATE]
19960                   instantiate the configuration file FILE
19961      --header=FILE[:TEMPLATE]
19962                   instantiate the configuration header FILE
19963
19964Configuration files:
19965$config_files
19966
19967Configuration headers:
19968$config_headers
19969
19970Configuration commands:
19971$config_commands
19972
19973Report bugs to <mjpeg-developer@lists.sourceforge.net>."
19974
19975_ACEOF
19976cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19977ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19978ac_cs_version="\\
19979mjpegtools config.status 2.1.0
19980configured by $0, generated by GNU Autoconf 2.69,
19981  with options \\"\$ac_cs_config\\"
19982
19983Copyright (C) 2012 Free Software Foundation, Inc.
19984This config.status script is free software; the Free Software Foundation
19985gives unlimited permission to copy, distribute and modify it."
19986
19987ac_pwd='$ac_pwd'
19988srcdir='$srcdir'
19989INSTALL='$INSTALL'
19990MKDIR_P='$MKDIR_P'
19991AWK='$AWK'
19992test -n "\$AWK" || AWK=awk
19993_ACEOF
19994
19995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19996# The default lists apply if the user does not specify any file.
19997ac_need_defaults=:
19998while test $# != 0
19999do
20000  case $1 in
20001  --*=?*)
20002    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20003    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20004    ac_shift=:
20005    ;;
20006  --*=)
20007    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20008    ac_optarg=
20009    ac_shift=:
20010    ;;
20011  *)
20012    ac_option=$1
20013    ac_optarg=$2
20014    ac_shift=shift
20015    ;;
20016  esac
20017
20018  case $ac_option in
20019  # Handling of the options.
20020  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20021    ac_cs_recheck=: ;;
20022  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20023    $as_echo "$ac_cs_version"; exit ;;
20024  --config | --confi | --conf | --con | --co | --c )
20025    $as_echo "$ac_cs_config"; exit ;;
20026  --debug | --debu | --deb | --de | --d | -d )
20027    debug=: ;;
20028  --file | --fil | --fi | --f )
20029    $ac_shift
20030    case $ac_optarg in
20031    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20032    '') as_fn_error $? "missing file argument" ;;
20033    esac
20034    as_fn_append CONFIG_FILES " '$ac_optarg'"
20035    ac_need_defaults=false;;
20036  --header | --heade | --head | --hea )
20037    $ac_shift
20038    case $ac_optarg in
20039    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20040    esac
20041    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20042    ac_need_defaults=false;;
20043  --he | --h)
20044    # Conflict between --help and --header
20045    as_fn_error $? "ambiguous option: \`$1'
20046Try \`$0 --help' for more information.";;
20047  --help | --hel | -h )
20048    $as_echo "$ac_cs_usage"; exit ;;
20049  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20050  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20051    ac_cs_silent=: ;;
20052
20053  # This is an error.
20054  -*) as_fn_error $? "unrecognized option: \`$1'
20055Try \`$0 --help' for more information." ;;
20056
20057  *) as_fn_append ac_config_targets " $1"
20058     ac_need_defaults=false ;;
20059
20060  esac
20061  shift
20062done
20063
20064ac_configure_extra_args=
20065
20066if $ac_cs_silent; then
20067  exec 6>/dev/null
20068  ac_configure_extra_args="$ac_configure_extra_args --silent"
20069fi
20070
20071_ACEOF
20072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20073if \$ac_cs_recheck; then
20074  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20075  shift
20076  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20077  CONFIG_SHELL='$SHELL'
20078  export CONFIG_SHELL
20079  exec "\$@"
20080fi
20081
20082_ACEOF
20083cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20084exec 5>>config.log
20085{
20086  echo
20087  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20088## Running $as_me. ##
20089_ASBOX
20090  $as_echo "$ac_log"
20091} >&5
20092
20093_ACEOF
20094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20095#
20096# INIT-COMMANDS
20097#
20098AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20099
20100
20101# The HP-UX ksh and POSIX shell print the target directory to stdout
20102# if CDPATH is set.
20103(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20104
20105sed_quote_subst='$sed_quote_subst'
20106double_quote_subst='$double_quote_subst'
20107delay_variable_subst='$delay_variable_subst'
20108macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20109macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20110enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20111enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20112pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20113enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20114SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20115ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20116PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20117host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20118host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20119host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20120build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20121build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20122build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20123SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20124Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20125GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20126EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20127FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20128LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20129NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20130LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20131max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20132ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20133exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20134lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20135lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20136lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20137lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20138lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20139reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20140reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20141OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20142deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20143file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20144file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20145want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20146DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20147sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20148AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20149AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20150archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20151STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20152RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20153old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20154old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20155old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20156lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20157CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20158CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20159compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20160GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20161lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20162lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20163lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20164lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20165nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20166lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20167objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20168MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20169lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20170lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20171lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20172lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20173lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20174need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20175MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20176DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20177NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20178LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20179OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20180OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20181libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20182shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20183extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20184archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20185enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20186export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20187whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20188compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20189old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20190old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20191archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20192archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20193module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20194module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20195with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20196allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20197no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20198hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20199hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20200hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20201hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20202hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20203hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20204hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20205inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20206link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20207always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20208export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20209exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20210include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20211prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20212postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20213file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20214variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20215need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20216need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20217version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20218runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20219shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20220shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20221libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20222library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20223soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20224install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20225postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20226postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20227finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20228finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20229hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20230sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20231sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20232hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20233enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20234enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20235enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20236old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20237striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20238compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20239predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20240postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20241predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20242postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20243compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20244LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20245reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20246reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20247old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20248compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20249GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20250lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20251lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20252lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20253lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20254lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20255archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20256enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20257export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20258whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20259compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20260old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20261old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20262archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20263archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20264module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20265module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20266with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20267allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20268no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20269hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20270hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20271hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20272hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20273hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20274hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20275hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20276inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20277link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20278always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20279export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20280exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20281include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20282prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20283postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20284file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20285hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20286compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20287predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20288postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20289predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20290postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20291compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20292
20293LTCC='$LTCC'
20294LTCFLAGS='$LTCFLAGS'
20295compiler='$compiler_DEFAULT'
20296
20297# A function that is used when there is no print builtin or printf.
20298func_fallback_echo ()
20299{
20300  eval 'cat <<_LTECHO_EOF
20301\$1
20302_LTECHO_EOF'
20303}
20304
20305# Quote evaled strings.
20306for var in SHELL \
20307ECHO \
20308PATH_SEPARATOR \
20309SED \
20310GREP \
20311EGREP \
20312FGREP \
20313LD \
20314NM \
20315LN_S \
20316lt_SP2NL \
20317lt_NL2SP \
20318reload_flag \
20319OBJDUMP \
20320deplibs_check_method \
20321file_magic_cmd \
20322file_magic_glob \
20323want_nocaseglob \
20324DLLTOOL \
20325sharedlib_from_linklib_cmd \
20326AR \
20327AR_FLAGS \
20328archiver_list_spec \
20329STRIP \
20330RANLIB \
20331CC \
20332CFLAGS \
20333compiler \
20334lt_cv_sys_global_symbol_pipe \
20335lt_cv_sys_global_symbol_to_cdecl \
20336lt_cv_sys_global_symbol_to_c_name_address \
20337lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20338nm_file_list_spec \
20339lt_prog_compiler_no_builtin_flag \
20340lt_prog_compiler_pic \
20341lt_prog_compiler_wl \
20342lt_prog_compiler_static \
20343lt_cv_prog_compiler_c_o \
20344need_locks \
20345MANIFEST_TOOL \
20346DSYMUTIL \
20347NMEDIT \
20348LIPO \
20349OTOOL \
20350OTOOL64 \
20351shrext_cmds \
20352export_dynamic_flag_spec \
20353whole_archive_flag_spec \
20354compiler_needs_object \
20355with_gnu_ld \
20356allow_undefined_flag \
20357no_undefined_flag \
20358hardcode_libdir_flag_spec \
20359hardcode_libdir_separator \
20360exclude_expsyms \
20361include_expsyms \
20362file_list_spec \
20363variables_saved_for_relink \
20364libname_spec \
20365library_names_spec \
20366soname_spec \
20367install_override_mode \
20368finish_eval \
20369old_striplib \
20370striplib \
20371compiler_lib_search_dirs \
20372predep_objects \
20373postdep_objects \
20374predeps \
20375postdeps \
20376compiler_lib_search_path \
20377LD_CXX \
20378reload_flag_CXX \
20379compiler_CXX \
20380lt_prog_compiler_no_builtin_flag_CXX \
20381lt_prog_compiler_pic_CXX \
20382lt_prog_compiler_wl_CXX \
20383lt_prog_compiler_static_CXX \
20384lt_cv_prog_compiler_c_o_CXX \
20385export_dynamic_flag_spec_CXX \
20386whole_archive_flag_spec_CXX \
20387compiler_needs_object_CXX \
20388with_gnu_ld_CXX \
20389allow_undefined_flag_CXX \
20390no_undefined_flag_CXX \
20391hardcode_libdir_flag_spec_CXX \
20392hardcode_libdir_separator_CXX \
20393exclude_expsyms_CXX \
20394include_expsyms_CXX \
20395file_list_spec_CXX \
20396compiler_lib_search_dirs_CXX \
20397predep_objects_CXX \
20398postdep_objects_CXX \
20399predeps_CXX \
20400postdeps_CXX \
20401compiler_lib_search_path_CXX; do
20402    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20403    *[\\\\\\\`\\"\\\$]*)
20404      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20405      ;;
20406    *)
20407      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20408      ;;
20409    esac
20410done
20411
20412# Double-quote double-evaled strings.
20413for var in reload_cmds \
20414old_postinstall_cmds \
20415old_postuninstall_cmds \
20416old_archive_cmds \
20417extract_expsyms_cmds \
20418old_archive_from_new_cmds \
20419old_archive_from_expsyms_cmds \
20420archive_cmds \
20421archive_expsym_cmds \
20422module_cmds \
20423module_expsym_cmds \
20424export_symbols_cmds \
20425prelink_cmds \
20426postlink_cmds \
20427postinstall_cmds \
20428postuninstall_cmds \
20429finish_cmds \
20430sys_lib_search_path_spec \
20431sys_lib_dlsearch_path_spec \
20432reload_cmds_CXX \
20433old_archive_cmds_CXX \
20434old_archive_from_new_cmds_CXX \
20435old_archive_from_expsyms_cmds_CXX \
20436archive_cmds_CXX \
20437archive_expsym_cmds_CXX \
20438module_cmds_CXX \
20439module_expsym_cmds_CXX \
20440export_symbols_cmds_CXX \
20441prelink_cmds_CXX \
20442postlink_cmds_CXX; do
20443    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20444    *[\\\\\\\`\\"\\\$]*)
20445      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20446      ;;
20447    *)
20448      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20449      ;;
20450    esac
20451done
20452
20453ac_aux_dir='$ac_aux_dir'
20454xsi_shell='$xsi_shell'
20455lt_shell_append='$lt_shell_append'
20456
20457# See if we are running on zsh, and set the options which allow our
20458# commands through without removal of \ escapes INIT.
20459if test -n "\${ZSH_VERSION+set}" ; then
20460   setopt NO_GLOB_SUBST
20461fi
20462
20463
20464    PACKAGE='$PACKAGE'
20465    VERSION='$VERSION'
20466    TIMESTAMP='$TIMESTAMP'
20467    RM='$RM'
20468    ofile='$ofile'
20469
20470
20471
20472
20473
20474
20475_ACEOF
20476
20477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20478
20479# Handling of arguments.
20480for ac_config_target in $ac_config_targets
20481do
20482  case $ac_config_target in
20483    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20484    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20485    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20486    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20487    "debian/Makefile") CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
20488    "debian/control") CONFIG_FILES="$CONFIG_FILES debian/control" ;;
20489    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20490    "lavtools/Makefile") CONFIG_FILES="$CONFIG_FILES lavtools/Makefile" ;;
20491    "yuvcorrect/Makefile") CONFIG_FILES="$CONFIG_FILES yuvcorrect/Makefile" ;;
20492    "yuvdenoise/Makefile") CONFIG_FILES="$CONFIG_FILES yuvdenoise/Makefile" ;;
20493    "yuvdeinterlace/Makefile") CONFIG_FILES="$CONFIG_FILES yuvdeinterlace/Makefile" ;;
20494    "yuvscaler/Makefile") CONFIG_FILES="$CONFIG_FILES yuvscaler/Makefile" ;;
20495    "y4munsharp/Makefile") CONFIG_FILES="$CONFIG_FILES y4munsharp/Makefile" ;;
20496    "y4mutils/Makefile") CONFIG_FILES="$CONFIG_FILES y4mutils/Makefile" ;;
20497    "yuvfilters/Makefile") CONFIG_FILES="$CONFIG_FILES yuvfilters/Makefile" ;;
20498    "mpeg2enc/Makefile") CONFIG_FILES="$CONFIG_FILES mpeg2enc/Makefile" ;;
20499    "aenc/Makefile") CONFIG_FILES="$CONFIG_FILES aenc/Makefile" ;;
20500    "mplex/Makefile") CONFIG_FILES="$CONFIG_FILES mplex/Makefile" ;;
20501    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
20502    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20503    "utils/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES utils/altivec/Makefile" ;;
20504    "utils/mmxsse/Makefile") CONFIG_FILES="$CONFIG_FILES utils/mmxsse/Makefile" ;;
20505    "y4mdenoise/Makefile") CONFIG_FILES="$CONFIG_FILES y4mdenoise/Makefile" ;;
20506    "y4mscaler/Makefile") CONFIG_FILES="$CONFIG_FILES y4mscaler/Makefile" ;;
20507    "mjpegtools.pc") CONFIG_FILES="$CONFIG_FILES mjpegtools.pc" ;;
20508    "mjpegtools.spec") CONFIG_FILES="$CONFIG_FILES mjpegtools.spec" ;;
20509
20510  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20511  esac
20512done
20513
20514
20515# If the user did not use the arguments to specify the items to instantiate,
20516# then the envvar interface is used.  Set only those that are not.
20517# We use the long form for the default assignment because of an extremely
20518# bizarre bug on SunOS 4.1.3.
20519if $ac_need_defaults; then
20520  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20521  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20522  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20523fi
20524
20525# Have a temporary directory for convenience.  Make it in the build tree
20526# simply because there is no reason against having it here, and in addition,
20527# creating and moving files from /tmp can sometimes cause problems.
20528# Hook for its removal unless debugging.
20529# Note that there is a small window in which the directory will not be cleaned:
20530# after its creation but before its name has been assigned to `$tmp'.
20531$debug ||
20532{
20533  tmp= ac_tmp=
20534  trap 'exit_status=$?
20535  : "${ac_tmp:=$tmp}"
20536  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20537' 0
20538  trap 'as_fn_exit 1' 1 2 13 15
20539}
20540# Create a (secure) tmp directory for tmp files.
20541
20542{
20543  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20544  test -d "$tmp"
20545}  ||
20546{
20547  tmp=./conf$$-$RANDOM
20548  (umask 077 && mkdir "$tmp")
20549} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20550ac_tmp=$tmp
20551
20552# Set up the scripts for CONFIG_FILES section.
20553# No need to generate them if there are no CONFIG_FILES.
20554# This happens for instance with `./config.status config.h'.
20555if test -n "$CONFIG_FILES"; then
20556
20557
20558ac_cr=`echo X | tr X '\015'`
20559# On cygwin, bash can eat \r inside `` if the user requested igncr.
20560# But we know of no other shell where ac_cr would be empty at this
20561# point, so we can use a bashism as a fallback.
20562if test "x$ac_cr" = x; then
20563  eval ac_cr=\$\'\\r\'
20564fi
20565ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20566if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20567  ac_cs_awk_cr='\\r'
20568else
20569  ac_cs_awk_cr=$ac_cr
20570fi
20571
20572echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20573_ACEOF
20574
20575
20576{
20577  echo "cat >conf$$subs.awk <<_ACEOF" &&
20578  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20579  echo "_ACEOF"
20580} >conf$$subs.sh ||
20581  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20582ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20583ac_delim='%!_!# '
20584for ac_last_try in false false false false false :; do
20585  . ./conf$$subs.sh ||
20586    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20587
20588  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20589  if test $ac_delim_n = $ac_delim_num; then
20590    break
20591  elif $ac_last_try; then
20592    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20593  else
20594    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20595  fi
20596done
20597rm -f conf$$subs.sh
20598
20599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20600cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20601_ACEOF
20602sed -n '
20603h
20604s/^/S["/; s/!.*/"]=/
20605p
20606g
20607s/^[^!]*!//
20608:repl
20609t repl
20610s/'"$ac_delim"'$//
20611t delim
20612:nl
20613h
20614s/\(.\{148\}\)..*/\1/
20615t more1
20616s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20617p
20618n
20619b repl
20620:more1
20621s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20622p
20623g
20624s/.\{148\}//
20625t nl
20626:delim
20627h
20628s/\(.\{148\}\)..*/\1/
20629t more2
20630s/["\\]/\\&/g; s/^/"/; s/$/"/
20631p
20632b
20633:more2
20634s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20635p
20636g
20637s/.\{148\}//
20638t delim
20639' <conf$$subs.awk | sed '
20640/^[^""]/{
20641  N
20642  s/\n//
20643}
20644' >>$CONFIG_STATUS || ac_write_fail=1
20645rm -f conf$$subs.awk
20646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20647_ACAWK
20648cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20649  for (key in S) S_is_set[key] = 1
20650  FS = ""
20651
20652}
20653{
20654  line = $ 0
20655  nfields = split(line, field, "@")
20656  substed = 0
20657  len = length(field[1])
20658  for (i = 2; i < nfields; i++) {
20659    key = field[i]
20660    keylen = length(key)
20661    if (S_is_set[key]) {
20662      value = S[key]
20663      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20664      len += length(value) + length(field[++i])
20665      substed = 1
20666    } else
20667      len += 1 + keylen
20668  }
20669
20670  print line
20671}
20672
20673_ACAWK
20674_ACEOF
20675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20676if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20677  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20678else
20679  cat
20680fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20681  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20682_ACEOF
20683
20684# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20685# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20686# trailing colons and then remove the whole line if VPATH becomes empty
20687# (actually we leave an empty line to preserve line numbers).
20688if test "x$srcdir" = x.; then
20689  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
20690h
20691s///
20692s/^/:/
20693s/[	 ]*$/:/
20694s/:\$(srcdir):/:/g
20695s/:\${srcdir}:/:/g
20696s/:@srcdir@:/:/g
20697s/^:*//
20698s/:*$//
20699x
20700s/\(=[	 ]*\).*/\1/
20701G
20702s/\n//
20703s/^[^=]*=[	 ]*$//
20704}'
20705fi
20706
20707cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20708fi # test -n "$CONFIG_FILES"
20709
20710# Set up the scripts for CONFIG_HEADERS section.
20711# No need to generate them if there are no CONFIG_HEADERS.
20712# This happens for instance with `./config.status Makefile'.
20713if test -n "$CONFIG_HEADERS"; then
20714cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20715BEGIN {
20716_ACEOF
20717
20718# Transform confdefs.h into an awk script `defines.awk', embedded as
20719# here-document in config.status, that substitutes the proper values into
20720# config.h.in to produce config.h.
20721
20722# Create a delimiter string that does not exist in confdefs.h, to ease
20723# handling of long lines.
20724ac_delim='%!_!# '
20725for ac_last_try in false false :; do
20726  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20727  if test -z "$ac_tt"; then
20728    break
20729  elif $ac_last_try; then
20730    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20731  else
20732    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20733  fi
20734done
20735
20736# For the awk script, D is an array of macro values keyed by name,
20737# likewise P contains macro parameters if any.  Preserve backslash
20738# newline sequences.
20739
20740ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20741sed -n '
20742s/.\{148\}/&'"$ac_delim"'/g
20743t rset
20744:rset
20745s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
20746t def
20747d
20748:def
20749s/\\$//
20750t bsnl
20751s/["\\]/\\&/g
20752s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20753D["\1"]=" \3"/p
20754s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
20755d
20756:bsnl
20757s/["\\]/\\&/g
20758s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
20759D["\1"]=" \3\\\\\\n"\\/p
20760t cont
20761s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20762t cont
20763d
20764:cont
20765n
20766s/.\{148\}/&'"$ac_delim"'/g
20767t clear
20768:clear
20769s/\\$//
20770t bsnlc
20771s/["\\]/\\&/g; s/^/"/; s/$/"/p
20772d
20773:bsnlc
20774s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20775b cont
20776' <confdefs.h | sed '
20777s/'"$ac_delim"'/"\\\
20778"/g' >>$CONFIG_STATUS || ac_write_fail=1
20779
20780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20781  for (key in D) D_is_set[key] = 1
20782  FS = ""
20783}
20784/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20785  line = \$ 0
20786  split(line, arg, " ")
20787  if (arg[1] == "#") {
20788    defundef = arg[2]
20789    mac1 = arg[3]
20790  } else {
20791    defundef = substr(arg[1], 2)
20792    mac1 = arg[2]
20793  }
20794  split(mac1, mac2, "(") #)
20795  macro = mac2[1]
20796  prefix = substr(line, 1, index(line, defundef) - 1)
20797  if (D_is_set[macro]) {
20798    # Preserve the white space surrounding the "#".
20799    print prefix "define", macro P[macro] D[macro]
20800    next
20801  } else {
20802    # Replace #undef with comments.  This is necessary, for example,
20803    # in the case of _POSIX_SOURCE, which is predefined and required
20804    # on some systems where configure will not decide to define it.
20805    if (defundef == "undef") {
20806      print "/*", prefix defundef, macro, "*/"
20807      next
20808    }
20809  }
20810}
20811{ print }
20812_ACAWK
20813_ACEOF
20814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20815  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20816fi # test -n "$CONFIG_HEADERS"
20817
20818
20819eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
20820shift
20821for ac_tag
20822do
20823  case $ac_tag in
20824  :[FHLC]) ac_mode=$ac_tag; continue;;
20825  esac
20826  case $ac_mode$ac_tag in
20827  :[FHL]*:*);;
20828  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20829  :[FH]-) ac_tag=-:-;;
20830  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20831  esac
20832  ac_save_IFS=$IFS
20833  IFS=:
20834  set x $ac_tag
20835  IFS=$ac_save_IFS
20836  shift
20837  ac_file=$1
20838  shift
20839
20840  case $ac_mode in
20841  :L) ac_source=$1;;
20842  :[FH])
20843    ac_file_inputs=
20844    for ac_f
20845    do
20846      case $ac_f in
20847      -) ac_f="$ac_tmp/stdin";;
20848      *) # Look for the file first in the build tree, then in the source tree
20849	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20850	 # because $ac_f cannot contain `:'.
20851	 test -f "$ac_f" ||
20852	   case $ac_f in
20853	   [\\/$]*) false;;
20854	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20855	   esac ||
20856	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20857      esac
20858      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20859      as_fn_append ac_file_inputs " '$ac_f'"
20860    done
20861
20862    # Let's still pretend it is `configure' which instantiates (i.e., don't
20863    # use $as_me), people would be surprised to read:
20864    #    /* config.h.  Generated by config.status.  */
20865    configure_input='Generated from '`
20866	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20867	`' by configure.'
20868    if test x"$ac_file" != x-; then
20869      configure_input="$ac_file.  $configure_input"
20870      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20871$as_echo "$as_me: creating $ac_file" >&6;}
20872    fi
20873    # Neutralize special characters interpreted by sed in replacement strings.
20874    case $configure_input in #(
20875    *\&* | *\|* | *\\* )
20876       ac_sed_conf_input=`$as_echo "$configure_input" |
20877       sed 's/[\\\\&|]/\\\\&/g'`;; #(
20878    *) ac_sed_conf_input=$configure_input;;
20879    esac
20880
20881    case $ac_tag in
20882    *:-:* | *:-) cat >"$ac_tmp/stdin" \
20883      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20884    esac
20885    ;;
20886  esac
20887
20888  ac_dir=`$as_dirname -- "$ac_file" ||
20889$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20890	 X"$ac_file" : 'X\(//\)[^/]' \| \
20891	 X"$ac_file" : 'X\(//\)$' \| \
20892	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20893$as_echo X"$ac_file" |
20894    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20895	    s//\1/
20896	    q
20897	  }
20898	  /^X\(\/\/\)[^/].*/{
20899	    s//\1/
20900	    q
20901	  }
20902	  /^X\(\/\/\)$/{
20903	    s//\1/
20904	    q
20905	  }
20906	  /^X\(\/\).*/{
20907	    s//\1/
20908	    q
20909	  }
20910	  s/.*/./; q'`
20911  as_dir="$ac_dir"; as_fn_mkdir_p
20912  ac_builddir=.
20913
20914case "$ac_dir" in
20915.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20916*)
20917  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20918  # A ".." for each directory in $ac_dir_suffix.
20919  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20920  case $ac_top_builddir_sub in
20921  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20922  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20923  esac ;;
20924esac
20925ac_abs_top_builddir=$ac_pwd
20926ac_abs_builddir=$ac_pwd$ac_dir_suffix
20927# for backward compatibility:
20928ac_top_builddir=$ac_top_build_prefix
20929
20930case $srcdir in
20931  .)  # We are building in place.
20932    ac_srcdir=.
20933    ac_top_srcdir=$ac_top_builddir_sub
20934    ac_abs_top_srcdir=$ac_pwd ;;
20935  [\\/]* | ?:[\\/]* )  # Absolute name.
20936    ac_srcdir=$srcdir$ac_dir_suffix;
20937    ac_top_srcdir=$srcdir
20938    ac_abs_top_srcdir=$srcdir ;;
20939  *) # Relative name.
20940    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20941    ac_top_srcdir=$ac_top_build_prefix$srcdir
20942    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20943esac
20944ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20945
20946
20947  case $ac_mode in
20948  :F)
20949  #
20950  # CONFIG_FILE
20951  #
20952
20953  case $INSTALL in
20954  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20955  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20956  esac
20957  ac_MKDIR_P=$MKDIR_P
20958  case $MKDIR_P in
20959  [\\/$]* | ?:[\\/]* ) ;;
20960  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20961  esac
20962_ACEOF
20963
20964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20965# If the template does not know about datarootdir, expand it.
20966# FIXME: This hack should be removed a few years after 2.60.
20967ac_datarootdir_hack=; ac_datarootdir_seen=
20968ac_sed_dataroot='
20969/datarootdir/ {
20970  p
20971  q
20972}
20973/@datadir@/p
20974/@docdir@/p
20975/@infodir@/p
20976/@localedir@/p
20977/@mandir@/p'
20978case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20979*datarootdir*) ac_datarootdir_seen=yes;;
20980*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20981  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20982$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20983_ACEOF
20984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20985  ac_datarootdir_hack='
20986  s&@datadir@&$datadir&g
20987  s&@docdir@&$docdir&g
20988  s&@infodir@&$infodir&g
20989  s&@localedir@&$localedir&g
20990  s&@mandir@&$mandir&g
20991  s&\\\${datarootdir}&$datarootdir&g' ;;
20992esac
20993_ACEOF
20994
20995# Neutralize VPATH when `$srcdir' = `.'.
20996# Shell code in configure.ac might set extrasub.
20997# FIXME: do we really want to maintain this feature?
20998cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20999ac_sed_extra="$ac_vpsub
21000$extrasub
21001_ACEOF
21002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21003:t
21004/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21005s|@configure_input@|$ac_sed_conf_input|;t t
21006s&@top_builddir@&$ac_top_builddir_sub&;t t
21007s&@top_build_prefix@&$ac_top_build_prefix&;t t
21008s&@srcdir@&$ac_srcdir&;t t
21009s&@abs_srcdir@&$ac_abs_srcdir&;t t
21010s&@top_srcdir@&$ac_top_srcdir&;t t
21011s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21012s&@builddir@&$ac_builddir&;t t
21013s&@abs_builddir@&$ac_abs_builddir&;t t
21014s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21015s&@INSTALL@&$ac_INSTALL&;t t
21016s&@MKDIR_P@&$ac_MKDIR_P&;t t
21017$ac_datarootdir_hack
21018"
21019eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21020  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21021
21022test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21023  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21024  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21025      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21026  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21027which seems to be undefined.  Please make sure it is defined" >&5
21028$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21029which seems to be undefined.  Please make sure it is defined" >&2;}
21030
21031  rm -f "$ac_tmp/stdin"
21032  case $ac_file in
21033  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21034  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21035  esac \
21036  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21037 ;;
21038  :H)
21039  #
21040  # CONFIG_HEADER
21041  #
21042  if test x"$ac_file" != x-; then
21043    {
21044      $as_echo "/* $configure_input  */" \
21045      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21046    } >"$ac_tmp/config.h" \
21047      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21048    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21049      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21050$as_echo "$as_me: $ac_file is unchanged" >&6;}
21051    else
21052      rm -f "$ac_file"
21053      mv "$ac_tmp/config.h" "$ac_file" \
21054	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21055    fi
21056  else
21057    $as_echo "/* $configure_input  */" \
21058      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21059      || as_fn_error $? "could not create -" "$LINENO" 5
21060  fi
21061# Compute "$ac_file"'s index in $config_headers.
21062_am_arg="$ac_file"
21063_am_stamp_count=1
21064for _am_header in $config_headers :; do
21065  case $_am_header in
21066    $_am_arg | $_am_arg:* )
21067      break ;;
21068    * )
21069      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21070  esac
21071done
21072echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21073$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21074	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21075	 X"$_am_arg" : 'X\(//\)$' \| \
21076	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21077$as_echo X"$_am_arg" |
21078    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21079	    s//\1/
21080	    q
21081	  }
21082	  /^X\(\/\/\)[^/].*/{
21083	    s//\1/
21084	    q
21085	  }
21086	  /^X\(\/\/\)$/{
21087	    s//\1/
21088	    q
21089	  }
21090	  /^X\(\/\).*/{
21091	    s//\1/
21092	    q
21093	  }
21094	  s/.*/./; q'`/stamp-h$_am_stamp_count
21095 ;;
21096
21097  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21098$as_echo "$as_me: executing $ac_file commands" >&6;}
21099 ;;
21100  esac
21101
21102
21103  case $ac_file$ac_mode in
21104    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21105  # Autoconf 2.62 quotes --file arguments for eval, but not when files
21106  # are listed without --file.  Let's play safe and only enable the eval
21107  # if we detect the quoting.
21108  case $CONFIG_FILES in
21109  *\'*) eval set x "$CONFIG_FILES" ;;
21110  *)   set x $CONFIG_FILES ;;
21111  esac
21112  shift
21113  for mf
21114  do
21115    # Strip MF so we end up with the name of the file.
21116    mf=`echo "$mf" | sed -e 's/:.*$//'`
21117    # Check whether this is an Automake generated Makefile or not.
21118    # We used to match only the files named 'Makefile.in', but
21119    # some people rename them; so instead we look at the file content.
21120    # Grep'ing the first line is not enough: some people post-process
21121    # each Makefile.in and add a new line on top of each file to say so.
21122    # Grep'ing the whole file is not good either: AIX grep has a line
21123    # limit of 2048, but all sed's we know have understand at least 4000.
21124    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21125      dirpart=`$as_dirname -- "$mf" ||
21126$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21127	 X"$mf" : 'X\(//\)[^/]' \| \
21128	 X"$mf" : 'X\(//\)$' \| \
21129	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21130$as_echo X"$mf" |
21131    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21132	    s//\1/
21133	    q
21134	  }
21135	  /^X\(\/\/\)[^/].*/{
21136	    s//\1/
21137	    q
21138	  }
21139	  /^X\(\/\/\)$/{
21140	    s//\1/
21141	    q
21142	  }
21143	  /^X\(\/\).*/{
21144	    s//\1/
21145	    q
21146	  }
21147	  s/.*/./; q'`
21148    else
21149      continue
21150    fi
21151    # Extract the definition of DEPDIR, am__include, and am__quote
21152    # from the Makefile without running 'make'.
21153    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21154    test -z "$DEPDIR" && continue
21155    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21156    test -z "am__include" && continue
21157    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21158    # Find all dependency output files, they are included files with
21159    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21160    # simplest approach to changing $(DEPDIR) to its actual value in the
21161    # expansion.
21162    for file in `sed -n "
21163      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21164	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21165      # Make sure the directory exists.
21166      test -f "$dirpart/$file" && continue
21167      fdir=`$as_dirname -- "$file" ||
21168$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21169	 X"$file" : 'X\(//\)[^/]' \| \
21170	 X"$file" : 'X\(//\)$' \| \
21171	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21172$as_echo X"$file" |
21173    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21174	    s//\1/
21175	    q
21176	  }
21177	  /^X\(\/\/\)[^/].*/{
21178	    s//\1/
21179	    q
21180	  }
21181	  /^X\(\/\/\)$/{
21182	    s//\1/
21183	    q
21184	  }
21185	  /^X\(\/\).*/{
21186	    s//\1/
21187	    q
21188	  }
21189	  s/.*/./; q'`
21190      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21191      # echo "creating $dirpart/$file"
21192      echo '# dummy' > "$dirpart/$file"
21193    done
21194  done
21195}
21196 ;;
21197    "libtool":C)
21198
21199    # See if we are running on zsh, and set the options which allow our
21200    # commands through without removal of \ escapes.
21201    if test -n "${ZSH_VERSION+set}" ; then
21202      setopt NO_GLOB_SUBST
21203    fi
21204
21205    cfgfile="${ofile}T"
21206    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21207    $RM "$cfgfile"
21208
21209    cat <<_LT_EOF >> "$cfgfile"
21210#! $SHELL
21211
21212# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21213# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21214# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21215# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21216#
21217#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21218#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21219#                 Foundation, Inc.
21220#   Written by Gordon Matzigkeit, 1996
21221#
21222#   This file is part of GNU Libtool.
21223#
21224# GNU Libtool is free software; you can redistribute it and/or
21225# modify it under the terms of the GNU General Public License as
21226# published by the Free Software Foundation; either version 2 of
21227# the License, or (at your option) any later version.
21228#
21229# As a special exception to the GNU General Public License,
21230# if you distribute this file as part of a program or library that
21231# is built using GNU Libtool, you may include this file under the
21232# same distribution terms that you use for the rest of that program.
21233#
21234# GNU Libtool is distributed in the hope that it will be useful,
21235# but WITHOUT ANY WARRANTY; without even the implied warranty of
21236# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21237# GNU General Public License for more details.
21238#
21239# You should have received a copy of the GNU General Public License
21240# along with GNU Libtool; see the file COPYING.  If not, a copy
21241# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21242# obtained by writing to the Free Software Foundation, Inc.,
21243# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21244
21245
21246# The names of the tagged configurations supported by this script.
21247available_tags="CXX "
21248
21249# ### BEGIN LIBTOOL CONFIG
21250
21251# Which release of libtool.m4 was used?
21252macro_version=$macro_version
21253macro_revision=$macro_revision
21254
21255# Whether or not to build shared libraries.
21256build_libtool_libs=$enable_shared
21257
21258# Whether or not to build static libraries.
21259build_old_libs=$enable_static
21260
21261# What type of objects to build.
21262pic_mode=$pic_mode
21263
21264# Whether or not to optimize for fast installation.
21265fast_install=$enable_fast_install
21266
21267# Shell to use when invoking shell scripts.
21268SHELL=$lt_SHELL
21269
21270# An echo program that protects backslashes.
21271ECHO=$lt_ECHO
21272
21273# The PATH separator for the build system.
21274PATH_SEPARATOR=$lt_PATH_SEPARATOR
21275
21276# The host system.
21277host_alias=$host_alias
21278host=$host
21279host_os=$host_os
21280
21281# The build system.
21282build_alias=$build_alias
21283build=$build
21284build_os=$build_os
21285
21286# A sed program that does not truncate output.
21287SED=$lt_SED
21288
21289# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21290Xsed="\$SED -e 1s/^X//"
21291
21292# A grep program that handles long lines.
21293GREP=$lt_GREP
21294
21295# An ERE matcher.
21296EGREP=$lt_EGREP
21297
21298# A literal string matcher.
21299FGREP=$lt_FGREP
21300
21301# A BSD- or MS-compatible name lister.
21302NM=$lt_NM
21303
21304# Whether we need soft or hard links.
21305LN_S=$lt_LN_S
21306
21307# What is the maximum length of a command?
21308max_cmd_len=$max_cmd_len
21309
21310# Object file suffix (normally "o").
21311objext=$ac_objext
21312
21313# Executable file suffix (normally "").
21314exeext=$exeext
21315
21316# whether the shell understands "unset".
21317lt_unset=$lt_unset
21318
21319# turn spaces into newlines.
21320SP2NL=$lt_lt_SP2NL
21321
21322# turn newlines into spaces.
21323NL2SP=$lt_lt_NL2SP
21324
21325# convert \$build file names to \$host format.
21326to_host_file_cmd=$lt_cv_to_host_file_cmd
21327
21328# convert \$build files to toolchain format.
21329to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21330
21331# An object symbol dumper.
21332OBJDUMP=$lt_OBJDUMP
21333
21334# Method to check whether dependent libraries are shared objects.
21335deplibs_check_method=$lt_deplibs_check_method
21336
21337# Command to use when deplibs_check_method = "file_magic".
21338file_magic_cmd=$lt_file_magic_cmd
21339
21340# How to find potential files when deplibs_check_method = "file_magic".
21341file_magic_glob=$lt_file_magic_glob
21342
21343# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21344want_nocaseglob=$lt_want_nocaseglob
21345
21346# DLL creation program.
21347DLLTOOL=$lt_DLLTOOL
21348
21349# Command to associate shared and link libraries.
21350sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21351
21352# The archiver.
21353AR=$lt_AR
21354
21355# Flags to create an archive.
21356AR_FLAGS=$lt_AR_FLAGS
21357
21358# How to feed a file listing to the archiver.
21359archiver_list_spec=$lt_archiver_list_spec
21360
21361# A symbol stripping program.
21362STRIP=$lt_STRIP
21363
21364# Commands used to install an old-style archive.
21365RANLIB=$lt_RANLIB
21366old_postinstall_cmds=$lt_old_postinstall_cmds
21367old_postuninstall_cmds=$lt_old_postuninstall_cmds
21368
21369# Whether to use a lock for old archive extraction.
21370lock_old_archive_extraction=$lock_old_archive_extraction
21371
21372# A C compiler.
21373LTCC=$lt_CC
21374
21375# LTCC compiler flags.
21376LTCFLAGS=$lt_CFLAGS
21377
21378# Take the output of nm and produce a listing of raw symbols and C names.
21379global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21380
21381# Transform the output of nm in a proper C declaration.
21382global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21383
21384# Transform the output of nm in a C name address pair.
21385global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21386
21387# Transform the output of nm in a C name address pair when lib prefix is needed.
21388global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21389
21390# Specify filename containing input files for \$NM.
21391nm_file_list_spec=$lt_nm_file_list_spec
21392
21393# The root where to search for dependent libraries,and in which our libraries should be installed.
21394lt_sysroot=$lt_sysroot
21395
21396# The name of the directory that contains temporary libtool files.
21397objdir=$objdir
21398
21399# Used to examine libraries when file_magic_cmd begins with "file".
21400MAGIC_CMD=$MAGIC_CMD
21401
21402# Must we lock files when doing compilation?
21403need_locks=$lt_need_locks
21404
21405# Manifest tool.
21406MANIFEST_TOOL=$lt_MANIFEST_TOOL
21407
21408# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21409DSYMUTIL=$lt_DSYMUTIL
21410
21411# Tool to change global to local symbols on Mac OS X.
21412NMEDIT=$lt_NMEDIT
21413
21414# Tool to manipulate fat objects and archives on Mac OS X.
21415LIPO=$lt_LIPO
21416
21417# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21418OTOOL=$lt_OTOOL
21419
21420# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21421OTOOL64=$lt_OTOOL64
21422
21423# Old archive suffix (normally "a").
21424libext=$libext
21425
21426# Shared library suffix (normally ".so").
21427shrext_cmds=$lt_shrext_cmds
21428
21429# The commands to extract the exported symbol list from a shared archive.
21430extract_expsyms_cmds=$lt_extract_expsyms_cmds
21431
21432# Variables whose values should be saved in libtool wrapper scripts and
21433# restored at link time.
21434variables_saved_for_relink=$lt_variables_saved_for_relink
21435
21436# Do we need the "lib" prefix for modules?
21437need_lib_prefix=$need_lib_prefix
21438
21439# Do we need a version for libraries?
21440need_version=$need_version
21441
21442# Library versioning type.
21443version_type=$version_type
21444
21445# Shared library runtime path variable.
21446runpath_var=$runpath_var
21447
21448# Shared library path variable.
21449shlibpath_var=$shlibpath_var
21450
21451# Is shlibpath searched before the hard-coded library search path?
21452shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21453
21454# Format of library name prefix.
21455libname_spec=$lt_libname_spec
21456
21457# List of archive names.  First name is the real one, the rest are links.
21458# The last name is the one that the linker finds with -lNAME
21459library_names_spec=$lt_library_names_spec
21460
21461# The coded name of the library, if different from the real name.
21462soname_spec=$lt_soname_spec
21463
21464# Permission mode override for installation of shared libraries.
21465install_override_mode=$lt_install_override_mode
21466
21467# Command to use after installation of a shared archive.
21468postinstall_cmds=$lt_postinstall_cmds
21469
21470# Command to use after uninstallation of a shared archive.
21471postuninstall_cmds=$lt_postuninstall_cmds
21472
21473# Commands used to finish a libtool library installation in a directory.
21474finish_cmds=$lt_finish_cmds
21475
21476# As "finish_cmds", except a single script fragment to be evaled but
21477# not shown.
21478finish_eval=$lt_finish_eval
21479
21480# Whether we should hardcode library paths into libraries.
21481hardcode_into_libs=$hardcode_into_libs
21482
21483# Compile-time system search path for libraries.
21484sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21485
21486# Run-time system search path for libraries.
21487sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21488
21489# Whether dlopen is supported.
21490dlopen_support=$enable_dlopen
21491
21492# Whether dlopen of programs is supported.
21493dlopen_self=$enable_dlopen_self
21494
21495# Whether dlopen of statically linked programs is supported.
21496dlopen_self_static=$enable_dlopen_self_static
21497
21498# Commands to strip libraries.
21499old_striplib=$lt_old_striplib
21500striplib=$lt_striplib
21501
21502
21503# The linker used to build libraries.
21504LD=$lt_LD
21505
21506# How to create reloadable object files.
21507reload_flag=$lt_reload_flag
21508reload_cmds=$lt_reload_cmds
21509
21510# Commands used to build an old-style archive.
21511old_archive_cmds=$lt_old_archive_cmds
21512
21513# A language specific compiler.
21514CC=$lt_compiler
21515
21516# Is the compiler the GNU compiler?
21517with_gcc=$GCC
21518
21519# Compiler flag to turn off builtin functions.
21520no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21521
21522# Additional compiler flags for building library objects.
21523pic_flag=$lt_lt_prog_compiler_pic
21524
21525# How to pass a linker flag through the compiler.
21526wl=$lt_lt_prog_compiler_wl
21527
21528# Compiler flag to prevent dynamic linking.
21529link_static_flag=$lt_lt_prog_compiler_static
21530
21531# Does compiler simultaneously support -c and -o options?
21532compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21533
21534# Whether or not to add -lc for building shared libraries.
21535build_libtool_need_lc=$archive_cmds_need_lc
21536
21537# Whether or not to disallow shared libs when runtime libs are static.
21538allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21539
21540# Compiler flag to allow reflexive dlopens.
21541export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21542
21543# Compiler flag to generate shared objects directly from archives.
21544whole_archive_flag_spec=$lt_whole_archive_flag_spec
21545
21546# Whether the compiler copes with passing no objects directly.
21547compiler_needs_object=$lt_compiler_needs_object
21548
21549# Create an old-style archive from a shared archive.
21550old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21551
21552# Create a temporary old-style archive to link instead of a shared archive.
21553old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21554
21555# Commands used to build a shared archive.
21556archive_cmds=$lt_archive_cmds
21557archive_expsym_cmds=$lt_archive_expsym_cmds
21558
21559# Commands used to build a loadable module if different from building
21560# a shared archive.
21561module_cmds=$lt_module_cmds
21562module_expsym_cmds=$lt_module_expsym_cmds
21563
21564# Whether we are building with GNU ld or not.
21565with_gnu_ld=$lt_with_gnu_ld
21566
21567# Flag that allows shared libraries with undefined symbols to be built.
21568allow_undefined_flag=$lt_allow_undefined_flag
21569
21570# Flag that enforces no undefined symbols.
21571no_undefined_flag=$lt_no_undefined_flag
21572
21573# Flag to hardcode \$libdir into a binary during linking.
21574# This must work even if \$libdir does not exist
21575hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21576
21577# Whether we need a single "-rpath" flag with a separated argument.
21578hardcode_libdir_separator=$lt_hardcode_libdir_separator
21579
21580# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21581# DIR into the resulting binary.
21582hardcode_direct=$hardcode_direct
21583
21584# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21585# DIR into the resulting binary and the resulting library dependency is
21586# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21587# library is relocated.
21588hardcode_direct_absolute=$hardcode_direct_absolute
21589
21590# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21591# into the resulting binary.
21592hardcode_minus_L=$hardcode_minus_L
21593
21594# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21595# into the resulting binary.
21596hardcode_shlibpath_var=$hardcode_shlibpath_var
21597
21598# Set to "yes" if building a shared library automatically hardcodes DIR
21599# into the library and all subsequent libraries and executables linked
21600# against it.
21601hardcode_automatic=$hardcode_automatic
21602
21603# Set to yes if linker adds runtime paths of dependent libraries
21604# to runtime path list.
21605inherit_rpath=$inherit_rpath
21606
21607# Whether libtool must link a program against all its dependency libraries.
21608link_all_deplibs=$link_all_deplibs
21609
21610# Set to "yes" if exported symbols are required.
21611always_export_symbols=$always_export_symbols
21612
21613# The commands to list exported symbols.
21614export_symbols_cmds=$lt_export_symbols_cmds
21615
21616# Symbols that should not be listed in the preloaded symbols.
21617exclude_expsyms=$lt_exclude_expsyms
21618
21619# Symbols that must always be exported.
21620include_expsyms=$lt_include_expsyms
21621
21622# Commands necessary for linking programs (against libraries) with templates.
21623prelink_cmds=$lt_prelink_cmds
21624
21625# Commands necessary for finishing linking programs.
21626postlink_cmds=$lt_postlink_cmds
21627
21628# Specify filename containing input files.
21629file_list_spec=$lt_file_list_spec
21630
21631# How to hardcode a shared library path into an executable.
21632hardcode_action=$hardcode_action
21633
21634# The directories searched by this compiler when creating a shared library.
21635compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21636
21637# Dependencies to place before and after the objects being linked to
21638# create a shared library.
21639predep_objects=$lt_predep_objects
21640postdep_objects=$lt_postdep_objects
21641predeps=$lt_predeps
21642postdeps=$lt_postdeps
21643
21644# The library search path used internally by the compiler when linking
21645# a shared library.
21646compiler_lib_search_path=$lt_compiler_lib_search_path
21647
21648# ### END LIBTOOL CONFIG
21649
21650_LT_EOF
21651
21652  case $host_os in
21653  aix3*)
21654    cat <<\_LT_EOF >> "$cfgfile"
21655# AIX sometimes has problems with the GCC collect2 program.  For some
21656# reason, if we set the COLLECT_NAMES environment variable, the problems
21657# vanish in a puff of smoke.
21658if test "X${COLLECT_NAMES+set}" != Xset; then
21659  COLLECT_NAMES=
21660  export COLLECT_NAMES
21661fi
21662_LT_EOF
21663    ;;
21664  esac
21665
21666
21667ltmain="$ac_aux_dir/ltmain.sh"
21668
21669
21670  # We use sed instead of cat because bash on DJGPP gets confused if
21671  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
21672  # text mode, it properly converts lines to CR/LF.  This bash problem
21673  # is reportedly fixed, but why not run on old versions too?
21674  sed '$q' "$ltmain" >> "$cfgfile" \
21675     || (rm -f "$cfgfile"; exit 1)
21676
21677  if test x"$xsi_shell" = xyes; then
21678  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21679func_dirname ()\
21680{\
21681\    case ${1} in\
21682\      */*) func_dirname_result="${1%/*}${2}" ;;\
21683\      *  ) func_dirname_result="${3}" ;;\
21684\    esac\
21685} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21686  && mv -f "$cfgfile.tmp" "$cfgfile" \
21687    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21688test 0 -eq $? || _lt_function_replace_fail=:
21689
21690
21691  sed -e '/^func_basename ()$/,/^} # func_basename /c\
21692func_basename ()\
21693{\
21694\    func_basename_result="${1##*/}"\
21695} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21696  && mv -f "$cfgfile.tmp" "$cfgfile" \
21697    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21698test 0 -eq $? || _lt_function_replace_fail=:
21699
21700
21701  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21702func_dirname_and_basename ()\
21703{\
21704\    case ${1} in\
21705\      */*) func_dirname_result="${1%/*}${2}" ;;\
21706\      *  ) func_dirname_result="${3}" ;;\
21707\    esac\
21708\    func_basename_result="${1##*/}"\
21709} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21710  && mv -f "$cfgfile.tmp" "$cfgfile" \
21711    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21712test 0 -eq $? || _lt_function_replace_fail=:
21713
21714
21715  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21716func_stripname ()\
21717{\
21718\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21719\    # positional parameters, so assign one to ordinary parameter first.\
21720\    func_stripname_result=${3}\
21721\    func_stripname_result=${func_stripname_result#"${1}"}\
21722\    func_stripname_result=${func_stripname_result%"${2}"}\
21723} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21724  && mv -f "$cfgfile.tmp" "$cfgfile" \
21725    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21726test 0 -eq $? || _lt_function_replace_fail=:
21727
21728
21729  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21730func_split_long_opt ()\
21731{\
21732\    func_split_long_opt_name=${1%%=*}\
21733\    func_split_long_opt_arg=${1#*=}\
21734} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21735  && mv -f "$cfgfile.tmp" "$cfgfile" \
21736    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21737test 0 -eq $? || _lt_function_replace_fail=:
21738
21739
21740  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21741func_split_short_opt ()\
21742{\
21743\    func_split_short_opt_arg=${1#??}\
21744\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21745} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21746  && mv -f "$cfgfile.tmp" "$cfgfile" \
21747    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21748test 0 -eq $? || _lt_function_replace_fail=:
21749
21750
21751  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21752func_lo2o ()\
21753{\
21754\    case ${1} in\
21755\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21756\      *)    func_lo2o_result=${1} ;;\
21757\    esac\
21758} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21759  && mv -f "$cfgfile.tmp" "$cfgfile" \
21760    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21761test 0 -eq $? || _lt_function_replace_fail=:
21762
21763
21764  sed -e '/^func_xform ()$/,/^} # func_xform /c\
21765func_xform ()\
21766{\
21767    func_xform_result=${1%.*}.lo\
21768} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21769  && mv -f "$cfgfile.tmp" "$cfgfile" \
21770    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21771test 0 -eq $? || _lt_function_replace_fail=:
21772
21773
21774  sed -e '/^func_arith ()$/,/^} # func_arith /c\
21775func_arith ()\
21776{\
21777    func_arith_result=$(( $* ))\
21778} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21779  && mv -f "$cfgfile.tmp" "$cfgfile" \
21780    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21781test 0 -eq $? || _lt_function_replace_fail=:
21782
21783
21784  sed -e '/^func_len ()$/,/^} # func_len /c\
21785func_len ()\
21786{\
21787    func_len_result=${#1}\
21788} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21789  && mv -f "$cfgfile.tmp" "$cfgfile" \
21790    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21791test 0 -eq $? || _lt_function_replace_fail=:
21792
21793fi
21794
21795if test x"$lt_shell_append" = xyes; then
21796  sed -e '/^func_append ()$/,/^} # func_append /c\
21797func_append ()\
21798{\
21799    eval "${1}+=\\${2}"\
21800} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21801  && mv -f "$cfgfile.tmp" "$cfgfile" \
21802    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21803test 0 -eq $? || _lt_function_replace_fail=:
21804
21805
21806  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21807func_append_quoted ()\
21808{\
21809\    func_quote_for_eval "${2}"\
21810\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21811} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21812  && mv -f "$cfgfile.tmp" "$cfgfile" \
21813    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21814test 0 -eq $? || _lt_function_replace_fail=:
21815
21816
21817  # Save a `func_append' function call where possible by direct use of '+='
21818  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21819    && mv -f "$cfgfile.tmp" "$cfgfile" \
21820      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21821  test 0 -eq $? || _lt_function_replace_fail=:
21822else
21823  # Save a `func_append' function call even when '+=' is not available
21824  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21825    && mv -f "$cfgfile.tmp" "$cfgfile" \
21826      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21827  test 0 -eq $? || _lt_function_replace_fail=:
21828fi
21829
21830if test x"$_lt_function_replace_fail" = x":"; then
21831  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21832$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21833fi
21834
21835
21836   mv -f "$cfgfile" "$ofile" ||
21837    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21838  chmod +x "$ofile"
21839
21840
21841    cat <<_LT_EOF >> "$ofile"
21842
21843# ### BEGIN LIBTOOL TAG CONFIG: CXX
21844
21845# The linker used to build libraries.
21846LD=$lt_LD_CXX
21847
21848# How to create reloadable object files.
21849reload_flag=$lt_reload_flag_CXX
21850reload_cmds=$lt_reload_cmds_CXX
21851
21852# Commands used to build an old-style archive.
21853old_archive_cmds=$lt_old_archive_cmds_CXX
21854
21855# A language specific compiler.
21856CC=$lt_compiler_CXX
21857
21858# Is the compiler the GNU compiler?
21859with_gcc=$GCC_CXX
21860
21861# Compiler flag to turn off builtin functions.
21862no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21863
21864# Additional compiler flags for building library objects.
21865pic_flag=$lt_lt_prog_compiler_pic_CXX
21866
21867# How to pass a linker flag through the compiler.
21868wl=$lt_lt_prog_compiler_wl_CXX
21869
21870# Compiler flag to prevent dynamic linking.
21871link_static_flag=$lt_lt_prog_compiler_static_CXX
21872
21873# Does compiler simultaneously support -c and -o options?
21874compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21875
21876# Whether or not to add -lc for building shared libraries.
21877build_libtool_need_lc=$archive_cmds_need_lc_CXX
21878
21879# Whether or not to disallow shared libs when runtime libs are static.
21880allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21881
21882# Compiler flag to allow reflexive dlopens.
21883export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21884
21885# Compiler flag to generate shared objects directly from archives.
21886whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21887
21888# Whether the compiler copes with passing no objects directly.
21889compiler_needs_object=$lt_compiler_needs_object_CXX
21890
21891# Create an old-style archive from a shared archive.
21892old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21893
21894# Create a temporary old-style archive to link instead of a shared archive.
21895old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21896
21897# Commands used to build a shared archive.
21898archive_cmds=$lt_archive_cmds_CXX
21899archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21900
21901# Commands used to build a loadable module if different from building
21902# a shared archive.
21903module_cmds=$lt_module_cmds_CXX
21904module_expsym_cmds=$lt_module_expsym_cmds_CXX
21905
21906# Whether we are building with GNU ld or not.
21907with_gnu_ld=$lt_with_gnu_ld_CXX
21908
21909# Flag that allows shared libraries with undefined symbols to be built.
21910allow_undefined_flag=$lt_allow_undefined_flag_CXX
21911
21912# Flag that enforces no undefined symbols.
21913no_undefined_flag=$lt_no_undefined_flag_CXX
21914
21915# Flag to hardcode \$libdir into a binary during linking.
21916# This must work even if \$libdir does not exist
21917hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21918
21919# Whether we need a single "-rpath" flag with a separated argument.
21920hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21921
21922# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21923# DIR into the resulting binary.
21924hardcode_direct=$hardcode_direct_CXX
21925
21926# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21927# DIR into the resulting binary and the resulting library dependency is
21928# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21929# library is relocated.
21930hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21931
21932# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21933# into the resulting binary.
21934hardcode_minus_L=$hardcode_minus_L_CXX
21935
21936# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21937# into the resulting binary.
21938hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21939
21940# Set to "yes" if building a shared library automatically hardcodes DIR
21941# into the library and all subsequent libraries and executables linked
21942# against it.
21943hardcode_automatic=$hardcode_automatic_CXX
21944
21945# Set to yes if linker adds runtime paths of dependent libraries
21946# to runtime path list.
21947inherit_rpath=$inherit_rpath_CXX
21948
21949# Whether libtool must link a program against all its dependency libraries.
21950link_all_deplibs=$link_all_deplibs_CXX
21951
21952# Set to "yes" if exported symbols are required.
21953always_export_symbols=$always_export_symbols_CXX
21954
21955# The commands to list exported symbols.
21956export_symbols_cmds=$lt_export_symbols_cmds_CXX
21957
21958# Symbols that should not be listed in the preloaded symbols.
21959exclude_expsyms=$lt_exclude_expsyms_CXX
21960
21961# Symbols that must always be exported.
21962include_expsyms=$lt_include_expsyms_CXX
21963
21964# Commands necessary for linking programs (against libraries) with templates.
21965prelink_cmds=$lt_prelink_cmds_CXX
21966
21967# Commands necessary for finishing linking programs.
21968postlink_cmds=$lt_postlink_cmds_CXX
21969
21970# Specify filename containing input files.
21971file_list_spec=$lt_file_list_spec_CXX
21972
21973# How to hardcode a shared library path into an executable.
21974hardcode_action=$hardcode_action_CXX
21975
21976# The directories searched by this compiler when creating a shared library.
21977compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21978
21979# Dependencies to place before and after the objects being linked to
21980# create a shared library.
21981predep_objects=$lt_predep_objects_CXX
21982postdep_objects=$lt_postdep_objects_CXX
21983predeps=$lt_predeps_CXX
21984postdeps=$lt_postdeps_CXX
21985
21986# The library search path used internally by the compiler when linking
21987# a shared library.
21988compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21989
21990# ### END LIBTOOL TAG CONFIG: CXX
21991_LT_EOF
21992
21993 ;;
21994
21995  esac
21996done # for ac_tag
21997
21998
21999as_fn_exit 0
22000_ACEOF
22001ac_clean_files=$ac_clean_files_save
22002
22003test $ac_write_fail = 0 ||
22004  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22005
22006
22007# configure is writing to config.log, and then calls config.status.
22008# config.status does its own redirection, appending to config.log.
22009# Unfortunately, on DOS this fails, as config.log is still kept open
22010# by configure, so config.status won't be able to write to it; its
22011# output is simply discarded.  So we exec the FD to /dev/null,
22012# effectively closing config.log, so it can be properly (re)opened and
22013# appended to by config.status.  When coming back to configure, we
22014# need to make the FD available again.
22015if test "$no_create" != yes; then
22016  ac_cs_success=:
22017  ac_config_status_args=
22018  test "$silent" = yes &&
22019    ac_config_status_args="$ac_config_status_args --quiet"
22020  exec 5>/dev/null
22021  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22022  exec 5>>config.log
22023  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22024  # would make configure fail if this is the last instruction.
22025  $ac_cs_success || as_fn_exit 1
22026fi
22027if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22028  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22029$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22030fi
22031
22032
22033{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
22034$as_echo "$as_me: " >&6;}
22035{ $as_echo "$as_me:${as_lineno-$LINENO}:  MJPEG tools ${VERSION} build configuration :" >&5
22036$as_echo "$as_me:  MJPEG tools ${VERSION} build configuration :" >&6;}
22037{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
22038$as_echo "$as_me: " >&6;}
22039if test "$have_x86cpu" = "true" ; then
22040  { $as_echo "$as_me:${as_lineno-$LINENO}:   - X86 Optimizations:" >&5
22041$as_echo "$as_me:   - X86 Optimizations:" >&6;}
22042  { $as_echo "$as_me:${as_lineno-$LINENO}:     - MMX/3DNow!/SSE enabled      : ${have_asm_mmx}" >&5
22043$as_echo "$as_me:     - MMX/3DNow!/SSE enabled      : ${have_asm_mmx}" >&6;}
22044fi
22045if test "$have_ppccpu" = "true" ; then
22046  { $as_echo "$as_me:${as_lineno-$LINENO}:   - PowerPC Optimizations:" >&5
22047$as_echo "$as_me:   - PowerPC Optimizations:" >&6;}
22048  { $as_echo "$as_me:${as_lineno-$LINENO}:     - AltiVec enabled             : ${have_altivec}" >&5
22049$as_echo "$as_me:     - AltiVec enabled             : ${have_altivec}" >&6;}
22050fi
22051if test x"$ARCHFLAGS" != x; then
22052  { $as_echo "$as_me:${as_lineno-$LINENO}:   - arch/cpu compiler flags       : ${ARCHFLAGS}" >&5
22053$as_echo "$as_me:   - arch/cpu compiler flags       : ${ARCHFLAGS}" >&6;}
22054fi
22055if test x"$with_extra_cflags" != "x"; then
22056  { $as_echo "$as_me:${as_lineno-$LINENO}:   - extra_cflags added to CFLAGS: ${with_extra_cflags}" >&5
22057$as_echo "$as_me:   - extra_cflags added to CFLAGS: ${with_extra_cflags}" >&6;}
22058fi
22059{ $as_echo "$as_me:${as_lineno-$LINENO}:   - video4linux recording/playback: ${have_video4linux}" >&5
22060$as_echo "$as_me:   - video4linux recording/playback: ${have_video4linux}" >&6;}
22061{ $as_echo "$as_me:${as_lineno-$LINENO}:   - software MJPEG playback       : ${have_sdl}" >&5
22062$as_echo "$as_me:   - software MJPEG playback       : ${have_sdl}" >&6;}
22063{ $as_echo "$as_me:${as_lineno-$LINENO}:   - Quicktime playback/recording  : ${have_libquicktime}" >&5
22064$as_echo "$as_me:   - Quicktime playback/recording  : ${have_libquicktime}" >&6;}
22065{ $as_echo "$as_me:${as_lineno-$LINENO}:   - PNG input support             : ${have_libpng}" >&5
22066$as_echo "$as_me:   - PNG input support             : ${have_libpng}" >&6;}
22067{ $as_echo "$as_me:${as_lineno-$LINENO}:   - AVI MJPEG playback/recording  : true (always)" >&5
22068$as_echo "$as_me:   - AVI MJPEG playback/recording  : true (always)" >&6;}
22069{ $as_echo "$as_me:${as_lineno-$LINENO}:   - libDV (digital video) support : ${have_libdv} " >&5
22070$as_echo "$as_me:   - libDV (digital video) support : ${have_libdv} " >&6;}
22071{ $as_echo "$as_me:${as_lineno-$LINENO}:   - Gtk+ support for glav         : ${have_gtk}" >&5
22072$as_echo "$as_me:   - Gtk+ support for glav         : ${have_gtk}" >&6;}
22073{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
22074$as_echo "$as_me: " >&6;}
22075