~ubuntu-branches/ubuntu/jaunty/gst-fluendo-mp3/jaunty

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-04-04 22:16:45 UTC
  • Revision ID: james.westby@ubuntu.com-20060404221645-h9mipobf21aqdj63
Tags: upstream-0.10.0.debian
Import upstream version 0.10.0.debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59.
 
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
 
6
# This configure script is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy, distribute and modify it.
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
 
244
 
 
245
# Check that we are running under the correct shell.
 
246
SHELL=${CONFIG_SHELL-/bin/sh}
 
247
 
 
248
case X$ECHO in
 
249
X*--fallback-echo)
 
250
  # Remove one level of quotation (which was required for Make).
 
251
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
252
  ;;
 
253
esac
 
254
 
 
255
echo=${ECHO-echo}
 
256
if test "X$1" = X--no-reexec; then
 
257
  # Discard the --no-reexec flag, and continue.
 
258
  shift
 
259
elif test "X$1" = X--fallback-echo; then
 
260
  # Avoid inline document here, it may be left over
 
261
  :
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
263
  # Yippee, $echo works!
 
264
  :
 
265
else
 
266
  # Restart under the correct shell.
 
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
268
fi
 
269
 
 
270
if test "X$1" = X--fallback-echo; then
 
271
  # used as fallback echo
 
272
  shift
 
273
  cat <<EOF
 
274
$*
 
275
EOF
 
276
  exit 0
 
277
fi
 
278
 
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
280
# if CDPATH is set.
 
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
282
 
 
283
if test -z "$ECHO"; then
 
284
if test "X${echo_test_string+set}" != Xset; then
 
285
# find a string as large as possible, as long as the shell can cope with it
 
286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
288
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
289
       echo_test_string=`eval $cmd` &&
 
290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
291
    then
 
292
      break
 
293
    fi
 
294
  done
 
295
fi
 
296
 
 
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
298
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
299
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
300
  :
 
301
else
 
302
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
303
  # backslashes.  This makes it impossible to quote backslashes using
 
304
  #   echo "$something" | sed 's/\\/\\\\/g'
 
305
  #
 
306
  # So, first we look for a working echo in the user's PATH.
 
307
 
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
 
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
314
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
315
      echo="$dir/echo"
 
316
      break
 
317
    fi
 
318
  done
 
319
  IFS="$lt_save_ifs"
 
320
 
 
321
  if test "X$echo" = Xecho; then
 
322
    # We didn't find a better echo, so look for alternatives.
 
323
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
324
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
325
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
326
      # This shell has a builtin print -r that does the trick.
 
327
      echo='print -r'
 
328
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
329
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
330
      # If we have ksh, try running configure again with it.
 
331
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
332
      export ORIGINAL_CONFIG_SHELL
 
333
      CONFIG_SHELL=/bin/ksh
 
334
      export CONFIG_SHELL
 
335
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
336
    else
 
337
      # Try using printf.
 
338
      echo='printf %s\n'
 
339
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
340
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
341
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
342
        # Cool, printf works
 
343
        :
 
344
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
345
           test "X$echo_testing_string" = 'X\t' &&
 
346
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
348
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
349
        export CONFIG_SHELL
 
350
        SHELL="$CONFIG_SHELL"
 
351
        export SHELL
 
352
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
353
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
354
           test "X$echo_testing_string" = 'X\t' &&
 
355
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
357
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
358
      else
 
359
        # maybe with a smaller string...
 
360
        prev=:
 
361
 
 
362
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
363
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
364
          then
 
365
            break
 
366
          fi
 
367
          prev="$cmd"
 
368
        done
 
369
 
 
370
        if test "$prev" != 'sed 50q "$0"'; then
 
371
          echo_test_string=`eval $prev`
 
372
          export echo_test_string
 
373
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
374
        else
 
375
          # Oops.  We lost completely, so just stick with echo.
 
376
          echo=echo
 
377
        fi
 
378
      fi
 
379
    fi
 
380
  fi
 
381
fi
 
382
fi
 
383
 
 
384
# Copy echo and quote the copy suitably for passing to libtool from
 
385
# the Makefile, instead of quoting the original, which is used later.
 
386
ECHO=$echo
 
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
389
fi
 
390
 
 
391
 
 
392
 
 
393
 
 
394
# Name of the host.
 
395
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
396
# so uname gets run too.
 
397
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
398
 
 
399
exec 6>&1
 
400
 
 
401
#
 
402
# Initializations.
 
403
#
 
404
ac_default_prefix=/usr/local
 
405
ac_config_libobj_dir=.
 
406
cross_compiling=no
 
407
subdirs=
 
408
MFLAGS=
 
409
MAKEFLAGS=
 
410
SHELL=${CONFIG_SHELL-/bin/sh}
 
411
 
 
412
# Maximum number of lines to put in a shell here document.
 
413
# This variable seems obsolete.  It should probably be removed, and
 
414
# only ac_max_sed_lines should be used.
 
415
: ${ac_max_here_lines=38}
 
416
 
 
417
# Identity of this package.
 
418
PACKAGE_NAME=
 
419
PACKAGE_TARNAME=
 
420
PACKAGE_VERSION=
 
421
PACKAGE_STRING=
 
422
PACKAGE_BUGREPORT=
 
423
 
 
424
ac_unique_file="decoder/flump3dec.c"
 
425
# Factoring default headers for most tests.
 
426
ac_includes_default="\
 
427
#include <stdio.h>
 
428
#if HAVE_SYS_TYPES_H
 
429
# include <sys/types.h>
 
430
#endif
 
431
#if HAVE_SYS_STAT_H
 
432
# include <sys/stat.h>
 
433
#endif
 
434
#if STDC_HEADERS
 
435
# include <stdlib.h>
 
436
# include <stddef.h>
 
437
#else
 
438
# if HAVE_STDLIB_H
 
439
#  include <stdlib.h>
 
440
# endif
 
441
#endif
 
442
#if HAVE_STRING_H
 
443
# if !STDC_HEADERS && HAVE_MEMORY_H
 
444
#  include <memory.h>
 
445
# endif
 
446
# include <string.h>
 
447
#endif
 
448
#if HAVE_STRINGS_H
 
449
# include <strings.h>
 
450
#endif
 
451
#if HAVE_INTTYPES_H
 
452
# include <inttypes.h>
 
453
#else
 
454
# if HAVE_STDINT_H
 
455
#  include <stdint.h>
 
456
# endif
 
457
#endif
 
458
#if HAVE_UNISTD_H
 
459
# include <unistd.h>
 
460
#endif"
 
461
 
 
462
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GST_PLUGIN_VERSION GST_PLUGIN_VERSION_RELEASE GST_PLUGIN_VERSION_MAJOR GST_PLUGIN_VERSION_MINOR GST_PLUGIN_VERSION_MICRO GST_PLUGIN_VERSION_NANO PACKAGE VERSION MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar ACLOCAL_AMFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP LIBTOOL ISODATE PKG_CONFIG VALGRIND_CFLAGS VALGRIND_LIBS GST_GCOV_ENABLED_TRUE GST_GCOV_ENABLED_FALSE BUILD_EXAMPLES_TRUE BUILD_EXAMPLES_FALSE GST_PACKAGE_NAME GST_PACKAGE_ORIGIN HAVE_PKGCONFIG USE_IPP_TRUE USE_IPP_FALSE IPP_LIBS IPP_INCLUDES GST_MAJORMINOR GST_CFLAGS GST_LIBS plugindir PLUGIN_LDFLAGS LIBOBJS LTLIBOBJS'
 
463
ac_subst_files=''
 
464
 
 
465
# Initialize some variables set by options.
 
466
ac_init_help=
 
467
ac_init_version=false
 
468
# The variables have the same names as the options, with
 
469
# dashes changed to underlines.
 
470
cache_file=/dev/null
 
471
exec_prefix=NONE
 
472
no_create=
 
473
no_recursion=
 
474
prefix=NONE
 
475
program_prefix=NONE
 
476
program_suffix=NONE
 
477
program_transform_name=s,x,x,
 
478
silent=
 
479
site=
 
480
srcdir=
 
481
verbose=
 
482
x_includes=NONE
 
483
x_libraries=NONE
 
484
 
 
485
# Installation directory options.
 
486
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
487
# and all the variables that are supposed to be based on exec_prefix
 
488
# by default will actually change.
 
489
# Use braces instead of parens because sh, perl, etc. also accept them.
 
490
bindir='${exec_prefix}/bin'
 
491
sbindir='${exec_prefix}/sbin'
 
492
libexecdir='${exec_prefix}/libexec'
 
493
datadir='${prefix}/share'
 
494
sysconfdir='${prefix}/etc'
 
495
sharedstatedir='${prefix}/com'
 
496
localstatedir='${prefix}/var'
 
497
libdir='${exec_prefix}/lib'
 
498
includedir='${prefix}/include'
 
499
oldincludedir='/usr/include'
 
500
infodir='${prefix}/info'
 
501
mandir='${prefix}/man'
 
502
 
 
503
ac_prev=
 
504
for ac_option
 
505
do
 
506
  # If the previous option needs an argument, assign it.
 
507
  if test -n "$ac_prev"; then
 
508
    eval "$ac_prev=\$ac_option"
 
509
    ac_prev=
 
510
    continue
 
511
  fi
 
512
 
 
513
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
514
 
 
515
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
516
 
 
517
  case $ac_option in
 
518
 
 
519
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
520
    ac_prev=bindir ;;
 
521
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
522
    bindir=$ac_optarg ;;
 
523
 
 
524
  -build | --build | --buil | --bui | --bu)
 
525
    ac_prev=build_alias ;;
 
526
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
527
    build_alias=$ac_optarg ;;
 
528
 
 
529
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
530
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
531
    ac_prev=cache_file ;;
 
532
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
533
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
534
    cache_file=$ac_optarg ;;
 
535
 
 
536
  --config-cache | -C)
 
537
    cache_file=config.cache ;;
 
538
 
 
539
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
540
    ac_prev=datadir ;;
 
541
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
542
  | --da=*)
 
543
    datadir=$ac_optarg ;;
 
544
 
 
545
  -disable-* | --disable-*)
 
546
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
547
    # Reject names that are not valid shell variable names.
 
548
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
549
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
550
   { (exit 1); exit 1; }; }
 
551
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
552
    eval "enable_$ac_feature=no" ;;
 
553
 
 
554
  -enable-* | --enable-*)
 
555
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
556
    # Reject names that are not valid shell variable names.
 
557
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
558
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
559
   { (exit 1); exit 1; }; }
 
560
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
561
    case $ac_option in
 
562
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
563
      *) ac_optarg=yes ;;
 
564
    esac
 
565
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
566
 
 
567
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
568
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
569
  | --exec | --exe | --ex)
 
570
    ac_prev=exec_prefix ;;
 
571
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
572
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
573
  | --exec=* | --exe=* | --ex=*)
 
574
    exec_prefix=$ac_optarg ;;
 
575
 
 
576
  -gas | --gas | --ga | --g)
 
577
    # Obsolete; use --with-gas.
 
578
    with_gas=yes ;;
 
579
 
 
580
  -help | --help | --hel | --he | -h)
 
581
    ac_init_help=long ;;
 
582
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
583
    ac_init_help=recursive ;;
 
584
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
585
    ac_init_help=short ;;
 
586
 
 
587
  -host | --host | --hos | --ho)
 
588
    ac_prev=host_alias ;;
 
589
  -host=* | --host=* | --hos=* | --ho=*)
 
590
    host_alias=$ac_optarg ;;
 
591
 
 
592
  -includedir | --includedir | --includedi | --included | --include \
 
593
  | --includ | --inclu | --incl | --inc)
 
594
    ac_prev=includedir ;;
 
595
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
596
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
597
    includedir=$ac_optarg ;;
 
598
 
 
599
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
600
    ac_prev=infodir ;;
 
601
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
602
    infodir=$ac_optarg ;;
 
603
 
 
604
  -libdir | --libdir | --libdi | --libd)
 
605
    ac_prev=libdir ;;
 
606
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
607
    libdir=$ac_optarg ;;
 
608
 
 
609
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
610
  | --libexe | --libex | --libe)
 
611
    ac_prev=libexecdir ;;
 
612
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
613
  | --libexe=* | --libex=* | --libe=*)
 
614
    libexecdir=$ac_optarg ;;
 
615
 
 
616
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
617
  | --localstate | --localstat | --localsta | --localst \
 
618
  | --locals | --local | --loca | --loc | --lo)
 
619
    ac_prev=localstatedir ;;
 
620
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
621
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
622
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
623
    localstatedir=$ac_optarg ;;
 
624
 
 
625
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
626
    ac_prev=mandir ;;
 
627
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
628
    mandir=$ac_optarg ;;
 
629
 
 
630
  -nfp | --nfp | --nf)
 
631
    # Obsolete; use --without-fp.
 
632
    with_fp=no ;;
 
633
 
 
634
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
635
  | --no-cr | --no-c | -n)
 
636
    no_create=yes ;;
 
637
 
 
638
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
639
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
640
    no_recursion=yes ;;
 
641
 
 
642
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
643
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
644
  | --oldin | --oldi | --old | --ol | --o)
 
645
    ac_prev=oldincludedir ;;
 
646
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
647
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
648
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
649
    oldincludedir=$ac_optarg ;;
 
650
 
 
651
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
652
    ac_prev=prefix ;;
 
653
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
654
    prefix=$ac_optarg ;;
 
655
 
 
656
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
657
  | --program-pre | --program-pr | --program-p)
 
658
    ac_prev=program_prefix ;;
 
659
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
660
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
661
    program_prefix=$ac_optarg ;;
 
662
 
 
663
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
664
  | --program-suf | --program-su | --program-s)
 
665
    ac_prev=program_suffix ;;
 
666
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
667
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
668
    program_suffix=$ac_optarg ;;
 
669
 
 
670
  -program-transform-name | --program-transform-name \
 
671
  | --program-transform-nam | --program-transform-na \
 
672
  | --program-transform-n | --program-transform- \
 
673
  | --program-transform | --program-transfor \
 
674
  | --program-transfo | --program-transf \
 
675
  | --program-trans | --program-tran \
 
676
  | --progr-tra | --program-tr | --program-t)
 
677
    ac_prev=program_transform_name ;;
 
678
  -program-transform-name=* | --program-transform-name=* \
 
679
  | --program-transform-nam=* | --program-transform-na=* \
 
680
  | --program-transform-n=* | --program-transform-=* \
 
681
  | --program-transform=* | --program-transfor=* \
 
682
  | --program-transfo=* | --program-transf=* \
 
683
  | --program-trans=* | --program-tran=* \
 
684
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
685
    program_transform_name=$ac_optarg ;;
 
686
 
 
687
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
688
  | -silent | --silent | --silen | --sile | --sil)
 
689
    silent=yes ;;
 
690
 
 
691
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
692
    ac_prev=sbindir ;;
 
693
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
694
  | --sbi=* | --sb=*)
 
695
    sbindir=$ac_optarg ;;
 
696
 
 
697
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
698
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
699
  | --sharedst | --shareds | --shared | --share | --shar \
 
700
  | --sha | --sh)
 
701
    ac_prev=sharedstatedir ;;
 
702
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
703
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
704
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
705
  | --sha=* | --sh=*)
 
706
    sharedstatedir=$ac_optarg ;;
 
707
 
 
708
  -site | --site | --sit)
 
709
    ac_prev=site ;;
 
710
  -site=* | --site=* | --sit=*)
 
711
    site=$ac_optarg ;;
 
712
 
 
713
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
714
    ac_prev=srcdir ;;
 
715
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
716
    srcdir=$ac_optarg ;;
 
717
 
 
718
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
719
  | --syscon | --sysco | --sysc | --sys | --sy)
 
720
    ac_prev=sysconfdir ;;
 
721
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
722
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
723
    sysconfdir=$ac_optarg ;;
 
724
 
 
725
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
726
    ac_prev=target_alias ;;
 
727
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
728
    target_alias=$ac_optarg ;;
 
729
 
 
730
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
731
    verbose=yes ;;
 
732
 
 
733
  -version | --version | --versio | --versi | --vers | -V)
 
734
    ac_init_version=: ;;
 
735
 
 
736
  -with-* | --with-*)
 
737
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
738
    # Reject names that are not valid shell variable names.
 
739
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
740
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
741
   { (exit 1); exit 1; }; }
 
742
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
743
    case $ac_option in
 
744
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
745
      *) ac_optarg=yes ;;
 
746
    esac
 
747
    eval "with_$ac_package='$ac_optarg'" ;;
 
748
 
 
749
  -without-* | --without-*)
 
750
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
751
    # Reject names that are not valid shell variable names.
 
752
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
753
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
754
   { (exit 1); exit 1; }; }
 
755
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
756
    eval "with_$ac_package=no" ;;
 
757
 
 
758
  --x)
 
759
    # Obsolete; use --with-x.
 
760
    with_x=yes ;;
 
761
 
 
762
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
763
  | --x-incl | --x-inc | --x-in | --x-i)
 
764
    ac_prev=x_includes ;;
 
765
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
766
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
767
    x_includes=$ac_optarg ;;
 
768
 
 
769
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
770
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
771
    ac_prev=x_libraries ;;
 
772
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
773
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
774
    x_libraries=$ac_optarg ;;
 
775
 
 
776
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
777
Try \`$0 --help' for more information." >&2
 
778
   { (exit 1); exit 1; }; }
 
779
    ;;
 
780
 
 
781
  *=*)
 
782
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
783
    # Reject names that are not valid shell variable names.
 
784
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
785
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
786
   { (exit 1); exit 1; }; }
 
787
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
788
    eval "$ac_envvar='$ac_optarg'"
 
789
    export $ac_envvar ;;
 
790
 
 
791
  *)
 
792
    # FIXME: should be removed in autoconf 3.0.
 
793
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
794
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
795
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
796
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
797
    ;;
 
798
 
 
799
  esac
 
800
done
 
801
 
 
802
if test -n "$ac_prev"; then
 
803
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
804
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
805
   { (exit 1); exit 1; }; }
 
806
fi
 
807
 
 
808
# Be sure to have absolute paths.
 
809
for ac_var in exec_prefix prefix
 
810
do
 
811
  eval ac_val=$`echo $ac_var`
 
812
  case $ac_val in
 
813
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
814
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
815
   { (exit 1); exit 1; }; };;
 
816
  esac
 
817
done
 
818
 
 
819
# Be sure to have absolute paths.
 
820
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
821
              localstatedir libdir includedir oldincludedir infodir mandir
 
822
do
 
823
  eval ac_val=$`echo $ac_var`
 
824
  case $ac_val in
 
825
    [\\/$]* | ?:[\\/]* ) ;;
 
826
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
827
   { (exit 1); exit 1; }; };;
 
828
  esac
 
829
done
 
830
 
 
831
# There might be people who depend on the old broken behavior: `$host'
 
832
# used to hold the argument of --host etc.
 
833
# FIXME: To remove some day.
 
834
build=$build_alias
 
835
host=$host_alias
 
836
target=$target_alias
 
837
 
 
838
# FIXME: To remove some day.
 
839
if test "x$host_alias" != x; then
 
840
  if test "x$build_alias" = x; then
 
841
    cross_compiling=maybe
 
842
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
843
    If a cross compiler is detected then cross compile mode will be used." >&2
 
844
  elif test "x$build_alias" != "x$host_alias"; then
 
845
    cross_compiling=yes
 
846
  fi
 
847
fi
 
848
 
 
849
ac_tool_prefix=
 
850
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
851
 
 
852
test "$silent" = yes && exec 6>/dev/null
 
853
 
 
854
 
 
855
# Find the source files, if location was not specified.
 
856
if test -z "$srcdir"; then
 
857
  ac_srcdir_defaulted=yes
 
858
  # Try the directory containing this script, then its parent.
 
859
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
860
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
861
         X"$0" : 'X\(//\)[^/]' \| \
 
862
         X"$0" : 'X\(//\)$' \| \
 
863
         X"$0" : 'X\(/\)' \| \
 
864
         .     : '\(.\)' 2>/dev/null ||
 
865
echo X"$0" |
 
866
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
867
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
868
          /^X\(\/\/\)$/{ s//\1/; q; }
 
869
          /^X\(\/\).*/{ s//\1/; q; }
 
870
          s/.*/./; q'`
 
871
  srcdir=$ac_confdir
 
872
  if test ! -r $srcdir/$ac_unique_file; then
 
873
    srcdir=..
 
874
  fi
 
875
else
 
876
  ac_srcdir_defaulted=no
 
877
fi
 
878
if test ! -r $srcdir/$ac_unique_file; then
 
879
  if test "$ac_srcdir_defaulted" = yes; then
 
880
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
881
   { (exit 1); exit 1; }; }
 
882
  else
 
883
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
884
   { (exit 1); exit 1; }; }
 
885
  fi
 
886
fi
 
887
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
888
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
889
   { (exit 1); exit 1; }; }
 
890
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
891
ac_env_build_alias_set=${build_alias+set}
 
892
ac_env_build_alias_value=$build_alias
 
893
ac_cv_env_build_alias_set=${build_alias+set}
 
894
ac_cv_env_build_alias_value=$build_alias
 
895
ac_env_host_alias_set=${host_alias+set}
 
896
ac_env_host_alias_value=$host_alias
 
897
ac_cv_env_host_alias_set=${host_alias+set}
 
898
ac_cv_env_host_alias_value=$host_alias
 
899
ac_env_target_alias_set=${target_alias+set}
 
900
ac_env_target_alias_value=$target_alias
 
901
ac_cv_env_target_alias_set=${target_alias+set}
 
902
ac_cv_env_target_alias_value=$target_alias
 
903
ac_env_CC_set=${CC+set}
 
904
ac_env_CC_value=$CC
 
905
ac_cv_env_CC_set=${CC+set}
 
906
ac_cv_env_CC_value=$CC
 
907
ac_env_CFLAGS_set=${CFLAGS+set}
 
908
ac_env_CFLAGS_value=$CFLAGS
 
909
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
910
ac_cv_env_CFLAGS_value=$CFLAGS
 
911
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
912
ac_env_LDFLAGS_value=$LDFLAGS
 
913
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
914
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
915
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
916
ac_env_CPPFLAGS_value=$CPPFLAGS
 
917
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
918
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
919
ac_env_CPP_set=${CPP+set}
 
920
ac_env_CPP_value=$CPP
 
921
ac_cv_env_CPP_set=${CPP+set}
 
922
ac_cv_env_CPP_value=$CPP
 
923
 
 
924
#
 
925
# Report the --help message.
 
926
#
 
927
if test "$ac_init_help" = "long"; then
 
928
  # Omit some internal or obsolete options to make the list less imposing.
 
929
  # This message is too long to be a string in the A/UX 3.1 sh.
 
930
  cat <<_ACEOF
 
931
\`configure' configures this package to adapt to many kinds of systems.
 
932
 
 
933
Usage: $0 [OPTION]... [VAR=VALUE]...
 
934
 
 
935
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
936
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
937
 
 
938
Defaults for the options are specified in brackets.
 
939
 
 
940
Configuration:
 
941
  -h, --help              display this help and exit
 
942
      --help=short        display options specific to this package
 
943
      --help=recursive    display the short help of all the included packages
 
944
  -V, --version           display version information and exit
 
945
  -q, --quiet, --silent   do not print \`checking...' messages
 
946
      --cache-file=FILE   cache test results in FILE [disabled]
 
947
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
948
  -n, --no-create         do not create output files
 
949
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
950
 
 
951
_ACEOF
 
952
 
 
953
  cat <<_ACEOF
 
954
Installation directories:
 
955
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
956
                          [$ac_default_prefix]
 
957
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
958
                          [PREFIX]
 
959
 
 
960
By default, \`make install' will install all the files in
 
961
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
962
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
963
for instance \`--prefix=\$HOME'.
 
964
 
 
965
For better control, use the options below.
 
966
 
 
967
Fine tuning of the installation directories:
 
968
  --bindir=DIR           user executables [EPREFIX/bin]
 
969
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
970
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
971
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
972
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
973
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
974
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
975
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
976
  --includedir=DIR       C header files [PREFIX/include]
 
977
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
978
  --infodir=DIR          info documentation [PREFIX/info]
 
979
  --mandir=DIR           man documentation [PREFIX/man]
 
980
_ACEOF
 
981
 
 
982
  cat <<\_ACEOF
 
983
 
 
984
Program names:
 
985
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
986
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
987
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
988
 
 
989
System types:
 
990
  --build=BUILD     configure for building on BUILD [guessed]
 
991
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
992
_ACEOF
 
993
fi
 
994
 
 
995
if test -n "$ac_init_help"; then
 
996
 
 
997
  cat <<\_ACEOF
 
998
 
 
999
Optional Features:
 
1000
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1001
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1002
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1003
                          (and sometimes confusing) to the casual installer
 
1004
  --enable-shared[=PKGS]
 
1005
                          build shared libraries [default=yes]
 
1006
  --enable-static[=PKGS]
 
1007
                          build static libraries [default=yes]
 
1008
  --enable-fast-install[=PKGS]
 
1009
                          optimize for fast installation [default=yes]
 
1010
  --disable-dependency-tracking  speeds up one-time build
 
1011
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1012
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1013
  --disable-debug         disable addition of -g debugging info
 
1014
  --enable-profiling      adds -pg to compiler commandline, for profiling
 
1015
  --disable-valgrind      disable run-time valgrind detection
 
1016
  --enable-gcov           compile with coverage profiling instrumentation (gcc
 
1017
                          only)
 
1018
  --disable-examples      disable building examples
 
1019
  --enable-profiling      Enable profiling support (no|yes)(default=no)
 
1020
 
 
1021
Optional Packages:
 
1022
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1023
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1024
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1025
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1026
                          both]
 
1027
  --with-pkg-config-path  colon-separated list of pkg-config(1) dirs
 
1028
  --with-package-name     specify package name to use in plugins
 
1029
  --with-package-origin   specify package origin URL to use in plugins
 
1030
  --with-ipp              Turn on/off use of Intel Programming Primitives
 
1031
                          (default=yes)
 
1032
  --with-ipp-path         manually set location of IPP files, point to the
 
1033
                          directory just beneath the directory using the IPP
 
1034
                          version number
 
1035
 
 
1036
Some influential environment variables:
 
1037
  CC          C compiler command
 
1038
  CFLAGS      C compiler flags
 
1039
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1040
              nonstandard directory <lib dir>
 
1041
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1042
              headers in a nonstandard directory <include dir>
 
1043
  CPP         C preprocessor
 
1044
 
 
1045
Use these variables to override the choices made by `configure' or to help
 
1046
it to find libraries and programs with nonstandard names/locations.
 
1047
 
 
1048
_ACEOF
 
1049
fi
 
1050
 
 
1051
if test "$ac_init_help" = "recursive"; then
 
1052
  # If there are subdirs, report their specific --help.
 
1053
  ac_popdir=`pwd`
 
1054
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1055
    test -d $ac_dir || continue
 
1056
    ac_builddir=.
 
1057
 
 
1058
if test "$ac_dir" != .; then
 
1059
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1060
  # A "../" for each directory in $ac_dir_suffix.
 
1061
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1062
else
 
1063
  ac_dir_suffix= ac_top_builddir=
 
1064
fi
 
1065
 
 
1066
case $srcdir in
 
1067
  .)  # No --srcdir option.  We are building in place.
 
1068
    ac_srcdir=.
 
1069
    if test -z "$ac_top_builddir"; then
 
1070
       ac_top_srcdir=.
 
1071
    else
 
1072
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1073
    fi ;;
 
1074
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1075
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1076
    ac_top_srcdir=$srcdir ;;
 
1077
  *) # Relative path.
 
1078
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1079
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1080
esac
 
1081
 
 
1082
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1083
# the directories may not exist.
 
1084
case `pwd` in
 
1085
.) ac_abs_builddir="$ac_dir";;
 
1086
*)
 
1087
  case "$ac_dir" in
 
1088
  .) ac_abs_builddir=`pwd`;;
 
1089
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1090
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1091
  esac;;
 
1092
esac
 
1093
case $ac_abs_builddir in
 
1094
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1095
*)
 
1096
  case ${ac_top_builddir}. in
 
1097
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1098
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1099
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1100
  esac;;
 
1101
esac
 
1102
case $ac_abs_builddir in
 
1103
.) ac_abs_srcdir=$ac_srcdir;;
 
1104
*)
 
1105
  case $ac_srcdir in
 
1106
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1107
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1108
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1109
  esac;;
 
1110
esac
 
1111
case $ac_abs_builddir in
 
1112
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1113
*)
 
1114
  case $ac_top_srcdir in
 
1115
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1116
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1117
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1118
  esac;;
 
1119
esac
 
1120
 
 
1121
    cd $ac_dir
 
1122
    # Check for guested configure; otherwise get Cygnus style configure.
 
1123
    if test -f $ac_srcdir/configure.gnu; then
 
1124
      echo
 
1125
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1126
    elif test -f $ac_srcdir/configure; then
 
1127
      echo
 
1128
      $SHELL $ac_srcdir/configure  --help=recursive
 
1129
    elif test -f $ac_srcdir/configure.ac ||
 
1130
           test -f $ac_srcdir/configure.in; then
 
1131
      echo
 
1132
      $ac_configure --help
 
1133
    else
 
1134
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1135
    fi
 
1136
    cd "$ac_popdir"
 
1137
  done
 
1138
fi
 
1139
 
 
1140
test -n "$ac_init_help" && exit 0
 
1141
if $ac_init_version; then
 
1142
  cat <<\_ACEOF
 
1143
 
 
1144
Copyright (C) 2003 Free Software Foundation, Inc.
 
1145
This configure script is free software; the Free Software Foundation
 
1146
gives unlimited permission to copy, distribute and modify it.
 
1147
_ACEOF
 
1148
  exit 0
 
1149
fi
 
1150
exec 5>config.log
 
1151
cat >&5 <<_ACEOF
 
1152
This file contains any messages produced by compilers while
 
1153
running configure, to aid debugging if configure makes a mistake.
 
1154
 
 
1155
It was created by $as_me, which was
 
1156
generated by GNU Autoconf 2.59.  Invocation command line was
 
1157
 
 
1158
  $ $0 $@
 
1159
 
 
1160
_ACEOF
 
1161
{
 
1162
cat <<_ASUNAME
 
1163
## --------- ##
 
1164
## Platform. ##
 
1165
## --------- ##
 
1166
 
 
1167
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1168
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1169
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1170
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1171
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1172
 
 
1173
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1174
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1175
 
 
1176
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1177
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1178
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1179
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1180
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1181
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1182
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1183
 
 
1184
_ASUNAME
 
1185
 
 
1186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1187
for as_dir in $PATH
 
1188
do
 
1189
  IFS=$as_save_IFS
 
1190
  test -z "$as_dir" && as_dir=.
 
1191
  echo "PATH: $as_dir"
 
1192
done
 
1193
 
 
1194
} >&5
 
1195
 
 
1196
cat >&5 <<_ACEOF
 
1197
 
 
1198
 
 
1199
## ----------- ##
 
1200
## Core tests. ##
 
1201
## ----------- ##
 
1202
 
 
1203
_ACEOF
 
1204
 
 
1205
 
 
1206
# Keep a trace of the command line.
 
1207
# Strip out --no-create and --no-recursion so they do not pile up.
 
1208
# Strip out --silent because we don't want to record it for future runs.
 
1209
# Also quote any args containing shell meta-characters.
 
1210
# Make two passes to allow for proper duplicate-argument suppression.
 
1211
ac_configure_args=
 
1212
ac_configure_args0=
 
1213
ac_configure_args1=
 
1214
ac_sep=
 
1215
ac_must_keep_next=false
 
1216
for ac_pass in 1 2
 
1217
do
 
1218
  for ac_arg
 
1219
  do
 
1220
    case $ac_arg in
 
1221
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1222
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1223
    | -silent | --silent | --silen | --sile | --sil)
 
1224
      continue ;;
 
1225
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1226
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1227
    esac
 
1228
    case $ac_pass in
 
1229
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1230
    2)
 
1231
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1232
      if test $ac_must_keep_next = true; then
 
1233
        ac_must_keep_next=false # Got value, back to normal.
 
1234
      else
 
1235
        case $ac_arg in
 
1236
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1237
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1238
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1239
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1240
            case "$ac_configure_args0 " in
 
1241
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1242
            esac
 
1243
            ;;
 
1244
          -* ) ac_must_keep_next=true ;;
 
1245
        esac
 
1246
      fi
 
1247
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1248
      # Get rid of the leading space.
 
1249
      ac_sep=" "
 
1250
      ;;
 
1251
    esac
 
1252
  done
 
1253
done
 
1254
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1255
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1256
 
 
1257
# When interrupted or exit'd, cleanup temporary files, and complete
 
1258
# config.log.  We remove comments because anyway the quotes in there
 
1259
# would cause problems or look ugly.
 
1260
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1261
# such as our DU 5.0 friend, will then `close' the trap.
 
1262
trap 'exit_status=$?
 
1263
  # Save into config.log some information that might help in debugging.
 
1264
  {
 
1265
    echo
 
1266
 
 
1267
    cat <<\_ASBOX
 
1268
## ---------------- ##
 
1269
## Cache variables. ##
 
1270
## ---------------- ##
 
1271
_ASBOX
 
1272
    echo
 
1273
    # The following way of writing the cache mishandles newlines in values,
 
1274
{
 
1275
  (set) 2>&1 |
 
1276
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1277
    *ac_space=\ *)
 
1278
      sed -n \
 
1279
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1280
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1281
      ;;
 
1282
    *)
 
1283
      sed -n \
 
1284
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1285
      ;;
 
1286
    esac;
 
1287
}
 
1288
    echo
 
1289
 
 
1290
    cat <<\_ASBOX
 
1291
## ----------------- ##
 
1292
## Output variables. ##
 
1293
## ----------------- ##
 
1294
_ASBOX
 
1295
    echo
 
1296
    for ac_var in $ac_subst_vars
 
1297
    do
 
1298
      eval ac_val=$`echo $ac_var`
 
1299
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1300
    done | sort
 
1301
    echo
 
1302
 
 
1303
    if test -n "$ac_subst_files"; then
 
1304
      cat <<\_ASBOX
 
1305
## ------------- ##
 
1306
## Output files. ##
 
1307
## ------------- ##
 
1308
_ASBOX
 
1309
      echo
 
1310
      for ac_var in $ac_subst_files
 
1311
      do
 
1312
        eval ac_val=$`echo $ac_var`
 
1313
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1314
      done | sort
 
1315
      echo
 
1316
    fi
 
1317
 
 
1318
    if test -s confdefs.h; then
 
1319
      cat <<\_ASBOX
 
1320
## ----------- ##
 
1321
## confdefs.h. ##
 
1322
## ----------- ##
 
1323
_ASBOX
 
1324
      echo
 
1325
      sed "/^$/d" confdefs.h | sort
 
1326
      echo
 
1327
    fi
 
1328
    test "$ac_signal" != 0 &&
 
1329
      echo "$as_me: caught signal $ac_signal"
 
1330
    echo "$as_me: exit $exit_status"
 
1331
  } >&5
 
1332
  rm -f core *.core &&
 
1333
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1334
    exit $exit_status
 
1335
     ' 0
 
1336
for ac_signal in 1 2 13 15; do
 
1337
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1338
done
 
1339
ac_signal=0
 
1340
 
 
1341
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1342
rm -rf conftest* confdefs.h
 
1343
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1344
echo >confdefs.h
 
1345
 
 
1346
# Predefined preprocessor variables.
 
1347
 
 
1348
cat >>confdefs.h <<_ACEOF
 
1349
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1350
_ACEOF
 
1351
 
 
1352
 
 
1353
cat >>confdefs.h <<_ACEOF
 
1354
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1355
_ACEOF
 
1356
 
 
1357
 
 
1358
cat >>confdefs.h <<_ACEOF
 
1359
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1360
_ACEOF
 
1361
 
 
1362
 
 
1363
cat >>confdefs.h <<_ACEOF
 
1364
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1365
_ACEOF
 
1366
 
 
1367
 
 
1368
cat >>confdefs.h <<_ACEOF
 
1369
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1370
_ACEOF
 
1371
 
 
1372
 
 
1373
# Let the site file select an alternate cache file if it wants to.
 
1374
# Prefer explicitly selected file to automatically selected ones.
 
1375
if test -z "$CONFIG_SITE"; then
 
1376
  if test "x$prefix" != xNONE; then
 
1377
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1378
  else
 
1379
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1380
  fi
 
1381
fi
 
1382
for ac_site_file in $CONFIG_SITE; do
 
1383
  if test -r "$ac_site_file"; then
 
1384
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1385
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1386
    sed 's/^/| /' "$ac_site_file" >&5
 
1387
    . "$ac_site_file"
 
1388
  fi
 
1389
done
 
1390
 
 
1391
if test -r "$cache_file"; then
 
1392
  # Some versions of bash will fail to source /dev/null (special
 
1393
  # files actually), so we avoid doing that.
 
1394
  if test -f "$cache_file"; then
 
1395
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1396
echo "$as_me: loading cache $cache_file" >&6;}
 
1397
    case $cache_file in
 
1398
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1399
      *)                      . ./$cache_file;;
 
1400
    esac
 
1401
  fi
 
1402
else
 
1403
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1404
echo "$as_me: creating cache $cache_file" >&6;}
 
1405
  >$cache_file
 
1406
fi
 
1407
 
 
1408
# Check that the precious variables saved in the cache have kept the same
 
1409
# value.
 
1410
ac_cache_corrupted=false
 
1411
for ac_var in `(set) 2>&1 |
 
1412
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1413
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1414
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1415
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1416
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1417
  case $ac_old_set,$ac_new_set in
 
1418
    set,)
 
1419
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1420
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1421
      ac_cache_corrupted=: ;;
 
1422
    ,set)
 
1423
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1424
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1425
      ac_cache_corrupted=: ;;
 
1426
    ,);;
 
1427
    *)
 
1428
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1429
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1430
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1431
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1432
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1433
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1434
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1435
        ac_cache_corrupted=:
 
1436
      fi;;
 
1437
  esac
 
1438
  # Pass precious variables to config.status.
 
1439
  if test "$ac_new_set" = set; then
 
1440
    case $ac_new_val in
 
1441
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1442
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1443
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1444
    esac
 
1445
    case " $ac_configure_args " in
 
1446
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1447
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1448
    esac
 
1449
  fi
 
1450
done
 
1451
if $ac_cache_corrupted; then
 
1452
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1453
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1454
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1455
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1456
   { (exit 1); exit 1; }; }
 
1457
fi
 
1458
 
 
1459
ac_ext=c
 
1460
ac_cpp='$CPP $CPPFLAGS'
 
1461
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1462
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1463
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1464
 
 
1465
 
 
1466
 
 
1467
 
 
1468
 
 
1469
 
 
1470
 
 
1471
 
 
1472
 
 
1473
 
 
1474
 
 
1475
 
 
1476
 
 
1477
 
 
1478
 
 
1479
 
 
1480
 
 
1481
 
 
1482
 
 
1483
 
 
1484
 
 
1485
  PACKAGE=gst-fluendo-mp3
 
1486
  GST_PLUGIN_VERSION_MAJOR=0
 
1487
  GST_PLUGIN_VERSION_MINOR=10
 
1488
  GST_PLUGIN_VERSION_MICRO=0
 
1489
  NANO=0
 
1490
  GST_PLUGIN_VERSION_NANO=$NANO
 
1491
  if test "x$NANO" = "x" || test "x$NANO" = "x0";
 
1492
  then
 
1493
      { echo "$as_me:$LINENO: configuring gst-fluendo-mp3 for release" >&5
 
1494
echo "$as_me: configuring gst-fluendo-mp3 for release" >&6;}
 
1495
      VERSION=0.10.0
 
1496
      GST_PLUGIN_VERSION_RELEASE=1
 
1497
            GST_PLUGIN_TRUNK="no"
 
1498
  else
 
1499
      { echo "$as_me:$LINENO: configuring gst-fluendo-mp3 for development with nano $NANO" >&5
 
1500
echo "$as_me: configuring gst-fluendo-mp3 for development with nano $NANO" >&6;}
 
1501
      VERSION=0.10.0.$NANO
 
1502
      GST_PLUGIN_VERSION_RELEASE=`date +%Y%m%d_%H%M%S`
 
1503
            GST_PLUGIN_TRUNK="yes"
 
1504
  fi
 
1505
 
 
1506
  GST_PLUGIN_VERSION=$VERSION
 
1507
 
 
1508
cat >>confdefs.h <<_ACEOF
 
1509
#define GST_PLUGIN_VERSION "$GST_PLUGIN_VERSION"
 
1510
_ACEOF
 
1511
 
 
1512
 
 
1513
 
 
1514
cat >>confdefs.h <<_ACEOF
 
1515
#define GST_PLUGIN_VERSION_RELEASE "$GST_PLUGIN_VERSION_RELEASE"
 
1516
_ACEOF
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
 
1525
cat >>confdefs.h <<_ACEOF
 
1526
#define PACKAGE "$PACKAGE"
 
1527
_ACEOF
 
1528
 
 
1529
 
 
1530
 
 
1531
cat >>confdefs.h <<_ACEOF
 
1532
#define VERSION "$VERSION"
 
1533
_ACEOF
 
1534
 
 
1535
 
 
1536
 
 
1537
 
 
1538
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1539
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1540
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1541
if test "${enable_maintainer_mode+set}" = set; then
 
1542
  enableval="$enable_maintainer_mode"
 
1543
  USE_MAINTAINER_MODE=$enableval
 
1544
else
 
1545
  USE_MAINTAINER_MODE=no
 
1546
fi;
 
1547
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1548
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1549
 
 
1550
 
 
1551
if test $USE_MAINTAINER_MODE = yes; then
 
1552
  MAINTAINER_MODE_TRUE=
 
1553
  MAINTAINER_MODE_FALSE='#'
 
1554
else
 
1555
  MAINTAINER_MODE_TRUE='#'
 
1556
  MAINTAINER_MODE_FALSE=
 
1557
fi
 
1558
 
 
1559
  MAINT=$MAINTAINER_MODE_TRUE
 
1560
 
 
1561
 
 
1562
 
 
1563
am__api_version="1.9"
 
1564
ac_aux_dir=
 
1565
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1566
  if test -f $ac_dir/install-sh; then
 
1567
    ac_aux_dir=$ac_dir
 
1568
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1569
    break
 
1570
  elif test -f $ac_dir/install.sh; then
 
1571
    ac_aux_dir=$ac_dir
 
1572
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1573
    break
 
1574
  elif test -f $ac_dir/shtool; then
 
1575
    ac_aux_dir=$ac_dir
 
1576
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1577
    break
 
1578
  fi
 
1579
done
 
1580
if test -z "$ac_aux_dir"; then
 
1581
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1582
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1583
   { (exit 1); exit 1; }; }
 
1584
fi
 
1585
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1586
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1587
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1588
 
 
1589
# Find a good install program.  We prefer a C program (faster),
 
1590
# so one script is as good as another.  But avoid the broken or
 
1591
# incompatible versions:
 
1592
# SysV /etc/install, /usr/sbin/install
 
1593
# SunOS /usr/etc/install
 
1594
# IRIX /sbin/install
 
1595
# AIX /bin/install
 
1596
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1597
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1598
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1599
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1600
# OS/2's system install, which has a completely different semantic
 
1601
# ./install, which can be erroneously created by make from ./install.sh.
 
1602
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1603
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1604
if test -z "$INSTALL"; then
 
1605
if test "${ac_cv_path_install+set}" = set; then
 
1606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1607
else
 
1608
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1609
for as_dir in $PATH
 
1610
do
 
1611
  IFS=$as_save_IFS
 
1612
  test -z "$as_dir" && as_dir=.
 
1613
  # Account for people who put trailing slashes in PATH elements.
 
1614
case $as_dir/ in
 
1615
  ./ | .// | /cC/* | \
 
1616
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1617
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1618
  /usr/ucb/* ) ;;
 
1619
  *)
 
1620
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1621
    # Don't use installbsd from OSF since it installs stuff as root
 
1622
    # by default.
 
1623
    for ac_prog in ginstall scoinst install; do
 
1624
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1625
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1626
          if test $ac_prog = install &&
 
1627
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1628
            # AIX install.  It has an incompatible calling convention.
 
1629
            :
 
1630
          elif test $ac_prog = install &&
 
1631
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1632
            # program-specific install script used by HP pwplus--don't use.
 
1633
            :
 
1634
          else
 
1635
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1636
            break 3
 
1637
          fi
 
1638
        fi
 
1639
      done
 
1640
    done
 
1641
    ;;
 
1642
esac
 
1643
done
 
1644
 
 
1645
 
 
1646
fi
 
1647
  if test "${ac_cv_path_install+set}" = set; then
 
1648
    INSTALL=$ac_cv_path_install
 
1649
  else
 
1650
    # As a last resort, use the slow shell script.  We don't cache a
 
1651
    # path for INSTALL within a source directory, because that will
 
1652
    # break other packages using the cache if that directory is
 
1653
    # removed, or if the path is relative.
 
1654
    INSTALL=$ac_install_sh
 
1655
  fi
 
1656
fi
 
1657
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1658
echo "${ECHO_T}$INSTALL" >&6
 
1659
 
 
1660
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1661
# It thinks the first close brace ends the variable substitution.
 
1662
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1663
 
 
1664
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1665
 
 
1666
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1667
 
 
1668
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1669
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1670
# Just in case
 
1671
sleep 1
 
1672
echo timestamp > conftest.file
 
1673
# Do `set' in a subshell so we don't clobber the current shell's
 
1674
# arguments.  Must try -L first in case configure is actually a
 
1675
# symlink; some systems play weird games with the mod time of symlinks
 
1676
# (eg FreeBSD returns the mod time of the symlink's containing
 
1677
# directory).
 
1678
if (
 
1679
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1680
   if test "$*" = "X"; then
 
1681
      # -L didn't work.
 
1682
      set X `ls -t $srcdir/configure conftest.file`
 
1683
   fi
 
1684
   rm -f conftest.file
 
1685
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1686
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1687
 
 
1688
      # If neither matched, then we have a broken ls.  This can happen
 
1689
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1690
      # broken ls alias from the environment.  This has actually
 
1691
      # happened.  Such a system could not be considered "sane".
 
1692
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1693
alias in your environment" >&5
 
1694
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1695
alias in your environment" >&2;}
 
1696
   { (exit 1); exit 1; }; }
 
1697
   fi
 
1698
 
 
1699
   test "$2" = conftest.file
 
1700
   )
 
1701
then
 
1702
   # Ok.
 
1703
   :
 
1704
else
 
1705
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1706
Check your system clock" >&5
 
1707
echo "$as_me: error: newly created file is older than distributed files!
 
1708
Check your system clock" >&2;}
 
1709
   { (exit 1); exit 1; }; }
 
1710
fi
 
1711
echo "$as_me:$LINENO: result: yes" >&5
 
1712
echo "${ECHO_T}yes" >&6
 
1713
test "$program_prefix" != NONE &&
 
1714
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1715
# Use a double $ so make ignores it.
 
1716
test "$program_suffix" != NONE &&
 
1717
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1718
# Double any \ or $.  echo might interpret backslashes.
 
1719
# By default was `s,x,x', remove it if useless.
 
1720
cat <<\_ACEOF >conftest.sed
 
1721
s/[\\$]/&&/g;s/;s,x,x,$//
 
1722
_ACEOF
 
1723
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1724
rm conftest.sed
 
1725
 
 
1726
# expand $ac_aux_dir to an absolute path
 
1727
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1728
 
 
1729
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1730
# Use eval to expand $SHELL
 
1731
if eval "$MISSING --run true"; then
 
1732
  am_missing_run="$MISSING --run "
 
1733
else
 
1734
  am_missing_run=
 
1735
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1736
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1737
fi
 
1738
 
 
1739
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1740
  # We used to keeping the `.' as first argument, in order to
 
1741
  # allow $(mkdir_p) to be used without argument.  As in
 
1742
  #   $(mkdir_p) $(somedir)
 
1743
  # where $(somedir) is conditionally defined.  However this is wrong
 
1744
  # for two reasons:
 
1745
  #  1. if the package is installed by a user who cannot write `.'
 
1746
  #     make install will fail,
 
1747
  #  2. the above comment should most certainly read
 
1748
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1749
  #     so it does not work when $(somedir) is undefined and
 
1750
  #     $(DESTDIR) is not.
 
1751
  #  To support the latter case, we have to write
 
1752
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1753
  #  so the `.' trick is pointless.
 
1754
  mkdir_p='mkdir -p --'
 
1755
else
 
1756
  # On NextStep and OpenStep, the `mkdir' command does not
 
1757
  # recognize any option.  It will interpret all options as
 
1758
  # directories to create, and then abort because `.' already
 
1759
  # exists.
 
1760
  for d in ./-p ./--version;
 
1761
  do
 
1762
    test -d $d && rmdir $d
 
1763
  done
 
1764
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1765
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1766
    mkdir_p='$(mkinstalldirs)'
 
1767
  else
 
1768
    mkdir_p='$(install_sh) -d'
 
1769
  fi
 
1770
fi
 
1771
 
 
1772
for ac_prog in gawk mawk nawk awk
 
1773
do
 
1774
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1775
set dummy $ac_prog; ac_word=$2
 
1776
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1777
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1778
if test "${ac_cv_prog_AWK+set}" = set; then
 
1779
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1780
else
 
1781
  if test -n "$AWK"; then
 
1782
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1783
else
 
1784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1785
for as_dir in $PATH
 
1786
do
 
1787
  IFS=$as_save_IFS
 
1788
  test -z "$as_dir" && as_dir=.
 
1789
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1790
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1791
    ac_cv_prog_AWK="$ac_prog"
 
1792
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1793
    break 2
 
1794
  fi
 
1795
done
 
1796
done
 
1797
 
 
1798
fi
 
1799
fi
 
1800
AWK=$ac_cv_prog_AWK
 
1801
if test -n "$AWK"; then
 
1802
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1803
echo "${ECHO_T}$AWK" >&6
 
1804
else
 
1805
  echo "$as_me:$LINENO: result: no" >&5
 
1806
echo "${ECHO_T}no" >&6
 
1807
fi
 
1808
 
 
1809
  test -n "$AWK" && break
 
1810
done
 
1811
 
 
1812
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1813
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1814
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1815
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1816
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1817
else
 
1818
  cat >conftest.make <<\_ACEOF
 
1819
all:
 
1820
        @echo 'ac_maketemp="$(MAKE)"'
 
1821
_ACEOF
 
1822
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1823
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1824
if test -n "$ac_maketemp"; then
 
1825
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1826
else
 
1827
  eval ac_cv_prog_make_${ac_make}_set=no
 
1828
fi
 
1829
rm -f conftest.make
 
1830
fi
 
1831
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1832
  echo "$as_me:$LINENO: result: yes" >&5
 
1833
echo "${ECHO_T}yes" >&6
 
1834
  SET_MAKE=
 
1835
else
 
1836
  echo "$as_me:$LINENO: result: no" >&5
 
1837
echo "${ECHO_T}no" >&6
 
1838
  SET_MAKE="MAKE=${MAKE-make}"
 
1839
fi
 
1840
 
 
1841
rm -rf .tst 2>/dev/null
 
1842
mkdir .tst 2>/dev/null
 
1843
if test -d .tst; then
 
1844
  am__leading_dot=.
 
1845
else
 
1846
  am__leading_dot=_
 
1847
fi
 
1848
rmdir .tst 2>/dev/null
 
1849
 
 
1850
# test to see if srcdir already configured
 
1851
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1852
   test -f $srcdir/config.status; then
 
1853
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1854
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1855
   { (exit 1); exit 1; }; }
 
1856
fi
 
1857
 
 
1858
# test whether we have cygpath
 
1859
if test -z "$CYGPATH_W"; then
 
1860
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1861
    CYGPATH_W='cygpath -w'
 
1862
  else
 
1863
    CYGPATH_W=echo
 
1864
  fi
 
1865
fi
 
1866
 
 
1867
 
 
1868
# Define the identity of the package.
 
1869
 PACKAGE=$PACKAGE
 
1870
 VERSION=$VERSION
 
1871
 
 
1872
 
 
1873
cat >>confdefs.h <<_ACEOF
 
1874
#define PACKAGE "$PACKAGE"
 
1875
_ACEOF
 
1876
 
 
1877
 
 
1878
cat >>confdefs.h <<_ACEOF
 
1879
#define VERSION "$VERSION"
 
1880
_ACEOF
 
1881
 
 
1882
# Some tools Automake needs.
 
1883
 
 
1884
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1885
 
 
1886
 
 
1887
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1888
 
 
1889
 
 
1890
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1891
 
 
1892
 
 
1893
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1894
 
 
1895
 
 
1896
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1897
 
 
1898
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1899
 
 
1900
# Installed binaries are usually stripped using `strip' when the user
 
1901
# run `make install-strip'.  However `strip' might not be the right
 
1902
# tool to use in cross-compilation environments, therefore Automake
 
1903
# will honor the `STRIP' environment variable to overrule this program.
 
1904
if test "$cross_compiling" != no; then
 
1905
  if test -n "$ac_tool_prefix"; then
 
1906
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1907
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1908
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1909
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1910
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1911
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1912
else
 
1913
  if test -n "$STRIP"; then
 
1914
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1915
else
 
1916
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1917
for as_dir in $PATH
 
1918
do
 
1919
  IFS=$as_save_IFS
 
1920
  test -z "$as_dir" && as_dir=.
 
1921
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1922
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1923
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1924
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1925
    break 2
 
1926
  fi
 
1927
done
 
1928
done
 
1929
 
 
1930
fi
 
1931
fi
 
1932
STRIP=$ac_cv_prog_STRIP
 
1933
if test -n "$STRIP"; then
 
1934
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1935
echo "${ECHO_T}$STRIP" >&6
 
1936
else
 
1937
  echo "$as_me:$LINENO: result: no" >&5
 
1938
echo "${ECHO_T}no" >&6
 
1939
fi
 
1940
 
 
1941
fi
 
1942
if test -z "$ac_cv_prog_STRIP"; then
 
1943
  ac_ct_STRIP=$STRIP
 
1944
  # Extract the first word of "strip", so it can be a program name with args.
 
1945
set dummy strip; ac_word=$2
 
1946
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1947
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1948
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1949
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1950
else
 
1951
  if test -n "$ac_ct_STRIP"; then
 
1952
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1953
else
 
1954
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1955
for as_dir in $PATH
 
1956
do
 
1957
  IFS=$as_save_IFS
 
1958
  test -z "$as_dir" && as_dir=.
 
1959
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1960
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1961
    ac_cv_prog_ac_ct_STRIP="strip"
 
1962
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1963
    break 2
 
1964
  fi
 
1965
done
 
1966
done
 
1967
 
 
1968
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1969
fi
 
1970
fi
 
1971
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1972
if test -n "$ac_ct_STRIP"; then
 
1973
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1974
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1975
else
 
1976
  echo "$as_me:$LINENO: result: no" >&5
 
1977
echo "${ECHO_T}no" >&6
 
1978
fi
 
1979
 
 
1980
  STRIP=$ac_ct_STRIP
 
1981
else
 
1982
  STRIP="$ac_cv_prog_STRIP"
 
1983
fi
 
1984
 
 
1985
fi
 
1986
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1987
 
 
1988
# We need awk for the "check" target.  The system "awk" is bad on
 
1989
# some platforms.
 
1990
# Always define AMTAR for backward compatibility.
 
1991
 
 
1992
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1993
 
 
1994
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
1995
 
 
1996
 
 
1997
 
 
1998
 
 
1999
 
 
2000
 
 
2001
 
 
2002
 
 
2003
          ac_config_headers="$ac_config_headers config.h"
 
2004
 
 
2005
 
 
2006
ACLOCAL_AMFLAGS="-I m4 -I common/m4"
 
2007
 
 
2008
 
 
2009
 
 
2010
 
 
2011
# Check whether --enable-shared or --disable-shared was given.
 
2012
if test "${enable_shared+set}" = set; then
 
2013
  enableval="$enable_shared"
 
2014
  p=${PACKAGE-default}
 
2015
    case $enableval in
 
2016
    yes) enable_shared=yes ;;
 
2017
    no) enable_shared=no ;;
 
2018
    *)
 
2019
      enable_shared=no
 
2020
      # Look at the argument we got.  We use all the common list separators.
 
2021
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2022
      for pkg in $enableval; do
 
2023
        IFS="$lt_save_ifs"
 
2024
        if test "X$pkg" = "X$p"; then
 
2025
          enable_shared=yes
 
2026
        fi
 
2027
      done
 
2028
      IFS="$lt_save_ifs"
 
2029
      ;;
 
2030
    esac
 
2031
else
 
2032
  enable_shared=yes
 
2033
fi;
 
2034
 
 
2035
# Check whether --enable-static or --disable-static was given.
 
2036
if test "${enable_static+set}" = set; then
 
2037
  enableval="$enable_static"
 
2038
  p=${PACKAGE-default}
 
2039
    case $enableval in
 
2040
    yes) enable_static=yes ;;
 
2041
    no) enable_static=no ;;
 
2042
    *)
 
2043
     enable_static=no
 
2044
      # Look at the argument we got.  We use all the common list separators.
 
2045
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2046
      for pkg in $enableval; do
 
2047
        IFS="$lt_save_ifs"
 
2048
        if test "X$pkg" = "X$p"; then
 
2049
          enable_static=yes
 
2050
        fi
 
2051
      done
 
2052
      IFS="$lt_save_ifs"
 
2053
      ;;
 
2054
    esac
 
2055
else
 
2056
  enable_static=yes
 
2057
fi;
 
2058
 
 
2059
# Check whether --enable-fast-install or --disable-fast-install was given.
 
2060
if test "${enable_fast_install+set}" = set; then
 
2061
  enableval="$enable_fast_install"
 
2062
  p=${PACKAGE-default}
 
2063
    case $enableval in
 
2064
    yes) enable_fast_install=yes ;;
 
2065
    no) enable_fast_install=no ;;
 
2066
    *)
 
2067
      enable_fast_install=no
 
2068
      # Look at the argument we got.  We use all the common list separators.
 
2069
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2070
      for pkg in $enableval; do
 
2071
        IFS="$lt_save_ifs"
 
2072
        if test "X$pkg" = "X$p"; then
 
2073
          enable_fast_install=yes
 
2074
        fi
 
2075
      done
 
2076
      IFS="$lt_save_ifs"
 
2077
      ;;
 
2078
    esac
 
2079
else
 
2080
  enable_fast_install=yes
 
2081
fi;
 
2082
 
 
2083
# Make sure we can run config.sub.
 
2084
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
2085
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
2086
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
2087
   { (exit 1); exit 1; }; }
 
2088
 
 
2089
echo "$as_me:$LINENO: checking build system type" >&5
 
2090
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
2091
if test "${ac_cv_build+set}" = set; then
 
2092
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2093
else
 
2094
  ac_cv_build_alias=$build_alias
 
2095
test -z "$ac_cv_build_alias" &&
 
2096
  ac_cv_build_alias=`$ac_config_guess`
 
2097
test -z "$ac_cv_build_alias" &&
 
2098
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2099
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2100
   { (exit 1); exit 1; }; }
 
2101
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
2102
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
2103
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
2104
   { (exit 1); exit 1; }; }
 
2105
 
 
2106
fi
 
2107
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2108
echo "${ECHO_T}$ac_cv_build" >&6
 
2109
build=$ac_cv_build
 
2110
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2111
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2112
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2113
 
 
2114
 
 
2115
echo "$as_me:$LINENO: checking host system type" >&5
 
2116
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
2117
if test "${ac_cv_host+set}" = set; then
 
2118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2119
else
 
2120
  ac_cv_host_alias=$host_alias
 
2121
test -z "$ac_cv_host_alias" &&
 
2122
  ac_cv_host_alias=$ac_cv_build_alias
 
2123
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
2124
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
2125
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
2126
   { (exit 1); exit 1; }; }
 
2127
 
 
2128
fi
 
2129
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2130
echo "${ECHO_T}$ac_cv_host" >&6
 
2131
host=$ac_cv_host
 
2132
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
2133
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
2134
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
2135
 
 
2136
 
 
2137
DEPDIR="${am__leading_dot}deps"
 
2138
 
 
2139
          ac_config_commands="$ac_config_commands depfiles"
 
2140
 
 
2141
 
 
2142
am_make=${MAKE-make}
 
2143
cat > confinc << 'END'
 
2144
am__doit:
 
2145
        @echo done
 
2146
.PHONY: am__doit
 
2147
END
 
2148
# If we don't find an include directive, just comment out the code.
 
2149
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2150
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2151
am__include="#"
 
2152
am__quote=
 
2153
_am_result=none
 
2154
# First try GNU make style include.
 
2155
echo "include confinc" > confmf
 
2156
# We grep out `Entering directory' and `Leaving directory'
 
2157
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2158
# In particular we don't look at `^make:' because GNU make might
 
2159
# be invoked under some other name (usually "gmake"), in which
 
2160
# case it prints its new name instead of `make'.
 
2161
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2162
   am__include=include
 
2163
   am__quote=
 
2164
   _am_result=GNU
 
2165
fi
 
2166
# Now try BSD make style include.
 
2167
if test "$am__include" = "#"; then
 
2168
   echo '.include "confinc"' > confmf
 
2169
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2170
      am__include=.include
 
2171
      am__quote="\""
 
2172
      _am_result=BSD
 
2173
   fi
 
2174
fi
 
2175
 
 
2176
 
 
2177
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2178
echo "${ECHO_T}$_am_result" >&6
 
2179
rm -f confinc confmf
 
2180
 
 
2181
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2182
if test "${enable_dependency_tracking+set}" = set; then
 
2183
  enableval="$enable_dependency_tracking"
 
2184
 
 
2185
fi;
 
2186
if test "x$enable_dependency_tracking" != xno; then
 
2187
  am_depcomp="$ac_aux_dir/depcomp"
 
2188
  AMDEPBACKSLASH='\'
 
2189
fi
 
2190
 
 
2191
 
 
2192
if test "x$enable_dependency_tracking" != xno; then
 
2193
  AMDEP_TRUE=
 
2194
  AMDEP_FALSE='#'
 
2195
else
 
2196
  AMDEP_TRUE='#'
 
2197
  AMDEP_FALSE=
 
2198
fi
 
2199
 
 
2200
 
 
2201
 
 
2202
ac_ext=c
 
2203
ac_cpp='$CPP $CPPFLAGS'
 
2204
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2205
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2206
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2207
if test -n "$ac_tool_prefix"; then
 
2208
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2209
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2210
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2211
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2212
if test "${ac_cv_prog_CC+set}" = set; then
 
2213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2214
else
 
2215
  if test -n "$CC"; then
 
2216
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2217
else
 
2218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2219
for as_dir in $PATH
 
2220
do
 
2221
  IFS=$as_save_IFS
 
2222
  test -z "$as_dir" && as_dir=.
 
2223
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2224
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2225
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2226
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2227
    break 2
 
2228
  fi
 
2229
done
 
2230
done
 
2231
 
 
2232
fi
 
2233
fi
 
2234
CC=$ac_cv_prog_CC
 
2235
if test -n "$CC"; then
 
2236
  echo "$as_me:$LINENO: result: $CC" >&5
 
2237
echo "${ECHO_T}$CC" >&6
 
2238
else
 
2239
  echo "$as_me:$LINENO: result: no" >&5
 
2240
echo "${ECHO_T}no" >&6
 
2241
fi
 
2242
 
 
2243
fi
 
2244
if test -z "$ac_cv_prog_CC"; then
 
2245
  ac_ct_CC=$CC
 
2246
  # Extract the first word of "gcc", so it can be a program name with args.
 
2247
set dummy gcc; ac_word=$2
 
2248
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2249
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2250
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2251
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2252
else
 
2253
  if test -n "$ac_ct_CC"; then
 
2254
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2255
else
 
2256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2257
for as_dir in $PATH
 
2258
do
 
2259
  IFS=$as_save_IFS
 
2260
  test -z "$as_dir" && as_dir=.
 
2261
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2262
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2263
    ac_cv_prog_ac_ct_CC="gcc"
 
2264
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2265
    break 2
 
2266
  fi
 
2267
done
 
2268
done
 
2269
 
 
2270
fi
 
2271
fi
 
2272
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2273
if test -n "$ac_ct_CC"; then
 
2274
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2275
echo "${ECHO_T}$ac_ct_CC" >&6
 
2276
else
 
2277
  echo "$as_me:$LINENO: result: no" >&5
 
2278
echo "${ECHO_T}no" >&6
 
2279
fi
 
2280
 
 
2281
  CC=$ac_ct_CC
 
2282
else
 
2283
  CC="$ac_cv_prog_CC"
 
2284
fi
 
2285
 
 
2286
if test -z "$CC"; then
 
2287
  if test -n "$ac_tool_prefix"; then
 
2288
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2289
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2290
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2291
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2292
if test "${ac_cv_prog_CC+set}" = set; then
 
2293
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2294
else
 
2295
  if test -n "$CC"; then
 
2296
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2297
else
 
2298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2299
for as_dir in $PATH
 
2300
do
 
2301
  IFS=$as_save_IFS
 
2302
  test -z "$as_dir" && as_dir=.
 
2303
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2304
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2305
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2306
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2307
    break 2
 
2308
  fi
 
2309
done
 
2310
done
 
2311
 
 
2312
fi
 
2313
fi
 
2314
CC=$ac_cv_prog_CC
 
2315
if test -n "$CC"; then
 
2316
  echo "$as_me:$LINENO: result: $CC" >&5
 
2317
echo "${ECHO_T}$CC" >&6
 
2318
else
 
2319
  echo "$as_me:$LINENO: result: no" >&5
 
2320
echo "${ECHO_T}no" >&6
 
2321
fi
 
2322
 
 
2323
fi
 
2324
if test -z "$ac_cv_prog_CC"; then
 
2325
  ac_ct_CC=$CC
 
2326
  # Extract the first word of "cc", so it can be a program name with args.
 
2327
set dummy cc; ac_word=$2
 
2328
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2329
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2330
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2331
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2332
else
 
2333
  if test -n "$ac_ct_CC"; then
 
2334
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2335
else
 
2336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2337
for as_dir in $PATH
 
2338
do
 
2339
  IFS=$as_save_IFS
 
2340
  test -z "$as_dir" && as_dir=.
 
2341
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2342
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2343
    ac_cv_prog_ac_ct_CC="cc"
 
2344
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2345
    break 2
 
2346
  fi
 
2347
done
 
2348
done
 
2349
 
 
2350
fi
 
2351
fi
 
2352
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2353
if test -n "$ac_ct_CC"; then
 
2354
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2355
echo "${ECHO_T}$ac_ct_CC" >&6
 
2356
else
 
2357
  echo "$as_me:$LINENO: result: no" >&5
 
2358
echo "${ECHO_T}no" >&6
 
2359
fi
 
2360
 
 
2361
  CC=$ac_ct_CC
 
2362
else
 
2363
  CC="$ac_cv_prog_CC"
 
2364
fi
 
2365
 
 
2366
fi
 
2367
if test -z "$CC"; then
 
2368
  # Extract the first word of "cc", so it can be a program name with args.
 
2369
set dummy cc; ac_word=$2
 
2370
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2371
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2372
if test "${ac_cv_prog_CC+set}" = set; then
 
2373
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2374
else
 
2375
  if test -n "$CC"; then
 
2376
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2377
else
 
2378
  ac_prog_rejected=no
 
2379
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2380
for as_dir in $PATH
 
2381
do
 
2382
  IFS=$as_save_IFS
 
2383
  test -z "$as_dir" && as_dir=.
 
2384
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2385
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2386
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2387
       ac_prog_rejected=yes
 
2388
       continue
 
2389
     fi
 
2390
    ac_cv_prog_CC="cc"
 
2391
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2392
    break 2
 
2393
  fi
 
2394
done
 
2395
done
 
2396
 
 
2397
if test $ac_prog_rejected = yes; then
 
2398
  # We found a bogon in the path, so make sure we never use it.
 
2399
  set dummy $ac_cv_prog_CC
 
2400
  shift
 
2401
  if test $# != 0; then
 
2402
    # We chose a different compiler from the bogus one.
 
2403
    # However, it has the same basename, so the bogon will be chosen
 
2404
    # first if we set CC to just the basename; use the full file name.
 
2405
    shift
 
2406
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2407
  fi
 
2408
fi
 
2409
fi
 
2410
fi
 
2411
CC=$ac_cv_prog_CC
 
2412
if test -n "$CC"; then
 
2413
  echo "$as_me:$LINENO: result: $CC" >&5
 
2414
echo "${ECHO_T}$CC" >&6
 
2415
else
 
2416
  echo "$as_me:$LINENO: result: no" >&5
 
2417
echo "${ECHO_T}no" >&6
 
2418
fi
 
2419
 
 
2420
fi
 
2421
if test -z "$CC"; then
 
2422
  if test -n "$ac_tool_prefix"; then
 
2423
  for ac_prog in cl
 
2424
  do
 
2425
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2426
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2427
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2428
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2429
if test "${ac_cv_prog_CC+set}" = set; then
 
2430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2431
else
 
2432
  if test -n "$CC"; then
 
2433
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2434
else
 
2435
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2436
for as_dir in $PATH
 
2437
do
 
2438
  IFS=$as_save_IFS
 
2439
  test -z "$as_dir" && as_dir=.
 
2440
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2441
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2442
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2443
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2444
    break 2
 
2445
  fi
 
2446
done
 
2447
done
 
2448
 
 
2449
fi
 
2450
fi
 
2451
CC=$ac_cv_prog_CC
 
2452
if test -n "$CC"; then
 
2453
  echo "$as_me:$LINENO: result: $CC" >&5
 
2454
echo "${ECHO_T}$CC" >&6
 
2455
else
 
2456
  echo "$as_me:$LINENO: result: no" >&5
 
2457
echo "${ECHO_T}no" >&6
 
2458
fi
 
2459
 
 
2460
    test -n "$CC" && break
 
2461
  done
 
2462
fi
 
2463
if test -z "$CC"; then
 
2464
  ac_ct_CC=$CC
 
2465
  for ac_prog in cl
 
2466
do
 
2467
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2468
set dummy $ac_prog; ac_word=$2
 
2469
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2470
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2471
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2472
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2473
else
 
2474
  if test -n "$ac_ct_CC"; then
 
2475
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2476
else
 
2477
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2478
for as_dir in $PATH
 
2479
do
 
2480
  IFS=$as_save_IFS
 
2481
  test -z "$as_dir" && as_dir=.
 
2482
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2483
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2484
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2485
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2486
    break 2
 
2487
  fi
 
2488
done
 
2489
done
 
2490
 
 
2491
fi
 
2492
fi
 
2493
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2494
if test -n "$ac_ct_CC"; then
 
2495
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2496
echo "${ECHO_T}$ac_ct_CC" >&6
 
2497
else
 
2498
  echo "$as_me:$LINENO: result: no" >&5
 
2499
echo "${ECHO_T}no" >&6
 
2500
fi
 
2501
 
 
2502
  test -n "$ac_ct_CC" && break
 
2503
done
 
2504
 
 
2505
  CC=$ac_ct_CC
 
2506
fi
 
2507
 
 
2508
fi
 
2509
 
 
2510
 
 
2511
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2512
See \`config.log' for more details." >&5
 
2513
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2514
See \`config.log' for more details." >&2;}
 
2515
   { (exit 1); exit 1; }; }
 
2516
 
 
2517
# Provide some information about the compiler.
 
2518
echo "$as_me:$LINENO:" \
 
2519
     "checking for C compiler version" >&5
 
2520
ac_compiler=`set X $ac_compile; echo $2`
 
2521
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2522
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2523
  ac_status=$?
 
2524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2525
  (exit $ac_status); }
 
2526
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2527
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2528
  ac_status=$?
 
2529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2530
  (exit $ac_status); }
 
2531
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2532
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2533
  ac_status=$?
 
2534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2535
  (exit $ac_status); }
 
2536
 
 
2537
cat >conftest.$ac_ext <<_ACEOF
 
2538
/* confdefs.h.  */
 
2539
_ACEOF
 
2540
cat confdefs.h >>conftest.$ac_ext
 
2541
cat >>conftest.$ac_ext <<_ACEOF
 
2542
/* end confdefs.h.  */
 
2543
 
 
2544
int
 
2545
main ()
 
2546
{
 
2547
 
 
2548
  ;
 
2549
  return 0;
 
2550
}
 
2551
_ACEOF
 
2552
ac_clean_files_save=$ac_clean_files
 
2553
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2554
# Try to create an executable without -o first, disregard a.out.
 
2555
# It will help us diagnose broken compilers, and finding out an intuition
 
2556
# of exeext.
 
2557
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2558
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2559
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2560
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2561
  (eval $ac_link_default) 2>&5
 
2562
  ac_status=$?
 
2563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2564
  (exit $ac_status); }; then
 
2565
  # Find the output, starting from the most likely.  This scheme is
 
2566
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2567
# resort.
 
2568
 
 
2569
# Be careful to initialize this variable, since it used to be cached.
 
2570
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2571
ac_cv_exeext=
 
2572
# b.out is created by i960 compilers.
 
2573
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2574
do
 
2575
  test -f "$ac_file" || continue
 
2576
  case $ac_file in
 
2577
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2578
        ;;
 
2579
    conftest.$ac_ext )
 
2580
        # This is the source file.
 
2581
        ;;
 
2582
    [ab].out )
 
2583
        # We found the default executable, but exeext='' is most
 
2584
        # certainly right.
 
2585
        break;;
 
2586
    *.* )
 
2587
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2588
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2589
        # but it would be cool to find out if it's true.  Does anybody
 
2590
        # maintain Libtool? --akim.
 
2591
        export ac_cv_exeext
 
2592
        break;;
 
2593
    * )
 
2594
        break;;
 
2595
  esac
 
2596
done
 
2597
else
 
2598
  echo "$as_me: failed program was:" >&5
 
2599
sed 's/^/| /' conftest.$ac_ext >&5
 
2600
 
 
2601
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2602
See \`config.log' for more details." >&5
 
2603
echo "$as_me: error: C compiler cannot create executables
 
2604
See \`config.log' for more details." >&2;}
 
2605
   { (exit 77); exit 77; }; }
 
2606
fi
 
2607
 
 
2608
ac_exeext=$ac_cv_exeext
 
2609
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2610
echo "${ECHO_T}$ac_file" >&6
 
2611
 
 
2612
# Check the compiler produces executables we can run.  If not, either
 
2613
# the compiler is broken, or we cross compile.
 
2614
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2615
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2616
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2617
# If not cross compiling, check that we can run a simple program.
 
2618
if test "$cross_compiling" != yes; then
 
2619
  if { ac_try='./$ac_file'
 
2620
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2621
  (eval $ac_try) 2>&5
 
2622
  ac_status=$?
 
2623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2624
  (exit $ac_status); }; }; then
 
2625
    cross_compiling=no
 
2626
  else
 
2627
    if test "$cross_compiling" = maybe; then
 
2628
        cross_compiling=yes
 
2629
    else
 
2630
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2631
If you meant to cross compile, use \`--host'.
 
2632
See \`config.log' for more details." >&5
 
2633
echo "$as_me: error: cannot run C compiled programs.
 
2634
If you meant to cross compile, use \`--host'.
 
2635
See \`config.log' for more details." >&2;}
 
2636
   { (exit 1); exit 1; }; }
 
2637
    fi
 
2638
  fi
 
2639
fi
 
2640
echo "$as_me:$LINENO: result: yes" >&5
 
2641
echo "${ECHO_T}yes" >&6
 
2642
 
 
2643
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2644
ac_clean_files=$ac_clean_files_save
 
2645
# Check the compiler produces executables we can run.  If not, either
 
2646
# the compiler is broken, or we cross compile.
 
2647
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2648
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2649
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2650
echo "${ECHO_T}$cross_compiling" >&6
 
2651
 
 
2652
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2653
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2654
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2655
  (eval $ac_link) 2>&5
 
2656
  ac_status=$?
 
2657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2658
  (exit $ac_status); }; then
 
2659
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2660
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2661
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2662
# `rm'.
 
2663
for ac_file in conftest.exe conftest conftest.*; do
 
2664
  test -f "$ac_file" || continue
 
2665
  case $ac_file in
 
2666
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2667
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2668
          export ac_cv_exeext
 
2669
          break;;
 
2670
    * ) break;;
 
2671
  esac
 
2672
done
 
2673
else
 
2674
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2675
See \`config.log' for more details." >&5
 
2676
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2677
See \`config.log' for more details." >&2;}
 
2678
   { (exit 1); exit 1; }; }
 
2679
fi
 
2680
 
 
2681
rm -f conftest$ac_cv_exeext
 
2682
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2683
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2684
 
 
2685
rm -f conftest.$ac_ext
 
2686
EXEEXT=$ac_cv_exeext
 
2687
ac_exeext=$EXEEXT
 
2688
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2689
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2690
if test "${ac_cv_objext+set}" = set; then
 
2691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2692
else
 
2693
  cat >conftest.$ac_ext <<_ACEOF
 
2694
/* confdefs.h.  */
 
2695
_ACEOF
 
2696
cat confdefs.h >>conftest.$ac_ext
 
2697
cat >>conftest.$ac_ext <<_ACEOF
 
2698
/* end confdefs.h.  */
 
2699
 
 
2700
int
 
2701
main ()
 
2702
{
 
2703
 
 
2704
  ;
 
2705
  return 0;
 
2706
}
 
2707
_ACEOF
 
2708
rm -f conftest.o conftest.obj
 
2709
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2710
  (eval $ac_compile) 2>&5
 
2711
  ac_status=$?
 
2712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2713
  (exit $ac_status); }; then
 
2714
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2715
  case $ac_file in
 
2716
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2717
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2718
       break;;
 
2719
  esac
 
2720
done
 
2721
else
 
2722
  echo "$as_me: failed program was:" >&5
 
2723
sed 's/^/| /' conftest.$ac_ext >&5
 
2724
 
 
2725
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2726
See \`config.log' for more details." >&5
 
2727
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2728
See \`config.log' for more details." >&2;}
 
2729
   { (exit 1); exit 1; }; }
 
2730
fi
 
2731
 
 
2732
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2733
fi
 
2734
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2735
echo "${ECHO_T}$ac_cv_objext" >&6
 
2736
OBJEXT=$ac_cv_objext
 
2737
ac_objext=$OBJEXT
 
2738
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2739
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2740
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2742
else
 
2743
  cat >conftest.$ac_ext <<_ACEOF
 
2744
/* confdefs.h.  */
 
2745
_ACEOF
 
2746
cat confdefs.h >>conftest.$ac_ext
 
2747
cat >>conftest.$ac_ext <<_ACEOF
 
2748
/* end confdefs.h.  */
 
2749
 
 
2750
int
 
2751
main ()
 
2752
{
 
2753
#ifndef __GNUC__
 
2754
       choke me
 
2755
#endif
 
2756
 
 
2757
  ;
 
2758
  return 0;
 
2759
}
 
2760
_ACEOF
 
2761
rm -f conftest.$ac_objext
 
2762
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2763
  (eval $ac_compile) 2>conftest.er1
 
2764
  ac_status=$?
 
2765
  grep -v '^ *+' conftest.er1 >conftest.err
 
2766
  rm -f conftest.er1
 
2767
  cat conftest.err >&5
 
2768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2769
  (exit $ac_status); } &&
 
2770
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2772
  (eval $ac_try) 2>&5
 
2773
  ac_status=$?
 
2774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2775
  (exit $ac_status); }; } &&
 
2776
         { ac_try='test -s conftest.$ac_objext'
 
2777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2778
  (eval $ac_try) 2>&5
 
2779
  ac_status=$?
 
2780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2781
  (exit $ac_status); }; }; then
 
2782
  ac_compiler_gnu=yes
 
2783
else
 
2784
  echo "$as_me: failed program was:" >&5
 
2785
sed 's/^/| /' conftest.$ac_ext >&5
 
2786
 
 
2787
ac_compiler_gnu=no
 
2788
fi
 
2789
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2790
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2791
 
 
2792
fi
 
2793
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2794
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2795
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2796
ac_test_CFLAGS=${CFLAGS+set}
 
2797
ac_save_CFLAGS=$CFLAGS
 
2798
CFLAGS="-g"
 
2799
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2800
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2801
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2802
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2803
else
 
2804
  cat >conftest.$ac_ext <<_ACEOF
 
2805
/* confdefs.h.  */
 
2806
_ACEOF
 
2807
cat confdefs.h >>conftest.$ac_ext
 
2808
cat >>conftest.$ac_ext <<_ACEOF
 
2809
/* end confdefs.h.  */
 
2810
 
 
2811
int
 
2812
main ()
 
2813
{
 
2814
 
 
2815
  ;
 
2816
  return 0;
 
2817
}
 
2818
_ACEOF
 
2819
rm -f conftest.$ac_objext
 
2820
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2821
  (eval $ac_compile) 2>conftest.er1
 
2822
  ac_status=$?
 
2823
  grep -v '^ *+' conftest.er1 >conftest.err
 
2824
  rm -f conftest.er1
 
2825
  cat conftest.err >&5
 
2826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2827
  (exit $ac_status); } &&
 
2828
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2829
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2830
  (eval $ac_try) 2>&5
 
2831
  ac_status=$?
 
2832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2833
  (exit $ac_status); }; } &&
 
2834
         { ac_try='test -s conftest.$ac_objext'
 
2835
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2836
  (eval $ac_try) 2>&5
 
2837
  ac_status=$?
 
2838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2839
  (exit $ac_status); }; }; then
 
2840
  ac_cv_prog_cc_g=yes
 
2841
else
 
2842
  echo "$as_me: failed program was:" >&5
 
2843
sed 's/^/| /' conftest.$ac_ext >&5
 
2844
 
 
2845
ac_cv_prog_cc_g=no
 
2846
fi
 
2847
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2848
fi
 
2849
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2850
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2851
if test "$ac_test_CFLAGS" = set; then
 
2852
  CFLAGS=$ac_save_CFLAGS
 
2853
elif test $ac_cv_prog_cc_g = yes; then
 
2854
  if test "$GCC" = yes; then
 
2855
    CFLAGS="-g -O2"
 
2856
  else
 
2857
    CFLAGS="-g"
 
2858
  fi
 
2859
else
 
2860
  if test "$GCC" = yes; then
 
2861
    CFLAGS="-O2"
 
2862
  else
 
2863
    CFLAGS=
 
2864
  fi
 
2865
fi
 
2866
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2867
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2868
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2870
else
 
2871
  ac_cv_prog_cc_stdc=no
 
2872
ac_save_CC=$CC
 
2873
cat >conftest.$ac_ext <<_ACEOF
 
2874
/* confdefs.h.  */
 
2875
_ACEOF
 
2876
cat confdefs.h >>conftest.$ac_ext
 
2877
cat >>conftest.$ac_ext <<_ACEOF
 
2878
/* end confdefs.h.  */
 
2879
#include <stdarg.h>
 
2880
#include <stdio.h>
 
2881
#include <sys/types.h>
 
2882
#include <sys/stat.h>
 
2883
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2884
struct buf { int x; };
 
2885
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2886
static char *e (p, i)
 
2887
     char **p;
 
2888
     int i;
 
2889
{
 
2890
  return p[i];
 
2891
}
 
2892
static char *f (char * (*g) (char **, int), char **p, ...)
 
2893
{
 
2894
  char *s;
 
2895
  va_list v;
 
2896
  va_start (v,p);
 
2897
  s = g (p, va_arg (v,int));
 
2898
  va_end (v);
 
2899
  return s;
 
2900
}
 
2901
 
 
2902
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2903
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2904
   These don't provoke an error unfortunately, instead are silently treated
 
2905
   as 'x'.  The following induces an error, until -std1 is added to get
 
2906
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2907
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2908
   that's true only with -std1.  */
 
2909
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2910
 
 
2911
int test (int i, double x);
 
2912
struct s1 {int (*f) (int a);};
 
2913
struct s2 {int (*f) (double a);};
 
2914
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2915
int argc;
 
2916
char **argv;
 
2917
int
 
2918
main ()
 
2919
{
 
2920
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2921
  ;
 
2922
  return 0;
 
2923
}
 
2924
_ACEOF
 
2925
# Don't try gcc -ansi; that turns off useful extensions and
 
2926
# breaks some systems' header files.
 
2927
# AIX                   -qlanglvl=ansi
 
2928
# Ultrix and OSF/1      -std1
 
2929
# HP-UX 10.20 and later -Ae
 
2930
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2931
# SVR4                  -Xc -D__EXTENSIONS__
 
2932
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2933
do
 
2934
  CC="$ac_save_CC $ac_arg"
 
2935
  rm -f conftest.$ac_objext
 
2936
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2937
  (eval $ac_compile) 2>conftest.er1
 
2938
  ac_status=$?
 
2939
  grep -v '^ *+' conftest.er1 >conftest.err
 
2940
  rm -f conftest.er1
 
2941
  cat conftest.err >&5
 
2942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2943
  (exit $ac_status); } &&
 
2944
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2945
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2946
  (eval $ac_try) 2>&5
 
2947
  ac_status=$?
 
2948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2949
  (exit $ac_status); }; } &&
 
2950
         { ac_try='test -s conftest.$ac_objext'
 
2951
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2952
  (eval $ac_try) 2>&5
 
2953
  ac_status=$?
 
2954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2955
  (exit $ac_status); }; }; then
 
2956
  ac_cv_prog_cc_stdc=$ac_arg
 
2957
break
 
2958
else
 
2959
  echo "$as_me: failed program was:" >&5
 
2960
sed 's/^/| /' conftest.$ac_ext >&5
 
2961
 
 
2962
fi
 
2963
rm -f conftest.err conftest.$ac_objext
 
2964
done
 
2965
rm -f conftest.$ac_ext conftest.$ac_objext
 
2966
CC=$ac_save_CC
 
2967
 
 
2968
fi
 
2969
 
 
2970
case "x$ac_cv_prog_cc_stdc" in
 
2971
  x|xno)
 
2972
    echo "$as_me:$LINENO: result: none needed" >&5
 
2973
echo "${ECHO_T}none needed" >&6 ;;
 
2974
  *)
 
2975
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2976
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2977
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2978
esac
 
2979
 
 
2980
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2981
# in C++ we need to declare it.  In case someone uses the same compiler
 
2982
# for both compiling C and C++ we need to have the C++ compiler decide
 
2983
# the declaration of exit, since it's the most demanding environment.
 
2984
cat >conftest.$ac_ext <<_ACEOF
 
2985
#ifndef __cplusplus
 
2986
  choke me
 
2987
#endif
 
2988
_ACEOF
 
2989
rm -f conftest.$ac_objext
 
2990
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2991
  (eval $ac_compile) 2>conftest.er1
 
2992
  ac_status=$?
 
2993
  grep -v '^ *+' conftest.er1 >conftest.err
 
2994
  rm -f conftest.er1
 
2995
  cat conftest.err >&5
 
2996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2997
  (exit $ac_status); } &&
 
2998
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2999
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3000
  (eval $ac_try) 2>&5
 
3001
  ac_status=$?
 
3002
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3003
  (exit $ac_status); }; } &&
 
3004
         { ac_try='test -s conftest.$ac_objext'
 
3005
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3006
  (eval $ac_try) 2>&5
 
3007
  ac_status=$?
 
3008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3009
  (exit $ac_status); }; }; then
 
3010
  for ac_declaration in \
 
3011
   '' \
 
3012
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3013
   'extern "C" void std::exit (int); using std::exit;' \
 
3014
   'extern "C" void exit (int) throw ();' \
 
3015
   'extern "C" void exit (int);' \
 
3016
   'void exit (int);'
 
3017
do
 
3018
  cat >conftest.$ac_ext <<_ACEOF
 
3019
/* confdefs.h.  */
 
3020
_ACEOF
 
3021
cat confdefs.h >>conftest.$ac_ext
 
3022
cat >>conftest.$ac_ext <<_ACEOF
 
3023
/* end confdefs.h.  */
 
3024
$ac_declaration
 
3025
#include <stdlib.h>
 
3026
int
 
3027
main ()
 
3028
{
 
3029
exit (42);
 
3030
  ;
 
3031
  return 0;
 
3032
}
 
3033
_ACEOF
 
3034
rm -f conftest.$ac_objext
 
3035
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3036
  (eval $ac_compile) 2>conftest.er1
 
3037
  ac_status=$?
 
3038
  grep -v '^ *+' conftest.er1 >conftest.err
 
3039
  rm -f conftest.er1
 
3040
  cat conftest.err >&5
 
3041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3042
  (exit $ac_status); } &&
 
3043
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3044
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3045
  (eval $ac_try) 2>&5
 
3046
  ac_status=$?
 
3047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3048
  (exit $ac_status); }; } &&
 
3049
         { ac_try='test -s conftest.$ac_objext'
 
3050
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3051
  (eval $ac_try) 2>&5
 
3052
  ac_status=$?
 
3053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3054
  (exit $ac_status); }; }; then
 
3055
  :
 
3056
else
 
3057
  echo "$as_me: failed program was:" >&5
 
3058
sed 's/^/| /' conftest.$ac_ext >&5
 
3059
 
 
3060
continue
 
3061
fi
 
3062
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3063
  cat >conftest.$ac_ext <<_ACEOF
 
3064
/* confdefs.h.  */
 
3065
_ACEOF
 
3066
cat confdefs.h >>conftest.$ac_ext
 
3067
cat >>conftest.$ac_ext <<_ACEOF
 
3068
/* end confdefs.h.  */
 
3069
$ac_declaration
 
3070
int
 
3071
main ()
 
3072
{
 
3073
exit (42);
 
3074
  ;
 
3075
  return 0;
 
3076
}
 
3077
_ACEOF
 
3078
rm -f conftest.$ac_objext
 
3079
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3080
  (eval $ac_compile) 2>conftest.er1
 
3081
  ac_status=$?
 
3082
  grep -v '^ *+' conftest.er1 >conftest.err
 
3083
  rm -f conftest.er1
 
3084
  cat conftest.err >&5
 
3085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3086
  (exit $ac_status); } &&
 
3087
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3088
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3089
  (eval $ac_try) 2>&5
 
3090
  ac_status=$?
 
3091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3092
  (exit $ac_status); }; } &&
 
3093
         { ac_try='test -s conftest.$ac_objext'
 
3094
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3095
  (eval $ac_try) 2>&5
 
3096
  ac_status=$?
 
3097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3098
  (exit $ac_status); }; }; then
 
3099
  break
 
3100
else
 
3101
  echo "$as_me: failed program was:" >&5
 
3102
sed 's/^/| /' conftest.$ac_ext >&5
 
3103
 
 
3104
fi
 
3105
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3106
done
 
3107
rm -f conftest*
 
3108
if test -n "$ac_declaration"; then
 
3109
  echo '#ifdef __cplusplus' >>confdefs.h
 
3110
  echo $ac_declaration      >>confdefs.h
 
3111
  echo '#endif'             >>confdefs.h
 
3112
fi
 
3113
 
 
3114
else
 
3115
  echo "$as_me: failed program was:" >&5
 
3116
sed 's/^/| /' conftest.$ac_ext >&5
 
3117
 
 
3118
fi
 
3119
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3120
ac_ext=c
 
3121
ac_cpp='$CPP $CPPFLAGS'
 
3122
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3123
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3124
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3125
 
 
3126
depcc="$CC"   am_compiler_list=
 
3127
 
 
3128
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3129
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3130
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3131
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3132
else
 
3133
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3134
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3135
  # making bogus files that we don't know about and never remove.  For
 
3136
  # instance it was reported that on HP-UX the gcc test will end up
 
3137
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3138
  # in D'.
 
3139
  mkdir conftest.dir
 
3140
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3141
  # using a relative directory.
 
3142
  cp "$am_depcomp" conftest.dir
 
3143
  cd conftest.dir
 
3144
  # We will build objects and dependencies in a subdirectory because
 
3145
  # it helps to detect inapplicable dependency modes.  For instance
 
3146
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3147
  # side effect of compilation, but ICC will put the dependencies in
 
3148
  # the current directory while Tru64 will put them in the object
 
3149
  # directory.
 
3150
  mkdir sub
 
3151
 
 
3152
  am_cv_CC_dependencies_compiler_type=none
 
3153
  if test "$am_compiler_list" = ""; then
 
3154
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3155
  fi
 
3156
  for depmode in $am_compiler_list; do
 
3157
    # Setup a source with many dependencies, because some compilers
 
3158
    # like to wrap large dependency lists on column 80 (with \), and
 
3159
    # we should not choose a depcomp mode which is confused by this.
 
3160
    #
 
3161
    # We need to recreate these files for each test, as the compiler may
 
3162
    # overwrite some of them when testing with obscure command lines.
 
3163
    # This happens at least with the AIX C compiler.
 
3164
    : > sub/conftest.c
 
3165
    for i in 1 2 3 4 5 6; do
 
3166
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3167
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3168
      # Solaris 8's {/usr,}/bin/sh.
 
3169
      touch sub/conftst$i.h
 
3170
    done
 
3171
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3172
 
 
3173
    case $depmode in
 
3174
    nosideeffect)
 
3175
      # after this tag, mechanisms are not by side-effect, so they'll
 
3176
      # only be used when explicitly requested
 
3177
      if test "x$enable_dependency_tracking" = xyes; then
 
3178
        continue
 
3179
      else
 
3180
        break
 
3181
      fi
 
3182
      ;;
 
3183
    none) break ;;
 
3184
    esac
 
3185
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3186
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3187
    # handle `-M -o', and we need to detect this.
 
3188
    if depmode=$depmode \
 
3189
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3190
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3191
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3192
         >/dev/null 2>conftest.err &&
 
3193
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3194
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3195
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3196
      # icc doesn't choke on unknown options, it will just issue warnings
 
3197
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3198
      # that says an option was ignored or not supported.
 
3199
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3200
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3201
      # The diagnosis changed in icc 8.0:
 
3202
      #   icc: Command line remark: option '-MP' not supported
 
3203
      if (grep 'ignoring option' conftest.err ||
 
3204
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3205
        am_cv_CC_dependencies_compiler_type=$depmode
 
3206
        break
 
3207
      fi
 
3208
    fi
 
3209
  done
 
3210
 
 
3211
  cd ..
 
3212
  rm -rf conftest.dir
 
3213
else
 
3214
  am_cv_CC_dependencies_compiler_type=none
 
3215
fi
 
3216
 
 
3217
fi
 
3218
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3219
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3220
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3221
 
 
3222
 
 
3223
 
 
3224
if
 
3225
  test "x$enable_dependency_tracking" != xno \
 
3226
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3227
  am__fastdepCC_TRUE=
 
3228
  am__fastdepCC_FALSE='#'
 
3229
else
 
3230
  am__fastdepCC_TRUE='#'
 
3231
  am__fastdepCC_FALSE=
 
3232
fi
 
3233
 
 
3234
 
 
3235
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3236
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3237
if test "${lt_cv_path_SED+set}" = set; then
 
3238
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3239
else
 
3240
  # Loop through the user's path and test for sed and gsed.
 
3241
# Then use that list of sed's as ones to test for truncation.
 
3242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3243
for as_dir in $PATH
 
3244
do
 
3245
  IFS=$as_save_IFS
 
3246
  test -z "$as_dir" && as_dir=.
 
3247
  for lt_ac_prog in sed gsed; do
 
3248
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3249
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3250
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3251
      fi
 
3252
    done
 
3253
  done
 
3254
done
 
3255
lt_ac_max=0
 
3256
lt_ac_count=0
 
3257
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3258
# along with /bin/sed that truncates output.
 
3259
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3260
  test ! -f $lt_ac_sed && continue
 
3261
  cat /dev/null > conftest.in
 
3262
  lt_ac_count=0
 
3263
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3264
  # Check for GNU sed and select it if it is found.
 
3265
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3266
    lt_cv_path_SED=$lt_ac_sed
 
3267
    break
 
3268
  fi
 
3269
  while true; do
 
3270
    cat conftest.in conftest.in >conftest.tmp
 
3271
    mv conftest.tmp conftest.in
 
3272
    cp conftest.in conftest.nl
 
3273
    echo >>conftest.nl
 
3274
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3275
    cmp -s conftest.out conftest.nl || break
 
3276
    # 10000 chars as input seems more than enough
 
3277
    test $lt_ac_count -gt 10 && break
 
3278
    lt_ac_count=`expr $lt_ac_count + 1`
 
3279
    if test $lt_ac_count -gt $lt_ac_max; then
 
3280
      lt_ac_max=$lt_ac_count
 
3281
      lt_cv_path_SED=$lt_ac_sed
 
3282
    fi
 
3283
  done
 
3284
done
 
3285
 
 
3286
fi
 
3287
 
 
3288
SED=$lt_cv_path_SED
 
3289
echo "$as_me:$LINENO: result: $SED" >&5
 
3290
echo "${ECHO_T}$SED" >&6
 
3291
 
 
3292
echo "$as_me:$LINENO: checking for egrep" >&5
 
3293
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3294
if test "${ac_cv_prog_egrep+set}" = set; then
 
3295
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3296
else
 
3297
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3298
    then ac_cv_prog_egrep='grep -E'
 
3299
    else ac_cv_prog_egrep='egrep'
 
3300
    fi
 
3301
fi
 
3302
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3303
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3304
 EGREP=$ac_cv_prog_egrep
 
3305
 
 
3306
 
 
3307
 
 
3308
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3309
if test "${with_gnu_ld+set}" = set; then
 
3310
  withval="$with_gnu_ld"
 
3311
  test "$withval" = no || with_gnu_ld=yes
 
3312
else
 
3313
  with_gnu_ld=no
 
3314
fi;
 
3315
ac_prog=ld
 
3316
if test "$GCC" = yes; then
 
3317
  # Check if gcc -print-prog-name=ld gives a path.
 
3318
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3319
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3320
  case $host in
 
3321
  *-*-mingw*)
 
3322
    # gcc leaves a trailing carriage return which upsets mingw
 
3323
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3324
  *)
 
3325
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3326
  esac
 
3327
  case $ac_prog in
 
3328
    # Accept absolute paths.
 
3329
    [\\/]* | ?:[\\/]*)
 
3330
      re_direlt='/[^/][^/]*/\.\./'
 
3331
      # Canonicalize the pathname of ld
 
3332
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3333
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3334
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3335
      done
 
3336
      test -z "$LD" && LD="$ac_prog"
 
3337
      ;;
 
3338
  "")
 
3339
    # If it fails, then pretend we aren't using GCC.
 
3340
    ac_prog=ld
 
3341
    ;;
 
3342
  *)
 
3343
    # If it is relative, then search for the first ld in PATH.
 
3344
    with_gnu_ld=unknown
 
3345
    ;;
 
3346
  esac
 
3347
elif test "$with_gnu_ld" = yes; then
 
3348
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3349
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3350
else
 
3351
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3352
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3353
fi
 
3354
if test "${lt_cv_path_LD+set}" = set; then
 
3355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3356
else
 
3357
  if test -z "$LD"; then
 
3358
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3359
  for ac_dir in $PATH; do
 
3360
    IFS="$lt_save_ifs"
 
3361
    test -z "$ac_dir" && ac_dir=.
 
3362
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3363
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3364
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3365
      # but apparently some variants of GNU ld only accept -v.
 
3366
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3367
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3368
      *GNU* | *'with BFD'*)
 
3369
        test "$with_gnu_ld" != no && break
 
3370
        ;;
 
3371
      *)
 
3372
        test "$with_gnu_ld" != yes && break
 
3373
        ;;
 
3374
      esac
 
3375
    fi
 
3376
  done
 
3377
  IFS="$lt_save_ifs"
 
3378
else
 
3379
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3380
fi
 
3381
fi
 
3382
 
 
3383
LD="$lt_cv_path_LD"
 
3384
if test -n "$LD"; then
 
3385
  echo "$as_me:$LINENO: result: $LD" >&5
 
3386
echo "${ECHO_T}$LD" >&6
 
3387
else
 
3388
  echo "$as_me:$LINENO: result: no" >&5
 
3389
echo "${ECHO_T}no" >&6
 
3390
fi
 
3391
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3392
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3393
   { (exit 1); exit 1; }; }
 
3394
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3395
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3396
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3397
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3398
else
 
3399
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
3400
case `$LD -v 2>&1 </dev/null` in
 
3401
*GNU* | *'with BFD'*)
 
3402
  lt_cv_prog_gnu_ld=yes
 
3403
  ;;
 
3404
*)
 
3405
  lt_cv_prog_gnu_ld=no
 
3406
  ;;
 
3407
esac
 
3408
fi
 
3409
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3410
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3411
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3412
 
 
3413
 
 
3414
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3415
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3416
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3417
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3418
else
 
3419
  lt_cv_ld_reload_flag='-r'
 
3420
fi
 
3421
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3422
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3423
reload_flag=$lt_cv_ld_reload_flag
 
3424
case $reload_flag in
 
3425
"" | " "*) ;;
 
3426
*) reload_flag=" $reload_flag" ;;
 
3427
esac
 
3428
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3429
case $host_os in
 
3430
  darwin*)
 
3431
    if test "$GCC" = yes; then
 
3432
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3433
    else
 
3434
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3435
    fi
 
3436
    ;;
 
3437
esac
 
3438
 
 
3439
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3440
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3441
if test "${lt_cv_path_NM+set}" = set; then
 
3442
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3443
else
 
3444
  if test -n "$NM"; then
 
3445
  # Let the user override the test.
 
3446
  lt_cv_path_NM="$NM"
 
3447
else
 
3448
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3449
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3450
    lt_nm_to_check="$lt_nm_to_check nm"
 
3451
  fi
 
3452
  for lt_tmp_nm in $lt_nm_to_check; do
 
3453
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3454
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3455
      IFS="$lt_save_ifs"
 
3456
      test -z "$ac_dir" && ac_dir=.
 
3457
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3458
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3459
        # Check to see if the nm accepts a BSD-compat flag.
 
3460
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3461
        #   nm: unknown option "B" ignored
 
3462
        # Tru64's nm complains that /dev/null is an invalid object file
 
3463
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3464
        */dev/null* | *'Invalid file or object type'*)
 
3465
          lt_cv_path_NM="$tmp_nm -B"
 
3466
          break
 
3467
          ;;
 
3468
        *)
 
3469
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3470
          */dev/null*)
 
3471
            lt_cv_path_NM="$tmp_nm -p"
 
3472
            break
 
3473
            ;;
 
3474
          *)
 
3475
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3476
            continue # so that we can try to find one that supports BSD flags
 
3477
            ;;
 
3478
          esac
 
3479
          ;;
 
3480
        esac
 
3481
      fi
 
3482
    done
 
3483
    IFS="$lt_save_ifs"
 
3484
  done
 
3485
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3486
fi
 
3487
fi
 
3488
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3489
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
3490
NM="$lt_cv_path_NM"
 
3491
 
 
3492
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3493
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3494
LN_S=$as_ln_s
 
3495
if test "$LN_S" = "ln -s"; then
 
3496
  echo "$as_me:$LINENO: result: yes" >&5
 
3497
echo "${ECHO_T}yes" >&6
 
3498
else
 
3499
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3500
echo "${ECHO_T}no, using $LN_S" >&6
 
3501
fi
 
3502
 
 
3503
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3504
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
3505
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3506
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3507
else
 
3508
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3509
lt_cv_file_magic_test_file=
 
3510
lt_cv_deplibs_check_method='unknown'
 
3511
# Need to set the preceding variable on all platforms that support
 
3512
# interlibrary dependencies.
 
3513
# 'none' -- dependencies not supported.
 
3514
# `unknown' -- same as none, but documents that we really don't know.
 
3515
# 'pass_all' -- all dependencies passed with no checks.
 
3516
# 'test_compile' -- check by making test program.
 
3517
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3518
# which responds to the $file_magic_cmd with a given extended regex.
 
3519
# If you have `file' or equivalent on your system and you're not sure
 
3520
# whether `pass_all' will *always* work, you probably want this one.
 
3521
 
 
3522
case $host_os in
 
3523
aix4* | aix5*)
 
3524
  lt_cv_deplibs_check_method=pass_all
 
3525
  ;;
 
3526
 
 
3527
beos*)
 
3528
  lt_cv_deplibs_check_method=pass_all
 
3529
  ;;
 
3530
 
 
3531
bsdi[45]*)
 
3532
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3533
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3534
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3535
  ;;
 
3536
 
 
3537
cygwin*)
 
3538
  # func_win32_libid is a shell function defined in ltmain.sh
 
3539
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3540
  lt_cv_file_magic_cmd='func_win32_libid'
 
3541
  ;;
 
3542
 
 
3543
mingw* | pw32*)
 
3544
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3545
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3546
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3547
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3548
  ;;
 
3549
 
 
3550
darwin* | rhapsody*)
 
3551
  lt_cv_deplibs_check_method=pass_all
 
3552
  ;;
 
3553
 
 
3554
freebsd* | kfreebsd*-gnu | dragonfly*)
 
3555
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3556
    case $host_cpu in
 
3557
    i*86 )
 
3558
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3559
      # Let's accept both of them until this is cleared up.
 
3560
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
3561
      lt_cv_file_magic_cmd=/usr/bin/file
 
3562
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3563
      ;;
 
3564
    esac
 
3565
  else
 
3566
    lt_cv_deplibs_check_method=pass_all
 
3567
  fi
 
3568
  ;;
 
3569
 
 
3570
gnu*)
 
3571
  lt_cv_deplibs_check_method=pass_all
 
3572
  ;;
 
3573
 
 
3574
hpux10.20* | hpux11*)
 
3575
  lt_cv_file_magic_cmd=/usr/bin/file
 
3576
  case $host_cpu in
 
3577
  ia64*)
 
3578
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3579
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3580
    ;;
 
3581
  hppa*64*)
 
3582
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
3583
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3584
    ;;
 
3585
  *)
 
3586
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3587
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3588
    ;;
 
3589
  esac
 
3590
  ;;
 
3591
 
 
3592
interix3*)
 
3593
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3594
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
3595
  ;;
 
3596
 
 
3597
irix5* | irix6* | nonstopux*)
 
3598
  case $LD in
 
3599
  *-32|*"-32 ") libmagic=32-bit;;
 
3600
  *-n32|*"-n32 ") libmagic=N32;;
 
3601
  *-64|*"-64 ") libmagic=64-bit;;
 
3602
  *) libmagic=never-match;;
 
3603
  esac
 
3604
  lt_cv_deplibs_check_method=pass_all
 
3605
  ;;
 
3606
 
 
3607
# This must be Linux ELF.
 
3608
linux*)
 
3609
  lt_cv_deplibs_check_method=pass_all
 
3610
  ;;
 
3611
 
 
3612
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
3613
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3614
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3615
  else
 
3616
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
3617
  fi
 
3618
  ;;
 
3619
 
 
3620
newos6*)
 
3621
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3622
  lt_cv_file_magic_cmd=/usr/bin/file
 
3623
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3624
  ;;
 
3625
 
 
3626
nto-qnx*)
 
3627
  lt_cv_deplibs_check_method=unknown
 
3628
  ;;
 
3629
 
 
3630
openbsd*)
 
3631
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3632
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
3633
  else
 
3634
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3635
  fi
 
3636
  ;;
 
3637
 
 
3638
osf3* | osf4* | osf5*)
 
3639
  lt_cv_deplibs_check_method=pass_all
 
3640
  ;;
 
3641
 
 
3642
solaris*)
 
3643
  lt_cv_deplibs_check_method=pass_all
 
3644
  ;;
 
3645
 
 
3646
sysv4 | sysv4.3*)
 
3647
  case $host_vendor in
 
3648
  motorola)
 
3649
    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]'
 
3650
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3651
    ;;
 
3652
  ncr)
 
3653
    lt_cv_deplibs_check_method=pass_all
 
3654
    ;;
 
3655
  sequent)
 
3656
    lt_cv_file_magic_cmd='/bin/file'
 
3657
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3658
    ;;
 
3659
  sni)
 
3660
    lt_cv_file_magic_cmd='/bin/file'
 
3661
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3662
    lt_cv_file_magic_test_file=/lib/libc.so
 
3663
    ;;
 
3664
  siemens)
 
3665
    lt_cv_deplibs_check_method=pass_all
 
3666
    ;;
 
3667
  pc)
 
3668
    lt_cv_deplibs_check_method=pass_all
 
3669
    ;;
 
3670
  esac
 
3671
  ;;
 
3672
 
 
3673
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3674
  lt_cv_deplibs_check_method=pass_all
 
3675
  ;;
 
3676
esac
 
3677
 
 
3678
fi
 
3679
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3680
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
3681
file_magic_cmd=$lt_cv_file_magic_cmd
 
3682
deplibs_check_method=$lt_cv_deplibs_check_method
 
3683
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3684
 
 
3685
 
 
3686
 
 
3687
 
 
3688
# If no C compiler was specified, use CC.
 
3689
LTCC=${LTCC-"$CC"}
 
3690
 
 
3691
# If no C compiler flags were specified, use CFLAGS.
 
3692
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
3693
 
 
3694
# Allow CC to be a program name with arguments.
 
3695
compiler=$CC
 
3696
 
 
3697
 
 
3698
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
3699
if test "${enable_libtool_lock+set}" = set; then
 
3700
  enableval="$enable_libtool_lock"
 
3701
 
 
3702
fi;
 
3703
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3704
 
 
3705
# Some flags need to be propagated to the compiler or linker for good
 
3706
# libtool support.
 
3707
case $host in
 
3708
ia64-*-hpux*)
 
3709
  # Find out which ABI we are using.
 
3710
  echo 'int i;' > conftest.$ac_ext
 
3711
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3712
  (eval $ac_compile) 2>&5
 
3713
  ac_status=$?
 
3714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3715
  (exit $ac_status); }; then
 
3716
    case `/usr/bin/file conftest.$ac_objext` in
 
3717
    *ELF-32*)
 
3718
      HPUX_IA64_MODE="32"
 
3719
      ;;
 
3720
    *ELF-64*)
 
3721
      HPUX_IA64_MODE="64"
 
3722
      ;;
 
3723
    esac
 
3724
  fi
 
3725
  rm -rf conftest*
 
3726
  ;;
 
3727
*-*-irix6*)
 
3728
  # Find out which ABI we are using.
 
3729
  echo '#line 3729 "configure"' > conftest.$ac_ext
 
3730
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3731
  (eval $ac_compile) 2>&5
 
3732
  ac_status=$?
 
3733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3734
  (exit $ac_status); }; then
 
3735
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3736
    case `/usr/bin/file conftest.$ac_objext` in
 
3737
    *32-bit*)
 
3738
      LD="${LD-ld} -melf32bsmip"
 
3739
      ;;
 
3740
    *N32*)
 
3741
      LD="${LD-ld} -melf32bmipn32"
 
3742
      ;;
 
3743
    *64-bit*)
 
3744
      LD="${LD-ld} -melf64bmip"
 
3745
      ;;
 
3746
    esac
 
3747
   else
 
3748
    case `/usr/bin/file conftest.$ac_objext` in
 
3749
    *32-bit*)
 
3750
      LD="${LD-ld} -32"
 
3751
      ;;
 
3752
    *N32*)
 
3753
      LD="${LD-ld} -n32"
 
3754
      ;;
 
3755
    *64-bit*)
 
3756
      LD="${LD-ld} -64"
 
3757
      ;;
 
3758
    esac
 
3759
   fi
 
3760
  fi
 
3761
  rm -rf conftest*
 
3762
  ;;
 
3763
 
 
3764
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3765
  # Find out which ABI we are using.
 
3766
  echo 'int i;' > conftest.$ac_ext
 
3767
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3768
  (eval $ac_compile) 2>&5
 
3769
  ac_status=$?
 
3770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3771
  (exit $ac_status); }; then
 
3772
    case `/usr/bin/file conftest.o` in
 
3773
    *32-bit*)
 
3774
      case $host in
 
3775
        x86_64-*linux*)
 
3776
          LD="${LD-ld} -m elf_i386"
 
3777
          ;;
 
3778
        ppc64-*linux*|powerpc64-*linux*)
 
3779
          LD="${LD-ld} -m elf32ppclinux"
 
3780
          ;;
 
3781
        s390x-*linux*)
 
3782
          LD="${LD-ld} -m elf_s390"
 
3783
          ;;
 
3784
        sparc64-*linux*)
 
3785
          LD="${LD-ld} -m elf32_sparc"
 
3786
          ;;
 
3787
      esac
 
3788
      ;;
 
3789
    *64-bit*)
 
3790
      case $host in
 
3791
        x86_64-*linux*)
 
3792
          LD="${LD-ld} -m elf_x86_64"
 
3793
          ;;
 
3794
        ppc*-*linux*|powerpc*-*linux*)
 
3795
          LD="${LD-ld} -m elf64ppc"
 
3796
          ;;
 
3797
        s390*-*linux*)
 
3798
          LD="${LD-ld} -m elf64_s390"
 
3799
          ;;
 
3800
        sparc*-*linux*)
 
3801
          LD="${LD-ld} -m elf64_sparc"
 
3802
          ;;
 
3803
      esac
 
3804
      ;;
 
3805
    esac
 
3806
  fi
 
3807
  rm -rf conftest*
 
3808
  ;;
 
3809
 
 
3810
*-*-sco3.2v5*)
 
3811
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3812
  SAVE_CFLAGS="$CFLAGS"
 
3813
  CFLAGS="$CFLAGS -belf"
 
3814
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3815
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
3816
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3817
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3818
else
 
3819
  ac_ext=c
 
3820
ac_cpp='$CPP $CPPFLAGS'
 
3821
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3822
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3823
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3824
 
 
3825
     cat >conftest.$ac_ext <<_ACEOF
 
3826
/* confdefs.h.  */
 
3827
_ACEOF
 
3828
cat confdefs.h >>conftest.$ac_ext
 
3829
cat >>conftest.$ac_ext <<_ACEOF
 
3830
/* end confdefs.h.  */
 
3831
 
 
3832
int
 
3833
main ()
 
3834
{
 
3835
 
 
3836
  ;
 
3837
  return 0;
 
3838
}
 
3839
_ACEOF
 
3840
rm -f conftest.$ac_objext conftest$ac_exeext
 
3841
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3842
  (eval $ac_link) 2>conftest.er1
 
3843
  ac_status=$?
 
3844
  grep -v '^ *+' conftest.er1 >conftest.err
 
3845
  rm -f conftest.er1
 
3846
  cat conftest.err >&5
 
3847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3848
  (exit $ac_status); } &&
 
3849
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3851
  (eval $ac_try) 2>&5
 
3852
  ac_status=$?
 
3853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3854
  (exit $ac_status); }; } &&
 
3855
         { ac_try='test -s conftest$ac_exeext'
 
3856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3857
  (eval $ac_try) 2>&5
 
3858
  ac_status=$?
 
3859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3860
  (exit $ac_status); }; }; then
 
3861
  lt_cv_cc_needs_belf=yes
 
3862
else
 
3863
  echo "$as_me: failed program was:" >&5
 
3864
sed 's/^/| /' conftest.$ac_ext >&5
 
3865
 
 
3866
lt_cv_cc_needs_belf=no
 
3867
fi
 
3868
rm -f conftest.err conftest.$ac_objext \
 
3869
      conftest$ac_exeext conftest.$ac_ext
 
3870
     ac_ext=c
 
3871
ac_cpp='$CPP $CPPFLAGS'
 
3872
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3873
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3874
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3875
 
 
3876
fi
 
3877
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3878
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
3879
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3880
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3881
    CFLAGS="$SAVE_CFLAGS"
 
3882
  fi
 
3883
  ;;
 
3884
sparc*-*solaris*)
 
3885
  # Find out which ABI we are using.
 
3886
  echo 'int i;' > conftest.$ac_ext
 
3887
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3888
  (eval $ac_compile) 2>&5
 
3889
  ac_status=$?
 
3890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3891
  (exit $ac_status); }; then
 
3892
    case `/usr/bin/file conftest.o` in
 
3893
    *64-bit*)
 
3894
      case $lt_cv_prog_gnu_ld in
 
3895
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
3896
      *)    LD="${LD-ld} -64" ;;
 
3897
      esac
 
3898
      ;;
 
3899
    esac
 
3900
  fi
 
3901
  rm -rf conftest*
 
3902
  ;;
 
3903
 
 
3904
 
 
3905
esac
 
3906
 
 
3907
need_locks="$enable_libtool_lock"
 
3908
 
 
3909
 
 
3910
ac_ext=c
 
3911
ac_cpp='$CPP $CPPFLAGS'
 
3912
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3913
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3914
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3915
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3916
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3917
# On Suns, sometimes $CPP names a directory.
 
3918
if test -n "$CPP" && test -d "$CPP"; then
 
3919
  CPP=
 
3920
fi
 
3921
if test -z "$CPP"; then
 
3922
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3924
else
 
3925
      # Double quotes because CPP needs to be expanded
 
3926
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3927
    do
 
3928
      ac_preproc_ok=false
 
3929
for ac_c_preproc_warn_flag in '' yes
 
3930
do
 
3931
  # Use a header file that comes with gcc, so configuring glibc
 
3932
  # with a fresh cross-compiler works.
 
3933
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3934
  # <limits.h> exists even on freestanding compilers.
 
3935
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3936
  # not just through cpp. "Syntax error" is here to catch this case.
 
3937
  cat >conftest.$ac_ext <<_ACEOF
 
3938
/* confdefs.h.  */
 
3939
_ACEOF
 
3940
cat confdefs.h >>conftest.$ac_ext
 
3941
cat >>conftest.$ac_ext <<_ACEOF
 
3942
/* end confdefs.h.  */
 
3943
#ifdef __STDC__
 
3944
# include <limits.h>
 
3945
#else
 
3946
# include <assert.h>
 
3947
#endif
 
3948
                     Syntax error
 
3949
_ACEOF
 
3950
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3951
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3952
  ac_status=$?
 
3953
  grep -v '^ *+' conftest.er1 >conftest.err
 
3954
  rm -f conftest.er1
 
3955
  cat conftest.err >&5
 
3956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3957
  (exit $ac_status); } >/dev/null; then
 
3958
  if test -s conftest.err; then
 
3959
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3960
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3961
  else
 
3962
    ac_cpp_err=
 
3963
  fi
 
3964
else
 
3965
  ac_cpp_err=yes
 
3966
fi
 
3967
if test -z "$ac_cpp_err"; then
 
3968
  :
 
3969
else
 
3970
  echo "$as_me: failed program was:" >&5
 
3971
sed 's/^/| /' conftest.$ac_ext >&5
 
3972
 
 
3973
  # Broken: fails on valid input.
 
3974
continue
 
3975
fi
 
3976
rm -f conftest.err conftest.$ac_ext
 
3977
 
 
3978
  # OK, works on sane cases.  Now check whether non-existent headers
 
3979
  # can be detected and how.
 
3980
  cat >conftest.$ac_ext <<_ACEOF
 
3981
/* confdefs.h.  */
 
3982
_ACEOF
 
3983
cat confdefs.h >>conftest.$ac_ext
 
3984
cat >>conftest.$ac_ext <<_ACEOF
 
3985
/* end confdefs.h.  */
 
3986
#include <ac_nonexistent.h>
 
3987
_ACEOF
 
3988
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3989
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3990
  ac_status=$?
 
3991
  grep -v '^ *+' conftest.er1 >conftest.err
 
3992
  rm -f conftest.er1
 
3993
  cat conftest.err >&5
 
3994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3995
  (exit $ac_status); } >/dev/null; then
 
3996
  if test -s conftest.err; then
 
3997
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3998
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3999
  else
 
4000
    ac_cpp_err=
 
4001
  fi
 
4002
else
 
4003
  ac_cpp_err=yes
 
4004
fi
 
4005
if test -z "$ac_cpp_err"; then
 
4006
  # Broken: success on invalid input.
 
4007
continue
 
4008
else
 
4009
  echo "$as_me: failed program was:" >&5
 
4010
sed 's/^/| /' conftest.$ac_ext >&5
 
4011
 
 
4012
  # Passes both tests.
 
4013
ac_preproc_ok=:
 
4014
break
 
4015
fi
 
4016
rm -f conftest.err conftest.$ac_ext
 
4017
 
 
4018
done
 
4019
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4020
rm -f conftest.err conftest.$ac_ext
 
4021
if $ac_preproc_ok; then
 
4022
  break
 
4023
fi
 
4024
 
 
4025
    done
 
4026
    ac_cv_prog_CPP=$CPP
 
4027
 
 
4028
fi
 
4029
  CPP=$ac_cv_prog_CPP
 
4030
else
 
4031
  ac_cv_prog_CPP=$CPP
 
4032
fi
 
4033
echo "$as_me:$LINENO: result: $CPP" >&5
 
4034
echo "${ECHO_T}$CPP" >&6
 
4035
ac_preproc_ok=false
 
4036
for ac_c_preproc_warn_flag in '' yes
 
4037
do
 
4038
  # Use a header file that comes with gcc, so configuring glibc
 
4039
  # with a fresh cross-compiler works.
 
4040
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4041
  # <limits.h> exists even on freestanding compilers.
 
4042
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4043
  # not just through cpp. "Syntax error" is here to catch this case.
 
4044
  cat >conftest.$ac_ext <<_ACEOF
 
4045
/* confdefs.h.  */
 
4046
_ACEOF
 
4047
cat confdefs.h >>conftest.$ac_ext
 
4048
cat >>conftest.$ac_ext <<_ACEOF
 
4049
/* end confdefs.h.  */
 
4050
#ifdef __STDC__
 
4051
# include <limits.h>
 
4052
#else
 
4053
# include <assert.h>
 
4054
#endif
 
4055
                     Syntax error
 
4056
_ACEOF
 
4057
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4058
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4059
  ac_status=$?
 
4060
  grep -v '^ *+' conftest.er1 >conftest.err
 
4061
  rm -f conftest.er1
 
4062
  cat conftest.err >&5
 
4063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4064
  (exit $ac_status); } >/dev/null; then
 
4065
  if test -s conftest.err; then
 
4066
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4067
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4068
  else
 
4069
    ac_cpp_err=
 
4070
  fi
 
4071
else
 
4072
  ac_cpp_err=yes
 
4073
fi
 
4074
if test -z "$ac_cpp_err"; then
 
4075
  :
 
4076
else
 
4077
  echo "$as_me: failed program was:" >&5
 
4078
sed 's/^/| /' conftest.$ac_ext >&5
 
4079
 
 
4080
  # Broken: fails on valid input.
 
4081
continue
 
4082
fi
 
4083
rm -f conftest.err conftest.$ac_ext
 
4084
 
 
4085
  # OK, works on sane cases.  Now check whether non-existent headers
 
4086
  # can be detected and how.
 
4087
  cat >conftest.$ac_ext <<_ACEOF
 
4088
/* confdefs.h.  */
 
4089
_ACEOF
 
4090
cat confdefs.h >>conftest.$ac_ext
 
4091
cat >>conftest.$ac_ext <<_ACEOF
 
4092
/* end confdefs.h.  */
 
4093
#include <ac_nonexistent.h>
 
4094
_ACEOF
 
4095
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4096
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4097
  ac_status=$?
 
4098
  grep -v '^ *+' conftest.er1 >conftest.err
 
4099
  rm -f conftest.er1
 
4100
  cat conftest.err >&5
 
4101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4102
  (exit $ac_status); } >/dev/null; then
 
4103
  if test -s conftest.err; then
 
4104
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4105
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4106
  else
 
4107
    ac_cpp_err=
 
4108
  fi
 
4109
else
 
4110
  ac_cpp_err=yes
 
4111
fi
 
4112
if test -z "$ac_cpp_err"; then
 
4113
  # Broken: success on invalid input.
 
4114
continue
 
4115
else
 
4116
  echo "$as_me: failed program was:" >&5
 
4117
sed 's/^/| /' conftest.$ac_ext >&5
 
4118
 
 
4119
  # Passes both tests.
 
4120
ac_preproc_ok=:
 
4121
break
 
4122
fi
 
4123
rm -f conftest.err conftest.$ac_ext
 
4124
 
 
4125
done
 
4126
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4127
rm -f conftest.err conftest.$ac_ext
 
4128
if $ac_preproc_ok; then
 
4129
  :
 
4130
else
 
4131
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4132
See \`config.log' for more details." >&5
 
4133
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4134
See \`config.log' for more details." >&2;}
 
4135
   { (exit 1); exit 1; }; }
 
4136
fi
 
4137
 
 
4138
ac_ext=c
 
4139
ac_cpp='$CPP $CPPFLAGS'
 
4140
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4141
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4142
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4143
 
 
4144
 
 
4145
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4146
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4147
if test "${ac_cv_header_stdc+set}" = set; then
 
4148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4149
else
 
4150
  cat >conftest.$ac_ext <<_ACEOF
 
4151
/* confdefs.h.  */
 
4152
_ACEOF
 
4153
cat confdefs.h >>conftest.$ac_ext
 
4154
cat >>conftest.$ac_ext <<_ACEOF
 
4155
/* end confdefs.h.  */
 
4156
#include <stdlib.h>
 
4157
#include <stdarg.h>
 
4158
#include <string.h>
 
4159
#include <float.h>
 
4160
 
 
4161
int
 
4162
main ()
 
4163
{
 
4164
 
 
4165
  ;
 
4166
  return 0;
 
4167
}
 
4168
_ACEOF
 
4169
rm -f conftest.$ac_objext
 
4170
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4171
  (eval $ac_compile) 2>conftest.er1
 
4172
  ac_status=$?
 
4173
  grep -v '^ *+' conftest.er1 >conftest.err
 
4174
  rm -f conftest.er1
 
4175
  cat conftest.err >&5
 
4176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4177
  (exit $ac_status); } &&
 
4178
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4179
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4180
  (eval $ac_try) 2>&5
 
4181
  ac_status=$?
 
4182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4183
  (exit $ac_status); }; } &&
 
4184
         { ac_try='test -s conftest.$ac_objext'
 
4185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4186
  (eval $ac_try) 2>&5
 
4187
  ac_status=$?
 
4188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4189
  (exit $ac_status); }; }; then
 
4190
  ac_cv_header_stdc=yes
 
4191
else
 
4192
  echo "$as_me: failed program was:" >&5
 
4193
sed 's/^/| /' conftest.$ac_ext >&5
 
4194
 
 
4195
ac_cv_header_stdc=no
 
4196
fi
 
4197
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4198
 
 
4199
if test $ac_cv_header_stdc = yes; then
 
4200
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4201
  cat >conftest.$ac_ext <<_ACEOF
 
4202
/* confdefs.h.  */
 
4203
_ACEOF
 
4204
cat confdefs.h >>conftest.$ac_ext
 
4205
cat >>conftest.$ac_ext <<_ACEOF
 
4206
/* end confdefs.h.  */
 
4207
#include <string.h>
 
4208
 
 
4209
_ACEOF
 
4210
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4211
  $EGREP "memchr" >/dev/null 2>&1; then
 
4212
  :
 
4213
else
 
4214
  ac_cv_header_stdc=no
 
4215
fi
 
4216
rm -f conftest*
 
4217
 
 
4218
fi
 
4219
 
 
4220
if test $ac_cv_header_stdc = yes; then
 
4221
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4222
  cat >conftest.$ac_ext <<_ACEOF
 
4223
/* confdefs.h.  */
 
4224
_ACEOF
 
4225
cat confdefs.h >>conftest.$ac_ext
 
4226
cat >>conftest.$ac_ext <<_ACEOF
 
4227
/* end confdefs.h.  */
 
4228
#include <stdlib.h>
 
4229
 
 
4230
_ACEOF
 
4231
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4232
  $EGREP "free" >/dev/null 2>&1; then
 
4233
  :
 
4234
else
 
4235
  ac_cv_header_stdc=no
 
4236
fi
 
4237
rm -f conftest*
 
4238
 
 
4239
fi
 
4240
 
 
4241
if test $ac_cv_header_stdc = yes; then
 
4242
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4243
  if test "$cross_compiling" = yes; then
 
4244
  :
 
4245
else
 
4246
  cat >conftest.$ac_ext <<_ACEOF
 
4247
/* confdefs.h.  */
 
4248
_ACEOF
 
4249
cat confdefs.h >>conftest.$ac_ext
 
4250
cat >>conftest.$ac_ext <<_ACEOF
 
4251
/* end confdefs.h.  */
 
4252
#include <ctype.h>
 
4253
#if ((' ' & 0x0FF) == 0x020)
 
4254
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4255
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4256
#else
 
4257
# define ISLOWER(c) \
 
4258
                   (('a' <= (c) && (c) <= 'i') \
 
4259
                     || ('j' <= (c) && (c) <= 'r') \
 
4260
                     || ('s' <= (c) && (c) <= 'z'))
 
4261
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4262
#endif
 
4263
 
 
4264
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4265
int
 
4266
main ()
 
4267
{
 
4268
  int i;
 
4269
  for (i = 0; i < 256; i++)
 
4270
    if (XOR (islower (i), ISLOWER (i))
 
4271
        || toupper (i) != TOUPPER (i))
 
4272
      exit(2);
 
4273
  exit (0);
 
4274
}
 
4275
_ACEOF
 
4276
rm -f conftest$ac_exeext
 
4277
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4278
  (eval $ac_link) 2>&5
 
4279
  ac_status=$?
 
4280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4281
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4283
  (eval $ac_try) 2>&5
 
4284
  ac_status=$?
 
4285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4286
  (exit $ac_status); }; }; then
 
4287
  :
 
4288
else
 
4289
  echo "$as_me: program exited with status $ac_status" >&5
 
4290
echo "$as_me: failed program was:" >&5
 
4291
sed 's/^/| /' conftest.$ac_ext >&5
 
4292
 
 
4293
( exit $ac_status )
 
4294
ac_cv_header_stdc=no
 
4295
fi
 
4296
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4297
fi
 
4298
fi
 
4299
fi
 
4300
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4301
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4302
if test $ac_cv_header_stdc = yes; then
 
4303
 
 
4304
cat >>confdefs.h <<\_ACEOF
 
4305
#define STDC_HEADERS 1
 
4306
_ACEOF
 
4307
 
 
4308
fi
 
4309
 
 
4310
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4311
 
 
4312
 
 
4313
 
 
4314
 
 
4315
 
 
4316
 
 
4317
 
 
4318
 
 
4319
 
 
4320
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4321
                  inttypes.h stdint.h unistd.h
 
4322
do
 
4323
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4324
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4325
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4326
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4328
else
 
4329
  cat >conftest.$ac_ext <<_ACEOF
 
4330
/* confdefs.h.  */
 
4331
_ACEOF
 
4332
cat confdefs.h >>conftest.$ac_ext
 
4333
cat >>conftest.$ac_ext <<_ACEOF
 
4334
/* end confdefs.h.  */
 
4335
$ac_includes_default
 
4336
 
 
4337
#include <$ac_header>
 
4338
_ACEOF
 
4339
rm -f conftest.$ac_objext
 
4340
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4341
  (eval $ac_compile) 2>conftest.er1
 
4342
  ac_status=$?
 
4343
  grep -v '^ *+' conftest.er1 >conftest.err
 
4344
  rm -f conftest.er1
 
4345
  cat conftest.err >&5
 
4346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4347
  (exit $ac_status); } &&
 
4348
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4350
  (eval $ac_try) 2>&5
 
4351
  ac_status=$?
 
4352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4353
  (exit $ac_status); }; } &&
 
4354
         { ac_try='test -s conftest.$ac_objext'
 
4355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4356
  (eval $ac_try) 2>&5
 
4357
  ac_status=$?
 
4358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4359
  (exit $ac_status); }; }; then
 
4360
  eval "$as_ac_Header=yes"
 
4361
else
 
4362
  echo "$as_me: failed program was:" >&5
 
4363
sed 's/^/| /' conftest.$ac_ext >&5
 
4364
 
 
4365
eval "$as_ac_Header=no"
 
4366
fi
 
4367
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4368
fi
 
4369
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4370
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4371
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4372
  cat >>confdefs.h <<_ACEOF
 
4373
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4374
_ACEOF
 
4375
 
 
4376
fi
 
4377
 
 
4378
done
 
4379
 
 
4380
 
 
4381
 
 
4382
for ac_header in dlfcn.h
 
4383
do
 
4384
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4385
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4386
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4387
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4388
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4389
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4390
fi
 
4391
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4392
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4393
else
 
4394
  # Is the header compilable?
 
4395
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4396
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4397
cat >conftest.$ac_ext <<_ACEOF
 
4398
/* confdefs.h.  */
 
4399
_ACEOF
 
4400
cat confdefs.h >>conftest.$ac_ext
 
4401
cat >>conftest.$ac_ext <<_ACEOF
 
4402
/* end confdefs.h.  */
 
4403
$ac_includes_default
 
4404
#include <$ac_header>
 
4405
_ACEOF
 
4406
rm -f conftest.$ac_objext
 
4407
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4408
  (eval $ac_compile) 2>conftest.er1
 
4409
  ac_status=$?
 
4410
  grep -v '^ *+' conftest.er1 >conftest.err
 
4411
  rm -f conftest.er1
 
4412
  cat conftest.err >&5
 
4413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4414
  (exit $ac_status); } &&
 
4415
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4416
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4417
  (eval $ac_try) 2>&5
 
4418
  ac_status=$?
 
4419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4420
  (exit $ac_status); }; } &&
 
4421
         { ac_try='test -s conftest.$ac_objext'
 
4422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4423
  (eval $ac_try) 2>&5
 
4424
  ac_status=$?
 
4425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4426
  (exit $ac_status); }; }; then
 
4427
  ac_header_compiler=yes
 
4428
else
 
4429
  echo "$as_me: failed program was:" >&5
 
4430
sed 's/^/| /' conftest.$ac_ext >&5
 
4431
 
 
4432
ac_header_compiler=no
 
4433
fi
 
4434
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4435
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4436
echo "${ECHO_T}$ac_header_compiler" >&6
 
4437
 
 
4438
# Is the header present?
 
4439
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4440
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4441
cat >conftest.$ac_ext <<_ACEOF
 
4442
/* confdefs.h.  */
 
4443
_ACEOF
 
4444
cat confdefs.h >>conftest.$ac_ext
 
4445
cat >>conftest.$ac_ext <<_ACEOF
 
4446
/* end confdefs.h.  */
 
4447
#include <$ac_header>
 
4448
_ACEOF
 
4449
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4450
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4451
  ac_status=$?
 
4452
  grep -v '^ *+' conftest.er1 >conftest.err
 
4453
  rm -f conftest.er1
 
4454
  cat conftest.err >&5
 
4455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4456
  (exit $ac_status); } >/dev/null; then
 
4457
  if test -s conftest.err; then
 
4458
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4459
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4460
  else
 
4461
    ac_cpp_err=
 
4462
  fi
 
4463
else
 
4464
  ac_cpp_err=yes
 
4465
fi
 
4466
if test -z "$ac_cpp_err"; then
 
4467
  ac_header_preproc=yes
 
4468
else
 
4469
  echo "$as_me: failed program was:" >&5
 
4470
sed 's/^/| /' conftest.$ac_ext >&5
 
4471
 
 
4472
  ac_header_preproc=no
 
4473
fi
 
4474
rm -f conftest.err conftest.$ac_ext
 
4475
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4476
echo "${ECHO_T}$ac_header_preproc" >&6
 
4477
 
 
4478
# So?  What about this header?
 
4479
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4480
  yes:no: )
 
4481
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4482
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4483
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4484
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4485
    ac_header_preproc=yes
 
4486
    ;;
 
4487
  no:yes:* )
 
4488
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4489
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4490
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4491
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4492
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4493
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4494
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4495
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4496
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4497
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4498
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4499
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4500
    (
 
4501
      cat <<\_ASBOX
 
4502
## ------------------------------------------ ##
 
4503
## Report this to the AC_PACKAGE_NAME lists.  ##
 
4504
## ------------------------------------------ ##
 
4505
_ASBOX
 
4506
    ) |
 
4507
      sed "s/^/$as_me: WARNING:     /" >&2
 
4508
    ;;
 
4509
esac
 
4510
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4511
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4512
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4513
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4514
else
 
4515
  eval "$as_ac_Header=\$ac_header_preproc"
 
4516
fi
 
4517
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4518
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4519
 
 
4520
fi
 
4521
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4522
  cat >>confdefs.h <<_ACEOF
 
4523
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4524
_ACEOF
 
4525
 
 
4526
fi
 
4527
 
 
4528
done
 
4529
 
 
4530
 
 
4531
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
4532
 
 
4533
# find the maximum length of command line arguments
 
4534
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4535
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
4536
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
4537
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4538
else
 
4539
    i=0
 
4540
  teststring="ABCD"
 
4541
 
 
4542
  case $build_os in
 
4543
  msdosdjgpp*)
 
4544
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
4545
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
4546
    # during glob expansion).  Even if it were fixed, the result of this
 
4547
    # check would be larger than it should be.
 
4548
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
4549
    ;;
 
4550
 
 
4551
  gnu*)
 
4552
    # Under GNU Hurd, this test is not required because there is
 
4553
    # no limit to the length of command line arguments.
 
4554
    # Libtool will interpret -1 as no limit whatsoever
 
4555
    lt_cv_sys_max_cmd_len=-1;
 
4556
    ;;
 
4557
 
 
4558
  cygwin* | mingw*)
 
4559
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
4560
    # about 5 minutes as the teststring grows exponentially.
 
4561
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
4562
    # you end up with a "frozen" computer, even though with patience
 
4563
    # the test eventually succeeds (with a max line length of 256k).
 
4564
    # Instead, let's just punt: use the minimum linelength reported by
 
4565
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
4566
    lt_cv_sys_max_cmd_len=8192;
 
4567
    ;;
 
4568
 
 
4569
  amigaos*)
 
4570
    # On AmigaOS with pdksh, this test takes hours, literally.
 
4571
    # So we just punt and use a minimum line length of 8192.
 
4572
    lt_cv_sys_max_cmd_len=8192;
 
4573
    ;;
 
4574
 
 
4575
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
4576
    # This has been around since 386BSD, at least.  Likely further.
 
4577
    if test -x /sbin/sysctl; then
 
4578
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
4579
    elif test -x /usr/sbin/sysctl; then
 
4580
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
4581
    else
 
4582
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
4583
    fi
 
4584
    # And add a safety zone
 
4585
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
4586
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
4587
    ;;
 
4588
 
 
4589
  interix*)
 
4590
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
4591
    lt_cv_sys_max_cmd_len=196608
 
4592
    ;;
 
4593
 
 
4594
  osf*)
 
4595
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
4596
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
4597
    # nice to cause kernel panics so lets avoid the loop below.
 
4598
    # First set a reasonable default.
 
4599
    lt_cv_sys_max_cmd_len=16384
 
4600
    #
 
4601
    if test -x /sbin/sysconfig; then
 
4602
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
4603
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
4604
      esac
 
4605
    fi
 
4606
    ;;
 
4607
  sco3.2v5*)
 
4608
    lt_cv_sys_max_cmd_len=102400
 
4609
    ;;
 
4610
  sysv5* | sco5v6* | sysv4.2uw2*)
 
4611
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
4612
    if test -n "$kargmax"; then
 
4613
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
4614
    else
 
4615
      lt_cv_sys_max_cmd_len=32768
 
4616
    fi
 
4617
    ;;
 
4618
  *)
 
4619
    # If test is not a shell built-in, we'll probably end up computing a
 
4620
    # maximum length that is only half of the actual maximum length, but
 
4621
    # we can't tell.
 
4622
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
4623
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
4624
               = "XX$teststring") >/dev/null 2>&1 &&
 
4625
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
4626
            lt_cv_sys_max_cmd_len=$new_result &&
 
4627
            test $i != 17 # 1/2 MB should be enough
 
4628
    do
 
4629
      i=`expr $i + 1`
 
4630
      teststring=$teststring$teststring
 
4631
    done
 
4632
    teststring=
 
4633
    # Add a significant safety factor because C++ compilers can tack on massive
 
4634
    # amounts of additional arguments before passing them to the linker.
 
4635
    # It appears as though 1/2 is a usable value.
 
4636
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
4637
    ;;
 
4638
  esac
 
4639
 
 
4640
fi
 
4641
 
 
4642
if test -n $lt_cv_sys_max_cmd_len ; then
 
4643
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
4644
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
4645
else
 
4646
  echo "$as_me:$LINENO: result: none" >&5
 
4647
echo "${ECHO_T}none" >&6
 
4648
fi
 
4649
 
 
4650
 
 
4651
 
 
4652
 
 
4653
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
4654
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
4655
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
4656
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
4657
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4658
else
 
4659
 
 
4660
# These are sane defaults that work on at least a few old systems.
 
4661
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
4662
 
 
4663
# Character class describing NM global symbol codes.
 
4664
symcode='[BCDEGRST]'
 
4665
 
 
4666
# Regexp to match symbols that can be accessed directly from C.
 
4667
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
4668
 
 
4669
# Transform an extracted symbol line into a proper C declaration
 
4670
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
4671
 
 
4672
# Transform an extracted symbol line into symbol name and symbol address
 
4673
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
4674
 
 
4675
# Define system-specific variables.
 
4676
case $host_os in
 
4677
aix*)
 
4678
  symcode='[BCDT]'
 
4679
  ;;
 
4680
cygwin* | mingw* | pw32*)
 
4681
  symcode='[ABCDGISTW]'
 
4682
  ;;
 
4683
hpux*) # Its linker distinguishes data from code symbols
 
4684
  if test "$host_cpu" = ia64; then
 
4685
    symcode='[ABCDEGRST]'
 
4686
  fi
 
4687
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4688
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
4689
  ;;
 
4690
linux*)
 
4691
  if test "$host_cpu" = ia64; then
 
4692
    symcode='[ABCDGIRSTW]'
 
4693
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
4694
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
4695
  fi
 
4696
  ;;
 
4697
irix* | nonstopux*)
 
4698
  symcode='[BCDEGRST]'
 
4699
  ;;
 
4700
osf*)
 
4701
  symcode='[BCDEGQRST]'
 
4702
  ;;
 
4703
solaris*)
 
4704
  symcode='[BDRT]'
 
4705
  ;;
 
4706
sco3.2v5*)
 
4707
  symcode='[DT]'
 
4708
  ;;
 
4709
sysv4.2uw2*)
 
4710
  symcode='[DT]'
 
4711
  ;;
 
4712
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
4713
  symcode='[ABDT]'
 
4714
  ;;
 
4715
sysv4)
 
4716
  symcode='[DFNSTU]'
 
4717
  ;;
 
4718
esac
 
4719
 
 
4720
# Handle CRLF in mingw tool chain
 
4721
opt_cr=
 
4722
case $build_os in
 
4723
mingw*)
 
4724
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
4725
  ;;
 
4726
esac
 
4727
 
 
4728
# If we're using GNU nm, then use its standard symbol codes.
 
4729
case `$NM -V 2>&1` in
 
4730
*GNU* | *'with BFD'*)
 
4731
  symcode='[ABCDGIRSTW]' ;;
 
4732
esac
 
4733
 
 
4734
# Try without a prefix undercore, then with it.
 
4735
for ac_symprfx in "" "_"; do
 
4736
 
 
4737
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
4738
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
4739
 
 
4740
  # Write the raw and C identifiers.
 
4741
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
4742
 
 
4743
  # Check to see that the pipe works correctly.
 
4744
  pipe_works=no
 
4745
 
 
4746
  rm -f conftest*
 
4747
  cat > conftest.$ac_ext <<EOF
 
4748
#ifdef __cplusplus
 
4749
extern "C" {
 
4750
#endif
 
4751
char nm_test_var;
 
4752
void nm_test_func(){}
 
4753
#ifdef __cplusplus
 
4754
}
 
4755
#endif
 
4756
int main(){nm_test_var='a';nm_test_func();return(0);}
 
4757
EOF
 
4758
 
 
4759
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4760
  (eval $ac_compile) 2>&5
 
4761
  ac_status=$?
 
4762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4763
  (exit $ac_status); }; then
 
4764
    # Now try to grab the symbols.
 
4765
    nlist=conftest.nm
 
4766
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
4767
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
4768
  ac_status=$?
 
4769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4770
  (exit $ac_status); } && test -s "$nlist"; then
 
4771
      # Try sorting and uniquifying the output.
 
4772
      if sort "$nlist" | uniq > "$nlist"T; then
 
4773
        mv -f "$nlist"T "$nlist"
 
4774
      else
 
4775
        rm -f "$nlist"T
 
4776
      fi
 
4777
 
 
4778
      # Make sure that we snagged all the symbols we need.
 
4779
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
4780
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
4781
          cat <<EOF > conftest.$ac_ext
 
4782
#ifdef __cplusplus
 
4783
extern "C" {
 
4784
#endif
 
4785
 
 
4786
EOF
 
4787
          # Now generate the symbol file.
 
4788
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
4789
 
 
4790
          cat <<EOF >> conftest.$ac_ext
 
4791
#if defined (__STDC__) && __STDC__
 
4792
# define lt_ptr_t void *
 
4793
#else
 
4794
# define lt_ptr_t char *
 
4795
# define const
 
4796
#endif
 
4797
 
 
4798
/* The mapping between symbol names and symbols. */
 
4799
const struct {
 
4800
  const char *name;
 
4801
  lt_ptr_t address;
 
4802
}
 
4803
lt_preloaded_symbols[] =
 
4804
{
 
4805
EOF
 
4806
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
4807
          cat <<\EOF >> conftest.$ac_ext
 
4808
  {0, (lt_ptr_t) 0}
 
4809
};
 
4810
 
 
4811
#ifdef __cplusplus
 
4812
}
 
4813
#endif
 
4814
EOF
 
4815
          # Now try linking the two files.
 
4816
          mv conftest.$ac_objext conftstm.$ac_objext
 
4817
          lt_save_LIBS="$LIBS"
 
4818
          lt_save_CFLAGS="$CFLAGS"
 
4819
          LIBS="conftstm.$ac_objext"
 
4820
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
4821
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4822
  (eval $ac_link) 2>&5
 
4823
  ac_status=$?
 
4824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4825
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
4826
            pipe_works=yes
 
4827
          fi
 
4828
          LIBS="$lt_save_LIBS"
 
4829
          CFLAGS="$lt_save_CFLAGS"
 
4830
        else
 
4831
          echo "cannot find nm_test_func in $nlist" >&5
 
4832
        fi
 
4833
      else
 
4834
        echo "cannot find nm_test_var in $nlist" >&5
 
4835
      fi
 
4836
    else
 
4837
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
4838
    fi
 
4839
  else
 
4840
    echo "$progname: failed program was:" >&5
 
4841
    cat conftest.$ac_ext >&5
 
4842
  fi
 
4843
  rm -f conftest* conftst*
 
4844
 
 
4845
  # Do not use the global_symbol_pipe unless it works.
 
4846
  if test "$pipe_works" = yes; then
 
4847
    break
 
4848
  else
 
4849
    lt_cv_sys_global_symbol_pipe=
 
4850
  fi
 
4851
done
 
4852
 
 
4853
fi
 
4854
 
 
4855
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
4856
  lt_cv_sys_global_symbol_to_cdecl=
 
4857
fi
 
4858
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
4859
  echo "$as_me:$LINENO: result: failed" >&5
 
4860
echo "${ECHO_T}failed" >&6
 
4861
else
 
4862
  echo "$as_me:$LINENO: result: ok" >&5
 
4863
echo "${ECHO_T}ok" >&6
 
4864
fi
 
4865
 
 
4866
echo "$as_me:$LINENO: checking for objdir" >&5
 
4867
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
4868
if test "${lt_cv_objdir+set}" = set; then
 
4869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4870
else
 
4871
  rm -f .libs 2>/dev/null
 
4872
mkdir .libs 2>/dev/null
 
4873
if test -d .libs; then
 
4874
  lt_cv_objdir=.libs
 
4875
else
 
4876
  # MS-DOS does not allow filenames that begin with a dot.
 
4877
  lt_cv_objdir=_libs
 
4878
fi
 
4879
rmdir .libs 2>/dev/null
 
4880
fi
 
4881
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
4882
echo "${ECHO_T}$lt_cv_objdir" >&6
 
4883
objdir=$lt_cv_objdir
 
4884
 
 
4885
 
 
4886
 
 
4887
 
 
4888
 
 
4889
case $host_os in
 
4890
aix3*)
 
4891
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
4892
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
4893
  # vanish in a puff of smoke.
 
4894
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
4895
    COLLECT_NAMES=
 
4896
    export COLLECT_NAMES
 
4897
  fi
 
4898
  ;;
 
4899
esac
 
4900
 
 
4901
# Sed substitution that helps us do robust quoting.  It backslashifies
 
4902
# metacharacters that are still active within double-quoted strings.
 
4903
Xsed='sed -e 1s/^X//'
 
4904
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
4905
 
 
4906
# Same as above, but do not quote variable references.
 
4907
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
4908
 
 
4909
# Sed substitution to delay expansion of an escaped shell variable in a
 
4910
# double_quote_subst'ed string.
 
4911
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
4912
 
 
4913
# Sed substitution to avoid accidental globbing in evaled expressions
 
4914
no_glob_subst='s/\*/\\\*/g'
 
4915
 
 
4916
# Constants:
 
4917
rm="rm -f"
 
4918
 
 
4919
# Global variables:
 
4920
default_ofile=libtool
 
4921
can_build_shared=yes
 
4922
 
 
4923
# All known linkers require a `.a' archive for static linking (except MSVC,
 
4924
# which needs '.lib').
 
4925
libext=a
 
4926
ltmain="$ac_aux_dir/ltmain.sh"
 
4927
ofile="$default_ofile"
 
4928
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
4929
 
 
4930
if test -n "$ac_tool_prefix"; then
 
4931
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
4932
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
4933
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4934
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4935
if test "${ac_cv_prog_AR+set}" = set; then
 
4936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4937
else
 
4938
  if test -n "$AR"; then
 
4939
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
4940
else
 
4941
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4942
for as_dir in $PATH
 
4943
do
 
4944
  IFS=$as_save_IFS
 
4945
  test -z "$as_dir" && as_dir=.
 
4946
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4947
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4948
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
4949
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4950
    break 2
 
4951
  fi
 
4952
done
 
4953
done
 
4954
 
 
4955
fi
 
4956
fi
 
4957
AR=$ac_cv_prog_AR
 
4958
if test -n "$AR"; then
 
4959
  echo "$as_me:$LINENO: result: $AR" >&5
 
4960
echo "${ECHO_T}$AR" >&6
 
4961
else
 
4962
  echo "$as_me:$LINENO: result: no" >&5
 
4963
echo "${ECHO_T}no" >&6
 
4964
fi
 
4965
 
 
4966
fi
 
4967
if test -z "$ac_cv_prog_AR"; then
 
4968
  ac_ct_AR=$AR
 
4969
  # Extract the first word of "ar", so it can be a program name with args.
 
4970
set dummy ar; ac_word=$2
 
4971
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4972
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4973
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
4974
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4975
else
 
4976
  if test -n "$ac_ct_AR"; then
 
4977
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
4978
else
 
4979
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4980
for as_dir in $PATH
 
4981
do
 
4982
  IFS=$as_save_IFS
 
4983
  test -z "$as_dir" && as_dir=.
 
4984
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4985
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4986
    ac_cv_prog_ac_ct_AR="ar"
 
4987
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4988
    break 2
 
4989
  fi
 
4990
done
 
4991
done
 
4992
 
 
4993
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
4994
fi
 
4995
fi
 
4996
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
4997
if test -n "$ac_ct_AR"; then
 
4998
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
4999
echo "${ECHO_T}$ac_ct_AR" >&6
 
5000
else
 
5001
  echo "$as_me:$LINENO: result: no" >&5
 
5002
echo "${ECHO_T}no" >&6
 
5003
fi
 
5004
 
 
5005
  AR=$ac_ct_AR
 
5006
else
 
5007
  AR="$ac_cv_prog_AR"
 
5008
fi
 
5009
 
 
5010
if test -n "$ac_tool_prefix"; then
 
5011
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5012
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5013
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5014
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5015
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5016
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5017
else
 
5018
  if test -n "$RANLIB"; then
 
5019
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5020
else
 
5021
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5022
for as_dir in $PATH
 
5023
do
 
5024
  IFS=$as_save_IFS
 
5025
  test -z "$as_dir" && as_dir=.
 
5026
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5027
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5028
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5029
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5030
    break 2
 
5031
  fi
 
5032
done
 
5033
done
 
5034
 
 
5035
fi
 
5036
fi
 
5037
RANLIB=$ac_cv_prog_RANLIB
 
5038
if test -n "$RANLIB"; then
 
5039
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5040
echo "${ECHO_T}$RANLIB" >&6
 
5041
else
 
5042
  echo "$as_me:$LINENO: result: no" >&5
 
5043
echo "${ECHO_T}no" >&6
 
5044
fi
 
5045
 
 
5046
fi
 
5047
if test -z "$ac_cv_prog_RANLIB"; then
 
5048
  ac_ct_RANLIB=$RANLIB
 
5049
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5050
set dummy ranlib; ac_word=$2
 
5051
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5052
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5053
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5054
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5055
else
 
5056
  if test -n "$ac_ct_RANLIB"; then
 
5057
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5058
else
 
5059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5060
for as_dir in $PATH
 
5061
do
 
5062
  IFS=$as_save_IFS
 
5063
  test -z "$as_dir" && as_dir=.
 
5064
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5065
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5066
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5067
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5068
    break 2
 
5069
  fi
 
5070
done
 
5071
done
 
5072
 
 
5073
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5074
fi
 
5075
fi
 
5076
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5077
if test -n "$ac_ct_RANLIB"; then
 
5078
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5079
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5080
else
 
5081
  echo "$as_me:$LINENO: result: no" >&5
 
5082
echo "${ECHO_T}no" >&6
 
5083
fi
 
5084
 
 
5085
  RANLIB=$ac_ct_RANLIB
 
5086
else
 
5087
  RANLIB="$ac_cv_prog_RANLIB"
 
5088
fi
 
5089
 
 
5090
if test -n "$ac_tool_prefix"; then
 
5091
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
5092
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
5093
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5094
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5095
if test "${ac_cv_prog_STRIP+set}" = set; then
 
5096
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5097
else
 
5098
  if test -n "$STRIP"; then
 
5099
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
5100
else
 
5101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5102
for as_dir in $PATH
 
5103
do
 
5104
  IFS=$as_save_IFS
 
5105
  test -z "$as_dir" && as_dir=.
 
5106
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5107
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5108
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
5109
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5110
    break 2
 
5111
  fi
 
5112
done
 
5113
done
 
5114
 
 
5115
fi
 
5116
fi
 
5117
STRIP=$ac_cv_prog_STRIP
 
5118
if test -n "$STRIP"; then
 
5119
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
5120
echo "${ECHO_T}$STRIP" >&6
 
5121
else
 
5122
  echo "$as_me:$LINENO: result: no" >&5
 
5123
echo "${ECHO_T}no" >&6
 
5124
fi
 
5125
 
 
5126
fi
 
5127
if test -z "$ac_cv_prog_STRIP"; then
 
5128
  ac_ct_STRIP=$STRIP
 
5129
  # Extract the first word of "strip", so it can be a program name with args.
 
5130
set dummy strip; ac_word=$2
 
5131
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5132
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5133
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
5134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5135
else
 
5136
  if test -n "$ac_ct_STRIP"; then
 
5137
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
5138
else
 
5139
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5140
for as_dir in $PATH
 
5141
do
 
5142
  IFS=$as_save_IFS
 
5143
  test -z "$as_dir" && as_dir=.
 
5144
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5145
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5146
    ac_cv_prog_ac_ct_STRIP="strip"
 
5147
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5148
    break 2
 
5149
  fi
 
5150
done
 
5151
done
 
5152
 
 
5153
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
5154
fi
 
5155
fi
 
5156
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
5157
if test -n "$ac_ct_STRIP"; then
 
5158
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5159
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
5160
else
 
5161
  echo "$as_me:$LINENO: result: no" >&5
 
5162
echo "${ECHO_T}no" >&6
 
5163
fi
 
5164
 
 
5165
  STRIP=$ac_ct_STRIP
 
5166
else
 
5167
  STRIP="$ac_cv_prog_STRIP"
 
5168
fi
 
5169
 
 
5170
 
 
5171
old_CC="$CC"
 
5172
old_CFLAGS="$CFLAGS"
 
5173
 
 
5174
# Set sane defaults for various variables
 
5175
test -z "$AR" && AR=ar
 
5176
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
5177
test -z "$AS" && AS=as
 
5178
test -z "$CC" && CC=cc
 
5179
test -z "$LTCC" && LTCC=$CC
 
5180
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
5181
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5182
test -z "$LD" && LD=ld
 
5183
test -z "$LN_S" && LN_S="ln -s"
 
5184
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
5185
test -z "$NM" && NM=nm
 
5186
test -z "$SED" && SED=sed
 
5187
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5188
test -z "$RANLIB" && RANLIB=:
 
5189
test -z "$STRIP" && STRIP=:
 
5190
test -z "$ac_objext" && ac_objext=o
 
5191
 
 
5192
# Determine commands to create old-style static archives.
 
5193
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
5194
old_postinstall_cmds='chmod 644 $oldlib'
 
5195
old_postuninstall_cmds=
 
5196
 
 
5197
if test -n "$RANLIB"; then
 
5198
  case $host_os in
 
5199
  openbsd*)
 
5200
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5201
    ;;
 
5202
  *)
 
5203
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5204
    ;;
 
5205
  esac
 
5206
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
5207
fi
 
5208
 
 
5209
for cc_temp in $compiler""; do
 
5210
  case $cc_temp in
 
5211
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
5212
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
5213
    \-*) ;;
 
5214
    *) break;;
 
5215
  esac
 
5216
done
 
5217
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
5218
 
 
5219
 
 
5220
# Only perform the check for file, if the check method requires it
 
5221
case $deplibs_check_method in
 
5222
file_magic*)
 
5223
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
5224
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
5225
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
5226
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5227
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5228
else
 
5229
  case $MAGIC_CMD in
 
5230
[\\/*] |  ?:[\\/]*)
 
5231
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5232
  ;;
 
5233
*)
 
5234
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5235
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5236
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5237
  for ac_dir in $ac_dummy; do
 
5238
    IFS="$lt_save_ifs"
 
5239
    test -z "$ac_dir" && ac_dir=.
 
5240
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
5241
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
5242
      if test -n "$file_magic_test_file"; then
 
5243
        case $deplibs_check_method in
 
5244
        "file_magic "*)
 
5245
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
5246
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5247
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5248
            $EGREP "$file_magic_regex" > /dev/null; then
 
5249
            :
 
5250
          else
 
5251
            cat <<EOF 1>&2
 
5252
 
 
5253
*** Warning: the command libtool uses to detect shared libraries,
 
5254
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5255
*** The result is that libtool may fail to recognize shared libraries
 
5256
*** as such.  This will affect the creation of libtool libraries that
 
5257
*** depend on shared libraries, but programs linked with such libtool
 
5258
*** libraries will work regardless of this problem.  Nevertheless, you
 
5259
*** may want to report the problem to your system manager and/or to
 
5260
*** bug-libtool@gnu.org
 
5261
 
 
5262
EOF
 
5263
          fi ;;
 
5264
        esac
 
5265
      fi
 
5266
      break
 
5267
    fi
 
5268
  done
 
5269
  IFS="$lt_save_ifs"
 
5270
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5271
  ;;
 
5272
esac
 
5273
fi
 
5274
 
 
5275
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5276
if test -n "$MAGIC_CMD"; then
 
5277
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5278
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5279
else
 
5280
  echo "$as_me:$LINENO: result: no" >&5
 
5281
echo "${ECHO_T}no" >&6
 
5282
fi
 
5283
 
 
5284
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
5285
  if test -n "$ac_tool_prefix"; then
 
5286
    echo "$as_me:$LINENO: checking for file" >&5
 
5287
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
5288
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5290
else
 
5291
  case $MAGIC_CMD in
 
5292
[\\/*] |  ?:[\\/]*)
 
5293
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5294
  ;;
 
5295
*)
 
5296
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
5297
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5298
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
5299
  for ac_dir in $ac_dummy; do
 
5300
    IFS="$lt_save_ifs"
 
5301
    test -z "$ac_dir" && ac_dir=.
 
5302
    if test -f $ac_dir/file; then
 
5303
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
5304
      if test -n "$file_magic_test_file"; then
 
5305
        case $deplibs_check_method in
 
5306
        "file_magic "*)
 
5307
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
5308
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5309
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5310
            $EGREP "$file_magic_regex" > /dev/null; then
 
5311
            :
 
5312
          else
 
5313
            cat <<EOF 1>&2
 
5314
 
 
5315
*** Warning: the command libtool uses to detect shared libraries,
 
5316
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5317
*** The result is that libtool may fail to recognize shared libraries
 
5318
*** as such.  This will affect the creation of libtool libraries that
 
5319
*** depend on shared libraries, but programs linked with such libtool
 
5320
*** libraries will work regardless of this problem.  Nevertheless, you
 
5321
*** may want to report the problem to your system manager and/or to
 
5322
*** bug-libtool@gnu.org
 
5323
 
 
5324
EOF
 
5325
          fi ;;
 
5326
        esac
 
5327
      fi
 
5328
      break
 
5329
    fi
 
5330
  done
 
5331
  IFS="$lt_save_ifs"
 
5332
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
5333
  ;;
 
5334
esac
 
5335
fi
 
5336
 
 
5337
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5338
if test -n "$MAGIC_CMD"; then
 
5339
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5340
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5341
else
 
5342
  echo "$as_me:$LINENO: result: no" >&5
 
5343
echo "${ECHO_T}no" >&6
 
5344
fi
 
5345
 
 
5346
  else
 
5347
    MAGIC_CMD=:
 
5348
  fi
 
5349
fi
 
5350
 
 
5351
  fi
 
5352
  ;;
 
5353
esac
 
5354
 
 
5355
enable_dlopen=no
 
5356
enable_win32_dll=no
 
5357
 
 
5358
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5359
if test "${enable_libtool_lock+set}" = set; then
 
5360
  enableval="$enable_libtool_lock"
 
5361
 
 
5362
fi;
 
5363
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5364
 
 
5365
 
 
5366
# Check whether --with-pic or --without-pic was given.
 
5367
if test "${with_pic+set}" = set; then
 
5368
  withval="$with_pic"
 
5369
  pic_mode="$withval"
 
5370
else
 
5371
  pic_mode=default
 
5372
fi;
 
5373
test -z "$pic_mode" && pic_mode=default
 
5374
 
 
5375
# Use C for the default configuration in the libtool script
 
5376
tagname=
 
5377
lt_save_CC="$CC"
 
5378
ac_ext=c
 
5379
ac_cpp='$CPP $CPPFLAGS'
 
5380
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5381
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5382
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5383
 
 
5384
 
 
5385
# Source file extension for C test sources.
 
5386
ac_ext=c
 
5387
 
 
5388
# Object file extension for compiled C test sources.
 
5389
objext=o
 
5390
objext=$objext
 
5391
 
 
5392
# Code to be used in simple compile tests
 
5393
lt_simple_compile_test_code="int some_variable = 0;\n"
 
5394
 
 
5395
# Code to be used in simple link tests
 
5396
lt_simple_link_test_code='int main(){return(0);}\n'
 
5397
 
 
5398
 
 
5399
# If no C compiler was specified, use CC.
 
5400
LTCC=${LTCC-"$CC"}
 
5401
 
 
5402
# If no C compiler flags were specified, use CFLAGS.
 
5403
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5404
 
 
5405
# Allow CC to be a program name with arguments.
 
5406
compiler=$CC
 
5407
 
 
5408
 
 
5409
# save warnings/boilerplate of simple test code
 
5410
ac_outfile=conftest.$ac_objext
 
5411
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
5412
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
5413
_lt_compiler_boilerplate=`cat conftest.err`
 
5414
$rm conftest*
 
5415
 
 
5416
ac_outfile=conftest.$ac_objext
 
5417
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
5418
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
5419
_lt_linker_boilerplate=`cat conftest.err`
 
5420
$rm conftest*
 
5421
 
 
5422
 
 
5423
 
 
5424
lt_prog_compiler_no_builtin_flag=
 
5425
 
 
5426
if test "$GCC" = yes; then
 
5427
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
5428
 
 
5429
 
 
5430
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
5431
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
5432
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
5433
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5434
else
 
5435
  lt_cv_prog_compiler_rtti_exceptions=no
 
5436
  ac_outfile=conftest.$ac_objext
 
5437
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5438
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
5439
   # Insert the option either (1) after the last *FLAGS variable, or
 
5440
   # (2) before a word containing "conftest.", or (3) at the end.
 
5441
   # Note that $ac_compile itself does not contain backslashes and begins
 
5442
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5443
   # The option is referenced via a variable to avoid confusing sed.
 
5444
   lt_compile=`echo "$ac_compile" | $SED \
 
5445
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
5446
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5447
   -e 's:$: $lt_compiler_flag:'`
 
5448
   (eval echo "\"\$as_me:5448: $lt_compile\"" >&5)
 
5449
   (eval "$lt_compile" 2>conftest.err)
 
5450
   ac_status=$?
 
5451
   cat conftest.err >&5
 
5452
   echo "$as_me:5452: \$? = $ac_status" >&5
 
5453
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
5454
     # The compiler can only warn and ignore the option if not recognized
 
5455
     # So say no if there are warnings other than the usual output.
 
5456
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
5457
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
5458
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
5459
       lt_cv_prog_compiler_rtti_exceptions=yes
 
5460
     fi
 
5461
   fi
 
5462
   $rm conftest*
 
5463
 
 
5464
fi
 
5465
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
5466
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
5467
 
 
5468
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
5469
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
5470
else
 
5471
    :
 
5472
fi
 
5473
 
 
5474
fi
 
5475
 
 
5476
lt_prog_compiler_wl=
 
5477
lt_prog_compiler_pic=
 
5478
lt_prog_compiler_static=
 
5479
 
 
5480
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
5481
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
5482
 
 
5483
  if test "$GCC" = yes; then
 
5484
    lt_prog_compiler_wl='-Wl,'
 
5485
    lt_prog_compiler_static='-static'
 
5486
 
 
5487
    case $host_os in
 
5488
      aix*)
 
5489
      # All AIX code is PIC.
 
5490
      if test "$host_cpu" = ia64; then
 
5491
        # AIX 5 now supports IA64 processor
 
5492
        lt_prog_compiler_static='-Bstatic'
 
5493
      fi
 
5494
      ;;
 
5495
 
 
5496
    amigaos*)
 
5497
      # FIXME: we need at least 68020 code to build shared libraries, but
 
5498
      # adding the `-m68020' flag to GCC prevents building anything better,
 
5499
      # like `-m68040'.
 
5500
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
5501
      ;;
 
5502
 
 
5503
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
5504
      # PIC is the default for these OSes.
 
5505
      ;;
 
5506
 
 
5507
    mingw* | pw32* | os2*)
 
5508
      # This hack is so that the source file can tell whether it is being
 
5509
      # built for inclusion in a dll (and should export symbols for example).
 
5510
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
5511
      ;;
 
5512
 
 
5513
    darwin* | rhapsody*)
 
5514
      # PIC is the default on this platform
 
5515
      # Common symbols not allowed in MH_DYLIB files
 
5516
      lt_prog_compiler_pic='-fno-common'
 
5517
      ;;
 
5518
 
 
5519
    interix3*)
 
5520
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
5521
      # Instead, we relocate shared libraries at runtime.
 
5522
      ;;
 
5523
 
 
5524
    msdosdjgpp*)
 
5525
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
5526
      # on systems that don't support them.
 
5527
      lt_prog_compiler_can_build_shared=no
 
5528
      enable_shared=no
 
5529
      ;;
 
5530
 
 
5531
    sysv4*MP*)
 
5532
      if test -d /usr/nec; then
 
5533
        lt_prog_compiler_pic=-Kconform_pic
 
5534
      fi
 
5535
      ;;
 
5536
 
 
5537
    hpux*)
 
5538
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5539
      # not for PA HP-UX.
 
5540
      case $host_cpu in
 
5541
      hppa*64*|ia64*)
 
5542
        # +Z the default
 
5543
        ;;
 
5544
      *)
 
5545
        lt_prog_compiler_pic='-fPIC'
 
5546
        ;;
 
5547
      esac
 
5548
      ;;
 
5549
 
 
5550
    *)
 
5551
      lt_prog_compiler_pic='-fPIC'
 
5552
      ;;
 
5553
    esac
 
5554
  else
 
5555
    # PORTME Check for flag to pass linker flags through the system compiler.
 
5556
    case $host_os in
 
5557
    aix*)
 
5558
      lt_prog_compiler_wl='-Wl,'
 
5559
      if test "$host_cpu" = ia64; then
 
5560
        # AIX 5 now supports IA64 processor
 
5561
        lt_prog_compiler_static='-Bstatic'
 
5562
      else
 
5563
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
5564
      fi
 
5565
      ;;
 
5566
      darwin*)
 
5567
        # PIC is the default on this platform
 
5568
        # Common symbols not allowed in MH_DYLIB files
 
5569
       case $cc_basename in
 
5570
         xlc*)
 
5571
         lt_prog_compiler_pic='-qnocommon'
 
5572
         lt_prog_compiler_wl='-Wl,'
 
5573
         ;;
 
5574
       esac
 
5575
       ;;
 
5576
 
 
5577
    mingw* | pw32* | os2*)
 
5578
      # This hack is so that the source file can tell whether it is being
 
5579
      # built for inclusion in a dll (and should export symbols for example).
 
5580
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
5581
      ;;
 
5582
 
 
5583
    hpux9* | hpux10* | hpux11*)
 
5584
      lt_prog_compiler_wl='-Wl,'
 
5585
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
5586
      # not for PA HP-UX.
 
5587
      case $host_cpu in
 
5588
      hppa*64*|ia64*)
 
5589
        # +Z the default
 
5590
        ;;
 
5591
      *)
 
5592
        lt_prog_compiler_pic='+Z'
 
5593
        ;;
 
5594
      esac
 
5595
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
5596
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
5597
      ;;
 
5598
 
 
5599
    irix5* | irix6* | nonstopux*)
 
5600
      lt_prog_compiler_wl='-Wl,'
 
5601
      # PIC (with -KPIC) is the default.
 
5602
      lt_prog_compiler_static='-non_shared'
 
5603
      ;;
 
5604
 
 
5605
    newsos6)
 
5606
      lt_prog_compiler_pic='-KPIC'
 
5607
      lt_prog_compiler_static='-Bstatic'
 
5608
      ;;
 
5609
 
 
5610
    linux*)
 
5611
      case $cc_basename in
 
5612
      icc* | ecc*)
 
5613
        lt_prog_compiler_wl='-Wl,'
 
5614
        lt_prog_compiler_pic='-KPIC'
 
5615
        lt_prog_compiler_static='-static'
 
5616
        ;;
 
5617
      pgcc* | pgf77* | pgf90* | pgf95*)
 
5618
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
5619
        # which looks to be a dead project)
 
5620
        lt_prog_compiler_wl='-Wl,'
 
5621
        lt_prog_compiler_pic='-fpic'
 
5622
        lt_prog_compiler_static='-Bstatic'
 
5623
        ;;
 
5624
      ccc*)
 
5625
        lt_prog_compiler_wl='-Wl,'
 
5626
        # All Alpha code is PIC.
 
5627
        lt_prog_compiler_static='-non_shared'
 
5628
        ;;
 
5629
      esac
 
5630
      ;;
 
5631
 
 
5632
    osf3* | osf4* | osf5*)
 
5633
      lt_prog_compiler_wl='-Wl,'
 
5634
      # All OSF/1 code is PIC.
 
5635
      lt_prog_compiler_static='-non_shared'
 
5636
      ;;
 
5637
 
 
5638
    solaris*)
 
5639
      lt_prog_compiler_pic='-KPIC'
 
5640
      lt_prog_compiler_static='-Bstatic'
 
5641
      case $cc_basename in
 
5642
      f77* | f90* | f95*)
 
5643
        lt_prog_compiler_wl='-Qoption ld ';;
 
5644
      *)
 
5645
        lt_prog_compiler_wl='-Wl,';;
 
5646
      esac
 
5647
      ;;
 
5648
 
 
5649
    sunos4*)
 
5650
      lt_prog_compiler_wl='-Qoption ld '
 
5651
      lt_prog_compiler_pic='-PIC'
 
5652
      lt_prog_compiler_static='-Bstatic'
 
5653
      ;;
 
5654
 
 
5655
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
5656
      lt_prog_compiler_wl='-Wl,'
 
5657
      lt_prog_compiler_pic='-KPIC'
 
5658
      lt_prog_compiler_static='-Bstatic'
 
5659
      ;;
 
5660
 
 
5661
    sysv4*MP*)
 
5662
      if test -d /usr/nec ;then
 
5663
        lt_prog_compiler_pic='-Kconform_pic'
 
5664
        lt_prog_compiler_static='-Bstatic'
 
5665
      fi
 
5666
      ;;
 
5667
 
 
5668
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
5669
      lt_prog_compiler_wl='-Wl,'
 
5670
      lt_prog_compiler_pic='-KPIC'
 
5671
      lt_prog_compiler_static='-Bstatic'
 
5672
      ;;
 
5673
 
 
5674
    unicos*)
 
5675
      lt_prog_compiler_wl='-Wl,'
 
5676
      lt_prog_compiler_can_build_shared=no
 
5677
      ;;
 
5678
 
 
5679
    uts4*)
 
5680
      lt_prog_compiler_pic='-pic'
 
5681
      lt_prog_compiler_static='-Bstatic'
 
5682
      ;;
 
5683
 
 
5684
    *)
 
5685
      lt_prog_compiler_can_build_shared=no
 
5686
      ;;
 
5687
    esac
 
5688
  fi
 
5689
 
 
5690
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
5691
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
5692
 
 
5693
#
 
5694
# Check to make sure the PIC flag actually works.
 
5695
#
 
5696
if test -n "$lt_prog_compiler_pic"; then
 
5697
 
 
5698
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
5699
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
5700
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
5701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5702
else
 
5703
  lt_prog_compiler_pic_works=no
 
5704
  ac_outfile=conftest.$ac_objext
 
5705
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5706
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
5707
   # Insert the option either (1) after the last *FLAGS variable, or
 
5708
   # (2) before a word containing "conftest.", or (3) at the end.
 
5709
   # Note that $ac_compile itself does not contain backslashes and begins
 
5710
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5711
   # The option is referenced via a variable to avoid confusing sed.
 
5712
   lt_compile=`echo "$ac_compile" | $SED \
 
5713
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
5714
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5715
   -e 's:$: $lt_compiler_flag:'`
 
5716
   (eval echo "\"\$as_me:5716: $lt_compile\"" >&5)
 
5717
   (eval "$lt_compile" 2>conftest.err)
 
5718
   ac_status=$?
 
5719
   cat conftest.err >&5
 
5720
   echo "$as_me:5720: \$? = $ac_status" >&5
 
5721
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
5722
     # The compiler can only warn and ignore the option if not recognized
 
5723
     # So say no if there are warnings other than the usual output.
 
5724
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
5725
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
5726
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
5727
       lt_prog_compiler_pic_works=yes
 
5728
     fi
 
5729
   fi
 
5730
   $rm conftest*
 
5731
 
 
5732
fi
 
5733
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
5734
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
5735
 
 
5736
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
5737
    case $lt_prog_compiler_pic in
 
5738
     "" | " "*) ;;
 
5739
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
5740
     esac
 
5741
else
 
5742
    lt_prog_compiler_pic=
 
5743
     lt_prog_compiler_can_build_shared=no
 
5744
fi
 
5745
 
 
5746
fi
 
5747
case $host_os in
 
5748
  # For platforms which do not support PIC, -DPIC is meaningless:
 
5749
  *djgpp*)
 
5750
    lt_prog_compiler_pic=
 
5751
    ;;
 
5752
  *)
 
5753
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
5754
    ;;
 
5755
esac
 
5756
 
 
5757
#
 
5758
# Check to make sure the static flag actually works.
 
5759
#
 
5760
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
5761
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
5762
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
5763
if test "${lt_prog_compiler_static_works+set}" = set; then
 
5764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5765
else
 
5766
  lt_prog_compiler_static_works=no
 
5767
   save_LDFLAGS="$LDFLAGS"
 
5768
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
5769
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
5770
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
5771
     # The linker can only warn and ignore the option if not recognized
 
5772
     # So say no if there are warnings
 
5773
     if test -s conftest.err; then
 
5774
       # Append any errors to the config.log.
 
5775
       cat conftest.err 1>&5
 
5776
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
5777
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
5778
       if diff conftest.exp conftest.er2 >/dev/null; then
 
5779
         lt_prog_compiler_static_works=yes
 
5780
       fi
 
5781
     else
 
5782
       lt_prog_compiler_static_works=yes
 
5783
     fi
 
5784
   fi
 
5785
   $rm conftest*
 
5786
   LDFLAGS="$save_LDFLAGS"
 
5787
 
 
5788
fi
 
5789
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
5790
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
5791
 
 
5792
if test x"$lt_prog_compiler_static_works" = xyes; then
 
5793
    :
 
5794
else
 
5795
    lt_prog_compiler_static=
 
5796
fi
 
5797
 
 
5798
 
 
5799
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
5800
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
5801
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
5802
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5803
else
 
5804
  lt_cv_prog_compiler_c_o=no
 
5805
   $rm -r conftest 2>/dev/null
 
5806
   mkdir conftest
 
5807
   cd conftest
 
5808
   mkdir out
 
5809
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
5810
 
 
5811
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
5812
   # Insert the option either (1) after the last *FLAGS variable, or
 
5813
   # (2) before a word containing "conftest.", or (3) at the end.
 
5814
   # Note that $ac_compile itself does not contain backslashes and begins
 
5815
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
5816
   lt_compile=`echo "$ac_compile" | $SED \
 
5817
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
5818
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
5819
   -e 's:$: $lt_compiler_flag:'`
 
5820
   (eval echo "\"\$as_me:5820: $lt_compile\"" >&5)
 
5821
   (eval "$lt_compile" 2>out/conftest.err)
 
5822
   ac_status=$?
 
5823
   cat out/conftest.err >&5
 
5824
   echo "$as_me:5824: \$? = $ac_status" >&5
 
5825
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
5826
   then
 
5827
     # The compiler can only warn and ignore the option if not recognized
 
5828
     # So say no if there are warnings
 
5829
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
5830
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
5831
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
5832
       lt_cv_prog_compiler_c_o=yes
 
5833
     fi
 
5834
   fi
 
5835
   chmod u+w . 2>&5
 
5836
   $rm conftest*
 
5837
   # SGI C++ compiler will create directory out/ii_files/ for
 
5838
   # template instantiation
 
5839
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
5840
   $rm out/* && rmdir out
 
5841
   cd ..
 
5842
   rmdir conftest
 
5843
   $rm conftest*
 
5844
 
 
5845
fi
 
5846
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
5847
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
5848
 
 
5849
 
 
5850
hard_links="nottested"
 
5851
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
5852
  # do not overwrite the value of need_locks provided by the user
 
5853
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
5854
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
5855
  hard_links=yes
 
5856
  $rm conftest*
 
5857
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
5858
  touch conftest.a
 
5859
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
5860
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
5861
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
5862
echo "${ECHO_T}$hard_links" >&6
 
5863
  if test "$hard_links" = no; then
 
5864
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
5865
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
5866
    need_locks=warn
 
5867
  fi
 
5868
else
 
5869
  need_locks=no
 
5870
fi
 
5871
 
 
5872
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
5873
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
5874
 
 
5875
  runpath_var=
 
5876
  allow_undefined_flag=
 
5877
  enable_shared_with_static_runtimes=no
 
5878
  archive_cmds=
 
5879
  archive_expsym_cmds=
 
5880
  old_archive_From_new_cmds=
 
5881
  old_archive_from_expsyms_cmds=
 
5882
  export_dynamic_flag_spec=
 
5883
  whole_archive_flag_spec=
 
5884
  thread_safe_flag_spec=
 
5885
  hardcode_libdir_flag_spec=
 
5886
  hardcode_libdir_flag_spec_ld=
 
5887
  hardcode_libdir_separator=
 
5888
  hardcode_direct=no
 
5889
  hardcode_minus_L=no
 
5890
  hardcode_shlibpath_var=unsupported
 
5891
  link_all_deplibs=unknown
 
5892
  hardcode_automatic=no
 
5893
  module_cmds=
 
5894
  module_expsym_cmds=
 
5895
  always_export_symbols=no
 
5896
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
5897
  # include_expsyms should be a list of space-separated symbols to be *always*
 
5898
  # included in the symbol list
 
5899
  include_expsyms=
 
5900
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
5901
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
5902
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
5903
  # as well as any symbol that contains `d'.
 
5904
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
5905
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
5906
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
5907
  # the symbol is explicitly referenced.  Since portable code cannot
 
5908
  # rely on this symbol name, it's probably fine to never include it in
 
5909
  # preloaded symbol tables.
 
5910
  extract_expsyms_cmds=
 
5911
  # Just being paranoid about ensuring that cc_basename is set.
 
5912
  for cc_temp in $compiler""; do
 
5913
  case $cc_temp in
 
5914
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
5915
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
5916
    \-*) ;;
 
5917
    *) break;;
 
5918
  esac
 
5919
done
 
5920
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
5921
 
 
5922
  case $host_os in
 
5923
  cygwin* | mingw* | pw32*)
 
5924
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
5925
    # When not using gcc, we currently assume that we are using
 
5926
    # Microsoft Visual C++.
 
5927
    if test "$GCC" != yes; then
 
5928
      with_gnu_ld=no
 
5929
    fi
 
5930
    ;;
 
5931
  interix*)
 
5932
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
5933
    with_gnu_ld=yes
 
5934
    ;;
 
5935
  openbsd*)
 
5936
    with_gnu_ld=no
 
5937
    ;;
 
5938
  esac
 
5939
 
 
5940
  ld_shlibs=yes
 
5941
  if test "$with_gnu_ld" = yes; then
 
5942
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
5943
    wlarc='${wl}'
 
5944
 
 
5945
    # Set some defaults for GNU ld with shared library support. These
 
5946
    # are reset later if shared libraries are not supported. Putting them
 
5947
    # here allows them to be overridden if necessary.
 
5948
    runpath_var=LD_RUN_PATH
 
5949
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
5950
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
5951
    # ancient GNU ld didn't support --whole-archive et. al.
 
5952
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
5953
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
5954
      else
 
5955
        whole_archive_flag_spec=
 
5956
    fi
 
5957
    supports_anon_versioning=no
 
5958
    case `$LD -v 2>/dev/null` in
 
5959
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
5960
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
5961
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
5962
      *\ 2.11.*) ;; # other 2.11 versions
 
5963
      *) supports_anon_versioning=yes ;;
 
5964
    esac
 
5965
 
 
5966
    # See if GNU ld supports shared libraries.
 
5967
    case $host_os in
 
5968
    aix3* | aix4* | aix5*)
 
5969
      # On AIX/PPC, the GNU linker is very broken
 
5970
      if test "$host_cpu" != ia64; then
 
5971
        ld_shlibs=no
 
5972
        cat <<EOF 1>&2
 
5973
 
 
5974
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
5975
*** to be unable to reliably create shared libraries on AIX.
 
5976
*** Therefore, libtool is disabling shared libraries support.  If you
 
5977
*** really care for shared libraries, you may want to modify your PATH
 
5978
*** so that a non-GNU linker is found, and then restart.
 
5979
 
 
5980
EOF
 
5981
      fi
 
5982
      ;;
 
5983
 
 
5984
    amigaos*)
 
5985
      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)'
 
5986
      hardcode_libdir_flag_spec='-L$libdir'
 
5987
      hardcode_minus_L=yes
 
5988
 
 
5989
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
5990
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
5991
      # to version 4, is to share data among multiple programs linked
 
5992
      # with the same dynamic library.  Since this doesn't match the
 
5993
      # behavior of shared libraries on other platforms, we can't use
 
5994
      # them.
 
5995
      ld_shlibs=no
 
5996
      ;;
 
5997
 
 
5998
    beos*)
 
5999
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6000
        allow_undefined_flag=unsupported
 
6001
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6002
        # support --undefined.  This deserves some investigation.  FIXME
 
6003
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6004
      else
 
6005
        ld_shlibs=no
 
6006
      fi
 
6007
      ;;
 
6008
 
 
6009
    cygwin* | mingw* | pw32*)
 
6010
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6011
      # as there is no search path for DLLs.
 
6012
      hardcode_libdir_flag_spec='-L$libdir'
 
6013
      allow_undefined_flag=unsupported
 
6014
      always_export_symbols=no
 
6015
      enable_shared_with_static_runtimes=yes
 
6016
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6017
 
 
6018
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6019
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6020
        # If the export-symbols file already is a .def file (1st line
 
6021
        # is EXPORTS), use it as is; otherwise, prepend...
 
6022
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6023
          cp $export_symbols $output_objdir/$soname.def;
 
6024
        else
 
6025
          echo EXPORTS > $output_objdir/$soname.def;
 
6026
          cat $export_symbols >> $output_objdir/$soname.def;
 
6027
        fi~
 
6028
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6029
      else
 
6030
        ld_shlibs=no
 
6031
      fi
 
6032
      ;;
 
6033
 
 
6034
    interix3*)
 
6035
      hardcode_direct=no
 
6036
      hardcode_shlibpath_var=no
 
6037
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6038
      export_dynamic_flag_spec='${wl}-E'
 
6039
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
6040
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
6041
      # default) and relocated if they conflict, which is a slow very memory
 
6042
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
6043
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
6044
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
6045
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
6046
      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'
 
6047
      ;;
 
6048
 
 
6049
    linux*)
 
6050
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6051
        tmp_addflag=
 
6052
        case $cc_basename,$host_cpu in
 
6053
        pgcc*)                          # Portland Group C compiler
 
6054
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6055
          tmp_addflag=' $pic_flag'
 
6056
          ;;
 
6057
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6058
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6059
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6060
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6061
          tmp_addflag=' -i_dynamic' ;;
 
6062
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6063
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
6064
        ifc* | ifort*)                  # Intel Fortran compiler
 
6065
          tmp_addflag=' -nofor_main' ;;
 
6066
        esac
 
6067
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6068
 
 
6069
        if test $supports_anon_versioning = yes; then
 
6070
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
6071
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
6072
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
6073
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
6074
        fi
 
6075
        link_all_deplibs=no
 
6076
      else
 
6077
        ld_shlibs=no
 
6078
      fi
 
6079
      ;;
 
6080
 
 
6081
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6082
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6083
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
6084
        wlarc=
 
6085
      else
 
6086
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6087
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6088
      fi
 
6089
      ;;
 
6090
 
 
6091
    solaris*)
 
6092
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
6093
        ld_shlibs=no
 
6094
        cat <<EOF 1>&2
 
6095
 
 
6096
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
6097
*** create shared libraries on Solaris systems.  Therefore, libtool
 
6098
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6099
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
6100
*** your PATH or compiler configuration so that the native linker is
 
6101
*** used, and then restart.
 
6102
 
 
6103
EOF
 
6104
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6105
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6106
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6107
      else
 
6108
        ld_shlibs=no
 
6109
      fi
 
6110
      ;;
 
6111
 
 
6112
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
6113
      case `$LD -v 2>&1` in
 
6114
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
6115
        ld_shlibs=no
 
6116
        cat <<_LT_EOF 1>&2
 
6117
 
 
6118
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
6119
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
6120
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
6121
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
6122
*** your PATH or compiler configuration so that the native linker is
 
6123
*** used, and then restart.
 
6124
 
 
6125
_LT_EOF
 
6126
        ;;
 
6127
        *)
 
6128
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6129
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
6130
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
6131
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
6132
          else
 
6133
            ld_shlibs=no
 
6134
          fi
 
6135
        ;;
 
6136
      esac
 
6137
      ;;
 
6138
 
 
6139
    sunos4*)
 
6140
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6141
      wlarc=
 
6142
      hardcode_direct=yes
 
6143
      hardcode_shlibpath_var=no
 
6144
      ;;
 
6145
 
 
6146
    *)
 
6147
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6148
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6149
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
6150
      else
 
6151
        ld_shlibs=no
 
6152
      fi
 
6153
      ;;
 
6154
    esac
 
6155
 
 
6156
    if test "$ld_shlibs" = no; then
 
6157
      runpath_var=
 
6158
      hardcode_libdir_flag_spec=
 
6159
      export_dynamic_flag_spec=
 
6160
      whole_archive_flag_spec=
 
6161
    fi
 
6162
  else
 
6163
    # PORTME fill in a description of your system's linker (not GNU ld)
 
6164
    case $host_os in
 
6165
    aix3*)
 
6166
      allow_undefined_flag=unsupported
 
6167
      always_export_symbols=yes
 
6168
      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'
 
6169
      # Note: this linker hardcodes the directories in LIBPATH if there
 
6170
      # are no directories specified by -L.
 
6171
      hardcode_minus_L=yes
 
6172
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
6173
        # Neither direct hardcoding nor static linking is supported with a
 
6174
        # broken collect2.
 
6175
        hardcode_direct=unsupported
 
6176
      fi
 
6177
      ;;
 
6178
 
 
6179
    aix4* | aix5*)
 
6180
      if test "$host_cpu" = ia64; then
 
6181
        # On IA64, the linker does run time linking by default, so we don't
 
6182
        # have to do anything special.
 
6183
        aix_use_runtimelinking=no
 
6184
        exp_sym_flag='-Bexport'
 
6185
        no_entry_flag=""
 
6186
      else
 
6187
        # If we're using GNU nm, then we don't want the "-C" option.
 
6188
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
6189
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
6190
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
6191
        else
 
6192
          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'
 
6193
        fi
 
6194
        aix_use_runtimelinking=no
 
6195
 
 
6196
        # Test if we are trying to use run time linking or normal
 
6197
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
6198
        # need to do runtime linking.
 
6199
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
6200
          for ld_flag in $LDFLAGS; do
 
6201
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
6202
            aix_use_runtimelinking=yes
 
6203
            break
 
6204
          fi
 
6205
          done
 
6206
          ;;
 
6207
        esac
 
6208
 
 
6209
        exp_sym_flag='-bexport'
 
6210
        no_entry_flag='-bnoentry'
 
6211
      fi
 
6212
 
 
6213
      # When large executables or shared objects are built, AIX ld can
 
6214
      # have problems creating the table of contents.  If linking a library
 
6215
      # or program results in "error TOC overflow" add -mminimal-toc to
 
6216
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
6217
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
6218
 
 
6219
      archive_cmds=''
 
6220
      hardcode_direct=yes
 
6221
      hardcode_libdir_separator=':'
 
6222
      link_all_deplibs=yes
 
6223
 
 
6224
      if test "$GCC" = yes; then
 
6225
        case $host_os in aix4.[012]|aix4.[012].*)
 
6226
        # We only want to do this on AIX 4.2 and lower, the check
 
6227
        # below for broken collect2 doesn't work under 4.3+
 
6228
          collect2name=`${CC} -print-prog-name=collect2`
 
6229
          if test -f "$collect2name" && \
 
6230
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
6231
          then
 
6232
          # We have reworked collect2
 
6233
          hardcode_direct=yes
 
6234
          else
 
6235
          # We have old collect2
 
6236
          hardcode_direct=unsupported
 
6237
          # It fails to find uninstalled libraries when the uninstalled
 
6238
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
6239
          # to unsupported forces relinking
 
6240
          hardcode_minus_L=yes
 
6241
          hardcode_libdir_flag_spec='-L$libdir'
 
6242
          hardcode_libdir_separator=
 
6243
          fi
 
6244
          ;;
 
6245
        esac
 
6246
        shared_flag='-shared'
 
6247
        if test "$aix_use_runtimelinking" = yes; then
 
6248
          shared_flag="$shared_flag "'${wl}-G'
 
6249
        fi
 
6250
      else
 
6251
        # not using gcc
 
6252
        if test "$host_cpu" = ia64; then
 
6253
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
6254
        # chokes on -Wl,-G. The following line is correct:
 
6255
          shared_flag='-G'
 
6256
        else
 
6257
          if test "$aix_use_runtimelinking" = yes; then
 
6258
            shared_flag='${wl}-G'
 
6259
          else
 
6260
            shared_flag='${wl}-bM:SRE'
 
6261
          fi
 
6262
        fi
 
6263
      fi
 
6264
 
 
6265
      # It seems that -bexpall does not export symbols beginning with
 
6266
      # underscore (_), so it is better to generate a list of symbols to export.
 
6267
      always_export_symbols=yes
 
6268
      if test "$aix_use_runtimelinking" = yes; then
 
6269
        # Warning - without using the other runtime loading flags (-brtl),
 
6270
        # -berok will link without error, but may produce a broken library.
 
6271
        allow_undefined_flag='-berok'
 
6272
       # Determine the default libpath from the value encoded in an empty executable.
 
6273
       cat >conftest.$ac_ext <<_ACEOF
 
6274
/* confdefs.h.  */
 
6275
_ACEOF
 
6276
cat confdefs.h >>conftest.$ac_ext
 
6277
cat >>conftest.$ac_ext <<_ACEOF
 
6278
/* end confdefs.h.  */
 
6279
 
 
6280
int
 
6281
main ()
 
6282
{
 
6283
 
 
6284
  ;
 
6285
  return 0;
 
6286
}
 
6287
_ACEOF
 
6288
rm -f conftest.$ac_objext conftest$ac_exeext
 
6289
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6290
  (eval $ac_link) 2>conftest.er1
 
6291
  ac_status=$?
 
6292
  grep -v '^ *+' conftest.er1 >conftest.err
 
6293
  rm -f conftest.er1
 
6294
  cat conftest.err >&5
 
6295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6296
  (exit $ac_status); } &&
 
6297
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6298
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6299
  (eval $ac_try) 2>&5
 
6300
  ac_status=$?
 
6301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6302
  (exit $ac_status); }; } &&
 
6303
         { ac_try='test -s conftest$ac_exeext'
 
6304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6305
  (eval $ac_try) 2>&5
 
6306
  ac_status=$?
 
6307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6308
  (exit $ac_status); }; }; then
 
6309
 
 
6310
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6311
}'`
 
6312
# Check for a 64-bit object if we didn't find anything.
 
6313
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6314
}'`; fi
 
6315
else
 
6316
  echo "$as_me: failed program was:" >&5
 
6317
sed 's/^/| /' conftest.$ac_ext >&5
 
6318
 
 
6319
fi
 
6320
rm -f conftest.err conftest.$ac_objext \
 
6321
      conftest$ac_exeext conftest.$ac_ext
 
6322
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6323
 
 
6324
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6325
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6326
       else
 
6327
        if test "$host_cpu" = ia64; then
 
6328
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
6329
          allow_undefined_flag="-z nodefs"
 
6330
          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"
 
6331
        else
 
6332
         # Determine the default libpath from the value encoded in an empty executable.
 
6333
         cat >conftest.$ac_ext <<_ACEOF
 
6334
/* confdefs.h.  */
 
6335
_ACEOF
 
6336
cat confdefs.h >>conftest.$ac_ext
 
6337
cat >>conftest.$ac_ext <<_ACEOF
 
6338
/* end confdefs.h.  */
 
6339
 
 
6340
int
 
6341
main ()
 
6342
{
 
6343
 
 
6344
  ;
 
6345
  return 0;
 
6346
}
 
6347
_ACEOF
 
6348
rm -f conftest.$ac_objext conftest$ac_exeext
 
6349
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6350
  (eval $ac_link) 2>conftest.er1
 
6351
  ac_status=$?
 
6352
  grep -v '^ *+' conftest.er1 >conftest.err
 
6353
  rm -f conftest.er1
 
6354
  cat conftest.err >&5
 
6355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6356
  (exit $ac_status); } &&
 
6357
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6359
  (eval $ac_try) 2>&5
 
6360
  ac_status=$?
 
6361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6362
  (exit $ac_status); }; } &&
 
6363
         { ac_try='test -s conftest$ac_exeext'
 
6364
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6365
  (eval $ac_try) 2>&5
 
6366
  ac_status=$?
 
6367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6368
  (exit $ac_status); }; }; then
 
6369
 
 
6370
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6371
}'`
 
6372
# Check for a 64-bit object if we didn't find anything.
 
6373
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
6374
}'`; fi
 
6375
else
 
6376
  echo "$as_me: failed program was:" >&5
 
6377
sed 's/^/| /' conftest.$ac_ext >&5
 
6378
 
 
6379
fi
 
6380
rm -f conftest.err conftest.$ac_objext \
 
6381
      conftest$ac_exeext conftest.$ac_ext
 
6382
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
6383
 
 
6384
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
6385
          # Warning - without using the other run time loading flags,
 
6386
          # -berok will link without error, but may produce a broken library.
 
6387
          no_undefined_flag=' ${wl}-bernotok'
 
6388
          allow_undefined_flag=' ${wl}-berok'
 
6389
          # Exported symbols can be pulled into shared objects from archives
 
6390
          whole_archive_flag_spec='$convenience'
 
6391
          archive_cmds_need_lc=yes
 
6392
          # This is similar to how AIX traditionally builds its shared libraries.
 
6393
          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'
 
6394
        fi
 
6395
      fi
 
6396
      ;;
 
6397
 
 
6398
    amigaos*)
 
6399
      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)'
 
6400
      hardcode_libdir_flag_spec='-L$libdir'
 
6401
      hardcode_minus_L=yes
 
6402
      # see comment about different semantics on the GNU ld section
 
6403
      ld_shlibs=no
 
6404
      ;;
 
6405
 
 
6406
    bsdi[45]*)
 
6407
      export_dynamic_flag_spec=-rdynamic
 
6408
      ;;
 
6409
 
 
6410
    cygwin* | mingw* | pw32*)
 
6411
      # When not using gcc, we currently assume that we are using
 
6412
      # Microsoft Visual C++.
 
6413
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6414
      # no search path for DLLs.
 
6415
      hardcode_libdir_flag_spec=' '
 
6416
      allow_undefined_flag=unsupported
 
6417
      # Tell ltmain to make .lib files, not .a files.
 
6418
      libext=lib
 
6419
      # Tell ltmain to make .dll files, not .so files.
 
6420
      shrext_cmds=".dll"
 
6421
      # FIXME: Setting linknames here is a bad hack.
 
6422
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
6423
      # The linker will automatically build a .lib file if we build a DLL.
 
6424
      old_archive_From_new_cmds='true'
 
6425
      # FIXME: Should let the user specify the lib program.
 
6426
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
6427
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
6428
      enable_shared_with_static_runtimes=yes
 
6429
      ;;
 
6430
 
 
6431
    darwin* | rhapsody*)
 
6432
      case $host_os in
 
6433
        rhapsody* | darwin1.[012])
 
6434
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
6435
         ;;
 
6436
       *) # Darwin 1.3 on
 
6437
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6438
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6439
         else
 
6440
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
6441
             10.[012])
 
6442
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
6443
               ;;
 
6444
             10.*)
 
6445
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
6446
               ;;
 
6447
           esac
 
6448
         fi
 
6449
         ;;
 
6450
      esac
 
6451
      archive_cmds_need_lc=no
 
6452
      hardcode_direct=no
 
6453
      hardcode_automatic=yes
 
6454
      hardcode_shlibpath_var=unsupported
 
6455
      whole_archive_flag_spec=''
 
6456
      link_all_deplibs=yes
 
6457
    if test "$GCC" = yes ; then
 
6458
        output_verbose_link_cmd='echo'
 
6459
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
6460
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6461
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6462
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6463
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6464
    else
 
6465
      case $cc_basename in
 
6466
        xlc*)
 
6467
         output_verbose_link_cmd='echo'
 
6468
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
6469
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
6470
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
6471
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6472
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6473
          ;;
 
6474
       *)
 
6475
         ld_shlibs=no
 
6476
          ;;
 
6477
      esac
 
6478
    fi
 
6479
      ;;
 
6480
 
 
6481
    dgux*)
 
6482
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6483
      hardcode_libdir_flag_spec='-L$libdir'
 
6484
      hardcode_shlibpath_var=no
 
6485
      ;;
 
6486
 
 
6487
    freebsd1*)
 
6488
      ld_shlibs=no
 
6489
      ;;
 
6490
 
 
6491
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
6492
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
6493
    # does not break anything, and helps significantly (at the cost of a little
 
6494
    # extra space).
 
6495
    freebsd2.2*)
 
6496
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
6497
      hardcode_libdir_flag_spec='-R$libdir'
 
6498
      hardcode_direct=yes
 
6499
      hardcode_shlibpath_var=no
 
6500
      ;;
 
6501
 
 
6502
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
6503
    freebsd2*)
 
6504
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6505
      hardcode_direct=yes
 
6506
      hardcode_minus_L=yes
 
6507
      hardcode_shlibpath_var=no
 
6508
      ;;
 
6509
 
 
6510
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
6511
    freebsd* | dragonfly*)
 
6512
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6513
      hardcode_libdir_flag_spec='-R$libdir'
 
6514
      hardcode_direct=yes
 
6515
      hardcode_shlibpath_var=no
 
6516
      ;;
 
6517
 
 
6518
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
 
6519
    kfreebsd*-gnu)
 
6520
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
6521
      hardcode_libdir_flag_spec='-R$libdir'
 
6522
      hardcode_direct=yes
 
6523
      hardcode_shlibpath_var=no
 
6524
      link_all_deplibs=no
 
6525
      ;;
 
6526
 
 
6527
    hpux9*)
 
6528
      if test "$GCC" = yes; then
 
6529
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
6530
      else
 
6531
        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'
 
6532
      fi
 
6533
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6534
      hardcode_libdir_separator=:
 
6535
      hardcode_direct=yes
 
6536
 
 
6537
      # hardcode_minus_L: Not really in the search PATH,
 
6538
      # but as the default location of the library.
 
6539
      hardcode_minus_L=yes
 
6540
      export_dynamic_flag_spec='${wl}-E'
 
6541
      ;;
 
6542
 
 
6543
    hpux10*)
 
6544
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6545
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6546
      else
 
6547
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
6548
      fi
 
6549
      if test "$with_gnu_ld" = no; then
 
6550
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6551
        hardcode_libdir_separator=:
 
6552
 
 
6553
        hardcode_direct=yes
 
6554
        export_dynamic_flag_spec='${wl}-E'
 
6555
 
 
6556
        # hardcode_minus_L: Not really in the search PATH,
 
6557
        # but as the default location of the library.
 
6558
        hardcode_minus_L=yes
 
6559
      fi
 
6560
      ;;
 
6561
 
 
6562
    hpux11*)
 
6563
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
6564
        case $host_cpu in
 
6565
        hppa*64*)
 
6566
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6567
          ;;
 
6568
        ia64*)
 
6569
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6570
          ;;
 
6571
        *)
 
6572
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6573
          ;;
 
6574
        esac
 
6575
      else
 
6576
        case $host_cpu in
 
6577
        hppa*64*)
 
6578
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6579
          ;;
 
6580
        ia64*)
 
6581
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6582
          ;;
 
6583
        *)
 
6584
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6585
          ;;
 
6586
        esac
 
6587
      fi
 
6588
      if test "$with_gnu_ld" = no; then
 
6589
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6590
        hardcode_libdir_separator=:
 
6591
 
 
6592
        case $host_cpu in
 
6593
        hppa*64*|ia64*)
 
6594
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
6595
          hardcode_direct=no
 
6596
          hardcode_shlibpath_var=no
 
6597
          ;;
 
6598
        *)
 
6599
          hardcode_direct=yes
 
6600
          export_dynamic_flag_spec='${wl}-E'
 
6601
 
 
6602
          # hardcode_minus_L: Not really in the search PATH,
 
6603
          # but as the default location of the library.
 
6604
          hardcode_minus_L=yes
 
6605
          ;;
 
6606
        esac
 
6607
      fi
 
6608
      ;;
 
6609
 
 
6610
    irix5* | irix6* | nonstopux*)
 
6611
      if test "$GCC" = yes; then
 
6612
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6613
      else
 
6614
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
6615
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
6616
      fi
 
6617
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6618
      hardcode_libdir_separator=:
 
6619
      link_all_deplibs=yes
 
6620
      ;;
 
6621
 
 
6622
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
6623
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
6624
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
6625
      else
 
6626
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
6627
      fi
 
6628
      hardcode_libdir_flag_spec='-R$libdir'
 
6629
      hardcode_direct=yes
 
6630
      hardcode_shlibpath_var=no
 
6631
      ;;
 
6632
 
 
6633
    newsos6)
 
6634
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6635
      hardcode_direct=yes
 
6636
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6637
      hardcode_libdir_separator=:
 
6638
      hardcode_shlibpath_var=no
 
6639
      ;;
 
6640
 
 
6641
    openbsd*)
 
6642
      hardcode_direct=yes
 
6643
      hardcode_shlibpath_var=no
 
6644
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6645
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6646
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
6647
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6648
        export_dynamic_flag_spec='${wl}-E'
 
6649
      else
 
6650
       case $host_os in
 
6651
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
6652
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
6653
           hardcode_libdir_flag_spec='-R$libdir'
 
6654
           ;;
 
6655
         *)
 
6656
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
6657
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
6658
           ;;
 
6659
       esac
 
6660
      fi
 
6661
      ;;
 
6662
 
 
6663
    os2*)
 
6664
      hardcode_libdir_flag_spec='-L$libdir'
 
6665
      hardcode_minus_L=yes
 
6666
      allow_undefined_flag=unsupported
 
6667
      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'
 
6668
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
6669
      ;;
 
6670
 
 
6671
    osf3*)
 
6672
      if test "$GCC" = yes; then
 
6673
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6674
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6675
      else
 
6676
        allow_undefined_flag=' -expect_unresolved \*'
 
6677
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
6678
      fi
 
6679
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6680
      hardcode_libdir_separator=:
 
6681
      ;;
 
6682
 
 
6683
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
6684
      if test "$GCC" = yes; then
 
6685
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
6686
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
6687
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
6688
      else
 
6689
        allow_undefined_flag=' -expect_unresolved \*'
 
6690
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
6691
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
6692
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
6693
 
 
6694
        # Both c and cxx compiler support -rpath directly
 
6695
        hardcode_libdir_flag_spec='-rpath $libdir'
 
6696
      fi
 
6697
      hardcode_libdir_separator=:
 
6698
      ;;
 
6699
 
 
6700
    solaris*)
 
6701
      no_undefined_flag=' -z text'
 
6702
      if test "$GCC" = yes; then
 
6703
        wlarc='${wl}'
 
6704
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6705
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6706
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
6707
      else
 
6708
        wlarc=''
 
6709
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6710
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6711
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6712
      fi
 
6713
      hardcode_libdir_flag_spec='-R$libdir'
 
6714
      hardcode_shlibpath_var=no
 
6715
      case $host_os in
 
6716
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
6717
      *)
 
6718
        # The compiler driver will combine linker options so we
 
6719
        # cannot just pass the convience library names through
 
6720
        # without $wl, iff we do not link with $LD.
 
6721
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
6722
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
6723
        case $wlarc in
 
6724
        '')
 
6725
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
6726
        *)
 
6727
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
6728
        esac ;;
 
6729
      esac
 
6730
      link_all_deplibs=yes
 
6731
      ;;
 
6732
 
 
6733
    sunos4*)
 
6734
      if test "x$host_vendor" = xsequent; then
 
6735
        # Use $CC to link under sequent, because it throws in some extra .o
 
6736
        # files that make .init and .fini sections work.
 
6737
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
6738
      else
 
6739
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
6740
      fi
 
6741
      hardcode_libdir_flag_spec='-L$libdir'
 
6742
      hardcode_direct=yes
 
6743
      hardcode_minus_L=yes
 
6744
      hardcode_shlibpath_var=no
 
6745
      ;;
 
6746
 
 
6747
    sysv4)
 
6748
      case $host_vendor in
 
6749
        sni)
 
6750
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6751
          hardcode_direct=yes # is this really true???
 
6752
        ;;
 
6753
        siemens)
 
6754
          ## LD is ld it makes a PLAMLIB
 
6755
          ## CC just makes a GrossModule.
 
6756
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6757
          reload_cmds='$CC -r -o $output$reload_objs'
 
6758
          hardcode_direct=no
 
6759
        ;;
 
6760
        motorola)
 
6761
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6762
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
6763
        ;;
 
6764
      esac
 
6765
      runpath_var='LD_RUN_PATH'
 
6766
      hardcode_shlibpath_var=no
 
6767
      ;;
 
6768
 
 
6769
    sysv4.3*)
 
6770
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6771
      hardcode_shlibpath_var=no
 
6772
      export_dynamic_flag_spec='-Bexport'
 
6773
      ;;
 
6774
 
 
6775
    sysv4*MP*)
 
6776
      if test -d /usr/nec; then
 
6777
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6778
        hardcode_shlibpath_var=no
 
6779
        runpath_var=LD_RUN_PATH
 
6780
        hardcode_runpath_var=yes
 
6781
        ld_shlibs=yes
 
6782
      fi
 
6783
      ;;
 
6784
 
 
6785
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
6786
      no_undefined_flag='${wl}-z,text'
 
6787
      archive_cmds_need_lc=no
 
6788
      hardcode_shlibpath_var=no
 
6789
      runpath_var='LD_RUN_PATH'
 
6790
 
 
6791
      if test "$GCC" = yes; then
 
6792
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6793
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6794
      else
 
6795
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6796
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6797
      fi
 
6798
      ;;
 
6799
 
 
6800
    sysv5* | sco3.2v5* | sco5v6*)
 
6801
      # Note: We can NOT use -z defs as we might desire, because we do not
 
6802
      # link with -lc, and that would cause any symbols used from libc to
 
6803
      # always be unresolved, which means just about no library would
 
6804
      # ever link correctly.  If we're not using GNU ld we use -z text
 
6805
      # though, which does catch some bad symbols but isn't as heavy-handed
 
6806
      # as -z defs.
 
6807
      no_undefined_flag='${wl}-z,text'
 
6808
      allow_undefined_flag='${wl}-z,nodefs'
 
6809
      archive_cmds_need_lc=no
 
6810
      hardcode_shlibpath_var=no
 
6811
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
6812
      hardcode_libdir_separator=':'
 
6813
      link_all_deplibs=yes
 
6814
      export_dynamic_flag_spec='${wl}-Bexport'
 
6815
      runpath_var='LD_RUN_PATH'
 
6816
 
 
6817
      if test "$GCC" = yes; then
 
6818
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6819
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6820
      else
 
6821
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6822
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6823
      fi
 
6824
      ;;
 
6825
 
 
6826
    uts4*)
 
6827
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6828
      hardcode_libdir_flag_spec='-L$libdir'
 
6829
      hardcode_shlibpath_var=no
 
6830
      ;;
 
6831
 
 
6832
    *)
 
6833
      ld_shlibs=no
 
6834
      ;;
 
6835
    esac
 
6836
  fi
 
6837
 
 
6838
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
6839
echo "${ECHO_T}$ld_shlibs" >&6
 
6840
test "$ld_shlibs" = no && can_build_shared=no
 
6841
 
 
6842
#
 
6843
# Do we need to explicitly link libc?
 
6844
#
 
6845
case "x$archive_cmds_need_lc" in
 
6846
x|xyes)
 
6847
  # Assume -lc should be added
 
6848
  archive_cmds_need_lc=yes
 
6849
 
 
6850
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
6851
    case $archive_cmds in
 
6852
    *'~'*)
 
6853
      # FIXME: we may have to deal with multi-command sequences.
 
6854
      ;;
 
6855
    '$CC '*)
 
6856
      # Test whether the compiler implicitly links with -lc since on some
 
6857
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
6858
      # to ld, don't add -lc before -lgcc.
 
6859
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
6860
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
6861
      $rm conftest*
 
6862
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6863
 
 
6864
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6865
  (eval $ac_compile) 2>&5
 
6866
  ac_status=$?
 
6867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6868
  (exit $ac_status); } 2>conftest.err; then
 
6869
        soname=conftest
 
6870
        lib=conftest
 
6871
        libobjs=conftest.$ac_objext
 
6872
        deplibs=
 
6873
        wl=$lt_prog_compiler_wl
 
6874
        pic_flag=$lt_prog_compiler_pic
 
6875
        compiler_flags=-v
 
6876
        linker_flags=-v
 
6877
        verstring=
 
6878
        output_objdir=.
 
6879
        libname=conftest
 
6880
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
6881
        allow_undefined_flag=
 
6882
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
6883
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
6884
  ac_status=$?
 
6885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6886
  (exit $ac_status); }
 
6887
        then
 
6888
          archive_cmds_need_lc=no
 
6889
        else
 
6890
          archive_cmds_need_lc=yes
 
6891
        fi
 
6892
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
6893
      else
 
6894
        cat conftest.err 1>&5
 
6895
      fi
 
6896
      $rm conftest*
 
6897
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
6898
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
6899
      ;;
 
6900
    esac
 
6901
  fi
 
6902
  ;;
 
6903
esac
 
6904
 
 
6905
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
6906
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
6907
library_names_spec=
 
6908
libname_spec='lib$name'
 
6909
soname_spec=
 
6910
shrext_cmds=".so"
 
6911
postinstall_cmds=
 
6912
postuninstall_cmds=
 
6913
finish_cmds=
 
6914
finish_eval=
 
6915
shlibpath_var=
 
6916
shlibpath_overrides_runpath=unknown
 
6917
version_type=none
 
6918
dynamic_linker="$host_os ld.so"
 
6919
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
6920
if test "$GCC" = yes; then
 
6921
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
6922
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
6923
    # if the path contains ";" then we assume it to be the separator
 
6924
    # otherwise default to the standard path separator (i.e. ":") - it is
 
6925
    # assumed that no part of a normal pathname contains ";" but that should
 
6926
    # okay in the real world where ";" in dirpaths is itself problematic.
 
6927
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
6928
  else
 
6929
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
6930
  fi
 
6931
else
 
6932
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
6933
fi
 
6934
need_lib_prefix=unknown
 
6935
hardcode_into_libs=no
 
6936
 
 
6937
# when you set need_version to no, make sure it does not cause -set_version
 
6938
# flags to be left without arguments
 
6939
need_version=unknown
 
6940
 
 
6941
case $host_os in
 
6942
aix3*)
 
6943
  version_type=linux
 
6944
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
6945
  shlibpath_var=LIBPATH
 
6946
 
 
6947
  # AIX 3 has no versioning support, so we append a major version to the name.
 
6948
  soname_spec='${libname}${release}${shared_ext}$major'
 
6949
  ;;
 
6950
 
 
6951
aix4* | aix5*)
 
6952
  version_type=linux
 
6953
  need_lib_prefix=no
 
6954
  need_version=no
 
6955
  hardcode_into_libs=yes
 
6956
  if test "$host_cpu" = ia64; then
 
6957
    # AIX 5 supports IA64
 
6958
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
6959
    shlibpath_var=LD_LIBRARY_PATH
 
6960
  else
 
6961
    # With GCC up to 2.95.x, collect2 would create an import file
 
6962
    # for dependence libraries.  The import file would start with
 
6963
    # the line `#! .'.  This would cause the generated library to
 
6964
    # depend on `.', always an invalid library.  This was fixed in
 
6965
    # development snapshots of GCC prior to 3.0.
 
6966
    case $host_os in
 
6967
      aix4 | aix4.[01] | aix4.[01].*)
 
6968
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
6969
           echo ' yes '
 
6970
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
6971
        :
 
6972
      else
 
6973
        can_build_shared=no
 
6974
      fi
 
6975
      ;;
 
6976
    esac
 
6977
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
6978
    # soname into executable. Probably we can add versioning support to
 
6979
    # collect2, so additional links can be useful in future.
 
6980
    if test "$aix_use_runtimelinking" = yes; then
 
6981
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
6982
      # instead of lib<name>.a to let people know that these are not
 
6983
      # typical AIX shared libraries.
 
6984
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
6985
    else
 
6986
      # We preserve .a as extension for shared libraries through AIX4.2
 
6987
      # and later when we are not doing run time linking.
 
6988
      library_names_spec='${libname}${release}.a $libname.a'
 
6989
      soname_spec='${libname}${release}${shared_ext}$major'
 
6990
    fi
 
6991
    shlibpath_var=LIBPATH
 
6992
  fi
 
6993
  ;;
 
6994
 
 
6995
amigaos*)
 
6996
  library_names_spec='$libname.ixlibrary $libname.a'
 
6997
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
6998
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
6999
  ;;
 
7000
 
 
7001
beos*)
 
7002
  library_names_spec='${libname}${shared_ext}'
 
7003
  dynamic_linker="$host_os ld.so"
 
7004
  shlibpath_var=LIBRARY_PATH
 
7005
  ;;
 
7006
 
 
7007
bsdi[45]*)
 
7008
  version_type=linux
 
7009
  need_version=no
 
7010
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7011
  soname_spec='${libname}${release}${shared_ext}$major'
 
7012
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7013
  shlibpath_var=LD_LIBRARY_PATH
 
7014
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7015
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7016
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7017
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7018
  # libtool to hard-code these into programs
 
7019
  ;;
 
7020
 
 
7021
cygwin* | mingw* | pw32*)
 
7022
  version_type=windows
 
7023
  shrext_cmds=".dll"
 
7024
  need_version=no
 
7025
  need_lib_prefix=no
 
7026
 
 
7027
  case $GCC,$host_os in
 
7028
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7029
    library_names_spec='$libname.dll.a'
 
7030
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7031
    postinstall_cmds='base_file=`basename \${file}`~
 
7032
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7033
      dldir=$destdir/`dirname \$dlpath`~
 
7034
      test -d \$dldir || mkdir -p \$dldir~
 
7035
      $install_prog $dir/$dlname \$dldir/$dlname~
 
7036
      chmod a+x \$dldir/$dlname'
 
7037
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7038
      dlpath=$dir/\$dldll~
 
7039
       $rm \$dlpath'
 
7040
    shlibpath_overrides_runpath=yes
 
7041
 
 
7042
    case $host_os in
 
7043
    cygwin*)
 
7044
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7045
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7046
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7047
      ;;
 
7048
    mingw*)
 
7049
      # MinGW DLLs use traditional 'lib' prefix
 
7050
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7051
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7052
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7053
        # It is most probably a Windows format PATH printed by
 
7054
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7055
        # path with ; separators, and with drive letters. We can handle the
 
7056
        # drive letters (cygwin fileutils understands them), so leave them,
 
7057
        # especially as we might pass files found there to a mingw objdump,
 
7058
        # which wouldn't understand a cygwinified path. Ahh.
 
7059
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7060
      else
 
7061
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7062
      fi
 
7063
      ;;
 
7064
    pw32*)
 
7065
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7066
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7067
      ;;
 
7068
    esac
 
7069
    ;;
 
7070
 
 
7071
  *)
 
7072
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7073
    ;;
 
7074
  esac
 
7075
  dynamic_linker='Win32 ld.exe'
 
7076
  # FIXME: first we should search . and the directory the executable is in
 
7077
  shlibpath_var=PATH
 
7078
  ;;
 
7079
 
 
7080
darwin* | rhapsody*)
 
7081
  dynamic_linker="$host_os dyld"
 
7082
  version_type=darwin
 
7083
  need_lib_prefix=no
 
7084
  need_version=no
 
7085
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7086
  soname_spec='${libname}${release}${major}$shared_ext'
 
7087
  shlibpath_overrides_runpath=yes
 
7088
  shlibpath_var=DYLD_LIBRARY_PATH
 
7089
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
7090
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7091
  if test "$GCC" = yes; then
 
7092
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
7093
  else
 
7094
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7095
  fi
 
7096
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7097
  ;;
 
7098
 
 
7099
dgux*)
 
7100
  version_type=linux
 
7101
  need_lib_prefix=no
 
7102
  need_version=no
 
7103
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7104
  soname_spec='${libname}${release}${shared_ext}$major'
 
7105
  shlibpath_var=LD_LIBRARY_PATH
 
7106
  ;;
 
7107
 
 
7108
freebsd1*)
 
7109
  dynamic_linker=no
 
7110
  ;;
 
7111
 
 
7112
kfreebsd*-gnu)
 
7113
  version_type=linux
 
7114
  need_lib_prefix=no
 
7115
  need_version=no
 
7116
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7117
  soname_spec='${libname}${release}${shared_ext}$major'
 
7118
  shlibpath_var=LD_LIBRARY_PATH
 
7119
  shlibpath_overrides_runpath=no
 
7120
  hardcode_into_libs=yes
 
7121
  dynamic_linker='GNU ld.so'
 
7122
  ;;
 
7123
 
 
7124
freebsd* | dragonfly*)
 
7125
  # DragonFly does not have aout.  When/if they implement a new
 
7126
  # versioning mechanism, adjust this.
 
7127
  if test -x /usr/bin/objformat; then
 
7128
    objformat=`/usr/bin/objformat`
 
7129
  else
 
7130
    case $host_os in
 
7131
    freebsd[123]*) objformat=aout ;;
 
7132
    *) objformat=elf ;;
 
7133
    esac
 
7134
  fi
 
7135
  version_type=freebsd-$objformat
 
7136
  case $version_type in
 
7137
    freebsd-elf*)
 
7138
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7139
      need_version=no
 
7140
      need_lib_prefix=no
 
7141
      ;;
 
7142
    freebsd-*)
 
7143
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
7144
      need_version=yes
 
7145
      ;;
 
7146
  esac
 
7147
  shlibpath_var=LD_LIBRARY_PATH
 
7148
  case $host_os in
 
7149
  freebsd2*)
 
7150
    shlibpath_overrides_runpath=yes
 
7151
    ;;
 
7152
  freebsd3.[01]* | freebsdelf3.[01]*)
 
7153
    shlibpath_overrides_runpath=yes
 
7154
    hardcode_into_libs=yes
 
7155
    ;;
 
7156
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
7157
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
7158
    shlibpath_overrides_runpath=no
 
7159
    hardcode_into_libs=yes
 
7160
    ;;
 
7161
  freebsd*) # from 4.6 on
 
7162
    shlibpath_overrides_runpath=yes
 
7163
    hardcode_into_libs=yes
 
7164
    ;;
 
7165
  esac
 
7166
  ;;
 
7167
 
 
7168
gnu*)
 
7169
  version_type=linux
 
7170
  need_lib_prefix=no
 
7171
  need_version=no
 
7172
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
7173
  soname_spec='${libname}${release}${shared_ext}$major'
 
7174
  shlibpath_var=LD_LIBRARY_PATH
 
7175
  hardcode_into_libs=yes
 
7176
  ;;
 
7177
 
 
7178
hpux9* | hpux10* | hpux11*)
 
7179
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7180
  # link against other versions.
 
7181
  version_type=sunos
 
7182
  need_lib_prefix=no
 
7183
  need_version=no
 
7184
  case $host_cpu in
 
7185
  ia64*)
 
7186
    shrext_cmds='.so'
 
7187
    hardcode_into_libs=yes
 
7188
    dynamic_linker="$host_os dld.so"
 
7189
    shlibpath_var=LD_LIBRARY_PATH
 
7190
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7191
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7192
    soname_spec='${libname}${release}${shared_ext}$major'
 
7193
    if test "X$HPUX_IA64_MODE" = X32; then
 
7194
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
7195
    else
 
7196
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
7197
    fi
 
7198
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7199
    ;;
 
7200
   hppa*64*)
 
7201
     shrext_cmds='.sl'
 
7202
     hardcode_into_libs=yes
 
7203
     dynamic_linker="$host_os dld.sl"
 
7204
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
7205
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
7206
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7207
     soname_spec='${libname}${release}${shared_ext}$major'
 
7208
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
7209
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
7210
     ;;
 
7211
   *)
 
7212
    shrext_cmds='.sl'
 
7213
    dynamic_linker="$host_os dld.sl"
 
7214
    shlibpath_var=SHLIB_PATH
 
7215
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7216
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7217
    soname_spec='${libname}${release}${shared_ext}$major'
 
7218
    ;;
 
7219
  esac
 
7220
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7221
  postinstall_cmds='chmod 555 $lib'
 
7222
  ;;
 
7223
 
 
7224
interix3*)
 
7225
  version_type=linux
 
7226
  need_lib_prefix=no
 
7227
  need_version=no
 
7228
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7229
  soname_spec='${libname}${release}${shared_ext}$major'
 
7230
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
7231
  shlibpath_var=LD_LIBRARY_PATH
 
7232
  shlibpath_overrides_runpath=no
 
7233
  hardcode_into_libs=yes
 
7234
  ;;
 
7235
 
 
7236
irix5* | irix6* | nonstopux*)
 
7237
  case $host_os in
 
7238
    nonstopux*) version_type=nonstopux ;;
 
7239
    *)
 
7240
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
7241
                version_type=linux
 
7242
        else
 
7243
                version_type=irix
 
7244
        fi ;;
 
7245
  esac
 
7246
  need_lib_prefix=no
 
7247
  need_version=no
 
7248
  soname_spec='${libname}${release}${shared_ext}$major'
 
7249
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7250
  case $host_os in
 
7251
  irix5* | nonstopux*)
 
7252
    libsuff= shlibsuff=
 
7253
    ;;
 
7254
  *)
 
7255
    case $LD in # libtool.m4 will add one of these switches to LD
 
7256
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
7257
      libsuff= shlibsuff= libmagic=32-bit;;
 
7258
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
7259
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7260
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
7261
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7262
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7263
    esac
 
7264
    ;;
 
7265
  esac
 
7266
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7267
  shlibpath_overrides_runpath=no
 
7268
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7269
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7270
  hardcode_into_libs=yes
 
7271
  ;;
 
7272
 
 
7273
# No shared lib support for Linux oldld, aout, or coff.
 
7274
linux*oldld* | linux*aout* | linux*coff*)
 
7275
  dynamic_linker=no
 
7276
  ;;
 
7277
 
 
7278
# This must be Linux ELF.
 
7279
linux*)
 
7280
  version_type=linux
 
7281
  need_lib_prefix=no
 
7282
  need_version=no
 
7283
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7284
  soname_spec='${libname}${release}${shared_ext}$major'
 
7285
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7286
  shlibpath_var=LD_LIBRARY_PATH
 
7287
  shlibpath_overrides_runpath=no
 
7288
  # This implies no fast_install, which is unacceptable.
 
7289
  # Some rework will be needed to allow for fast_install
 
7290
  # before this can be enabled.
 
7291
  hardcode_into_libs=yes
 
7292
 
 
7293
  # Append ld.so.conf contents to the search path
 
7294
  if test -f /etc/ld.so.conf; then
 
7295
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
7296
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
7297
  fi
 
7298
 
 
7299
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7300
  # powerpc, because MkLinux only supported shared libraries with the
 
7301
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7302
  # most powerpc-linux boxes support dynamic linking these days and
 
7303
  # people can always --disable-shared, the test was removed, and we
 
7304
  # assume the GNU/Linux dynamic linker is in use.
 
7305
  dynamic_linker='GNU/Linux ld.so'
 
7306
  ;;
 
7307
 
 
7308
netbsdelf*-gnu)
 
7309
  version_type=linux
 
7310
  need_lib_prefix=no
 
7311
  need_version=no
 
7312
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7313
  soname_spec='${libname}${release}${shared_ext}$major'
 
7314
  shlibpath_var=LD_LIBRARY_PATH
 
7315
  shlibpath_overrides_runpath=no
 
7316
  hardcode_into_libs=yes
 
7317
  dynamic_linker='NetBSD ld.elf_so'
 
7318
  ;;
 
7319
 
 
7320
knetbsd*-gnu)
 
7321
  version_type=linux
 
7322
  need_lib_prefix=no
 
7323
  need_version=no
 
7324
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7325
  soname_spec='${libname}${release}${shared_ext}$major'
 
7326
  shlibpath_var=LD_LIBRARY_PATH
 
7327
  shlibpath_overrides_runpath=no
 
7328
  hardcode_into_libs=yes
 
7329
  dynamic_linker='GNU ld.so'
 
7330
  ;;
 
7331
 
 
7332
netbsd*)
 
7333
  version_type=sunos
 
7334
  need_lib_prefix=no
 
7335
  need_version=no
 
7336
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7337
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7338
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7339
    dynamic_linker='NetBSD (a.out) ld.so'
 
7340
  else
 
7341
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7342
    soname_spec='${libname}${release}${shared_ext}$major'
 
7343
    dynamic_linker='NetBSD ld.elf_so'
 
7344
  fi
 
7345
  shlibpath_var=LD_LIBRARY_PATH
 
7346
  shlibpath_overrides_runpath=yes
 
7347
  hardcode_into_libs=yes
 
7348
  ;;
 
7349
 
 
7350
newsos6)
 
7351
  version_type=linux
 
7352
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7353
  shlibpath_var=LD_LIBRARY_PATH
 
7354
  shlibpath_overrides_runpath=yes
 
7355
  ;;
 
7356
 
 
7357
nto-qnx*)
 
7358
  version_type=linux
 
7359
  need_lib_prefix=no
 
7360
  need_version=no
 
7361
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7362
  soname_spec='${libname}${release}${shared_ext}$major'
 
7363
  shlibpath_var=LD_LIBRARY_PATH
 
7364
  shlibpath_overrides_runpath=yes
 
7365
  ;;
 
7366
 
 
7367
openbsd*)
 
7368
  version_type=sunos
 
7369
  sys_lib_dlsearch_path_spec="/usr/lib"
 
7370
  need_lib_prefix=no
 
7371
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
7372
  case $host_os in
 
7373
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
7374
    *)                         need_version=no  ;;
 
7375
  esac
 
7376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7377
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7378
  shlibpath_var=LD_LIBRARY_PATH
 
7379
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7380
    case $host_os in
 
7381
      openbsd2.[89] | openbsd2.[89].*)
 
7382
        shlibpath_overrides_runpath=no
 
7383
        ;;
 
7384
      *)
 
7385
        shlibpath_overrides_runpath=yes
 
7386
        ;;
 
7387
      esac
 
7388
  else
 
7389
    shlibpath_overrides_runpath=yes
 
7390
  fi
 
7391
  ;;
 
7392
 
 
7393
os2*)
 
7394
  libname_spec='$name'
 
7395
  shrext_cmds=".dll"
 
7396
  need_lib_prefix=no
 
7397
  library_names_spec='$libname${shared_ext} $libname.a'
 
7398
  dynamic_linker='OS/2 ld.exe'
 
7399
  shlibpath_var=LIBPATH
 
7400
  ;;
 
7401
 
 
7402
osf3* | osf4* | osf5*)
 
7403
  version_type=osf
 
7404
  need_lib_prefix=no
 
7405
  need_version=no
 
7406
  soname_spec='${libname}${release}${shared_ext}$major'
 
7407
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7408
  shlibpath_var=LD_LIBRARY_PATH
 
7409
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
7410
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
7411
  ;;
 
7412
 
 
7413
solaris*)
 
7414
  version_type=linux
 
7415
  need_lib_prefix=no
 
7416
  need_version=no
 
7417
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7418
  soname_spec='${libname}${release}${shared_ext}$major'
 
7419
  shlibpath_var=LD_LIBRARY_PATH
 
7420
  shlibpath_overrides_runpath=yes
 
7421
  hardcode_into_libs=yes
 
7422
  # ldd complains unless libraries are executable
 
7423
  postinstall_cmds='chmod +x $lib'
 
7424
  ;;
 
7425
 
 
7426
sunos4*)
 
7427
  version_type=sunos
 
7428
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
7429
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
7430
  shlibpath_var=LD_LIBRARY_PATH
 
7431
  shlibpath_overrides_runpath=yes
 
7432
  if test "$with_gnu_ld" = yes; then
 
7433
    need_lib_prefix=no
 
7434
  fi
 
7435
  need_version=yes
 
7436
  ;;
 
7437
 
 
7438
sysv4 | sysv4.3*)
 
7439
  version_type=linux
 
7440
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7441
  soname_spec='${libname}${release}${shared_ext}$major'
 
7442
  shlibpath_var=LD_LIBRARY_PATH
 
7443
  case $host_vendor in
 
7444
    sni)
 
7445
      shlibpath_overrides_runpath=no
 
7446
      need_lib_prefix=no
 
7447
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
7448
      runpath_var=LD_RUN_PATH
 
7449
      ;;
 
7450
    siemens)
 
7451
      need_lib_prefix=no
 
7452
      ;;
 
7453
    motorola)
 
7454
      need_lib_prefix=no
 
7455
      need_version=no
 
7456
      shlibpath_overrides_runpath=no
 
7457
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
7458
      ;;
 
7459
  esac
 
7460
  ;;
 
7461
 
 
7462
sysv4*MP*)
 
7463
  if test -d /usr/nec ;then
 
7464
    version_type=linux
 
7465
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
7466
    soname_spec='$libname${shared_ext}.$major'
 
7467
    shlibpath_var=LD_LIBRARY_PATH
 
7468
  fi
 
7469
  ;;
 
7470
 
 
7471
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
7472
  version_type=freebsd-elf
 
7473
  need_lib_prefix=no
 
7474
  need_version=no
 
7475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
7476
  soname_spec='${libname}${release}${shared_ext}$major'
 
7477
  shlibpath_var=LD_LIBRARY_PATH
 
7478
  hardcode_into_libs=yes
 
7479
  if test "$with_gnu_ld" = yes; then
 
7480
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
7481
    shlibpath_overrides_runpath=no
 
7482
  else
 
7483
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
7484
    shlibpath_overrides_runpath=yes
 
7485
    case $host_os in
 
7486
      sco3.2v5*)
 
7487
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
7488
        ;;
 
7489
    esac
 
7490
  fi
 
7491
  sys_lib_dlsearch_path_spec='/usr/lib'
 
7492
  ;;
 
7493
 
 
7494
uts4*)
 
7495
  version_type=linux
 
7496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7497
  soname_spec='${libname}${release}${shared_ext}$major'
 
7498
  shlibpath_var=LD_LIBRARY_PATH
 
7499
  ;;
 
7500
 
 
7501
*)
 
7502
  dynamic_linker=no
 
7503
  ;;
 
7504
esac
 
7505
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
7506
echo "${ECHO_T}$dynamic_linker" >&6
 
7507
test "$dynamic_linker" = no && can_build_shared=no
 
7508
 
 
7509
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7510
if test "$GCC" = yes; then
 
7511
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7512
fi
 
7513
 
 
7514
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
7515
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
7516
hardcode_action=
 
7517
if test -n "$hardcode_libdir_flag_spec" || \
 
7518
   test -n "$runpath_var" || \
 
7519
   test "X$hardcode_automatic" = "Xyes" ; then
 
7520
 
 
7521
  # We can hardcode non-existant directories.
 
7522
  if test "$hardcode_direct" != no &&
 
7523
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
7524
     # have to relink, otherwise we might link with an installed library
 
7525
     # when we should be linking with a yet-to-be-installed one
 
7526
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
7527
     test "$hardcode_minus_L" != no; then
 
7528
    # Linking always hardcodes the temporary library directory.
 
7529
    hardcode_action=relink
 
7530
  else
 
7531
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
7532
    hardcode_action=immediate
 
7533
  fi
 
7534
else
 
7535
  # We cannot hardcode anything, or else we can only hardcode existing
 
7536
  # directories.
 
7537
  hardcode_action=unsupported
 
7538
fi
 
7539
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
7540
echo "${ECHO_T}$hardcode_action" >&6
 
7541
 
 
7542
if test "$hardcode_action" = relink; then
 
7543
  # Fast installation is not supported
 
7544
  enable_fast_install=no
 
7545
elif test "$shlibpath_overrides_runpath" = yes ||
 
7546
     test "$enable_shared" = no; then
 
7547
  # Fast installation is not necessary
 
7548
  enable_fast_install=needless
 
7549
fi
 
7550
 
 
7551
striplib=
 
7552
old_striplib=
 
7553
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
7554
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
7555
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
7556
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
7557
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
7558
  echo "$as_me:$LINENO: result: yes" >&5
 
7559
echo "${ECHO_T}yes" >&6
 
7560
else
 
7561
# FIXME - insert some real tests, host_os isn't really good enough
 
7562
  case $host_os in
 
7563
   darwin*)
 
7564
       if test -n "$STRIP" ; then
 
7565
         striplib="$STRIP -x"
 
7566
         echo "$as_me:$LINENO: result: yes" >&5
 
7567
echo "${ECHO_T}yes" >&6
 
7568
       else
 
7569
  echo "$as_me:$LINENO: result: no" >&5
 
7570
echo "${ECHO_T}no" >&6
 
7571
fi
 
7572
       ;;
 
7573
   *)
 
7574
  echo "$as_me:$LINENO: result: no" >&5
 
7575
echo "${ECHO_T}no" >&6
 
7576
    ;;
 
7577
  esac
 
7578
fi
 
7579
 
 
7580
if test "x$enable_dlopen" != xyes; then
 
7581
  enable_dlopen=unknown
 
7582
  enable_dlopen_self=unknown
 
7583
  enable_dlopen_self_static=unknown
 
7584
else
 
7585
  lt_cv_dlopen=no
 
7586
  lt_cv_dlopen_libs=
 
7587
 
 
7588
  case $host_os in
 
7589
  beos*)
 
7590
    lt_cv_dlopen="load_add_on"
 
7591
    lt_cv_dlopen_libs=
 
7592
    lt_cv_dlopen_self=yes
 
7593
    ;;
 
7594
 
 
7595
  mingw* | pw32*)
 
7596
    lt_cv_dlopen="LoadLibrary"
 
7597
    lt_cv_dlopen_libs=
 
7598
   ;;
 
7599
 
 
7600
  cygwin*)
 
7601
    lt_cv_dlopen="dlopen"
 
7602
    lt_cv_dlopen_libs=
 
7603
   ;;
 
7604
 
 
7605
  darwin*)
 
7606
  # if libdl is installed we need to link against it
 
7607
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7608
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
7609
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
7610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7611
else
 
7612
  ac_check_lib_save_LIBS=$LIBS
 
7613
LIBS="-ldl  $LIBS"
 
7614
cat >conftest.$ac_ext <<_ACEOF
 
7615
/* confdefs.h.  */
 
7616
_ACEOF
 
7617
cat confdefs.h >>conftest.$ac_ext
 
7618
cat >>conftest.$ac_ext <<_ACEOF
 
7619
/* end confdefs.h.  */
 
7620
 
 
7621
/* Override any gcc2 internal prototype to avoid an error.  */
 
7622
#ifdef __cplusplus
 
7623
extern "C"
 
7624
#endif
 
7625
/* We use char because int might match the return type of a gcc2
 
7626
   builtin and then its argument prototype would still apply.  */
 
7627
char dlopen ();
 
7628
int
 
7629
main ()
 
7630
{
 
7631
dlopen ();
 
7632
  ;
 
7633
  return 0;
 
7634
}
 
7635
_ACEOF
 
7636
rm -f conftest.$ac_objext conftest$ac_exeext
 
7637
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7638
  (eval $ac_link) 2>conftest.er1
 
7639
  ac_status=$?
 
7640
  grep -v '^ *+' conftest.er1 >conftest.err
 
7641
  rm -f conftest.er1
 
7642
  cat conftest.err >&5
 
7643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7644
  (exit $ac_status); } &&
 
7645
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7646
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7647
  (eval $ac_try) 2>&5
 
7648
  ac_status=$?
 
7649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7650
  (exit $ac_status); }; } &&
 
7651
         { ac_try='test -s conftest$ac_exeext'
 
7652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7653
  (eval $ac_try) 2>&5
 
7654
  ac_status=$?
 
7655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7656
  (exit $ac_status); }; }; then
 
7657
  ac_cv_lib_dl_dlopen=yes
 
7658
else
 
7659
  echo "$as_me: failed program was:" >&5
 
7660
sed 's/^/| /' conftest.$ac_ext >&5
 
7661
 
 
7662
ac_cv_lib_dl_dlopen=no
 
7663
fi
 
7664
rm -f conftest.err conftest.$ac_objext \
 
7665
      conftest$ac_exeext conftest.$ac_ext
 
7666
LIBS=$ac_check_lib_save_LIBS
 
7667
fi
 
7668
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
7669
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
7670
if test $ac_cv_lib_dl_dlopen = yes; then
 
7671
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
7672
else
 
7673
 
 
7674
    lt_cv_dlopen="dyld"
 
7675
    lt_cv_dlopen_libs=
 
7676
    lt_cv_dlopen_self=yes
 
7677
 
 
7678
fi
 
7679
 
 
7680
   ;;
 
7681
 
 
7682
  *)
 
7683
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
7684
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
7685
if test "${ac_cv_func_shl_load+set}" = set; then
 
7686
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7687
else
 
7688
  cat >conftest.$ac_ext <<_ACEOF
 
7689
/* confdefs.h.  */
 
7690
_ACEOF
 
7691
cat confdefs.h >>conftest.$ac_ext
 
7692
cat >>conftest.$ac_ext <<_ACEOF
 
7693
/* end confdefs.h.  */
 
7694
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
7695
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7696
#define shl_load innocuous_shl_load
 
7697
 
 
7698
/* System header to define __stub macros and hopefully few prototypes,
 
7699
    which can conflict with char shl_load (); below.
 
7700
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7701
    <limits.h> exists even on freestanding compilers.  */
 
7702
 
 
7703
#ifdef __STDC__
 
7704
# include <limits.h>
 
7705
#else
 
7706
# include <assert.h>
 
7707
#endif
 
7708
 
 
7709
#undef shl_load
 
7710
 
 
7711
/* Override any gcc2 internal prototype to avoid an error.  */
 
7712
#ifdef __cplusplus
 
7713
extern "C"
 
7714
{
 
7715
#endif
 
7716
/* We use char because int might match the return type of a gcc2
 
7717
   builtin and then its argument prototype would still apply.  */
 
7718
char shl_load ();
 
7719
/* The GNU C library defines this for functions which it implements
 
7720
    to always fail with ENOSYS.  Some functions are actually named
 
7721
    something starting with __ and the normal name is an alias.  */
 
7722
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
7723
choke me
 
7724
#else
 
7725
char (*f) () = shl_load;
 
7726
#endif
 
7727
#ifdef __cplusplus
 
7728
}
 
7729
#endif
 
7730
 
 
7731
int
 
7732
main ()
 
7733
{
 
7734
return f != shl_load;
 
7735
  ;
 
7736
  return 0;
 
7737
}
 
7738
_ACEOF
 
7739
rm -f conftest.$ac_objext conftest$ac_exeext
 
7740
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7741
  (eval $ac_link) 2>conftest.er1
 
7742
  ac_status=$?
 
7743
  grep -v '^ *+' conftest.er1 >conftest.err
 
7744
  rm -f conftest.er1
 
7745
  cat conftest.err >&5
 
7746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7747
  (exit $ac_status); } &&
 
7748
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7750
  (eval $ac_try) 2>&5
 
7751
  ac_status=$?
 
7752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7753
  (exit $ac_status); }; } &&
 
7754
         { ac_try='test -s conftest$ac_exeext'
 
7755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7756
  (eval $ac_try) 2>&5
 
7757
  ac_status=$?
 
7758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7759
  (exit $ac_status); }; }; then
 
7760
  ac_cv_func_shl_load=yes
 
7761
else
 
7762
  echo "$as_me: failed program was:" >&5
 
7763
sed 's/^/| /' conftest.$ac_ext >&5
 
7764
 
 
7765
ac_cv_func_shl_load=no
 
7766
fi
 
7767
rm -f conftest.err conftest.$ac_objext \
 
7768
      conftest$ac_exeext conftest.$ac_ext
 
7769
fi
 
7770
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
7771
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
7772
if test $ac_cv_func_shl_load = yes; then
 
7773
  lt_cv_dlopen="shl_load"
 
7774
else
 
7775
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
7776
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
7777
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
7778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7779
else
 
7780
  ac_check_lib_save_LIBS=$LIBS
 
7781
LIBS="-ldld  $LIBS"
 
7782
cat >conftest.$ac_ext <<_ACEOF
 
7783
/* confdefs.h.  */
 
7784
_ACEOF
 
7785
cat confdefs.h >>conftest.$ac_ext
 
7786
cat >>conftest.$ac_ext <<_ACEOF
 
7787
/* end confdefs.h.  */
 
7788
 
 
7789
/* Override any gcc2 internal prototype to avoid an error.  */
 
7790
#ifdef __cplusplus
 
7791
extern "C"
 
7792
#endif
 
7793
/* We use char because int might match the return type of a gcc2
 
7794
   builtin and then its argument prototype would still apply.  */
 
7795
char shl_load ();
 
7796
int
 
7797
main ()
 
7798
{
 
7799
shl_load ();
 
7800
  ;
 
7801
  return 0;
 
7802
}
 
7803
_ACEOF
 
7804
rm -f conftest.$ac_objext conftest$ac_exeext
 
7805
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7806
  (eval $ac_link) 2>conftest.er1
 
7807
  ac_status=$?
 
7808
  grep -v '^ *+' conftest.er1 >conftest.err
 
7809
  rm -f conftest.er1
 
7810
  cat conftest.err >&5
 
7811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7812
  (exit $ac_status); } &&
 
7813
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7814
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7815
  (eval $ac_try) 2>&5
 
7816
  ac_status=$?
 
7817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7818
  (exit $ac_status); }; } &&
 
7819
         { ac_try='test -s conftest$ac_exeext'
 
7820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7821
  (eval $ac_try) 2>&5
 
7822
  ac_status=$?
 
7823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7824
  (exit $ac_status); }; }; then
 
7825
  ac_cv_lib_dld_shl_load=yes
 
7826
else
 
7827
  echo "$as_me: failed program was:" >&5
 
7828
sed 's/^/| /' conftest.$ac_ext >&5
 
7829
 
 
7830
ac_cv_lib_dld_shl_load=no
 
7831
fi
 
7832
rm -f conftest.err conftest.$ac_objext \
 
7833
      conftest$ac_exeext conftest.$ac_ext
 
7834
LIBS=$ac_check_lib_save_LIBS
 
7835
fi
 
7836
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
7837
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
7838
if test $ac_cv_lib_dld_shl_load = yes; then
 
7839
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
7840
else
 
7841
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
7842
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
7843
if test "${ac_cv_func_dlopen+set}" = set; then
 
7844
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7845
else
 
7846
  cat >conftest.$ac_ext <<_ACEOF
 
7847
/* confdefs.h.  */
 
7848
_ACEOF
 
7849
cat confdefs.h >>conftest.$ac_ext
 
7850
cat >>conftest.$ac_ext <<_ACEOF
 
7851
/* end confdefs.h.  */
 
7852
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
7853
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
7854
#define dlopen innocuous_dlopen
 
7855
 
 
7856
/* System header to define __stub macros and hopefully few prototypes,
 
7857
    which can conflict with char dlopen (); below.
 
7858
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
7859
    <limits.h> exists even on freestanding compilers.  */
 
7860
 
 
7861
#ifdef __STDC__
 
7862
# include <limits.h>
 
7863
#else
 
7864
# include <assert.h>
 
7865
#endif
 
7866
 
 
7867
#undef dlopen
 
7868
 
 
7869
/* Override any gcc2 internal prototype to avoid an error.  */
 
7870
#ifdef __cplusplus
 
7871
extern "C"
 
7872
{
 
7873
#endif
 
7874
/* We use char because int might match the return type of a gcc2
 
7875
   builtin and then its argument prototype would still apply.  */
 
7876
char dlopen ();
 
7877
/* The GNU C library defines this for functions which it implements
 
7878
    to always fail with ENOSYS.  Some functions are actually named
 
7879
    something starting with __ and the normal name is an alias.  */
 
7880
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
7881
choke me
 
7882
#else
 
7883
char (*f) () = dlopen;
 
7884
#endif
 
7885
#ifdef __cplusplus
 
7886
}
 
7887
#endif
 
7888
 
 
7889
int
 
7890
main ()
 
7891
{
 
7892
return f != dlopen;
 
7893
  ;
 
7894
  return 0;
 
7895
}
 
7896
_ACEOF
 
7897
rm -f conftest.$ac_objext conftest$ac_exeext
 
7898
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7899
  (eval $ac_link) 2>conftest.er1
 
7900
  ac_status=$?
 
7901
  grep -v '^ *+' conftest.er1 >conftest.err
 
7902
  rm -f conftest.er1
 
7903
  cat conftest.err >&5
 
7904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7905
  (exit $ac_status); } &&
 
7906
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7907
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7908
  (eval $ac_try) 2>&5
 
7909
  ac_status=$?
 
7910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7911
  (exit $ac_status); }; } &&
 
7912
         { ac_try='test -s conftest$ac_exeext'
 
7913
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7914
  (eval $ac_try) 2>&5
 
7915
  ac_status=$?
 
7916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7917
  (exit $ac_status); }; }; then
 
7918
  ac_cv_func_dlopen=yes
 
7919
else
 
7920
  echo "$as_me: failed program was:" >&5
 
7921
sed 's/^/| /' conftest.$ac_ext >&5
 
7922
 
 
7923
ac_cv_func_dlopen=no
 
7924
fi
 
7925
rm -f conftest.err conftest.$ac_objext \
 
7926
      conftest$ac_exeext conftest.$ac_ext
 
7927
fi
 
7928
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
7929
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
7930
if test $ac_cv_func_dlopen = yes; then
 
7931
  lt_cv_dlopen="dlopen"
 
7932
else
 
7933
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7934
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
7935
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
7936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7937
else
 
7938
  ac_check_lib_save_LIBS=$LIBS
 
7939
LIBS="-ldl  $LIBS"
 
7940
cat >conftest.$ac_ext <<_ACEOF
 
7941
/* confdefs.h.  */
 
7942
_ACEOF
 
7943
cat confdefs.h >>conftest.$ac_ext
 
7944
cat >>conftest.$ac_ext <<_ACEOF
 
7945
/* end confdefs.h.  */
 
7946
 
 
7947
/* Override any gcc2 internal prototype to avoid an error.  */
 
7948
#ifdef __cplusplus
 
7949
extern "C"
 
7950
#endif
 
7951
/* We use char because int might match the return type of a gcc2
 
7952
   builtin and then its argument prototype would still apply.  */
 
7953
char dlopen ();
 
7954
int
 
7955
main ()
 
7956
{
 
7957
dlopen ();
 
7958
  ;
 
7959
  return 0;
 
7960
}
 
7961
_ACEOF
 
7962
rm -f conftest.$ac_objext conftest$ac_exeext
 
7963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7964
  (eval $ac_link) 2>conftest.er1
 
7965
  ac_status=$?
 
7966
  grep -v '^ *+' conftest.er1 >conftest.err
 
7967
  rm -f conftest.er1
 
7968
  cat conftest.err >&5
 
7969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7970
  (exit $ac_status); } &&
 
7971
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7973
  (eval $ac_try) 2>&5
 
7974
  ac_status=$?
 
7975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7976
  (exit $ac_status); }; } &&
 
7977
         { ac_try='test -s conftest$ac_exeext'
 
7978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7979
  (eval $ac_try) 2>&5
 
7980
  ac_status=$?
 
7981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7982
  (exit $ac_status); }; }; then
 
7983
  ac_cv_lib_dl_dlopen=yes
 
7984
else
 
7985
  echo "$as_me: failed program was:" >&5
 
7986
sed 's/^/| /' conftest.$ac_ext >&5
 
7987
 
 
7988
ac_cv_lib_dl_dlopen=no
 
7989
fi
 
7990
rm -f conftest.err conftest.$ac_objext \
 
7991
      conftest$ac_exeext conftest.$ac_ext
 
7992
LIBS=$ac_check_lib_save_LIBS
 
7993
fi
 
7994
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
7995
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
7996
if test $ac_cv_lib_dl_dlopen = yes; then
 
7997
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
7998
else
 
7999
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8000
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8001
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8002
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8003
else
 
8004
  ac_check_lib_save_LIBS=$LIBS
 
8005
LIBS="-lsvld  $LIBS"
 
8006
cat >conftest.$ac_ext <<_ACEOF
 
8007
/* confdefs.h.  */
 
8008
_ACEOF
 
8009
cat confdefs.h >>conftest.$ac_ext
 
8010
cat >>conftest.$ac_ext <<_ACEOF
 
8011
/* end confdefs.h.  */
 
8012
 
 
8013
/* Override any gcc2 internal prototype to avoid an error.  */
 
8014
#ifdef __cplusplus
 
8015
extern "C"
 
8016
#endif
 
8017
/* We use char because int might match the return type of a gcc2
 
8018
   builtin and then its argument prototype would still apply.  */
 
8019
char dlopen ();
 
8020
int
 
8021
main ()
 
8022
{
 
8023
dlopen ();
 
8024
  ;
 
8025
  return 0;
 
8026
}
 
8027
_ACEOF
 
8028
rm -f conftest.$ac_objext conftest$ac_exeext
 
8029
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8030
  (eval $ac_link) 2>conftest.er1
 
8031
  ac_status=$?
 
8032
  grep -v '^ *+' conftest.er1 >conftest.err
 
8033
  rm -f conftest.er1
 
8034
  cat conftest.err >&5
 
8035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8036
  (exit $ac_status); } &&
 
8037
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8038
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8039
  (eval $ac_try) 2>&5
 
8040
  ac_status=$?
 
8041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8042
  (exit $ac_status); }; } &&
 
8043
         { ac_try='test -s conftest$ac_exeext'
 
8044
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8045
  (eval $ac_try) 2>&5
 
8046
  ac_status=$?
 
8047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8048
  (exit $ac_status); }; }; then
 
8049
  ac_cv_lib_svld_dlopen=yes
 
8050
else
 
8051
  echo "$as_me: failed program was:" >&5
 
8052
sed 's/^/| /' conftest.$ac_ext >&5
 
8053
 
 
8054
ac_cv_lib_svld_dlopen=no
 
8055
fi
 
8056
rm -f conftest.err conftest.$ac_objext \
 
8057
      conftest$ac_exeext conftest.$ac_ext
 
8058
LIBS=$ac_check_lib_save_LIBS
 
8059
fi
 
8060
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8061
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8062
if test $ac_cv_lib_svld_dlopen = yes; then
 
8063
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8064
else
 
8065
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8066
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8067
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8069
else
 
8070
  ac_check_lib_save_LIBS=$LIBS
 
8071
LIBS="-ldld  $LIBS"
 
8072
cat >conftest.$ac_ext <<_ACEOF
 
8073
/* confdefs.h.  */
 
8074
_ACEOF
 
8075
cat confdefs.h >>conftest.$ac_ext
 
8076
cat >>conftest.$ac_ext <<_ACEOF
 
8077
/* end confdefs.h.  */
 
8078
 
 
8079
/* Override any gcc2 internal prototype to avoid an error.  */
 
8080
#ifdef __cplusplus
 
8081
extern "C"
 
8082
#endif
 
8083
/* We use char because int might match the return type of a gcc2
 
8084
   builtin and then its argument prototype would still apply.  */
 
8085
char dld_link ();
 
8086
int
 
8087
main ()
 
8088
{
 
8089
dld_link ();
 
8090
  ;
 
8091
  return 0;
 
8092
}
 
8093
_ACEOF
 
8094
rm -f conftest.$ac_objext conftest$ac_exeext
 
8095
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8096
  (eval $ac_link) 2>conftest.er1
 
8097
  ac_status=$?
 
8098
  grep -v '^ *+' conftest.er1 >conftest.err
 
8099
  rm -f conftest.er1
 
8100
  cat conftest.err >&5
 
8101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8102
  (exit $ac_status); } &&
 
8103
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8105
  (eval $ac_try) 2>&5
 
8106
  ac_status=$?
 
8107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8108
  (exit $ac_status); }; } &&
 
8109
         { ac_try='test -s conftest$ac_exeext'
 
8110
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8111
  (eval $ac_try) 2>&5
 
8112
  ac_status=$?
 
8113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8114
  (exit $ac_status); }; }; then
 
8115
  ac_cv_lib_dld_dld_link=yes
 
8116
else
 
8117
  echo "$as_me: failed program was:" >&5
 
8118
sed 's/^/| /' conftest.$ac_ext >&5
 
8119
 
 
8120
ac_cv_lib_dld_dld_link=no
 
8121
fi
 
8122
rm -f conftest.err conftest.$ac_objext \
 
8123
      conftest$ac_exeext conftest.$ac_ext
 
8124
LIBS=$ac_check_lib_save_LIBS
 
8125
fi
 
8126
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8127
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8128
if test $ac_cv_lib_dld_dld_link = yes; then
 
8129
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8130
fi
 
8131
 
 
8132
 
 
8133
fi
 
8134
 
 
8135
 
 
8136
fi
 
8137
 
 
8138
 
 
8139
fi
 
8140
 
 
8141
 
 
8142
fi
 
8143
 
 
8144
 
 
8145
fi
 
8146
 
 
8147
    ;;
 
8148
  esac
 
8149
 
 
8150
  if test "x$lt_cv_dlopen" != xno; then
 
8151
    enable_dlopen=yes
 
8152
  else
 
8153
    enable_dlopen=no
 
8154
  fi
 
8155
 
 
8156
  case $lt_cv_dlopen in
 
8157
  dlopen)
 
8158
    save_CPPFLAGS="$CPPFLAGS"
 
8159
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8160
 
 
8161
    save_LDFLAGS="$LDFLAGS"
 
8162
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
8163
 
 
8164
    save_LIBS="$LIBS"
 
8165
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
8166
 
 
8167
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8168
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
8169
if test "${lt_cv_dlopen_self+set}" = set; then
 
8170
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8171
else
 
8172
          if test "$cross_compiling" = yes; then :
 
8173
  lt_cv_dlopen_self=cross
 
8174
else
 
8175
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8176
  lt_status=$lt_dlunknown
 
8177
  cat > conftest.$ac_ext <<EOF
 
8178
#line 8178 "configure"
 
8179
#include "confdefs.h"
 
8180
 
 
8181
#if HAVE_DLFCN_H
 
8182
#include <dlfcn.h>
 
8183
#endif
 
8184
 
 
8185
#include <stdio.h>
 
8186
 
 
8187
#ifdef RTLD_GLOBAL
 
8188
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8189
#else
 
8190
#  ifdef DL_GLOBAL
 
8191
#    define LT_DLGLOBAL         DL_GLOBAL
 
8192
#  else
 
8193
#    define LT_DLGLOBAL         0
 
8194
#  endif
 
8195
#endif
 
8196
 
 
8197
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8198
   find out it does not work in some platform. */
 
8199
#ifndef LT_DLLAZY_OR_NOW
 
8200
#  ifdef RTLD_LAZY
 
8201
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8202
#  else
 
8203
#    ifdef DL_LAZY
 
8204
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8205
#    else
 
8206
#      ifdef RTLD_NOW
 
8207
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8208
#      else
 
8209
#        ifdef DL_NOW
 
8210
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8211
#        else
 
8212
#          define LT_DLLAZY_OR_NOW      0
 
8213
#        endif
 
8214
#      endif
 
8215
#    endif
 
8216
#  endif
 
8217
#endif
 
8218
 
 
8219
#ifdef __cplusplus
 
8220
extern "C" void exit (int);
 
8221
#endif
 
8222
 
 
8223
void fnord() { int i=42;}
 
8224
int main ()
 
8225
{
 
8226
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8227
  int status = $lt_dlunknown;
 
8228
 
 
8229
  if (self)
 
8230
    {
 
8231
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8232
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8233
      /* dlclose (self); */
 
8234
    }
 
8235
  else
 
8236
    puts (dlerror ());
 
8237
 
 
8238
    exit (status);
 
8239
}
 
8240
EOF
 
8241
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8242
  (eval $ac_link) 2>&5
 
8243
  ac_status=$?
 
8244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8245
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8246
    (./conftest; exit; ) >&5 2>/dev/null
 
8247
    lt_status=$?
 
8248
    case x$lt_status in
 
8249
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
8250
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
8251
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
8252
    esac
 
8253
  else :
 
8254
    # compilation failed
 
8255
    lt_cv_dlopen_self=no
 
8256
  fi
 
8257
fi
 
8258
rm -fr conftest*
 
8259
 
 
8260
 
 
8261
fi
 
8262
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8263
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
8264
 
 
8265
    if test "x$lt_cv_dlopen_self" = xyes; then
 
8266
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
8267
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8268
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
8269
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
8270
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8271
else
 
8272
          if test "$cross_compiling" = yes; then :
 
8273
  lt_cv_dlopen_self_static=cross
 
8274
else
 
8275
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8276
  lt_status=$lt_dlunknown
 
8277
  cat > conftest.$ac_ext <<EOF
 
8278
#line 8278 "configure"
 
8279
#include "confdefs.h"
 
8280
 
 
8281
#if HAVE_DLFCN_H
 
8282
#include <dlfcn.h>
 
8283
#endif
 
8284
 
 
8285
#include <stdio.h>
 
8286
 
 
8287
#ifdef RTLD_GLOBAL
 
8288
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8289
#else
 
8290
#  ifdef DL_GLOBAL
 
8291
#    define LT_DLGLOBAL         DL_GLOBAL
 
8292
#  else
 
8293
#    define LT_DLGLOBAL         0
 
8294
#  endif
 
8295
#endif
 
8296
 
 
8297
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8298
   find out it does not work in some platform. */
 
8299
#ifndef LT_DLLAZY_OR_NOW
 
8300
#  ifdef RTLD_LAZY
 
8301
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8302
#  else
 
8303
#    ifdef DL_LAZY
 
8304
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8305
#    else
 
8306
#      ifdef RTLD_NOW
 
8307
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8308
#      else
 
8309
#        ifdef DL_NOW
 
8310
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8311
#        else
 
8312
#          define LT_DLLAZY_OR_NOW      0
 
8313
#        endif
 
8314
#      endif
 
8315
#    endif
 
8316
#  endif
 
8317
#endif
 
8318
 
 
8319
#ifdef __cplusplus
 
8320
extern "C" void exit (int);
 
8321
#endif
 
8322
 
 
8323
void fnord() { int i=42;}
 
8324
int main ()
 
8325
{
 
8326
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8327
  int status = $lt_dlunknown;
 
8328
 
 
8329
  if (self)
 
8330
    {
 
8331
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8332
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8333
      /* dlclose (self); */
 
8334
    }
 
8335
  else
 
8336
    puts (dlerror ());
 
8337
 
 
8338
    exit (status);
 
8339
}
 
8340
EOF
 
8341
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8342
  (eval $ac_link) 2>&5
 
8343
  ac_status=$?
 
8344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8345
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8346
    (./conftest; exit; ) >&5 2>/dev/null
 
8347
    lt_status=$?
 
8348
    case x$lt_status in
 
8349
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
8350
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
8351
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
8352
    esac
 
8353
  else :
 
8354
    # compilation failed
 
8355
    lt_cv_dlopen_self_static=no
 
8356
  fi
 
8357
fi
 
8358
rm -fr conftest*
 
8359
 
 
8360
 
 
8361
fi
 
8362
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
8363
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
8364
    fi
 
8365
 
 
8366
    CPPFLAGS="$save_CPPFLAGS"
 
8367
    LDFLAGS="$save_LDFLAGS"
 
8368
    LIBS="$save_LIBS"
 
8369
    ;;
 
8370
  esac
 
8371
 
 
8372
  case $lt_cv_dlopen_self in
 
8373
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
8374
  *) enable_dlopen_self=unknown ;;
 
8375
  esac
 
8376
 
 
8377
  case $lt_cv_dlopen_self_static in
 
8378
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
8379
  *) enable_dlopen_self_static=unknown ;;
 
8380
  esac
 
8381
fi
 
8382
 
 
8383
 
 
8384
# Report which library types will actually be built
 
8385
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
8386
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
8387
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
8388
echo "${ECHO_T}$can_build_shared" >&6
 
8389
 
 
8390
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
8391
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
8392
test "$can_build_shared" = "no" && enable_shared=no
 
8393
 
 
8394
# On AIX, shared libraries and static libraries use the same namespace, and
 
8395
# are all built from PIC.
 
8396
case $host_os in
 
8397
aix3*)
 
8398
  test "$enable_shared" = yes && enable_static=no
 
8399
  if test -n "$RANLIB"; then
 
8400
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
8401
    postinstall_cmds='$RANLIB $lib'
 
8402
  fi
 
8403
  ;;
 
8404
 
 
8405
aix4* | aix5*)
 
8406
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
8407
    test "$enable_shared" = yes && enable_static=no
 
8408
  fi
 
8409
    ;;
 
8410
esac
 
8411
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
8412
echo "${ECHO_T}$enable_shared" >&6
 
8413
 
 
8414
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
8415
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
8416
# Make sure either enable_shared or enable_static is yes.
 
8417
test "$enable_shared" = yes || enable_static=yes
 
8418
echo "$as_me:$LINENO: result: $enable_static" >&5
 
8419
echo "${ECHO_T}$enable_static" >&6
 
8420
 
 
8421
# The else clause should only fire when bootstrapping the
 
8422
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
8423
# with your package, and you will get complaints that there are
 
8424
# no rules to generate ltmain.sh.
 
8425
if test -f "$ltmain"; then
 
8426
  # See if we are running on zsh, and set the options which allow our commands through
 
8427
  # without removal of \ escapes.
 
8428
  if test -n "${ZSH_VERSION+set}" ; then
 
8429
    setopt NO_GLOB_SUBST
 
8430
  fi
 
8431
  # Now quote all the things that may contain metacharacters while being
 
8432
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
8433
  # variables and quote the copies for generation of the libtool script.
 
8434
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
8435
    SED SHELL STRIP \
 
8436
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
8437
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
8438
    deplibs_check_method reload_flag reload_cmds need_locks \
 
8439
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
8440
    lt_cv_sys_global_symbol_to_c_name_address \
 
8441
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
8442
    old_postinstall_cmds old_postuninstall_cmds \
 
8443
    compiler \
 
8444
    CC \
 
8445
    LD \
 
8446
    lt_prog_compiler_wl \
 
8447
    lt_prog_compiler_pic \
 
8448
    lt_prog_compiler_static \
 
8449
    lt_prog_compiler_no_builtin_flag \
 
8450
    export_dynamic_flag_spec \
 
8451
    thread_safe_flag_spec \
 
8452
    whole_archive_flag_spec \
 
8453
    enable_shared_with_static_runtimes \
 
8454
    old_archive_cmds \
 
8455
    old_archive_from_new_cmds \
 
8456
    predep_objects \
 
8457
    postdep_objects \
 
8458
    predeps \
 
8459
    postdeps \
 
8460
    compiler_lib_search_path \
 
8461
    archive_cmds \
 
8462
    archive_expsym_cmds \
 
8463
    postinstall_cmds \
 
8464
    postuninstall_cmds \
 
8465
    old_archive_from_expsyms_cmds \
 
8466
    allow_undefined_flag \
 
8467
    no_undefined_flag \
 
8468
    export_symbols_cmds \
 
8469
    hardcode_libdir_flag_spec \
 
8470
    hardcode_libdir_flag_spec_ld \
 
8471
    hardcode_libdir_separator \
 
8472
    hardcode_automatic \
 
8473
    module_cmds \
 
8474
    module_expsym_cmds \
 
8475
    lt_cv_prog_compiler_c_o \
 
8476
    exclude_expsyms \
 
8477
    include_expsyms; do
 
8478
 
 
8479
    case $var in
 
8480
    old_archive_cmds | \
 
8481
    old_archive_from_new_cmds | \
 
8482
    archive_cmds | \
 
8483
    archive_expsym_cmds | \
 
8484
    module_cmds | \
 
8485
    module_expsym_cmds | \
 
8486
    old_archive_from_expsyms_cmds | \
 
8487
    export_symbols_cmds | \
 
8488
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
8489
    postinstall_cmds | postuninstall_cmds | \
 
8490
    old_postinstall_cmds | old_postuninstall_cmds | \
 
8491
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
8492
      # Double-quote double-evaled strings.
 
8493
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
8494
      ;;
 
8495
    *)
 
8496
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
8497
      ;;
 
8498
    esac
 
8499
  done
 
8500
 
 
8501
  case $lt_echo in
 
8502
  *'\$0 --fallback-echo"')
 
8503
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
8504
    ;;
 
8505
  esac
 
8506
 
 
8507
cfgfile="${ofile}T"
 
8508
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
8509
  $rm -f "$cfgfile"
 
8510
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
8511
echo "$as_me: creating $ofile" >&6;}
 
8512
 
 
8513
  cat <<__EOF__ >> "$cfgfile"
 
8514
#! $SHELL
 
8515
 
 
8516
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
8517
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
8518
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
8519
#
 
8520
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
8521
# Free Software Foundation, Inc.
 
8522
#
 
8523
# This file is part of GNU Libtool:
 
8524
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
8525
#
 
8526
# This program is free software; you can redistribute it and/or modify
 
8527
# it under the terms of the GNU General Public License as published by
 
8528
# the Free Software Foundation; either version 2 of the License, or
 
8529
# (at your option) any later version.
 
8530
#
 
8531
# This program is distributed in the hope that it will be useful, but
 
8532
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
8533
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
8534
# General Public License for more details.
 
8535
#
 
8536
# You should have received a copy of the GNU General Public License
 
8537
# along with this program; if not, write to the Free Software
 
8538
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
8539
#
 
8540
# As a special exception to the GNU General Public License, if you
 
8541
# distribute this file as part of a program that contains a
 
8542
# configuration script generated by Autoconf, you may include it under
 
8543
# the same distribution terms that you use for the rest of that program.
 
8544
 
 
8545
# A sed program that does not truncate output.
 
8546
SED=$lt_SED
 
8547
 
 
8548
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
8549
Xsed="$SED -e 1s/^X//"
 
8550
 
 
8551
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
8552
# if CDPATH is set.
 
8553
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
8554
 
 
8555
# The names of the tagged configurations supported by this script.
 
8556
available_tags=
 
8557
 
 
8558
# ### BEGIN LIBTOOL CONFIG
 
8559
 
 
8560
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
8561
 
 
8562
# Shell to use when invoking shell scripts.
 
8563
SHELL=$lt_SHELL
 
8564
 
 
8565
# Whether or not to build shared libraries.
 
8566
build_libtool_libs=$enable_shared
 
8567
 
 
8568
# Whether or not to build static libraries.
 
8569
build_old_libs=$enable_static
 
8570
 
 
8571
# Whether or not to add -lc for building shared libraries.
 
8572
build_libtool_need_lc=$archive_cmds_need_lc
 
8573
 
 
8574
# Whether or not to disallow shared libs when runtime libs are static
 
8575
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
8576
 
 
8577
# Whether or not to optimize for fast installation.
 
8578
fast_install=$enable_fast_install
 
8579
 
 
8580
# The host system.
 
8581
host_alias=$host_alias
 
8582
host=$host
 
8583
host_os=$host_os
 
8584
 
 
8585
# The build system.
 
8586
build_alias=$build_alias
 
8587
build=$build
 
8588
build_os=$build_os
 
8589
 
 
8590
# An echo program that does not interpret backslashes.
 
8591
echo=$lt_echo
 
8592
 
 
8593
# The archiver.
 
8594
AR=$lt_AR
 
8595
AR_FLAGS=$lt_AR_FLAGS
 
8596
 
 
8597
# A C compiler.
 
8598
LTCC=$lt_LTCC
 
8599
 
 
8600
# LTCC compiler flags.
 
8601
LTCFLAGS=$lt_LTCFLAGS
 
8602
 
 
8603
# A language-specific compiler.
 
8604
CC=$lt_compiler
 
8605
 
 
8606
# Is the compiler the GNU C compiler?
 
8607
with_gcc=$GCC
 
8608
 
 
8609
# An ERE matcher.
 
8610
EGREP=$lt_EGREP
 
8611
 
 
8612
# The linker used to build libraries.
 
8613
LD=$lt_LD
 
8614
 
 
8615
# Whether we need hard or soft links.
 
8616
LN_S=$lt_LN_S
 
8617
 
 
8618
# A BSD-compatible nm program.
 
8619
NM=$lt_NM
 
8620
 
 
8621
# A symbol stripping program
 
8622
STRIP=$lt_STRIP
 
8623
 
 
8624
# Used to examine libraries when file_magic_cmd begins "file"
 
8625
MAGIC_CMD=$MAGIC_CMD
 
8626
 
 
8627
# Used on cygwin: DLL creation program.
 
8628
DLLTOOL="$DLLTOOL"
 
8629
 
 
8630
# Used on cygwin: object dumper.
 
8631
OBJDUMP="$OBJDUMP"
 
8632
 
 
8633
# Used on cygwin: assembler.
 
8634
AS="$AS"
 
8635
 
 
8636
# The name of the directory that contains temporary libtool files.
 
8637
objdir=$objdir
 
8638
 
 
8639
# How to create reloadable object files.
 
8640
reload_flag=$lt_reload_flag
 
8641
reload_cmds=$lt_reload_cmds
 
8642
 
 
8643
# How to pass a linker flag through the compiler.
 
8644
wl=$lt_lt_prog_compiler_wl
 
8645
 
 
8646
# Object file suffix (normally "o").
 
8647
objext="$ac_objext"
 
8648
 
 
8649
# Old archive suffix (normally "a").
 
8650
libext="$libext"
 
8651
 
 
8652
# Shared library suffix (normally ".so").
 
8653
shrext_cmds='$shrext_cmds'
 
8654
 
 
8655
# Executable file suffix (normally "").
 
8656
exeext="$exeext"
 
8657
 
 
8658
# Additional compiler flags for building library objects.
 
8659
pic_flag=$lt_lt_prog_compiler_pic
 
8660
pic_mode=$pic_mode
 
8661
 
 
8662
# What is the maximum length of a command?
 
8663
max_cmd_len=$lt_cv_sys_max_cmd_len
 
8664
 
 
8665
# Does compiler simultaneously support -c and -o options?
 
8666
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
8667
 
 
8668
# Must we lock files when doing compilation?
 
8669
need_locks=$lt_need_locks
 
8670
 
 
8671
# Do we need the lib prefix for modules?
 
8672
need_lib_prefix=$need_lib_prefix
 
8673
 
 
8674
# Do we need a version for libraries?
 
8675
need_version=$need_version
 
8676
 
 
8677
# Whether dlopen is supported.
 
8678
dlopen_support=$enable_dlopen
 
8679
 
 
8680
# Whether dlopen of programs is supported.
 
8681
dlopen_self=$enable_dlopen_self
 
8682
 
 
8683
# Whether dlopen of statically linked programs is supported.
 
8684
dlopen_self_static=$enable_dlopen_self_static
 
8685
 
 
8686
# Compiler flag to prevent dynamic linking.
 
8687
link_static_flag=$lt_lt_prog_compiler_static
 
8688
 
 
8689
# Compiler flag to turn off builtin functions.
 
8690
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
8691
 
 
8692
# Compiler flag to allow reflexive dlopens.
 
8693
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
8694
 
 
8695
# Compiler flag to generate shared objects directly from archives.
 
8696
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
8697
 
 
8698
# Compiler flag to generate thread-safe objects.
 
8699
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
8700
 
 
8701
# Library versioning type.
 
8702
version_type=$version_type
 
8703
 
 
8704
# Format of library name prefix.
 
8705
libname_spec=$lt_libname_spec
 
8706
 
 
8707
# List of archive names.  First name is the real one, the rest are links.
 
8708
# The last name is the one that the linker finds with -lNAME.
 
8709
library_names_spec=$lt_library_names_spec
 
8710
 
 
8711
# The coded name of the library, if different from the real name.
 
8712
soname_spec=$lt_soname_spec
 
8713
 
 
8714
# Commands used to build and install an old-style archive.
 
8715
RANLIB=$lt_RANLIB
 
8716
old_archive_cmds=$lt_old_archive_cmds
 
8717
old_postinstall_cmds=$lt_old_postinstall_cmds
 
8718
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
8719
 
 
8720
# Create an old-style archive from a shared archive.
 
8721
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
8722
 
 
8723
# Create a temporary old-style archive to link instead of a shared archive.
 
8724
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
8725
 
 
8726
# Commands used to build and install a shared archive.
 
8727
archive_cmds=$lt_archive_cmds
 
8728
archive_expsym_cmds=$lt_archive_expsym_cmds
 
8729
postinstall_cmds=$lt_postinstall_cmds
 
8730
postuninstall_cmds=$lt_postuninstall_cmds
 
8731
 
 
8732
# Commands used to build a loadable module (assumed same as above if empty)
 
8733
module_cmds=$lt_module_cmds
 
8734
module_expsym_cmds=$lt_module_expsym_cmds
 
8735
 
 
8736
# Commands to strip libraries.
 
8737
old_striplib=$lt_old_striplib
 
8738
striplib=$lt_striplib
 
8739
 
 
8740
# Dependencies to place before the objects being linked to create a
 
8741
# shared library.
 
8742
predep_objects=$lt_predep_objects
 
8743
 
 
8744
# Dependencies to place after the objects being linked to create a
 
8745
# shared library.
 
8746
postdep_objects=$lt_postdep_objects
 
8747
 
 
8748
# Dependencies to place before the objects being linked to create a
 
8749
# shared library.
 
8750
predeps=$lt_predeps
 
8751
 
 
8752
# Dependencies to place after the objects being linked to create a
 
8753
# shared library.
 
8754
postdeps=$lt_postdeps
 
8755
 
 
8756
# The library search path used internally by the compiler when linking
 
8757
# a shared library.
 
8758
compiler_lib_search_path=$lt_compiler_lib_search_path
 
8759
 
 
8760
# Method to check whether dependent libraries are shared objects.
 
8761
deplibs_check_method=$lt_deplibs_check_method
 
8762
 
 
8763
# Command to use when deplibs_check_method == file_magic.
 
8764
file_magic_cmd=$lt_file_magic_cmd
 
8765
 
 
8766
# Flag that allows shared libraries with undefined symbols to be built.
 
8767
allow_undefined_flag=$lt_allow_undefined_flag
 
8768
 
 
8769
# Flag that forces no undefined symbols.
 
8770
no_undefined_flag=$lt_no_undefined_flag
 
8771
 
 
8772
# Commands used to finish a libtool library installation in a directory.
 
8773
finish_cmds=$lt_finish_cmds
 
8774
 
 
8775
# Same as above, but a single script fragment to be evaled but not shown.
 
8776
finish_eval=$lt_finish_eval
 
8777
 
 
8778
# Take the output of nm and produce a listing of raw symbols and C names.
 
8779
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
8780
 
 
8781
# Transform the output of nm in a proper C declaration
 
8782
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
8783
 
 
8784
# Transform the output of nm in a C name address pair
 
8785
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
8786
 
 
8787
# This is the shared library runtime path variable.
 
8788
runpath_var=$runpath_var
 
8789
 
 
8790
# This is the shared library path variable.
 
8791
shlibpath_var=$shlibpath_var
 
8792
 
 
8793
# Is shlibpath searched before the hard-coded library search path?
 
8794
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
8795
 
 
8796
# How to hardcode a shared library path into an executable.
 
8797
hardcode_action=$hardcode_action
 
8798
 
 
8799
# Whether we should hardcode library paths into libraries.
 
8800
hardcode_into_libs=$hardcode_into_libs
 
8801
 
 
8802
# Flag to hardcode \$libdir into a binary during linking.
 
8803
# This must work even if \$libdir does not exist.
 
8804
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
8805
 
 
8806
# If ld is used when linking, flag to hardcode \$libdir into
 
8807
# a binary during linking. This must work even if \$libdir does
 
8808
# not exist.
 
8809
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
8810
 
 
8811
# Whether we need a single -rpath flag with a separated argument.
 
8812
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
8813
 
 
8814
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
8815
# resulting binary.
 
8816
hardcode_direct=$hardcode_direct
 
8817
 
 
8818
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
8819
# resulting binary.
 
8820
hardcode_minus_L=$hardcode_minus_L
 
8821
 
 
8822
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
8823
# the resulting binary.
 
8824
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
8825
 
 
8826
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
8827
# and all subsequent libraries and executables linked against it.
 
8828
hardcode_automatic=$hardcode_automatic
 
8829
 
 
8830
# Variables whose values should be saved in libtool wrapper scripts and
 
8831
# restored at relink time.
 
8832
variables_saved_for_relink="$variables_saved_for_relink"
 
8833
 
 
8834
# Whether libtool must link a program against all its dependency libraries.
 
8835
link_all_deplibs=$link_all_deplibs
 
8836
 
 
8837
# Compile-time system search path for libraries
 
8838
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
8839
 
 
8840
# Run-time system search path for libraries
 
8841
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
8842
 
 
8843
# Fix the shell variable \$srcfile for the compiler.
 
8844
fix_srcfile_path="$fix_srcfile_path"
 
8845
 
 
8846
# Set to yes if exported symbols are required.
 
8847
always_export_symbols=$always_export_symbols
 
8848
 
 
8849
# The commands to list exported symbols.
 
8850
export_symbols_cmds=$lt_export_symbols_cmds
 
8851
 
 
8852
# The commands to extract the exported symbol list from a shared archive.
 
8853
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
8854
 
 
8855
# Symbols that should not be listed in the preloaded symbols.
 
8856
exclude_expsyms=$lt_exclude_expsyms
 
8857
 
 
8858
# Symbols that must always be exported.
 
8859
include_expsyms=$lt_include_expsyms
 
8860
 
 
8861
# ### END LIBTOOL CONFIG
 
8862
 
 
8863
__EOF__
 
8864
 
 
8865
 
 
8866
  case $host_os in
 
8867
  aix3*)
 
8868
    cat <<\EOF >> "$cfgfile"
 
8869
 
 
8870
# AIX sometimes has problems with the GCC collect2 program.  For some
 
8871
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
8872
# vanish in a puff of smoke.
 
8873
if test "X${COLLECT_NAMES+set}" != Xset; then
 
8874
  COLLECT_NAMES=
 
8875
  export COLLECT_NAMES
 
8876
fi
 
8877
EOF
 
8878
    ;;
 
8879
  esac
 
8880
 
 
8881
  # We use sed instead of cat because bash on DJGPP gets confused if
 
8882
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
8883
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
8884
  # is reportedly fixed, but why not run on old versions too?
 
8885
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
8886
 
 
8887
  mv -f "$cfgfile" "$ofile" || \
 
8888
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
8889
  chmod +x "$ofile"
 
8890
 
 
8891
else
 
8892
  # If there is no Makefile yet, we rely on a make rule to execute
 
8893
  # `config.status --recheck' to rerun these tests and create the
 
8894
  # libtool script then.
 
8895
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
8896
  if test -f "$ltmain_in"; then
 
8897
    test -f Makefile && make "$ltmain"
 
8898
  fi
 
8899
fi
 
8900
 
 
8901
 
 
8902
ac_ext=c
 
8903
ac_cpp='$CPP $CPPFLAGS'
 
8904
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8905
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8906
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8907
 
 
8908
CC="$lt_save_CC"
 
8909
 
 
8910
 
 
8911
  if test -f "$ltmain"; then
 
8912
    if test ! -f "${ofile}"; then
 
8913
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
8914
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
8915
    fi
 
8916
 
 
8917
    if test -z "$LTCC"; then
 
8918
      eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
8919
      if test -z "$LTCC"; then
 
8920
        { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
8921
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
8922
      else
 
8923
        { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
8924
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
8925
      fi
 
8926
    fi
 
8927
 
 
8928
 
 
8929
  fi
 
8930
 
 
8931
 
 
8932
 
 
8933
 
 
8934
# This can be used to rebuild libtool when needed
 
8935
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
8936
 
 
8937
# Always use our own libtool.
 
8938
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
8939
 
 
8940
# Prevent multiple expansion
 
8941
 
 
8942
 
 
8943
 
 
8944
 
 
8945
 
 
8946
 
 
8947
 
 
8948
 
 
8949
 
 
8950
 
 
8951
 
 
8952
  echo "$as_me:$LINENO: checking to see if compiler understands -Wall" >&5
 
8953
echo $ECHO_N "checking to see if compiler understands -Wall... $ECHO_C" >&6
 
8954
 
 
8955
  save_CFLAGS="$CFLAGS"
 
8956
  CFLAGS="$CFLAGS -Wall"
 
8957
 
 
8958
  cat >conftest.$ac_ext <<_ACEOF
 
8959
/* confdefs.h.  */
 
8960
_ACEOF
 
8961
cat confdefs.h >>conftest.$ac_ext
 
8962
cat >>conftest.$ac_ext <<_ACEOF
 
8963
/* end confdefs.h.  */
 
8964
 
 
8965
int
 
8966
main ()
 
8967
{
 
8968
 
 
8969
  ;
 
8970
  return 0;
 
8971
}
 
8972
_ACEOF
 
8973
rm -f conftest.$ac_objext
 
8974
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8975
  (eval $ac_compile) 2>conftest.er1
 
8976
  ac_status=$?
 
8977
  grep -v '^ *+' conftest.er1 >conftest.err
 
8978
  rm -f conftest.er1
 
8979
  cat conftest.err >&5
 
8980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8981
  (exit $ac_status); } &&
 
8982
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8984
  (eval $ac_try) 2>&5
 
8985
  ac_status=$?
 
8986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8987
  (exit $ac_status); }; } &&
 
8988
         { ac_try='test -s conftest.$ac_objext'
 
8989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8990
  (eval $ac_try) 2>&5
 
8991
  ac_status=$?
 
8992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8993
  (exit $ac_status); }; }; then
 
8994
  flag_ok=yes
 
8995
else
 
8996
  echo "$as_me: failed program was:" >&5
 
8997
sed 's/^/| /' conftest.$ac_ext >&5
 
8998
 
 
8999
flag_ok=no
 
9000
fi
 
9001
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9002
  CFLAGS="$save_CFLAGS"
 
9003
 
 
9004
  if test "X$flag_ok" = Xyes ; then
 
9005
    GST_WALL="yes"
 
9006
    true
 
9007
  else
 
9008
    GST_WALL="no"
 
9009
    true
 
9010
  fi
 
9011
  echo "$as_me:$LINENO: result: $flag_ok" >&5
 
9012
echo "${ECHO_T}$flag_ok" >&6
 
9013
 
 
9014
 
 
9015
if test "x$GST_WALL" = "xyes"; then
 
9016
   GST_ERROR="$GST_ERROR -Wall"
 
9017
 
 
9018
   if test "x$GST_PLUGIN_TRUNK" = "xyes"; then
 
9019
 
 
9020
  echo "$as_me:$LINENO: checking to see if compiler understands -Werror" >&5
 
9021
echo $ECHO_N "checking to see if compiler understands -Werror... $ECHO_C" >&6
 
9022
 
 
9023
  save_CFLAGS="$CFLAGS"
 
9024
  CFLAGS="$CFLAGS -Werror"
 
9025
 
 
9026
  cat >conftest.$ac_ext <<_ACEOF
 
9027
/* confdefs.h.  */
 
9028
_ACEOF
 
9029
cat confdefs.h >>conftest.$ac_ext
 
9030
cat >>conftest.$ac_ext <<_ACEOF
 
9031
/* end confdefs.h.  */
 
9032
 
 
9033
int
 
9034
main ()
 
9035
{
 
9036
 
 
9037
  ;
 
9038
  return 0;
 
9039
}
 
9040
_ACEOF
 
9041
rm -f conftest.$ac_objext
 
9042
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9043
  (eval $ac_compile) 2>conftest.er1
 
9044
  ac_status=$?
 
9045
  grep -v '^ *+' conftest.er1 >conftest.err
 
9046
  rm -f conftest.er1
 
9047
  cat conftest.err >&5
 
9048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9049
  (exit $ac_status); } &&
 
9050
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9051
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9052
  (eval $ac_try) 2>&5
 
9053
  ac_status=$?
 
9054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9055
  (exit $ac_status); }; } &&
 
9056
         { ac_try='test -s conftest.$ac_objext'
 
9057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9058
  (eval $ac_try) 2>&5
 
9059
  ac_status=$?
 
9060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9061
  (exit $ac_status); }; }; then
 
9062
  flag_ok=yes
 
9063
else
 
9064
  echo "$as_me: failed program was:" >&5
 
9065
sed 's/^/| /' conftest.$ac_ext >&5
 
9066
 
 
9067
flag_ok=no
 
9068
fi
 
9069
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9070
  CFLAGS="$save_CFLAGS"
 
9071
 
 
9072
  if test "X$flag_ok" = Xyes ; then
 
9073
    GST_ERROR="$GST_ERROR -Werror"
 
9074
    true
 
9075
  else
 
9076
    GST_ERROR="$GST_ERROR"
 
9077
    true
 
9078
  fi
 
9079
  echo "$as_me:$LINENO: result: $flag_ok" >&5
 
9080
echo "${ECHO_T}$flag_ok" >&6
 
9081
 
 
9082
   fi
 
9083
fi
 
9084
 
 
9085
ISODATE=`date +%Y-%m-%d`
 
9086
 
 
9087
 
 
9088
# Find a good install program.  We prefer a C program (faster),
 
9089
# so one script is as good as another.  But avoid the broken or
 
9090
# incompatible versions:
 
9091
# SysV /etc/install, /usr/sbin/install
 
9092
# SunOS /usr/etc/install
 
9093
# IRIX /sbin/install
 
9094
# AIX /bin/install
 
9095
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
9096
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
9097
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
9098
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
9099
# OS/2's system install, which has a completely different semantic
 
9100
# ./install, which can be erroneously created by make from ./install.sh.
 
9101
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
9102
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
9103
if test -z "$INSTALL"; then
 
9104
if test "${ac_cv_path_install+set}" = set; then
 
9105
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9106
else
 
9107
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9108
for as_dir in $PATH
 
9109
do
 
9110
  IFS=$as_save_IFS
 
9111
  test -z "$as_dir" && as_dir=.
 
9112
  # Account for people who put trailing slashes in PATH elements.
 
9113
case $as_dir/ in
 
9114
  ./ | .// | /cC/* | \
 
9115
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
9116
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
9117
  /usr/ucb/* ) ;;
 
9118
  *)
 
9119
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
9120
    # Don't use installbsd from OSF since it installs stuff as root
 
9121
    # by default.
 
9122
    for ac_prog in ginstall scoinst install; do
 
9123
      for ac_exec_ext in '' $ac_executable_extensions; do
 
9124
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
9125
          if test $ac_prog = install &&
 
9126
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
9127
            # AIX install.  It has an incompatible calling convention.
 
9128
            :
 
9129
          elif test $ac_prog = install &&
 
9130
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
9131
            # program-specific install script used by HP pwplus--don't use.
 
9132
            :
 
9133
          else
 
9134
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
9135
            break 3
 
9136
          fi
 
9137
        fi
 
9138
      done
 
9139
    done
 
9140
    ;;
 
9141
esac
 
9142
done
 
9143
 
 
9144
 
 
9145
fi
 
9146
  if test "${ac_cv_path_install+set}" = set; then
 
9147
    INSTALL=$ac_cv_path_install
 
9148
  else
 
9149
    # As a last resort, use the slow shell script.  We don't cache a
 
9150
    # path for INSTALL within a source directory, because that will
 
9151
    # break other packages using the cache if that directory is
 
9152
    # removed, or if the path is relative.
 
9153
    INSTALL=$ac_install_sh
 
9154
  fi
 
9155
fi
 
9156
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
9157
echo "${ECHO_T}$INSTALL" >&6
 
9158
 
 
9159
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
9160
# It thinks the first close brace ends the variable substitution.
 
9161
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
9162
 
 
9163
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
9164
 
 
9165
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
9166
 
 
9167
 
 
9168
 
 
9169
 
 
9170
    # Check whether --enable-debug or --disable-debug was given.
 
9171
if test "${enable_debug+set}" = set; then
 
9172
  enableval="$enable_debug"
 
9173
 
 
9174
      case "${enableval}" in
 
9175
        yes) USE_DEBUG=yes ;;
 
9176
        no)  USE_DEBUG=no ;;
 
9177
        *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
 
9178
echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
 
9179
   { (exit 1); exit 1; }; } ;;
 
9180
      esac
 
9181
 
 
9182
else
 
9183
  USE_DEBUG=yes
 
9184
fi;
 
9185
 
 
9186
  # Check whether --enable-profiling or --disable-profiling was given.
 
9187
if test "${enable_profiling+set}" = set; then
 
9188
  enableval="$enable_profiling"
 
9189
 
 
9190
      case "${enableval}" in
 
9191
        yes) USE_PROFILING=yes ;;
 
9192
        no)  USE_PROFILING=no ;;
 
9193
        *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-profiling" >&5
 
9194
echo "$as_me: error: bad value ${enableval} for --enable-profiling" >&2;}
 
9195
   { (exit 1); exit 1; }; } ;;
 
9196
      esac
 
9197
 
 
9198
else
 
9199
  USE_PROFILING=no
 
9200
fi;
 
9201
 
 
9202
    # Check whether --enable-valgrind or --disable-valgrind was given.
 
9203
if test "${enable_valgrind+set}" = set; then
 
9204
  enableval="$enable_valgrind"
 
9205
 
 
9206
      case "${enableval}" in
 
9207
        yes) USE_VALGRIND="$USE_DEBUG" ;;
 
9208
        no)  USE_VALGRIND=no ;;
 
9209
        *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-valgrind" >&5
 
9210
echo "$as_me: error: bad value ${enableval} for --enable-valgrind" >&2;}
 
9211
   { (exit 1); exit 1; }; } ;;
 
9212
      esac
 
9213
 
 
9214
else
 
9215
  USE_VALGRIND="$USE_DEBUG"
 
9216
fi;    VALGRIND_REQ="2.1"
 
9217
  if test "x$USE_VALGRIND" = xyes; then
 
9218
 
 
9219
  succeeded=no
 
9220
 
 
9221
  if test -z "$PKG_CONFIG"; then
 
9222
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
9223
set dummy pkg-config; ac_word=$2
 
9224
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9225
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
9226
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
9227
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9228
else
 
9229
  case $PKG_CONFIG in
 
9230
  [\\/]* | ?:[\\/]*)
 
9231
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
9232
  ;;
 
9233
  *)
 
9234
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9235
for as_dir in $PATH
 
9236
do
 
9237
  IFS=$as_save_IFS
 
9238
  test -z "$as_dir" && as_dir=.
 
9239
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9240
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
9241
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
9242
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9243
    break 2
 
9244
  fi
 
9245
done
 
9246
done
 
9247
 
 
9248
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
9249
  ;;
 
9250
esac
 
9251
fi
 
9252
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
9253
 
 
9254
if test -n "$PKG_CONFIG"; then
 
9255
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
9256
echo "${ECHO_T}$PKG_CONFIG" >&6
 
9257
else
 
9258
  echo "$as_me:$LINENO: result: no" >&5
 
9259
echo "${ECHO_T}no" >&6
 
9260
fi
 
9261
 
 
9262
  fi
 
9263
 
 
9264
  if test "$PKG_CONFIG" = "no" ; then
 
9265
     echo "*** The pkg-config script could not be found. Make sure it is"
 
9266
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
9267
     echo "*** to the full path to pkg-config."
 
9268
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
9269
  else
 
9270
     PKG_CONFIG_MIN_VERSION=0.9.0
 
9271
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
9272
        echo "$as_me:$LINENO: checking for valgrind > $VALGRIND_REQ" >&5
 
9273
echo $ECHO_N "checking for valgrind > $VALGRIND_REQ... $ECHO_C" >&6
 
9274
 
 
9275
        if $PKG_CONFIG --exists "valgrind > $VALGRIND_REQ" ; then
 
9276
            echo "$as_me:$LINENO: result: yes" >&5
 
9277
echo "${ECHO_T}yes" >&6
 
9278
            succeeded=yes
 
9279
 
 
9280
            echo "$as_me:$LINENO: checking VALGRIND_CFLAGS" >&5
 
9281
echo $ECHO_N "checking VALGRIND_CFLAGS... $ECHO_C" >&6
 
9282
            VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind > $VALGRIND_REQ"`
 
9283
            echo "$as_me:$LINENO: result: $VALGRIND_CFLAGS" >&5
 
9284
echo "${ECHO_T}$VALGRIND_CFLAGS" >&6
 
9285
 
 
9286
            echo "$as_me:$LINENO: checking VALGRIND_LIBS" >&5
 
9287
echo $ECHO_N "checking VALGRIND_LIBS... $ECHO_C" >&6
 
9288
            VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind > $VALGRIND_REQ"`
 
9289
            echo "$as_me:$LINENO: result: $VALGRIND_LIBS" >&5
 
9290
echo "${ECHO_T}$VALGRIND_LIBS" >&6
 
9291
        else
 
9292
            VALGRIND_CFLAGS=""
 
9293
            VALGRIND_LIBS=""
 
9294
            ## If we have a custom action on failure, don't print errors, but
 
9295
            ## do set a variable so people can do so.
 
9296
            VALGRIND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "valgrind > $VALGRIND_REQ"`
 
9297
 
 
9298
        fi
 
9299
 
 
9300
 
 
9301
 
 
9302
     else
 
9303
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
9304
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
9305
     fi
 
9306
  fi
 
9307
 
 
9308
  if test $succeeded = yes; then
 
9309
     USE_VALGRIND="yes"
 
9310
  else
 
9311
     USE_VALGRIND="no"
 
9312
  fi
 
9313
 
 
9314
  fi
 
9315
  if test "x$USE_VALGRIND" = xyes; then
 
9316
 
 
9317
cat >>confdefs.h <<\_ACEOF
 
9318
#define HAVE_VALGRIND 1
 
9319
_ACEOF
 
9320
 
 
9321
    { echo "$as_me:$LINENO: Using extra code paths for valgrind" >&5
 
9322
echo "$as_me: Using extra code paths for valgrind" >&6;}
 
9323
  fi
 
9324
 
 
9325
 
 
9326
  # Check whether --enable-gcov or --disable-gcov was given.
 
9327
if test "${enable_gcov+set}" = set; then
 
9328
  enableval="$enable_gcov"
 
9329
  enable_gcov=$enableval
 
9330
else
 
9331
  enable_gcov=no
 
9332
fi;
 
9333
  if test x$enable_gcov = xyes ; then
 
9334
 
 
9335
  echo "$as_me:$LINENO: checking to see if compiler understands \"-fprofile-arcs\"" >&5
 
9336
echo $ECHO_N "checking to see if compiler understands \"-fprofile-arcs\"... $ECHO_C" >&6
 
9337
 
 
9338
  save_CFLAGS="$CFLAGS"
 
9339
  CFLAGS="$CFLAGS "-fprofile-arcs""
 
9340
 
 
9341
  cat >conftest.$ac_ext <<_ACEOF
 
9342
/* confdefs.h.  */
 
9343
_ACEOF
 
9344
cat confdefs.h >>conftest.$ac_ext
 
9345
cat >>conftest.$ac_ext <<_ACEOF
 
9346
/* end confdefs.h.  */
 
9347
 
 
9348
int
 
9349
main ()
 
9350
{
 
9351
 
 
9352
  ;
 
9353
  return 0;
 
9354
}
 
9355
_ACEOF
 
9356
rm -f conftest.$ac_objext
 
9357
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9358
  (eval $ac_compile) 2>conftest.er1
 
9359
  ac_status=$?
 
9360
  grep -v '^ *+' conftest.er1 >conftest.err
 
9361
  rm -f conftest.er1
 
9362
  cat conftest.err >&5
 
9363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9364
  (exit $ac_status); } &&
 
9365
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9366
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9367
  (eval $ac_try) 2>&5
 
9368
  ac_status=$?
 
9369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9370
  (exit $ac_status); }; } &&
 
9371
         { ac_try='test -s conftest.$ac_objext'
 
9372
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9373
  (eval $ac_try) 2>&5
 
9374
  ac_status=$?
 
9375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9376
  (exit $ac_status); }; }; then
 
9377
  flag_ok=yes
 
9378
else
 
9379
  echo "$as_me: failed program was:" >&5
 
9380
sed 's/^/| /' conftest.$ac_ext >&5
 
9381
 
 
9382
flag_ok=no
 
9383
fi
 
9384
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9385
  CFLAGS="$save_CFLAGS"
 
9386
 
 
9387
  if test "X$flag_ok" = Xyes ; then
 
9388
    GCOV_CFLAGS="$GCOV_CFLAGS -fprofile-arcs"
 
9389
    true
 
9390
  else
 
9391
    true
 
9392
    true
 
9393
  fi
 
9394
  echo "$as_me:$LINENO: result: $flag_ok" >&5
 
9395
echo "${ECHO_T}$flag_ok" >&6
 
9396
 
 
9397
 
 
9398
  echo "$as_me:$LINENO: checking to see if compiler understands \"-ftest-coverage\"" >&5
 
9399
echo $ECHO_N "checking to see if compiler understands \"-ftest-coverage\"... $ECHO_C" >&6
 
9400
 
 
9401
  save_CFLAGS="$CFLAGS"
 
9402
  CFLAGS="$CFLAGS "-ftest-coverage""
 
9403
 
 
9404
  cat >conftest.$ac_ext <<_ACEOF
 
9405
/* confdefs.h.  */
 
9406
_ACEOF
 
9407
cat confdefs.h >>conftest.$ac_ext
 
9408
cat >>conftest.$ac_ext <<_ACEOF
 
9409
/* end confdefs.h.  */
 
9410
 
 
9411
int
 
9412
main ()
 
9413
{
 
9414
 
 
9415
  ;
 
9416
  return 0;
 
9417
}
 
9418
_ACEOF
 
9419
rm -f conftest.$ac_objext
 
9420
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9421
  (eval $ac_compile) 2>conftest.er1
 
9422
  ac_status=$?
 
9423
  grep -v '^ *+' conftest.er1 >conftest.err
 
9424
  rm -f conftest.er1
 
9425
  cat conftest.err >&5
 
9426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9427
  (exit $ac_status); } &&
 
9428
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9429
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9430
  (eval $ac_try) 2>&5
 
9431
  ac_status=$?
 
9432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9433
  (exit $ac_status); }; } &&
 
9434
         { ac_try='test -s conftest.$ac_objext'
 
9435
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9436
  (eval $ac_try) 2>&5
 
9437
  ac_status=$?
 
9438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9439
  (exit $ac_status); }; }; then
 
9440
  flag_ok=yes
 
9441
else
 
9442
  echo "$as_me: failed program was:" >&5
 
9443
sed 's/^/| /' conftest.$ac_ext >&5
 
9444
 
 
9445
flag_ok=no
 
9446
fi
 
9447
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9448
  CFLAGS="$save_CFLAGS"
 
9449
 
 
9450
  if test "X$flag_ok" = Xyes ; then
 
9451
    GCOV_CFLAGS="$GCOV_CFLAGS -ftest-coverage"
 
9452
    true
 
9453
  else
 
9454
    true
 
9455
    true
 
9456
  fi
 
9457
  echo "$as_me:$LINENO: result: $flag_ok" >&5
 
9458
echo "${ECHO_T}$flag_ok" >&6
 
9459
 
 
9460
        GCOV_CFLAGS=`echo "$GCOV_CFLAGS" | sed -e 's/-O0-9*//g'`
 
9461
 
 
9462
 
 
9463
cat >>confdefs.h <<_ACEOF
 
9464
#define GST_GCOV_ENABLED 1
 
9465
_ACEOF
 
9466
 
 
9467
  fi
 
9468
 
 
9469
 
 
9470
if test x$enable_gcov = xyes; then
 
9471
  GST_GCOV_ENABLED_TRUE=
 
9472
  GST_GCOV_ENABLED_FALSE='#'
 
9473
else
 
9474
  GST_GCOV_ENABLED_TRUE='#'
 
9475
  GST_GCOV_ENABLED_FALSE=
 
9476
fi
 
9477
 
 
9478
 
 
9479
 
 
9480
 
 
9481
  # Check whether --enable-examples or --disable-examples was given.
 
9482
if test "${enable_examples+set}" = set; then
 
9483
  enableval="$enable_examples"
 
9484
 
 
9485
        case "${enableval}" in
 
9486
          yes) BUILD_EXAMPLES=yes ;;
 
9487
          no)  BUILD_EXAMPLES=no ;;
 
9488
          *)   { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-examples" >&5
 
9489
echo "$as_me: error: bad value ${enableval} for --disable-examples" >&2;}
 
9490
   { (exit 1); exit 1; }; } ;;
 
9491
        esac
 
9492
 
 
9493
else
 
9494
  BUILD_EXAMPLES=yes
 
9495
fi;
 
9496
 
 
9497
if test "x$BUILD_EXAMPLES" = "xyes"; then
 
9498
  BUILD_EXAMPLES_TRUE=
 
9499
  BUILD_EXAMPLES_FALSE='#'
 
9500
else
 
9501
  BUILD_EXAMPLES_TRUE='#'
 
9502
  BUILD_EXAMPLES_FALSE=
 
9503
fi
 
9504
 
 
9505
 
 
9506
 
 
9507
 
 
9508
 
 
9509
# Check whether --with-pkg-config-path or --without-pkg-config-path was given.
 
9510
if test "${with_pkg_config_path+set}" = set; then
 
9511
  withval="$with_pkg_config_path"
 
9512
  export PKG_CONFIG_PATH=${withval}
 
9513
fi;
 
9514
 
 
9515
 
 
9516
 
 
9517
# Check whether --with-package-name or --without-package-name was given.
 
9518
if test "${with_package_name+set}" = set; then
 
9519
  withval="$with_package_name"
 
9520
 
 
9521
      case "${withval}" in
 
9522
        yes) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-package-name" >&5
 
9523
echo "$as_me: error: bad value ${withval} for --with-package-name" >&2;}
 
9524
   { (exit 1); exit 1; }; } ;;
 
9525
        no)  { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-package-name" >&5
 
9526
echo "$as_me: error: bad value ${withval} for --with-package-name" >&2;}
 
9527
   { (exit 1); exit 1; }; } ;;
 
9528
        *)   GST_PACKAGE="${withval}" ;;
 
9529
      esac
 
9530
 
 
9531
else
 
9532
 
 
9533
            if test "x$GST_CVS" = "xyes"
 
9534
      then
 
9535
                GST_PACKAGE_NAME="Fluendo MP3 Plug-in CVS/prerelease"
 
9536
      else
 
9537
        GST_PACKAGE_NAME="Fluendo MP3 Plug-in source release"
 
9538
      fi
 
9539
 
 
9540
 
 
9541
fi;
 
9542
  { echo "$as_me:$LINENO: Using $GST_PACKAGE_NAME as package name" >&5
 
9543
echo "$as_me: Using $GST_PACKAGE_NAME as package name" >&6;}
 
9544
 
 
9545
cat >>confdefs.h <<_ACEOF
 
9546
#define GST_PACKAGE_NAME "$GST_PACKAGE_NAME"
 
9547
_ACEOF
 
9548
 
 
9549
 
 
9550
 
 
9551
 
 
9552
 
 
9553
# Check whether --with-package-origin or --without-package-origin was given.
 
9554
if test "${with_package_origin+set}" = set; then
 
9555
  withval="$with_package_origin"
 
9556
 
 
9557
      case "${withval}" in
 
9558
        yes) { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-package-origin" >&5
 
9559
echo "$as_me: error: bad value ${withval} for --with-package-origin" >&2;}
 
9560
   { (exit 1); exit 1; }; } ;;
 
9561
        no)  { { echo "$as_me:$LINENO: error: bad value ${withval} for --with-package-origin" >&5
 
9562
echo "$as_me: error: bad value ${withval} for --with-package-origin" >&2;}
 
9563
   { (exit 1); exit 1; }; } ;;
 
9564
        *)   GST_ORIGIN="${withval}" ;;
 
9565
      esac
 
9566
 
 
9567
else
 
9568
  GST_PACKAGE_ORIGIN="Unknown package origin"
 
9569
fi;
 
9570
  { echo "$as_me:$LINENO: Using $GST_PACKAGE_ORIGIN as package origin" >&5
 
9571
echo "$as_me: Using $GST_PACKAGE_ORIGIN as package origin" >&6;}
 
9572
 
 
9573
cat >>confdefs.h <<_ACEOF
 
9574
#define GST_PACKAGE_ORIGIN "$GST_PACKAGE_ORIGIN"
 
9575
_ACEOF
 
9576
 
 
9577
 
 
9578
 
 
9579
 
 
9580
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
9581
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
9582
if test "${ac_cv_header_stdc+set}" = set; then
 
9583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9584
else
 
9585
  cat >conftest.$ac_ext <<_ACEOF
 
9586
/* confdefs.h.  */
 
9587
_ACEOF
 
9588
cat confdefs.h >>conftest.$ac_ext
 
9589
cat >>conftest.$ac_ext <<_ACEOF
 
9590
/* end confdefs.h.  */
 
9591
#include <stdlib.h>
 
9592
#include <stdarg.h>
 
9593
#include <string.h>
 
9594
#include <float.h>
 
9595
 
 
9596
int
 
9597
main ()
 
9598
{
 
9599
 
 
9600
  ;
 
9601
  return 0;
 
9602
}
 
9603
_ACEOF
 
9604
rm -f conftest.$ac_objext
 
9605
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9606
  (eval $ac_compile) 2>conftest.er1
 
9607
  ac_status=$?
 
9608
  grep -v '^ *+' conftest.er1 >conftest.err
 
9609
  rm -f conftest.er1
 
9610
  cat conftest.err >&5
 
9611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9612
  (exit $ac_status); } &&
 
9613
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9614
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9615
  (eval $ac_try) 2>&5
 
9616
  ac_status=$?
 
9617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9618
  (exit $ac_status); }; } &&
 
9619
         { ac_try='test -s conftest.$ac_objext'
 
9620
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9621
  (eval $ac_try) 2>&5
 
9622
  ac_status=$?
 
9623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9624
  (exit $ac_status); }; }; then
 
9625
  ac_cv_header_stdc=yes
 
9626
else
 
9627
  echo "$as_me: failed program was:" >&5
 
9628
sed 's/^/| /' conftest.$ac_ext >&5
 
9629
 
 
9630
ac_cv_header_stdc=no
 
9631
fi
 
9632
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9633
 
 
9634
if test $ac_cv_header_stdc = yes; then
 
9635
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
9636
  cat >conftest.$ac_ext <<_ACEOF
 
9637
/* confdefs.h.  */
 
9638
_ACEOF
 
9639
cat confdefs.h >>conftest.$ac_ext
 
9640
cat >>conftest.$ac_ext <<_ACEOF
 
9641
/* end confdefs.h.  */
 
9642
#include <string.h>
 
9643
 
 
9644
_ACEOF
 
9645
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9646
  $EGREP "memchr" >/dev/null 2>&1; then
 
9647
  :
 
9648
else
 
9649
  ac_cv_header_stdc=no
 
9650
fi
 
9651
rm -f conftest*
 
9652
 
 
9653
fi
 
9654
 
 
9655
if test $ac_cv_header_stdc = yes; then
 
9656
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
9657
  cat >conftest.$ac_ext <<_ACEOF
 
9658
/* confdefs.h.  */
 
9659
_ACEOF
 
9660
cat confdefs.h >>conftest.$ac_ext
 
9661
cat >>conftest.$ac_ext <<_ACEOF
 
9662
/* end confdefs.h.  */
 
9663
#include <stdlib.h>
 
9664
 
 
9665
_ACEOF
 
9666
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
9667
  $EGREP "free" >/dev/null 2>&1; then
 
9668
  :
 
9669
else
 
9670
  ac_cv_header_stdc=no
 
9671
fi
 
9672
rm -f conftest*
 
9673
 
 
9674
fi
 
9675
 
 
9676
if test $ac_cv_header_stdc = yes; then
 
9677
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
9678
  if test "$cross_compiling" = yes; then
 
9679
  :
 
9680
else
 
9681
  cat >conftest.$ac_ext <<_ACEOF
 
9682
/* confdefs.h.  */
 
9683
_ACEOF
 
9684
cat confdefs.h >>conftest.$ac_ext
 
9685
cat >>conftest.$ac_ext <<_ACEOF
 
9686
/* end confdefs.h.  */
 
9687
#include <ctype.h>
 
9688
#if ((' ' & 0x0FF) == 0x020)
 
9689
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
9690
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
9691
#else
 
9692
# define ISLOWER(c) \
 
9693
                   (('a' <= (c) && (c) <= 'i') \
 
9694
                     || ('j' <= (c) && (c) <= 'r') \
 
9695
                     || ('s' <= (c) && (c) <= 'z'))
 
9696
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
9697
#endif
 
9698
 
 
9699
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
9700
int
 
9701
main ()
 
9702
{
 
9703
  int i;
 
9704
  for (i = 0; i < 256; i++)
 
9705
    if (XOR (islower (i), ISLOWER (i))
 
9706
        || toupper (i) != TOUPPER (i))
 
9707
      exit(2);
 
9708
  exit (0);
 
9709
}
 
9710
_ACEOF
 
9711
rm -f conftest$ac_exeext
 
9712
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9713
  (eval $ac_link) 2>&5
 
9714
  ac_status=$?
 
9715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9716
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
9717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9718
  (eval $ac_try) 2>&5
 
9719
  ac_status=$?
 
9720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9721
  (exit $ac_status); }; }; then
 
9722
  :
 
9723
else
 
9724
  echo "$as_me: program exited with status $ac_status" >&5
 
9725
echo "$as_me: failed program was:" >&5
 
9726
sed 's/^/| /' conftest.$ac_ext >&5
 
9727
 
 
9728
( exit $ac_status )
 
9729
ac_cv_header_stdc=no
 
9730
fi
 
9731
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
9732
fi
 
9733
fi
 
9734
fi
 
9735
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
9736
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
9737
if test $ac_cv_header_stdc = yes; then
 
9738
 
 
9739
cat >>confdefs.h <<\_ACEOF
 
9740
#define STDC_HEADERS 1
 
9741
_ACEOF
 
9742
 
 
9743
fi
 
9744
 
 
9745
 
 
9746
 
 
9747
 
 
9748
 
 
9749
 
 
9750
 
 
9751
 
 
9752
 
 
9753
for ac_header in unistd.h string.h fcntl.h dirent.h sys/ndir.h \
 
9754
    ndir.h alloca.h locale.h
 
9755
do
 
9756
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9757
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9758
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9759
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9760
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9761
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9762
fi
 
9763
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9764
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9765
else
 
9766
  # Is the header compilable?
 
9767
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9768
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9769
cat >conftest.$ac_ext <<_ACEOF
 
9770
/* confdefs.h.  */
 
9771
_ACEOF
 
9772
cat confdefs.h >>conftest.$ac_ext
 
9773
cat >>conftest.$ac_ext <<_ACEOF
 
9774
/* end confdefs.h.  */
 
9775
$ac_includes_default
 
9776
#include <$ac_header>
 
9777
_ACEOF
 
9778
rm -f conftest.$ac_objext
 
9779
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9780
  (eval $ac_compile) 2>conftest.er1
 
9781
  ac_status=$?
 
9782
  grep -v '^ *+' conftest.er1 >conftest.err
 
9783
  rm -f conftest.er1
 
9784
  cat conftest.err >&5
 
9785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9786
  (exit $ac_status); } &&
 
9787
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9789
  (eval $ac_try) 2>&5
 
9790
  ac_status=$?
 
9791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9792
  (exit $ac_status); }; } &&
 
9793
         { ac_try='test -s conftest.$ac_objext'
 
9794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9795
  (eval $ac_try) 2>&5
 
9796
  ac_status=$?
 
9797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9798
  (exit $ac_status); }; }; then
 
9799
  ac_header_compiler=yes
 
9800
else
 
9801
  echo "$as_me: failed program was:" >&5
 
9802
sed 's/^/| /' conftest.$ac_ext >&5
 
9803
 
 
9804
ac_header_compiler=no
 
9805
fi
 
9806
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9807
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9808
echo "${ECHO_T}$ac_header_compiler" >&6
 
9809
 
 
9810
# Is the header present?
 
9811
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9812
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9813
cat >conftest.$ac_ext <<_ACEOF
 
9814
/* confdefs.h.  */
 
9815
_ACEOF
 
9816
cat confdefs.h >>conftest.$ac_ext
 
9817
cat >>conftest.$ac_ext <<_ACEOF
 
9818
/* end confdefs.h.  */
 
9819
#include <$ac_header>
 
9820
_ACEOF
 
9821
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9822
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9823
  ac_status=$?
 
9824
  grep -v '^ *+' conftest.er1 >conftest.err
 
9825
  rm -f conftest.er1
 
9826
  cat conftest.err >&5
 
9827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9828
  (exit $ac_status); } >/dev/null; then
 
9829
  if test -s conftest.err; then
 
9830
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9831
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
9832
  else
 
9833
    ac_cpp_err=
 
9834
  fi
 
9835
else
 
9836
  ac_cpp_err=yes
 
9837
fi
 
9838
if test -z "$ac_cpp_err"; then
 
9839
  ac_header_preproc=yes
 
9840
else
 
9841
  echo "$as_me: failed program was:" >&5
 
9842
sed 's/^/| /' conftest.$ac_ext >&5
 
9843
 
 
9844
  ac_header_preproc=no
 
9845
fi
 
9846
rm -f conftest.err conftest.$ac_ext
 
9847
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9848
echo "${ECHO_T}$ac_header_preproc" >&6
 
9849
 
 
9850
# So?  What about this header?
 
9851
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
9852
  yes:no: )
 
9853
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9854
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9855
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
9856
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
9857
    ac_header_preproc=yes
 
9858
    ;;
 
9859
  no:yes:* )
 
9860
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9861
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9862
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
9863
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
9864
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
9865
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
9866
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
9867
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
9868
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9869
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9870
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
9871
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
9872
    (
 
9873
      cat <<\_ASBOX
 
9874
## ------------------------------------------ ##
 
9875
## Report this to the AC_PACKAGE_NAME lists.  ##
 
9876
## ------------------------------------------ ##
 
9877
_ASBOX
 
9878
    ) |
 
9879
      sed "s/^/$as_me: WARNING:     /" >&2
 
9880
    ;;
 
9881
esac
 
9882
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9883
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9884
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9886
else
 
9887
  eval "$as_ac_Header=\$ac_header_preproc"
 
9888
fi
 
9889
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9890
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9891
 
 
9892
fi
 
9893
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9894
  cat >>confdefs.h <<_ACEOF
 
9895
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9896
_ACEOF
 
9897
 
 
9898
fi
 
9899
 
 
9900
done
 
9901
 
 
9902
 
 
9903
# Extract the first word of "pkg-config", so it can be a program name with args.
 
9904
set dummy pkg-config; ac_word=$2
 
9905
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9906
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
9907
if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then
 
9908
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9909
else
 
9910
  if test -n "$HAVE_PKGCONFIG"; then
 
9911
  ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
 
9912
else
 
9913
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9914
for as_dir in $PATH
 
9915
do
 
9916
  IFS=$as_save_IFS
 
9917
  test -z "$as_dir" && as_dir=.
 
9918
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9919
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
9920
    ac_cv_prog_HAVE_PKGCONFIG="yes"
 
9921
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9922
    break 2
 
9923
  fi
 
9924
done
 
9925
done
 
9926
 
 
9927
  test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
 
9928
fi
 
9929
fi
 
9930
HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
 
9931
if test -n "$HAVE_PKGCONFIG"; then
 
9932
  echo "$as_me:$LINENO: result: $HAVE_PKGCONFIG" >&5
 
9933
echo "${ECHO_T}$HAVE_PKGCONFIG" >&6
 
9934
else
 
9935
  echo "$as_me:$LINENO: result: no" >&5
 
9936
echo "${ECHO_T}no" >&6
 
9937
fi
 
9938
 
 
9939
 
 
9940
if test "x$HAVE_PKGCONFIG" = "xno"; then
 
9941
  { { echo "$as_me:$LINENO: error: you need to have pkgconfig installed" >&5
 
9942
echo "$as_me: error: you need to have pkgconfig installed" >&2;}
 
9943
   { (exit 1); exit 1; }; }
 
9944
fi
 
9945
 
 
9946
# Check whether --enable-profiling or --disable-profiling was given.
 
9947
if test "${enable_profiling+set}" = set; then
 
9948
  enableval="$enable_profiling"
 
9949
 
 
9950
            case "${enableval}" in
 
9951
                yes) USE_PROFILING=true ;;
 
9952
                *)  USE_PROFILING=false ;;
 
9953
            esac
 
9954
 
 
9955
else
 
9956
  USE_PROFILING=false
 
9957
fi;
 
9958
 
 
9959
test_ipp=true
 
9960
HAVE_IPP=false
 
9961
echo "$as_me:$LINENO: checking for Intel Performance Primitives library" >&5
 
9962
echo $ECHO_N "checking for Intel Performance Primitives library... $ECHO_C" >&6
 
9963
 
 
9964
 
 
9965
# Check whether --with-ipp or --without-ipp was given.
 
9966
if test "${with_ipp+set}" = set; then
 
9967
  withval="$with_ipp"
 
9968
  if test "x$withval" = "xno"; then test_ipp=false; fi
 
9969
fi;
 
9970
 
 
9971
 
 
9972
# Check whether --with-ipp-path or --without-ipp-path was given.
 
9973
if test "${with_ipp_path+set}" = set; then
 
9974
  withval="$with_ipp_path"
 
9975
  export IPP_PATH="${withval}"
 
9976
fi;
 
9977
 
 
9978
if test -n "$IPP_PATH"; then
 
9979
  IPP_PREFIX="$IPP_PATH"
 
9980
else
 
9981
  IPP_PREFIX="/opt/intel/ipp"
 
9982
fi
 
9983
 
 
9984
if test "x$test_ipp" = "xtrue"; then
 
9985
  if test -f "$IPP_PREFIX/5.0/ia32/include/ippac.h"; then
 
9986
    IPP_INCLUDES="-I$IPP_PREFIX/5.0/ia32/include"
 
9987
    IPP_LIBS="-L$IPP_PREFIX/5.0/ia32/lib -lippacemerged -lippacmerged -lippsemerged -lippsmerged -lippcore"
 
9988
    HAVE_IPP=true
 
9989
 
 
9990
cat >>confdefs.h <<\_ACEOF
 
9991
#define USE_IPP TRUE
 
9992
_ACEOF
 
9993
 
 
9994
  else
 
9995
    echo "Intel Performance Primitives not found in $IPP_PREFIX"
 
9996
  fi
 
9997
fi
 
9998
 
 
9999
 
 
10000
if test "x$HAVE_IPP" = "xtrue"; then
 
10001
  USE_IPP_TRUE=
 
10002
  USE_IPP_FALSE='#'
 
10003
else
 
10004
  USE_IPP_TRUE='#'
 
10005
  USE_IPP_FALSE=
 
10006
fi
 
10007
 
 
10008
 
 
10009
if test "x$HAVE_IPP" = "xtrue"; then
 
10010
        echo "$as_me:$LINENO: result: yes" >&5
 
10011
echo "${ECHO_T}yes" >&6
 
10012
else
 
10013
        echo "$as_me:$LINENO: result: no" >&5
 
10014
echo "${ECHO_T}no" >&6
 
10015
fi
 
10016
 
 
10017
 
 
10018
 
 
10019
 
 
10020
GST_REQUIRED=0.9.7
 
10021
GST_MAJORMINOR=0.10
 
10022
 
 
10023
 
 
10024
 
 
10025
  succeeded=no
 
10026
 
 
10027
  if test -z "$PKG_CONFIG"; then
 
10028
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
10029
set dummy pkg-config; ac_word=$2
 
10030
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10031
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
10032
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
10033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10034
else
 
10035
  case $PKG_CONFIG in
 
10036
  [\\/]* | ?:[\\/]*)
 
10037
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
10038
  ;;
 
10039
  *)
 
10040
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10041
for as_dir in $PATH
 
10042
do
 
10043
  IFS=$as_save_IFS
 
10044
  test -z "$as_dir" && as_dir=.
 
10045
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10046
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
10047
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
10048
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10049
    break 2
 
10050
  fi
 
10051
done
 
10052
done
 
10053
 
 
10054
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
10055
  ;;
 
10056
esac
 
10057
fi
 
10058
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
10059
 
 
10060
if test -n "$PKG_CONFIG"; then
 
10061
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
10062
echo "${ECHO_T}$PKG_CONFIG" >&6
 
10063
else
 
10064
  echo "$as_me:$LINENO: result: no" >&5
 
10065
echo "${ECHO_T}no" >&6
 
10066
fi
 
10067
 
 
10068
  fi
 
10069
 
 
10070
  if test "$PKG_CONFIG" = "no" ; then
 
10071
     echo "*** The pkg-config script could not be found. Make sure it is"
 
10072
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
10073
     echo "*** to the full path to pkg-config."
 
10074
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
10075
  else
 
10076
     PKG_CONFIG_MIN_VERSION=0.9.0
 
10077
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
10078
        echo "$as_me:$LINENO: checking for \
 
10079
  gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
 
10080
echo $ECHO_N "checking for \
 
10081
  gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
 
10082
 
 
10083
        if $PKG_CONFIG --exists "\
 
10084
  gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
 
10085
            echo "$as_me:$LINENO: result: yes" >&5
 
10086
echo "${ECHO_T}yes" >&6
 
10087
            succeeded=yes
 
10088
 
 
10089
            echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
 
10090
echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
 
10091
            GST_CFLAGS=`$PKG_CONFIG --cflags "\
 
10092
  gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
 
10093
            echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
 
10094
echo "${ECHO_T}$GST_CFLAGS" >&6
 
10095
 
 
10096
            echo "$as_me:$LINENO: checking GST_LIBS" >&5
 
10097
echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
 
10098
            GST_LIBS=`$PKG_CONFIG --libs "\
 
10099
  gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
 
10100
            echo "$as_me:$LINENO: result: $GST_LIBS" >&5
 
10101
echo "${ECHO_T}$GST_LIBS" >&6
 
10102
        else
 
10103
            GST_CFLAGS=""
 
10104
            GST_LIBS=""
 
10105
            ## If we have a custom action on failure, don't print errors, but
 
10106
            ## do set a variable so people can do so.
 
10107
            GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
 
10108
  gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
 
10109
 
 
10110
        fi
 
10111
 
 
10112
 
 
10113
 
 
10114
     else
 
10115
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
10116
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
10117
     fi
 
10118
  fi
 
10119
 
 
10120
  if test $succeeded = yes; then
 
10121
     HAVE_GST=yes
 
10122
  else
 
10123
     HAVE_GST=no
 
10124
  fi
 
10125
 
 
10126
 
 
10127
 
 
10128
 
 
10129
plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
 
10130
 
 
10131
 
 
10132
if test "x$USE_PROFILING" = "xtrue"; then
 
10133
  CFLAGS="$CFLAGS -pg"
 
10134
  LDFLAGS="$LDFLAGS -pg"
 
10135
fi
 
10136
 
 
10137
PLUGIN_LDFLAGS="-module -avoid-version -export-symbols-regex 'gst_.*'"
 
10138
 
 
10139
 
 
10140
                                                            ac_config_files="$ac_config_files Makefile decoder/Makefile m4/Makefile common/Makefile common/m4/Makefile gst-fluendo-mp3.spec"
 
10141
cat >confcache <<\_ACEOF
 
10142
# This file is a shell script that caches the results of configure
 
10143
# tests run on this system so they can be shared between configure
 
10144
# scripts and configure runs, see configure's option --config-cache.
 
10145
# It is not useful on other systems.  If it contains results you don't
 
10146
# want to keep, you may remove or edit it.
 
10147
#
 
10148
# config.status only pays attention to the cache file if you give it
 
10149
# the --recheck option to rerun configure.
 
10150
#
 
10151
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
10152
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
10153
# following values.
 
10154
 
 
10155
_ACEOF
 
10156
 
 
10157
# The following way of writing the cache mishandles newlines in values,
 
10158
# but we know of no workaround that is simple, portable, and efficient.
 
10159
# So, don't put newlines in cache variables' values.
 
10160
# Ultrix sh set writes to stderr and can't be redirected directly,
 
10161
# and sets the high bit in the cache file unless we assign to the vars.
 
10162
{
 
10163
  (set) 2>&1 |
 
10164
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
10165
    *ac_space=\ *)
 
10166
      # `set' does not quote correctly, so add quotes (double-quote
 
10167
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
10168
      sed -n \
 
10169
        "s/'/'\\\\''/g;
 
10170
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
10171
      ;;
 
10172
    *)
 
10173
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
10174
      sed -n \
 
10175
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
10176
      ;;
 
10177
    esac;
 
10178
} |
 
10179
  sed '
 
10180
     t clear
 
10181
     : clear
 
10182
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
10183
     t end
 
10184
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
10185
     : end' >>confcache
 
10186
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
10187
  if test -w $cache_file; then
 
10188
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
10189
    cat confcache >$cache_file
 
10190
  else
 
10191
    echo "not updating unwritable cache $cache_file"
 
10192
  fi
 
10193
fi
 
10194
rm -f confcache
 
10195
 
 
10196
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
10197
# Let make expand exec_prefix.
 
10198
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
10199
 
 
10200
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
10201
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
10202
# trailing colons and then remove the whole line if VPATH becomes empty
 
10203
# (actually we leave an empty line to preserve line numbers).
 
10204
if test "x$srcdir" = x.; then
 
10205
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
10206
s/:*\$(srcdir):*/:/;
 
10207
s/:*\${srcdir}:*/:/;
 
10208
s/:*@srcdir@:*/:/;
 
10209
s/^\([^=]*=[     ]*\):*/\1/;
 
10210
s/:*$//;
 
10211
s/^[^=]*=[       ]*$//;
 
10212
}'
 
10213
fi
 
10214
 
 
10215
DEFS=-DHAVE_CONFIG_H
 
10216
 
 
10217
ac_libobjs=
 
10218
ac_ltlibobjs=
 
10219
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
10220
  # 1. Remove the extension, and $U if already installed.
 
10221
  ac_i=`echo "$ac_i" |
 
10222
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
10223
  # 2. Add them.
 
10224
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
10225
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
10226
done
 
10227
LIBOBJS=$ac_libobjs
 
10228
 
 
10229
LTLIBOBJS=$ac_ltlibobjs
 
10230
 
 
10231
 
 
10232
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
10233
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
10234
Usually this means the macro was only invoked conditionally." >&5
 
10235
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
10236
Usually this means the macro was only invoked conditionally." >&2;}
 
10237
   { (exit 1); exit 1; }; }
 
10238
fi
 
10239
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
10240
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
10241
Usually this means the macro was only invoked conditionally." >&5
 
10242
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
10243
Usually this means the macro was only invoked conditionally." >&2;}
 
10244
   { (exit 1); exit 1; }; }
 
10245
fi
 
10246
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
10247
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
10248
Usually this means the macro was only invoked conditionally." >&5
 
10249
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
10250
Usually this means the macro was only invoked conditionally." >&2;}
 
10251
   { (exit 1); exit 1; }; }
 
10252
fi
 
10253
if test -z "${GST_GCOV_ENABLED_TRUE}" && test -z "${GST_GCOV_ENABLED_FALSE}"; then
 
10254
  { { echo "$as_me:$LINENO: error: conditional \"GST_GCOV_ENABLED\" was never defined.
 
10255
Usually this means the macro was only invoked conditionally." >&5
 
10256
echo "$as_me: error: conditional \"GST_GCOV_ENABLED\" was never defined.
 
10257
Usually this means the macro was only invoked conditionally." >&2;}
 
10258
   { (exit 1); exit 1; }; }
 
10259
fi
 
10260
if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then
 
10261
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_EXAMPLES\" was never defined.
 
10262
Usually this means the macro was only invoked conditionally." >&5
 
10263
echo "$as_me: error: conditional \"BUILD_EXAMPLES\" was never defined.
 
10264
Usually this means the macro was only invoked conditionally." >&2;}
 
10265
   { (exit 1); exit 1; }; }
 
10266
fi
 
10267
if test -z "${USE_IPP_TRUE}" && test -z "${USE_IPP_FALSE}"; then
 
10268
  { { echo "$as_me:$LINENO: error: conditional \"USE_IPP\" was never defined.
 
10269
Usually this means the macro was only invoked conditionally." >&5
 
10270
echo "$as_me: error: conditional \"USE_IPP\" was never defined.
 
10271
Usually this means the macro was only invoked conditionally." >&2;}
 
10272
   { (exit 1); exit 1; }; }
 
10273
fi
 
10274
 
 
10275
: ${CONFIG_STATUS=./config.status}
 
10276
ac_clean_files_save=$ac_clean_files
 
10277
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
10278
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
10279
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
10280
cat >$CONFIG_STATUS <<_ACEOF
 
10281
#! $SHELL
 
10282
# Generated by $as_me.
 
10283
# Run this file to recreate the current configuration.
 
10284
# Compiler output produced by configure, useful for debugging
 
10285
# configure, is in config.log if it exists.
 
10286
 
 
10287
debug=false
 
10288
ac_cs_recheck=false
 
10289
ac_cs_silent=false
 
10290
SHELL=\${CONFIG_SHELL-$SHELL}
 
10291
_ACEOF
 
10292
 
 
10293
cat >>$CONFIG_STATUS <<\_ACEOF
 
10294
## --------------------- ##
 
10295
## M4sh Initialization.  ##
 
10296
## --------------------- ##
 
10297
 
 
10298
# Be Bourne compatible
 
10299
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
10300
  emulate sh
 
10301
  NULLCMD=:
 
10302
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
10303
  # is contrary to our usage.  Disable this feature.
 
10304
  alias -g '${1+"$@"}'='"$@"'
 
10305
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
10306
  set -o posix
 
10307
fi
 
10308
DUALCASE=1; export DUALCASE # for MKS sh
 
10309
 
 
10310
# Support unset when possible.
 
10311
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
10312
  as_unset=unset
 
10313
else
 
10314
  as_unset=false
 
10315
fi
 
10316
 
 
10317
 
 
10318
# Work around bugs in pre-3.0 UWIN ksh.
 
10319
$as_unset ENV MAIL MAILPATH
 
10320
PS1='$ '
 
10321
PS2='> '
 
10322
PS4='+ '
 
10323
 
 
10324
# NLS nuisances.
 
10325
for as_var in \
 
10326
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
10327
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
10328
  LC_TELEPHONE LC_TIME
 
10329
do
 
10330
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
10331
    eval $as_var=C; export $as_var
 
10332
  else
 
10333
    $as_unset $as_var
 
10334
  fi
 
10335
done
 
10336
 
 
10337
# Required to use basename.
 
10338
if expr a : '\(a\)' >/dev/null 2>&1; then
 
10339
  as_expr=expr
 
10340
else
 
10341
  as_expr=false
 
10342
fi
 
10343
 
 
10344
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
10345
  as_basename=basename
 
10346
else
 
10347
  as_basename=false
 
10348
fi
 
10349
 
 
10350
 
 
10351
# Name of the executable.
 
10352
as_me=`$as_basename "$0" ||
 
10353
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
10354
         X"$0" : 'X\(//\)$' \| \
 
10355
         X"$0" : 'X\(/\)$' \| \
 
10356
         .     : '\(.\)' 2>/dev/null ||
 
10357
echo X/"$0" |
 
10358
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
10359
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
10360
          /^X\/\(\/\).*/{ s//\1/; q; }
 
10361
          s/.*/./; q'`
 
10362
 
 
10363
 
 
10364
# PATH needs CR, and LINENO needs CR and PATH.
 
10365
# Avoid depending upon Character Ranges.
 
10366
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
10367
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
10368
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
10369
as_cr_digits='0123456789'
 
10370
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
10371
 
 
10372
# The user is always right.
 
10373
if test "${PATH_SEPARATOR+set}" != set; then
 
10374
  echo "#! /bin/sh" >conf$$.sh
 
10375
  echo  "exit 0"   >>conf$$.sh
 
10376
  chmod +x conf$$.sh
 
10377
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
10378
    PATH_SEPARATOR=';'
 
10379
  else
 
10380
    PATH_SEPARATOR=:
 
10381
  fi
 
10382
  rm -f conf$$.sh
 
10383
fi
 
10384
 
 
10385
 
 
10386
  as_lineno_1=$LINENO
 
10387
  as_lineno_2=$LINENO
 
10388
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
10389
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
10390
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
10391
  # Find who we are.  Look in the path if we contain no path at all
 
10392
  # relative or not.
 
10393
  case $0 in
 
10394
    *[\\/]* ) as_myself=$0 ;;
 
10395
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10396
for as_dir in $PATH
 
10397
do
 
10398
  IFS=$as_save_IFS
 
10399
  test -z "$as_dir" && as_dir=.
 
10400
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
10401
done
 
10402
 
 
10403
       ;;
 
10404
  esac
 
10405
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
10406
  # in which case we are not to be found in the path.
 
10407
  if test "x$as_myself" = x; then
 
10408
    as_myself=$0
 
10409
  fi
 
10410
  if test ! -f "$as_myself"; then
 
10411
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
10412
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
10413
   { (exit 1); exit 1; }; }
 
10414
  fi
 
10415
  case $CONFIG_SHELL in
 
10416
  '')
 
10417
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10418
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
10419
do
 
10420
  IFS=$as_save_IFS
 
10421
  test -z "$as_dir" && as_dir=.
 
10422
  for as_base in sh bash ksh sh5; do
 
10423
         case $as_dir in
 
10424
         /*)
 
10425
           if ("$as_dir/$as_base" -c '
 
10426
  as_lineno_1=$LINENO
 
10427
  as_lineno_2=$LINENO
 
10428
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
10429
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
10430
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
10431
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
10432
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
10433
             CONFIG_SHELL=$as_dir/$as_base
 
10434
             export CONFIG_SHELL
 
10435
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
10436
           fi;;
 
10437
         esac
 
10438
       done
 
10439
done
 
10440
;;
 
10441
  esac
 
10442
 
 
10443
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
10444
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
10445
  # line-number line before each line; the second 'sed' does the real
 
10446
  # work.  The second script uses 'N' to pair each line-number line
 
10447
  # with the numbered line, and appends trailing '-' during
 
10448
  # substitution so that $LINENO is not a special case at line end.
 
10449
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
10450
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
10451
  sed '=' <$as_myself |
 
10452
    sed '
 
10453
      N
 
10454
      s,$,-,
 
10455
      : loop
 
10456
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
10457
      t loop
 
10458
      s,-$,,
 
10459
      s,^['$as_cr_digits']*\n,,
 
10460
    ' >$as_me.lineno &&
 
10461
  chmod +x $as_me.lineno ||
 
10462
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
10463
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
10464
   { (exit 1); exit 1; }; }
 
10465
 
 
10466
  # Don't try to exec as it changes $[0], causing all sort of problems
 
10467
  # (the dirname of $[0] is not the place where we might find the
 
10468
  # original and so on.  Autoconf is especially sensible to this).
 
10469
  . ./$as_me.lineno
 
10470
  # Exit status is that of the last command.
 
10471
  exit
 
10472
}
 
10473
 
 
10474
 
 
10475
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
10476
  *c*,-n*) ECHO_N= ECHO_C='
 
10477
' ECHO_T='      ' ;;
 
10478
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
10479
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
10480
esac
 
10481
 
 
10482
if expr a : '\(a\)' >/dev/null 2>&1; then
 
10483
  as_expr=expr
 
10484
else
 
10485
  as_expr=false
 
10486
fi
 
10487
 
 
10488
rm -f conf$$ conf$$.exe conf$$.file
 
10489
echo >conf$$.file
 
10490
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
10491
  # We could just check for DJGPP; but this test a) works b) is more generic
 
10492
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
10493
  if test -f conf$$.exe; then
 
10494
    # Don't use ln at all; we don't have any links
 
10495
    as_ln_s='cp -p'
 
10496
  else
 
10497
    as_ln_s='ln -s'
 
10498
  fi
 
10499
elif ln conf$$.file conf$$ 2>/dev/null; then
 
10500
  as_ln_s=ln
 
10501
else
 
10502
  as_ln_s='cp -p'
 
10503
fi
 
10504
rm -f conf$$ conf$$.exe conf$$.file
 
10505
 
 
10506
if mkdir -p . 2>/dev/null; then
 
10507
  as_mkdir_p=:
 
10508
else
 
10509
  test -d ./-p && rmdir ./-p
 
10510
  as_mkdir_p=false
 
10511
fi
 
10512
 
 
10513
as_executable_p="test -f"
 
10514
 
 
10515
# Sed expression to map a string onto a valid CPP name.
 
10516
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
10517
 
 
10518
# Sed expression to map a string onto a valid variable name.
 
10519
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
10520
 
 
10521
 
 
10522
# IFS
 
10523
# We need space, tab and new line, in precisely that order.
 
10524
as_nl='
 
10525
'
 
10526
IFS="   $as_nl"
 
10527
 
 
10528
# CDPATH.
 
10529
$as_unset CDPATH
 
10530
 
 
10531
exec 6>&1
 
10532
 
 
10533
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
10534
# report actual input values of CONFIG_FILES etc. instead of their
 
10535
# values after options handling.  Logging --version etc. is OK.
 
10536
exec 5>>config.log
 
10537
{
 
10538
  echo
 
10539
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
10540
## Running $as_me. ##
 
10541
_ASBOX
 
10542
} >&5
 
10543
cat >&5 <<_CSEOF
 
10544
 
 
10545
This file was extended by $as_me, which was
 
10546
generated by GNU Autoconf 2.59.  Invocation command line was
 
10547
 
 
10548
  CONFIG_FILES    = $CONFIG_FILES
 
10549
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
10550
  CONFIG_LINKS    = $CONFIG_LINKS
 
10551
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
10552
  $ $0 $@
 
10553
 
 
10554
_CSEOF
 
10555
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
10556
echo >&5
 
10557
_ACEOF
 
10558
 
 
10559
# Files that config.status was made for.
 
10560
if test -n "$ac_config_files"; then
 
10561
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
10562
fi
 
10563
 
 
10564
if test -n "$ac_config_headers"; then
 
10565
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
10566
fi
 
10567
 
 
10568
if test -n "$ac_config_links"; then
 
10569
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
10570
fi
 
10571
 
 
10572
if test -n "$ac_config_commands"; then
 
10573
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
10574
fi
 
10575
 
 
10576
cat >>$CONFIG_STATUS <<\_ACEOF
 
10577
 
 
10578
ac_cs_usage="\
 
10579
\`$as_me' instantiates files from templates according to the
 
10580
current configuration.
 
10581
 
 
10582
Usage: $0 [OPTIONS] [FILE]...
 
10583
 
 
10584
  -h, --help       print this help, then exit
 
10585
  -V, --version    print version number, then exit
 
10586
  -q, --quiet      do not print progress messages
 
10587
  -d, --debug      don't remove temporary files
 
10588
      --recheck    update $as_me by reconfiguring in the same conditions
 
10589
  --file=FILE[:TEMPLATE]
 
10590
                   instantiate the configuration file FILE
 
10591
  --header=FILE[:TEMPLATE]
 
10592
                   instantiate the configuration header FILE
 
10593
 
 
10594
Configuration files:
 
10595
$config_files
 
10596
 
 
10597
Configuration headers:
 
10598
$config_headers
 
10599
 
 
10600
Configuration commands:
 
10601
$config_commands
 
10602
 
 
10603
Report bugs to <bug-autoconf@gnu.org>."
 
10604
_ACEOF
 
10605
 
 
10606
cat >>$CONFIG_STATUS <<_ACEOF
 
10607
ac_cs_version="\\
 
10608
config.status
 
10609
configured by $0, generated by GNU Autoconf 2.59,
 
10610
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
10611
 
 
10612
Copyright (C) 2003 Free Software Foundation, Inc.
 
10613
This config.status script is free software; the Free Software Foundation
 
10614
gives unlimited permission to copy, distribute and modify it."
 
10615
srcdir=$srcdir
 
10616
INSTALL="$INSTALL"
 
10617
_ACEOF
 
10618
 
 
10619
cat >>$CONFIG_STATUS <<\_ACEOF
 
10620
# If no file are specified by the user, then we need to provide default
 
10621
# value.  By we need to know if files were specified by the user.
 
10622
ac_need_defaults=:
 
10623
while test $# != 0
 
10624
do
 
10625
  case $1 in
 
10626
  --*=*)
 
10627
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
10628
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
10629
    ac_shift=:
 
10630
    ;;
 
10631
  -*)
 
10632
    ac_option=$1
 
10633
    ac_optarg=$2
 
10634
    ac_shift=shift
 
10635
    ;;
 
10636
  *) # This is not an option, so the user has probably given explicit
 
10637
     # arguments.
 
10638
     ac_option=$1
 
10639
     ac_need_defaults=false;;
 
10640
  esac
 
10641
 
 
10642
  case $ac_option in
 
10643
  # Handling of the options.
 
10644
_ACEOF
 
10645
cat >>$CONFIG_STATUS <<\_ACEOF
 
10646
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
10647
    ac_cs_recheck=: ;;
 
10648
  --version | --vers* | -V )
 
10649
    echo "$ac_cs_version"; exit 0 ;;
 
10650
  --he | --h)
 
10651
    # Conflict between --help and --header
 
10652
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
10653
Try \`$0 --help' for more information." >&5
 
10654
echo "$as_me: error: ambiguous option: $1
 
10655
Try \`$0 --help' for more information." >&2;}
 
10656
   { (exit 1); exit 1; }; };;
 
10657
  --help | --hel | -h )
 
10658
    echo "$ac_cs_usage"; exit 0 ;;
 
10659
  --debug | --d* | -d )
 
10660
    debug=: ;;
 
10661
  --file | --fil | --fi | --f )
 
10662
    $ac_shift
 
10663
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
10664
    ac_need_defaults=false;;
 
10665
  --header | --heade | --head | --hea )
 
10666
    $ac_shift
 
10667
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
10668
    ac_need_defaults=false;;
 
10669
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
10670
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
10671
    ac_cs_silent=: ;;
 
10672
 
 
10673
  # This is an error.
 
10674
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
10675
Try \`$0 --help' for more information." >&5
 
10676
echo "$as_me: error: unrecognized option: $1
 
10677
Try \`$0 --help' for more information." >&2;}
 
10678
   { (exit 1); exit 1; }; } ;;
 
10679
 
 
10680
  *) ac_config_targets="$ac_config_targets $1" ;;
 
10681
 
 
10682
  esac
 
10683
  shift
 
10684
done
 
10685
 
 
10686
ac_configure_extra_args=
 
10687
 
 
10688
if $ac_cs_silent; then
 
10689
  exec 6>/dev/null
 
10690
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
10691
fi
 
10692
 
 
10693
_ACEOF
 
10694
cat >>$CONFIG_STATUS <<_ACEOF
 
10695
if \$ac_cs_recheck; then
 
10696
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
10697
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
10698
fi
 
10699
 
 
10700
_ACEOF
 
10701
 
 
10702
cat >>$CONFIG_STATUS <<_ACEOF
 
10703
#
 
10704
# INIT-COMMANDS section.
 
10705
#
 
10706
 
 
10707
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
10708
 
 
10709
_ACEOF
 
10710
 
 
10711
 
 
10712
 
 
10713
cat >>$CONFIG_STATUS <<\_ACEOF
 
10714
for ac_config_target in $ac_config_targets
 
10715
do
 
10716
  case "$ac_config_target" in
 
10717
  # Handling of arguments.
 
10718
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
10719
  "decoder/Makefile" ) CONFIG_FILES="$CONFIG_FILES decoder/Makefile" ;;
 
10720
  "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
 
10721
  "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
 
10722
  "common/m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/m4/Makefile" ;;
 
10723
  "gst-fluendo-mp3.spec" ) CONFIG_FILES="$CONFIG_FILES gst-fluendo-mp3.spec" ;;
 
10724
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
10725
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
10726
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
10727
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
10728
   { (exit 1); exit 1; }; };;
 
10729
  esac
 
10730
done
 
10731
 
 
10732
# If the user did not use the arguments to specify the items to instantiate,
 
10733
# then the envvar interface is used.  Set only those that are not.
 
10734
# We use the long form for the default assignment because of an extremely
 
10735
# bizarre bug on SunOS 4.1.3.
 
10736
if $ac_need_defaults; then
 
10737
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
10738
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
10739
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
10740
fi
 
10741
 
 
10742
# Have a temporary directory for convenience.  Make it in the build tree
 
10743
# simply because there is no reason to put it here, and in addition,
 
10744
# creating and moving files from /tmp can sometimes cause problems.
 
10745
# Create a temporary directory, and hook for its removal unless debugging.
 
10746
$debug ||
 
10747
{
 
10748
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
10749
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
10750
}
 
10751
 
 
10752
# Create a (secure) tmp directory for tmp files.
 
10753
 
 
10754
{
 
10755
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
10756
  test -n "$tmp" && test -d "$tmp"
 
10757
}  ||
 
10758
{
 
10759
  tmp=./confstat$$-$RANDOM
 
10760
  (umask 077 && mkdir $tmp)
 
10761
} ||
 
10762
{
 
10763
   echo "$me: cannot create a temporary directory in ." >&2
 
10764
   { (exit 1); exit 1; }
 
10765
}
 
10766
 
 
10767
_ACEOF
 
10768
 
 
10769
cat >>$CONFIG_STATUS <<_ACEOF
 
10770
 
 
10771
#
 
10772
# CONFIG_FILES section.
 
10773
#
 
10774
 
 
10775
# No need to generate the scripts if there are no CONFIG_FILES.
 
10776
# This happens for instance when ./config.status config.h
 
10777
if test -n "\$CONFIG_FILES"; then
 
10778
  # Protect against being on the right side of a sed subst in config.status.
 
10779
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
10780
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
10781
s,@SHELL@,$SHELL,;t t
 
10782
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
10783
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
10784
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
10785
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
10786
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
10787
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
10788
s,@exec_prefix@,$exec_prefix,;t t
 
10789
s,@prefix@,$prefix,;t t
 
10790
s,@program_transform_name@,$program_transform_name,;t t
 
10791
s,@bindir@,$bindir,;t t
 
10792
s,@sbindir@,$sbindir,;t t
 
10793
s,@libexecdir@,$libexecdir,;t t
 
10794
s,@datadir@,$datadir,;t t
 
10795
s,@sysconfdir@,$sysconfdir,;t t
 
10796
s,@sharedstatedir@,$sharedstatedir,;t t
 
10797
s,@localstatedir@,$localstatedir,;t t
 
10798
s,@libdir@,$libdir,;t t
 
10799
s,@includedir@,$includedir,;t t
 
10800
s,@oldincludedir@,$oldincludedir,;t t
 
10801
s,@infodir@,$infodir,;t t
 
10802
s,@mandir@,$mandir,;t t
 
10803
s,@build_alias@,$build_alias,;t t
 
10804
s,@host_alias@,$host_alias,;t t
 
10805
s,@target_alias@,$target_alias,;t t
 
10806
s,@DEFS@,$DEFS,;t t
 
10807
s,@ECHO_C@,$ECHO_C,;t t
 
10808
s,@ECHO_N@,$ECHO_N,;t t
 
10809
s,@ECHO_T@,$ECHO_T,;t t
 
10810
s,@LIBS@,$LIBS,;t t
 
10811
s,@GST_PLUGIN_VERSION@,$GST_PLUGIN_VERSION,;t t
 
10812
s,@GST_PLUGIN_VERSION_RELEASE@,$GST_PLUGIN_VERSION_RELEASE,;t t
 
10813
s,@GST_PLUGIN_VERSION_MAJOR@,$GST_PLUGIN_VERSION_MAJOR,;t t
 
10814
s,@GST_PLUGIN_VERSION_MINOR@,$GST_PLUGIN_VERSION_MINOR,;t t
 
10815
s,@GST_PLUGIN_VERSION_MICRO@,$GST_PLUGIN_VERSION_MICRO,;t t
 
10816
s,@GST_PLUGIN_VERSION_NANO@,$GST_PLUGIN_VERSION_NANO,;t t
 
10817
s,@PACKAGE@,$PACKAGE,;t t
 
10818
s,@VERSION@,$VERSION,;t t
 
10819
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
10820
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
10821
s,@MAINT@,$MAINT,;t t
 
10822
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
10823
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
10824
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
10825
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
10826
s,@ACLOCAL@,$ACLOCAL,;t t
 
10827
s,@AUTOCONF@,$AUTOCONF,;t t
 
10828
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
10829
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
10830
s,@MAKEINFO@,$MAKEINFO,;t t
 
10831
s,@install_sh@,$install_sh,;t t
 
10832
s,@STRIP@,$STRIP,;t t
 
10833
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
10834
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
10835
s,@mkdir_p@,$mkdir_p,;t t
 
10836
s,@AWK@,$AWK,;t t
 
10837
s,@SET_MAKE@,$SET_MAKE,;t t
 
10838
s,@am__leading_dot@,$am__leading_dot,;t t
 
10839
s,@AMTAR@,$AMTAR,;t t
 
10840
s,@am__tar@,$am__tar,;t t
 
10841
s,@am__untar@,$am__untar,;t t
 
10842
s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
 
10843
s,@build@,$build,;t t
 
10844
s,@build_cpu@,$build_cpu,;t t
 
10845
s,@build_vendor@,$build_vendor,;t t
 
10846
s,@build_os@,$build_os,;t t
 
10847
s,@host@,$host,;t t
 
10848
s,@host_cpu@,$host_cpu,;t t
 
10849
s,@host_vendor@,$host_vendor,;t t
 
10850
s,@host_os@,$host_os,;t t
 
10851
s,@CC@,$CC,;t t
 
10852
s,@CFLAGS@,$CFLAGS,;t t
 
10853
s,@LDFLAGS@,$LDFLAGS,;t t
 
10854
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
10855
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
10856
s,@EXEEXT@,$EXEEXT,;t t
 
10857
s,@OBJEXT@,$OBJEXT,;t t
 
10858
s,@DEPDIR@,$DEPDIR,;t t
 
10859
s,@am__include@,$am__include,;t t
 
10860
s,@am__quote@,$am__quote,;t t
 
10861
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
10862
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
10863
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
10864
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
10865
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
10866
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
10867
s,@EGREP@,$EGREP,;t t
 
10868
s,@LN_S@,$LN_S,;t t
 
10869
s,@ECHO@,$ECHO,;t t
 
10870
s,@AR@,$AR,;t t
 
10871
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
10872
s,@RANLIB@,$RANLIB,;t t
 
10873
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
10874
s,@CPP@,$CPP,;t t
 
10875
s,@LIBTOOL@,$LIBTOOL,;t t
 
10876
s,@ISODATE@,$ISODATE,;t t
 
10877
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
10878
s,@VALGRIND_CFLAGS@,$VALGRIND_CFLAGS,;t t
 
10879
s,@VALGRIND_LIBS@,$VALGRIND_LIBS,;t t
 
10880
s,@GST_GCOV_ENABLED_TRUE@,$GST_GCOV_ENABLED_TRUE,;t t
 
10881
s,@GST_GCOV_ENABLED_FALSE@,$GST_GCOV_ENABLED_FALSE,;t t
 
10882
s,@BUILD_EXAMPLES_TRUE@,$BUILD_EXAMPLES_TRUE,;t t
 
10883
s,@BUILD_EXAMPLES_FALSE@,$BUILD_EXAMPLES_FALSE,;t t
 
10884
s,@GST_PACKAGE_NAME@,$GST_PACKAGE_NAME,;t t
 
10885
s,@GST_PACKAGE_ORIGIN@,$GST_PACKAGE_ORIGIN,;t t
 
10886
s,@HAVE_PKGCONFIG@,$HAVE_PKGCONFIG,;t t
 
10887
s,@USE_IPP_TRUE@,$USE_IPP_TRUE,;t t
 
10888
s,@USE_IPP_FALSE@,$USE_IPP_FALSE,;t t
 
10889
s,@IPP_LIBS@,$IPP_LIBS,;t t
 
10890
s,@IPP_INCLUDES@,$IPP_INCLUDES,;t t
 
10891
s,@GST_MAJORMINOR@,$GST_MAJORMINOR,;t t
 
10892
s,@GST_CFLAGS@,$GST_CFLAGS,;t t
 
10893
s,@GST_LIBS@,$GST_LIBS,;t t
 
10894
s,@plugindir@,$plugindir,;t t
 
10895
s,@PLUGIN_LDFLAGS@,$PLUGIN_LDFLAGS,;t t
 
10896
s,@LIBOBJS@,$LIBOBJS,;t t
 
10897
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
10898
CEOF
 
10899
 
 
10900
_ACEOF
 
10901
 
 
10902
  cat >>$CONFIG_STATUS <<\_ACEOF
 
10903
  # Split the substitutions into bite-sized pieces for seds with
 
10904
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
10905
  ac_max_sed_lines=48
 
10906
  ac_sed_frag=1 # Number of current file.
 
10907
  ac_beg=1 # First line for current file.
 
10908
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
10909
  ac_more_lines=:
 
10910
  ac_sed_cmds=
 
10911
  while $ac_more_lines; do
 
10912
    if test $ac_beg -gt 1; then
 
10913
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
10914
    else
 
10915
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
10916
    fi
 
10917
    if test ! -s $tmp/subs.frag; then
 
10918
      ac_more_lines=false
 
10919
    else
 
10920
      # The purpose of the label and of the branching condition is to
 
10921
      # speed up the sed processing (if there are no `@' at all, there
 
10922
      # is no need to browse any of the substitutions).
 
10923
      # These are the two extra sed commands mentioned above.
 
10924
      (echo ':t
 
10925
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
10926
      if test -z "$ac_sed_cmds"; then
 
10927
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
10928
      else
 
10929
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
10930
      fi
 
10931
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
10932
      ac_beg=$ac_end
 
10933
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
10934
    fi
 
10935
  done
 
10936
  if test -z "$ac_sed_cmds"; then
 
10937
    ac_sed_cmds=cat
 
10938
  fi
 
10939
fi # test -n "$CONFIG_FILES"
 
10940
 
 
10941
_ACEOF
 
10942
cat >>$CONFIG_STATUS <<\_ACEOF
 
10943
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
10944
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
10945
  case $ac_file in
 
10946
  - | *:- | *:-:* ) # input from stdin
 
10947
        cat >$tmp/stdin
 
10948
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10949
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10950
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10951
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10952
  * )   ac_file_in=$ac_file.in ;;
 
10953
  esac
 
10954
 
 
10955
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
10956
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
10957
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10958
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
10959
         X"$ac_file" : 'X\(//\)$' \| \
 
10960
         X"$ac_file" : 'X\(/\)' \| \
 
10961
         .     : '\(.\)' 2>/dev/null ||
 
10962
echo X"$ac_file" |
 
10963
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10964
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10965
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10966
          /^X\(\/\).*/{ s//\1/; q; }
 
10967
          s/.*/./; q'`
 
10968
  { if $as_mkdir_p; then
 
10969
    mkdir -p "$ac_dir"
 
10970
  else
 
10971
    as_dir="$ac_dir"
 
10972
    as_dirs=
 
10973
    while test ! -d "$as_dir"; do
 
10974
      as_dirs="$as_dir $as_dirs"
 
10975
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
10976
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10977
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
10978
         X"$as_dir" : 'X\(//\)$' \| \
 
10979
         X"$as_dir" : 'X\(/\)' \| \
 
10980
         .     : '\(.\)' 2>/dev/null ||
 
10981
echo X"$as_dir" |
 
10982
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10983
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10984
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10985
          /^X\(\/\).*/{ s//\1/; q; }
 
10986
          s/.*/./; q'`
 
10987
    done
 
10988
    test ! -n "$as_dirs" || mkdir $as_dirs
 
10989
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
10990
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
10991
   { (exit 1); exit 1; }; }; }
 
10992
 
 
10993
  ac_builddir=.
 
10994
 
 
10995
if test "$ac_dir" != .; then
 
10996
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
10997
  # A "../" for each directory in $ac_dir_suffix.
 
10998
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
10999
else
 
11000
  ac_dir_suffix= ac_top_builddir=
 
11001
fi
 
11002
 
 
11003
case $srcdir in
 
11004
  .)  # No --srcdir option.  We are building in place.
 
11005
    ac_srcdir=.
 
11006
    if test -z "$ac_top_builddir"; then
 
11007
       ac_top_srcdir=.
 
11008
    else
 
11009
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
11010
    fi ;;
 
11011
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
11012
    ac_srcdir=$srcdir$ac_dir_suffix;
 
11013
    ac_top_srcdir=$srcdir ;;
 
11014
  *) # Relative path.
 
11015
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
11016
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
11017
esac
 
11018
 
 
11019
# Do not use `cd foo && pwd` to compute absolute paths, because
 
11020
# the directories may not exist.
 
11021
case `pwd` in
 
11022
.) ac_abs_builddir="$ac_dir";;
 
11023
*)
 
11024
  case "$ac_dir" in
 
11025
  .) ac_abs_builddir=`pwd`;;
 
11026
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
11027
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
11028
  esac;;
 
11029
esac
 
11030
case $ac_abs_builddir in
 
11031
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
11032
*)
 
11033
  case ${ac_top_builddir}. in
 
11034
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
11035
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
11036
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
11037
  esac;;
 
11038
esac
 
11039
case $ac_abs_builddir in
 
11040
.) ac_abs_srcdir=$ac_srcdir;;
 
11041
*)
 
11042
  case $ac_srcdir in
 
11043
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
11044
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
11045
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
11046
  esac;;
 
11047
esac
 
11048
case $ac_abs_builddir in
 
11049
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
11050
*)
 
11051
  case $ac_top_srcdir in
 
11052
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
11053
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
11054
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
11055
  esac;;
 
11056
esac
 
11057
 
 
11058
 
 
11059
  case $INSTALL in
 
11060
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
11061
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
11062
  esac
 
11063
 
 
11064
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
11065
  # use $as_me), people would be surprised to read:
 
11066
  #    /* config.h.  Generated by config.status.  */
 
11067
  if test x"$ac_file" = x-; then
 
11068
    configure_input=
 
11069
  else
 
11070
    configure_input="$ac_file.  "
 
11071
  fi
 
11072
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
11073
                                     sed 's,.*/,,'` by configure."
 
11074
 
 
11075
  # First look for the input files in the build tree, otherwise in the
 
11076
  # src tree.
 
11077
  ac_file_inputs=`IFS=:
 
11078
    for f in $ac_file_in; do
 
11079
      case $f in
 
11080
      -) echo $tmp/stdin ;;
 
11081
      [\\/$]*)
 
11082
         # Absolute (can't be DOS-style, as IFS=:)
 
11083
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
11084
echo "$as_me: error: cannot find input file: $f" >&2;}
 
11085
   { (exit 1); exit 1; }; }
 
11086
         echo "$f";;
 
11087
      *) # Relative
 
11088
         if test -f "$f"; then
 
11089
           # Build tree
 
11090
           echo "$f"
 
11091
         elif test -f "$srcdir/$f"; then
 
11092
           # Source tree
 
11093
           echo "$srcdir/$f"
 
11094
         else
 
11095
           # /dev/null tree
 
11096
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
11097
echo "$as_me: error: cannot find input file: $f" >&2;}
 
11098
   { (exit 1); exit 1; }; }
 
11099
         fi;;
 
11100
      esac
 
11101
    done` || { (exit 1); exit 1; }
 
11102
 
 
11103
  if test x"$ac_file" != x-; then
 
11104
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
11105
echo "$as_me: creating $ac_file" >&6;}
 
11106
    rm -f "$ac_file"
 
11107
  fi
 
11108
_ACEOF
 
11109
cat >>$CONFIG_STATUS <<_ACEOF
 
11110
  sed "$ac_vpsub
 
11111
$extrasub
 
11112
_ACEOF
 
11113
cat >>$CONFIG_STATUS <<\_ACEOF
 
11114
:t
 
11115
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
11116
s,@configure_input@,$configure_input,;t t
 
11117
s,@srcdir@,$ac_srcdir,;t t
 
11118
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
11119
s,@top_srcdir@,$ac_top_srcdir,;t t
 
11120
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
11121
s,@builddir@,$ac_builddir,;t t
 
11122
s,@abs_builddir@,$ac_abs_builddir,;t t
 
11123
s,@top_builddir@,$ac_top_builddir,;t t
 
11124
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
11125
s,@INSTALL@,$ac_INSTALL,;t t
 
11126
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
11127
  rm -f $tmp/stdin
 
11128
  if test x"$ac_file" != x-; then
 
11129
    mv $tmp/out $ac_file
 
11130
  else
 
11131
    cat $tmp/out
 
11132
    rm -f $tmp/out
 
11133
  fi
 
11134
 
 
11135
done
 
11136
_ACEOF
 
11137
cat >>$CONFIG_STATUS <<\_ACEOF
 
11138
 
 
11139
#
 
11140
# CONFIG_HEADER section.
 
11141
#
 
11142
 
 
11143
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
11144
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
11145
#
 
11146
# ac_d sets the value in "#define NAME VALUE" lines.
 
11147
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
11148
ac_dB='[         ].*$,\1#\2'
 
11149
ac_dC=' '
 
11150
ac_dD=',;t'
 
11151
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
11152
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
11153
ac_uB='$,\1#\2define\3'
 
11154
ac_uC=' '
 
11155
ac_uD=',;t'
 
11156
 
 
11157
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
11158
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
11159
  case $ac_file in
 
11160
  - | *:- | *:-:* ) # input from stdin
 
11161
        cat >$tmp/stdin
 
11162
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
11163
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
11164
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
11165
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
11166
  * )   ac_file_in=$ac_file.in ;;
 
11167
  esac
 
11168
 
 
11169
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
11170
echo "$as_me: creating $ac_file" >&6;}
 
11171
 
 
11172
  # First look for the input files in the build tree, otherwise in the
 
11173
  # src tree.
 
11174
  ac_file_inputs=`IFS=:
 
11175
    for f in $ac_file_in; do
 
11176
      case $f in
 
11177
      -) echo $tmp/stdin ;;
 
11178
      [\\/$]*)
 
11179
         # Absolute (can't be DOS-style, as IFS=:)
 
11180
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
11181
echo "$as_me: error: cannot find input file: $f" >&2;}
 
11182
   { (exit 1); exit 1; }; }
 
11183
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
11184
         echo "$f";;
 
11185
      *) # Relative
 
11186
         if test -f "$f"; then
 
11187
           # Build tree
 
11188
           echo "$f"
 
11189
         elif test -f "$srcdir/$f"; then
 
11190
           # Source tree
 
11191
           echo "$srcdir/$f"
 
11192
         else
 
11193
           # /dev/null tree
 
11194
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
11195
echo "$as_me: error: cannot find input file: $f" >&2;}
 
11196
   { (exit 1); exit 1; }; }
 
11197
         fi;;
 
11198
      esac
 
11199
    done` || { (exit 1); exit 1; }
 
11200
  # Remove the trailing spaces.
 
11201
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
11202
 
 
11203
_ACEOF
 
11204
 
 
11205
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
11206
# `conftest.undefs', that substitutes the proper values into
 
11207
# config.h.in to produce config.h.  The first handles `#define'
 
11208
# templates, and the second `#undef' templates.
 
11209
# And first: Protect against being on the right side of a sed subst in
 
11210
# config.status.  Protect against being in an unquoted here document
 
11211
# in config.status.
 
11212
rm -f conftest.defines conftest.undefs
 
11213
# Using a here document instead of a string reduces the quoting nightmare.
 
11214
# Putting comments in sed scripts is not portable.
 
11215
#
 
11216
# `end' is used to avoid that the second main sed command (meant for
 
11217
# 0-ary CPP macros) applies to n-ary macro definitions.
 
11218
# See the Autoconf documentation for `clear'.
 
11219
cat >confdef2sed.sed <<\_ACEOF
 
11220
s/[\\&,]/\\&/g
 
11221
s,[\\$`],\\&,g
 
11222
t clear
 
11223
: clear
 
11224
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
11225
t end
 
11226
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
11227
: end
 
11228
_ACEOF
 
11229
# If some macros were called several times there might be several times
 
11230
# the same #defines, which is useless.  Nevertheless, we may not want to
 
11231
# sort them, since we want the *last* AC-DEFINE to be honored.
 
11232
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
11233
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
11234
rm -f confdef2sed.sed
 
11235
 
 
11236
# This sed command replaces #undef with comments.  This is necessary, for
 
11237
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
11238
# on some systems where configure will not decide to define it.
 
11239
cat >>conftest.undefs <<\_ACEOF
 
11240
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
11241
_ACEOF
 
11242
 
 
11243
# Break up conftest.defines because some shells have a limit on the size
 
11244
# of here documents, and old seds have small limits too (100 cmds).
 
11245
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
11246
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
11247
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
11248
echo '  :' >>$CONFIG_STATUS
 
11249
rm -f conftest.tail
 
11250
while grep . conftest.defines >/dev/null
 
11251
do
 
11252
  # Write a limited-size here document to $tmp/defines.sed.
 
11253
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
11254
  # Speed up: don't consider the non `#define' lines.
 
11255
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
11256
  # Work around the forget-to-reset-the-flag bug.
 
11257
  echo 't clr' >>$CONFIG_STATUS
 
11258
  echo ': clr' >>$CONFIG_STATUS
 
11259
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
11260
  echo 'CEOF
 
11261
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
11262
  rm -f $tmp/in
 
11263
  mv $tmp/out $tmp/in
 
11264
' >>$CONFIG_STATUS
 
11265
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
11266
  rm -f conftest.defines
 
11267
  mv conftest.tail conftest.defines
 
11268
done
 
11269
rm -f conftest.defines
 
11270
echo '  fi # grep' >>$CONFIG_STATUS
 
11271
echo >>$CONFIG_STATUS
 
11272
 
 
11273
# Break up conftest.undefs because some shells have a limit on the size
 
11274
# of here documents, and old seds have small limits too (100 cmds).
 
11275
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
11276
rm -f conftest.tail
 
11277
while grep . conftest.undefs >/dev/null
 
11278
do
 
11279
  # Write a limited-size here document to $tmp/undefs.sed.
 
11280
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
11281
  # Speed up: don't consider the non `#undef'
 
11282
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
11283
  # Work around the forget-to-reset-the-flag bug.
 
11284
  echo 't clr' >>$CONFIG_STATUS
 
11285
  echo ': clr' >>$CONFIG_STATUS
 
11286
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
11287
  echo 'CEOF
 
11288
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
11289
  rm -f $tmp/in
 
11290
  mv $tmp/out $tmp/in
 
11291
' >>$CONFIG_STATUS
 
11292
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
11293
  rm -f conftest.undefs
 
11294
  mv conftest.tail conftest.undefs
 
11295
done
 
11296
rm -f conftest.undefs
 
11297
 
 
11298
cat >>$CONFIG_STATUS <<\_ACEOF
 
11299
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
11300
  # use $as_me), people would be surprised to read:
 
11301
  #    /* config.h.  Generated by config.status.  */
 
11302
  if test x"$ac_file" = x-; then
 
11303
    echo "/* Generated by configure.  */" >$tmp/config.h
 
11304
  else
 
11305
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
11306
  fi
 
11307
  cat $tmp/in >>$tmp/config.h
 
11308
  rm -f $tmp/in
 
11309
  if test x"$ac_file" != x-; then
 
11310
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
11311
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
11312
echo "$as_me: $ac_file is unchanged" >&6;}
 
11313
    else
 
11314
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
11315
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11316
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
11317
         X"$ac_file" : 'X\(//\)$' \| \
 
11318
         X"$ac_file" : 'X\(/\)' \| \
 
11319
         .     : '\(.\)' 2>/dev/null ||
 
11320
echo X"$ac_file" |
 
11321
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11322
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11323
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11324
          /^X\(\/\).*/{ s//\1/; q; }
 
11325
          s/.*/./; q'`
 
11326
      { if $as_mkdir_p; then
 
11327
    mkdir -p "$ac_dir"
 
11328
  else
 
11329
    as_dir="$ac_dir"
 
11330
    as_dirs=
 
11331
    while test ! -d "$as_dir"; do
 
11332
      as_dirs="$as_dir $as_dirs"
 
11333
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
11334
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11335
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
11336
         X"$as_dir" : 'X\(//\)$' \| \
 
11337
         X"$as_dir" : 'X\(/\)' \| \
 
11338
         .     : '\(.\)' 2>/dev/null ||
 
11339
echo X"$as_dir" |
 
11340
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11341
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11342
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11343
          /^X\(\/\).*/{ s//\1/; q; }
 
11344
          s/.*/./; q'`
 
11345
    done
 
11346
    test ! -n "$as_dirs" || mkdir $as_dirs
 
11347
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
11348
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
11349
   { (exit 1); exit 1; }; }; }
 
11350
 
 
11351
      rm -f $ac_file
 
11352
      mv $tmp/config.h $ac_file
 
11353
    fi
 
11354
  else
 
11355
    cat $tmp/config.h
 
11356
    rm -f $tmp/config.h
 
11357
  fi
 
11358
# Compute $ac_file's index in $config_headers.
 
11359
_am_stamp_count=1
 
11360
for _am_header in $config_headers :; do
 
11361
  case $_am_header in
 
11362
    $ac_file | $ac_file:* )
 
11363
      break ;;
 
11364
    * )
 
11365
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
11366
  esac
 
11367
done
 
11368
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
11369
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11370
         X$ac_file : 'X\(//\)[^/]' \| \
 
11371
         X$ac_file : 'X\(//\)$' \| \
 
11372
         X$ac_file : 'X\(/\)' \| \
 
11373
         .     : '\(.\)' 2>/dev/null ||
 
11374
echo X$ac_file |
 
11375
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11376
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11377
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11378
          /^X\(\/\).*/{ s//\1/; q; }
 
11379
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
11380
done
 
11381
_ACEOF
 
11382
cat >>$CONFIG_STATUS <<\_ACEOF
 
11383
 
 
11384
#
 
11385
# CONFIG_COMMANDS section.
 
11386
#
 
11387
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
11388
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
11389
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
11390
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
11391
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11392
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
11393
         X"$ac_dest" : 'X\(//\)$' \| \
 
11394
         X"$ac_dest" : 'X\(/\)' \| \
 
11395
         .     : '\(.\)' 2>/dev/null ||
 
11396
echo X"$ac_dest" |
 
11397
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11398
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11399
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11400
          /^X\(\/\).*/{ s//\1/; q; }
 
11401
          s/.*/./; q'`
 
11402
  { if $as_mkdir_p; then
 
11403
    mkdir -p "$ac_dir"
 
11404
  else
 
11405
    as_dir="$ac_dir"
 
11406
    as_dirs=
 
11407
    while test ! -d "$as_dir"; do
 
11408
      as_dirs="$as_dir $as_dirs"
 
11409
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
11410
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11411
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
11412
         X"$as_dir" : 'X\(//\)$' \| \
 
11413
         X"$as_dir" : 'X\(/\)' \| \
 
11414
         .     : '\(.\)' 2>/dev/null ||
 
11415
echo X"$as_dir" |
 
11416
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11417
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11418
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11419
          /^X\(\/\).*/{ s//\1/; q; }
 
11420
          s/.*/./; q'`
 
11421
    done
 
11422
    test ! -n "$as_dirs" || mkdir $as_dirs
 
11423
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
11424
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
11425
   { (exit 1); exit 1; }; }; }
 
11426
 
 
11427
  ac_builddir=.
 
11428
 
 
11429
if test "$ac_dir" != .; then
 
11430
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
11431
  # A "../" for each directory in $ac_dir_suffix.
 
11432
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
11433
else
 
11434
  ac_dir_suffix= ac_top_builddir=
 
11435
fi
 
11436
 
 
11437
case $srcdir in
 
11438
  .)  # No --srcdir option.  We are building in place.
 
11439
    ac_srcdir=.
 
11440
    if test -z "$ac_top_builddir"; then
 
11441
       ac_top_srcdir=.
 
11442
    else
 
11443
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
11444
    fi ;;
 
11445
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
11446
    ac_srcdir=$srcdir$ac_dir_suffix;
 
11447
    ac_top_srcdir=$srcdir ;;
 
11448
  *) # Relative path.
 
11449
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
11450
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
11451
esac
 
11452
 
 
11453
# Do not use `cd foo && pwd` to compute absolute paths, because
 
11454
# the directories may not exist.
 
11455
case `pwd` in
 
11456
.) ac_abs_builddir="$ac_dir";;
 
11457
*)
 
11458
  case "$ac_dir" in
 
11459
  .) ac_abs_builddir=`pwd`;;
 
11460
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
11461
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
11462
  esac;;
 
11463
esac
 
11464
case $ac_abs_builddir in
 
11465
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
11466
*)
 
11467
  case ${ac_top_builddir}. in
 
11468
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
11469
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
11470
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
11471
  esac;;
 
11472
esac
 
11473
case $ac_abs_builddir in
 
11474
.) ac_abs_srcdir=$ac_srcdir;;
 
11475
*)
 
11476
  case $ac_srcdir in
 
11477
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
11478
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
11479
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
11480
  esac;;
 
11481
esac
 
11482
case $ac_abs_builddir in
 
11483
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
11484
*)
 
11485
  case $ac_top_srcdir in
 
11486
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
11487
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
11488
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
11489
  esac;;
 
11490
esac
 
11491
 
 
11492
 
 
11493
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
11494
echo "$as_me: executing $ac_dest commands" >&6;}
 
11495
  case $ac_dest in
 
11496
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
11497
  # Strip MF so we end up with the name of the file.
 
11498
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
11499
  # Check whether this is an Automake generated Makefile or not.
 
11500
  # We used to match only the files named `Makefile.in', but
 
11501
  # some people rename them; so instead we look at the file content.
 
11502
  # Grep'ing the first line is not enough: some people post-process
 
11503
  # each Makefile.in and add a new line on top of each file to say so.
 
11504
  # So let's grep whole file.
 
11505
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
11506
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
11507
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11508
         X"$mf" : 'X\(//\)[^/]' \| \
 
11509
         X"$mf" : 'X\(//\)$' \| \
 
11510
         X"$mf" : 'X\(/\)' \| \
 
11511
         .     : '\(.\)' 2>/dev/null ||
 
11512
echo X"$mf" |
 
11513
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11514
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11515
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11516
          /^X\(\/\).*/{ s//\1/; q; }
 
11517
          s/.*/./; q'`
 
11518
  else
 
11519
    continue
 
11520
  fi
 
11521
  # Extract the definition of DEPDIR, am__include, and am__quote
 
11522
  # from the Makefile without running `make'.
 
11523
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
11524
  test -z "$DEPDIR" && continue
 
11525
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
11526
  test -z "am__include" && continue
 
11527
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
11528
  # When using ansi2knr, U may be empty or an underscore; expand it
 
11529
  U=`sed -n 's/^U = //p' < "$mf"`
 
11530
  # Find all dependency output files, they are included files with
 
11531
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
11532
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
11533
  # expansion.
 
11534
  for file in `sed -n "
 
11535
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
11536
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
11537
    # Make sure the directory exists.
 
11538
    test -f "$dirpart/$file" && continue
 
11539
    fdir=`(dirname "$file") 2>/dev/null ||
 
11540
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11541
         X"$file" : 'X\(//\)[^/]' \| \
 
11542
         X"$file" : 'X\(//\)$' \| \
 
11543
         X"$file" : 'X\(/\)' \| \
 
11544
         .     : '\(.\)' 2>/dev/null ||
 
11545
echo X"$file" |
 
11546
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11547
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11548
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11549
          /^X\(\/\).*/{ s//\1/; q; }
 
11550
          s/.*/./; q'`
 
11551
    { if $as_mkdir_p; then
 
11552
    mkdir -p $dirpart/$fdir
 
11553
  else
 
11554
    as_dir=$dirpart/$fdir
 
11555
    as_dirs=
 
11556
    while test ! -d "$as_dir"; do
 
11557
      as_dirs="$as_dir $as_dirs"
 
11558
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
11559
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
11560
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
11561
         X"$as_dir" : 'X\(//\)$' \| \
 
11562
         X"$as_dir" : 'X\(/\)' \| \
 
11563
         .     : '\(.\)' 2>/dev/null ||
 
11564
echo X"$as_dir" |
 
11565
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
11566
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
11567
          /^X\(\/\/\)$/{ s//\1/; q; }
 
11568
          /^X\(\/\).*/{ s//\1/; q; }
 
11569
          s/.*/./; q'`
 
11570
    done
 
11571
    test ! -n "$as_dirs" || mkdir $as_dirs
 
11572
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
11573
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
11574
   { (exit 1); exit 1; }; }; }
 
11575
 
 
11576
    # echo "creating $dirpart/$file"
 
11577
    echo '# dummy' > "$dirpart/$file"
 
11578
  done
 
11579
done
 
11580
 ;;
 
11581
  esac
 
11582
done
 
11583
_ACEOF
 
11584
 
 
11585
cat >>$CONFIG_STATUS <<\_ACEOF
 
11586
 
 
11587
{ (exit 0); exit 0; }
 
11588
_ACEOF
 
11589
chmod +x $CONFIG_STATUS
 
11590
ac_clean_files=$ac_clean_files_save
 
11591
 
 
11592
 
 
11593
# configure is writing to config.log, and then calls config.status.
 
11594
# config.status does its own redirection, appending to config.log.
 
11595
# Unfortunately, on DOS this fails, as config.log is still kept open
 
11596
# by configure, so config.status won't be able to write to it; its
 
11597
# output is simply discarded.  So we exec the FD to /dev/null,
 
11598
# effectively closing config.log, so it can be properly (re)opened and
 
11599
# appended to by config.status.  When coming back to configure, we
 
11600
# need to make the FD available again.
 
11601
if test "$no_create" != yes; then
 
11602
  ac_cs_success=:
 
11603
  ac_config_status_args=
 
11604
  test "$silent" = yes &&
 
11605
    ac_config_status_args="$ac_config_status_args --quiet"
 
11606
  exec 5>/dev/null
 
11607
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
11608
  exec 5>>config.log
 
11609
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
11610
  # would make configure fail if this is the last instruction.
 
11611
  $ac_cs_success || { (exit 1); exit 1; }
 
11612
fi
 
11613
 
 
11614
 
 
11615
echo "
 
11616
$PACKAGE-$GST_PLUGIN_VERSION
 
11617
 
 
11618
        prefix:                         ${prefix}
 
11619
        compiler:                       ${CC}
 
11620
 
 
11621
        Use Intel Performance Primitives: ${HAVE_IPP}
 
11622
"
 
11623