~ubuntu-branches/ubuntu/gutsy/psqlodbc/gutsy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2004-05-13 10:47:36 UTC
  • Revision ID: james.westby@ubuntu.com-20040513104736-a530gmn0p3knep89
Tags: upstream-07.03.0200
ImportĀ upstreamĀ versionĀ 07.03.0200

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.57 for psqlodbc 07.03.0200.
 
4
#
 
5
# Report bugs to <pgsql-odbc@postgresql.org>.
 
6
#
 
7
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
8
# Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be Bourne compatible
 
16
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
17
  emulate sh
 
18
  NULLCMD=:
 
19
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20
  # is contrary to our usage.  Disable this feature.
 
21
  alias -g '${1+"$@"}'='"$@"'
 
22
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
23
  set -o posix
 
24
fi
 
25
 
 
26
# Support unset when possible.
 
27
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  as_mkdir_p=false
 
224
fi
 
225
 
 
226
as_executable_p="test -f"
 
227
 
 
228
# Sed expression to map a string onto a valid CPP name.
 
229
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
230
 
 
231
# Sed expression to map a string onto a valid variable name.
 
232
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
233
 
 
234
 
 
235
# IFS
 
236
# We need space, tab and new line, in precisely that order.
 
237
as_nl='
 
238
'
 
239
IFS="   $as_nl"
 
240
 
 
241
# CDPATH.
 
242
$as_unset CDPATH
 
243
 
 
244
 
 
245
# Find the correct PATH separator.  Usually this is `:', but
 
246
# DJGPP uses `;' like DOS.
 
247
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
248
  UNAME=${UNAME-`uname 2>/dev/null`}
 
249
  case X$UNAME in
 
250
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
251
    *)     lt_cv_sys_path_separator=':' ;;
 
252
  esac
 
253
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
254
fi
 
255
 
 
256
 
 
257
# Check that we are running under the correct shell.
 
258
SHELL=${CONFIG_SHELL-/bin/sh}
 
259
 
 
260
case X$ECHO in
 
261
X*--fallback-echo)
 
262
  # Remove one level of quotation (which was required for Make).
 
263
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
264
  ;;
 
265
esac
 
266
 
 
267
echo=${ECHO-echo}
 
268
if test "X$1" = X--no-reexec; then
 
269
  # Discard the --no-reexec flag, and continue.
 
270
  shift
 
271
elif test "X$1" = X--fallback-echo; then
 
272
  # Avoid inline document here, it may be left over
 
273
  :
 
274
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
275
  # Yippee, $echo works!
 
276
  :
 
277
else
 
278
  # Restart under the correct shell.
 
279
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
280
fi
 
281
 
 
282
if test "X$1" = X--fallback-echo; then
 
283
  # used as fallback echo
 
284
  shift
 
285
  cat <<EOF
 
286
 
 
287
EOF
 
288
  exit 0
 
289
fi
 
290
 
 
291
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
292
# if CDPATH is set.
 
293
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
294
 
 
295
if test -z "$ECHO"; then
 
296
if test "X${echo_test_string+set}" != Xset; then
 
297
# find a string as large as possible, as long as the shell can cope with it
 
298
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
299
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
300
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
301
       echo_test_string="`eval $cmd`" &&
 
302
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
303
    then
 
304
      break
 
305
    fi
 
306
  done
 
307
fi
 
308
 
 
309
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
310
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
311
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
312
  :
 
313
else
 
314
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
315
  # backslashes.  This makes it impossible to quote backslashes using
 
316
  #   echo "$something" | sed 's/\\/\\\\/g'
 
317
  #
 
318
  # So, first we look for a working echo in the user's PATH.
 
319
 
 
320
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
321
  for dir in $PATH /usr/ucb; do
 
322
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
323
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
324
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
325
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
326
      echo="$dir/echo"
 
327
      break
 
328
    fi
 
329
  done
 
330
  IFS="$save_ifs"
 
331
 
 
332
  if test "X$echo" = Xecho; then
 
333
    # We didn't find a better echo, so look for alternatives.
 
334
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
335
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
336
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
337
      # This shell has a builtin print -r that does the trick.
 
338
      echo='print -r'
 
339
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
340
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
341
      # If we have ksh, try running configure again with it.
 
342
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
343
      export ORIGINAL_CONFIG_SHELL
 
344
      CONFIG_SHELL=/bin/ksh
 
345
      export CONFIG_SHELL
 
346
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
347
    else
 
348
      # Try using printf.
 
349
      echo='printf %s\n'
 
350
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
351
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
352
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
353
        # Cool, printf works
 
354
        :
 
355
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = 'X\t' &&
 
357
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
358
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
359
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
360
        export CONFIG_SHELL
 
361
        SHELL="$CONFIG_SHELL"
 
362
        export SHELL
 
363
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
364
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
365
           test "X$echo_testing_string" = 'X\t' &&
 
366
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
367
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
368
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
369
      else
 
370
        # maybe with a smaller string...
 
371
        prev=:
 
372
 
 
373
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
374
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
375
          then
 
376
            break
 
377
          fi
 
378
          prev="$cmd"
 
379
        done
 
380
 
 
381
        if test "$prev" != 'sed 50q "$0"'; then
 
382
          echo_test_string=`eval $prev`
 
383
          export echo_test_string
 
384
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
385
        else
 
386
          # Oops.  We lost completely, so just stick with echo.
 
387
          echo=echo
 
388
        fi
 
389
      fi
 
390
    fi
 
391
  fi
 
392
fi
 
393
fi
 
394
 
 
395
# Copy echo and quote the copy suitably for passing to libtool from
 
396
# the Makefile, instead of quoting the original, which is used later.
 
397
ECHO=$echo
 
398
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
399
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
400
fi
 
401
 
 
402
 
 
403
 
 
404
# Name of the host.
 
405
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
406
# so uname gets run too.
 
407
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
408
 
 
409
exec 6>&1
 
410
 
 
411
#
 
412
# Initializations.
 
413
#
 
414
ac_default_prefix=/usr/local
 
415
ac_config_libobj_dir=.
 
416
cross_compiling=no
 
417
subdirs=
 
418
MFLAGS=
 
419
MAKEFLAGS=
 
420
SHELL=${CONFIG_SHELL-/bin/sh}
 
421
 
 
422
# Maximum number of lines to put in a shell here document.
 
423
# This variable seems obsolete.  It should probably be removed, and
 
424
# only ac_max_sed_lines should be used.
 
425
: ${ac_max_here_lines=38}
 
426
 
 
427
# Identity of this package.
 
428
PACKAGE_NAME='psqlodbc'
 
429
PACKAGE_TARNAME='psqlodbc'
 
430
PACKAGE_VERSION='07.03.0200'
 
431
PACKAGE_STRING='psqlodbc 07.03.0200'
 
432
PACKAGE_BUGREPORT='pgsql-odbc@postgresql.org'
 
433
 
 
434
ac_unique_file="bind.c"
 
435
# Factoring default headers for most tests.
 
436
ac_includes_default="\
 
437
#include <stdio.h>
 
438
#if HAVE_SYS_TYPES_H
 
439
# include <sys/types.h>
 
440
#endif
 
441
#if HAVE_SYS_STAT_H
 
442
# include <sys/stat.h>
 
443
#endif
 
444
#if STDC_HEADERS
 
445
# include <stdlib.h>
 
446
# include <stddef.h>
 
447
#else
 
448
# if HAVE_STDLIB_H
 
449
#  include <stdlib.h>
 
450
# endif
 
451
#endif
 
452
#if HAVE_STRING_H
 
453
# if !STDC_HEADERS && HAVE_MEMORY_H
 
454
#  include <memory.h>
 
455
# endif
 
456
# include <string.h>
 
457
#endif
 
458
#if HAVE_STRINGS_H
 
459
# include <strings.h>
 
460
#endif
 
461
#if HAVE_INTTYPES_H
 
462
# include <inttypes.h>
 
463
#else
 
464
# if HAVE_STDINT_H
 
465
#  include <stdint.h>
 
466
# endif
 
467
#endif
 
468
#if HAVE_UNISTD_H
 
469
# include <unistd.h>
 
470
#endif"
 
471
 
 
472
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT with_unixodbc_TRUE with_unixodbc_FALSE with_iodbc_TRUE with_iodbc_FALSE 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 odbcinst_ini_dir build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS LTLIBOBJS'
 
473
ac_subst_files=''
 
474
 
 
475
# Initialize some variables set by options.
 
476
ac_init_help=
 
477
ac_init_version=false
 
478
# The variables have the same names as the options, with
 
479
# dashes changed to underlines.
 
480
cache_file=/dev/null
 
481
exec_prefix=NONE
 
482
no_create=
 
483
no_recursion=
 
484
prefix=NONE
 
485
program_prefix=NONE
 
486
program_suffix=NONE
 
487
program_transform_name=s,x,x,
 
488
silent=
 
489
site=
 
490
srcdir=
 
491
verbose=
 
492
x_includes=NONE
 
493
x_libraries=NONE
 
494
 
 
495
# Installation directory options.
 
496
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
497
# and all the variables that are supposed to be based on exec_prefix
 
498
# by default will actually change.
 
499
# Use braces instead of parens because sh, perl, etc. also accept them.
 
500
bindir='${exec_prefix}/bin'
 
501
sbindir='${exec_prefix}/sbin'
 
502
libexecdir='${exec_prefix}/libexec'
 
503
datadir='${prefix}/share'
 
504
sysconfdir='${prefix}/etc'
 
505
sharedstatedir='${prefix}/com'
 
506
localstatedir='${prefix}/var'
 
507
libdir='${exec_prefix}/lib'
 
508
includedir='${prefix}/include'
 
509
oldincludedir='/usr/include'
 
510
infodir='${prefix}/info'
 
511
mandir='${prefix}/man'
 
512
 
 
513
ac_prev=
 
514
for ac_option
 
515
do
 
516
  # If the previous option needs an argument, assign it.
 
517
  if test -n "$ac_prev"; then
 
518
    eval "$ac_prev=\$ac_option"
 
519
    ac_prev=
 
520
    continue
 
521
  fi
 
522
 
 
523
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
524
 
 
525
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
526
 
 
527
  case $ac_option in
 
528
 
 
529
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
530
    ac_prev=bindir ;;
 
531
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
532
    bindir=$ac_optarg ;;
 
533
 
 
534
  -build | --build | --buil | --bui | --bu)
 
535
    ac_prev=build_alias ;;
 
536
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
537
    build_alias=$ac_optarg ;;
 
538
 
 
539
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
540
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
541
    ac_prev=cache_file ;;
 
542
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
543
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
544
    cache_file=$ac_optarg ;;
 
545
 
 
546
  --config-cache | -C)
 
547
    cache_file=config.cache ;;
 
548
 
 
549
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
550
    ac_prev=datadir ;;
 
551
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
552
  | --da=*)
 
553
    datadir=$ac_optarg ;;
 
554
 
 
555
  -disable-* | --disable-*)
 
556
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
557
    # Reject names that are not valid shell variable names.
 
558
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
559
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
560
   { (exit 1); exit 1; }; }
 
561
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
562
    eval "enable_$ac_feature=no" ;;
 
563
 
 
564
  -enable-* | --enable-*)
 
565
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
566
    # Reject names that are not valid shell variable names.
 
567
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
568
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
569
   { (exit 1); exit 1; }; }
 
570
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
571
    case $ac_option in
 
572
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
573
      *) ac_optarg=yes ;;
 
574
    esac
 
575
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
576
 
 
577
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
578
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
579
  | --exec | --exe | --ex)
 
580
    ac_prev=exec_prefix ;;
 
581
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
582
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
583
  | --exec=* | --exe=* | --ex=*)
 
584
    exec_prefix=$ac_optarg ;;
 
585
 
 
586
  -gas | --gas | --ga | --g)
 
587
    # Obsolete; use --with-gas.
 
588
    with_gas=yes ;;
 
589
 
 
590
  -help | --help | --hel | --he | -h)
 
591
    ac_init_help=long ;;
 
592
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
593
    ac_init_help=recursive ;;
 
594
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
595
    ac_init_help=short ;;
 
596
 
 
597
  -host | --host | --hos | --ho)
 
598
    ac_prev=host_alias ;;
 
599
  -host=* | --host=* | --hos=* | --ho=*)
 
600
    host_alias=$ac_optarg ;;
 
601
 
 
602
  -includedir | --includedir | --includedi | --included | --include \
 
603
  | --includ | --inclu | --incl | --inc)
 
604
    ac_prev=includedir ;;
 
605
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
606
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
607
    includedir=$ac_optarg ;;
 
608
 
 
609
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
610
    ac_prev=infodir ;;
 
611
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
612
    infodir=$ac_optarg ;;
 
613
 
 
614
  -libdir | --libdir | --libdi | --libd)
 
615
    ac_prev=libdir ;;
 
616
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
617
    libdir=$ac_optarg ;;
 
618
 
 
619
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
620
  | --libexe | --libex | --libe)
 
621
    ac_prev=libexecdir ;;
 
622
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
623
  | --libexe=* | --libex=* | --libe=*)
 
624
    libexecdir=$ac_optarg ;;
 
625
 
 
626
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
627
  | --localstate | --localstat | --localsta | --localst \
 
628
  | --locals | --local | --loca | --loc | --lo)
 
629
    ac_prev=localstatedir ;;
 
630
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
631
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
632
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
633
    localstatedir=$ac_optarg ;;
 
634
 
 
635
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
636
    ac_prev=mandir ;;
 
637
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
638
    mandir=$ac_optarg ;;
 
639
 
 
640
  -nfp | --nfp | --nf)
 
641
    # Obsolete; use --without-fp.
 
642
    with_fp=no ;;
 
643
 
 
644
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
645
  | --no-cr | --no-c | -n)
 
646
    no_create=yes ;;
 
647
 
 
648
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
649
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
650
    no_recursion=yes ;;
 
651
 
 
652
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
653
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
654
  | --oldin | --oldi | --old | --ol | --o)
 
655
    ac_prev=oldincludedir ;;
 
656
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
657
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
658
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
659
    oldincludedir=$ac_optarg ;;
 
660
 
 
661
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
662
    ac_prev=prefix ;;
 
663
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
664
    prefix=$ac_optarg ;;
 
665
 
 
666
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
667
  | --program-pre | --program-pr | --program-p)
 
668
    ac_prev=program_prefix ;;
 
669
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
670
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
671
    program_prefix=$ac_optarg ;;
 
672
 
 
673
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
674
  | --program-suf | --program-su | --program-s)
 
675
    ac_prev=program_suffix ;;
 
676
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
677
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
678
    program_suffix=$ac_optarg ;;
 
679
 
 
680
  -program-transform-name | --program-transform-name \
 
681
  | --program-transform-nam | --program-transform-na \
 
682
  | --program-transform-n | --program-transform- \
 
683
  | --program-transform | --program-transfor \
 
684
  | --program-transfo | --program-transf \
 
685
  | --program-trans | --program-tran \
 
686
  | --progr-tra | --program-tr | --program-t)
 
687
    ac_prev=program_transform_name ;;
 
688
  -program-transform-name=* | --program-transform-name=* \
 
689
  | --program-transform-nam=* | --program-transform-na=* \
 
690
  | --program-transform-n=* | --program-transform-=* \
 
691
  | --program-transform=* | --program-transfor=* \
 
692
  | --program-transfo=* | --program-transf=* \
 
693
  | --program-trans=* | --program-tran=* \
 
694
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
695
    program_transform_name=$ac_optarg ;;
 
696
 
 
697
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
698
  | -silent | --silent | --silen | --sile | --sil)
 
699
    silent=yes ;;
 
700
 
 
701
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
702
    ac_prev=sbindir ;;
 
703
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
704
  | --sbi=* | --sb=*)
 
705
    sbindir=$ac_optarg ;;
 
706
 
 
707
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
708
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
709
  | --sharedst | --shareds | --shared | --share | --shar \
 
710
  | --sha | --sh)
 
711
    ac_prev=sharedstatedir ;;
 
712
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
713
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
714
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
715
  | --sha=* | --sh=*)
 
716
    sharedstatedir=$ac_optarg ;;
 
717
 
 
718
  -site | --site | --sit)
 
719
    ac_prev=site ;;
 
720
  -site=* | --site=* | --sit=*)
 
721
    site=$ac_optarg ;;
 
722
 
 
723
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
724
    ac_prev=srcdir ;;
 
725
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
726
    srcdir=$ac_optarg ;;
 
727
 
 
728
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
729
  | --syscon | --sysco | --sysc | --sys | --sy)
 
730
    ac_prev=sysconfdir ;;
 
731
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
732
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
733
    sysconfdir=$ac_optarg ;;
 
734
 
 
735
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
736
    ac_prev=target_alias ;;
 
737
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
738
    target_alias=$ac_optarg ;;
 
739
 
 
740
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
741
    verbose=yes ;;
 
742
 
 
743
  -version | --version | --versio | --versi | --vers | -V)
 
744
    ac_init_version=: ;;
 
745
 
 
746
  -with-* | --with-*)
 
747
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
748
    # Reject names that are not valid shell variable names.
 
749
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
750
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
751
   { (exit 1); exit 1; }; }
 
752
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
753
    case $ac_option in
 
754
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
755
      *) ac_optarg=yes ;;
 
756
    esac
 
757
    eval "with_$ac_package='$ac_optarg'" ;;
 
758
 
 
759
  -without-* | --without-*)
 
760
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
761
    # Reject names that are not valid shell variable names.
 
762
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
763
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
764
   { (exit 1); exit 1; }; }
 
765
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
766
    eval "with_$ac_package=no" ;;
 
767
 
 
768
  --x)
 
769
    # Obsolete; use --with-x.
 
770
    with_x=yes ;;
 
771
 
 
772
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
773
  | --x-incl | --x-inc | --x-in | --x-i)
 
774
    ac_prev=x_includes ;;
 
775
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
776
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
777
    x_includes=$ac_optarg ;;
 
778
 
 
779
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
780
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
781
    ac_prev=x_libraries ;;
 
782
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
783
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
784
    x_libraries=$ac_optarg ;;
 
785
 
 
786
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
787
Try \`$0 --help' for more information." >&2
 
788
   { (exit 1); exit 1; }; }
 
789
    ;;
 
790
 
 
791
  *=*)
 
792
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
793
    # Reject names that are not valid shell variable names.
 
794
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
795
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
796
   { (exit 1); exit 1; }; }
 
797
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
798
    eval "$ac_envvar='$ac_optarg'"
 
799
    export $ac_envvar ;;
 
800
 
 
801
  *)
 
802
    # FIXME: should be removed in autoconf 3.0.
 
803
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
804
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
805
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
806
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
807
    ;;
 
808
 
 
809
  esac
 
810
done
 
811
 
 
812
if test -n "$ac_prev"; then
 
813
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
814
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
815
   { (exit 1); exit 1; }; }
 
816
fi
 
817
 
 
818
# Be sure to have absolute paths.
 
819
for ac_var in exec_prefix prefix
 
820
do
 
821
  eval ac_val=$`echo $ac_var`
 
822
  case $ac_val in
 
823
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
824
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
825
   { (exit 1); exit 1; }; };;
 
826
  esac
 
827
done
 
828
 
 
829
# Be sure to have absolute paths.
 
830
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
831
              localstatedir libdir includedir oldincludedir infodir mandir
 
832
do
 
833
  eval ac_val=$`echo $ac_var`
 
834
  case $ac_val in
 
835
    [\\/$]* | ?:[\\/]* ) ;;
 
836
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
837
   { (exit 1); exit 1; }; };;
 
838
  esac
 
839
done
 
840
 
 
841
# There might be people who depend on the old broken behavior: `$host'
 
842
# used to hold the argument of --host etc.
 
843
# FIXME: To remove some day.
 
844
build=$build_alias
 
845
host=$host_alias
 
846
target=$target_alias
 
847
 
 
848
# FIXME: To remove some day.
 
849
if test "x$host_alias" != x; then
 
850
  if test "x$build_alias" = x; then
 
851
    cross_compiling=maybe
 
852
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
853
    If a cross compiler is detected then cross compile mode will be used." >&2
 
854
  elif test "x$build_alias" != "x$host_alias"; then
 
855
    cross_compiling=yes
 
856
  fi
 
857
fi
 
858
 
 
859
ac_tool_prefix=
 
860
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
861
 
 
862
test "$silent" = yes && exec 6>/dev/null
 
863
 
 
864
 
 
865
# Find the source files, if location was not specified.
 
866
if test -z "$srcdir"; then
 
867
  ac_srcdir_defaulted=yes
 
868
  # Try the directory containing this script, then its parent.
 
869
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
870
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
871
         X"$0" : 'X\(//\)[^/]' \| \
 
872
         X"$0" : 'X\(//\)$' \| \
 
873
         X"$0" : 'X\(/\)' \| \
 
874
         .     : '\(.\)' 2>/dev/null ||
 
875
echo X"$0" |
 
876
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
877
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
878
          /^X\(\/\/\)$/{ s//\1/; q; }
 
879
          /^X\(\/\).*/{ s//\1/; q; }
 
880
          s/.*/./; q'`
 
881
  srcdir=$ac_confdir
 
882
  if test ! -r $srcdir/$ac_unique_file; then
 
883
    srcdir=..
 
884
  fi
 
885
else
 
886
  ac_srcdir_defaulted=no
 
887
fi
 
888
if test ! -r $srcdir/$ac_unique_file; then
 
889
  if test "$ac_srcdir_defaulted" = yes; then
 
890
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
891
   { (exit 1); exit 1; }; }
 
892
  else
 
893
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
894
   { (exit 1); exit 1; }; }
 
895
  fi
 
896
fi
 
897
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
898
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
899
   { (exit 1); exit 1; }; }
 
900
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
901
ac_env_build_alias_set=${build_alias+set}
 
902
ac_env_build_alias_value=$build_alias
 
903
ac_cv_env_build_alias_set=${build_alias+set}
 
904
ac_cv_env_build_alias_value=$build_alias
 
905
ac_env_host_alias_set=${host_alias+set}
 
906
ac_env_host_alias_value=$host_alias
 
907
ac_cv_env_host_alias_set=${host_alias+set}
 
908
ac_cv_env_host_alias_value=$host_alias
 
909
ac_env_target_alias_set=${target_alias+set}
 
910
ac_env_target_alias_value=$target_alias
 
911
ac_cv_env_target_alias_set=${target_alias+set}
 
912
ac_cv_env_target_alias_value=$target_alias
 
913
ac_env_CC_set=${CC+set}
 
914
ac_env_CC_value=$CC
 
915
ac_cv_env_CC_set=${CC+set}
 
916
ac_cv_env_CC_value=$CC
 
917
ac_env_CFLAGS_set=${CFLAGS+set}
 
918
ac_env_CFLAGS_value=$CFLAGS
 
919
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
920
ac_cv_env_CFLAGS_value=$CFLAGS
 
921
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
922
ac_env_LDFLAGS_value=$LDFLAGS
 
923
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
924
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
925
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
926
ac_env_CPPFLAGS_value=$CPPFLAGS
 
927
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
928
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
929
ac_env_CPP_set=${CPP+set}
 
930
ac_env_CPP_value=$CPP
 
931
ac_cv_env_CPP_set=${CPP+set}
 
932
ac_cv_env_CPP_value=$CPP
 
933
 
 
934
#
 
935
# Report the --help message.
 
936
#
 
937
if test "$ac_init_help" = "long"; then
 
938
  # Omit some internal or obsolete options to make the list less imposing.
 
939
  # This message is too long to be a string in the A/UX 3.1 sh.
 
940
  cat <<_ACEOF
 
941
\`configure' configures psqlodbc 07.03.0200 to adapt to many kinds of systems.
 
942
 
 
943
Usage: $0 [OPTION]... [VAR=VALUE]...
 
944
 
 
945
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
946
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
947
 
 
948
Defaults for the options are specified in brackets.
 
949
 
 
950
Configuration:
 
951
  -h, --help              display this help and exit
 
952
      --help=short        display options specific to this package
 
953
      --help=recursive    display the short help of all the included packages
 
954
  -V, --version           display version information and exit
 
955
  -q, --quiet, --silent   do not print \`checking...' messages
 
956
      --cache-file=FILE   cache test results in FILE [disabled]
 
957
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
958
  -n, --no-create         do not create output files
 
959
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
960
 
 
961
_ACEOF
 
962
 
 
963
  cat <<_ACEOF
 
964
Installation directories:
 
965
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
966
                          [$ac_default_prefix]
 
967
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
968
                          [PREFIX]
 
969
 
 
970
By default, \`make install' will install all the files in
 
971
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
972
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
973
for instance \`--prefix=\$HOME'.
 
974
 
 
975
For better control, use the options below.
 
976
 
 
977
Fine tuning of the installation directories:
 
978
  --bindir=DIR           user executables [EPREFIX/bin]
 
979
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
980
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
981
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
982
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
983
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
984
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
985
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
986
  --includedir=DIR       C header files [PREFIX/include]
 
987
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
988
  --infodir=DIR          info documentation [PREFIX/info]
 
989
  --mandir=DIR           man documentation [PREFIX/man]
 
990
_ACEOF
 
991
 
 
992
  cat <<\_ACEOF
 
993
 
 
994
Program names:
 
995
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
996
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
997
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
998
 
 
999
System types:
 
1000
  --build=BUILD     configure for building on BUILD [guessed]
 
1001
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1002
_ACEOF
 
1003
fi
 
1004
 
 
1005
if test -n "$ac_init_help"; then
 
1006
  case $ac_init_help in
 
1007
     short | recursive ) echo "Configuration of psqlodbc 07.03.0200:";;
 
1008
   esac
 
1009
  cat <<\_ACEOF
 
1010
 
 
1011
Optional Features:
 
1012
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1013
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1014
  --enable-maintainer-mode enable make rules and dependencies not useful
 
1015
                          (and sometimes confusing) to the casual installer
 
1016
  --disable-dependency-tracking Speeds up one-time builds
 
1017
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1018
  --enable-pthreads         build pthread implementation if possible
 
1019
  --enable-static=PKGS  build static libraries default=no
 
1020
  --enable-shared=PKGS  build shared libraries default=yes
 
1021
  --enable-fast-install=PKGS  optimize for fast installation default=yes
 
1022
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1023
 
 
1024
Optional Packages:
 
1025
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1026
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1027
  --with-unixodbc         build ODBC driver for unixODBC
 
1028
  --with-iodbc            build ODBC driver for iODBC
 
1029
  --with-odbcver=VERSION  change default ODBC version number
 
1030
 0x0300
 
1031
  --with-odbcinst=DIR     default directory for odbcinst.ini sysconfdir
 
1032
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1033
  --with-pic              try to use only PIC/non-PIC objects default=use both
 
1034
 
 
1035
Some influential environment variables:
 
1036
  CC          C compiler command
 
1037
  CFLAGS      C compiler flags
 
1038
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1039
              nonstandard directory <lib dir>
 
1040
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1041
              headers in a nonstandard directory <include dir>
 
1042
  CPP         C preprocessor
 
1043
 
 
1044
Use these variables to override the choices made by `configure' or to help
 
1045
it to find libraries and programs with nonstandard names/locations.
 
1046
 
 
1047
Report bugs to <pgsql-odbc@postgresql.org>.
 
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
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
1082
# absolute.
 
1083
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
1084
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
1085
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
1086
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
1087
 
 
1088
    cd $ac_dir
 
1089
    # Check for guested configure; otherwise get Cygnus style configure.
 
1090
    if test -f $ac_srcdir/configure.gnu; then
 
1091
      echo
 
1092
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1093
    elif test -f $ac_srcdir/configure; then
 
1094
      echo
 
1095
      $SHELL $ac_srcdir/configure  --help=recursive
 
1096
    elif test -f $ac_srcdir/configure.ac ||
 
1097
           test -f $ac_srcdir/configure.in; then
 
1098
      echo
 
1099
      $ac_configure --help
 
1100
    else
 
1101
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1102
    fi
 
1103
    cd $ac_popdir
 
1104
  done
 
1105
fi
 
1106
 
 
1107
test -n "$ac_init_help" && exit 0
 
1108
if $ac_init_version; then
 
1109
  cat <<\_ACEOF
 
1110
psqlodbc configure 07.03.0200
 
1111
generated by GNU Autoconf 2.57
 
1112
 
 
1113
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
1114
Free Software Foundation, Inc.
 
1115
This configure script is free software; the Free Software Foundation
 
1116
gives unlimited permission to copy, distribute and modify it.
 
1117
_ACEOF
 
1118
  exit 0
 
1119
fi
 
1120
exec 5>config.log
 
1121
cat >&5 <<_ACEOF
 
1122
This file contains any messages produced by compilers while
 
1123
running configure, to aid debugging if configure makes a mistake.
 
1124
 
 
1125
It was created by psqlodbc $as_me 07.03.0200, which was
 
1126
generated by GNU Autoconf 2.57.  Invocation command line was
 
1127
 
 
1128
  $ $0 $@
 
1129
 
 
1130
_ACEOF
 
1131
{
 
1132
cat <<_ASUNAME
 
1133
## --------- ##
 
1134
## Platform. ##
 
1135
## --------- ##
 
1136
 
 
1137
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1138
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1139
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1140
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1141
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1142
 
 
1143
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1144
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1145
 
 
1146
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1147
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1148
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1149
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1150
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1151
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1152
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1153
 
 
1154
_ASUNAME
 
1155
 
 
1156
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1157
for as_dir in $PATH
 
1158
do
 
1159
  IFS=$as_save_IFS
 
1160
  test -z "$as_dir" && as_dir=.
 
1161
  echo "PATH: $as_dir"
 
1162
done
 
1163
 
 
1164
} >&5
 
1165
 
 
1166
cat >&5 <<_ACEOF
 
1167
 
 
1168
 
 
1169
## ----------- ##
 
1170
## Core tests. ##
 
1171
## ----------- ##
 
1172
 
 
1173
_ACEOF
 
1174
 
 
1175
 
 
1176
# Keep a trace of the command line.
 
1177
# Strip out --no-create and --no-recursion so they do not pile up.
 
1178
# Strip out --silent because we don't want to record it for future runs.
 
1179
# Also quote any args containing shell meta-characters.
 
1180
# Make two passes to allow for proper duplicate-argument suppression.
 
1181
ac_configure_args=
 
1182
ac_configure_args0=
 
1183
ac_configure_args1=
 
1184
ac_sep=
 
1185
ac_must_keep_next=false
 
1186
for ac_pass in 1 2
 
1187
do
 
1188
  for ac_arg
 
1189
  do
 
1190
    case $ac_arg in
 
1191
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1192
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1193
    | -silent | --silent | --silen | --sile | --sil)
 
1194
      continue ;;
 
1195
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1196
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1197
    esac
 
1198
    case $ac_pass in
 
1199
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1200
    2)
 
1201
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1202
      if test $ac_must_keep_next = true; then
 
1203
        ac_must_keep_next=false # Got value, back to normal.
 
1204
      else
 
1205
        case $ac_arg in
 
1206
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1207
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1208
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1209
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1210
            case "$ac_configure_args0 " in
 
1211
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1212
            esac
 
1213
            ;;
 
1214
          -* ) ac_must_keep_next=true ;;
 
1215
        esac
 
1216
      fi
 
1217
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1218
      # Get rid of the leading space.
 
1219
      ac_sep=" "
 
1220
      ;;
 
1221
    esac
 
1222
  done
 
1223
done
 
1224
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1225
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1226
 
 
1227
# When interrupted or exit'd, cleanup temporary files, and complete
 
1228
# config.log.  We remove comments because anyway the quotes in there
 
1229
# would cause problems or look ugly.
 
1230
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1231
# such as our DU 5.0 friend, will then `close' the trap.
 
1232
trap 'exit_status=$?
 
1233
  # Save into config.log some information that might help in debugging.
 
1234
  {
 
1235
    echo
 
1236
 
 
1237
    cat <<\_ASBOX
 
1238
## ---------------- ##
 
1239
## Cache variables. ##
 
1240
## ---------------- ##
 
1241
_ASBOX
 
1242
    echo
 
1243
    # The following way of writing the cache mishandles newlines in values,
 
1244
{
 
1245
  (set) 2>&1 |
 
1246
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1247
    *ac_space=\ *)
 
1248
      sed -n \
 
1249
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1250
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1251
      ;;
 
1252
    *)
 
1253
      sed -n \
 
1254
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1255
      ;;
 
1256
    esac;
 
1257
}
 
1258
    echo
 
1259
 
 
1260
    cat <<\_ASBOX
 
1261
## ----------------- ##
 
1262
## Output variables. ##
 
1263
## ----------------- ##
 
1264
_ASBOX
 
1265
    echo
 
1266
    for ac_var in $ac_subst_vars
 
1267
    do
 
1268
      eval ac_val=$`echo $ac_var`
 
1269
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1270
    done | sort
 
1271
    echo
 
1272
 
 
1273
    if test -n "$ac_subst_files"; then
 
1274
      cat <<\_ASBOX
 
1275
## ------------- ##
 
1276
## Output files. ##
 
1277
## ------------- ##
 
1278
_ASBOX
 
1279
      echo
 
1280
      for ac_var in $ac_subst_files
 
1281
      do
 
1282
        eval ac_val=$`echo $ac_var`
 
1283
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1284
      done | sort
 
1285
      echo
 
1286
    fi
 
1287
 
 
1288
    if test -s confdefs.h; then
 
1289
      cat <<\_ASBOX
 
1290
## ----------- ##
 
1291
## confdefs.h. ##
 
1292
## ----------- ##
 
1293
_ASBOX
 
1294
      echo
 
1295
      sed "/^$/d" confdefs.h | sort
 
1296
      echo
 
1297
    fi
 
1298
    test "$ac_signal" != 0 &&
 
1299
      echo "$as_me: caught signal $ac_signal"
 
1300
    echo "$as_me: exit $exit_status"
 
1301
  } >&5
 
1302
  rm -f core core.* *.core &&
 
1303
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1304
    exit $exit_status
 
1305
     ' 0
 
1306
for ac_signal in 1 2 13 15; do
 
1307
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1308
done
 
1309
ac_signal=0
 
1310
 
 
1311
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1312
rm -rf conftest* confdefs.h
 
1313
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1314
echo >confdefs.h
 
1315
 
 
1316
# Predefined preprocessor variables.
 
1317
 
 
1318
cat >>confdefs.h <<_ACEOF
 
1319
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1320
_ACEOF
 
1321
 
 
1322
 
 
1323
cat >>confdefs.h <<_ACEOF
 
1324
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1325
_ACEOF
 
1326
 
 
1327
 
 
1328
cat >>confdefs.h <<_ACEOF
 
1329
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1330
_ACEOF
 
1331
 
 
1332
 
 
1333
cat >>confdefs.h <<_ACEOF
 
1334
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1335
_ACEOF
 
1336
 
 
1337
 
 
1338
cat >>confdefs.h <<_ACEOF
 
1339
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1340
_ACEOF
 
1341
 
 
1342
 
 
1343
# Let the site file select an alternate cache file if it wants to.
 
1344
# Prefer explicitly selected file to automatically selected ones.
 
1345
if test -z "$CONFIG_SITE"; then
 
1346
  if test "x$prefix" != xNONE; then
 
1347
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1348
  else
 
1349
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1350
  fi
 
1351
fi
 
1352
for ac_site_file in $CONFIG_SITE; do
 
1353
  if test -r "$ac_site_file"; then
 
1354
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1355
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1356
    sed 's/^/| /' "$ac_site_file" >&5
 
1357
    . "$ac_site_file"
 
1358
  fi
 
1359
done
 
1360
 
 
1361
if test -r "$cache_file"; then
 
1362
  # Some versions of bash will fail to source /dev/null (special
 
1363
  # files actually), so we avoid doing that.
 
1364
  if test -f "$cache_file"; then
 
1365
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1366
echo "$as_me: loading cache $cache_file" >&6;}
 
1367
    case $cache_file in
 
1368
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1369
      *)                      . ./$cache_file;;
 
1370
    esac
 
1371
  fi
 
1372
else
 
1373
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1374
echo "$as_me: creating cache $cache_file" >&6;}
 
1375
  >$cache_file
 
1376
fi
 
1377
 
 
1378
# Check that the precious variables saved in the cache have kept the same
 
1379
# value.
 
1380
ac_cache_corrupted=false
 
1381
for ac_var in `(set) 2>&1 |
 
1382
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1383
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1384
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1385
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1386
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1387
  case $ac_old_set,$ac_new_set in
 
1388
    set,)
 
1389
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1390
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1391
      ac_cache_corrupted=: ;;
 
1392
    ,set)
 
1393
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1394
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1395
      ac_cache_corrupted=: ;;
 
1396
    ,);;
 
1397
    *)
 
1398
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1399
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1400
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1401
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1402
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1403
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1404
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1405
        ac_cache_corrupted=:
 
1406
      fi;;
 
1407
  esac
 
1408
  # Pass precious variables to config.status.
 
1409
  if test "$ac_new_set" = set; then
 
1410
    case $ac_new_val in
 
1411
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1412
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1413
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1414
    esac
 
1415
    case " $ac_configure_args " in
 
1416
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1417
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1418
    esac
 
1419
  fi
 
1420
done
 
1421
if $ac_cache_corrupted; then
 
1422
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1423
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1424
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1425
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1426
   { (exit 1); exit 1; }; }
 
1427
fi
 
1428
 
 
1429
ac_ext=c
 
1430
ac_cpp='$CPP $CPPFLAGS'
 
1431
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1432
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1433
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1434
 
 
1435
 
 
1436
 
 
1437
 
 
1438
 
 
1439
 
 
1440
 
 
1441
 
 
1442
 
 
1443
 
 
1444
 
 
1445
 
 
1446
 
 
1447
 
 
1448
 
 
1449
 
 
1450
 
 
1451
 
 
1452
 
 
1453
 
 
1454
 
 
1455
 
 
1456
 
 
1457
 
 
1458
 
 
1459
 
 
1460
 
 
1461
 
 
1462
am__api_version="1.7"
 
1463
ac_aux_dir=
 
1464
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1465
  if test -f $ac_dir/install-sh; then
 
1466
    ac_aux_dir=$ac_dir
 
1467
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1468
    break
 
1469
  elif test -f $ac_dir/install.sh; then
 
1470
    ac_aux_dir=$ac_dir
 
1471
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1472
    break
 
1473
  elif test -f $ac_dir/shtool; then
 
1474
    ac_aux_dir=$ac_dir
 
1475
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1476
    break
 
1477
  fi
 
1478
done
 
1479
if test -z "$ac_aux_dir"; then
 
1480
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1481
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1482
   { (exit 1); exit 1; }; }
 
1483
fi
 
1484
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1485
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1486
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1487
 
 
1488
# Find a good install program.  We prefer a C program (faster),
 
1489
# so one script is as good as another.  But avoid the broken or
 
1490
# incompatible versions:
 
1491
# SysV /etc/install, /usr/sbin/install
 
1492
# SunOS /usr/etc/install
 
1493
# IRIX /sbin/install
 
1494
# AIX /bin/install
 
1495
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1496
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1497
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1498
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1499
# ./install, which can be erroneously created by make from ./install.sh.
 
1500
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1501
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1502
if test -z "$INSTALL"; then
 
1503
if test "${ac_cv_path_install+set}" = set; then
 
1504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1505
else
 
1506
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1507
for as_dir in $PATH
 
1508
do
 
1509
  IFS=$as_save_IFS
 
1510
  test -z "$as_dir" && as_dir=.
 
1511
  # Account for people who put trailing slashes in PATH elements.
 
1512
case $as_dir/ in
 
1513
  ./ | .// | /cC/* | \
 
1514
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1515
  /usr/ucb/* ) ;;
 
1516
  *)
 
1517
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1518
    # Don't use installbsd from OSF since it installs stuff as root
 
1519
    # by default.
 
1520
    for ac_prog in ginstall scoinst install; do
 
1521
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1522
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1523
          if test $ac_prog = install &&
 
1524
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1525
            # AIX install.  It has an incompatible calling convention.
 
1526
            :
 
1527
          elif test $ac_prog = install &&
 
1528
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1529
            # program-specific install script used by HP pwplus--don't use.
 
1530
            :
 
1531
          else
 
1532
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1533
            break 3
 
1534
          fi
 
1535
        fi
 
1536
      done
 
1537
    done
 
1538
    ;;
 
1539
esac
 
1540
done
 
1541
 
 
1542
 
 
1543
fi
 
1544
  if test "${ac_cv_path_install+set}" = set; then
 
1545
    INSTALL=$ac_cv_path_install
 
1546
  else
 
1547
    # As a last resort, use the slow shell script.  We don't cache a
 
1548
    # path for INSTALL within a source directory, because that will
 
1549
    # break other packages using the cache if that directory is
 
1550
    # removed, or if the path is relative.
 
1551
    INSTALL=$ac_install_sh
 
1552
  fi
 
1553
fi
 
1554
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1555
echo "${ECHO_T}$INSTALL" >&6
 
1556
 
 
1557
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1558
# It thinks the first close brace ends the variable substitution.
 
1559
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1560
 
 
1561
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1562
 
 
1563
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1564
 
 
1565
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1566
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1567
# Just in case
 
1568
sleep 1
 
1569
echo timestamp > conftest.file
 
1570
# Do `set' in a subshell so we don't clobber the current shell's
 
1571
# arguments.  Must try -L first in case configure is actually a
 
1572
# symlink; some systems play weird games with the mod time of symlinks
 
1573
# (eg FreeBSD returns the mod time of the symlink's containing
 
1574
# directory).
 
1575
if (
 
1576
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1577
   if test "$*" = "X"; then
 
1578
      # -L didn't work.
 
1579
      set X `ls -t $srcdir/configure conftest.file`
 
1580
   fi
 
1581
   rm -f conftest.file
 
1582
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1583
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1584
 
 
1585
      # If neither matched, then we have a broken ls.  This can happen
 
1586
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1587
      # broken ls alias from the environment.  This has actually
 
1588
      # happened.  Such a system could not be considered "sane".
 
1589
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1590
alias in your environment" >&5
 
1591
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1592
alias in your environment" >&2;}
 
1593
   { (exit 1); exit 1; }; }
 
1594
   fi
 
1595
 
 
1596
   test "$2" = conftest.file
 
1597
   )
 
1598
then
 
1599
   # Ok.
 
1600
   :
 
1601
else
 
1602
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1603
Check your system clock" >&5
 
1604
echo "$as_me: error: newly created file is older than distributed files!
 
1605
Check your system clock" >&2;}
 
1606
   { (exit 1); exit 1; }; }
 
1607
fi
 
1608
echo "$as_me:$LINENO: result: yes" >&5
 
1609
echo "${ECHO_T}yes" >&6
 
1610
test "$program_prefix" != NONE &&
 
1611
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1612
# Use a double $ so make ignores it.
 
1613
test "$program_suffix" != NONE &&
 
1614
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1615
# Double any \ or $.  echo might interpret backslashes.
 
1616
# By default was `s,x,x', remove it if useless.
 
1617
cat <<\_ACEOF >conftest.sed
 
1618
s/[\\$]/&&/g;s/;s,x,x,$//
 
1619
_ACEOF
 
1620
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1621
rm conftest.sed
 
1622
 
 
1623
 
 
1624
# expand $ac_aux_dir to an absolute path
 
1625
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1626
 
 
1627
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1628
# Use eval to expand $SHELL
 
1629
if eval "$MISSING --run true"; then
 
1630
  am_missing_run="$MISSING --run "
 
1631
else
 
1632
  am_missing_run=
 
1633
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1634
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1635
fi
 
1636
 
 
1637
for ac_prog in gawk mawk nawk awk
 
1638
do
 
1639
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1640
set dummy $ac_prog; ac_word=$2
 
1641
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1642
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1643
if test "${ac_cv_prog_AWK+set}" = set; then
 
1644
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1645
else
 
1646
  if test -n "$AWK"; then
 
1647
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1648
else
 
1649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1650
for as_dir in $PATH
 
1651
do
 
1652
  IFS=$as_save_IFS
 
1653
  test -z "$as_dir" && as_dir=.
 
1654
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1655
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1656
    ac_cv_prog_AWK="$ac_prog"
 
1657
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1658
    break 2
 
1659
  fi
 
1660
done
 
1661
done
 
1662
 
 
1663
fi
 
1664
fi
 
1665
AWK=$ac_cv_prog_AWK
 
1666
if test -n "$AWK"; then
 
1667
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1668
echo "${ECHO_T}$AWK" >&6
 
1669
else
 
1670
  echo "$as_me:$LINENO: result: no" >&5
 
1671
echo "${ECHO_T}no" >&6
 
1672
fi
 
1673
 
 
1674
  test -n "$AWK" && break
 
1675
done
 
1676
 
 
1677
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1678
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1679
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1680
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1681
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1682
else
 
1683
  cat >conftest.make <<\_ACEOF
 
1684
all:
 
1685
        @echo 'ac_maketemp="$(MAKE)"'
 
1686
_ACEOF
 
1687
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1688
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1689
if test -n "$ac_maketemp"; then
 
1690
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1691
else
 
1692
  eval ac_cv_prog_make_${ac_make}_set=no
 
1693
fi
 
1694
rm -f conftest.make
 
1695
fi
 
1696
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1697
  echo "$as_me:$LINENO: result: yes" >&5
 
1698
echo "${ECHO_T}yes" >&6
 
1699
  SET_MAKE=
 
1700
else
 
1701
  echo "$as_me:$LINENO: result: no" >&5
 
1702
echo "${ECHO_T}no" >&6
 
1703
  SET_MAKE="MAKE=${MAKE-make}"
 
1704
fi
 
1705
 
 
1706
rm -rf .tst 2>/dev/null
 
1707
mkdir .tst 2>/dev/null
 
1708
if test -d .tst; then
 
1709
  am__leading_dot=.
 
1710
else
 
1711
  am__leading_dot=_
 
1712
fi
 
1713
rmdir .tst 2>/dev/null
 
1714
 
 
1715
 # test to see if srcdir already configured
 
1716
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1717
   test -f $srcdir/config.status; then
 
1718
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1719
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1720
   { (exit 1); exit 1; }; }
 
1721
fi
 
1722
 
 
1723
# test whether we have cygpath
 
1724
if test -z "$CYGPATH_W"; then
 
1725
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1726
    CYGPATH_W='cygpath -w'
 
1727
  else
 
1728
    CYGPATH_W=echo
 
1729
  fi
 
1730
fi
 
1731
 
 
1732
 
 
1733
# Define the identity of the package.
 
1734
 PACKAGE='psqlodbc'
 
1735
 VERSION='07.03.0200'
 
1736
 
 
1737
 
 
1738
cat >>confdefs.h <<_ACEOF
 
1739
#define PACKAGE "$PACKAGE"
 
1740
_ACEOF
 
1741
 
 
1742
 
 
1743
cat >>confdefs.h <<_ACEOF
 
1744
#define VERSION "$VERSION"
 
1745
_ACEOF
 
1746
 
 
1747
# Some tools Automake needs.
 
1748
 
 
1749
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1750
 
 
1751
 
 
1752
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1753
 
 
1754
 
 
1755
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1756
 
 
1757
 
 
1758
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1759
 
 
1760
 
 
1761
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1762
 
 
1763
 
 
1764
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1765
 
 
1766
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1767
 
 
1768
# Installed binaries are usually stripped using `strip' when the user
 
1769
# run `make install-strip'.  However `strip' might not be the right
 
1770
# tool to use in cross-compilation environments, therefore Automake
 
1771
# will honor the `STRIP' environment variable to overrule this program.
 
1772
if test "$cross_compiling" != no; then
 
1773
  if test -n "$ac_tool_prefix"; then
 
1774
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1775
set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then
 
1779
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1780
else
 
1781
  if test -n "$STRIP"; then
 
1782
  ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
 
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
STRIP=$ac_cv_prog_STRIP
 
1801
if test -n "$STRIP"; then
 
1802
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1803
echo "${ECHO_T}$STRIP" >&6
 
1804
else
 
1805
  echo "$as_me:$LINENO: result: no" >&5
 
1806
echo "${ECHO_T}no" >&6
 
1807
fi
 
1808
 
 
1809
fi
 
1810
if test -z "$ac_cv_prog_STRIP"; then
 
1811
  ac_ct_STRIP=$STRIP
 
1812
  # Extract the first word of "strip", so it can be a program name with args.
 
1813
set dummy strip; ac_word=$2
 
1814
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1815
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1816
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1817
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1818
else
 
1819
  if test -n "$ac_ct_STRIP"; then
 
1820
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1821
else
 
1822
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1823
for as_dir in $PATH
 
1824
do
 
1825
  IFS=$as_save_IFS
 
1826
  test -z "$as_dir" && as_dir=.
 
1827
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1828
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1829
    ac_cv_prog_ac_ct_STRIP="strip"
 
1830
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1831
    break 2
 
1832
  fi
 
1833
done
 
1834
done
 
1835
 
 
1836
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1837
fi
 
1838
fi
 
1839
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1840
if test -n "$ac_ct_STRIP"; then
 
1841
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1842
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1843
else
 
1844
  echo "$as_me:$LINENO: result: no" >&5
 
1845
echo "${ECHO_T}no" >&6
 
1846
fi
 
1847
 
 
1848
  STRIP=$ac_ct_STRIP
 
1849
else
 
1850
  STRIP="$ac_cv_prog_STRIP"
 
1851
fi
 
1852
 
 
1853
fi
 
1854
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1855
 
 
1856
# We need awk for the "check" target.  The system "awk" is bad on
 
1857
# some platforms.
 
1858
 
 
1859
 
 
1860
 
 
1861
 
 
1862
          ac_config_headers="$ac_config_headers config.h"
 
1863
 
 
1864
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1865
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1866
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1867
if test "${enable_maintainer_mode+set}" = set; then
 
1868
  enableval="$enable_maintainer_mode"
 
1869
  USE_MAINTAINER_MODE=$enableval
 
1870
else
 
1871
  USE_MAINTAINER_MODE=no
 
1872
fi;
 
1873
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1874
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1875
 
 
1876
 
 
1877
if test $USE_MAINTAINER_MODE = yes; then
 
1878
  MAINTAINER_MODE_TRUE=
 
1879
  MAINTAINER_MODE_FALSE='#'
 
1880
else
 
1881
  MAINTAINER_MODE_TRUE='#'
 
1882
  MAINTAINER_MODE_FALSE=
 
1883
fi
 
1884
 
 
1885
  MAINT=$MAINTAINER_MODE_TRUE
 
1886
 
 
1887
 
 
1888
 
 
1889
 
 
1890
 
 
1891
cat >>confdefs.h <<\_ACEOF
 
1892
#define DRIVER_CURSOR_IMPLEMENT 1
 
1893
_ACEOF
 
1894
 
 
1895
 
 
1896
 
 
1897
 
 
1898
 
 
1899
# Check whether --with-unixodbc or --without-unixodbc was given.
 
1900
if test "${with_unixodbc+set}" = set; then
 
1901
  withval="$with_unixodbc"
 
1902
 
 
1903
  case $withval in
 
1904
    yes)
 
1905
 
 
1906
cat >>confdefs.h <<\_ACEOF
 
1907
#define WITH_UNIXODBC 1
 
1908
_ACEOF
 
1909
 
 
1910
      ;;
 
1911
    no)
 
1912
      :
 
1913
      ;;
 
1914
    *)
 
1915
      { { echo "$as_me:$LINENO: error: no argument expected for --with-unixodbc option" >&5
 
1916
echo "$as_me: error: no argument expected for --with-unixodbc option" >&2;}
 
1917
   { (exit 1); exit 1; }; }
 
1918
      ;;
 
1919
  esac
 
1920
 
 
1921
else
 
1922
  with_unixodbc=no
 
1923
 
 
1924
fi;
 
1925
 
 
1926
 
 
1927
 
 
1928
 
 
1929
 
 
1930
# Check whether --with-iodbc or --without-iodbc was given.
 
1931
if test "${with_iodbc+set}" = set; then
 
1932
  withval="$with_iodbc"
 
1933
 
 
1934
  case $withval in
 
1935
    yes)
 
1936
 
 
1937
cat >>confdefs.h <<\_ACEOF
 
1938
#define WITH_IODBC 1
 
1939
_ACEOF
 
1940
 
 
1941
      ;;
 
1942
    no)
 
1943
      :
 
1944
      ;;
 
1945
    *)
 
1946
      { { echo "$as_me:$LINENO: error: no argument expected for --with-iodbc option" >&5
 
1947
echo "$as_me: error: no argument expected for --with-iodbc option" >&2;}
 
1948
   { (exit 1); exit 1; }; }
 
1949
      ;;
 
1950
  esac
 
1951
 
 
1952
else
 
1953
  with_iodbc=no
 
1954
 
 
1955
fi;
 
1956
 
 
1957
 
 
1958
if test "$with_unixodbc" = yes && test "$with_iodbc" = yes; then
 
1959
  { { echo "$as_me:$LINENO: error: ODBC driver cannot be built for both unixODBC and iODBC" >&5
 
1960
echo "$as_me: error: ODBC driver cannot be built for both unixODBC and iODBC" >&2;}
 
1961
   { (exit 1); exit 1; }; }
 
1962
fi
 
1963
 
 
1964
#
 
1965
# Default odbc version number (--with-odbcver), default 0x0300
 
1966
#
 
1967
echo "$as_me:$LINENO: checking for ODBC version number" >&5
 
1968
echo $ECHO_N "checking for ODBC version number... $ECHO_C" >&6
 
1969
 
 
1970
 
 
1971
 
 
1972
# Check whether --with-odbcver or --without-odbcver was given.
 
1973
if test "${with_odbcver+set}" = set; then
 
1974
  withval="$with_odbcver"
 
1975
 
 
1976
  case $withval in
 
1977
    yes)
 
1978
      { { echo "$as_me:$LINENO: error: argument required for --with-odbcver option" >&5
 
1979
echo "$as_me: error: argument required for --with-odbcver option" >&2;}
 
1980
   { (exit 1); exit 1; }; }
 
1981
      ;;
 
1982
    no)
 
1983
      { { echo "$as_me:$LINENO: error: argument required for --with-odbcver option" >&5
 
1984
echo "$as_me: error: argument required for --with-odbcver option" >&2;}
 
1985
   { (exit 1); exit 1; }; }
 
1986
      ;;
 
1987
    *)
 
1988
 
 
1989
cat >>confdefs.h <<_ACEOF
 
1990
#define ODBCVER ${withval}
 
1991
_ACEOF
 
1992
 
 
1993
      ;;
 
1994
  esac
 
1995
 
 
1996
fi;
 
1997
 
 
1998
echo "$as_me:$LINENO: result: $with_odbcver" >&5
 
1999
echo "${ECHO_T}$with_odbcver" >&6
 
2000
 
 
2001
 
 
2002
 
 
2003
if test $with_unixodbc = yes; then
 
2004
  with_unixodbc_TRUE=
 
2005
  with_unixodbc_FALSE='#'
 
2006
else
 
2007
  with_unixodbc_TRUE='#'
 
2008
  with_unixodbc_FALSE=
 
2009
fi
 
2010
 
 
2011
 
 
2012
 
 
2013
if test $with_iodbc = yes; then
 
2014
  with_iodbc_TRUE=
 
2015
  with_iodbc_FALSE='#'
 
2016
else
 
2017
  with_iodbc_TRUE='#'
 
2018
  with_iodbc_FALSE=
 
2019
fi
 
2020
 
 
2021
 
 
2022
DEPDIR="${am__leading_dot}deps"
 
2023
 
 
2024
          ac_config_commands="$ac_config_commands depfiles"
 
2025
 
 
2026
 
 
2027
am_make=${MAKE-make}
 
2028
cat > confinc << 'END'
 
2029
doit:
 
2030
        @echo done
 
2031
END
 
2032
# If we don't find an include directive, just comment out the code.
 
2033
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2034
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2035
am__include="#"
 
2036
am__quote=
 
2037
_am_result=none
 
2038
# First try GNU make style include.
 
2039
echo "include confinc" > confmf
 
2040
# We grep out `Entering directory' and `Leaving directory'
 
2041
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2042
# In particular we don't look at `^make:' because GNU make might
 
2043
# be invoked under some other name (usually "gmake"), in which
 
2044
# case it prints its new name instead of `make'.
 
2045
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2046
   am__include=include
 
2047
   am__quote=
 
2048
   _am_result=GNU
 
2049
fi
 
2050
# Now try BSD make style include.
 
2051
if test "$am__include" = "#"; then
 
2052
   echo '.include "confinc"' > confmf
 
2053
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2054
      am__include=.include
 
2055
      am__quote="\""
 
2056
      _am_result=BSD
 
2057
   fi
 
2058
fi
 
2059
 
 
2060
 
 
2061
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2062
echo "${ECHO_T}$_am_result" >&6
 
2063
rm -f confinc confmf
 
2064
 
 
2065
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2066
if test "${enable_dependency_tracking+set}" = set; then
 
2067
  enableval="$enable_dependency_tracking"
 
2068
 
 
2069
fi;
 
2070
if test "x$enable_dependency_tracking" != xno; then
 
2071
  am_depcomp="$ac_aux_dir/depcomp"
 
2072
  AMDEPBACKSLASH='\'
 
2073
fi
 
2074
 
 
2075
 
 
2076
if test "x$enable_dependency_tracking" != xno; then
 
2077
  AMDEP_TRUE=
 
2078
  AMDEP_FALSE='#'
 
2079
else
 
2080
  AMDEP_TRUE='#'
 
2081
  AMDEP_FALSE=
 
2082
fi
 
2083
 
 
2084
 
 
2085
 
 
2086
ac_ext=c
 
2087
ac_cpp='$CPP $CPPFLAGS'
 
2088
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2089
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2090
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2091
if test -n "$ac_tool_prefix"; then
 
2092
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2093
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2094
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2095
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2096
if test "${ac_cv_prog_CC+set}" = set; then
 
2097
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2098
else
 
2099
  if test -n "$CC"; then
 
2100
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2101
else
 
2102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2103
for as_dir in $PATH
 
2104
do
 
2105
  IFS=$as_save_IFS
 
2106
  test -z "$as_dir" && as_dir=.
 
2107
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2108
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2109
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2110
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2111
    break 2
 
2112
  fi
 
2113
done
 
2114
done
 
2115
 
 
2116
fi
 
2117
fi
 
2118
CC=$ac_cv_prog_CC
 
2119
if test -n "$CC"; then
 
2120
  echo "$as_me:$LINENO: result: $CC" >&5
 
2121
echo "${ECHO_T}$CC" >&6
 
2122
else
 
2123
  echo "$as_me:$LINENO: result: no" >&5
 
2124
echo "${ECHO_T}no" >&6
 
2125
fi
 
2126
 
 
2127
fi
 
2128
if test -z "$ac_cv_prog_CC"; then
 
2129
  ac_ct_CC=$CC
 
2130
  # Extract the first word of "gcc", so it can be a program name with args.
 
2131
set dummy gcc; ac_word=$2
 
2132
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2133
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2134
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2135
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2136
else
 
2137
  if test -n "$ac_ct_CC"; then
 
2138
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2139
else
 
2140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2141
for as_dir in $PATH
 
2142
do
 
2143
  IFS=$as_save_IFS
 
2144
  test -z "$as_dir" && as_dir=.
 
2145
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2146
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2147
    ac_cv_prog_ac_ct_CC="gcc"
 
2148
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2149
    break 2
 
2150
  fi
 
2151
done
 
2152
done
 
2153
 
 
2154
fi
 
2155
fi
 
2156
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2157
if test -n "$ac_ct_CC"; then
 
2158
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2159
echo "${ECHO_T}$ac_ct_CC" >&6
 
2160
else
 
2161
  echo "$as_me:$LINENO: result: no" >&5
 
2162
echo "${ECHO_T}no" >&6
 
2163
fi
 
2164
 
 
2165
  CC=$ac_ct_CC
 
2166
else
 
2167
  CC="$ac_cv_prog_CC"
 
2168
fi
 
2169
 
 
2170
if test -z "$CC"; then
 
2171
  if test -n "$ac_tool_prefix"; then
 
2172
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2173
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2174
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2175
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2176
if test "${ac_cv_prog_CC+set}" = set; then
 
2177
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2178
else
 
2179
  if test -n "$CC"; then
 
2180
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2181
else
 
2182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2183
for as_dir in $PATH
 
2184
do
 
2185
  IFS=$as_save_IFS
 
2186
  test -z "$as_dir" && as_dir=.
 
2187
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2188
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2189
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2190
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2191
    break 2
 
2192
  fi
 
2193
done
 
2194
done
 
2195
 
 
2196
fi
 
2197
fi
 
2198
CC=$ac_cv_prog_CC
 
2199
if test -n "$CC"; then
 
2200
  echo "$as_me:$LINENO: result: $CC" >&5
 
2201
echo "${ECHO_T}$CC" >&6
 
2202
else
 
2203
  echo "$as_me:$LINENO: result: no" >&5
 
2204
echo "${ECHO_T}no" >&6
 
2205
fi
 
2206
 
 
2207
fi
 
2208
if test -z "$ac_cv_prog_CC"; then
 
2209
  ac_ct_CC=$CC
 
2210
  # Extract the first word of "cc", so it can be a program name with args.
 
2211
set dummy cc; ac_word=$2
 
2212
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2213
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2214
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2215
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2216
else
 
2217
  if test -n "$ac_ct_CC"; then
 
2218
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2219
else
 
2220
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2221
for as_dir in $PATH
 
2222
do
 
2223
  IFS=$as_save_IFS
 
2224
  test -z "$as_dir" && as_dir=.
 
2225
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2226
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2227
    ac_cv_prog_ac_ct_CC="cc"
 
2228
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2229
    break 2
 
2230
  fi
 
2231
done
 
2232
done
 
2233
 
 
2234
fi
 
2235
fi
 
2236
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2237
if test -n "$ac_ct_CC"; then
 
2238
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2239
echo "${ECHO_T}$ac_ct_CC" >&6
 
2240
else
 
2241
  echo "$as_me:$LINENO: result: no" >&5
 
2242
echo "${ECHO_T}no" >&6
 
2243
fi
 
2244
 
 
2245
  CC=$ac_ct_CC
 
2246
else
 
2247
  CC="$ac_cv_prog_CC"
 
2248
fi
 
2249
 
 
2250
fi
 
2251
if test -z "$CC"; then
 
2252
  # Extract the first word of "cc", so it can be a program name with args.
 
2253
set dummy cc; ac_word=$2
 
2254
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2255
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2256
if test "${ac_cv_prog_CC+set}" = set; then
 
2257
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2258
else
 
2259
  if test -n "$CC"; then
 
2260
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2261
else
 
2262
  ac_prog_rejected=no
 
2263
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2264
for as_dir in $PATH
 
2265
do
 
2266
  IFS=$as_save_IFS
 
2267
  test -z "$as_dir" && as_dir=.
 
2268
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2269
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2270
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2271
       ac_prog_rejected=yes
 
2272
       continue
 
2273
     fi
 
2274
    ac_cv_prog_CC="cc"
 
2275
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2276
    break 2
 
2277
  fi
 
2278
done
 
2279
done
 
2280
 
 
2281
if test $ac_prog_rejected = yes; then
 
2282
  # We found a bogon in the path, so make sure we never use it.
 
2283
  set dummy $ac_cv_prog_CC
 
2284
  shift
 
2285
  if test $# != 0; then
 
2286
    # We chose a different compiler from the bogus one.
 
2287
    # However, it has the same basename, so the bogon will be chosen
 
2288
    # first if we set CC to just the basename; use the full file name.
 
2289
    shift
 
2290
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2291
  fi
 
2292
fi
 
2293
fi
 
2294
fi
 
2295
CC=$ac_cv_prog_CC
 
2296
if test -n "$CC"; then
 
2297
  echo "$as_me:$LINENO: result: $CC" >&5
 
2298
echo "${ECHO_T}$CC" >&6
 
2299
else
 
2300
  echo "$as_me:$LINENO: result: no" >&5
 
2301
echo "${ECHO_T}no" >&6
 
2302
fi
 
2303
 
 
2304
fi
 
2305
if test -z "$CC"; then
 
2306
  if test -n "$ac_tool_prefix"; then
 
2307
  for ac_prog in cl
 
2308
  do
 
2309
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2310
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2311
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2312
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2313
if test "${ac_cv_prog_CC+set}" = set; then
 
2314
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2315
else
 
2316
  if test -n "$CC"; then
 
2317
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2318
else
 
2319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2320
for as_dir in $PATH
 
2321
do
 
2322
  IFS=$as_save_IFS
 
2323
  test -z "$as_dir" && as_dir=.
 
2324
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2325
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2326
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2327
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2328
    break 2
 
2329
  fi
 
2330
done
 
2331
done
 
2332
 
 
2333
fi
 
2334
fi
 
2335
CC=$ac_cv_prog_CC
 
2336
if test -n "$CC"; then
 
2337
  echo "$as_me:$LINENO: result: $CC" >&5
 
2338
echo "${ECHO_T}$CC" >&6
 
2339
else
 
2340
  echo "$as_me:$LINENO: result: no" >&5
 
2341
echo "${ECHO_T}no" >&6
 
2342
fi
 
2343
 
 
2344
    test -n "$CC" && break
 
2345
  done
 
2346
fi
 
2347
if test -z "$CC"; then
 
2348
  ac_ct_CC=$CC
 
2349
  for ac_prog in cl
 
2350
do
 
2351
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2352
set dummy $ac_prog; ac_word=$2
 
2353
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2354
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2355
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2356
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2357
else
 
2358
  if test -n "$ac_ct_CC"; then
 
2359
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2360
else
 
2361
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2362
for as_dir in $PATH
 
2363
do
 
2364
  IFS=$as_save_IFS
 
2365
  test -z "$as_dir" && as_dir=.
 
2366
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2367
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2368
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2369
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2370
    break 2
 
2371
  fi
 
2372
done
 
2373
done
 
2374
 
 
2375
fi
 
2376
fi
 
2377
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2378
if test -n "$ac_ct_CC"; then
 
2379
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2380
echo "${ECHO_T}$ac_ct_CC" >&6
 
2381
else
 
2382
  echo "$as_me:$LINENO: result: no" >&5
 
2383
echo "${ECHO_T}no" >&6
 
2384
fi
 
2385
 
 
2386
  test -n "$ac_ct_CC" && break
 
2387
done
 
2388
 
 
2389
  CC=$ac_ct_CC
 
2390
fi
 
2391
 
 
2392
fi
 
2393
 
 
2394
 
 
2395
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2396
See \`config.log' for more details." >&5
 
2397
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2398
See \`config.log' for more details." >&2;}
 
2399
   { (exit 1); exit 1; }; }
 
2400
 
 
2401
# Provide some information about the compiler.
 
2402
echo "$as_me:$LINENO:" \
 
2403
     "checking for C compiler version" >&5
 
2404
ac_compiler=`set X $ac_compile; echo $2`
 
2405
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2406
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2407
  ac_status=$?
 
2408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2409
  (exit $ac_status); }
 
2410
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2411
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2412
  ac_status=$?
 
2413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2414
  (exit $ac_status); }
 
2415
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2416
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2417
  ac_status=$?
 
2418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2419
  (exit $ac_status); }
 
2420
 
 
2421
cat >conftest.$ac_ext <<_ACEOF
 
2422
#line $LINENO "configure"
 
2423
/* confdefs.h.  */
 
2424
_ACEOF
 
2425
cat confdefs.h >>conftest.$ac_ext
 
2426
cat >>conftest.$ac_ext <<_ACEOF
 
2427
/* end confdefs.h.  */
 
2428
 
 
2429
int
 
2430
main ()
 
2431
{
 
2432
 
 
2433
  ;
 
2434
  return 0;
 
2435
}
 
2436
_ACEOF
 
2437
ac_clean_files_save=$ac_clean_files
 
2438
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2439
# Try to create an executable without -o first, disregard a.out.
 
2440
# It will help us diagnose broken compilers, and finding out an intuition
 
2441
# of exeext.
 
2442
echo "$as_me:$LINENO: checking for C compiler default output" >&5
 
2443
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2444
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2445
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2446
  (eval $ac_link_default) 2>&5
 
2447
  ac_status=$?
 
2448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2449
  (exit $ac_status); }; then
 
2450
  # Find the output, starting from the most likely.  This scheme is
 
2451
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2452
# resort.
 
2453
 
 
2454
# Be careful to initialize this variable, since it used to be cached.
 
2455
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2456
ac_cv_exeext=
 
2457
# b.out is created by i960 compilers.
 
2458
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2459
do
 
2460
  test -f "$ac_file" || continue
 
2461
  case $ac_file in
 
2462
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2463
        ;;
 
2464
    conftest.$ac_ext )
 
2465
        # This is the source file.
 
2466
        ;;
 
2467
    [ab].out )
 
2468
        # We found the default executable, but exeext='' is most
 
2469
        # certainly right.
 
2470
        break;;
 
2471
    *.* )
 
2472
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2473
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2474
        # but it would be cool to find out if it's true.  Does anybody
 
2475
        # maintain Libtool? --akim.
 
2476
        export ac_cv_exeext
 
2477
        break;;
 
2478
    * )
 
2479
        break;;
 
2480
  esac
 
2481
done
 
2482
else
 
2483
  echo "$as_me: failed program was:" >&5
 
2484
sed 's/^/| /' conftest.$ac_ext >&5
 
2485
 
 
2486
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2487
See \`config.log' for more details." >&5
 
2488
echo "$as_me: error: C compiler cannot create executables
 
2489
See \`config.log' for more details." >&2;}
 
2490
   { (exit 77); exit 77; }; }
 
2491
fi
 
2492
 
 
2493
ac_exeext=$ac_cv_exeext
 
2494
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2495
echo "${ECHO_T}$ac_file" >&6
 
2496
 
 
2497
# Check the compiler produces executables we can run.  If not, either
 
2498
# the compiler is broken, or we cross compile.
 
2499
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2500
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2501
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2502
# If not cross compiling, check that we can run a simple program.
 
2503
if test "$cross_compiling" != yes; then
 
2504
  if { ac_try='./$ac_file'
 
2505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2506
  (eval $ac_try) 2>&5
 
2507
  ac_status=$?
 
2508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2509
  (exit $ac_status); }; }; then
 
2510
    cross_compiling=no
 
2511
  else
 
2512
    if test "$cross_compiling" = maybe; then
 
2513
        cross_compiling=yes
 
2514
    else
 
2515
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2516
If you meant to cross compile, use \`--host'.
 
2517
See \`config.log' for more details." >&5
 
2518
echo "$as_me: error: cannot run C compiled programs.
 
2519
If you meant to cross compile, use \`--host'.
 
2520
See \`config.log' for more details." >&2;}
 
2521
   { (exit 1); exit 1; }; }
 
2522
    fi
 
2523
  fi
 
2524
fi
 
2525
echo "$as_me:$LINENO: result: yes" >&5
 
2526
echo "${ECHO_T}yes" >&6
 
2527
 
 
2528
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2529
ac_clean_files=$ac_clean_files_save
 
2530
# Check the compiler produces executables we can run.  If not, either
 
2531
# the compiler is broken, or we cross compile.
 
2532
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2533
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2534
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2535
echo "${ECHO_T}$cross_compiling" >&6
 
2536
 
 
2537
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2538
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2539
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2540
  (eval $ac_link) 2>&5
 
2541
  ac_status=$?
 
2542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2543
  (exit $ac_status); }; then
 
2544
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2545
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2546
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2547
# `rm'.
 
2548
for ac_file in conftest.exe conftest conftest.*; do
 
2549
  test -f "$ac_file" || continue
 
2550
  case $ac_file in
 
2551
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2552
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2553
          export ac_cv_exeext
 
2554
          break;;
 
2555
    * ) break;;
 
2556
  esac
 
2557
done
 
2558
else
 
2559
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2560
See \`config.log' for more details." >&5
 
2561
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2562
See \`config.log' for more details." >&2;}
 
2563
   { (exit 1); exit 1; }; }
 
2564
fi
 
2565
 
 
2566
rm -f conftest$ac_cv_exeext
 
2567
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2568
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2569
 
 
2570
rm -f conftest.$ac_ext
 
2571
EXEEXT=$ac_cv_exeext
 
2572
ac_exeext=$EXEEXT
 
2573
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2574
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2575
if test "${ac_cv_objext+set}" = set; then
 
2576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2577
else
 
2578
  cat >conftest.$ac_ext <<_ACEOF
 
2579
#line $LINENO "configure"
 
2580
/* confdefs.h.  */
 
2581
_ACEOF
 
2582
cat confdefs.h >>conftest.$ac_ext
 
2583
cat >>conftest.$ac_ext <<_ACEOF
 
2584
/* end confdefs.h.  */
 
2585
 
 
2586
int
 
2587
main ()
 
2588
{
 
2589
 
 
2590
  ;
 
2591
  return 0;
 
2592
}
 
2593
_ACEOF
 
2594
rm -f conftest.o conftest.obj
 
2595
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2596
  (eval $ac_compile) 2>&5
 
2597
  ac_status=$?
 
2598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2599
  (exit $ac_status); }; then
 
2600
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2601
  case $ac_file in
 
2602
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2603
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2604
       break;;
 
2605
  esac
 
2606
done
 
2607
else
 
2608
  echo "$as_me: failed program was:" >&5
 
2609
sed 's/^/| /' conftest.$ac_ext >&5
 
2610
 
 
2611
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2612
See \`config.log' for more details." >&5
 
2613
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2614
See \`config.log' for more details." >&2;}
 
2615
   { (exit 1); exit 1; }; }
 
2616
fi
 
2617
 
 
2618
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2619
fi
 
2620
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2621
echo "${ECHO_T}$ac_cv_objext" >&6
 
2622
OBJEXT=$ac_cv_objext
 
2623
ac_objext=$OBJEXT
 
2624
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2625
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2626
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2628
else
 
2629
  cat >conftest.$ac_ext <<_ACEOF
 
2630
#line $LINENO "configure"
 
2631
/* confdefs.h.  */
 
2632
_ACEOF
 
2633
cat confdefs.h >>conftest.$ac_ext
 
2634
cat >>conftest.$ac_ext <<_ACEOF
 
2635
/* end confdefs.h.  */
 
2636
 
 
2637
int
 
2638
main ()
 
2639
{
 
2640
#ifndef __GNUC__
 
2641
       choke me
 
2642
#endif
 
2643
 
 
2644
  ;
 
2645
  return 0;
 
2646
}
 
2647
_ACEOF
 
2648
rm -f conftest.$ac_objext
 
2649
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2650
  (eval $ac_compile) 2>&5
 
2651
  ac_status=$?
 
2652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2653
  (exit $ac_status); } &&
 
2654
         { ac_try='test -s conftest.$ac_objext'
 
2655
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2656
  (eval $ac_try) 2>&5
 
2657
  ac_status=$?
 
2658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2659
  (exit $ac_status); }; }; then
 
2660
  ac_compiler_gnu=yes
 
2661
else
 
2662
  echo "$as_me: failed program was:" >&5
 
2663
sed 's/^/| /' conftest.$ac_ext >&5
 
2664
 
 
2665
ac_compiler_gnu=no
 
2666
fi
 
2667
rm -f conftest.$ac_objext conftest.$ac_ext
 
2668
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2669
 
 
2670
fi
 
2671
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2672
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2673
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2674
ac_test_CFLAGS=${CFLAGS+set}
 
2675
ac_save_CFLAGS=$CFLAGS
 
2676
CFLAGS="-g"
 
2677
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2678
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2679
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2680
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2681
else
 
2682
  cat >conftest.$ac_ext <<_ACEOF
 
2683
#line $LINENO "configure"
 
2684
/* confdefs.h.  */
 
2685
_ACEOF
 
2686
cat confdefs.h >>conftest.$ac_ext
 
2687
cat >>conftest.$ac_ext <<_ACEOF
 
2688
/* end confdefs.h.  */
 
2689
 
 
2690
int
 
2691
main ()
 
2692
{
 
2693
 
 
2694
  ;
 
2695
  return 0;
 
2696
}
 
2697
_ACEOF
 
2698
rm -f conftest.$ac_objext
 
2699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2700
  (eval $ac_compile) 2>&5
 
2701
  ac_status=$?
 
2702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2703
  (exit $ac_status); } &&
 
2704
         { ac_try='test -s conftest.$ac_objext'
 
2705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2706
  (eval $ac_try) 2>&5
 
2707
  ac_status=$?
 
2708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2709
  (exit $ac_status); }; }; then
 
2710
  ac_cv_prog_cc_g=yes
 
2711
else
 
2712
  echo "$as_me: failed program was:" >&5
 
2713
sed 's/^/| /' conftest.$ac_ext >&5
 
2714
 
 
2715
ac_cv_prog_cc_g=no
 
2716
fi
 
2717
rm -f conftest.$ac_objext conftest.$ac_ext
 
2718
fi
 
2719
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2720
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2721
if test "$ac_test_CFLAGS" = set; then
 
2722
  CFLAGS=$ac_save_CFLAGS
 
2723
elif test $ac_cv_prog_cc_g = yes; then
 
2724
  if test "$GCC" = yes; then
 
2725
    CFLAGS="-g -O2"
 
2726
  else
 
2727
    CFLAGS="-g"
 
2728
  fi
 
2729
else
 
2730
  if test "$GCC" = yes; then
 
2731
    CFLAGS="-O2"
 
2732
  else
 
2733
    CFLAGS=
 
2734
  fi
 
2735
fi
 
2736
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2737
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2738
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2739
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2740
else
 
2741
  ac_cv_prog_cc_stdc=no
 
2742
ac_save_CC=$CC
 
2743
cat >conftest.$ac_ext <<_ACEOF
 
2744
#line $LINENO "configure"
 
2745
/* confdefs.h.  */
 
2746
_ACEOF
 
2747
cat confdefs.h >>conftest.$ac_ext
 
2748
cat >>conftest.$ac_ext <<_ACEOF
 
2749
/* end confdefs.h.  */
 
2750
#include <stdarg.h>
 
2751
#include <stdio.h>
 
2752
#include <sys/types.h>
 
2753
#include <sys/stat.h>
 
2754
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2755
struct buf { int x; };
 
2756
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2757
static char *e (p, i)
 
2758
     char **p;
 
2759
     int i;
 
2760
{
 
2761
  return p[i];
 
2762
}
 
2763
static char *f (char * (*g) (char **, int), char **p, ...)
 
2764
{
 
2765
  char *s;
 
2766
  va_list v;
 
2767
  va_start (v,p);
 
2768
  s = g (p, va_arg (v,int));
 
2769
  va_end (v);
 
2770
  return s;
 
2771
}
 
2772
int test (int i, double x);
 
2773
struct s1 {int (*f) (int a);};
 
2774
struct s2 {int (*f) (double a);};
 
2775
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2776
int argc;
 
2777
char **argv;
 
2778
int
 
2779
main ()
 
2780
{
 
2781
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2782
  ;
 
2783
  return 0;
 
2784
}
 
2785
_ACEOF
 
2786
# Don't try gcc -ansi; that turns off useful extensions and
 
2787
# breaks some systems' header files.
 
2788
# AIX                   -qlanglvl=ansi
 
2789
# Ultrix and OSF/1      -std1
 
2790
# HP-UX 10.20 and later -Ae
 
2791
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2792
# SVR4                  -Xc -D__EXTENSIONS__
 
2793
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2794
do
 
2795
  CC="$ac_save_CC $ac_arg"
 
2796
  rm -f conftest.$ac_objext
 
2797
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2798
  (eval $ac_compile) 2>&5
 
2799
  ac_status=$?
 
2800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2801
  (exit $ac_status); } &&
 
2802
         { ac_try='test -s conftest.$ac_objext'
 
2803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2804
  (eval $ac_try) 2>&5
 
2805
  ac_status=$?
 
2806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2807
  (exit $ac_status); }; }; then
 
2808
  ac_cv_prog_cc_stdc=$ac_arg
 
2809
break
 
2810
else
 
2811
  echo "$as_me: failed program was:" >&5
 
2812
sed 's/^/| /' conftest.$ac_ext >&5
 
2813
 
 
2814
fi
 
2815
rm -f conftest.$ac_objext
 
2816
done
 
2817
rm -f conftest.$ac_ext conftest.$ac_objext
 
2818
CC=$ac_save_CC
 
2819
 
 
2820
fi
 
2821
 
 
2822
case "x$ac_cv_prog_cc_stdc" in
 
2823
  x|xno)
 
2824
    echo "$as_me:$LINENO: result: none needed" >&5
 
2825
echo "${ECHO_T}none needed" >&6 ;;
 
2826
  *)
 
2827
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2828
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2829
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2830
esac
 
2831
 
 
2832
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2833
# in C++ we need to declare it.  In case someone uses the same compiler
 
2834
# for both compiling C and C++ we need to have the C++ compiler decide
 
2835
# the declaration of exit, since it's the most demanding environment.
 
2836
cat >conftest.$ac_ext <<_ACEOF
 
2837
#ifndef __cplusplus
 
2838
  choke me
 
2839
#endif
 
2840
_ACEOF
 
2841
rm -f conftest.$ac_objext
 
2842
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2843
  (eval $ac_compile) 2>&5
 
2844
  ac_status=$?
 
2845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2846
  (exit $ac_status); } &&
 
2847
         { ac_try='test -s conftest.$ac_objext'
 
2848
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2849
  (eval $ac_try) 2>&5
 
2850
  ac_status=$?
 
2851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2852
  (exit $ac_status); }; }; then
 
2853
  for ac_declaration in \
 
2854
   ''\
 
2855
   '#include <stdlib.h>' \
 
2856
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2857
   'extern "C" void std::exit (int); using std::exit;' \
 
2858
   'extern "C" void exit (int) throw ();' \
 
2859
   'extern "C" void exit (int);' \
 
2860
   'void exit (int);'
 
2861
do
 
2862
  cat >conftest.$ac_ext <<_ACEOF
 
2863
#line $LINENO "configure"
 
2864
/* confdefs.h.  */
 
2865
_ACEOF
 
2866
cat confdefs.h >>conftest.$ac_ext
 
2867
cat >>conftest.$ac_ext <<_ACEOF
 
2868
/* end confdefs.h.  */
 
2869
#include <stdlib.h>
 
2870
$ac_declaration
 
2871
int
 
2872
main ()
 
2873
{
 
2874
exit (42);
 
2875
  ;
 
2876
  return 0;
 
2877
}
 
2878
_ACEOF
 
2879
rm -f conftest.$ac_objext
 
2880
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2881
  (eval $ac_compile) 2>&5
 
2882
  ac_status=$?
 
2883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2884
  (exit $ac_status); } &&
 
2885
         { ac_try='test -s conftest.$ac_objext'
 
2886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2887
  (eval $ac_try) 2>&5
 
2888
  ac_status=$?
 
2889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2890
  (exit $ac_status); }; }; then
 
2891
  :
 
2892
else
 
2893
  echo "$as_me: failed program was:" >&5
 
2894
sed 's/^/| /' conftest.$ac_ext >&5
 
2895
 
 
2896
continue
 
2897
fi
 
2898
rm -f conftest.$ac_objext conftest.$ac_ext
 
2899
  cat >conftest.$ac_ext <<_ACEOF
 
2900
#line $LINENO "configure"
 
2901
/* confdefs.h.  */
 
2902
_ACEOF
 
2903
cat confdefs.h >>conftest.$ac_ext
 
2904
cat >>conftest.$ac_ext <<_ACEOF
 
2905
/* end confdefs.h.  */
 
2906
$ac_declaration
 
2907
int
 
2908
main ()
 
2909
{
 
2910
exit (42);
 
2911
  ;
 
2912
  return 0;
 
2913
}
 
2914
_ACEOF
 
2915
rm -f conftest.$ac_objext
 
2916
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2917
  (eval $ac_compile) 2>&5
 
2918
  ac_status=$?
 
2919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2920
  (exit $ac_status); } &&
 
2921
         { ac_try='test -s conftest.$ac_objext'
 
2922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2923
  (eval $ac_try) 2>&5
 
2924
  ac_status=$?
 
2925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2926
  (exit $ac_status); }; }; then
 
2927
  break
 
2928
else
 
2929
  echo "$as_me: failed program was:" >&5
 
2930
sed 's/^/| /' conftest.$ac_ext >&5
 
2931
 
 
2932
fi
 
2933
rm -f conftest.$ac_objext conftest.$ac_ext
 
2934
done
 
2935
rm -f conftest*
 
2936
if test -n "$ac_declaration"; then
 
2937
  echo '#ifdef __cplusplus' >>confdefs.h
 
2938
  echo $ac_declaration      >>confdefs.h
 
2939
  echo '#endif'             >>confdefs.h
 
2940
fi
 
2941
 
 
2942
else
 
2943
  echo "$as_me: failed program was:" >&5
 
2944
sed 's/^/| /' conftest.$ac_ext >&5
 
2945
 
 
2946
fi
 
2947
rm -f conftest.$ac_objext conftest.$ac_ext
 
2948
ac_ext=c
 
2949
ac_cpp='$CPP $CPPFLAGS'
 
2950
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2951
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2952
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2953
 
 
2954
depcc="$CC"   am_compiler_list=
 
2955
 
 
2956
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2957
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2958
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2959
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2960
else
 
2961
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2962
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2963
  # making bogus files that we don't know about and never remove.  For
 
2964
  # instance it was reported that on HP-UX the gcc test will end up
 
2965
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2966
  # in D'.
 
2967
  mkdir conftest.dir
 
2968
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2969
  # using a relative directory.
 
2970
  cp "$am_depcomp" conftest.dir
 
2971
  cd conftest.dir
 
2972
 
 
2973
  am_cv_CC_dependencies_compiler_type=none
 
2974
  if test "$am_compiler_list" = ""; then
 
2975
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2976
  fi
 
2977
  for depmode in $am_compiler_list; do
 
2978
    # We need to recreate these files for each test, as the compiler may
 
2979
    # overwrite some of them when testing with obscure command lines.
 
2980
    # This happens at least with the AIX C compiler.
 
2981
    echo '#include "conftest.h"' > conftest.c
 
2982
    echo 'int i;' > conftest.h
 
2983
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
2984
 
 
2985
    case $depmode in
 
2986
    nosideeffect)
 
2987
      # after this tag, mechanisms are not by side-effect, so they'll
 
2988
      # only be used when explicitly requested
 
2989
      if test "x$enable_dependency_tracking" = xyes; then
 
2990
        continue
 
2991
      else
 
2992
        break
 
2993
      fi
 
2994
      ;;
 
2995
    none) break ;;
 
2996
    esac
 
2997
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2998
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2999
    # handle `-M -o', and we need to detect this.
 
3000
    if depmode=$depmode \
 
3001
       source=conftest.c object=conftest.o \
 
3002
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
3003
       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
 
3004
         >/dev/null 2>conftest.err &&
 
3005
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
3006
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3007
      # icc doesn't choke on unknown options, it will just issue warnings
 
3008
      # (even with -Werror).  So we grep stderr for any message
 
3009
      # that says an option was ignored.
 
3010
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3011
        am_cv_CC_dependencies_compiler_type=$depmode
 
3012
        break
 
3013
      fi
 
3014
    fi
 
3015
  done
 
3016
 
 
3017
  cd ..
 
3018
  rm -rf conftest.dir
 
3019
else
 
3020
  am_cv_CC_dependencies_compiler_type=none
 
3021
fi
 
3022
 
 
3023
fi
 
3024
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3025
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3026
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3027
 
 
3028
 
 
3029
 
 
3030
if
 
3031
  test "x$enable_dependency_tracking" != xno \
 
3032
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3033
  am__fastdepCC_TRUE=
 
3034
  am__fastdepCC_FALSE='#'
 
3035
else
 
3036
  am__fastdepCC_TRUE='#'
 
3037
  am__fastdepCC_FALSE=
 
3038
fi
 
3039
 
 
3040
 
 
3041
 
 
3042
 
 
3043
for ac_func in strtoll
 
3044
do
 
3045
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3046
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3047
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3048
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3049
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3050
else
 
3051
  cat >conftest.$ac_ext <<_ACEOF
 
3052
#line $LINENO "configure"
 
3053
/* confdefs.h.  */
 
3054
_ACEOF
 
3055
cat confdefs.h >>conftest.$ac_ext
 
3056
cat >>conftest.$ac_ext <<_ACEOF
 
3057
/* end confdefs.h.  */
 
3058
/* System header to define __stub macros and hopefully few prototypes,
 
3059
    which can conflict with char $ac_func (); below.
 
3060
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3061
    <limits.h> exists even on freestanding compilers.  */
 
3062
#ifdef __STDC__
 
3063
# include <limits.h>
 
3064
#else
 
3065
# include <assert.h>
 
3066
#endif
 
3067
/* Override any gcc2 internal prototype to avoid an error.  */
 
3068
#ifdef __cplusplus
 
3069
extern "C"
 
3070
{
 
3071
#endif
 
3072
/* We use char because int might match the return type of a gcc2
 
3073
   builtin and then its argument prototype would still apply.  */
 
3074
char $ac_func ();
 
3075
/* The GNU C library defines this for functions which it implements
 
3076
    to always fail with ENOSYS.  Some functions are actually named
 
3077
    something starting with __ and the normal name is an alias.  */
 
3078
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
3079
choke me
 
3080
#else
 
3081
char (*f) () = $ac_func;
 
3082
#endif
 
3083
#ifdef __cplusplus
 
3084
}
 
3085
#endif
 
3086
 
 
3087
int
 
3088
main ()
 
3089
{
 
3090
return f != $ac_func;
 
3091
  ;
 
3092
  return 0;
 
3093
}
 
3094
_ACEOF
 
3095
rm -f conftest.$ac_objext conftest$ac_exeext
 
3096
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3097
  (eval $ac_link) 2>&5
 
3098
  ac_status=$?
 
3099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3100
  (exit $ac_status); } &&
 
3101
         { ac_try='test -s conftest$ac_exeext'
 
3102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3103
  (eval $ac_try) 2>&5
 
3104
  ac_status=$?
 
3105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3106
  (exit $ac_status); }; }; then
 
3107
  eval "$as_ac_var=yes"
 
3108
else
 
3109
  echo "$as_me: failed program was:" >&5
 
3110
sed 's/^/| /' conftest.$ac_ext >&5
 
3111
 
 
3112
eval "$as_ac_var=no"
 
3113
fi
 
3114
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3115
fi
 
3116
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3117
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3118
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3119
  cat >>confdefs.h <<_ACEOF
 
3120
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3121
_ACEOF
 
3122
 
 
3123
fi
 
3124
done
 
3125
 
 
3126
 
 
3127
# to implement the thread-safe driver
 
3128
 
 
3129
 
 
3130
# Check whether --enable-pthreads or --disable-pthreads was given.
 
3131
if test "${enable_pthreads+set}" = set; then
 
3132
  enableval="$enable_pthreads"
 
3133
 
 
3134
  case $enableval in
 
3135
    yes)
 
3136
 
 
3137
cat >>confdefs.h <<\_ACEOF
 
3138
#define POSIX_MULTITHREAD_SUPPORT 1
 
3139
_ACEOF
 
3140
 
 
3141
 
 
3142
cat >>confdefs.h <<\_ACEOF
 
3143
#define _REENTRANT 1
 
3144
_ACEOF
 
3145
 
 
3146
 
 
3147
echo "$as_me:$LINENO: checking for gethostbyname in -lc_r" >&5
 
3148
echo $ECHO_N "checking for gethostbyname in -lc_r... $ECHO_C" >&6
 
3149
if test "${ac_cv_lib_c_r_gethostbyname+set}" = set; then
 
3150
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3151
else
 
3152
  ac_check_lib_save_LIBS=$LIBS
 
3153
LIBS="-lc_r  $LIBS"
 
3154
cat >conftest.$ac_ext <<_ACEOF
 
3155
#line $LINENO "configure"
 
3156
/* confdefs.h.  */
 
3157
_ACEOF
 
3158
cat confdefs.h >>conftest.$ac_ext
 
3159
cat >>conftest.$ac_ext <<_ACEOF
 
3160
/* end confdefs.h.  */
 
3161
 
 
3162
/* Override any gcc2 internal prototype to avoid an error.  */
 
3163
#ifdef __cplusplus
 
3164
extern "C"
 
3165
#endif
 
3166
/* We use char because int might match the return type of a gcc2
 
3167
   builtin and then its argument prototype would still apply.  */
 
3168
char gethostbyname ();
 
3169
int
 
3170
main ()
 
3171
{
 
3172
gethostbyname ();
 
3173
  ;
 
3174
  return 0;
 
3175
}
 
3176
_ACEOF
 
3177
rm -f conftest.$ac_objext conftest$ac_exeext
 
3178
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3179
  (eval $ac_link) 2>&5
 
3180
  ac_status=$?
 
3181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3182
  (exit $ac_status); } &&
 
3183
         { ac_try='test -s conftest$ac_exeext'
 
3184
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3185
  (eval $ac_try) 2>&5
 
3186
  ac_status=$?
 
3187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3188
  (exit $ac_status); }; }; then
 
3189
  ac_cv_lib_c_r_gethostbyname=yes
 
3190
else
 
3191
  echo "$as_me: failed program was:" >&5
 
3192
sed 's/^/| /' conftest.$ac_ext >&5
 
3193
 
 
3194
ac_cv_lib_c_r_gethostbyname=no
 
3195
fi
 
3196
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3197
LIBS=$ac_check_lib_save_LIBS
 
3198
fi
 
3199
echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_gethostbyname" >&5
 
3200
echo "${ECHO_T}$ac_cv_lib_c_r_gethostbyname" >&6
 
3201
if test $ac_cv_lib_c_r_gethostbyname = yes; then
 
3202
  cat >>confdefs.h <<_ACEOF
 
3203
#define HAVE_LIBC_R 1
 
3204
_ACEOF
 
3205
 
 
3206
  LIBS="-lc_r $LIBS"
 
3207
 
 
3208
fi
 
3209
 
 
3210
 
 
3211
echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
 
3212
echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
 
3213
if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
 
3214
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3215
else
 
3216
  ac_check_lib_save_LIBS=$LIBS
 
3217
LIBS="-lnsl  $LIBS"
 
3218
cat >conftest.$ac_ext <<_ACEOF
 
3219
#line $LINENO "configure"
 
3220
/* confdefs.h.  */
 
3221
_ACEOF
 
3222
cat confdefs.h >>conftest.$ac_ext
 
3223
cat >>conftest.$ac_ext <<_ACEOF
 
3224
/* end confdefs.h.  */
 
3225
 
 
3226
/* Override any gcc2 internal prototype to avoid an error.  */
 
3227
#ifdef __cplusplus
 
3228
extern "C"
 
3229
#endif
 
3230
/* We use char because int might match the return type of a gcc2
 
3231
   builtin and then its argument prototype would still apply.  */
 
3232
char gethostbyname_r ();
 
3233
int
 
3234
main ()
 
3235
{
 
3236
gethostbyname_r ();
 
3237
  ;
 
3238
  return 0;
 
3239
}
 
3240
_ACEOF
 
3241
rm -f conftest.$ac_objext conftest$ac_exeext
 
3242
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3243
  (eval $ac_link) 2>&5
 
3244
  ac_status=$?
 
3245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3246
  (exit $ac_status); } &&
 
3247
         { ac_try='test -s conftest$ac_exeext'
 
3248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3249
  (eval $ac_try) 2>&5
 
3250
  ac_status=$?
 
3251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3252
  (exit $ac_status); }; }; then
 
3253
  ac_cv_lib_nsl_gethostbyname_r=yes
 
3254
else
 
3255
  echo "$as_me: failed program was:" >&5
 
3256
sed 's/^/| /' conftest.$ac_ext >&5
 
3257
 
 
3258
ac_cv_lib_nsl_gethostbyname_r=no
 
3259
fi
 
3260
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3261
LIBS=$ac_check_lib_save_LIBS
 
3262
fi
 
3263
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
 
3264
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
 
3265
if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
 
3266
  cat >>confdefs.h <<_ACEOF
 
3267
#define HAVE_LIBNSL 1
 
3268
_ACEOF
 
3269
 
 
3270
  LIBS="-lnsl $LIBS"
 
3271
 
 
3272
else
 
3273
 
 
3274
 
 
3275
for ac_func in getipnodebyname gethostbyname_r
 
3276
do
 
3277
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3278
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3279
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3280
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3281
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3282
else
 
3283
  cat >conftest.$ac_ext <<_ACEOF
 
3284
#line $LINENO "configure"
 
3285
/* confdefs.h.  */
 
3286
_ACEOF
 
3287
cat confdefs.h >>conftest.$ac_ext
 
3288
cat >>conftest.$ac_ext <<_ACEOF
 
3289
/* end confdefs.h.  */
 
3290
/* System header to define __stub macros and hopefully few prototypes,
 
3291
    which can conflict with char $ac_func (); below.
 
3292
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3293
    <limits.h> exists even on freestanding compilers.  */
 
3294
#ifdef __STDC__
 
3295
# include <limits.h>
 
3296
#else
 
3297
# include <assert.h>
 
3298
#endif
 
3299
/* Override any gcc2 internal prototype to avoid an error.  */
 
3300
#ifdef __cplusplus
 
3301
extern "C"
 
3302
{
 
3303
#endif
 
3304
/* We use char because int might match the return type of a gcc2
 
3305
   builtin and then its argument prototype would still apply.  */
 
3306
char $ac_func ();
 
3307
/* The GNU C library defines this for functions which it implements
 
3308
    to always fail with ENOSYS.  Some functions are actually named
 
3309
    something starting with __ and the normal name is an alias.  */
 
3310
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
3311
choke me
 
3312
#else
 
3313
char (*f) () = $ac_func;
 
3314
#endif
 
3315
#ifdef __cplusplus
 
3316
}
 
3317
#endif
 
3318
 
 
3319
int
 
3320
main ()
 
3321
{
 
3322
return f != $ac_func;
 
3323
  ;
 
3324
  return 0;
 
3325
}
 
3326
_ACEOF
 
3327
rm -f conftest.$ac_objext conftest$ac_exeext
 
3328
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3329
  (eval $ac_link) 2>&5
 
3330
  ac_status=$?
 
3331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3332
  (exit $ac_status); } &&
 
3333
         { ac_try='test -s conftest$ac_exeext'
 
3334
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3335
  (eval $ac_try) 2>&5
 
3336
  ac_status=$?
 
3337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3338
  (exit $ac_status); }; }; then
 
3339
  eval "$as_ac_var=yes"
 
3340
else
 
3341
  echo "$as_me: failed program was:" >&5
 
3342
sed 's/^/| /' conftest.$ac_ext >&5
 
3343
 
 
3344
eval "$as_ac_var=no"
 
3345
fi
 
3346
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3347
fi
 
3348
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3349
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3350
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3351
  cat >>confdefs.h <<_ACEOF
 
3352
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3353
_ACEOF
 
3354
 break
 
3355
fi
 
3356
done
 
3357
 
 
3358
fi
 
3359
 
 
3360
     if test x"$ac_cv_func_gethostbyname_r" = xyes || test x"$ac_cv_lib_nsl_gethostbyname_r" = xyes; then
 
3361
        cat >conftest.$ac_ext <<_ACEOF
 
3362
#line $LINENO "configure"
 
3363
/* confdefs.h.  */
 
3364
_ACEOF
 
3365
cat confdefs.h >>conftest.$ac_ext
 
3366
cat >>conftest.$ac_ext <<_ACEOF
 
3367
/* end confdefs.h.  */
 
3368
#include <netdb.h>
 
3369
int
 
3370
main ()
 
3371
{
 
3372
 gethostbyname_r((char *) 0, (struct hostent *) 0, (char *) 0, 0, (int *) 0);
 
3373
  ;
 
3374
  return 0;
 
3375
}
 
3376
_ACEOF
 
3377
rm -f conftest.$ac_objext
 
3378
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3379
  (eval $ac_compile) 2>&5
 
3380
  ac_status=$?
 
3381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3382
  (exit $ac_status); } &&
 
3383
         { ac_try='test -s conftest.$ac_objext'
 
3384
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3385
  (eval $ac_try) 2>&5
 
3386
  ac_status=$?
 
3387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3388
  (exit $ac_status); }; }; then
 
3389
 
 
3390
cat >>confdefs.h <<\_ACEOF
 
3391
#define PGS_REENTRANT_API_1 1
 
3392
_ACEOF
 
3393
 
 
3394
else
 
3395
  echo "$as_me: failed program was:" >&5
 
3396
sed 's/^/| /' conftest.$ac_ext >&5
 
3397
 
 
3398
 
 
3399
cat >>confdefs.h <<\_ACEOF
 
3400
#define PGS_REENTRANT_API_2 1
 
3401
_ACEOF
 
3402
 
 
3403
fi
 
3404
rm -f conftest.$ac_objext conftest.$ac_ext
 
3405
     fi
 
3406
 
 
3407
 
 
3408
for ac_func in localtime_r strtok_r
 
3409
do
 
3410
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
3411
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
3412
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
3413
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
3414
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3415
else
 
3416
  cat >conftest.$ac_ext <<_ACEOF
 
3417
#line $LINENO "configure"
 
3418
/* confdefs.h.  */
 
3419
_ACEOF
 
3420
cat confdefs.h >>conftest.$ac_ext
 
3421
cat >>conftest.$ac_ext <<_ACEOF
 
3422
/* end confdefs.h.  */
 
3423
/* System header to define __stub macros and hopefully few prototypes,
 
3424
    which can conflict with char $ac_func (); below.
 
3425
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3426
    <limits.h> exists even on freestanding compilers.  */
 
3427
#ifdef __STDC__
 
3428
# include <limits.h>
 
3429
#else
 
3430
# include <assert.h>
 
3431
#endif
 
3432
/* Override any gcc2 internal prototype to avoid an error.  */
 
3433
#ifdef __cplusplus
 
3434
extern "C"
 
3435
{
 
3436
#endif
 
3437
/* We use char because int might match the return type of a gcc2
 
3438
   builtin and then its argument prototype would still apply.  */
 
3439
char $ac_func ();
 
3440
/* The GNU C library defines this for functions which it implements
 
3441
    to always fail with ENOSYS.  Some functions are actually named
 
3442
    something starting with __ and the normal name is an alias.  */
 
3443
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
3444
choke me
 
3445
#else
 
3446
char (*f) () = $ac_func;
 
3447
#endif
 
3448
#ifdef __cplusplus
 
3449
}
 
3450
#endif
 
3451
 
 
3452
int
 
3453
main ()
 
3454
{
 
3455
return f != $ac_func;
 
3456
  ;
 
3457
  return 0;
 
3458
}
 
3459
_ACEOF
 
3460
rm -f conftest.$ac_objext conftest$ac_exeext
 
3461
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3462
  (eval $ac_link) 2>&5
 
3463
  ac_status=$?
 
3464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3465
  (exit $ac_status); } &&
 
3466
         { ac_try='test -s conftest$ac_exeext'
 
3467
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3468
  (eval $ac_try) 2>&5
 
3469
  ac_status=$?
 
3470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3471
  (exit $ac_status); }; }; then
 
3472
  eval "$as_ac_var=yes"
 
3473
else
 
3474
  echo "$as_me: failed program was:" >&5
 
3475
sed 's/^/| /' conftest.$ac_ext >&5
 
3476
 
 
3477
eval "$as_ac_var=no"
 
3478
fi
 
3479
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3480
fi
 
3481
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
3482
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
3483
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
3484
  cat >>confdefs.h <<_ACEOF
 
3485
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
3486
_ACEOF
 
3487
 
 
3488
fi
 
3489
done
 
3490
 
 
3491
 
 
3492
echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
 
3493
echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
 
3494
if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
 
3495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3496
else
 
3497
  ac_check_lib_save_LIBS=$LIBS
 
3498
LIBS="-lpthreads  $LIBS"
 
3499
cat >conftest.$ac_ext <<_ACEOF
 
3500
#line $LINENO "configure"
 
3501
/* confdefs.h.  */
 
3502
_ACEOF
 
3503
cat confdefs.h >>conftest.$ac_ext
 
3504
cat >>conftest.$ac_ext <<_ACEOF
 
3505
/* end confdefs.h.  */
 
3506
 
 
3507
/* Override any gcc2 internal prototype to avoid an error.  */
 
3508
#ifdef __cplusplus
 
3509
extern "C"
 
3510
#endif
 
3511
/* We use char because int might match the return type of a gcc2
 
3512
   builtin and then its argument prototype would still apply.  */
 
3513
char pthread_create ();
 
3514
int
 
3515
main ()
 
3516
{
 
3517
pthread_create ();
 
3518
  ;
 
3519
  return 0;
 
3520
}
 
3521
_ACEOF
 
3522
rm -f conftest.$ac_objext conftest$ac_exeext
 
3523
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3524
  (eval $ac_link) 2>&5
 
3525
  ac_status=$?
 
3526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3527
  (exit $ac_status); } &&
 
3528
         { ac_try='test -s conftest$ac_exeext'
 
3529
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3530
  (eval $ac_try) 2>&5
 
3531
  ac_status=$?
 
3532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3533
  (exit $ac_status); }; }; then
 
3534
  ac_cv_lib_pthreads_pthread_create=yes
 
3535
else
 
3536
  echo "$as_me: failed program was:" >&5
 
3537
sed 's/^/| /' conftest.$ac_ext >&5
 
3538
 
 
3539
ac_cv_lib_pthreads_pthread_create=no
 
3540
fi
 
3541
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3542
LIBS=$ac_check_lib_save_LIBS
 
3543
fi
 
3544
echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
 
3545
echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
 
3546
if test $ac_cv_lib_pthreads_pthread_create = yes; then
 
3547
  cat >>confdefs.h <<_ACEOF
 
3548
#define HAVE_LIBPTHREADS 1
 
3549
_ACEOF
 
3550
 
 
3551
  LIBS="-lpthreads $LIBS"
 
3552
 
 
3553
else
 
3554
 
 
3555
echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
3556
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
 
3557
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
 
3558
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3559
else
 
3560
  ac_check_lib_save_LIBS=$LIBS
 
3561
LIBS="-lpthread  $LIBS"
 
3562
cat >conftest.$ac_ext <<_ACEOF
 
3563
#line $LINENO "configure"
 
3564
/* confdefs.h.  */
 
3565
_ACEOF
 
3566
cat confdefs.h >>conftest.$ac_ext
 
3567
cat >>conftest.$ac_ext <<_ACEOF
 
3568
/* end confdefs.h.  */
 
3569
 
 
3570
/* Override any gcc2 internal prototype to avoid an error.  */
 
3571
#ifdef __cplusplus
 
3572
extern "C"
 
3573
#endif
 
3574
/* We use char because int might match the return type of a gcc2
 
3575
   builtin and then its argument prototype would still apply.  */
 
3576
char pthread_create ();
 
3577
int
 
3578
main ()
 
3579
{
 
3580
pthread_create ();
 
3581
  ;
 
3582
  return 0;
 
3583
}
 
3584
_ACEOF
 
3585
rm -f conftest.$ac_objext conftest$ac_exeext
 
3586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3587
  (eval $ac_link) 2>&5
 
3588
  ac_status=$?
 
3589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3590
  (exit $ac_status); } &&
 
3591
         { ac_try='test -s conftest$ac_exeext'
 
3592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3593
  (eval $ac_try) 2>&5
 
3594
  ac_status=$?
 
3595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3596
  (exit $ac_status); }; }; then
 
3597
  ac_cv_lib_pthread_pthread_create=yes
 
3598
else
 
3599
  echo "$as_me: failed program was:" >&5
 
3600
sed 's/^/| /' conftest.$ac_ext >&5
 
3601
 
 
3602
ac_cv_lib_pthread_pthread_create=no
 
3603
fi
 
3604
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3605
LIBS=$ac_check_lib_save_LIBS
 
3606
fi
 
3607
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
 
3608
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
 
3609
if test $ac_cv_lib_pthread_pthread_create = yes; then
 
3610
  cat >>confdefs.h <<_ACEOF
 
3611
#define HAVE_LIBPTHREAD 1
 
3612
_ACEOF
 
3613
 
 
3614
  LIBS="-lpthread $LIBS"
 
3615
 
 
3616
fi
 
3617
 
 
3618
fi
 
3619
 
 
3620
 
 
3621
      ;;
 
3622
    no)
 
3623
      :
 
3624
      ;;
 
3625
    *)
 
3626
      { { echo "$as_me:$LINENO: error: no argument expected for --enable-pthreads option" >&5
 
3627
echo "$as_me: error: no argument expected for --enable-pthreads option" >&2;}
 
3628
   { (exit 1); exit 1; }; }
 
3629
      ;;
 
3630
  esac
 
3631
 
 
3632
else
 
3633
  enable_pthreads=no
 
3634
 
 
3635
fi;
 
3636
 
 
3637
 
 
3638
# Allow for overriding the default location of the odbcinst.ini
 
3639
# file which is normally ${sysconfdir} (i.e., ${prefix}/etc).
 
3640
 
 
3641
 
 
3642
 
 
3643
# Check whether --with-odbcinst or --without-odbcinst was given.
 
3644
if test "${with_odbcinst+set}" = set; then
 
3645
  withval="$with_odbcinst"
 
3646
 
 
3647
  case $withval in
 
3648
    yes)
 
3649
      { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
 
3650
echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
 
3651
   { (exit 1); exit 1; }; }
 
3652
      ;;
 
3653
    no)
 
3654
      { { echo "$as_me:$LINENO: error: argument required for --with-odbcinst option" >&5
 
3655
echo "$as_me: error: argument required for --with-odbcinst option" >&2;}
 
3656
   { (exit 1); exit 1; }; }
 
3657
      ;;
 
3658
    *)
 
3659
      odbcinst_ini_dir=$withval
 
3660
      ;;
 
3661
  esac
 
3662
 
 
3663
else
 
3664
  odbcinst_ini_dir="\${sysconfdir}"
 
3665
fi;
 
3666
 
 
3667
 
 
3668
 
 
3669
ac_ext=c
 
3670
ac_cpp='$CPP $CPPFLAGS'
 
3671
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3672
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3673
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3674
if test -n "$ac_tool_prefix"; then
 
3675
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3676
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3677
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3678
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3679
if test "${ac_cv_prog_CC+set}" = set; then
 
3680
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3681
else
 
3682
  if test -n "$CC"; then
 
3683
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3684
else
 
3685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3686
for as_dir in $PATH
 
3687
do
 
3688
  IFS=$as_save_IFS
 
3689
  test -z "$as_dir" && as_dir=.
 
3690
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3691
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3692
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3693
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3694
    break 2
 
3695
  fi
 
3696
done
 
3697
done
 
3698
 
 
3699
fi
 
3700
fi
 
3701
CC=$ac_cv_prog_CC
 
3702
if test -n "$CC"; then
 
3703
  echo "$as_me:$LINENO: result: $CC" >&5
 
3704
echo "${ECHO_T}$CC" >&6
 
3705
else
 
3706
  echo "$as_me:$LINENO: result: no" >&5
 
3707
echo "${ECHO_T}no" >&6
 
3708
fi
 
3709
 
 
3710
fi
 
3711
if test -z "$ac_cv_prog_CC"; then
 
3712
  ac_ct_CC=$CC
 
3713
  # Extract the first word of "gcc", so it can be a program name with args.
 
3714
set dummy gcc; ac_word=$2
 
3715
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3716
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3717
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3718
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3719
else
 
3720
  if test -n "$ac_ct_CC"; then
 
3721
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3722
else
 
3723
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3724
for as_dir in $PATH
 
3725
do
 
3726
  IFS=$as_save_IFS
 
3727
  test -z "$as_dir" && as_dir=.
 
3728
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3729
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3730
    ac_cv_prog_ac_ct_CC="gcc"
 
3731
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3732
    break 2
 
3733
  fi
 
3734
done
 
3735
done
 
3736
 
 
3737
fi
 
3738
fi
 
3739
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3740
if test -n "$ac_ct_CC"; then
 
3741
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3742
echo "${ECHO_T}$ac_ct_CC" >&6
 
3743
else
 
3744
  echo "$as_me:$LINENO: result: no" >&5
 
3745
echo "${ECHO_T}no" >&6
 
3746
fi
 
3747
 
 
3748
  CC=$ac_ct_CC
 
3749
else
 
3750
  CC="$ac_cv_prog_CC"
 
3751
fi
 
3752
 
 
3753
if test -z "$CC"; then
 
3754
  if test -n "$ac_tool_prefix"; then
 
3755
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3756
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3757
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3758
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3759
if test "${ac_cv_prog_CC+set}" = set; then
 
3760
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3761
else
 
3762
  if test -n "$CC"; then
 
3763
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3764
else
 
3765
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3766
for as_dir in $PATH
 
3767
do
 
3768
  IFS=$as_save_IFS
 
3769
  test -z "$as_dir" && as_dir=.
 
3770
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3771
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3772
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3773
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3774
    break 2
 
3775
  fi
 
3776
done
 
3777
done
 
3778
 
 
3779
fi
 
3780
fi
 
3781
CC=$ac_cv_prog_CC
 
3782
if test -n "$CC"; then
 
3783
  echo "$as_me:$LINENO: result: $CC" >&5
 
3784
echo "${ECHO_T}$CC" >&6
 
3785
else
 
3786
  echo "$as_me:$LINENO: result: no" >&5
 
3787
echo "${ECHO_T}no" >&6
 
3788
fi
 
3789
 
 
3790
fi
 
3791
if test -z "$ac_cv_prog_CC"; then
 
3792
  ac_ct_CC=$CC
 
3793
  # Extract the first word of "cc", so it can be a program name with args.
 
3794
set dummy cc; ac_word=$2
 
3795
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3796
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3797
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3798
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3799
else
 
3800
  if test -n "$ac_ct_CC"; then
 
3801
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3802
else
 
3803
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3804
for as_dir in $PATH
 
3805
do
 
3806
  IFS=$as_save_IFS
 
3807
  test -z "$as_dir" && as_dir=.
 
3808
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3809
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3810
    ac_cv_prog_ac_ct_CC="cc"
 
3811
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3812
    break 2
 
3813
  fi
 
3814
done
 
3815
done
 
3816
 
 
3817
fi
 
3818
fi
 
3819
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3820
if test -n "$ac_ct_CC"; then
 
3821
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3822
echo "${ECHO_T}$ac_ct_CC" >&6
 
3823
else
 
3824
  echo "$as_me:$LINENO: result: no" >&5
 
3825
echo "${ECHO_T}no" >&6
 
3826
fi
 
3827
 
 
3828
  CC=$ac_ct_CC
 
3829
else
 
3830
  CC="$ac_cv_prog_CC"
 
3831
fi
 
3832
 
 
3833
fi
 
3834
if test -z "$CC"; then
 
3835
  # Extract the first word of "cc", so it can be a program name with args.
 
3836
set dummy cc; ac_word=$2
 
3837
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3838
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3839
if test "${ac_cv_prog_CC+set}" = set; then
 
3840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3841
else
 
3842
  if test -n "$CC"; then
 
3843
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3844
else
 
3845
  ac_prog_rejected=no
 
3846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3847
for as_dir in $PATH
 
3848
do
 
3849
  IFS=$as_save_IFS
 
3850
  test -z "$as_dir" && as_dir=.
 
3851
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3852
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3853
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3854
       ac_prog_rejected=yes
 
3855
       continue
 
3856
     fi
 
3857
    ac_cv_prog_CC="cc"
 
3858
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3859
    break 2
 
3860
  fi
 
3861
done
 
3862
done
 
3863
 
 
3864
if test $ac_prog_rejected = yes; then
 
3865
  # We found a bogon in the path, so make sure we never use it.
 
3866
  set dummy $ac_cv_prog_CC
 
3867
  shift
 
3868
  if test $# != 0; then
 
3869
    # We chose a different compiler from the bogus one.
 
3870
    # However, it has the same basename, so the bogon will be chosen
 
3871
    # first if we set CC to just the basename; use the full file name.
 
3872
    shift
 
3873
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3874
  fi
 
3875
fi
 
3876
fi
 
3877
fi
 
3878
CC=$ac_cv_prog_CC
 
3879
if test -n "$CC"; then
 
3880
  echo "$as_me:$LINENO: result: $CC" >&5
 
3881
echo "${ECHO_T}$CC" >&6
 
3882
else
 
3883
  echo "$as_me:$LINENO: result: no" >&5
 
3884
echo "${ECHO_T}no" >&6
 
3885
fi
 
3886
 
 
3887
fi
 
3888
if test -z "$CC"; then
 
3889
  if test -n "$ac_tool_prefix"; then
 
3890
  for ac_prog in cl
 
3891
  do
 
3892
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3893
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3894
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3895
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3896
if test "${ac_cv_prog_CC+set}" = set; then
 
3897
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3898
else
 
3899
  if test -n "$CC"; then
 
3900
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3901
else
 
3902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3903
for as_dir in $PATH
 
3904
do
 
3905
  IFS=$as_save_IFS
 
3906
  test -z "$as_dir" && as_dir=.
 
3907
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3908
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3909
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3910
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3911
    break 2
 
3912
  fi
 
3913
done
 
3914
done
 
3915
 
 
3916
fi
 
3917
fi
 
3918
CC=$ac_cv_prog_CC
 
3919
if test -n "$CC"; then
 
3920
  echo "$as_me:$LINENO: result: $CC" >&5
 
3921
echo "${ECHO_T}$CC" >&6
 
3922
else
 
3923
  echo "$as_me:$LINENO: result: no" >&5
 
3924
echo "${ECHO_T}no" >&6
 
3925
fi
 
3926
 
 
3927
    test -n "$CC" && break
 
3928
  done
 
3929
fi
 
3930
if test -z "$CC"; then
 
3931
  ac_ct_CC=$CC
 
3932
  for ac_prog in cl
 
3933
do
 
3934
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3935
set dummy $ac_prog; ac_word=$2
 
3936
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3937
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3938
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3940
else
 
3941
  if test -n "$ac_ct_CC"; then
 
3942
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3943
else
 
3944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3945
for as_dir in $PATH
 
3946
do
 
3947
  IFS=$as_save_IFS
 
3948
  test -z "$as_dir" && as_dir=.
 
3949
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3950
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3951
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3952
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3953
    break 2
 
3954
  fi
 
3955
done
 
3956
done
 
3957
 
 
3958
fi
 
3959
fi
 
3960
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3961
if test -n "$ac_ct_CC"; then
 
3962
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3963
echo "${ECHO_T}$ac_ct_CC" >&6
 
3964
else
 
3965
  echo "$as_me:$LINENO: result: no" >&5
 
3966
echo "${ECHO_T}no" >&6
 
3967
fi
 
3968
 
 
3969
  test -n "$ac_ct_CC" && break
 
3970
done
 
3971
 
 
3972
  CC=$ac_ct_CC
 
3973
fi
 
3974
 
 
3975
fi
 
3976
 
 
3977
 
 
3978
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3979
See \`config.log' for more details." >&5
 
3980
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3981
See \`config.log' for more details." >&2;}
 
3982
   { (exit 1); exit 1; }; }
 
3983
 
 
3984
# Provide some information about the compiler.
 
3985
echo "$as_me:$LINENO:" \
 
3986
     "checking for C compiler version" >&5
 
3987
ac_compiler=`set X $ac_compile; echo $2`
 
3988
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3989
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3990
  ac_status=$?
 
3991
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3992
  (exit $ac_status); }
 
3993
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3994
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3995
  ac_status=$?
 
3996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3997
  (exit $ac_status); }
 
3998
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3999
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4000
  ac_status=$?
 
4001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4002
  (exit $ac_status); }
 
4003
 
 
4004
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
4005
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
4006
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
4007
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4008
else
 
4009
  cat >conftest.$ac_ext <<_ACEOF
 
4010
#line $LINENO "configure"
 
4011
/* confdefs.h.  */
 
4012
_ACEOF
 
4013
cat confdefs.h >>conftest.$ac_ext
 
4014
cat >>conftest.$ac_ext <<_ACEOF
 
4015
/* end confdefs.h.  */
 
4016
 
 
4017
int
 
4018
main ()
 
4019
{
 
4020
#ifndef __GNUC__
 
4021
       choke me
 
4022
#endif
 
4023
 
 
4024
  ;
 
4025
  return 0;
 
4026
}
 
4027
_ACEOF
 
4028
rm -f conftest.$ac_objext
 
4029
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4030
  (eval $ac_compile) 2>&5
 
4031
  ac_status=$?
 
4032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4033
  (exit $ac_status); } &&
 
4034
         { ac_try='test -s conftest.$ac_objext'
 
4035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4036
  (eval $ac_try) 2>&5
 
4037
  ac_status=$?
 
4038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4039
  (exit $ac_status); }; }; then
 
4040
  ac_compiler_gnu=yes
 
4041
else
 
4042
  echo "$as_me: failed program was:" >&5
 
4043
sed 's/^/| /' conftest.$ac_ext >&5
 
4044
 
 
4045
ac_compiler_gnu=no
 
4046
fi
 
4047
rm -f conftest.$ac_objext conftest.$ac_ext
 
4048
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4049
 
 
4050
fi
 
4051
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
4052
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
4053
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
4054
ac_test_CFLAGS=${CFLAGS+set}
 
4055
ac_save_CFLAGS=$CFLAGS
 
4056
CFLAGS="-g"
 
4057
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
4058
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
4059
if test "${ac_cv_prog_cc_g+set}" = set; then
 
4060
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4061
else
 
4062
  cat >conftest.$ac_ext <<_ACEOF
 
4063
#line $LINENO "configure"
 
4064
/* confdefs.h.  */
 
4065
_ACEOF
 
4066
cat confdefs.h >>conftest.$ac_ext
 
4067
cat >>conftest.$ac_ext <<_ACEOF
 
4068
/* end confdefs.h.  */
 
4069
 
 
4070
int
 
4071
main ()
 
4072
{
 
4073
 
 
4074
  ;
 
4075
  return 0;
 
4076
}
 
4077
_ACEOF
 
4078
rm -f conftest.$ac_objext
 
4079
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4080
  (eval $ac_compile) 2>&5
 
4081
  ac_status=$?
 
4082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4083
  (exit $ac_status); } &&
 
4084
         { ac_try='test -s conftest.$ac_objext'
 
4085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4086
  (eval $ac_try) 2>&5
 
4087
  ac_status=$?
 
4088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4089
  (exit $ac_status); }; }; then
 
4090
  ac_cv_prog_cc_g=yes
 
4091
else
 
4092
  echo "$as_me: failed program was:" >&5
 
4093
sed 's/^/| /' conftest.$ac_ext >&5
 
4094
 
 
4095
ac_cv_prog_cc_g=no
 
4096
fi
 
4097
rm -f conftest.$ac_objext conftest.$ac_ext
 
4098
fi
 
4099
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
4100
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
4101
if test "$ac_test_CFLAGS" = set; then
 
4102
  CFLAGS=$ac_save_CFLAGS
 
4103
elif test $ac_cv_prog_cc_g = yes; then
 
4104
  if test "$GCC" = yes; then
 
4105
    CFLAGS="-g -O2"
 
4106
  else
 
4107
    CFLAGS="-g"
 
4108
  fi
 
4109
else
 
4110
  if test "$GCC" = yes; then
 
4111
    CFLAGS="-O2"
 
4112
  else
 
4113
    CFLAGS=
 
4114
  fi
 
4115
fi
 
4116
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
4117
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
4118
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
4119
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4120
else
 
4121
  ac_cv_prog_cc_stdc=no
 
4122
ac_save_CC=$CC
 
4123
cat >conftest.$ac_ext <<_ACEOF
 
4124
#line $LINENO "configure"
 
4125
/* confdefs.h.  */
 
4126
_ACEOF
 
4127
cat confdefs.h >>conftest.$ac_ext
 
4128
cat >>conftest.$ac_ext <<_ACEOF
 
4129
/* end confdefs.h.  */
 
4130
#include <stdarg.h>
 
4131
#include <stdio.h>
 
4132
#include <sys/types.h>
 
4133
#include <sys/stat.h>
 
4134
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4135
struct buf { int x; };
 
4136
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4137
static char *e (p, i)
 
4138
     char **p;
 
4139
     int i;
 
4140
{
 
4141
  return p[i];
 
4142
}
 
4143
static char *f (char * (*g) (char **, int), char **p, ...)
 
4144
{
 
4145
  char *s;
 
4146
  va_list v;
 
4147
  va_start (v,p);
 
4148
  s = g (p, va_arg (v,int));
 
4149
  va_end (v);
 
4150
  return s;
 
4151
}
 
4152
int test (int i, double x);
 
4153
struct s1 {int (*f) (int a);};
 
4154
struct s2 {int (*f) (double a);};
 
4155
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4156
int argc;
 
4157
char **argv;
 
4158
int
 
4159
main ()
 
4160
{
 
4161
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4162
  ;
 
4163
  return 0;
 
4164
}
 
4165
_ACEOF
 
4166
# Don't try gcc -ansi; that turns off useful extensions and
 
4167
# breaks some systems' header files.
 
4168
# AIX                   -qlanglvl=ansi
 
4169
# Ultrix and OSF/1      -std1
 
4170
# HP-UX 10.20 and later -Ae
 
4171
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
4172
# SVR4                  -Xc -D__EXTENSIONS__
 
4173
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4174
do
 
4175
  CC="$ac_save_CC $ac_arg"
 
4176
  rm -f conftest.$ac_objext
 
4177
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4178
  (eval $ac_compile) 2>&5
 
4179
  ac_status=$?
 
4180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4181
  (exit $ac_status); } &&
 
4182
         { ac_try='test -s conftest.$ac_objext'
 
4183
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4184
  (eval $ac_try) 2>&5
 
4185
  ac_status=$?
 
4186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4187
  (exit $ac_status); }; }; then
 
4188
  ac_cv_prog_cc_stdc=$ac_arg
 
4189
break
 
4190
else
 
4191
  echo "$as_me: failed program was:" >&5
 
4192
sed 's/^/| /' conftest.$ac_ext >&5
 
4193
 
 
4194
fi
 
4195
rm -f conftest.$ac_objext
 
4196
done
 
4197
rm -f conftest.$ac_ext conftest.$ac_objext
 
4198
CC=$ac_save_CC
 
4199
 
 
4200
fi
 
4201
 
 
4202
case "x$ac_cv_prog_cc_stdc" in
 
4203
  x|xno)
 
4204
    echo "$as_me:$LINENO: result: none needed" >&5
 
4205
echo "${ECHO_T}none needed" >&6 ;;
 
4206
  *)
 
4207
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
4208
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
4209
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
4210
esac
 
4211
 
 
4212
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
4213
# in C++ we need to declare it.  In case someone uses the same compiler
 
4214
# for both compiling C and C++ we need to have the C++ compiler decide
 
4215
# the declaration of exit, since it's the most demanding environment.
 
4216
cat >conftest.$ac_ext <<_ACEOF
 
4217
#ifndef __cplusplus
 
4218
  choke me
 
4219
#endif
 
4220
_ACEOF
 
4221
rm -f conftest.$ac_objext
 
4222
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4223
  (eval $ac_compile) 2>&5
 
4224
  ac_status=$?
 
4225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4226
  (exit $ac_status); } &&
 
4227
         { ac_try='test -s conftest.$ac_objext'
 
4228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4229
  (eval $ac_try) 2>&5
 
4230
  ac_status=$?
 
4231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4232
  (exit $ac_status); }; }; then
 
4233
  for ac_declaration in \
 
4234
   ''\
 
4235
   '#include <stdlib.h>' \
 
4236
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4237
   'extern "C" void std::exit (int); using std::exit;' \
 
4238
   'extern "C" void exit (int) throw ();' \
 
4239
   'extern "C" void exit (int);' \
 
4240
   'void exit (int);'
 
4241
do
 
4242
  cat >conftest.$ac_ext <<_ACEOF
 
4243
#line $LINENO "configure"
 
4244
/* confdefs.h.  */
 
4245
_ACEOF
 
4246
cat confdefs.h >>conftest.$ac_ext
 
4247
cat >>conftest.$ac_ext <<_ACEOF
 
4248
/* end confdefs.h.  */
 
4249
#include <stdlib.h>
 
4250
$ac_declaration
 
4251
int
 
4252
main ()
 
4253
{
 
4254
exit (42);
 
4255
  ;
 
4256
  return 0;
 
4257
}
 
4258
_ACEOF
 
4259
rm -f conftest.$ac_objext
 
4260
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4261
  (eval $ac_compile) 2>&5
 
4262
  ac_status=$?
 
4263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4264
  (exit $ac_status); } &&
 
4265
         { ac_try='test -s conftest.$ac_objext'
 
4266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4267
  (eval $ac_try) 2>&5
 
4268
  ac_status=$?
 
4269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4270
  (exit $ac_status); }; }; then
 
4271
  :
 
4272
else
 
4273
  echo "$as_me: failed program was:" >&5
 
4274
sed 's/^/| /' conftest.$ac_ext >&5
 
4275
 
 
4276
continue
 
4277
fi
 
4278
rm -f conftest.$ac_objext conftest.$ac_ext
 
4279
  cat >conftest.$ac_ext <<_ACEOF
 
4280
#line $LINENO "configure"
 
4281
/* confdefs.h.  */
 
4282
_ACEOF
 
4283
cat confdefs.h >>conftest.$ac_ext
 
4284
cat >>conftest.$ac_ext <<_ACEOF
 
4285
/* end confdefs.h.  */
 
4286
$ac_declaration
 
4287
int
 
4288
main ()
 
4289
{
 
4290
exit (42);
 
4291
  ;
 
4292
  return 0;
 
4293
}
 
4294
_ACEOF
 
4295
rm -f conftest.$ac_objext
 
4296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4297
  (eval $ac_compile) 2>&5
 
4298
  ac_status=$?
 
4299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4300
  (exit $ac_status); } &&
 
4301
         { ac_try='test -s conftest.$ac_objext'
 
4302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4303
  (eval $ac_try) 2>&5
 
4304
  ac_status=$?
 
4305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4306
  (exit $ac_status); }; }; then
 
4307
  break
 
4308
else
 
4309
  echo "$as_me: failed program was:" >&5
 
4310
sed 's/^/| /' conftest.$ac_ext >&5
 
4311
 
 
4312
fi
 
4313
rm -f conftest.$ac_objext conftest.$ac_ext
 
4314
done
 
4315
rm -f conftest*
 
4316
if test -n "$ac_declaration"; then
 
4317
  echo '#ifdef __cplusplus' >>confdefs.h
 
4318
  echo $ac_declaration      >>confdefs.h
 
4319
  echo '#endif'             >>confdefs.h
 
4320
fi
 
4321
 
 
4322
else
 
4323
  echo "$as_me: failed program was:" >&5
 
4324
sed 's/^/| /' conftest.$ac_ext >&5
 
4325
 
 
4326
fi
 
4327
rm -f conftest.$ac_objext conftest.$ac_ext
 
4328
ac_ext=c
 
4329
ac_cpp='$CPP $CPPFLAGS'
 
4330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4333
 
 
4334
depcc="$CC"   am_compiler_list=
 
4335
 
 
4336
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4337
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4338
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4339
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4340
else
 
4341
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4342
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4343
  # making bogus files that we don't know about and never remove.  For
 
4344
  # instance it was reported that on HP-UX the gcc test will end up
 
4345
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4346
  # in D'.
 
4347
  mkdir conftest.dir
 
4348
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4349
  # using a relative directory.
 
4350
  cp "$am_depcomp" conftest.dir
 
4351
  cd conftest.dir
 
4352
 
 
4353
  am_cv_CC_dependencies_compiler_type=none
 
4354
  if test "$am_compiler_list" = ""; then
 
4355
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4356
  fi
 
4357
  for depmode in $am_compiler_list; do
 
4358
    # We need to recreate these files for each test, as the compiler may
 
4359
    # overwrite some of them when testing with obscure command lines.
 
4360
    # This happens at least with the AIX C compiler.
 
4361
    echo '#include "conftest.h"' > conftest.c
 
4362
    echo 'int i;' > conftest.h
 
4363
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
4364
 
 
4365
    case $depmode in
 
4366
    nosideeffect)
 
4367
      # after this tag, mechanisms are not by side-effect, so they'll
 
4368
      # only be used when explicitly requested
 
4369
      if test "x$enable_dependency_tracking" = xyes; then
 
4370
        continue
 
4371
      else
 
4372
        break
 
4373
      fi
 
4374
      ;;
 
4375
    none) break ;;
 
4376
    esac
 
4377
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4378
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4379
    # handle `-M -o', and we need to detect this.
 
4380
    if depmode=$depmode \
 
4381
       source=conftest.c object=conftest.o \
 
4382
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
4383
       $SHELL ./depcomp $depcc -c -o conftest.o conftest.c \
 
4384
         >/dev/null 2>conftest.err &&
 
4385
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
4386
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4387
      # icc doesn't choke on unknown options, it will just issue warnings
 
4388
      # (even with -Werror).  So we grep stderr for any message
 
4389
      # that says an option was ignored.
 
4390
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
4391
        am_cv_CC_dependencies_compiler_type=$depmode
 
4392
        break
 
4393
      fi
 
4394
    fi
 
4395
  done
 
4396
 
 
4397
  cd ..
 
4398
  rm -rf conftest.dir
 
4399
else
 
4400
  am_cv_CC_dependencies_compiler_type=none
 
4401
fi
 
4402
 
 
4403
fi
 
4404
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4405
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
4406
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4407
 
 
4408
 
 
4409
 
 
4410
if
 
4411
  test "x$enable_dependency_tracking" != xno \
 
4412
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4413
  am__fastdepCC_TRUE=
 
4414
  am__fastdepCC_FALSE='#'
 
4415
else
 
4416
  am__fastdepCC_TRUE='#'
 
4417
  am__fastdepCC_FALSE=
 
4418
fi
 
4419
 
 
4420
 
 
4421
 
 
4422
 
 
4423
# Check whether --enable-static or --disable-static was given.
 
4424
if test "${enable_static+set}" = set; then
 
4425
  enableval="$enable_static"
 
4426
  p=${PACKAGE-default}
 
4427
case $enableval in
 
4428
yes) enable_static=yes ;;
 
4429
no) enable_static=no ;;
 
4430
*)
 
4431
  enable_static=no
 
4432
  # Look at the argument we got.  We use all the common list separators.
 
4433
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
4434
  for pkg in $enableval; do
 
4435
    if test "X$pkg" = "X$p"; then
 
4436
      enable_static=yes
 
4437
    fi
 
4438
  done
 
4439
  IFS="$ac_save_ifs"
 
4440
  ;;
 
4441
esac
 
4442
else
 
4443
  enable_static=no
 
4444
fi;
 
4445
 
 
4446
# Check whether --enable-shared or --disable-shared was given.
 
4447
if test "${enable_shared+set}" = set; then
 
4448
  enableval="$enable_shared"
 
4449
  p=${PACKAGE-default}
 
4450
case $enableval in
 
4451
yes) enable_shared=yes ;;
 
4452
no) enable_shared=no ;;
 
4453
*)
 
4454
  enable_shared=no
 
4455
  # Look at the argument we got.  We use all the common list separators.
 
4456
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
4457
  for pkg in $enableval; do
 
4458
    if test "X$pkg" = "X$p"; then
 
4459
      enable_shared=yes
 
4460
    fi
 
4461
  done
 
4462
  IFS="$ac_save_ifs"
 
4463
  ;;
 
4464
esac
 
4465
else
 
4466
  enable_shared=yes
 
4467
fi;
 
4468
# Check whether --enable-fast-install or --disable-fast-install was given.
 
4469
if test "${enable_fast_install+set}" = set; then
 
4470
  enableval="$enable_fast_install"
 
4471
  p=${PACKAGE-default}
 
4472
case $enableval in
 
4473
yes) enable_fast_install=yes ;;
 
4474
no) enable_fast_install=no ;;
 
4475
*)
 
4476
  enable_fast_install=no
 
4477
  # Look at the argument we got.  We use all the common list separators.
 
4478
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
4479
  for pkg in $enableval; do
 
4480
    if test "X$pkg" = "X$p"; then
 
4481
      enable_fast_install=yes
 
4482
    fi
 
4483
  done
 
4484
  IFS="$ac_save_ifs"
 
4485
  ;;
 
4486
esac
 
4487
else
 
4488
  enable_fast_install=yes
 
4489
fi;
 
4490
# Make sure we can run config.sub.
 
4491
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
4492
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
4493
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
4494
   { (exit 1); exit 1; }; }
 
4495
 
 
4496
echo "$as_me:$LINENO: checking build system type" >&5
 
4497
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
4498
if test "${ac_cv_build+set}" = set; then
 
4499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4500
else
 
4501
  ac_cv_build_alias=$build_alias
 
4502
test -z "$ac_cv_build_alias" &&
 
4503
  ac_cv_build_alias=`$ac_config_guess`
 
4504
test -z "$ac_cv_build_alias" &&
 
4505
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
4506
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
4507
   { (exit 1); exit 1; }; }
 
4508
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
4509
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
4510
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
4511
   { (exit 1); exit 1; }; }
 
4512
 
 
4513
fi
 
4514
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
4515
echo "${ECHO_T}$ac_cv_build" >&6
 
4516
build=$ac_cv_build
 
4517
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
4518
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
4519
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
4520
 
 
4521
 
 
4522
echo "$as_me:$LINENO: checking host system type" >&5
 
4523
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
4524
if test "${ac_cv_host+set}" = set; then
 
4525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4526
else
 
4527
  ac_cv_host_alias=$host_alias
 
4528
test -z "$ac_cv_host_alias" &&
 
4529
  ac_cv_host_alias=$ac_cv_build_alias
 
4530
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
4531
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
4532
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
4533
   { (exit 1); exit 1; }; }
 
4534
 
 
4535
fi
 
4536
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
4537
echo "${ECHO_T}$ac_cv_host" >&6
 
4538
host=$ac_cv_host
 
4539
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
4540
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
4541
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
4542
 
 
4543
 
 
4544
# Find the correct PATH separator.  Usually this is `:', but
 
4545
# DJGPP uses `;' like DOS.
 
4546
if test "X${PATH_SEPARATOR+set}" != Xset; then
 
4547
  UNAME=${UNAME-`uname 2>/dev/null`}
 
4548
  case X$UNAME in
 
4549
    *-DOS) lt_cv_sys_path_separator=';' ;;
 
4550
    *)     lt_cv_sys_path_separator=':' ;;
 
4551
  esac
 
4552
  PATH_SEPARATOR=$lt_cv_sys_path_separator
 
4553
fi
 
4554
 
 
4555
 
 
4556
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
4557
if test "${with_gnu_ld+set}" = set; then
 
4558
  withval="$with_gnu_ld"
 
4559
  test "$withval" = no || with_gnu_ld=yes
 
4560
else
 
4561
  with_gnu_ld=no
 
4562
fi;
 
4563
ac_prog=ld
 
4564
if test "$GCC" = yes; then
 
4565
  # Check if gcc -print-prog-name=ld gives a path.
 
4566
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
4567
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
4568
  case $host in
 
4569
  *-*-mingw*)
 
4570
    # gcc leaves a trailing carriage return which upsets mingw
 
4571
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4572
  *)
 
4573
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4574
  esac
 
4575
  case $ac_prog in
 
4576
    # Accept absolute paths.
 
4577
    [\\/]* | [A-Za-z]:[\\/]*)
 
4578
      re_direlt='/[^/][^/]*/\.\./'
 
4579
      # Canonicalize the path of ld
 
4580
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
4581
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4582
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
4583
      done
 
4584
      test -z "$LD" && LD="$ac_prog"
 
4585
      ;;
 
4586
  "")
 
4587
    # If it fails, then pretend we aren't using GCC.
 
4588
    ac_prog=ld
 
4589
    ;;
 
4590
  *)
 
4591
    # If it is relative, then search for the first ld in PATH.
 
4592
    with_gnu_ld=unknown
 
4593
    ;;
 
4594
  esac
 
4595
elif test "$with_gnu_ld" = yes; then
 
4596
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4597
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
4598
else
 
4599
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4600
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
4601
fi
 
4602
if test "${lt_cv_path_LD+set}" = set; then
 
4603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4604
else
 
4605
  if test -z "$LD"; then
 
4606
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4607
  for ac_dir in $PATH; do
 
4608
    test -z "$ac_dir" && ac_dir=.
 
4609
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4610
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4611
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4612
      # but apparently some GNU ld's only accept -v.
 
4613
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4614
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
4615
        test "$with_gnu_ld" != no && break
 
4616
      else
 
4617
        test "$with_gnu_ld" != yes && break
 
4618
      fi
 
4619
    fi
 
4620
  done
 
4621
  IFS="$ac_save_ifs"
 
4622
else
 
4623
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4624
fi
 
4625
fi
 
4626
 
 
4627
LD="$lt_cv_path_LD"
 
4628
if test -n "$LD"; then
 
4629
  echo "$as_me:$LINENO: result: $LD" >&5
 
4630
echo "${ECHO_T}$LD" >&6
 
4631
else
 
4632
  echo "$as_me:$LINENO: result: no" >&5
 
4633
echo "${ECHO_T}no" >&6
 
4634
fi
 
4635
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4636
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4637
   { (exit 1); exit 1; }; }
 
4638
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4639
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
4640
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4641
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4642
else
 
4643
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4644
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
4645
  lt_cv_prog_gnu_ld=yes
 
4646
else
 
4647
  lt_cv_prog_gnu_ld=no
 
4648
fi
 
4649
fi
 
4650
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4651
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
4652
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4653
 
 
4654
 
 
4655
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4656
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
4657
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4658
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4659
else
 
4660
  lt_cv_ld_reload_flag='-r'
 
4661
fi
 
4662
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4663
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
4664
reload_flag=$lt_cv_ld_reload_flag
 
4665
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
4666
 
 
4667
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4668
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
4669
if test "${lt_cv_path_NM+set}" = set; then
 
4670
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4671
else
 
4672
  if test -n "$NM"; then
 
4673
  # Let the user override the test.
 
4674
  lt_cv_path_NM="$NM"
 
4675
else
 
4676
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4677
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
4678
    test -z "$ac_dir" && ac_dir=.
 
4679
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
 
4680
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
4681
      # Check to see if the nm accepts a BSD-compat flag.
 
4682
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4683
      #   nm: unknown option "B" ignored
 
4684
      # Tru64's nm complains that /dev/null is an invalid object file
 
4685
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
4686
        lt_cv_path_NM="$tmp_nm -B"
 
4687
        break
 
4688
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 
4689
        lt_cv_path_NM="$tmp_nm -p"
 
4690
        break
 
4691
      else
 
4692
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4693
        continue # so that we can try to find one that supports BSD flags
 
4694
      fi
 
4695
    fi
 
4696
  done
 
4697
  IFS="$ac_save_ifs"
 
4698
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4699
fi
 
4700
fi
 
4701
 
 
4702
NM="$lt_cv_path_NM"
 
4703
echo "$as_me:$LINENO: result: $NM" >&5
 
4704
echo "${ECHO_T}$NM" >&6
 
4705
 
 
4706
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4707
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
4708
if test "${lt_cv_path_SED+set}" = set; then
 
4709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4710
else
 
4711
  # Loop through the user's path and test for sed and gsed.
 
4712
# Then use that list of sed's as ones to test for truncation.
 
4713
as_executable_p="test -f"
 
4714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4715
for as_dir in $PATH
 
4716
do
 
4717
  IFS=$as_save_IFS
 
4718
  test -z "$as_dir" && as_dir=.
 
4719
  for ac_prog in sed gsed; do
 
4720
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4721
      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
4722
        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
 
4723
      fi
 
4724
    done
 
4725
  done
 
4726
done
 
4727
 
 
4728
  # Create a temporary directory, and hook for its removal unless debugging.
 
4729
$debug ||
 
4730
{
 
4731
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
4732
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
4733
}
 
4734
 
 
4735
# Create a (secure) tmp directory for tmp files.
 
4736
: ${TMPDIR=/tmp}
 
4737
{
 
4738
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
 
4739
  test -n "$tmp" && test -d "$tmp"
 
4740
}  ||
 
4741
{
 
4742
  tmp=$TMPDIR/sed$$-$RANDOM
 
4743
  (umask 077 && mkdir $tmp)
 
4744
} ||
 
4745
{
 
4746
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
4747
   { (exit 1); exit 1; }
 
4748
}
 
4749
  _max=0
 
4750
  _count=0
 
4751
  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4752
  # along with /bin/sed that truncates output.
 
4753
  for _sed in $_sed_list /usr/xpg4/bin/sed; do
 
4754
    test ! -f ${_sed} && break
 
4755
    cat /dev/null > "$tmp/sed.in"
 
4756
    _count=0
 
4757
    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
 
4758
    # Check for GNU sed and select it if it is found.
 
4759
    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
 
4760
      lt_cv_path_SED=${_sed}
 
4761
      break
 
4762
    fi
 
4763
    while true; do
 
4764
      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
 
4765
      mv "$tmp/sed.tmp" "$tmp/sed.in"
 
4766
      cp "$tmp/sed.in" "$tmp/sed.nl"
 
4767
      echo >>"$tmp/sed.nl"
 
4768
      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
 
4769
      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
 
4770
      # 40000 chars as input seems more than enough
 
4771
      test $_count -gt 10 && break
 
4772
      _count=`expr $_count + 1`
 
4773
      if test $_count -gt $_max; then
 
4774
        _max=$_count
 
4775
        lt_cv_path_SED=$_sed
 
4776
      fi
 
4777
    done
 
4778
  done
 
4779
  rm -rf "$tmp"
 
4780
 
 
4781
fi
 
4782
 
 
4783
if test "X$SED" != "X"; then
 
4784
  lt_cv_path_SED=$SED
 
4785
else
 
4786
  SED=$lt_cv_path_SED
 
4787
fi
 
4788
echo "$as_me:$LINENO: result: $SED" >&5
 
4789
echo "${ECHO_T}$SED" >&6
 
4790
 
 
4791
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4792
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
4793
LN_S=$as_ln_s
 
4794
if test "$LN_S" = "ln -s"; then
 
4795
  echo "$as_me:$LINENO: result: yes" >&5
 
4796
echo "${ECHO_T}yes" >&6
 
4797
else
 
4798
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4799
echo "${ECHO_T}no, using $LN_S" >&6
 
4800
fi
 
4801
 
 
4802
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4803
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
4804
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4805
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4806
else
 
4807
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4808
lt_cv_file_magic_test_file=
 
4809
lt_cv_deplibs_check_method='unknown'
 
4810
# Need to set the preceding variable on all platforms that support
 
4811
# interlibrary dependencies.
 
4812
# 'none' -- dependencies not supported.
 
4813
# `unknown' -- same as none, but documents that we really don't know.
 
4814
# 'pass_all' -- all dependencies passed with no checks.
 
4815
# 'test_compile' -- check by making test program.
 
4816
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4817
# which responds to the $file_magic_cmd with a given egrep regex.
 
4818
# If you have `file' or equivalent on your system and you're not sure
 
4819
# whether `pass_all' will *always* work, you probably want this one.
 
4820
 
 
4821
case $host_os in
 
4822
aix4* | aix5*)
 
4823
  lt_cv_deplibs_check_method=pass_all
 
4824
  ;;
 
4825
 
 
4826
beos*)
 
4827
  lt_cv_deplibs_check_method=pass_all
 
4828
  ;;
 
4829
 
 
4830
bsdi4*)
 
4831
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4832
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4833
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4834
  ;;
 
4835
 
 
4836
cygwin* | mingw* | pw32*)
 
4837
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4838
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4839
  ;;
 
4840
 
 
4841
darwin* | rhapsody*)
 
4842
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
4843
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4844
  case "$host_os" in
 
4845
  rhapsody* | darwin1.[012])
 
4846
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
 
4847
    ;;
 
4848
  *) # Darwin 1.3 on
 
4849
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 
4850
    ;;
 
4851
  esac
 
4852
  ;;
 
4853
 
 
4854
freebsd*)
 
4855
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4856
    case $host_cpu in
 
4857
    i*86 )
 
4858
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4859
      # Let's accept both of them until this is cleared up.
 
4860
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
4861
      lt_cv_file_magic_cmd=/usr/bin/file
 
4862
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4863
      ;;
 
4864
    esac
 
4865
  else
 
4866
    lt_cv_deplibs_check_method=pass_all
 
4867
  fi
 
4868
  ;;
 
4869
 
 
4870
gnu*)
 
4871
  lt_cv_deplibs_check_method=pass_all
 
4872
  ;;
 
4873
 
 
4874
hpux10.20*|hpux11*)
 
4875
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4876
  lt_cv_file_magic_cmd=/usr/bin/file
 
4877
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4878
  ;;
 
4879
 
 
4880
irix5* | irix6* | nonstopux*)
 
4881
  case $host_os in
 
4882
  irix5* | nonstopux*)
 
4883
    # this will be overridden with pass_all, but let us keep it just in case
 
4884
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
4885
    ;;
 
4886
  *)
 
4887
    case $LD in
 
4888
    *-32|*"-32 ") libmagic=32-bit;;
 
4889
    *-n32|*"-n32 ") libmagic=N32;;
 
4890
    *-64|*"-64 ") libmagic=64-bit;;
 
4891
    *) libmagic=never-match;;
 
4892
    esac
 
4893
    # this will be overridden with pass_all, but let us keep it just in case
 
4894
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
4895
    ;;
 
4896
  esac
 
4897
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
4898
  lt_cv_deplibs_check_method=pass_all
 
4899
  ;;
 
4900
 
 
4901
# This must be Linux ELF.
 
4902
linux-gnu*)
 
4903
  case $host_cpu in
 
4904
  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
 
4905
    lt_cv_deplibs_check_method=pass_all ;;
 
4906
  *)
 
4907
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
4908
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
4909
  esac
 
4910
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
4911
  ;;
 
4912
 
 
4913
netbsd*)
 
4914
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4915
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
4916
  else
 
4917
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
4918
  fi
 
4919
  ;;
 
4920
 
 
4921
newos6*)
 
4922
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4923
  lt_cv_file_magic_cmd=/usr/bin/file
 
4924
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4925
  ;;
 
4926
 
 
4927
openbsd*)
 
4928
  lt_cv_file_magic_cmd=/usr/bin/file
 
4929
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4930
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4931
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
4932
  else
 
4933
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
4934
  fi
 
4935
  ;;
 
4936
 
 
4937
osf3* | osf4* | osf5*)
 
4938
  # this will be overridden with pass_all, but let us keep it just in case
 
4939
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
4940
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4941
  lt_cv_deplibs_check_method=pass_all
 
4942
  ;;
 
4943
 
 
4944
sco3.2v5*)
 
4945
  lt_cv_deplibs_check_method=pass_all
 
4946
  ;;
 
4947
 
 
4948
solaris*)
 
4949
  lt_cv_deplibs_check_method=pass_all
 
4950
  lt_cv_file_magic_test_file=/lib/libc.so
 
4951
  ;;
 
4952
 
 
4953
sysv5uw[78]* | sysv4*uw2*)
 
4954
  lt_cv_deplibs_check_method=pass_all
 
4955
  ;;
 
4956
 
 
4957
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4958
  case $host_vendor in
 
4959
  motorola)
 
4960
    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]'
 
4961
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4962
    ;;
 
4963
  ncr)
 
4964
    lt_cv_deplibs_check_method=pass_all
 
4965
    ;;
 
4966
  sequent)
 
4967
    lt_cv_file_magic_cmd='/bin/file'
 
4968
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4969
    ;;
 
4970
  sni)
 
4971
    lt_cv_file_magic_cmd='/bin/file'
 
4972
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4973
    lt_cv_file_magic_test_file=/lib/libc.so
 
4974
    ;;
 
4975
  siemens)
 
4976
    lt_cv_deplibs_check_method=pass_all
 
4977
    ;;
 
4978
  esac
 
4979
  ;;
 
4980
esac
 
4981
 
 
4982
fi
 
4983
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4984
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
4985
file_magic_cmd=$lt_cv_file_magic_cmd
 
4986
deplibs_check_method=$lt_cv_deplibs_check_method
 
4987
 
 
4988
 
 
4989
 
 
4990
 
 
4991
 
 
4992
 
 
4993
 
 
4994
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
4995
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
 
4996
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
 
4997
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
4998
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4999
else
 
5000
 
 
5001
# These are sane defaults that work on at least a few old systems.
 
5002
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5003
 
 
5004
# Character class describing NM global symbol codes.
 
5005
symcode='[BCDEGRST]'
 
5006
 
 
5007
# Regexp to match symbols that can be accessed directly from C.
 
5008
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5009
 
 
5010
# Transform the above into a raw symbol and a C symbol.
 
5011
symxfrm='\1 \2\3 \3'
 
5012
 
 
5013
# Transform an extracted symbol line into a proper C declaration
 
5014
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
5015
 
 
5016
# Transform an extracted symbol line into symbol name and symbol address
 
5017
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5018
 
 
5019
# Define system-specific variables.
 
5020
case $host_os in
 
5021
aix*)
 
5022
  symcode='[BCDT]'
 
5023
  ;;
 
5024
cygwin* | mingw* | pw32*)
 
5025
  symcode='[ABCDGISTW]'
 
5026
  ;;
 
5027
hpux*) # Its linker distinguishes data from code symbols
 
5028
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5029
  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
5030
  ;;
 
5031
irix* | nonstopux*)
 
5032
  symcode='[BCDEGRST]'
 
5033
  ;;
 
5034
osf*)
 
5035
  symcode='[BCDEGQRST]'
 
5036
  ;;
 
5037
solaris* | sysv5*)
 
5038
  symcode='[BDT]'
 
5039
  ;;
 
5040
sysv4)
 
5041
  symcode='[DFNSTU]'
 
5042
  ;;
 
5043
esac
 
5044
 
 
5045
# Handle CRLF in mingw tool chain
 
5046
opt_cr=
 
5047
case $host_os in
 
5048
mingw*)
 
5049
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5050
  ;;
 
5051
esac
 
5052
 
 
5053
# If we're using GNU nm, then use its standard symbol codes.
 
5054
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
 
5055
  symcode='[ABCDGISTW]'
 
5056
fi
 
5057
 
 
5058
# Try without a prefix undercore, then with it.
 
5059
for ac_symprfx in "" "_"; do
 
5060
 
 
5061
  # Write the raw and C identifiers.
 
5062
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
5063
 
 
5064
  # Check to see that the pipe works correctly.
 
5065
  pipe_works=no
 
5066
  rm -f conftest*
 
5067
  cat > conftest.$ac_ext <<EOF
 
5068
#ifdef __cplusplus
 
5069
extern "C" {
 
5070
#endif
 
5071
char nm_test_var;
 
5072
void nm_test_func(){}
 
5073
#ifdef __cplusplus
 
5074
}
 
5075
#endif
 
5076
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5077
EOF
 
5078
 
 
5079
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5080
  (eval $ac_compile) 2>&5
 
5081
  ac_status=$?
 
5082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5083
  (exit $ac_status); }; then
 
5084
    # Now try to grab the symbols.
 
5085
    nlist=conftest.nm
 
5086
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5087
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5088
  ac_status=$?
 
5089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5090
  (exit $ac_status); } && test -s "$nlist"; then
 
5091
      # Try sorting and uniquifying the output.
 
5092
      if sort "$nlist" | uniq > "$nlist"T; then
 
5093
        mv -f "$nlist"T "$nlist"
 
5094
      else
 
5095
        rm -f "$nlist"T
 
5096
      fi
 
5097
 
 
5098
      # Make sure that we snagged all the symbols we need.
 
5099
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
 
5100
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
5101
          cat <<EOF > conftest.$ac_ext
 
5102
#ifdef __cplusplus
 
5103
extern "C" {
 
5104
#endif
 
5105
 
 
5106
EOF
 
5107
          # Now generate the symbol file.
 
5108
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
5109
 
 
5110
          cat <<EOF >> conftest.$ac_ext
 
5111
#if defined (__STDC__) && __STDC__
 
5112
# define lt_ptr void *
 
5113
#else
 
5114
# define lt_ptr char *
 
5115
# define const
 
5116
#endif
 
5117
 
 
5118
/* The mapping between symbol names and symbols. */
 
5119
const struct {
 
5120
  const char *name;
 
5121
  lt_ptr address;
 
5122
}
 
5123
lt_preloaded_symbols[] =
 
5124
{
 
5125
EOF
 
5126
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
5127
          cat <<\EOF >> conftest.$ac_ext
 
5128
  {0, (lt_ptr) 0}
 
5129
};
 
5130
 
 
5131
#ifdef __cplusplus
 
5132
}
 
5133
#endif
 
5134
EOF
 
5135
          # Now try linking the two files.
 
5136
          mv conftest.$ac_objext conftstm.$ac_objext
 
5137
          save_LIBS="$LIBS"
 
5138
          save_CFLAGS="$CFLAGS"
 
5139
          LIBS="conftstm.$ac_objext"
 
5140
          CFLAGS="$CFLAGS$no_builtin_flag"
 
5141
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5142
  (eval $ac_link) 2>&5
 
5143
  ac_status=$?
 
5144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5145
  (exit $ac_status); } && test -s conftest$ac_exeext; then
 
5146
            pipe_works=yes
 
5147
          fi
 
5148
          LIBS="$save_LIBS"
 
5149
          CFLAGS="$save_CFLAGS"
 
5150
        else
 
5151
          echo "cannot find nm_test_func in $nlist" >&5
 
5152
        fi
 
5153
      else
 
5154
        echo "cannot find nm_test_var in $nlist" >&5
 
5155
      fi
 
5156
    else
 
5157
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5158
    fi
 
5159
  else
 
5160
    echo "$progname: failed program was:" >&5
 
5161
    cat conftest.$ac_ext >&5
 
5162
  fi
 
5163
  rm -f conftest* conftst*
 
5164
 
 
5165
  # Do not use the global_symbol_pipe unless it works.
 
5166
  if test "$pipe_works" = yes; then
 
5167
    break
 
5168
  else
 
5169
    lt_cv_sys_global_symbol_pipe=
 
5170
  fi
 
5171
done
 
5172
 
 
5173
fi
 
5174
 
 
5175
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
 
5176
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5177
  global_symbol_to_cdecl=
 
5178
  global_symbol_to_c_name_address=
 
5179
else
 
5180
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
 
5181
  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
 
5182
fi
 
5183
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
 
5184
then
 
5185
  echo "$as_me:$LINENO: result: failed" >&5
 
5186
echo "${ECHO_T}failed" >&6
 
5187
else
 
5188
  echo "$as_me:$LINENO: result: ok" >&5
 
5189
echo "${ECHO_T}ok" >&6
 
5190
fi
 
5191
 
 
5192
ac_ext=c
 
5193
ac_cpp='$CPP $CPPFLAGS'
 
5194
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5195
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5196
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5197
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
5198
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
5199
# On Suns, sometimes $CPP names a directory.
 
5200
if test -n "$CPP" && test -d "$CPP"; then
 
5201
  CPP=
 
5202
fi
 
5203
if test -z "$CPP"; then
 
5204
  if test "${ac_cv_prog_CPP+set}" = set; then
 
5205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5206
else
 
5207
      # Double quotes because CPP needs to be expanded
 
5208
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
5209
    do
 
5210
      ac_preproc_ok=false
 
5211
for ac_c_preproc_warn_flag in '' yes
 
5212
do
 
5213
  # Use a header file that comes with gcc, so configuring glibc
 
5214
  # with a fresh cross-compiler works.
 
5215
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5216
  # <limits.h> exists even on freestanding compilers.
 
5217
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5218
  # not just through cpp. "Syntax error" is here to catch this case.
 
5219
  cat >conftest.$ac_ext <<_ACEOF
 
5220
#line $LINENO "configure"
 
5221
/* confdefs.h.  */
 
5222
_ACEOF
 
5223
cat confdefs.h >>conftest.$ac_ext
 
5224
cat >>conftest.$ac_ext <<_ACEOF
 
5225
/* end confdefs.h.  */
 
5226
#ifdef __STDC__
 
5227
# include <limits.h>
 
5228
#else
 
5229
# include <assert.h>
 
5230
#endif
 
5231
                     Syntax error
 
5232
_ACEOF
 
5233
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5234
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5235
  ac_status=$?
 
5236
  grep -v '^ *+' conftest.er1 >conftest.err
 
5237
  rm -f conftest.er1
 
5238
  cat conftest.err >&5
 
5239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5240
  (exit $ac_status); } >/dev/null; then
 
5241
  if test -s conftest.err; then
 
5242
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5243
  else
 
5244
    ac_cpp_err=
 
5245
  fi
 
5246
else
 
5247
  ac_cpp_err=yes
 
5248
fi
 
5249
if test -z "$ac_cpp_err"; then
 
5250
  :
 
5251
else
 
5252
  echo "$as_me: failed program was:" >&5
 
5253
sed 's/^/| /' conftest.$ac_ext >&5
 
5254
 
 
5255
  # Broken: fails on valid input.
 
5256
continue
 
5257
fi
 
5258
rm -f conftest.err conftest.$ac_ext
 
5259
 
 
5260
  # OK, works on sane cases.  Now check whether non-existent headers
 
5261
  # can be detected and how.
 
5262
  cat >conftest.$ac_ext <<_ACEOF
 
5263
#line $LINENO "configure"
 
5264
/* confdefs.h.  */
 
5265
_ACEOF
 
5266
cat confdefs.h >>conftest.$ac_ext
 
5267
cat >>conftest.$ac_ext <<_ACEOF
 
5268
/* end confdefs.h.  */
 
5269
#include <ac_nonexistent.h>
 
5270
_ACEOF
 
5271
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5272
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5273
  ac_status=$?
 
5274
  grep -v '^ *+' conftest.er1 >conftest.err
 
5275
  rm -f conftest.er1
 
5276
  cat conftest.err >&5
 
5277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5278
  (exit $ac_status); } >/dev/null; then
 
5279
  if test -s conftest.err; then
 
5280
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5281
  else
 
5282
    ac_cpp_err=
 
5283
  fi
 
5284
else
 
5285
  ac_cpp_err=yes
 
5286
fi
 
5287
if test -z "$ac_cpp_err"; then
 
5288
  # Broken: success on invalid input.
 
5289
continue
 
5290
else
 
5291
  echo "$as_me: failed program was:" >&5
 
5292
sed 's/^/| /' conftest.$ac_ext >&5
 
5293
 
 
5294
  # Passes both tests.
 
5295
ac_preproc_ok=:
 
5296
break
 
5297
fi
 
5298
rm -f conftest.err conftest.$ac_ext
 
5299
 
 
5300
done
 
5301
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5302
rm -f conftest.err conftest.$ac_ext
 
5303
if $ac_preproc_ok; then
 
5304
  break
 
5305
fi
 
5306
 
 
5307
    done
 
5308
    ac_cv_prog_CPP=$CPP
 
5309
 
 
5310
fi
 
5311
  CPP=$ac_cv_prog_CPP
 
5312
else
 
5313
  ac_cv_prog_CPP=$CPP
 
5314
fi
 
5315
echo "$as_me:$LINENO: result: $CPP" >&5
 
5316
echo "${ECHO_T}$CPP" >&6
 
5317
ac_preproc_ok=false
 
5318
for ac_c_preproc_warn_flag in '' yes
 
5319
do
 
5320
  # Use a header file that comes with gcc, so configuring glibc
 
5321
  # with a fresh cross-compiler works.
 
5322
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5323
  # <limits.h> exists even on freestanding compilers.
 
5324
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5325
  # not just through cpp. "Syntax error" is here to catch this case.
 
5326
  cat >conftest.$ac_ext <<_ACEOF
 
5327
#line $LINENO "configure"
 
5328
/* confdefs.h.  */
 
5329
_ACEOF
 
5330
cat confdefs.h >>conftest.$ac_ext
 
5331
cat >>conftest.$ac_ext <<_ACEOF
 
5332
/* end confdefs.h.  */
 
5333
#ifdef __STDC__
 
5334
# include <limits.h>
 
5335
#else
 
5336
# include <assert.h>
 
5337
#endif
 
5338
                     Syntax error
 
5339
_ACEOF
 
5340
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5341
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5342
  ac_status=$?
 
5343
  grep -v '^ *+' conftest.er1 >conftest.err
 
5344
  rm -f conftest.er1
 
5345
  cat conftest.err >&5
 
5346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5347
  (exit $ac_status); } >/dev/null; then
 
5348
  if test -s conftest.err; then
 
5349
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5350
  else
 
5351
    ac_cpp_err=
 
5352
  fi
 
5353
else
 
5354
  ac_cpp_err=yes
 
5355
fi
 
5356
if test -z "$ac_cpp_err"; then
 
5357
  :
 
5358
else
 
5359
  echo "$as_me: failed program was:" >&5
 
5360
sed 's/^/| /' conftest.$ac_ext >&5
 
5361
 
 
5362
  # Broken: fails on valid input.
 
5363
continue
 
5364
fi
 
5365
rm -f conftest.err conftest.$ac_ext
 
5366
 
 
5367
  # OK, works on sane cases.  Now check whether non-existent headers
 
5368
  # can be detected and how.
 
5369
  cat >conftest.$ac_ext <<_ACEOF
 
5370
#line $LINENO "configure"
 
5371
/* confdefs.h.  */
 
5372
_ACEOF
 
5373
cat confdefs.h >>conftest.$ac_ext
 
5374
cat >>conftest.$ac_ext <<_ACEOF
 
5375
/* end confdefs.h.  */
 
5376
#include <ac_nonexistent.h>
 
5377
_ACEOF
 
5378
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5379
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5380
  ac_status=$?
 
5381
  grep -v '^ *+' conftest.er1 >conftest.err
 
5382
  rm -f conftest.er1
 
5383
  cat conftest.err >&5
 
5384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5385
  (exit $ac_status); } >/dev/null; then
 
5386
  if test -s conftest.err; then
 
5387
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5388
  else
 
5389
    ac_cpp_err=
 
5390
  fi
 
5391
else
 
5392
  ac_cpp_err=yes
 
5393
fi
 
5394
if test -z "$ac_cpp_err"; then
 
5395
  # Broken: success on invalid input.
 
5396
continue
 
5397
else
 
5398
  echo "$as_me: failed program was:" >&5
 
5399
sed 's/^/| /' conftest.$ac_ext >&5
 
5400
 
 
5401
  # Passes both tests.
 
5402
ac_preproc_ok=:
 
5403
break
 
5404
fi
 
5405
rm -f conftest.err conftest.$ac_ext
 
5406
 
 
5407
done
 
5408
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5409
rm -f conftest.err conftest.$ac_ext
 
5410
if $ac_preproc_ok; then
 
5411
  :
 
5412
else
 
5413
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
5414
See \`config.log' for more details." >&5
 
5415
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
5416
See \`config.log' for more details." >&2;}
 
5417
   { (exit 1); exit 1; }; }
 
5418
fi
 
5419
 
 
5420
ac_ext=c
 
5421
ac_cpp='$CPP $CPPFLAGS'
 
5422
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5423
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5424
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5425
 
 
5426
 
 
5427
echo "$as_me:$LINENO: checking for egrep" >&5
 
5428
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
5429
if test "${ac_cv_prog_egrep+set}" = set; then
 
5430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5431
else
 
5432
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
5433
    then ac_cv_prog_egrep='grep -E'
 
5434
    else ac_cv_prog_egrep='egrep'
 
5435
    fi
 
5436
fi
 
5437
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
5438
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
5439
 EGREP=$ac_cv_prog_egrep
 
5440
 
 
5441
 
 
5442
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5443
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
5444
if test "${ac_cv_header_stdc+set}" = set; then
 
5445
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5446
else
 
5447
  cat >conftest.$ac_ext <<_ACEOF
 
5448
#line $LINENO "configure"
 
5449
/* confdefs.h.  */
 
5450
_ACEOF
 
5451
cat confdefs.h >>conftest.$ac_ext
 
5452
cat >>conftest.$ac_ext <<_ACEOF
 
5453
/* end confdefs.h.  */
 
5454
#include <stdlib.h>
 
5455
#include <stdarg.h>
 
5456
#include <string.h>
 
5457
#include <float.h>
 
5458
 
 
5459
int
 
5460
main ()
 
5461
{
 
5462
 
 
5463
  ;
 
5464
  return 0;
 
5465
}
 
5466
_ACEOF
 
5467
rm -f conftest.$ac_objext
 
5468
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5469
  (eval $ac_compile) 2>&5
 
5470
  ac_status=$?
 
5471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5472
  (exit $ac_status); } &&
 
5473
         { ac_try='test -s conftest.$ac_objext'
 
5474
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5475
  (eval $ac_try) 2>&5
 
5476
  ac_status=$?
 
5477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5478
  (exit $ac_status); }; }; then
 
5479
  ac_cv_header_stdc=yes
 
5480
else
 
5481
  echo "$as_me: failed program was:" >&5
 
5482
sed 's/^/| /' conftest.$ac_ext >&5
 
5483
 
 
5484
ac_cv_header_stdc=no
 
5485
fi
 
5486
rm -f conftest.$ac_objext conftest.$ac_ext
 
5487
 
 
5488
if test $ac_cv_header_stdc = yes; then
 
5489
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5490
  cat >conftest.$ac_ext <<_ACEOF
 
5491
#line $LINENO "configure"
 
5492
/* confdefs.h.  */
 
5493
_ACEOF
 
5494
cat confdefs.h >>conftest.$ac_ext
 
5495
cat >>conftest.$ac_ext <<_ACEOF
 
5496
/* end confdefs.h.  */
 
5497
#include <string.h>
 
5498
 
 
5499
_ACEOF
 
5500
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5501
  $EGREP "memchr" >/dev/null 2>&1; then
 
5502
  :
 
5503
else
 
5504
  ac_cv_header_stdc=no
 
5505
fi
 
5506
rm -f conftest*
 
5507
 
 
5508
fi
 
5509
 
 
5510
if test $ac_cv_header_stdc = yes; then
 
5511
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5512
  cat >conftest.$ac_ext <<_ACEOF
 
5513
#line $LINENO "configure"
 
5514
/* confdefs.h.  */
 
5515
_ACEOF
 
5516
cat confdefs.h >>conftest.$ac_ext
 
5517
cat >>conftest.$ac_ext <<_ACEOF
 
5518
/* end confdefs.h.  */
 
5519
#include <stdlib.h>
 
5520
 
 
5521
_ACEOF
 
5522
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5523
  $EGREP "free" >/dev/null 2>&1; then
 
5524
  :
 
5525
else
 
5526
  ac_cv_header_stdc=no
 
5527
fi
 
5528
rm -f conftest*
 
5529
 
 
5530
fi
 
5531
 
 
5532
if test $ac_cv_header_stdc = yes; then
 
5533
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5534
  if test "$cross_compiling" = yes; then
 
5535
  :
 
5536
else
 
5537
  cat >conftest.$ac_ext <<_ACEOF
 
5538
#line $LINENO "configure"
 
5539
/* confdefs.h.  */
 
5540
_ACEOF
 
5541
cat confdefs.h >>conftest.$ac_ext
 
5542
cat >>conftest.$ac_ext <<_ACEOF
 
5543
/* end confdefs.h.  */
 
5544
#include <ctype.h>
 
5545
#if ((' ' & 0x0FF) == 0x020)
 
5546
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5547
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5548
#else
 
5549
# define ISLOWER(c) \
 
5550
                   (('a' <= (c) && (c) <= 'i') \
 
5551
                     || ('j' <= (c) && (c) <= 'r') \
 
5552
                     || ('s' <= (c) && (c) <= 'z'))
 
5553
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5554
#endif
 
5555
 
 
5556
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5557
int
 
5558
main ()
 
5559
{
 
5560
  int i;
 
5561
  for (i = 0; i < 256; i++)
 
5562
    if (XOR (islower (i), ISLOWER (i))
 
5563
        || toupper (i) != TOUPPER (i))
 
5564
      exit(2);
 
5565
  exit (0);
 
5566
}
 
5567
_ACEOF
 
5568
rm -f conftest$ac_exeext
 
5569
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5570
  (eval $ac_link) 2>&5
 
5571
  ac_status=$?
 
5572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5573
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5575
  (eval $ac_try) 2>&5
 
5576
  ac_status=$?
 
5577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5578
  (exit $ac_status); }; }; then
 
5579
  :
 
5580
else
 
5581
  echo "$as_me: program exited with status $ac_status" >&5
 
5582
echo "$as_me: failed program was:" >&5
 
5583
sed 's/^/| /' conftest.$ac_ext >&5
 
5584
 
 
5585
( exit $ac_status )
 
5586
ac_cv_header_stdc=no
 
5587
fi
 
5588
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5589
fi
 
5590
fi
 
5591
fi
 
5592
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5593
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
5594
if test $ac_cv_header_stdc = yes; then
 
5595
 
 
5596
cat >>confdefs.h <<\_ACEOF
 
5597
#define STDC_HEADERS 1
 
5598
_ACEOF
 
5599
 
 
5600
fi
 
5601
 
 
5602
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5603
 
 
5604
 
 
5605
 
 
5606
 
 
5607
 
 
5608
 
 
5609
 
 
5610
 
 
5611
 
 
5612
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5613
                  inttypes.h stdint.h unistd.h
 
5614
do
 
5615
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5616
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5617
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5618
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5619
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5620
else
 
5621
  cat >conftest.$ac_ext <<_ACEOF
 
5622
#line $LINENO "configure"
 
5623
/* confdefs.h.  */
 
5624
_ACEOF
 
5625
cat confdefs.h >>conftest.$ac_ext
 
5626
cat >>conftest.$ac_ext <<_ACEOF
 
5627
/* end confdefs.h.  */
 
5628
$ac_includes_default
 
5629
 
 
5630
#include <$ac_header>
 
5631
_ACEOF
 
5632
rm -f conftest.$ac_objext
 
5633
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5634
  (eval $ac_compile) 2>&5
 
5635
  ac_status=$?
 
5636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5637
  (exit $ac_status); } &&
 
5638
         { ac_try='test -s conftest.$ac_objext'
 
5639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5640
  (eval $ac_try) 2>&5
 
5641
  ac_status=$?
 
5642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5643
  (exit $ac_status); }; }; then
 
5644
  eval "$as_ac_Header=yes"
 
5645
else
 
5646
  echo "$as_me: failed program was:" >&5
 
5647
sed 's/^/| /' conftest.$ac_ext >&5
 
5648
 
 
5649
eval "$as_ac_Header=no"
 
5650
fi
 
5651
rm -f conftest.$ac_objext conftest.$ac_ext
 
5652
fi
 
5653
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5654
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5655
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5656
  cat >>confdefs.h <<_ACEOF
 
5657
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5658
_ACEOF
 
5659
 
 
5660
fi
 
5661
 
 
5662
done
 
5663
 
 
5664
 
 
5665
 
 
5666
for ac_header in dlfcn.h
 
5667
do
 
5668
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5669
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5670
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5671
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5672
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5674
fi
 
5675
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5676
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5677
else
 
5678
  # Is the header compilable?
 
5679
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5680
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5681
cat >conftest.$ac_ext <<_ACEOF
 
5682
#line $LINENO "configure"
 
5683
/* confdefs.h.  */
 
5684
_ACEOF
 
5685
cat confdefs.h >>conftest.$ac_ext
 
5686
cat >>conftest.$ac_ext <<_ACEOF
 
5687
/* end confdefs.h.  */
 
5688
$ac_includes_default
 
5689
#include <$ac_header>
 
5690
_ACEOF
 
5691
rm -f conftest.$ac_objext
 
5692
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5693
  (eval $ac_compile) 2>&5
 
5694
  ac_status=$?
 
5695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5696
  (exit $ac_status); } &&
 
5697
         { ac_try='test -s conftest.$ac_objext'
 
5698
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5699
  (eval $ac_try) 2>&5
 
5700
  ac_status=$?
 
5701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5702
  (exit $ac_status); }; }; then
 
5703
  ac_header_compiler=yes
 
5704
else
 
5705
  echo "$as_me: failed program was:" >&5
 
5706
sed 's/^/| /' conftest.$ac_ext >&5
 
5707
 
 
5708
ac_header_compiler=no
 
5709
fi
 
5710
rm -f conftest.$ac_objext conftest.$ac_ext
 
5711
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5712
echo "${ECHO_T}$ac_header_compiler" >&6
 
5713
 
 
5714
# Is the header present?
 
5715
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5716
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5717
cat >conftest.$ac_ext <<_ACEOF
 
5718
#line $LINENO "configure"
 
5719
/* confdefs.h.  */
 
5720
_ACEOF
 
5721
cat confdefs.h >>conftest.$ac_ext
 
5722
cat >>conftest.$ac_ext <<_ACEOF
 
5723
/* end confdefs.h.  */
 
5724
#include <$ac_header>
 
5725
_ACEOF
 
5726
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5727
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5728
  ac_status=$?
 
5729
  grep -v '^ *+' conftest.er1 >conftest.err
 
5730
  rm -f conftest.er1
 
5731
  cat conftest.err >&5
 
5732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5733
  (exit $ac_status); } >/dev/null; then
 
5734
  if test -s conftest.err; then
 
5735
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5736
  else
 
5737
    ac_cpp_err=
 
5738
  fi
 
5739
else
 
5740
  ac_cpp_err=yes
 
5741
fi
 
5742
if test -z "$ac_cpp_err"; then
 
5743
  ac_header_preproc=yes
 
5744
else
 
5745
  echo "$as_me: failed program was:" >&5
 
5746
sed 's/^/| /' conftest.$ac_ext >&5
 
5747
 
 
5748
  ac_header_preproc=no
 
5749
fi
 
5750
rm -f conftest.err conftest.$ac_ext
 
5751
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5752
echo "${ECHO_T}$ac_header_preproc" >&6
 
5753
 
 
5754
# So?  What about this header?
 
5755
case $ac_header_compiler:$ac_header_preproc in
 
5756
  yes:no )
 
5757
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5758
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5759
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5760
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5761
    (
 
5762
      cat <<\_ASBOX
 
5763
## ------------------------------------ ##
 
5764
## Report this to bug-autoconf@gnu.org. ##
 
5765
## ------------------------------------ ##
 
5766
_ASBOX
 
5767
    ) |
 
5768
      sed "s/^/$as_me: WARNING:     /" >&2
 
5769
    ;;
 
5770
  no:yes )
 
5771
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5772
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5773
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
5774
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
5775
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5776
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5777
    (
 
5778
      cat <<\_ASBOX
 
5779
## ------------------------------------ ##
 
5780
## Report this to bug-autoconf@gnu.org. ##
 
5781
## ------------------------------------ ##
 
5782
_ASBOX
 
5783
    ) |
 
5784
      sed "s/^/$as_me: WARNING:     /" >&2
 
5785
    ;;
 
5786
esac
 
5787
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5788
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5789
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5790
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5791
else
 
5792
  eval "$as_ac_Header=$ac_header_preproc"
 
5793
fi
 
5794
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5795
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5796
 
 
5797
fi
 
5798
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5799
  cat >>confdefs.h <<_ACEOF
 
5800
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5801
_ACEOF
 
5802
 
 
5803
fi
 
5804
 
 
5805
done
 
5806
 
 
5807
 
 
5808
 
 
5809
 
 
5810
 
 
5811
 
 
5812
# Only perform the check for file, if the check method requires it
 
5813
case $deplibs_check_method in
 
5814
file_magic*)
 
5815
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
5816
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
5817
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
5818
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5819
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5820
else
 
5821
  case $MAGIC_CMD in
 
5822
  /*)
 
5823
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5824
  ;;
 
5825
  ?:/*)
 
5826
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
5827
  ;;
 
5828
  *)
 
5829
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
5830
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
5831
  ac_dummy="/usr/bin:$PATH"
 
5832
  for ac_dir in $ac_dummy; do
 
5833
    test -z "$ac_dir" && ac_dir=.
 
5834
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
5835
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
5836
      if test -n "$file_magic_test_file"; then
 
5837
        case $deplibs_check_method in
 
5838
        "file_magic "*)
 
5839
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5840
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5841
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5842
            egrep "$file_magic_regex" > /dev/null; then
 
5843
            :
 
5844
          else
 
5845
            cat <<EOF 1>&2
 
5846
 
 
5847
*** Warning: the command libtool uses to detect shared libraries,
 
5848
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5849
*** The result is that libtool may fail to recognize shared libraries
 
5850
*** as such.  This will affect the creation of libtool libraries that
 
5851
*** depend on shared libraries, but programs linked with such libtool
 
5852
*** libraries will work regardless of this problem.  Nevertheless, you
 
5853
*** may want to report the problem to your system manager and/or to
 
5854
*** bug-libtool@gnu.org
 
5855
 
 
5856
EOF
 
5857
          fi ;;
 
5858
        esac
 
5859
      fi
 
5860
      break
 
5861
    fi
 
5862
  done
 
5863
  IFS="$ac_save_ifs"
 
5864
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
5865
  ;;
 
5866
esac
 
5867
fi
 
5868
 
 
5869
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5870
if test -n "$MAGIC_CMD"; then
 
5871
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5872
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5873
else
 
5874
  echo "$as_me:$LINENO: result: no" >&5
 
5875
echo "${ECHO_T}no" >&6
 
5876
fi
 
5877
 
 
5878
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
5879
  if test -n "$ac_tool_prefix"; then
 
5880
    echo "$as_me:$LINENO: checking for file" >&5
 
5881
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
5882
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
5883
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5884
else
 
5885
  case $MAGIC_CMD in
 
5886
  /*)
 
5887
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
5888
  ;;
 
5889
  ?:/*)
 
5890
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
5891
  ;;
 
5892
  *)
 
5893
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
5894
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
5895
  ac_dummy="/usr/bin:$PATH"
 
5896
  for ac_dir in $ac_dummy; do
 
5897
    test -z "$ac_dir" && ac_dir=.
 
5898
    if test -f $ac_dir/file; then
 
5899
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
5900
      if test -n "$file_magic_test_file"; then
 
5901
        case $deplibs_check_method in
 
5902
        "file_magic "*)
 
5903
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
5904
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5905
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
5906
            egrep "$file_magic_regex" > /dev/null; then
 
5907
            :
 
5908
          else
 
5909
            cat <<EOF 1>&2
 
5910
 
 
5911
*** Warning: the command libtool uses to detect shared libraries,
 
5912
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
5913
*** The result is that libtool may fail to recognize shared libraries
 
5914
*** as such.  This will affect the creation of libtool libraries that
 
5915
*** depend on shared libraries, but programs linked with such libtool
 
5916
*** libraries will work regardless of this problem.  Nevertheless, you
 
5917
*** may want to report the problem to your system manager and/or to
 
5918
*** bug-libtool@gnu.org
 
5919
 
 
5920
EOF
 
5921
          fi ;;
 
5922
        esac
 
5923
      fi
 
5924
      break
 
5925
    fi
 
5926
  done
 
5927
  IFS="$ac_save_ifs"
 
5928
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
5929
  ;;
 
5930
esac
 
5931
fi
 
5932
 
 
5933
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
5934
if test -n "$MAGIC_CMD"; then
 
5935
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5936
echo "${ECHO_T}$MAGIC_CMD" >&6
 
5937
else
 
5938
  echo "$as_me:$LINENO: result: no" >&5
 
5939
echo "${ECHO_T}no" >&6
 
5940
fi
 
5941
 
 
5942
  else
 
5943
    MAGIC_CMD=:
 
5944
  fi
 
5945
fi
 
5946
 
 
5947
  fi
 
5948
  ;;
 
5949
esac
 
5950
 
 
5951
if test -n "$ac_tool_prefix"; then
 
5952
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5953
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5954
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5955
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5956
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5958
else
 
5959
  if test -n "$RANLIB"; then
 
5960
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5961
else
 
5962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5963
for as_dir in $PATH
 
5964
do
 
5965
  IFS=$as_save_IFS
 
5966
  test -z "$as_dir" && as_dir=.
 
5967
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5968
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5969
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5970
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5971
    break 2
 
5972
  fi
 
5973
done
 
5974
done
 
5975
 
 
5976
fi
 
5977
fi
 
5978
RANLIB=$ac_cv_prog_RANLIB
 
5979
if test -n "$RANLIB"; then
 
5980
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5981
echo "${ECHO_T}$RANLIB" >&6
 
5982
else
 
5983
  echo "$as_me:$LINENO: result: no" >&5
 
5984
echo "${ECHO_T}no" >&6
 
5985
fi
 
5986
 
 
5987
fi
 
5988
if test -z "$ac_cv_prog_RANLIB"; then
 
5989
  ac_ct_RANLIB=$RANLIB
 
5990
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5991
set dummy ranlib; ac_word=$2
 
5992
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5993
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5994
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5995
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5996
else
 
5997
  if test -n "$ac_ct_RANLIB"; then
 
5998
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5999
else
 
6000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6001
for as_dir in $PATH
 
6002
do
 
6003
  IFS=$as_save_IFS
 
6004
  test -z "$as_dir" && as_dir=.
 
6005
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6006
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6007
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6008
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6009
    break 2
 
6010
  fi
 
6011
done
 
6012
done
 
6013
 
 
6014
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
6015
fi
 
6016
fi
 
6017
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6018
if test -n "$ac_ct_RANLIB"; then
 
6019
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6020
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6021
else
 
6022
  echo "$as_me:$LINENO: result: no" >&5
 
6023
echo "${ECHO_T}no" >&6
 
6024
fi
 
6025
 
 
6026
  RANLIB=$ac_ct_RANLIB
 
6027
else
 
6028
  RANLIB="$ac_cv_prog_RANLIB"
 
6029
fi
 
6030
 
 
6031
if test -n "$ac_tool_prefix"; then
 
6032
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6033
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6034
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6035
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6036
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6037
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6038
else
 
6039
  if test -n "$STRIP"; then
 
6040
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6041
else
 
6042
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6043
for as_dir in $PATH
 
6044
do
 
6045
  IFS=$as_save_IFS
 
6046
  test -z "$as_dir" && as_dir=.
 
6047
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6048
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6049
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6050
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6051
    break 2
 
6052
  fi
 
6053
done
 
6054
done
 
6055
 
 
6056
fi
 
6057
fi
 
6058
STRIP=$ac_cv_prog_STRIP
 
6059
if test -n "$STRIP"; then
 
6060
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
6061
echo "${ECHO_T}$STRIP" >&6
 
6062
else
 
6063
  echo "$as_me:$LINENO: result: no" >&5
 
6064
echo "${ECHO_T}no" >&6
 
6065
fi
 
6066
 
 
6067
fi
 
6068
if test -z "$ac_cv_prog_STRIP"; then
 
6069
  ac_ct_STRIP=$STRIP
 
6070
  # Extract the first word of "strip", so it can be a program name with args.
 
6071
set dummy strip; ac_word=$2
 
6072
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6073
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6074
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6076
else
 
6077
  if test -n "$ac_ct_STRIP"; then
 
6078
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6079
else
 
6080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6081
for as_dir in $PATH
 
6082
do
 
6083
  IFS=$as_save_IFS
 
6084
  test -z "$as_dir" && as_dir=.
 
6085
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6086
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6087
    ac_cv_prog_ac_ct_STRIP="strip"
 
6088
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6089
    break 2
 
6090
  fi
 
6091
done
 
6092
done
 
6093
 
 
6094
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
6095
fi
 
6096
fi
 
6097
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6098
if test -n "$ac_ct_STRIP"; then
 
6099
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6100
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
6101
else
 
6102
  echo "$as_me:$LINENO: result: no" >&5
 
6103
echo "${ECHO_T}no" >&6
 
6104
fi
 
6105
 
 
6106
  STRIP=$ac_ct_STRIP
 
6107
else
 
6108
  STRIP="$ac_cv_prog_STRIP"
 
6109
fi
 
6110
 
 
6111
 
 
6112
enable_dlopen=no
 
6113
enable_win32_dll=no
 
6114
 
 
6115
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6116
if test "${enable_libtool_lock+set}" = set; then
 
6117
  enableval="$enable_libtool_lock"
 
6118
 
 
6119
fi;
 
6120
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6121
 
 
6122
# Some flags need to be propagated to the compiler or linker for good
 
6123
# libtool support.
 
6124
case $host in
 
6125
*-*-irix6*)
 
6126
  # Find out which ABI we are using.
 
6127
  echo '#line 6127 "configure"' > conftest.$ac_ext
 
6128
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6129
  (eval $ac_compile) 2>&5
 
6130
  ac_status=$?
 
6131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6132
  (exit $ac_status); }; then
 
6133
    case `/usr/bin/file conftest.$ac_objext` in
 
6134
    *32-bit*)
 
6135
      LD="${LD-ld} -32"
 
6136
      ;;
 
6137
    *N32*)
 
6138
      LD="${LD-ld} -n32"
 
6139
      ;;
 
6140
    *64-bit*)
 
6141
      LD="${LD-ld} -64"
 
6142
      ;;
 
6143
    esac
 
6144
  fi
 
6145
  rm -rf conftest*
 
6146
  ;;
 
6147
 
 
6148
*-*-sco3.2v5*)
 
6149
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
6150
  SAVE_CFLAGS="$CFLAGS"
 
6151
  CFLAGS="$CFLAGS -belf"
 
6152
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
6153
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
6154
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
6155
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6156
else
 
6157
 
 
6158
 
 
6159
     ac_ext=c
 
6160
ac_cpp='$CPP $CPPFLAGS'
 
6161
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6162
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6163
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6164
 
 
6165
     cat >conftest.$ac_ext <<_ACEOF
 
6166
#line $LINENO "configure"
 
6167
/* confdefs.h.  */
 
6168
_ACEOF
 
6169
cat confdefs.h >>conftest.$ac_ext
 
6170
cat >>conftest.$ac_ext <<_ACEOF
 
6171
/* end confdefs.h.  */
 
6172
 
 
6173
int
 
6174
main ()
 
6175
{
 
6176
 
 
6177
  ;
 
6178
  return 0;
 
6179
}
 
6180
_ACEOF
 
6181
rm -f conftest.$ac_objext conftest$ac_exeext
 
6182
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6183
  (eval $ac_link) 2>&5
 
6184
  ac_status=$?
 
6185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6186
  (exit $ac_status); } &&
 
6187
         { ac_try='test -s conftest$ac_exeext'
 
6188
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6189
  (eval $ac_try) 2>&5
 
6190
  ac_status=$?
 
6191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6192
  (exit $ac_status); }; }; then
 
6193
  lt_cv_cc_needs_belf=yes
 
6194
else
 
6195
  echo "$as_me: failed program was:" >&5
 
6196
sed 's/^/| /' conftest.$ac_ext >&5
 
6197
 
 
6198
lt_cv_cc_needs_belf=no
 
6199
fi
 
6200
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6201
     ac_ext=c
 
6202
ac_cpp='$CPP $CPPFLAGS'
 
6203
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6204
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6205
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6206
 
 
6207
fi
 
6208
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
6209
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
6210
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6211
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6212
    CFLAGS="$SAVE_CFLAGS"
 
6213
  fi
 
6214
  ;;
 
6215
 
 
6216
 
 
6217
esac
 
6218
 
 
6219
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6220
# metacharacters that are still active within double-quoted strings.
 
6221
Xsed='sed -e s/^X//'
 
6222
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6223
 
 
6224
# Same as above, but do not quote variable references.
 
6225
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6226
 
 
6227
# Sed substitution to delay expansion of an escaped shell variable in a
 
6228
# double_quote_subst'ed string.
 
6229
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6230
 
 
6231
# Constants:
 
6232
rm="rm -f"
 
6233
 
 
6234
# Global variables:
 
6235
default_ofile=libtool
 
6236
can_build_shared=yes
 
6237
 
 
6238
# All known linkers require a `.a' archive for static linking (except M$VC,
 
6239
# which needs '.lib').
 
6240
libext=a
 
6241
ltmain="$ac_aux_dir/ltmain.sh"
 
6242
ofile="$default_ofile"
 
6243
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6244
need_locks="$enable_libtool_lock"
 
6245
 
 
6246
old_CC="$CC"
 
6247
old_CFLAGS="$CFLAGS"
 
6248
 
 
6249
# Set sane defaults for various variables
 
6250
test -z "$AR" && AR=ar
 
6251
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6252
test -z "$AS" && AS=as
 
6253
test -z "$CC" && CC=cc
 
6254
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6255
test -z "$LD" && LD=ld
 
6256
test -z "$LN_S" && LN_S="ln -s"
 
6257
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6258
test -z "$NM" && NM=nm
 
6259
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6260
test -z "$RANLIB" && RANLIB=:
 
6261
test -z "$STRIP" && STRIP=:
 
6262
test -z "$ac_objext" && ac_objext=o
 
6263
 
 
6264
if test x"$host" != x"$build"; then
 
6265
  ac_tool_prefix=${host_alias}-
 
6266
else
 
6267
  ac_tool_prefix=
 
6268
fi
 
6269
 
 
6270
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
 
6271
case $host_os in
 
6272
linux-gnu*) ;;
 
6273
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
 
6274
esac
 
6275
 
 
6276
case $host_os in
 
6277
aix3*)
 
6278
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6279
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6280
  # vanish in a puff of smoke.
 
6281
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6282
    COLLECT_NAMES=
 
6283
    export COLLECT_NAMES
 
6284
  fi
 
6285
  ;;
 
6286
esac
 
6287
 
 
6288
# Determine commands to create old-style static archives.
 
6289
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6290
old_postinstall_cmds='chmod 644 $oldlib'
 
6291
old_postuninstall_cmds=
 
6292
 
 
6293
if test -n "$RANLIB"; then
 
6294
  case $host_os in
 
6295
  openbsd*)
 
6296
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6297
    ;;
 
6298
  *)
 
6299
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6300
    ;;
 
6301
  esac
 
6302
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6303
fi
 
6304
 
 
6305
# Allow CC to be a program name with arguments.
 
6306
set dummy $CC
 
6307
compiler="$2"
 
6308
 
 
6309
echo "$as_me:$LINENO: checking for objdir" >&5
 
6310
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6311
rm -f .libs 2>/dev/null
 
6312
mkdir .libs 2>/dev/null
 
6313
if test -d .libs; then
 
6314
  objdir=.libs
 
6315
else
 
6316
  # MS-DOS does not allow filenames that begin with a dot.
 
6317
  objdir=_libs
 
6318
fi
 
6319
rmdir .libs 2>/dev/null
 
6320
echo "$as_me:$LINENO: result: $objdir" >&5
 
6321
echo "${ECHO_T}$objdir" >&6
 
6322
 
 
6323
 
 
6324
 
 
6325
# Check whether --with-pic or --without-pic was given.
 
6326
if test "${with_pic+set}" = set; then
 
6327
  withval="$with_pic"
 
6328
  pic_mode="$withval"
 
6329
else
 
6330
  pic_mode=default
 
6331
fi;
 
6332
test -z "$pic_mode" && pic_mode=default
 
6333
 
 
6334
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
 
6335
# in isolation, and that seeing it set (from the cache) indicates that
 
6336
# the associated values are set (in the cache) correctly too.
 
6337
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6338
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6339
if test "${lt_cv_prog_cc_pic+set}" = set; then
 
6340
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6341
else
 
6342
   lt_cv_prog_cc_pic=
 
6343
  lt_cv_prog_cc_shlib=
 
6344
  lt_cv_prog_cc_wl=
 
6345
  lt_cv_prog_cc_static=
 
6346
  lt_cv_prog_cc_no_builtin=
 
6347
  lt_cv_prog_cc_can_build_shared=$can_build_shared
 
6348
 
 
6349
  if test "$GCC" = yes; then
 
6350
    lt_cv_prog_cc_wl='-Wl,'
 
6351
    lt_cv_prog_cc_static='-static'
 
6352
 
 
6353
    case $host_os in
 
6354
    aix*)
 
6355
      # Below there is a dirty hack to force normal static linking with -ldl
 
6356
      # The problem is because libdl dynamically linked with both libc and
 
6357
      # libC (AIX C++ library), which obviously doesn't included in libraries
 
6358
      # list by gcc. This cause undefined symbols with -static flags.
 
6359
      # This hack allows C programs to be linked with "-static -ldl", but
 
6360
      # not sure about C++ programs.
 
6361
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
 
6362
      ;;
 
6363
    amigaos*)
 
6364
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6365
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6366
      # like `-m68040'.
 
6367
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
 
6368
      ;;
 
6369
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6370
      # PIC is the default for these OSes.
 
6371
      ;;
 
6372
    darwin* | rhapsody*)
 
6373
      # PIC is the default on this platform
 
6374
      # Common symbols not allowed in MH_DYLIB files
 
6375
      lt_cv_prog_cc_pic='-fno-common'
 
6376
      ;;
 
6377
    cygwin* | mingw* | pw32* | os2*)
 
6378
      # This hack is so that the source file can tell whether it is being
 
6379
      # built for inclusion in a dll (and should export symbols for example).
 
6380
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
6381
      ;;
 
6382
    sysv4*MP*)
 
6383
      if test -d /usr/nec; then
 
6384
         lt_cv_prog_cc_pic=-Kconform_pic
 
6385
      fi
 
6386
      ;;
 
6387
    *)
 
6388
      lt_cv_prog_cc_pic='-fPIC'
 
6389
      ;;
 
6390
    esac
 
6391
  else
 
6392
    # PORTME Check for PIC flags for the system compiler.
 
6393
    case $host_os in
 
6394
    aix3* | aix4* | aix5*)
 
6395
      lt_cv_prog_cc_wl='-Wl,'
 
6396
      # All AIX code is PIC.
 
6397
      if test "$host_cpu" = ia64; then
 
6398
        # AIX 5 now supports IA64 processor
 
6399
        lt_cv_prog_cc_static='-Bstatic'
 
6400
      else
 
6401
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
 
6402
      fi
 
6403
      ;;
 
6404
 
 
6405
    hpux9* | hpux10* | hpux11*)
 
6406
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
 
6407
      lt_cv_prog_cc_wl='-Wl,'
 
6408
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
 
6409
      lt_cv_prog_cc_pic='+Z'
 
6410
      ;;
 
6411
 
 
6412
    irix5* | irix6* | nonstopux*)
 
6413
      lt_cv_prog_cc_wl='-Wl,'
 
6414
      lt_cv_prog_cc_static='-non_shared'
 
6415
      # PIC (with -KPIC) is the default.
 
6416
      ;;
 
6417
 
 
6418
    cygwin* | mingw* | pw32* | os2*)
 
6419
      # This hack is so that the source file can tell whether it is being
 
6420
      # built for inclusion in a dll (and should export symbols for example).
 
6421
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
 
6422
      ;;
 
6423
 
 
6424
    newsos6)
 
6425
      lt_cv_prog_cc_pic='-KPIC'
 
6426
      lt_cv_prog_cc_static='-Bstatic'
 
6427
      ;;
 
6428
 
 
6429
    osf3* | osf4* | osf5*)
 
6430
      # All OSF/1 code is PIC.
 
6431
      lt_cv_prog_cc_wl='-Wl,'
 
6432
      lt_cv_prog_cc_static='-non_shared'
 
6433
      ;;
 
6434
 
 
6435
    sco3.2v5*)
 
6436
      lt_cv_prog_cc_pic='-Kpic'
 
6437
      lt_cv_prog_cc_static='-dn'
 
6438
      lt_cv_prog_cc_shlib='-belf'
 
6439
      ;;
 
6440
 
 
6441
    solaris*)
 
6442
      lt_cv_prog_cc_pic='-KPIC'
 
6443
      lt_cv_prog_cc_static='-Bstatic'
 
6444
      lt_cv_prog_cc_wl='-Wl,'
 
6445
      ;;
 
6446
 
 
6447
    sunos4*)
 
6448
      lt_cv_prog_cc_pic='-PIC'
 
6449
      lt_cv_prog_cc_static='-Bstatic'
 
6450
      lt_cv_prog_cc_wl='-Qoption ld '
 
6451
      ;;
 
6452
 
 
6453
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6454
      lt_cv_prog_cc_pic='-KPIC'
 
6455
      lt_cv_prog_cc_static='-Bstatic'
 
6456
      lt_cv_prog_cc_wl='-Wl,'
 
6457
      ;;
 
6458
 
 
6459
    uts4*)
 
6460
      lt_cv_prog_cc_pic='-pic'
 
6461
      lt_cv_prog_cc_static='-Bstatic'
 
6462
      ;;
 
6463
 
 
6464
    sysv4*MP*)
 
6465
      if test -d /usr/nec ;then
 
6466
        lt_cv_prog_cc_pic='-Kconform_pic'
 
6467
        lt_cv_prog_cc_static='-Bstatic'
 
6468
      fi
 
6469
      ;;
 
6470
 
 
6471
    *)
 
6472
      lt_cv_prog_cc_can_build_shared=no
 
6473
      ;;
 
6474
    esac
 
6475
  fi
 
6476
 
 
6477
fi
 
6478
 
 
6479
if test -z "$lt_cv_prog_cc_pic"; then
 
6480
  echo "$as_me:$LINENO: result: none" >&5
 
6481
echo "${ECHO_T}none" >&6
 
6482
else
 
6483
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
 
6484
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
 
6485
 
 
6486
  # Check to make sure the pic_flag actually works.
 
6487
  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
 
6488
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
 
6489
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
 
6490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6491
else
 
6492
      save_CFLAGS="$CFLAGS"
 
6493
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
 
6494
    cat >conftest.$ac_ext <<_ACEOF
 
6495
#line $LINENO "configure"
 
6496
/* confdefs.h.  */
 
6497
_ACEOF
 
6498
cat confdefs.h >>conftest.$ac_ext
 
6499
cat >>conftest.$ac_ext <<_ACEOF
 
6500
/* end confdefs.h.  */
 
6501
 
 
6502
int
 
6503
main ()
 
6504
{
 
6505
 
 
6506
  ;
 
6507
  return 0;
 
6508
}
 
6509
_ACEOF
 
6510
rm -f conftest.$ac_objext
 
6511
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6512
  (eval $ac_compile) 2>&5
 
6513
  ac_status=$?
 
6514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6515
  (exit $ac_status); } &&
 
6516
         { ac_try='test -s conftest.$ac_objext'
 
6517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6518
  (eval $ac_try) 2>&5
 
6519
  ac_status=$?
 
6520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6521
  (exit $ac_status); }; }; then
 
6522
        case $host_os in
 
6523
      hpux9* | hpux10* | hpux11*)
 
6524
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
 
6525
        # they create non-PIC objects.  So, if there were any warnings, we
 
6526
        # assume that PIC is not supported.
 
6527
        if test -s conftest.err; then
 
6528
          lt_cv_prog_cc_pic_works=no
 
6529
        else
 
6530
          lt_cv_prog_cc_pic_works=yes
 
6531
        fi
 
6532
        ;;
 
6533
      *)
 
6534
        lt_cv_prog_cc_pic_works=yes
 
6535
        ;;
 
6536
      esac
 
6537
 
 
6538
else
 
6539
  echo "$as_me: failed program was:" >&5
 
6540
sed 's/^/| /' conftest.$ac_ext >&5
 
6541
 
 
6542
      lt_cv_prog_cc_pic_works=no
 
6543
 
 
6544
fi
 
6545
rm -f conftest.$ac_objext conftest.$ac_ext
 
6546
    CFLAGS="$save_CFLAGS"
 
6547
 
 
6548
fi
 
6549
 
 
6550
 
 
6551
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
 
6552
    lt_cv_prog_cc_pic=
 
6553
    lt_cv_prog_cc_can_build_shared=no
 
6554
  else
 
6555
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
 
6556
  fi
 
6557
 
 
6558
  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
 
6559
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
 
6560
fi
 
6561
 
 
6562
# Check for any special shared library compilation flags.
 
6563
if test -n "$lt_cv_prog_cc_shlib"; then
 
6564
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
 
6565
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
 
6566
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 
6567
  else
 
6568
   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
6569
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
6570
    lt_cv_prog_cc_can_build_shared=no
 
6571
  fi
 
6572
fi
 
6573
 
 
6574
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
 
6575
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
 
6576
if test "${lt_cv_prog_cc_static_works+set}" = set; then
 
6577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6578
else
 
6579
    lt_cv_prog_cc_static_works=no
 
6580
  save_LDFLAGS="$LDFLAGS"
 
6581
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
 
6582
  cat >conftest.$ac_ext <<_ACEOF
 
6583
#line $LINENO "configure"
 
6584
/* confdefs.h.  */
 
6585
_ACEOF
 
6586
cat confdefs.h >>conftest.$ac_ext
 
6587
cat >>conftest.$ac_ext <<_ACEOF
 
6588
/* end confdefs.h.  */
 
6589
 
 
6590
int
 
6591
main ()
 
6592
{
 
6593
 
 
6594
  ;
 
6595
  return 0;
 
6596
}
 
6597
_ACEOF
 
6598
rm -f conftest.$ac_objext conftest$ac_exeext
 
6599
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6600
  (eval $ac_link) 2>&5
 
6601
  ac_status=$?
 
6602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6603
  (exit $ac_status); } &&
 
6604
         { ac_try='test -s conftest$ac_exeext'
 
6605
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6606
  (eval $ac_try) 2>&5
 
6607
  ac_status=$?
 
6608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6609
  (exit $ac_status); }; }; then
 
6610
  lt_cv_prog_cc_static_works=yes
 
6611
else
 
6612
  echo "$as_me: failed program was:" >&5
 
6613
sed 's/^/| /' conftest.$ac_ext >&5
 
6614
 
 
6615
fi
 
6616
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
6617
  LDFLAGS="$save_LDFLAGS"
 
6618
 
 
6619
fi
 
6620
 
 
6621
 
 
6622
# Belt *and* braces to stop my trousers falling down:
 
6623
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
 
6624
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
 
6625
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
 
6626
 
 
6627
pic_flag="$lt_cv_prog_cc_pic"
 
6628
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
 
6629
wl="$lt_cv_prog_cc_wl"
 
6630
link_static_flag="$lt_cv_prog_cc_static"
 
6631
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
 
6632
can_build_shared="$lt_cv_prog_cc_can_build_shared"
 
6633
 
 
6634
 
 
6635
# Check to see if options -o and -c are simultaneously supported by compiler
 
6636
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6637
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6638
if test "${lt_cv_compiler_c_o+set}" = set; then
 
6639
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6640
else
 
6641
 
 
6642
$rm -r conftest 2>/dev/null
 
6643
mkdir conftest
 
6644
cd conftest
 
6645
echo "int some_variable = 0;" > conftest.$ac_ext
 
6646
mkdir out
 
6647
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 
6648
# that will create temporary files in the current directory regardless of
 
6649
# the output directory.  Thus, making CWD read-only will cause this test
 
6650
# to fail, enabling locking or at least warning the user not to do parallel
 
6651
# builds.
 
6652
chmod -w .
 
6653
save_CFLAGS="$CFLAGS"
 
6654
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 
6655
compiler_c_o=no
 
6656
if { (eval echo configure:6656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
 
6657
  # The compiler can only warn and ignore the option if not recognized
 
6658
  # So say no if there are warnings
 
6659
  if test -s out/conftest.err; then
 
6660
    lt_cv_compiler_c_o=no
 
6661
  else
 
6662
    lt_cv_compiler_c_o=yes
 
6663
  fi
 
6664
else
 
6665
  # Append any errors to the config.log.
 
6666
  cat out/conftest.err 1>&5
 
6667
  lt_cv_compiler_c_o=no
 
6668
fi
 
6669
CFLAGS="$save_CFLAGS"
 
6670
chmod u+w .
 
6671
$rm conftest* out/*
 
6672
rmdir out
 
6673
cd ..
 
6674
rmdir conftest
 
6675
$rm -r conftest 2>/dev/null
 
6676
 
 
6677
fi
 
6678
 
 
6679
compiler_c_o=$lt_cv_compiler_c_o
 
6680
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
 
6681
echo "${ECHO_T}$compiler_c_o" >&6
 
6682
 
 
6683
if test x"$compiler_c_o" = x"yes"; then
 
6684
  # Check to see if we can write to a .lo
 
6685
  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
 
6686
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
 
6687
  if test "${lt_cv_compiler_o_lo+set}" = set; then
 
6688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6689
else
 
6690
 
 
6691
  lt_cv_compiler_o_lo=no
 
6692
  save_CFLAGS="$CFLAGS"
 
6693
  CFLAGS="$CFLAGS -c -o conftest.lo"
 
6694
  save_objext="$ac_objext"
 
6695
  ac_objext=lo
 
6696
  cat >conftest.$ac_ext <<_ACEOF
 
6697
#line $LINENO "configure"
 
6698
/* confdefs.h.  */
 
6699
_ACEOF
 
6700
cat confdefs.h >>conftest.$ac_ext
 
6701
cat >>conftest.$ac_ext <<_ACEOF
 
6702
/* end confdefs.h.  */
 
6703
 
 
6704
int
 
6705
main ()
 
6706
{
 
6707
int some_variable = 0;
 
6708
  ;
 
6709
  return 0;
 
6710
}
 
6711
_ACEOF
 
6712
rm -f conftest.$ac_objext
 
6713
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6714
  (eval $ac_compile) 2>&5
 
6715
  ac_status=$?
 
6716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6717
  (exit $ac_status); } &&
 
6718
         { ac_try='test -s conftest.$ac_objext'
 
6719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6720
  (eval $ac_try) 2>&5
 
6721
  ac_status=$?
 
6722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6723
  (exit $ac_status); }; }; then
 
6724
      # The compiler can only warn and ignore the option if not recognized
 
6725
    # So say no if there are warnings
 
6726
    if test -s conftest.err; then
 
6727
      lt_cv_compiler_o_lo=no
 
6728
    else
 
6729
      lt_cv_compiler_o_lo=yes
 
6730
    fi
 
6731
 
 
6732
else
 
6733
  echo "$as_me: failed program was:" >&5
 
6734
sed 's/^/| /' conftest.$ac_ext >&5
 
6735
 
 
6736
fi
 
6737
rm -f conftest.$ac_objext conftest.$ac_ext
 
6738
  ac_objext="$save_objext"
 
6739
  CFLAGS="$save_CFLAGS"
 
6740
 
 
6741
fi
 
6742
 
 
6743
  compiler_o_lo=$lt_cv_compiler_o_lo
 
6744
  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
 
6745
echo "${ECHO_T}$compiler_o_lo" >&6
 
6746
else
 
6747
  compiler_o_lo=no
 
6748
fi
 
6749
 
 
6750
# Check to see if we can do hard links to lock some files if needed
 
6751
hard_links="nottested"
 
6752
if test "$compiler_c_o" = no && test "$need_locks" != no; then
 
6753
  # do not overwrite the value of need_locks provided by the user
 
6754
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6755
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6756
  hard_links=yes
 
6757
  $rm conftest*
 
6758
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6759
  touch conftest.a
 
6760
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6761
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6762
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6763
echo "${ECHO_T}$hard_links" >&6
 
6764
  if test "$hard_links" = no; then
 
6765
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6766
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6767
    need_locks=warn
 
6768
  fi
 
6769
else
 
6770
  need_locks=no
 
6771
fi
 
6772
 
 
6773
if test "$GCC" = yes; then
 
6774
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
 
6775
  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6776
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6777
  echo "int some_variable = 0;" > conftest.$ac_ext
 
6778
  save_CFLAGS="$CFLAGS"
 
6779
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
 
6780
  compiler_rtti_exceptions=no
 
6781
  cat >conftest.$ac_ext <<_ACEOF
 
6782
#line $LINENO "configure"
 
6783
/* confdefs.h.  */
 
6784
_ACEOF
 
6785
cat confdefs.h >>conftest.$ac_ext
 
6786
cat >>conftest.$ac_ext <<_ACEOF
 
6787
/* end confdefs.h.  */
 
6788
 
 
6789
int
 
6790
main ()
 
6791
{
 
6792
int some_variable = 0;
 
6793
  ;
 
6794
  return 0;
 
6795
}
 
6796
_ACEOF
 
6797
rm -f conftest.$ac_objext
 
6798
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6799
  (eval $ac_compile) 2>&5
 
6800
  ac_status=$?
 
6801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6802
  (exit $ac_status); } &&
 
6803
         { ac_try='test -s conftest.$ac_objext'
 
6804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6805
  (eval $ac_try) 2>&5
 
6806
  ac_status=$?
 
6807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6808
  (exit $ac_status); }; }; then
 
6809
      # The compiler can only warn and ignore the option if not recognized
 
6810
    # So say no if there are warnings
 
6811
    if test -s conftest.err; then
 
6812
      compiler_rtti_exceptions=no
 
6813
    else
 
6814
      compiler_rtti_exceptions=yes
 
6815
    fi
 
6816
 
 
6817
else
 
6818
  echo "$as_me: failed program was:" >&5
 
6819
sed 's/^/| /' conftest.$ac_ext >&5
 
6820
 
 
6821
fi
 
6822
rm -f conftest.$ac_objext conftest.$ac_ext
 
6823
  CFLAGS="$save_CFLAGS"
 
6824
  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
 
6825
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
 
6826
 
 
6827
  if test "$compiler_rtti_exceptions" = "yes"; then
 
6828
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
 
6829
  else
 
6830
    no_builtin_flag=' -fno-builtin'
 
6831
  fi
 
6832
fi
 
6833
 
 
6834
# See if the linker supports building shared libraries.
 
6835
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
 
6836
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6837
 
 
6838
allow_undefined_flag=
 
6839
no_undefined_flag=
 
6840
need_lib_prefix=unknown
 
6841
need_version=unknown
 
6842
# when you set need_version to no, make sure it does not cause -set_version
 
6843
# flags to be left without arguments
 
6844
archive_cmds=
 
6845
archive_expsym_cmds=
 
6846
old_archive_from_new_cmds=
 
6847
old_archive_from_expsyms_cmds=
 
6848
export_dynamic_flag_spec=
 
6849
whole_archive_flag_spec=
 
6850
thread_safe_flag_spec=
 
6851
hardcode_into_libs=no
 
6852
hardcode_libdir_flag_spec=
 
6853
hardcode_libdir_separator=
 
6854
hardcode_direct=no
 
6855
hardcode_minus_L=no
 
6856
hardcode_shlibpath_var=unsupported
 
6857
runpath_var=
 
6858
link_all_deplibs=unknown
 
6859
always_export_symbols=no
 
6860
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6861
# include_expsyms should be a list of space-separated symbols to be *always*
 
6862
# included in the symbol list
 
6863
include_expsyms=
 
6864
# exclude_expsyms can be an egrep regular expression of symbols to exclude
 
6865
# it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6866
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6867
# as well as any symbol that contains `d'.
 
6868
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6869
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6870
# platforms (ab)use it in PIC code, but their linkers get confused if
 
6871
# the symbol is explicitly referenced.  Since portable code cannot
 
6872
# rely on this symbol name, it's probably fine to never include it in
 
6873
# preloaded symbol tables.
 
6874
extract_expsyms_cmds=
 
6875
 
 
6876
case $host_os in
 
6877
cygwin* | mingw* | pw32*)
 
6878
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6879
  # When not using gcc, we currently assume that we are using
 
6880
  # Microsoft Visual C++.
 
6881
  if test "$GCC" != yes; then
 
6882
    with_gnu_ld=no
 
6883
  fi
 
6884
  ;;
 
6885
openbsd*)
 
6886
  with_gnu_ld=no
 
6887
  ;;
 
6888
esac
 
6889
 
 
6890
ld_shlibs=yes
 
6891
if test "$with_gnu_ld" = yes; then
 
6892
  # If archive_cmds runs LD, not CC, wlarc should be empty
 
6893
  wlarc='${wl}'
 
6894
 
 
6895
  # See if GNU ld supports shared libraries.
 
6896
  case $host_os in
 
6897
  aix3* | aix4* | aix5*)
 
6898
    # On AIX, the GNU linker is very broken
 
6899
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
 
6900
    ld_shlibs=no
 
6901
    cat <<EOF 1>&2
 
6902
 
 
6903
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6904
*** to be unable to reliably create shared libraries on AIX.
 
6905
*** Therefore, libtool is disabling shared libraries support.  If you
 
6906
*** really care for shared libraries, you may want to modify your PATH
 
6907
*** so that a non-GNU linker is found, and then restart.
 
6908
 
 
6909
EOF
 
6910
    ;;
 
6911
 
 
6912
  amigaos*)
 
6913
    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)'
 
6914
    hardcode_libdir_flag_spec='-L$libdir'
 
6915
    hardcode_minus_L=yes
 
6916
 
 
6917
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6918
    # that the semantics of dynamic libraries on AmigaOS, at least up
 
6919
    # to version 4, is to share data among multiple programs linked
 
6920
    # with the same dynamic library.  Since this doesn't match the
 
6921
    # behavior of shared libraries on other platforms, we can use
 
6922
    # them.
 
6923
    ld_shlibs=no
 
6924
    ;;
 
6925
 
 
6926
  beos*)
 
6927
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
6928
      allow_undefined_flag=unsupported
 
6929
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6930
      # support --undefined.  This deserves some investigation.  FIXME
 
6931
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6932
    else
 
6933
      ld_shlibs=no
 
6934
    fi
 
6935
    ;;
 
6936
 
 
6937
  cygwin* | mingw* | pw32*)
 
6938
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
6939
    # no search path for DLLs.
 
6940
    hardcode_libdir_flag_spec='-L$libdir'
 
6941
    allow_undefined_flag=unsupported
 
6942
    always_export_symbols=yes
 
6943
 
 
6944
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
 
6945
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
 
6946
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
 
6947
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
 
6948
      else $CC -o impgen impgen.c ; fi)~
 
6949
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
 
6950
 
 
6951
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
 
6952
 
 
6953
    # cygwin and mingw dlls have different entry points and sets of symbols
 
6954
    # to exclude.
 
6955
    # FIXME: what about values for MSVC?
 
6956
    dll_entry=__cygwin_dll_entry@12
 
6957
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
 
6958
    case $host_os in
 
6959
    mingw*)
 
6960
      # mingw values
 
6961
      dll_entry=_DllMainCRTStartup@12
 
6962
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
 
6963
      ;;
 
6964
    esac
 
6965
 
 
6966
    # mingw and cygwin differ, and it's simplest to just exclude the union
 
6967
    # of the two symbol sets.
 
6968
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
 
6969
 
 
6970
    # recent cygwin and mingw systems supply a stub DllMain which the user
 
6971
    # can override, but on older systems we have to supply one (in ltdll.c)
 
6972
    if test "x$lt_cv_need_dllmain" = "xyes"; then
 
6973
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
 
6974
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
 
6975
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
 
6976
    else
 
6977
      ltdll_obj=
 
6978
      ltdll_cmds=
 
6979
    fi
 
6980
 
 
6981
    # Extract the symbol export list from an `--export-all' def file,
 
6982
    # then regenerate the def file from the symbol export list, so that
 
6983
    # the compiled dll only exports the symbol export list.
 
6984
    # Be careful not to strip the DATA tag left be newer dlltools.
 
6985
    export_symbols_cmds="$ltdll_cmds"'
 
6986
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
 
6987
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
 
6988
 
 
6989
    # If the export-symbols file already is a .def file (1st line
 
6990
    # is EXPORTS), use it as is.
 
6991
    # If DATA tags from a recent dlltool are present, honour them!
 
6992
    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
 
6993
        cp $export_symbols $output_objdir/$soname-def;
 
6994
      else
 
6995
        echo EXPORTS > $output_objdir/$soname-def;
 
6996
        _lt_hint=1;
 
6997
        cat $export_symbols | while read symbol; do
 
6998
         set dummy \$symbol;
 
6999
         case \$# in
 
7000
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
 
7001
           4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
 
7002
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
 
7003
         esac;
 
7004
         _lt_hint=`expr 1 + \$_lt_hint`;
 
7005
        done;
 
7006
      fi~
 
7007
      '"$ltdll_cmds"'
 
7008
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
 
7009
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
 
7010
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
 
7011
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
 
7012
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
 
7013
    ;;
 
7014
 
 
7015
  netbsd*)
 
7016
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7017
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7018
      wlarc=
 
7019
    else
 
7020
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7021
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7022
    fi
 
7023
    ;;
 
7024
 
 
7025
  solaris* | sysv5*)
 
7026
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
 
7027
      ld_shlibs=no
 
7028
      cat <<EOF 1>&2
 
7029
 
 
7030
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7031
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7032
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7033
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7034
*** your PATH or compiler configuration so that the native linker is
 
7035
*** used, and then restart.
 
7036
 
 
7037
EOF
 
7038
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
7039
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7040
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7041
    else
 
7042
      ld_shlibs=no
 
7043
    fi
 
7044
    ;;
 
7045
 
 
7046
  sunos4*)
 
7047
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7048
    wlarc=
 
7049
    hardcode_direct=yes
 
7050
    hardcode_shlibpath_var=no
 
7051
    ;;
 
7052
 
 
7053
  *)
 
7054
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
7055
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7056
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7057
    else
 
7058
      ld_shlibs=no
 
7059
    fi
 
7060
    ;;
 
7061
  esac
 
7062
 
 
7063
  if test "$ld_shlibs" = yes; then
 
7064
    runpath_var=LD_RUN_PATH
 
7065
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7066
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7067
    case $host_os in
 
7068
    cygwin* | mingw* | pw32*)
 
7069
      # dlltool doesn't understand --whole-archive et. al.
 
7070
      whole_archive_flag_spec=
 
7071
      ;;
 
7072
    *)
 
7073
      # ancient GNU ld didn't support --whole-archive et. al.
 
7074
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
 
7075
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7076
      else
 
7077
        whole_archive_flag_spec=
 
7078
      fi
 
7079
      ;;
 
7080
    esac
 
7081
  fi
 
7082
else
 
7083
  # PORTME fill in a description of your system's linker (not GNU ld)
 
7084
  case $host_os in
 
7085
  aix3*)
 
7086
    allow_undefined_flag=unsupported
 
7087
    always_export_symbols=yes
 
7088
    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'
 
7089
    # Note: this linker hardcodes the directories in LIBPATH if there
 
7090
    # are no directories specified by -L.
 
7091
    hardcode_minus_L=yes
 
7092
    if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7093
      # Neither direct hardcoding nor static linking is supported with a
 
7094
      # broken collect2.
 
7095
      hardcode_direct=unsupported
 
7096
    fi
 
7097
    ;;
 
7098
 
 
7099
  aix4* | aix5*)
 
7100
    if test "$host_cpu" = ia64; then
 
7101
      # On IA64, the linker does run time linking by default, so we don't
 
7102
      # have to do anything special.
 
7103
      aix_use_runtimelinking=no
 
7104
      exp_sym_flag='-Bexport'
 
7105
      no_entry_flag=""
 
7106
    else
 
7107
      aix_use_runtimelinking=no
 
7108
 
 
7109
      # Test if we are trying to use run time linking or normal
 
7110
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7111
      # need to do runtime linking.
 
7112
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7113
        for ld_flag in $LDFLAGS; do
 
7114
          case $ld_flag in
 
7115
          *-brtl*)
 
7116
            aix_use_runtimelinking=yes
 
7117
            break
 
7118
          ;;
 
7119
          esac
 
7120
        done
 
7121
      esac
 
7122
 
 
7123
      exp_sym_flag='-bexport'
 
7124
      no_entry_flag='-bnoentry'
 
7125
    fi
 
7126
 
 
7127
    # When large executables or shared objects are built, AIX ld can
 
7128
    # have problems creating the table of contents.  If linking a library
 
7129
    # or program results in "error TOC overflow" add -mminimal-toc to
 
7130
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7131
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7132
 
 
7133
    hardcode_direct=yes
 
7134
    archive_cmds=''
 
7135
    hardcode_libdir_separator=':'
 
7136
    if test "$GCC" = yes; then
 
7137
      case $host_os in aix4.[012]|aix4.[012].*)
 
7138
        collect2name=`${CC} -print-prog-name=collect2`
 
7139
        if test -f "$collect2name" && \
 
7140
          strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7141
        then
 
7142
          # We have reworked collect2
 
7143
          hardcode_direct=yes
 
7144
        else
 
7145
          # We have old collect2
 
7146
          hardcode_direct=unsupported
 
7147
          # It fails to find uninstalled libraries when the uninstalled
 
7148
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7149
          # to unsupported forces relinking
 
7150
          hardcode_minus_L=yes
 
7151
          hardcode_libdir_flag_spec='-L$libdir'
 
7152
          hardcode_libdir_separator=
 
7153
        fi
 
7154
      esac
 
7155
 
 
7156
      shared_flag='-shared'
 
7157
    else
 
7158
      # not using gcc
 
7159
      if test "$host_cpu" = ia64; then
 
7160
        shared_flag='${wl}-G'
 
7161
      else
 
7162
        if test "$aix_use_runtimelinking" = yes; then
 
7163
          shared_flag='${wl}-G'
 
7164
        else
 
7165
          shared_flag='${wl}-bM:SRE'
 
7166
        fi
 
7167
      fi
 
7168
    fi
 
7169
 
 
7170
    # It seems that -bexpall can do strange things, so it is better to
 
7171
    # generate a list of symbols to export.
 
7172
    always_export_symbols=yes
 
7173
    if test "$aix_use_runtimelinking" = yes; then
 
7174
      # Warning - without using the other runtime loading flags (-brtl),
 
7175
      # -berok will link without error, but may produce a broken library.
 
7176
      allow_undefined_flag='-berok'
 
7177
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
 
7178
      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
7179
    else
 
7180
      if test "$host_cpu" = ia64; then
 
7181
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7182
        allow_undefined_flag="-z nodefs"
 
7183
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
7184
      else
 
7185
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
 
7186
        # Warning - without using the other run time loading flags,
 
7187
        # -berok will link without error, but may produce a broken library.
 
7188
        allow_undefined_flag='${wl}-berok'
 
7189
        # This is a bit strange, but is similar to how AIX traditionally builds
 
7190
        # it's shared libraries.
 
7191
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
 
7192
      fi
 
7193
    fi
 
7194
    ;;
 
7195
 
 
7196
  amigaos*)
 
7197
    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)'
 
7198
    hardcode_libdir_flag_spec='-L$libdir'
 
7199
    hardcode_minus_L=yes
 
7200
    # see comment about different semantics on the GNU ld section
 
7201
    ld_shlibs=no
 
7202
    ;;
 
7203
 
 
7204
  cygwin* | mingw* | pw32*)
 
7205
    # When not using gcc, we currently assume that we are using
 
7206
    # Microsoft Visual C++.
 
7207
    # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7208
    # no search path for DLLs.
 
7209
    hardcode_libdir_flag_spec=' '
 
7210
    allow_undefined_flag=unsupported
 
7211
    # Tell ltmain to make .lib files, not .a files.
 
7212
    libext=lib
 
7213
    # FIXME: Setting linknames here is a bad hack.
 
7214
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7215
    # The linker will automatically build a .lib file if we build a DLL.
 
7216
    old_archive_from_new_cmds='true'
 
7217
    # FIXME: Should let the user specify the lib program.
 
7218
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7219
    fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7220
    ;;
 
7221
 
 
7222
  darwin* | rhapsody*)
 
7223
    case "$host_os" in
 
7224
    rhapsody* | darwin1.[012])
 
7225
      allow_undefined_flag='-undefined suppress'
 
7226
      ;;
 
7227
    *) # Darwin 1.3 on
 
7228
      allow_undefined_flag='-flat_namespace -undefined suppress'
 
7229
      ;;
 
7230
    esac
 
7231
    # FIXME: Relying on posixy $() will cause problems for
 
7232
    #        cross-compilation, but unfortunately the echo tests do not
 
7233
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 
7234
    #        `"' quotes if we put them in here... so don't!
 
7235
    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
 
7236
    # We need to add '_' to the symbols in $export_symbols first
 
7237
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
 
7238
    hardcode_direct=yes
 
7239
    hardcode_shlibpath_var=no
 
7240
    whole_archive_flag_spec='-all_load $convenience'
 
7241
    ;;
 
7242
 
 
7243
  freebsd1*)
 
7244
    ld_shlibs=no
 
7245
    ;;
 
7246
 
 
7247
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7248
  # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7249
  # does not break anything, and helps significantly (at the cost of a little
 
7250
  # extra space).
 
7251
  freebsd2.2*)
 
7252
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7253
    hardcode_libdir_flag_spec='-R$libdir'
 
7254
    hardcode_direct=yes
 
7255
    hardcode_shlibpath_var=no
 
7256
    ;;
 
7257
 
 
7258
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7259
  freebsd2*)
 
7260
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7261
    hardcode_direct=yes
 
7262
    hardcode_minus_L=yes
 
7263
    hardcode_shlibpath_var=no
 
7264
    ;;
 
7265
 
 
7266
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7267
  freebsd*)
 
7268
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7269
    hardcode_libdir_flag_spec='-R$libdir'
 
7270
    hardcode_direct=yes
 
7271
    hardcode_shlibpath_var=no
 
7272
    ;;
 
7273
 
 
7274
  hpux9* | hpux10* | hpux11*)
 
7275
    case $host_os in
 
7276
    hpux9*) 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' ;;
 
7277
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
 
7278
    esac
 
7279
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7280
    hardcode_libdir_separator=:
 
7281
    hardcode_direct=yes
 
7282
    hardcode_minus_L=yes # Not in the search PATH, but as the default
 
7283
                         # location of the library.
 
7284
    export_dynamic_flag_spec='${wl}-E'
 
7285
    ;;
 
7286
 
 
7287
  irix5* | irix6* | nonstopux*)
 
7288
    if test "$GCC" = yes; then
 
7289
      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'
 
7290
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7291
    else
 
7292
      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'
 
7293
      hardcode_libdir_flag_spec='-rpath $libdir'
 
7294
    fi
 
7295
    hardcode_libdir_separator=:
 
7296
    link_all_deplibs=yes
 
7297
    ;;
 
7298
 
 
7299
  netbsd*)
 
7300
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7301
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7302
    else
 
7303
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7304
    fi
 
7305
    hardcode_libdir_flag_spec='-R$libdir'
 
7306
    hardcode_direct=yes
 
7307
    hardcode_shlibpath_var=no
 
7308
    ;;
 
7309
 
 
7310
  newsos6)
 
7311
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7312
    hardcode_direct=yes
 
7313
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7314
    hardcode_libdir_separator=:
 
7315
    hardcode_shlibpath_var=no
 
7316
    ;;
 
7317
 
 
7318
  openbsd*)
 
7319
    hardcode_direct=yes
 
7320
    hardcode_shlibpath_var=no
 
7321
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7322
      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7323
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7324
      export_dynamic_flag_spec='${wl}-E'
 
7325
    else
 
7326
      case "$host_os" in
 
7327
      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7328
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7329
        hardcode_libdir_flag_spec='-R$libdir'
 
7330
        ;;
 
7331
      *)
 
7332
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7333
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7334
        ;;
 
7335
      esac
 
7336
    fi
 
7337
    ;;
 
7338
 
 
7339
  os2*)
 
7340
    hardcode_libdir_flag_spec='-L$libdir'
 
7341
    hardcode_minus_L=yes
 
7342
    allow_undefined_flag=unsupported
 
7343
    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'
 
7344
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7345
    ;;
 
7346
 
 
7347
  osf3*)
 
7348
    if test "$GCC" = yes; then
 
7349
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7350
      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'
 
7351
    else
 
7352
      allow_undefined_flag=' -expect_unresolved \*'
 
7353
      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'
 
7354
    fi
 
7355
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7356
    hardcode_libdir_separator=:
 
7357
    ;;
 
7358
 
 
7359
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
 
7360
    if test "$GCC" = yes; then
 
7361
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7362
      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'
 
7363
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7364
    else
 
7365
      allow_undefined_flag=' -expect_unresolved \*'
 
7366
      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'
 
7367
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7368
      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
7369
 
 
7370
      #Both c and cxx compiler support -rpath directly
 
7371
      hardcode_libdir_flag_spec='-rpath $libdir'
 
7372
    fi
 
7373
    hardcode_libdir_separator=:
 
7374
    ;;
 
7375
 
 
7376
  sco3.2v5*)
 
7377
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7378
    hardcode_shlibpath_var=no
 
7379
    runpath_var=LD_RUN_PATH
 
7380
    hardcode_runpath_var=yes
 
7381
    export_dynamic_flag_spec='${wl}-Bexport'
 
7382
    ;;
 
7383
 
 
7384
  solaris*)
 
7385
    # gcc --version < 3.0 without binutils cannot create self contained
 
7386
    # shared libraries reliably, requiring libgcc.a to resolve some of
 
7387
    # the object symbols generated in some cases.  Libraries that use
 
7388
    # assert need libgcc.a to resolve __eprintf, for example.  Linking
 
7389
    # a copy of libgcc.a into every shared library to guarantee resolving
 
7390
    # such symbols causes other problems:  According to Tim Van Holder
 
7391
    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
 
7392
    # (to the application) exception stack for one thing.
 
7393
    no_undefined_flag=' -z defs'
 
7394
    if test "$GCC" = yes; then
 
7395
      case `$CC --version 2>/dev/null` in
 
7396
      [12].*)
 
7397
        cat <<EOF 1>&2
 
7398
 
 
7399
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
 
7400
*** create self contained shared libraries on Solaris systems, without
 
7401
*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
 
7402
*** -no-undefined support, which will at least allow you to build shared
 
7403
*** libraries.  However, you may find that when you link such libraries
 
7404
*** into an application without using GCC, you have to manually add
 
7405
*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
 
7406
*** upgrade to a newer version of GCC.  Another option is to rebuild your
 
7407
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
 
7408
 
 
7409
EOF
 
7410
        no_undefined_flag=
 
7411
        ;;
 
7412
      esac
 
7413
    fi
 
7414
    # $CC -shared without GNU ld will not create a library from C++
 
7415
    # object files and a static libstdc++, better avoid it by now
 
7416
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7417
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7418
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7419
    hardcode_libdir_flag_spec='-R$libdir'
 
7420
    hardcode_shlibpath_var=no
 
7421
    case $host_os in
 
7422
    solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7423
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7424
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7425
    esac
 
7426
    link_all_deplibs=yes
 
7427
    ;;
 
7428
 
 
7429
  sunos4*)
 
7430
    if test "x$host_vendor" = xsequent; then
 
7431
      # Use $CC to link under sequent, because it throws in some extra .o
 
7432
      # files that make .init and .fini sections work.
 
7433
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7434
    else
 
7435
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7436
    fi
 
7437
    hardcode_libdir_flag_spec='-L$libdir'
 
7438
    hardcode_direct=yes
 
7439
    hardcode_minus_L=yes
 
7440
    hardcode_shlibpath_var=no
 
7441
    ;;
 
7442
 
 
7443
  sysv4)
 
7444
    case $host_vendor in
 
7445
      sni)
 
7446
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7447
        hardcode_direct=yes # is this really true???
 
7448
        ;;
 
7449
      siemens)
 
7450
        ## LD is ld it makes a PLAMLIB
 
7451
        ## CC just makes a GrossModule.
 
7452
        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7453
        reload_cmds='$CC -r -o $output$reload_objs'
 
7454
        hardcode_direct=no
 
7455
        ;;
 
7456
      motorola)
 
7457
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7458
        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7459
        ;;
 
7460
    esac
 
7461
    runpath_var='LD_RUN_PATH'
 
7462
    hardcode_shlibpath_var=no
 
7463
    ;;
 
7464
 
 
7465
  sysv4.3*)
 
7466
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7467
    hardcode_shlibpath_var=no
 
7468
    export_dynamic_flag_spec='-Bexport'
 
7469
    ;;
 
7470
 
 
7471
  sysv5*)
 
7472
    no_undefined_flag=' -z text'
 
7473
    # $CC -shared without GNU ld will not create a library from C++
 
7474
    # object files and a static libstdc++, better avoid it by now
 
7475
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7476
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7477
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7478
    hardcode_libdir_flag_spec=
 
7479
    hardcode_shlibpath_var=no
 
7480
    runpath_var='LD_RUN_PATH'
 
7481
    ;;
 
7482
 
 
7483
  uts4*)
 
7484
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7485
    hardcode_libdir_flag_spec='-L$libdir'
 
7486
    hardcode_shlibpath_var=no
 
7487
    ;;
 
7488
 
 
7489
  dgux*)
 
7490
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7491
    hardcode_libdir_flag_spec='-L$libdir'
 
7492
    hardcode_shlibpath_var=no
 
7493
    ;;
 
7494
 
 
7495
  sysv4*MP*)
 
7496
    if test -d /usr/nec; then
 
7497
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7498
      hardcode_shlibpath_var=no
 
7499
      runpath_var=LD_RUN_PATH
 
7500
      hardcode_runpath_var=yes
 
7501
      ld_shlibs=yes
 
7502
    fi
 
7503
    ;;
 
7504
 
 
7505
  sysv4.2uw2*)
 
7506
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7507
    hardcode_direct=yes
 
7508
    hardcode_minus_L=no
 
7509
    hardcode_shlibpath_var=no
 
7510
    hardcode_runpath_var=yes
 
7511
    runpath_var=LD_RUN_PATH
 
7512
    ;;
 
7513
 
 
7514
  sysv5uw7* | unixware7*)
 
7515
    no_undefined_flag='${wl}-z ${wl}text'
 
7516
    if test "$GCC" = yes; then
 
7517
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7518
    else
 
7519
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7520
    fi
 
7521
    runpath_var='LD_RUN_PATH'
 
7522
    hardcode_shlibpath_var=no
 
7523
    ;;
 
7524
 
 
7525
  *)
 
7526
    ld_shlibs=no
 
7527
    ;;
 
7528
  esac
 
7529
fi
 
7530
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7531
echo "${ECHO_T}$ld_shlibs" >&6
 
7532
test "$ld_shlibs" = no && can_build_shared=no
 
7533
 
 
7534
# Check hardcoding attributes.
 
7535
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
7536
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
7537
hardcode_action=
 
7538
if test -n "$hardcode_libdir_flag_spec" || \
 
7539
   test -n "$runpath_var"; then
 
7540
 
 
7541
  # We can hardcode non-existant directories.
 
7542
  if test "$hardcode_direct" != no &&
 
7543
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
7544
     # have to relink, otherwise we might link with an installed library
 
7545
     # when we should be linking with a yet-to-be-installed one
 
7546
     ## test "$hardcode_shlibpath_var" != no &&
 
7547
     test "$hardcode_minus_L" != no; then
 
7548
    # Linking always hardcodes the temporary library directory.
 
7549
    hardcode_action=relink
 
7550
  else
 
7551
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
7552
    hardcode_action=immediate
 
7553
  fi
 
7554
else
 
7555
  # We cannot hardcode anything, or else we can only hardcode existing
 
7556
  # directories.
 
7557
  hardcode_action=unsupported
 
7558
fi
 
7559
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
7560
echo "${ECHO_T}$hardcode_action" >&6
 
7561
 
 
7562
striplib=
 
7563
old_striplib=
 
7564
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
7565
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
7566
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
7567
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
7568
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
7569
  echo "$as_me:$LINENO: result: yes" >&5
 
7570
echo "${ECHO_T}yes" >&6
 
7571
else
 
7572
  echo "$as_me:$LINENO: result: no" >&5
 
7573
echo "${ECHO_T}no" >&6
 
7574
fi
 
7575
 
 
7576
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
7577
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
7578
 
 
7579
# PORTME Fill in your ld.so characteristics
 
7580
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7581
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7582
library_names_spec=
 
7583
libname_spec='lib$name'
 
7584
soname_spec=
 
7585
postinstall_cmds=
 
7586
postuninstall_cmds=
 
7587
finish_cmds=
 
7588
finish_eval=
 
7589
shlibpath_var=
 
7590
shlibpath_overrides_runpath=unknown
 
7591
version_type=none
 
7592
dynamic_linker="$host_os ld.so"
 
7593
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7594
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7595
 
 
7596
case $host_os in
 
7597
aix3*)
 
7598
  version_type=linux
 
7599
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
 
7600
  shlibpath_var=LIBPATH
 
7601
 
 
7602
  # AIX has no versioning support, so we append a major version to the name.
 
7603
  soname_spec='${libname}${release}.so$major'
 
7604
  ;;
 
7605
 
 
7606
aix4* | aix5*)
 
7607
  version_type=linux
 
7608
  need_lib_prefix=no
 
7609
  need_version=no
 
7610
  hardcode_into_libs=yes
 
7611
  if test "$host_cpu" = ia64; then
 
7612
    # AIX 5 supports IA64
 
7613
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
 
7614
    shlibpath_var=LD_LIBRARY_PATH
 
7615
  else
 
7616
    # With GCC up to 2.95.x, collect2 would create an import file
 
7617
    # for dependence libraries.  The import file would start with
 
7618
    # the line `#! .'.  This would cause the generated library to
 
7619
    # depend on `.', always an invalid library.  This was fixed in
 
7620
    # development snapshots of GCC prior to 3.0.
 
7621
    case $host_os in
 
7622
      aix4 | aix4.[01] | aix4.[01].*)
 
7623
        if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7624
             echo ' yes '
 
7625
             echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7626
          :
 
7627
        else
 
7628
          can_build_shared=no
 
7629
        fi
 
7630
        ;;
 
7631
    esac
 
7632
    # AIX (on Power*) has no versioning support, so currently we can
 
7633
    # not hardcode correct soname into executable. Probably we can
 
7634
    # add versioning support to collect2, so additional links can
 
7635
    # be useful in future.
 
7636
    if test "$aix_use_runtimelinking" = yes; then
 
7637
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7638
      # instead of lib<name>.a to let people know that these are not
 
7639
      # typical AIX shared libraries.
 
7640
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7641
    else
 
7642
      # We preserve .a as extension for shared libraries through AIX4.2
 
7643
      # and later when we are not doing run time linking.
 
7644
      library_names_spec='${libname}${release}.a $libname.a'
 
7645
      soname_spec='${libname}${release}.so$major'
 
7646
    fi
 
7647
    shlibpath_var=LIBPATH
 
7648
  fi
 
7649
  hardcode_into_libs=yes
 
7650
  ;;
 
7651
 
 
7652
amigaos*)
 
7653
  library_names_spec='$libname.ixlibrary $libname.a'
 
7654
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7655
  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'
 
7656
  ;;
 
7657
 
 
7658
beos*)
 
7659
  library_names_spec='${libname}.so'
 
7660
  dynamic_linker="$host_os ld.so"
 
7661
  shlibpath_var=LIBRARY_PATH
 
7662
  ;;
 
7663
 
 
7664
bsdi4*)
 
7665
  version_type=linux
 
7666
  need_version=no
 
7667
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7668
  soname_spec='${libname}${release}.so$major'
 
7669
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7670
  shlibpath_var=LD_LIBRARY_PATH
 
7671
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7672
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7673
  export_dynamic_flag_spec=-rdynamic
 
7674
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7675
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7676
  # libtool to hard-code these into programs
 
7677
  ;;
 
7678
 
 
7679
cygwin* | mingw* | pw32*)
 
7680
  version_type=windows
 
7681
  need_version=no
 
7682
  need_lib_prefix=no
 
7683
  case $GCC,$host_os in
 
7684
  yes,cygwin*)
 
7685
    library_names_spec='$libname.dll.a'
 
7686
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
7687
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
 
7688
      dldir=$destdir/`dirname \$dlpath`~
 
7689
      test -d \$dldir || mkdir -p \$dldir~
 
7690
      $install_prog .libs/$dlname \$dldir/$dlname'
 
7691
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7692
      dlpath=$dir/\$dldll~
 
7693
       $rm \$dlpath'
 
7694
    ;;
 
7695
  yes,mingw*)
 
7696
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 
7697
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
 
7698
    ;;
 
7699
  yes,pw32*)
 
7700
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
 
7701
    ;;
 
7702
  *)
 
7703
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
 
7704
    ;;
 
7705
  esac
 
7706
  dynamic_linker='Win32 ld.exe'
 
7707
  # FIXME: first we should search . and the directory the executable is in
 
7708
  shlibpath_var=PATH
 
7709
  ;;
 
7710
 
 
7711
darwin* | rhapsody*)
 
7712
  dynamic_linker="$host_os dyld"
 
7713
  version_type=darwin
 
7714
  need_lib_prefix=no
 
7715
  need_version=no
 
7716
  # FIXME: Relying on posixy $() will cause problems for
 
7717
  #        cross-compilation, but unfortunately the echo tests do not
 
7718
  #        yet detect zsh echo's removal of \ escapes.
 
7719
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
 
7720
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
 
7721
  shlibpath_overrides_runpath=yes
 
7722
  shlibpath_var=DYLD_LIBRARY_PATH
 
7723
  ;;
 
7724
 
 
7725
freebsd1*)
 
7726
  dynamic_linker=no
 
7727
  ;;
 
7728
 
 
7729
freebsd*)
 
7730
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
7731
  version_type=freebsd-$objformat
 
7732
  case $version_type in
 
7733
    freebsd-elf*)
 
7734
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 
7735
      need_version=no
 
7736
      need_lib_prefix=no
 
7737
      ;;
 
7738
    freebsd-*)
 
7739
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
 
7740
      need_version=yes
 
7741
      ;;
 
7742
  esac
 
7743
  shlibpath_var=LD_LIBRARY_PATH
 
7744
  case $host_os in
 
7745
  freebsd2*)
 
7746
    shlibpath_overrides_runpath=yes
 
7747
    ;;
 
7748
  *)
 
7749
    shlibpath_overrides_runpath=no
 
7750
    hardcode_into_libs=yes
 
7751
    ;;
 
7752
  esac
 
7753
  ;;
 
7754
 
 
7755
gnu*)
 
7756
  version_type=linux
 
7757
  need_lib_prefix=no
 
7758
  need_version=no
 
7759
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
 
7760
  soname_spec='${libname}${release}.so$major'
 
7761
  shlibpath_var=LD_LIBRARY_PATH
 
7762
  hardcode_into_libs=yes
 
7763
  ;;
 
7764
 
 
7765
hpux9* | hpux10* | hpux11*)
 
7766
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
7767
  # link against other versions.
 
7768
  dynamic_linker="$host_os dld.sl"
 
7769
  version_type=sunos
 
7770
  need_lib_prefix=no
 
7771
  need_version=no
 
7772
  shlibpath_var=SHLIB_PATH
 
7773
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
7774
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
 
7775
  soname_spec='${libname}${release}.sl$major'
 
7776
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
7777
  postinstall_cmds='chmod 555 $lib'
 
7778
  ;;
 
7779
 
 
7780
irix5* | irix6* | nonstopux*)
 
7781
  case $host_os in
 
7782
    nonstopux*) version_type=nonstopux ;;
 
7783
    *)          version_type=irix ;;
 
7784
  esac
 
7785
  need_lib_prefix=no
 
7786
  need_version=no
 
7787
  soname_spec='${libname}${release}.so$major'
 
7788
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
 
7789
  case $host_os in
 
7790
  irix5* | nonstopux*)
 
7791
    libsuff= shlibsuff=
 
7792
    ;;
 
7793
  *)
 
7794
    case $LD in # libtool.m4 will add one of these switches to LD
 
7795
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
 
7796
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
 
7797
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
7798
    *) libsuff= shlibsuff= libmagic=never-match;;
 
7799
    esac
 
7800
    ;;
 
7801
  esac
 
7802
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
7803
  shlibpath_overrides_runpath=no
 
7804
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
7805
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
7806
  ;;
 
7807
 
 
7808
# No shared lib support for Linux oldld, aout, or coff.
 
7809
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
 
7810
  dynamic_linker=no
 
7811
  ;;
 
7812
 
 
7813
# This must be Linux ELF.
 
7814
linux-gnu*)
 
7815
  version_type=linux
 
7816
  need_lib_prefix=no
 
7817
  need_version=no
 
7818
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7819
  soname_spec='${libname}${release}.so$major'
 
7820
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
7821
  shlibpath_var=LD_LIBRARY_PATH
 
7822
  shlibpath_overrides_runpath=no
 
7823
  # This implies no fast_install, which is unacceptable.
 
7824
  # Some rework will be needed to allow for fast_install
 
7825
  # before this can be enabled.
 
7826
  hardcode_into_libs=yes
 
7827
 
 
7828
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
7829
  # powerpc, because MkLinux only supported shared libraries with the
 
7830
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
7831
  # most powerpc-linux boxes support dynamic linking these days and
 
7832
  # people can always --disable-shared, the test was removed, and we
 
7833
  # assume the GNU/Linux dynamic linker is in use.
 
7834
  dynamic_linker='GNU/Linux ld.so'
 
7835
  ;;
 
7836
 
 
7837
netbsd*)
 
7838
  version_type=sunos
 
7839
  need_lib_prefix=no
 
7840
  need_version=no
 
7841
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7842
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
7843
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7844
    dynamic_linker='NetBSD (a.out) ld.so'
 
7845
  else
 
7846
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
 
7847
    soname_spec='${libname}${release}.so$major'
 
7848
    dynamic_linker='NetBSD ld.elf_so'
 
7849
  fi
 
7850
  shlibpath_var=LD_LIBRARY_PATH
 
7851
  shlibpath_overrides_runpath=yes
 
7852
  hardcode_into_libs=yes
 
7853
  ;;
 
7854
 
 
7855
newsos6)
 
7856
  version_type=linux
 
7857
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7858
  shlibpath_var=LD_LIBRARY_PATH
 
7859
  shlibpath_overrides_runpath=yes
 
7860
  ;;
 
7861
 
 
7862
openbsd*)
 
7863
  version_type=sunos
 
7864
  need_lib_prefix=no
 
7865
  need_version=no
 
7866
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7867
    case "$host_os" in
 
7868
    openbsd2.[89] | openbsd2.[89].*)
 
7869
      shlibpath_overrides_runpath=no
 
7870
      ;;
 
7871
    *)
 
7872
      shlibpath_overrides_runpath=yes
 
7873
      ;;
 
7874
    esac
 
7875
  else
 
7876
    shlibpath_overrides_runpath=yes
 
7877
  fi
 
7878
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
7879
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
7880
  shlibpath_var=LD_LIBRARY_PATH
 
7881
  ;;
 
7882
 
 
7883
os2*)
 
7884
  libname_spec='$name'
 
7885
  need_lib_prefix=no
 
7886
  library_names_spec='$libname.dll $libname.a'
 
7887
  dynamic_linker='OS/2 ld.exe'
 
7888
  shlibpath_var=LIBPATH
 
7889
  ;;
 
7890
 
 
7891
osf3* | osf4* | osf5*)
 
7892
  version_type=osf
 
7893
  need_version=no
 
7894
  soname_spec='${libname}${release}.so$major'
 
7895
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7896
  shlibpath_var=LD_LIBRARY_PATH
 
7897
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
7898
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
7899
  hardcode_into_libs=yes
 
7900
  ;;
 
7901
 
 
7902
sco3.2v5*)
 
7903
  version_type=osf
 
7904
  soname_spec='${libname}${release}.so$major'
 
7905
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7906
  shlibpath_var=LD_LIBRARY_PATH
 
7907
  ;;
 
7908
 
 
7909
solaris*)
 
7910
  version_type=linux
 
7911
  need_lib_prefix=no
 
7912
  need_version=no
 
7913
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7914
  soname_spec='${libname}${release}.so$major'
 
7915
  shlibpath_var=LD_LIBRARY_PATH
 
7916
  shlibpath_overrides_runpath=yes
 
7917
  hardcode_into_libs=yes
 
7918
  # ldd complains unless libraries are executable
 
7919
  postinstall_cmds='chmod +x $lib'
 
7920
  ;;
 
7921
 
 
7922
sunos4*)
 
7923
  version_type=sunos
 
7924
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 
7925
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
7926
  shlibpath_var=LD_LIBRARY_PATH
 
7927
  shlibpath_overrides_runpath=yes
 
7928
  if test "$with_gnu_ld" = yes; then
 
7929
    need_lib_prefix=no
 
7930
  fi
 
7931
  need_version=yes
 
7932
  ;;
 
7933
 
 
7934
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7935
  version_type=linux
 
7936
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7937
  soname_spec='${libname}${release}.so$major'
 
7938
  shlibpath_var=LD_LIBRARY_PATH
 
7939
  case $host_vendor in
 
7940
    sni)
 
7941
      shlibpath_overrides_runpath=no
 
7942
      need_lib_prefix=no
 
7943
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
7944
      runpath_var=LD_RUN_PATH
 
7945
      ;;
 
7946
    siemens)
 
7947
      need_lib_prefix=no
 
7948
      ;;
 
7949
    motorola)
 
7950
      need_lib_prefix=no
 
7951
      need_version=no
 
7952
      shlibpath_overrides_runpath=no
 
7953
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
7954
      ;;
 
7955
  esac
 
7956
  ;;
 
7957
 
 
7958
uts4*)
 
7959
  version_type=linux
 
7960
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7961
  soname_spec='${libname}${release}.so$major'
 
7962
  shlibpath_var=LD_LIBRARY_PATH
 
7963
  ;;
 
7964
 
 
7965
dgux*)
 
7966
  version_type=linux
 
7967
  need_lib_prefix=no
 
7968
  need_version=no
 
7969
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 
7970
  soname_spec='${libname}${release}.so$major'
 
7971
  shlibpath_var=LD_LIBRARY_PATH
 
7972
  ;;
 
7973
 
 
7974
sysv4*MP*)
 
7975
  if test -d /usr/nec ;then
 
7976
    version_type=linux
 
7977
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
 
7978
    soname_spec='$libname.so.$major'
 
7979
    shlibpath_var=LD_LIBRARY_PATH
 
7980
  fi
 
7981
  ;;
 
7982
 
 
7983
*)
 
7984
  dynamic_linker=no
 
7985
  ;;
 
7986
esac
 
7987
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
7988
echo "${ECHO_T}$dynamic_linker" >&6
 
7989
test "$dynamic_linker" = no && can_build_shared=no
 
7990
 
 
7991
# Report the final consequences.
 
7992
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
7993
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
7994
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
7995
echo "${ECHO_T}$can_build_shared" >&6
 
7996
 
 
7997
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
7998
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
7999
test "$can_build_shared" = "no" && enable_shared=no
 
8000
 
 
8001
# On AIX, shared libraries and static libraries use the same namespace, and
 
8002
# are all built from PIC.
 
8003
case "$host_os" in
 
8004
aix3*)
 
8005
  test "$enable_shared" = yes && enable_static=no
 
8006
  if test -n "$RANLIB"; then
 
8007
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
8008
    postinstall_cmds='$RANLIB $lib'
 
8009
  fi
 
8010
  ;;
 
8011
 
 
8012
aix4*)
 
8013
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
8014
    test "$enable_shared" = yes && enable_static=no
 
8015
  fi
 
8016
  ;;
 
8017
esac
 
8018
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
8019
echo "${ECHO_T}$enable_shared" >&6
 
8020
 
 
8021
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
8022
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
8023
# Make sure either enable_shared or enable_static is yes.
 
8024
test "$enable_shared" = yes || enable_static=yes
 
8025
echo "$as_me:$LINENO: result: $enable_static" >&5
 
8026
echo "${ECHO_T}$enable_static" >&6
 
8027
 
 
8028
if test "$hardcode_action" = relink; then
 
8029
  # Fast installation is not supported
 
8030
  enable_fast_install=no
 
8031
elif test "$shlibpath_overrides_runpath" = yes ||
 
8032
     test "$enable_shared" = no; then
 
8033
  # Fast installation is not necessary
 
8034
  enable_fast_install=needless
 
8035
fi
 
8036
 
 
8037
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8038
if test "$GCC" = yes; then
 
8039
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8040
fi
 
8041
 
 
8042
if test "x$enable_dlopen" != xyes; then
 
8043
  enable_dlopen=unknown
 
8044
  enable_dlopen_self=unknown
 
8045
  enable_dlopen_self_static=unknown
 
8046
else
 
8047
  lt_cv_dlopen=no
 
8048
  lt_cv_dlopen_libs=
 
8049
 
 
8050
  case $host_os in
 
8051
  beos*)
 
8052
    lt_cv_dlopen="load_add_on"
 
8053
    lt_cv_dlopen_libs=
 
8054
    lt_cv_dlopen_self=yes
 
8055
    ;;
 
8056
 
 
8057
  cygwin* | mingw* | pw32*)
 
8058
    lt_cv_dlopen="LoadLibrary"
 
8059
    lt_cv_dlopen_libs=
 
8060
   ;;
 
8061
 
 
8062
  *)
 
8063
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8064
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8065
if test "${ac_cv_func_shl_load+set}" = set; then
 
8066
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8067
else
 
8068
  cat >conftest.$ac_ext <<_ACEOF
 
8069
#line $LINENO "configure"
 
8070
/* confdefs.h.  */
 
8071
_ACEOF
 
8072
cat confdefs.h >>conftest.$ac_ext
 
8073
cat >>conftest.$ac_ext <<_ACEOF
 
8074
/* end confdefs.h.  */
 
8075
/* System header to define __stub macros and hopefully few prototypes,
 
8076
    which can conflict with char shl_load (); below.
 
8077
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8078
    <limits.h> exists even on freestanding compilers.  */
 
8079
#ifdef __STDC__
 
8080
# include <limits.h>
 
8081
#else
 
8082
# include <assert.h>
 
8083
#endif
 
8084
/* Override any gcc2 internal prototype to avoid an error.  */
 
8085
#ifdef __cplusplus
 
8086
extern "C"
 
8087
{
 
8088
#endif
 
8089
/* We use char because int might match the return type of a gcc2
 
8090
   builtin and then its argument prototype would still apply.  */
 
8091
char shl_load ();
 
8092
/* The GNU C library defines this for functions which it implements
 
8093
    to always fail with ENOSYS.  Some functions are actually named
 
8094
    something starting with __ and the normal name is an alias.  */
 
8095
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8096
choke me
 
8097
#else
 
8098
char (*f) () = shl_load;
 
8099
#endif
 
8100
#ifdef __cplusplus
 
8101
}
 
8102
#endif
 
8103
 
 
8104
int
 
8105
main ()
 
8106
{
 
8107
return f != shl_load;
 
8108
  ;
 
8109
  return 0;
 
8110
}
 
8111
_ACEOF
 
8112
rm -f conftest.$ac_objext conftest$ac_exeext
 
8113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8114
  (eval $ac_link) 2>&5
 
8115
  ac_status=$?
 
8116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8117
  (exit $ac_status); } &&
 
8118
         { ac_try='test -s conftest$ac_exeext'
 
8119
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8120
  (eval $ac_try) 2>&5
 
8121
  ac_status=$?
 
8122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8123
  (exit $ac_status); }; }; then
 
8124
  ac_cv_func_shl_load=yes
 
8125
else
 
8126
  echo "$as_me: failed program was:" >&5
 
8127
sed 's/^/| /' conftest.$ac_ext >&5
 
8128
 
 
8129
ac_cv_func_shl_load=no
 
8130
fi
 
8131
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8132
fi
 
8133
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8134
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8135
if test $ac_cv_func_shl_load = yes; then
 
8136
  lt_cv_dlopen="shl_load"
 
8137
else
 
8138
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8139
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8140
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8142
else
 
8143
  ac_check_lib_save_LIBS=$LIBS
 
8144
LIBS="-ldld  $LIBS"
 
8145
cat >conftest.$ac_ext <<_ACEOF
 
8146
#line $LINENO "configure"
 
8147
/* confdefs.h.  */
 
8148
_ACEOF
 
8149
cat confdefs.h >>conftest.$ac_ext
 
8150
cat >>conftest.$ac_ext <<_ACEOF
 
8151
/* end confdefs.h.  */
 
8152
 
 
8153
/* Override any gcc2 internal prototype to avoid an error.  */
 
8154
#ifdef __cplusplus
 
8155
extern "C"
 
8156
#endif
 
8157
/* We use char because int might match the return type of a gcc2
 
8158
   builtin and then its argument prototype would still apply.  */
 
8159
char shl_load ();
 
8160
int
 
8161
main ()
 
8162
{
 
8163
shl_load ();
 
8164
  ;
 
8165
  return 0;
 
8166
}
 
8167
_ACEOF
 
8168
rm -f conftest.$ac_objext conftest$ac_exeext
 
8169
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8170
  (eval $ac_link) 2>&5
 
8171
  ac_status=$?
 
8172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8173
  (exit $ac_status); } &&
 
8174
         { ac_try='test -s conftest$ac_exeext'
 
8175
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8176
  (eval $ac_try) 2>&5
 
8177
  ac_status=$?
 
8178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8179
  (exit $ac_status); }; }; then
 
8180
  ac_cv_lib_dld_shl_load=yes
 
8181
else
 
8182
  echo "$as_me: failed program was:" >&5
 
8183
sed 's/^/| /' conftest.$ac_ext >&5
 
8184
 
 
8185
ac_cv_lib_dld_shl_load=no
 
8186
fi
 
8187
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8188
LIBS=$ac_check_lib_save_LIBS
 
8189
fi
 
8190
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8191
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8192
if test $ac_cv_lib_dld_shl_load = yes; then
 
8193
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8194
else
 
8195
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8196
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8197
if test "${ac_cv_func_dlopen+set}" = set; then
 
8198
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8199
else
 
8200
  cat >conftest.$ac_ext <<_ACEOF
 
8201
#line $LINENO "configure"
 
8202
/* confdefs.h.  */
 
8203
_ACEOF
 
8204
cat confdefs.h >>conftest.$ac_ext
 
8205
cat >>conftest.$ac_ext <<_ACEOF
 
8206
/* end confdefs.h.  */
 
8207
/* System header to define __stub macros and hopefully few prototypes,
 
8208
    which can conflict with char dlopen (); below.
 
8209
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8210
    <limits.h> exists even on freestanding compilers.  */
 
8211
#ifdef __STDC__
 
8212
# include <limits.h>
 
8213
#else
 
8214
# include <assert.h>
 
8215
#endif
 
8216
/* Override any gcc2 internal prototype to avoid an error.  */
 
8217
#ifdef __cplusplus
 
8218
extern "C"
 
8219
{
 
8220
#endif
 
8221
/* We use char because int might match the return type of a gcc2
 
8222
   builtin and then its argument prototype would still apply.  */
 
8223
char dlopen ();
 
8224
/* The GNU C library defines this for functions which it implements
 
8225
    to always fail with ENOSYS.  Some functions are actually named
 
8226
    something starting with __ and the normal name is an alias.  */
 
8227
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8228
choke me
 
8229
#else
 
8230
char (*f) () = dlopen;
 
8231
#endif
 
8232
#ifdef __cplusplus
 
8233
}
 
8234
#endif
 
8235
 
 
8236
int
 
8237
main ()
 
8238
{
 
8239
return f != dlopen;
 
8240
  ;
 
8241
  return 0;
 
8242
}
 
8243
_ACEOF
 
8244
rm -f conftest.$ac_objext conftest$ac_exeext
 
8245
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8246
  (eval $ac_link) 2>&5
 
8247
  ac_status=$?
 
8248
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8249
  (exit $ac_status); } &&
 
8250
         { ac_try='test -s conftest$ac_exeext'
 
8251
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8252
  (eval $ac_try) 2>&5
 
8253
  ac_status=$?
 
8254
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8255
  (exit $ac_status); }; }; then
 
8256
  ac_cv_func_dlopen=yes
 
8257
else
 
8258
  echo "$as_me: failed program was:" >&5
 
8259
sed 's/^/| /' conftest.$ac_ext >&5
 
8260
 
 
8261
ac_cv_func_dlopen=no
 
8262
fi
 
8263
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8264
fi
 
8265
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8266
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8267
if test $ac_cv_func_dlopen = yes; then
 
8268
  lt_cv_dlopen="dlopen"
 
8269
else
 
8270
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8271
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8272
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8273
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8274
else
 
8275
  ac_check_lib_save_LIBS=$LIBS
 
8276
LIBS="-ldl  $LIBS"
 
8277
cat >conftest.$ac_ext <<_ACEOF
 
8278
#line $LINENO "configure"
 
8279
/* confdefs.h.  */
 
8280
_ACEOF
 
8281
cat confdefs.h >>conftest.$ac_ext
 
8282
cat >>conftest.$ac_ext <<_ACEOF
 
8283
/* end confdefs.h.  */
 
8284
 
 
8285
/* Override any gcc2 internal prototype to avoid an error.  */
 
8286
#ifdef __cplusplus
 
8287
extern "C"
 
8288
#endif
 
8289
/* We use char because int might match the return type of a gcc2
 
8290
   builtin and then its argument prototype would still apply.  */
 
8291
char dlopen ();
 
8292
int
 
8293
main ()
 
8294
{
 
8295
dlopen ();
 
8296
  ;
 
8297
  return 0;
 
8298
}
 
8299
_ACEOF
 
8300
rm -f conftest.$ac_objext conftest$ac_exeext
 
8301
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8302
  (eval $ac_link) 2>&5
 
8303
  ac_status=$?
 
8304
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8305
  (exit $ac_status); } &&
 
8306
         { ac_try='test -s conftest$ac_exeext'
 
8307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8308
  (eval $ac_try) 2>&5
 
8309
  ac_status=$?
 
8310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8311
  (exit $ac_status); }; }; then
 
8312
  ac_cv_lib_dl_dlopen=yes
 
8313
else
 
8314
  echo "$as_me: failed program was:" >&5
 
8315
sed 's/^/| /' conftest.$ac_ext >&5
 
8316
 
 
8317
ac_cv_lib_dl_dlopen=no
 
8318
fi
 
8319
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8320
LIBS=$ac_check_lib_save_LIBS
 
8321
fi
 
8322
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8323
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8324
if test $ac_cv_lib_dl_dlopen = yes; then
 
8325
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8326
else
 
8327
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8328
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8329
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8330
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8331
else
 
8332
  ac_check_lib_save_LIBS=$LIBS
 
8333
LIBS="-lsvld  $LIBS"
 
8334
cat >conftest.$ac_ext <<_ACEOF
 
8335
#line $LINENO "configure"
 
8336
/* confdefs.h.  */
 
8337
_ACEOF
 
8338
cat confdefs.h >>conftest.$ac_ext
 
8339
cat >>conftest.$ac_ext <<_ACEOF
 
8340
/* end confdefs.h.  */
 
8341
 
 
8342
/* Override any gcc2 internal prototype to avoid an error.  */
 
8343
#ifdef __cplusplus
 
8344
extern "C"
 
8345
#endif
 
8346
/* We use char because int might match the return type of a gcc2
 
8347
   builtin and then its argument prototype would still apply.  */
 
8348
char dlopen ();
 
8349
int
 
8350
main ()
 
8351
{
 
8352
dlopen ();
 
8353
  ;
 
8354
  return 0;
 
8355
}
 
8356
_ACEOF
 
8357
rm -f conftest.$ac_objext conftest$ac_exeext
 
8358
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8359
  (eval $ac_link) 2>&5
 
8360
  ac_status=$?
 
8361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8362
  (exit $ac_status); } &&
 
8363
         { ac_try='test -s conftest$ac_exeext'
 
8364
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8365
  (eval $ac_try) 2>&5
 
8366
  ac_status=$?
 
8367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8368
  (exit $ac_status); }; }; then
 
8369
  ac_cv_lib_svld_dlopen=yes
 
8370
else
 
8371
  echo "$as_me: failed program was:" >&5
 
8372
sed 's/^/| /' conftest.$ac_ext >&5
 
8373
 
 
8374
ac_cv_lib_svld_dlopen=no
 
8375
fi
 
8376
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8377
LIBS=$ac_check_lib_save_LIBS
 
8378
fi
 
8379
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8380
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8381
if test $ac_cv_lib_svld_dlopen = yes; then
 
8382
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8383
else
 
8384
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8385
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8386
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8387
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8388
else
 
8389
  ac_check_lib_save_LIBS=$LIBS
 
8390
LIBS="-ldld  $LIBS"
 
8391
cat >conftest.$ac_ext <<_ACEOF
 
8392
#line $LINENO "configure"
 
8393
/* confdefs.h.  */
 
8394
_ACEOF
 
8395
cat confdefs.h >>conftest.$ac_ext
 
8396
cat >>conftest.$ac_ext <<_ACEOF
 
8397
/* end confdefs.h.  */
 
8398
 
 
8399
/* Override any gcc2 internal prototype to avoid an error.  */
 
8400
#ifdef __cplusplus
 
8401
extern "C"
 
8402
#endif
 
8403
/* We use char because int might match the return type of a gcc2
 
8404
   builtin and then its argument prototype would still apply.  */
 
8405
char dld_link ();
 
8406
int
 
8407
main ()
 
8408
{
 
8409
dld_link ();
 
8410
  ;
 
8411
  return 0;
 
8412
}
 
8413
_ACEOF
 
8414
rm -f conftest.$ac_objext conftest$ac_exeext
 
8415
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8416
  (eval $ac_link) 2>&5
 
8417
  ac_status=$?
 
8418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8419
  (exit $ac_status); } &&
 
8420
         { ac_try='test -s conftest$ac_exeext'
 
8421
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8422
  (eval $ac_try) 2>&5
 
8423
  ac_status=$?
 
8424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8425
  (exit $ac_status); }; }; then
 
8426
  ac_cv_lib_dld_dld_link=yes
 
8427
else
 
8428
  echo "$as_me: failed program was:" >&5
 
8429
sed 's/^/| /' conftest.$ac_ext >&5
 
8430
 
 
8431
ac_cv_lib_dld_dld_link=no
 
8432
fi
 
8433
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
8434
LIBS=$ac_check_lib_save_LIBS
 
8435
fi
 
8436
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8437
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8438
if test $ac_cv_lib_dld_dld_link = yes; then
 
8439
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8440
fi
 
8441
 
 
8442
 
 
8443
fi
 
8444
 
 
8445
 
 
8446
fi
 
8447
 
 
8448
 
 
8449
fi
 
8450
 
 
8451
 
 
8452
fi
 
8453
 
 
8454
 
 
8455
fi
 
8456
 
 
8457
    ;;
 
8458
  esac
 
8459
 
 
8460
  if test "x$lt_cv_dlopen" != xno; then
 
8461
    enable_dlopen=yes
 
8462
  else
 
8463
    enable_dlopen=no
 
8464
  fi
 
8465
 
 
8466
  case $lt_cv_dlopen in
 
8467
  dlopen)
 
8468
    save_CPPFLAGS="$CPPFLAGS"
 
8469
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
8470
 
 
8471
    save_LDFLAGS="$LDFLAGS"
 
8472
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
8473
 
 
8474
    save_LIBS="$LIBS"
 
8475
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
8476
 
 
8477
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8478
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
8479
if test "${lt_cv_dlopen_self+set}" = set; then
 
8480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8481
else
 
8482
          if test "$cross_compiling" = yes; then :
 
8483
  lt_cv_dlopen_self=cross
 
8484
else
 
8485
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8486
  lt_status=$lt_dlunknown
 
8487
  cat > conftest.$ac_ext <<EOF
 
8488
#line 8488 "configure"
 
8489
#include "confdefs.h"
 
8490
 
 
8491
#if HAVE_DLFCN_H
 
8492
#include <dlfcn.h>
 
8493
#endif
 
8494
 
 
8495
#include <stdio.h>
 
8496
 
 
8497
#ifdef RTLD_GLOBAL
 
8498
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8499
#else
 
8500
#  ifdef DL_GLOBAL
 
8501
#    define LT_DLGLOBAL         DL_GLOBAL
 
8502
#  else
 
8503
#    define LT_DLGLOBAL         0
 
8504
#  endif
 
8505
#endif
 
8506
 
 
8507
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8508
   find out it does not work in some platform. */
 
8509
#ifndef LT_DLLAZY_OR_NOW
 
8510
#  ifdef RTLD_LAZY
 
8511
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8512
#  else
 
8513
#    ifdef DL_LAZY
 
8514
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8515
#    else
 
8516
#      ifdef RTLD_NOW
 
8517
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8518
#      else
 
8519
#        ifdef DL_NOW
 
8520
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8521
#        else
 
8522
#          define LT_DLLAZY_OR_NOW      0
 
8523
#        endif
 
8524
#      endif
 
8525
#    endif
 
8526
#  endif
 
8527
#endif
 
8528
 
 
8529
#ifdef __cplusplus
 
8530
extern "C" void exit (int);
 
8531
#endif
 
8532
 
 
8533
void fnord() { int i=42;}
 
8534
int main ()
 
8535
{
 
8536
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8537
  int status = $lt_dlunknown;
 
8538
 
 
8539
  if (self)
 
8540
    {
 
8541
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8542
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8543
      /* dlclose (self); */
 
8544
    }
 
8545
 
 
8546
    exit (status);
 
8547
}
 
8548
EOF
 
8549
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8550
  (eval $ac_link) 2>&5
 
8551
  ac_status=$?
 
8552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8553
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8554
    (./conftest; exit; ) 2>/dev/null
 
8555
    lt_status=$?
 
8556
    case x$lt_status in
 
8557
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
8558
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
8559
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
8560
    esac
 
8561
  else :
 
8562
    # compilation failed
 
8563
    lt_cv_dlopen_self=no
 
8564
  fi
 
8565
fi
 
8566
rm -fr conftest*
 
8567
 
 
8568
 
 
8569
fi
 
8570
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8571
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
8572
 
 
8573
    if test "x$lt_cv_dlopen_self" = xyes; then
 
8574
      LDFLAGS="$LDFLAGS $link_static_flag"
 
8575
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8576
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
8577
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
8578
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8579
else
 
8580
          if test "$cross_compiling" = yes; then :
 
8581
  lt_cv_dlopen_self_static=cross
 
8582
else
 
8583
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
8584
  lt_status=$lt_dlunknown
 
8585
  cat > conftest.$ac_ext <<EOF
 
8586
#line 8586 "configure"
 
8587
#include "confdefs.h"
 
8588
 
 
8589
#if HAVE_DLFCN_H
 
8590
#include <dlfcn.h>
 
8591
#endif
 
8592
 
 
8593
#include <stdio.h>
 
8594
 
 
8595
#ifdef RTLD_GLOBAL
 
8596
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
8597
#else
 
8598
#  ifdef DL_GLOBAL
 
8599
#    define LT_DLGLOBAL         DL_GLOBAL
 
8600
#  else
 
8601
#    define LT_DLGLOBAL         0
 
8602
#  endif
 
8603
#endif
 
8604
 
 
8605
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
8606
   find out it does not work in some platform. */
 
8607
#ifndef LT_DLLAZY_OR_NOW
 
8608
#  ifdef RTLD_LAZY
 
8609
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
8610
#  else
 
8611
#    ifdef DL_LAZY
 
8612
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
8613
#    else
 
8614
#      ifdef RTLD_NOW
 
8615
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
8616
#      else
 
8617
#        ifdef DL_NOW
 
8618
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
8619
#        else
 
8620
#          define LT_DLLAZY_OR_NOW      0
 
8621
#        endif
 
8622
#      endif
 
8623
#    endif
 
8624
#  endif
 
8625
#endif
 
8626
 
 
8627
#ifdef __cplusplus
 
8628
extern "C" void exit (int);
 
8629
#endif
 
8630
 
 
8631
void fnord() { int i=42;}
 
8632
int main ()
 
8633
{
 
8634
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
8635
  int status = $lt_dlunknown;
 
8636
 
 
8637
  if (self)
 
8638
    {
 
8639
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
8640
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
8641
      /* dlclose (self); */
 
8642
    }
 
8643
 
 
8644
    exit (status);
 
8645
}
 
8646
EOF
 
8647
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8648
  (eval $ac_link) 2>&5
 
8649
  ac_status=$?
 
8650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8651
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
8652
    (./conftest; exit; ) 2>/dev/null
 
8653
    lt_status=$?
 
8654
    case x$lt_status in
 
8655
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
8656
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
8657
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
8658
    esac
 
8659
  else :
 
8660
    # compilation failed
 
8661
    lt_cv_dlopen_self_static=no
 
8662
  fi
 
8663
fi
 
8664
rm -fr conftest*
 
8665
 
 
8666
 
 
8667
fi
 
8668
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
8669
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
8670
    fi
 
8671
 
 
8672
    CPPFLAGS="$save_CPPFLAGS"
 
8673
    LDFLAGS="$save_LDFLAGS"
 
8674
    LIBS="$save_LIBS"
 
8675
    ;;
 
8676
  esac
 
8677
 
 
8678
  case $lt_cv_dlopen_self in
 
8679
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
8680
  *) enable_dlopen_self=unknown ;;
 
8681
  esac
 
8682
 
 
8683
  case $lt_cv_dlopen_self_static in
 
8684
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
8685
  *) enable_dlopen_self_static=unknown ;;
 
8686
  esac
 
8687
fi
 
8688
 
 
8689
 
 
8690
if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8691
  case $archive_cmds in
 
8692
  *'~'*)
 
8693
    # FIXME: we may have to deal with multi-command sequences.
 
8694
    ;;
 
8695
  '$CC '*)
 
8696
    # Test whether the compiler implicitly links with -lc since on some
 
8697
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8698
    # to ld, don't add -lc before -lgcc.
 
8699
    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8700
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
8701
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
 
8702
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8703
else
 
8704
  $rm conftest*
 
8705
    echo 'static int dummy;' > conftest.$ac_ext
 
8706
 
 
8707
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8708
  (eval $ac_compile) 2>&5
 
8709
  ac_status=$?
 
8710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8711
  (exit $ac_status); }; then
 
8712
      soname=conftest
 
8713
      lib=conftest
 
8714
      libobjs=conftest.$ac_objext
 
8715
      deplibs=
 
8716
      wl=$lt_cv_prog_cc_wl
 
8717
      compiler_flags=-v
 
8718
      linker_flags=-v
 
8719
      verstring=
 
8720
      output_objdir=.
 
8721
      libname=conftest
 
8722
      save_allow_undefined_flag=$allow_undefined_flag
 
8723
      allow_undefined_flag=
 
8724
      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8725
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8726
  ac_status=$?
 
8727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8728
  (exit $ac_status); }
 
8729
      then
 
8730
        lt_cv_archive_cmds_need_lc=no
 
8731
      else
 
8732
        lt_cv_archive_cmds_need_lc=yes
 
8733
      fi
 
8734
      allow_undefined_flag=$save_allow_undefined_flag
 
8735
    else
 
8736
      cat conftest.err 1>&5
 
8737
    fi
 
8738
fi
 
8739
 
 
8740
    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
 
8741
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
 
8742
    ;;
 
8743
  esac
 
8744
fi
 
8745
need_lc=${lt_cv_archive_cmds_need_lc-yes}
 
8746
 
 
8747
# The second clause should only fire when bootstrapping the
 
8748
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
8749
# with your package, and you will get complaints that there are
 
8750
# no rules to generate ltmain.sh.
 
8751
if test -f "$ltmain"; then
 
8752
  :
 
8753
else
 
8754
  # If there is no Makefile yet, we rely on a make rule to execute
 
8755
  # `config.status --recheck' to rerun these tests and create the
 
8756
  # libtool script then.
 
8757
  test -f Makefile && make "$ltmain"
 
8758
fi
 
8759
 
 
8760
if test -f "$ltmain"; then
 
8761
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
 
8762
  $rm -f "${ofile}T"
 
8763
 
 
8764
  echo creating $ofile
 
8765
 
 
8766
  # Now quote all the things that may contain metacharacters while being
 
8767
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
8768
  # variables and quote the copies for generation of the libtool script.
 
8769
  for var in echo old_CC old_CFLAGS SED \
 
8770
    AR AR_FLAGS CC LD LN_S NM SHELL \
 
8771
    reload_flag reload_cmds wl \
 
8772
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
 
8773
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
 
8774
    library_names_spec soname_spec \
 
8775
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
 
8776
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
 
8777
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
 
8778
    old_striplib striplib file_magic_cmd export_symbols_cmds \
 
8779
    deplibs_check_method allow_undefined_flag no_undefined_flag \
 
8780
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
 
8781
    global_symbol_to_c_name_address \
 
8782
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
8783
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
8784
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
8785
 
 
8786
    case $var in
 
8787
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
8788
    old_postinstall_cmds | old_postuninstall_cmds | \
 
8789
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
 
8790
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
 
8791
    postinstall_cmds | postuninstall_cmds | \
 
8792
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
8793
      # Double-quote double-evaled strings.
 
8794
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
8795
      ;;
 
8796
    *)
 
8797
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
8798
      ;;
 
8799
    esac
 
8800
  done
 
8801
 
 
8802
  cat <<__EOF__ > "${ofile}T"
 
8803
#! $SHELL
 
8804
 
 
8805
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
8806
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
8807
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
8808
#
 
8809
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
8810
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
8811
#
 
8812
# This program is free software; you can redistribute it and/or modify
 
8813
# it under the terms of the GNU General Public License as published by
 
8814
# the Free Software Foundation; either version 2 of the License, or
 
8815
# (at your option) any later version.
 
8816
#
 
8817
# This program is distributed in the hope that it will be useful, but
 
8818
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
8819
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
8820
# General Public License for more details.
 
8821
#
 
8822
# You should have received a copy of the GNU General Public License
 
8823
# along with this program; if not, write to the Free Software
 
8824
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
8825
#
 
8826
# As a special exception to the GNU General Public License, if you
 
8827
# distribute this file as part of a program that contains a
 
8828
# configuration script generated by Autoconf, you may include it under
 
8829
# the same distribution terms that you use for the rest of that program.
 
8830
 
 
8831
# A sed that does not truncate output.
 
8832
SED=$lt_SED
 
8833
 
 
8834
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
8835
Xsed="${SED} -e s/^X//"
 
8836
 
 
8837
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
8838
# if CDPATH is set.
 
8839
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
8840
 
 
8841
# ### BEGIN LIBTOOL CONFIG
 
8842
 
 
8843
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
8844
 
 
8845
# Shell to use when invoking shell scripts.
 
8846
SHELL=$lt_SHELL
 
8847
 
 
8848
# Whether or not to build shared libraries.
 
8849
build_libtool_libs=$enable_shared
 
8850
 
 
8851
# Whether or not to build static libraries.
 
8852
build_old_libs=$enable_static
 
8853
 
 
8854
# Whether or not to add -lc for building shared libraries.
 
8855
build_libtool_need_lc=$need_lc
 
8856
 
 
8857
# Whether or not to optimize for fast installation.
 
8858
fast_install=$enable_fast_install
 
8859
 
 
8860
# The host system.
 
8861
host_alias=$host_alias
 
8862
host=$host
 
8863
 
 
8864
# An echo program that does not interpret backslashes.
 
8865
echo=$lt_echo
 
8866
 
 
8867
# The archiver.
 
8868
AR=$lt_AR
 
8869
AR_FLAGS=$lt_AR_FLAGS
 
8870
 
 
8871
# The default C compiler.
 
8872
CC=$lt_CC
 
8873
 
 
8874
# Is the compiler the GNU C compiler?
 
8875
with_gcc=$GCC
 
8876
 
 
8877
# The linker used to build libraries.
 
8878
LD=$lt_LD
 
8879
 
 
8880
# Whether we need hard or soft links.
 
8881
LN_S=$lt_LN_S
 
8882
 
 
8883
# A BSD-compatible nm program.
 
8884
NM=$lt_NM
 
8885
 
 
8886
# A symbol stripping program
 
8887
STRIP=$STRIP
 
8888
 
 
8889
# Used to examine libraries when file_magic_cmd begins "file"
 
8890
MAGIC_CMD=$MAGIC_CMD
 
8891
 
 
8892
# Used on cygwin: DLL creation program.
 
8893
DLLTOOL="$DLLTOOL"
 
8894
 
 
8895
# Used on cygwin: object dumper.
 
8896
OBJDUMP="$OBJDUMP"
 
8897
 
 
8898
# Used on cygwin: assembler.
 
8899
AS="$AS"
 
8900
 
 
8901
# The name of the directory that contains temporary libtool files.
 
8902
objdir=$objdir
 
8903
 
 
8904
# How to create reloadable object files.
 
8905
reload_flag=$lt_reload_flag
 
8906
reload_cmds=$lt_reload_cmds
 
8907
 
 
8908
# How to pass a linker flag through the compiler.
 
8909
wl=$lt_wl
 
8910
 
 
8911
# Object file suffix (normally "o").
 
8912
objext="$ac_objext"
 
8913
 
 
8914
# Old archive suffix (normally "a").
 
8915
libext="$libext"
 
8916
 
 
8917
# Executable file suffix (normally "").
 
8918
exeext="$exeext"
 
8919
 
 
8920
# Additional compiler flags for building library objects.
 
8921
pic_flag=$lt_pic_flag
 
8922
pic_mode=$pic_mode
 
8923
 
 
8924
# Does compiler simultaneously support -c and -o options?
 
8925
compiler_c_o=$lt_compiler_c_o
 
8926
 
 
8927
# Can we write directly to a .lo ?
 
8928
compiler_o_lo=$lt_compiler_o_lo
 
8929
 
 
8930
# Must we lock files when doing compilation ?
 
8931
need_locks=$lt_need_locks
 
8932
 
 
8933
# Do we need the lib prefix for modules?
 
8934
need_lib_prefix=$need_lib_prefix
 
8935
 
 
8936
# Do we need a version for libraries?
 
8937
need_version=$need_version
 
8938
 
 
8939
# Whether dlopen is supported.
 
8940
dlopen_support=$enable_dlopen
 
8941
 
 
8942
# Whether dlopen of programs is supported.
 
8943
dlopen_self=$enable_dlopen_self
 
8944
 
 
8945
# Whether dlopen of statically linked programs is supported.
 
8946
dlopen_self_static=$enable_dlopen_self_static
 
8947
 
 
8948
# Compiler flag to prevent dynamic linking.
 
8949
link_static_flag=$lt_link_static_flag
 
8950
 
 
8951
# Compiler flag to turn off builtin functions.
 
8952
no_builtin_flag=$lt_no_builtin_flag
 
8953
 
 
8954
# Compiler flag to allow reflexive dlopens.
 
8955
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
8956
 
 
8957
# Compiler flag to generate shared objects directly from archives.
 
8958
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
8959
 
 
8960
# Compiler flag to generate thread-safe objects.
 
8961
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
8962
 
 
8963
# Library versioning type.
 
8964
version_type=$version_type
 
8965
 
 
8966
# Format of library name prefix.
 
8967
libname_spec=$lt_libname_spec
 
8968
 
 
8969
# List of archive names.  First name is the real one, the rest are links.
 
8970
# The last name is the one that the linker finds with -lNAME.
 
8971
library_names_spec=$lt_library_names_spec
 
8972
 
 
8973
# The coded name of the library, if different from the real name.
 
8974
soname_spec=$lt_soname_spec
 
8975
 
 
8976
# Commands used to build and install an old-style archive.
 
8977
RANLIB=$lt_RANLIB
 
8978
old_archive_cmds=$lt_old_archive_cmds
 
8979
old_postinstall_cmds=$lt_old_postinstall_cmds
 
8980
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
8981
 
 
8982
# Create an old-style archive from a shared archive.
 
8983
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
8984
 
 
8985
# Create a temporary old-style archive to link instead of a shared archive.
 
8986
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
8987
 
 
8988
# Commands used to build and install a shared archive.
 
8989
archive_cmds=$lt_archive_cmds
 
8990
archive_expsym_cmds=$lt_archive_expsym_cmds
 
8991
postinstall_cmds=$lt_postinstall_cmds
 
8992
postuninstall_cmds=$lt_postuninstall_cmds
 
8993
 
 
8994
# Commands to strip libraries.
 
8995
old_striplib=$lt_old_striplib
 
8996
striplib=$lt_striplib
 
8997
 
 
8998
# Method to check whether dependent libraries are shared objects.
 
8999
deplibs_check_method=$lt_deplibs_check_method
 
9000
 
 
9001
# Command to use when deplibs_check_method == file_magic.
 
9002
file_magic_cmd=$lt_file_magic_cmd
 
9003
 
 
9004
# Flag that allows shared libraries with undefined symbols to be built.
 
9005
allow_undefined_flag=$lt_allow_undefined_flag
 
9006
 
 
9007
# Flag that forces no undefined symbols.
 
9008
no_undefined_flag=$lt_no_undefined_flag
 
9009
 
 
9010
# Commands used to finish a libtool library installation in a directory.
 
9011
finish_cmds=$lt_finish_cmds
 
9012
 
 
9013
# Same as above, but a single script fragment to be evaled but not shown.
 
9014
finish_eval=$lt_finish_eval
 
9015
 
 
9016
# Take the output of nm and produce a listing of raw symbols and C names.
 
9017
global_symbol_pipe=$lt_global_symbol_pipe
 
9018
 
 
9019
# Transform the output of nm in a proper C declaration
 
9020
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
9021
 
 
9022
# Transform the output of nm in a C name address pair
 
9023
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
 
9024
 
 
9025
# This is the shared library runtime path variable.
 
9026
runpath_var=$runpath_var
 
9027
 
 
9028
# This is the shared library path variable.
 
9029
shlibpath_var=$shlibpath_var
 
9030
 
 
9031
# Is shlibpath searched before the hard-coded library search path?
 
9032
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9033
 
 
9034
# How to hardcode a shared library path into an executable.
 
9035
hardcode_action=$hardcode_action
 
9036
 
 
9037
# Whether we should hardcode library paths into libraries.
 
9038
hardcode_into_libs=$hardcode_into_libs
 
9039
 
 
9040
# Flag to hardcode \$libdir into a binary during linking.
 
9041
# This must work even if \$libdir does not exist.
 
9042
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9043
 
 
9044
# Whether we need a single -rpath flag with a separated argument.
 
9045
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9046
 
 
9047
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
9048
# resulting binary.
 
9049
hardcode_direct=$hardcode_direct
 
9050
 
 
9051
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9052
# resulting binary.
 
9053
hardcode_minus_L=$hardcode_minus_L
 
9054
 
 
9055
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9056
# the resulting binary.
 
9057
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9058
 
 
9059
# Variables whose values should be saved in libtool wrapper scripts and
 
9060
# restored at relink time.
 
9061
variables_saved_for_relink="$variables_saved_for_relink"
 
9062
 
 
9063
# Whether libtool must link a program against all its dependency libraries.
 
9064
link_all_deplibs=$link_all_deplibs
 
9065
 
 
9066
# Compile-time system search path for libraries
 
9067
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9068
 
 
9069
# Run-time system search path for libraries
 
9070
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9071
 
 
9072
# Fix the shell variable \$srcfile for the compiler.
 
9073
fix_srcfile_path="$fix_srcfile_path"
 
9074
 
 
9075
# Set to yes if exported symbols are required.
 
9076
always_export_symbols=$always_export_symbols
 
9077
 
 
9078
# The commands to list exported symbols.
 
9079
export_symbols_cmds=$lt_export_symbols_cmds
 
9080
 
 
9081
# The commands to extract the exported symbol list from a shared archive.
 
9082
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9083
 
 
9084
# Symbols that should not be listed in the preloaded symbols.
 
9085
exclude_expsyms=$lt_exclude_expsyms
 
9086
 
 
9087
# Symbols that must always be exported.
 
9088
include_expsyms=$lt_include_expsyms
 
9089
 
 
9090
# ### END LIBTOOL CONFIG
 
9091
 
 
9092
__EOF__
 
9093
 
 
9094
  case $host_os in
 
9095
  aix3*)
 
9096
    cat <<\EOF >> "${ofile}T"
 
9097
 
 
9098
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9099
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9100
# vanish in a puff of smoke.
 
9101
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9102
  COLLECT_NAMES=
 
9103
  export COLLECT_NAMES
 
9104
fi
 
9105
EOF
 
9106
    ;;
 
9107
  esac
 
9108
 
 
9109
  case $host_os in
 
9110
  cygwin* | mingw* | pw32* | os2*)
 
9111
    cat <<'EOF' >> "${ofile}T"
 
9112
      # This is a source program that is used to create dlls on Windows
 
9113
      # Don't remove nor modify the starting and closing comments
 
9114
# /* ltdll.c starts here */
 
9115
# #define WIN32_LEAN_AND_MEAN
 
9116
# #include <windows.h>
 
9117
# #undef WIN32_LEAN_AND_MEAN
 
9118
# #include <stdio.h>
 
9119
#
 
9120
# #ifndef __CYGWIN__
 
9121
# #  ifdef __CYGWIN32__
 
9122
# #    define __CYGWIN__ __CYGWIN32__
 
9123
# #  endif
 
9124
# #endif
 
9125
#
 
9126
# #ifdef __cplusplus
 
9127
# extern "C" {
 
9128
# #endif
 
9129
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
 
9130
# #ifdef __cplusplus
 
9131
# }
 
9132
# #endif
 
9133
#
 
9134
# #ifdef __CYGWIN__
 
9135
# #include <cygwin/cygwin_dll.h>
 
9136
# DECLARE_CYGWIN_DLL( DllMain );
 
9137
# #endif
 
9138
# HINSTANCE __hDllInstance_base;
 
9139
#
 
9140
# BOOL APIENTRY
 
9141
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
 
9142
# {
 
9143
#   __hDllInstance_base = hInst;
 
9144
#   return TRUE;
 
9145
# }
 
9146
# /* ltdll.c ends here */
 
9147
        # This is a source program that is used to create import libraries
 
9148
        # on Windows for dlls which lack them. Don't remove nor modify the
 
9149
        # starting and closing comments
 
9150
# /* impgen.c starts here */
 
9151
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
 
9152
#
 
9153
#  This file is part of GNU libtool.
 
9154
#
 
9155
#  This program is free software; you can redistribute it and/or modify
 
9156
#  it under the terms of the GNU General Public License as published by
 
9157
#  the Free Software Foundation; either version 2 of the License, or
 
9158
#  (at your option) any later version.
 
9159
#
 
9160
#  This program is distributed in the hope that it will be useful,
 
9161
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9162
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
9163
#  GNU General Public License for more details.
 
9164
#
 
9165
#  You should have received a copy of the GNU General Public License
 
9166
#  along with this program; if not, write to the Free Software
 
9167
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9168
#  */
 
9169
#
 
9170
# #include <stdio.h>            /* for printf() */
 
9171
# #include <unistd.h>           /* for open(), lseek(), read() */
 
9172
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
 
9173
# #include <string.h>           /* for strdup() */
 
9174
#
 
9175
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
 
9176
# #ifndef O_BINARY
 
9177
# #define O_BINARY 0
 
9178
# #endif
 
9179
#
 
9180
# static unsigned int
 
9181
# pe_get16 (fd, offset)
 
9182
#      int fd;
 
9183
#      int offset;
 
9184
# {
 
9185
#   unsigned char b[2];
 
9186
#   lseek (fd, offset, SEEK_SET);
 
9187
#   read (fd, b, 2);
 
9188
#   return b[0] + (b[1]<<8);
 
9189
# }
 
9190
#
 
9191
# static unsigned int
 
9192
# pe_get32 (fd, offset)
 
9193
#     int fd;
 
9194
#     int offset;
 
9195
# {
 
9196
#   unsigned char b[4];
 
9197
#   lseek (fd, offset, SEEK_SET);
 
9198
#   read (fd, b, 4);
 
9199
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
9200
# }
 
9201
#
 
9202
# static unsigned int
 
9203
# pe_as32 (ptr)
 
9204
#      void *ptr;
 
9205
# {
 
9206
#   unsigned char *b = ptr;
 
9207
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
 
9208
# }
 
9209
#
 
9210
# int
 
9211
# main (argc, argv)
 
9212
#     int argc;
 
9213
#     char *argv[];
 
9214
# {
 
9215
#     int dll;
 
9216
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
 
9217
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
 
9218
#     unsigned long name_rvas, nexp;
 
9219
#     unsigned char *expdata, *erva;
 
9220
#     char *filename, *dll_name;
 
9221
#
 
9222
#     filename = argv[1];
 
9223
#
 
9224
#     dll = open(filename, O_RDONLY|O_BINARY);
 
9225
#     if (dll < 1)
 
9226
#       return 1;
 
9227
#
 
9228
#     dll_name = filename;
 
9229
#
 
9230
#     for (i=0; filename[i]; i++)
 
9231
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
 
9232
#           dll_name = filename + i +1;
 
9233
#
 
9234
#     pe_header_offset = pe_get32 (dll, 0x3c);
 
9235
#     opthdr_ofs = pe_header_offset + 4 + 20;
 
9236
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
 
9237
#
 
9238
#     if (num_entries < 1) /* no exports */
 
9239
#       return 1;
 
9240
#
 
9241
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
 
9242
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
 
9243
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
 
9244
#     secptr = (pe_header_offset + 4 + 20 +
 
9245
#             pe_get16 (dll, pe_header_offset + 4 + 16));
 
9246
#
 
9247
#     expptr = 0;
 
9248
#     for (i = 0; i < nsections; i++)
 
9249
#     {
 
9250
#       char sname[8];
 
9251
#       unsigned long secptr1 = secptr + 40 * i;
 
9252
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
 
9253
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
 
9254
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
 
9255
#       lseek(dll, secptr1, SEEK_SET);
 
9256
#       read(dll, sname, 8);
 
9257
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
 
9258
#       {
 
9259
#           expptr = fptr + (export_rva - vaddr);
 
9260
#           if (export_rva + export_size > vaddr + vsize)
 
9261
#               export_size = vsize - (export_rva - vaddr);
 
9262
#           break;
 
9263
#       }
 
9264
#     }
 
9265
#
 
9266
#     expdata = (unsigned char*)malloc(export_size);
 
9267
#     lseek (dll, expptr, SEEK_SET);
 
9268
#     read (dll, expdata, export_size);
 
9269
#     erva = expdata - export_rva;
 
9270
#
 
9271
#     nexp = pe_as32 (expdata+24);
 
9272
#     name_rvas = pe_as32 (expdata+32);
 
9273
#
 
9274
#     printf ("EXPORTS\n");
 
9275
#     for (i = 0; i<nexp; i++)
 
9276
#     {
 
9277
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
 
9278
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
 
9279
#     }
 
9280
#
 
9281
#     return 0;
 
9282
# }
 
9283
# /* impgen.c ends here */
 
9284
 
 
9285
EOF
 
9286
    ;;
 
9287
  esac
 
9288
 
 
9289
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9290
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9291
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9292
  # is reportedly fixed, but why not run on old versions too?
 
9293
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
9294
 
 
9295
  mv -f "${ofile}T" "$ofile" || \
 
9296
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
9297
  chmod +x "$ofile"
 
9298
fi
 
9299
 
 
9300
 
 
9301
 
 
9302
 
 
9303
 
 
9304
# This can be used to rebuild libtool when needed
 
9305
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
9306
 
 
9307
# Always use our own libtool.
 
9308
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
9309
 
 
9310
# Prevent multiple expansion
 
9311
 
 
9312
 
 
9313
 
 
9314
 
 
9315
for ac_header in locale.h
 
9316
do
 
9317
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
9318
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9319
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9320
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9321
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9322
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9323
fi
 
9324
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9325
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9326
else
 
9327
  # Is the header compilable?
 
9328
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
9329
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
9330
cat >conftest.$ac_ext <<_ACEOF
 
9331
#line $LINENO "configure"
 
9332
/* confdefs.h.  */
 
9333
_ACEOF
 
9334
cat confdefs.h >>conftest.$ac_ext
 
9335
cat >>conftest.$ac_ext <<_ACEOF
 
9336
/* end confdefs.h.  */
 
9337
$ac_includes_default
 
9338
#include <$ac_header>
 
9339
_ACEOF
 
9340
rm -f conftest.$ac_objext
 
9341
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9342
  (eval $ac_compile) 2>&5
 
9343
  ac_status=$?
 
9344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9345
  (exit $ac_status); } &&
 
9346
         { ac_try='test -s conftest.$ac_objext'
 
9347
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9348
  (eval $ac_try) 2>&5
 
9349
  ac_status=$?
 
9350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9351
  (exit $ac_status); }; }; then
 
9352
  ac_header_compiler=yes
 
9353
else
 
9354
  echo "$as_me: failed program was:" >&5
 
9355
sed 's/^/| /' conftest.$ac_ext >&5
 
9356
 
 
9357
ac_header_compiler=no
 
9358
fi
 
9359
rm -f conftest.$ac_objext conftest.$ac_ext
 
9360
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
9361
echo "${ECHO_T}$ac_header_compiler" >&6
 
9362
 
 
9363
# Is the header present?
 
9364
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
9365
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
9366
cat >conftest.$ac_ext <<_ACEOF
 
9367
#line $LINENO "configure"
 
9368
/* confdefs.h.  */
 
9369
_ACEOF
 
9370
cat confdefs.h >>conftest.$ac_ext
 
9371
cat >>conftest.$ac_ext <<_ACEOF
 
9372
/* end confdefs.h.  */
 
9373
#include <$ac_header>
 
9374
_ACEOF
 
9375
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
9376
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
9377
  ac_status=$?
 
9378
  grep -v '^ *+' conftest.er1 >conftest.err
 
9379
  rm -f conftest.er1
 
9380
  cat conftest.err >&5
 
9381
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9382
  (exit $ac_status); } >/dev/null; then
 
9383
  if test -s conftest.err; then
 
9384
    ac_cpp_err=$ac_c_preproc_warn_flag
 
9385
  else
 
9386
    ac_cpp_err=
 
9387
  fi
 
9388
else
 
9389
  ac_cpp_err=yes
 
9390
fi
 
9391
if test -z "$ac_cpp_err"; then
 
9392
  ac_header_preproc=yes
 
9393
else
 
9394
  echo "$as_me: failed program was:" >&5
 
9395
sed 's/^/| /' conftest.$ac_ext >&5
 
9396
 
 
9397
  ac_header_preproc=no
 
9398
fi
 
9399
rm -f conftest.err conftest.$ac_ext
 
9400
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
9401
echo "${ECHO_T}$ac_header_preproc" >&6
 
9402
 
 
9403
# So?  What about this header?
 
9404
case $ac_header_compiler:$ac_header_preproc in
 
9405
  yes:no )
 
9406
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
9407
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
9408
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9409
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9410
    (
 
9411
      cat <<\_ASBOX
 
9412
## ------------------------------------ ##
 
9413
## Report this to bug-autoconf@gnu.org. ##
 
9414
## ------------------------------------ ##
 
9415
_ASBOX
 
9416
    ) |
 
9417
      sed "s/^/$as_me: WARNING:     /" >&2
 
9418
    ;;
 
9419
  no:yes )
 
9420
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
9421
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
9422
    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
 
9423
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
 
9424
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
9425
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
9426
    (
 
9427
      cat <<\_ASBOX
 
9428
## ------------------------------------ ##
 
9429
## Report this to bug-autoconf@gnu.org. ##
 
9430
## ------------------------------------ ##
 
9431
_ASBOX
 
9432
    ) |
 
9433
      sed "s/^/$as_me: WARNING:     /" >&2
 
9434
    ;;
 
9435
esac
 
9436
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
9437
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
9438
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
9439
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9440
else
 
9441
  eval "$as_ac_Header=$ac_header_preproc"
 
9442
fi
 
9443
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
9444
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
9445
 
 
9446
fi
 
9447
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
9448
  cat >>confdefs.h <<_ACEOF
 
9449
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
9450
_ACEOF
 
9451
 
 
9452
fi
 
9453
 
 
9454
done
 
9455
 
 
9456
echo "$as_me:$LINENO: checking for uint8" >&5
 
9457
echo $ECHO_N "checking for uint8... $ECHO_C" >&6
 
9458
if test "${ac_cv_type_uint8+set}" = set; then
 
9459
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9460
else
 
9461
  cat >conftest.$ac_ext <<_ACEOF
 
9462
#line $LINENO "configure"
 
9463
/* confdefs.h.  */
 
9464
_ACEOF
 
9465
cat confdefs.h >>conftest.$ac_ext
 
9466
cat >>conftest.$ac_ext <<_ACEOF
 
9467
/* end confdefs.h.  */
 
9468
$ac_includes_default
 
9469
int
 
9470
main ()
 
9471
{
 
9472
if ((uint8 *) 0)
 
9473
  return 0;
 
9474
if (sizeof (uint8))
 
9475
  return 0;
 
9476
  ;
 
9477
  return 0;
 
9478
}
 
9479
_ACEOF
 
9480
rm -f conftest.$ac_objext
 
9481
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9482
  (eval $ac_compile) 2>&5
 
9483
  ac_status=$?
 
9484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9485
  (exit $ac_status); } &&
 
9486
         { ac_try='test -s conftest.$ac_objext'
 
9487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9488
  (eval $ac_try) 2>&5
 
9489
  ac_status=$?
 
9490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9491
  (exit $ac_status); }; }; then
 
9492
  ac_cv_type_uint8=yes
 
9493
else
 
9494
  echo "$as_me: failed program was:" >&5
 
9495
sed 's/^/| /' conftest.$ac_ext >&5
 
9496
 
 
9497
ac_cv_type_uint8=no
 
9498
fi
 
9499
rm -f conftest.$ac_objext conftest.$ac_ext
 
9500
fi
 
9501
echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
 
9502
echo "${ECHO_T}$ac_cv_type_uint8" >&6
 
9503
if test $ac_cv_type_uint8 = yes; then
 
9504
 
 
9505
cat >>confdefs.h <<_ACEOF
 
9506
#define HAVE_UINT8 1
 
9507
_ACEOF
 
9508
 
 
9509
 
 
9510
fi
 
9511
 
 
9512
echo "$as_me:$LINENO: checking for int timezone" >&5
 
9513
echo $ECHO_N "checking for int timezone... $ECHO_C" >&6
 
9514
if test "${pgac_cv_var_int_timezone+set}" = set; then
 
9515
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9516
else
 
9517
  cat >conftest.$ac_ext <<_ACEOF
 
9518
#line $LINENO "configure"
 
9519
/* confdefs.h.  */
 
9520
_ACEOF
 
9521
cat confdefs.h >>conftest.$ac_ext
 
9522
cat >>conftest.$ac_ext <<_ACEOF
 
9523
/* end confdefs.h.  */
 
9524
#include <time.h>
 
9525
int res;
 
9526
int
 
9527
main ()
 
9528
{
 
9529
res = timezone / 60;
 
9530
  ;
 
9531
  return 0;
 
9532
}
 
9533
_ACEOF
 
9534
rm -f conftest.$ac_objext conftest$ac_exeext
 
9535
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9536
  (eval $ac_link) 2>&5
 
9537
  ac_status=$?
 
9538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9539
  (exit $ac_status); } &&
 
9540
         { ac_try='test -s conftest$ac_exeext'
 
9541
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9542
  (eval $ac_try) 2>&5
 
9543
  ac_status=$?
 
9544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9545
  (exit $ac_status); }; }; then
 
9546
  pgac_cv_var_int_timezone=yes
 
9547
else
 
9548
  echo "$as_me: failed program was:" >&5
 
9549
sed 's/^/| /' conftest.$ac_ext >&5
 
9550
 
 
9551
pgac_cv_var_int_timezone=no
 
9552
fi
 
9553
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
9554
fi
 
9555
echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
 
9556
echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6
 
9557
if test x"$pgac_cv_var_int_timezone" = xyes ; then
 
9558
 
 
9559
cat >>confdefs.h <<\_ACEOF
 
9560
#define HAVE_INT_TIMEZONE
 
9561
_ACEOF
 
9562
 
 
9563
fi
 
9564
 
 
9565
          ac_config_files="$ac_config_files Makefile"
 
9566
 
 
9567
cat >confcache <<\_ACEOF
 
9568
# This file is a shell script that caches the results of configure
 
9569
# tests run on this system so they can be shared between configure
 
9570
# scripts and configure runs, see configure's option --config-cache.
 
9571
# It is not useful on other systems.  If it contains results you don't
 
9572
# want to keep, you may remove or edit it.
 
9573
#
 
9574
# config.status only pays attention to the cache file if you give it
 
9575
# the --recheck option to rerun configure.
 
9576
#
 
9577
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
9578
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
9579
# following values.
 
9580
 
 
9581
_ACEOF
 
9582
 
 
9583
# The following way of writing the cache mishandles newlines in values,
 
9584
# but we know of no workaround that is simple, portable, and efficient.
 
9585
# So, don't put newlines in cache variables' values.
 
9586
# Ultrix sh set writes to stderr and can't be redirected directly,
 
9587
# and sets the high bit in the cache file unless we assign to the vars.
 
9588
{
 
9589
  (set) 2>&1 |
 
9590
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
9591
    *ac_space=\ *)
 
9592
      # `set' does not quote correctly, so add quotes (double-quote
 
9593
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
9594
      sed -n \
 
9595
        "s/'/'\\\\''/g;
 
9596
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
9597
      ;;
 
9598
    *)
 
9599
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
9600
      sed -n \
 
9601
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
9602
      ;;
 
9603
    esac;
 
9604
} |
 
9605
  sed '
 
9606
     t clear
 
9607
     : clear
 
9608
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
9609
     t end
 
9610
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
9611
     : end' >>confcache
 
9612
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
9613
  if test -w $cache_file; then
 
9614
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
9615
    cat confcache >$cache_file
 
9616
  else
 
9617
    echo "not updating unwritable cache $cache_file"
 
9618
  fi
 
9619
fi
 
9620
rm -f confcache
 
9621
 
 
9622
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
9623
# Let make expand exec_prefix.
 
9624
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
9625
 
 
9626
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
9627
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
9628
# trailing colons and then remove the whole line if VPATH becomes empty
 
9629
# (actually we leave an empty line to preserve line numbers).
 
9630
if test "x$srcdir" = x.; then
 
9631
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
9632
s/:*\$(srcdir):*/:/;
 
9633
s/:*\${srcdir}:*/:/;
 
9634
s/:*@srcdir@:*/:/;
 
9635
s/^\([^=]*=[    ]*\):*/\1/;
 
9636
s/:*$//;
 
9637
s/^[^=]*=[      ]*$//;
 
9638
}'
 
9639
fi
 
9640
 
 
9641
DEFS=-DHAVE_CONFIG_H
 
9642
 
 
9643
ac_libobjs=
 
9644
ac_ltlibobjs=
 
9645
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
9646
  # 1. Remove the extension, and $U if already installed.
 
9647
  ac_i=`echo "$ac_i" |
 
9648
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
9649
  # 2. Add them.
 
9650
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
9651
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
9652
done
 
9653
LIBOBJS=$ac_libobjs
 
9654
 
 
9655
LTLIBOBJS=$ac_ltlibobjs
 
9656
 
 
9657
 
 
9658
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
9659
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
9660
Usually this means the macro was only invoked conditionally." >&5
 
9661
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
9662
Usually this means the macro was only invoked conditionally." >&2;}
 
9663
   { (exit 1); exit 1; }; }
 
9664
fi
 
9665
if test -z "${with_unixodbc_TRUE}" && test -z "${with_unixodbc_FALSE}"; then
 
9666
  { { echo "$as_me:$LINENO: error: conditional \"with_unixodbc\" was never defined.
 
9667
Usually this means the macro was only invoked conditionally." >&5
 
9668
echo "$as_me: error: conditional \"with_unixodbc\" was never defined.
 
9669
Usually this means the macro was only invoked conditionally." >&2;}
 
9670
   { (exit 1); exit 1; }; }
 
9671
fi
 
9672
if test -z "${with_iodbc_TRUE}" && test -z "${with_iodbc_FALSE}"; then
 
9673
  { { echo "$as_me:$LINENO: error: conditional \"with_iodbc\" was never defined.
 
9674
Usually this means the macro was only invoked conditionally." >&5
 
9675
echo "$as_me: error: conditional \"with_iodbc\" was never defined.
 
9676
Usually this means the macro was only invoked conditionally." >&2;}
 
9677
   { (exit 1); exit 1; }; }
 
9678
fi
 
9679
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
9680
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
9681
Usually this means the macro was only invoked conditionally." >&5
 
9682
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
9683
Usually this means the macro was only invoked conditionally." >&2;}
 
9684
   { (exit 1); exit 1; }; }
 
9685
fi
 
9686
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
9687
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
9688
Usually this means the macro was only invoked conditionally." >&5
 
9689
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
9690
Usually this means the macro was only invoked conditionally." >&2;}
 
9691
   { (exit 1); exit 1; }; }
 
9692
fi
 
9693
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
9694
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
9695
Usually this means the macro was only invoked conditionally." >&5
 
9696
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
9697
Usually this means the macro was only invoked conditionally." >&2;}
 
9698
   { (exit 1); exit 1; }; }
 
9699
fi
 
9700
 
 
9701
: ${CONFIG_STATUS=./config.status}
 
9702
ac_clean_files_save=$ac_clean_files
 
9703
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
9704
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
9705
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
9706
cat >$CONFIG_STATUS <<_ACEOF
 
9707
#! $SHELL
 
9708
# Generated by $as_me.
 
9709
# Run this file to recreate the current configuration.
 
9710
# Compiler output produced by configure, useful for debugging
 
9711
# configure, is in config.log if it exists.
 
9712
 
 
9713
debug=false
 
9714
ac_cs_recheck=false
 
9715
ac_cs_silent=false
 
9716
SHELL=\${CONFIG_SHELL-$SHELL}
 
9717
_ACEOF
 
9718
 
 
9719
cat >>$CONFIG_STATUS <<\_ACEOF
 
9720
## --------------------- ##
 
9721
## M4sh Initialization.  ##
 
9722
## --------------------- ##
 
9723
 
 
9724
# Be Bourne compatible
 
9725
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
9726
  emulate sh
 
9727
  NULLCMD=:
 
9728
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
9729
  # is contrary to our usage.  Disable this feature.
 
9730
  alias -g '${1+"$@"}'='"$@"'
 
9731
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
9732
  set -o posix
 
9733
fi
 
9734
 
 
9735
# Support unset when possible.
 
9736
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
9737
  as_unset=unset
 
9738
else
 
9739
  as_unset=false
 
9740
fi
 
9741
 
 
9742
 
 
9743
# Work around bugs in pre-3.0 UWIN ksh.
 
9744
$as_unset ENV MAIL MAILPATH
 
9745
PS1='$ '
 
9746
PS2='> '
 
9747
PS4='+ '
 
9748
 
 
9749
# NLS nuisances.
 
9750
for as_var in \
 
9751
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
9752
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
9753
  LC_TELEPHONE LC_TIME
 
9754
do
 
9755
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
9756
    eval $as_var=C; export $as_var
 
9757
  else
 
9758
    $as_unset $as_var
 
9759
  fi
 
9760
done
 
9761
 
 
9762
# Required to use basename.
 
9763
if expr a : '\(a\)' >/dev/null 2>&1; then
 
9764
  as_expr=expr
 
9765
else
 
9766
  as_expr=false
 
9767
fi
 
9768
 
 
9769
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
9770
  as_basename=basename
 
9771
else
 
9772
  as_basename=false
 
9773
fi
 
9774
 
 
9775
 
 
9776
# Name of the executable.
 
9777
as_me=`$as_basename "$0" ||
 
9778
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
9779
         X"$0" : 'X\(//\)$' \| \
 
9780
         X"$0" : 'X\(/\)$' \| \
 
9781
         .     : '\(.\)' 2>/dev/null ||
 
9782
echo X/"$0" |
 
9783
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
9784
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
9785
          /^X\/\(\/\).*/{ s//\1/; q; }
 
9786
          s/.*/./; q'`
 
9787
 
 
9788
 
 
9789
# PATH needs CR, and LINENO needs CR and PATH.
 
9790
# Avoid depending upon Character Ranges.
 
9791
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
9792
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
9793
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
9794
as_cr_digits='0123456789'
 
9795
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
9796
 
 
9797
# The user is always right.
 
9798
if test "${PATH_SEPARATOR+set}" != set; then
 
9799
  echo "#! /bin/sh" >conf$$.sh
 
9800
  echo  "exit 0"   >>conf$$.sh
 
9801
  chmod +x conf$$.sh
 
9802
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
9803
    PATH_SEPARATOR=';'
 
9804
  else
 
9805
    PATH_SEPARATOR=:
 
9806
  fi
 
9807
  rm -f conf$$.sh
 
9808
fi
 
9809
 
 
9810
 
 
9811
  as_lineno_1=$LINENO
 
9812
  as_lineno_2=$LINENO
 
9813
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
9814
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
9815
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
9816
  # Find who we are.  Look in the path if we contain no path at all
 
9817
  # relative or not.
 
9818
  case $0 in
 
9819
    *[\\/]* ) as_myself=$0 ;;
 
9820
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9821
for as_dir in $PATH
 
9822
do
 
9823
  IFS=$as_save_IFS
 
9824
  test -z "$as_dir" && as_dir=.
 
9825
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
9826
done
 
9827
 
 
9828
       ;;
 
9829
  esac
 
9830
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
9831
  # in which case we are not to be found in the path.
 
9832
  if test "x$as_myself" = x; then
 
9833
    as_myself=$0
 
9834
  fi
 
9835
  if test ! -f "$as_myself"; then
 
9836
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
9837
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
9838
   { (exit 1); exit 1; }; }
 
9839
  fi
 
9840
  case $CONFIG_SHELL in
 
9841
  '')
 
9842
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9843
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
9844
do
 
9845
  IFS=$as_save_IFS
 
9846
  test -z "$as_dir" && as_dir=.
 
9847
  for as_base in sh bash ksh sh5; do
 
9848
         case $as_dir in
 
9849
         /*)
 
9850
           if ("$as_dir/$as_base" -c '
 
9851
  as_lineno_1=$LINENO
 
9852
  as_lineno_2=$LINENO
 
9853
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
9854
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
9855
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
9856
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
9857
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
9858
             CONFIG_SHELL=$as_dir/$as_base
 
9859
             export CONFIG_SHELL
 
9860
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
9861
           fi;;
 
9862
         esac
 
9863
       done
 
9864
done
 
9865
;;
 
9866
  esac
 
9867
 
 
9868
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
9869
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
9870
  # line-number line before each line; the second 'sed' does the real
 
9871
  # work.  The second script uses 'N' to pair each line-number line
 
9872
  # with the numbered line, and appends trailing '-' during
 
9873
  # substitution so that $LINENO is not a special case at line end.
 
9874
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
9875
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
9876
  sed '=' <$as_myself |
 
9877
    sed '
 
9878
      N
 
9879
      s,$,-,
 
9880
      : loop
 
9881
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
9882
      t loop
 
9883
      s,-$,,
 
9884
      s,^['$as_cr_digits']*\n,,
 
9885
    ' >$as_me.lineno &&
 
9886
  chmod +x $as_me.lineno ||
 
9887
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
9888
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
9889
   { (exit 1); exit 1; }; }
 
9890
 
 
9891
  # Don't try to exec as it changes $[0], causing all sort of problems
 
9892
  # (the dirname of $[0] is not the place where we might find the
 
9893
  # original and so on.  Autoconf is especially sensible to this).
 
9894
  . ./$as_me.lineno
 
9895
  # Exit status is that of the last command.
 
9896
  exit
 
9897
}
 
9898
 
 
9899
 
 
9900
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
9901
  *c*,-n*) ECHO_N= ECHO_C='
 
9902
' ECHO_T='      ' ;;
 
9903
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
9904
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
9905
esac
 
9906
 
 
9907
if expr a : '\(a\)' >/dev/null 2>&1; then
 
9908
  as_expr=expr
 
9909
else
 
9910
  as_expr=false
 
9911
fi
 
9912
 
 
9913
rm -f conf$$ conf$$.exe conf$$.file
 
9914
echo >conf$$.file
 
9915
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
9916
  # We could just check for DJGPP; but this test a) works b) is more generic
 
9917
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
9918
  if test -f conf$$.exe; then
 
9919
    # Don't use ln at all; we don't have any links
 
9920
    as_ln_s='cp -p'
 
9921
  else
 
9922
    as_ln_s='ln -s'
 
9923
  fi
 
9924
elif ln conf$$.file conf$$ 2>/dev/null; then
 
9925
  as_ln_s=ln
 
9926
else
 
9927
  as_ln_s='cp -p'
 
9928
fi
 
9929
rm -f conf$$ conf$$.exe conf$$.file
 
9930
 
 
9931
if mkdir -p . 2>/dev/null; then
 
9932
  as_mkdir_p=:
 
9933
else
 
9934
  as_mkdir_p=false
 
9935
fi
 
9936
 
 
9937
as_executable_p="test -f"
 
9938
 
 
9939
# Sed expression to map a string onto a valid CPP name.
 
9940
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
 
9941
 
 
9942
# Sed expression to map a string onto a valid variable name.
 
9943
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
9944
 
 
9945
 
 
9946
# IFS
 
9947
# We need space, tab and new line, in precisely that order.
 
9948
as_nl='
 
9949
'
 
9950
IFS="   $as_nl"
 
9951
 
 
9952
# CDPATH.
 
9953
$as_unset CDPATH
 
9954
 
 
9955
exec 6>&1
 
9956
 
 
9957
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
9958
# report actual input values of CONFIG_FILES etc. instead of their
 
9959
# values after options handling.  Logging --version etc. is OK.
 
9960
exec 5>>config.log
 
9961
{
 
9962
  echo
 
9963
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
9964
## Running $as_me. ##
 
9965
_ASBOX
 
9966
} >&5
 
9967
cat >&5 <<_CSEOF
 
9968
 
 
9969
This file was extended by psqlodbc $as_me 07.03.0200, which was
 
9970
generated by GNU Autoconf 2.57.  Invocation command line was
 
9971
 
 
9972
  CONFIG_FILES    = $CONFIG_FILES
 
9973
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
9974
  CONFIG_LINKS    = $CONFIG_LINKS
 
9975
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
9976
  $ $0 $@
 
9977
 
 
9978
_CSEOF
 
9979
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
9980
echo >&5
 
9981
_ACEOF
 
9982
 
 
9983
# Files that config.status was made for.
 
9984
if test -n "$ac_config_files"; then
 
9985
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
9986
fi
 
9987
 
 
9988
if test -n "$ac_config_headers"; then
 
9989
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
9990
fi
 
9991
 
 
9992
if test -n "$ac_config_links"; then
 
9993
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
9994
fi
 
9995
 
 
9996
if test -n "$ac_config_commands"; then
 
9997
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
9998
fi
 
9999
 
 
10000
cat >>$CONFIG_STATUS <<\_ACEOF
 
10001
 
 
10002
ac_cs_usage="\
 
10003
\`$as_me' instantiates files from templates according to the
 
10004
current configuration.
 
10005
 
 
10006
Usage: $0 [OPTIONS] [FILE]...
 
10007
 
 
10008
  -h, --help       print this help, then exit
 
10009
  -V, --version    print version number, then exit
 
10010
  -q, --quiet      do not print progress messages
 
10011
  -d, --debug      don't remove temporary files
 
10012
      --recheck    update $as_me by reconfiguring in the same conditions
 
10013
  --file=FILE[:TEMPLATE]
 
10014
                   instantiate the configuration file FILE
 
10015
  --header=FILE[:TEMPLATE]
 
10016
                   instantiate the configuration header FILE
 
10017
 
 
10018
Configuration files:
 
10019
$config_files
 
10020
 
 
10021
Configuration headers:
 
10022
$config_headers
 
10023
 
 
10024
Configuration commands:
 
10025
$config_commands
 
10026
 
 
10027
Report bugs to <bug-autoconf@gnu.org>."
 
10028
_ACEOF
 
10029
 
 
10030
cat >>$CONFIG_STATUS <<_ACEOF
 
10031
ac_cs_version="\\
 
10032
psqlodbc config.status 07.03.0200
 
10033
configured by $0, generated by GNU Autoconf 2.57,
 
10034
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
10035
 
 
10036
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
 
10037
Free Software Foundation, Inc.
 
10038
This config.status script is free software; the Free Software Foundation
 
10039
gives unlimited permission to copy, distribute and modify it."
 
10040
srcdir=$srcdir
 
10041
INSTALL="$INSTALL"
 
10042
_ACEOF
 
10043
 
 
10044
cat >>$CONFIG_STATUS <<\_ACEOF
 
10045
# If no file are specified by the user, then we need to provide default
 
10046
# value.  By we need to know if files were specified by the user.
 
10047
ac_need_defaults=:
 
10048
while test $# != 0
 
10049
do
 
10050
  case $1 in
 
10051
  --*=*)
 
10052
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
10053
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
10054
    ac_shift=:
 
10055
    ;;
 
10056
  -*)
 
10057
    ac_option=$1
 
10058
    ac_optarg=$2
 
10059
    ac_shift=shift
 
10060
    ;;
 
10061
  *) # This is not an option, so the user has probably given explicit
 
10062
     # arguments.
 
10063
     ac_option=$1
 
10064
     ac_need_defaults=false;;
 
10065
  esac
 
10066
 
 
10067
  case $ac_option in
 
10068
  # Handling of the options.
 
10069
_ACEOF
 
10070
cat >>$CONFIG_STATUS <<\_ACEOF
 
10071
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
10072
    ac_cs_recheck=: ;;
 
10073
  --version | --vers* | -V )
 
10074
    echo "$ac_cs_version"; exit 0 ;;
 
10075
  --he | --h)
 
10076
    # Conflict between --help and --header
 
10077
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
10078
Try \`$0 --help' for more information." >&5
 
10079
echo "$as_me: error: ambiguous option: $1
 
10080
Try \`$0 --help' for more information." >&2;}
 
10081
   { (exit 1); exit 1; }; };;
 
10082
  --help | --hel | -h )
 
10083
    echo "$ac_cs_usage"; exit 0 ;;
 
10084
  --debug | --d* | -d )
 
10085
    debug=: ;;
 
10086
  --file | --fil | --fi | --f )
 
10087
    $ac_shift
 
10088
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
10089
    ac_need_defaults=false;;
 
10090
  --header | --heade | --head | --hea )
 
10091
    $ac_shift
 
10092
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
10093
    ac_need_defaults=false;;
 
10094
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
10095
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
10096
    ac_cs_silent=: ;;
 
10097
 
 
10098
  # This is an error.
 
10099
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
10100
Try \`$0 --help' for more information." >&5
 
10101
echo "$as_me: error: unrecognized option: $1
 
10102
Try \`$0 --help' for more information." >&2;}
 
10103
   { (exit 1); exit 1; }; } ;;
 
10104
 
 
10105
  *) ac_config_targets="$ac_config_targets $1" ;;
 
10106
 
 
10107
  esac
 
10108
  shift
 
10109
done
 
10110
 
 
10111
ac_configure_extra_args=
 
10112
 
 
10113
if $ac_cs_silent; then
 
10114
  exec 6>/dev/null
 
10115
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
10116
fi
 
10117
 
 
10118
_ACEOF
 
10119
cat >>$CONFIG_STATUS <<_ACEOF
 
10120
if \$ac_cs_recheck; then
 
10121
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
10122
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
10123
fi
 
10124
 
 
10125
_ACEOF
 
10126
 
 
10127
cat >>$CONFIG_STATUS <<_ACEOF
 
10128
#
 
10129
# INIT-COMMANDS section.
 
10130
#
 
10131
 
 
10132
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
10133
 
 
10134
_ACEOF
 
10135
 
 
10136
 
 
10137
 
 
10138
cat >>$CONFIG_STATUS <<\_ACEOF
 
10139
for ac_config_target in $ac_config_targets
 
10140
do
 
10141
  case "$ac_config_target" in
 
10142
  # Handling of arguments.
 
10143
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
10144
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
10145
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
10146
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
10147
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
10148
   { (exit 1); exit 1; }; };;
 
10149
  esac
 
10150
done
 
10151
 
 
10152
# If the user did not use the arguments to specify the items to instantiate,
 
10153
# then the envvar interface is used.  Set only those that are not.
 
10154
# We use the long form for the default assignment because of an extremely
 
10155
# bizarre bug on SunOS 4.1.3.
 
10156
if $ac_need_defaults; then
 
10157
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
10158
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
10159
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
10160
fi
 
10161
 
 
10162
# Have a temporary directory for convenience.  Make it in the build tree
 
10163
# simply because there is no reason to put it here, and in addition,
 
10164
# creating and moving files from /tmp can sometimes cause problems.
 
10165
# Create a temporary directory, and hook for its removal unless debugging.
 
10166
$debug ||
 
10167
{
 
10168
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
10169
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
10170
}
 
10171
 
 
10172
# Create a (secure) tmp directory for tmp files.
 
10173
 
 
10174
{
 
10175
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
10176
  test -n "$tmp" && test -d "$tmp"
 
10177
}  ||
 
10178
{
 
10179
  tmp=./confstat$$-$RANDOM
 
10180
  (umask 077 && mkdir $tmp)
 
10181
} ||
 
10182
{
 
10183
   echo "$me: cannot create a temporary directory in ." >&2
 
10184
   { (exit 1); exit 1; }
 
10185
}
 
10186
 
 
10187
_ACEOF
 
10188
 
 
10189
cat >>$CONFIG_STATUS <<_ACEOF
 
10190
 
 
10191
#
 
10192
# CONFIG_FILES section.
 
10193
#
 
10194
 
 
10195
# No need to generate the scripts if there are no CONFIG_FILES.
 
10196
# This happens for instance when ./config.status config.h
 
10197
if test -n "\$CONFIG_FILES"; then
 
10198
  # Protect against being on the right side of a sed subst in config.status.
 
10199
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
10200
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
10201
s,@SHELL@,$SHELL,;t t
 
10202
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
10203
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
10204
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
10205
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
10206
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
10207
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
10208
s,@exec_prefix@,$exec_prefix,;t t
 
10209
s,@prefix@,$prefix,;t t
 
10210
s,@program_transform_name@,$program_transform_name,;t t
 
10211
s,@bindir@,$bindir,;t t
 
10212
s,@sbindir@,$sbindir,;t t
 
10213
s,@libexecdir@,$libexecdir,;t t
 
10214
s,@datadir@,$datadir,;t t
 
10215
s,@sysconfdir@,$sysconfdir,;t t
 
10216
s,@sharedstatedir@,$sharedstatedir,;t t
 
10217
s,@localstatedir@,$localstatedir,;t t
 
10218
s,@libdir@,$libdir,;t t
 
10219
s,@includedir@,$includedir,;t t
 
10220
s,@oldincludedir@,$oldincludedir,;t t
 
10221
s,@infodir@,$infodir,;t t
 
10222
s,@mandir@,$mandir,;t t
 
10223
s,@build_alias@,$build_alias,;t t
 
10224
s,@host_alias@,$host_alias,;t t
 
10225
s,@target_alias@,$target_alias,;t t
 
10226
s,@DEFS@,$DEFS,;t t
 
10227
s,@ECHO_C@,$ECHO_C,;t t
 
10228
s,@ECHO_N@,$ECHO_N,;t t
 
10229
s,@ECHO_T@,$ECHO_T,;t t
 
10230
s,@LIBS@,$LIBS,;t t
 
10231
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
10232
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
10233
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
10234
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
10235
s,@PACKAGE@,$PACKAGE,;t t
 
10236
s,@VERSION@,$VERSION,;t t
 
10237
s,@ACLOCAL@,$ACLOCAL,;t t
 
10238
s,@AUTOCONF@,$AUTOCONF,;t t
 
10239
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
10240
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
10241
s,@MAKEINFO@,$MAKEINFO,;t t
 
10242
s,@AMTAR@,$AMTAR,;t t
 
10243
s,@install_sh@,$install_sh,;t t
 
10244
s,@STRIP@,$STRIP,;t t
 
10245
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
10246
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
10247
s,@AWK@,$AWK,;t t
 
10248
s,@SET_MAKE@,$SET_MAKE,;t t
 
10249
s,@am__leading_dot@,$am__leading_dot,;t t
 
10250
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
10251
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
10252
s,@MAINT@,$MAINT,;t t
 
10253
s,@with_unixodbc_TRUE@,$with_unixodbc_TRUE,;t t
 
10254
s,@with_unixodbc_FALSE@,$with_unixodbc_FALSE,;t t
 
10255
s,@with_iodbc_TRUE@,$with_iodbc_TRUE,;t t
 
10256
s,@with_iodbc_FALSE@,$with_iodbc_FALSE,;t t
 
10257
s,@CC@,$CC,;t t
 
10258
s,@CFLAGS@,$CFLAGS,;t t
 
10259
s,@LDFLAGS@,$LDFLAGS,;t t
 
10260
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
10261
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
10262
s,@EXEEXT@,$EXEEXT,;t t
 
10263
s,@OBJEXT@,$OBJEXT,;t t
 
10264
s,@DEPDIR@,$DEPDIR,;t t
 
10265
s,@am__include@,$am__include,;t t
 
10266
s,@am__quote@,$am__quote,;t t
 
10267
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
10268
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
10269
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
10270
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
10271
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
10272
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
10273
s,@odbcinst_ini_dir@,$odbcinst_ini_dir,;t t
 
10274
s,@build@,$build,;t t
 
10275
s,@build_cpu@,$build_cpu,;t t
 
10276
s,@build_vendor@,$build_vendor,;t t
 
10277
s,@build_os@,$build_os,;t t
 
10278
s,@host@,$host,;t t
 
10279
s,@host_cpu@,$host_cpu,;t t
 
10280
s,@host_vendor@,$host_vendor,;t t
 
10281
s,@host_os@,$host_os,;t t
 
10282
s,@LN_S@,$LN_S,;t t
 
10283
s,@ECHO@,$ECHO,;t t
 
10284
s,@RANLIB@,$RANLIB,;t t
 
10285
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
10286
s,@CPP@,$CPP,;t t
 
10287
s,@EGREP@,$EGREP,;t t
 
10288
s,@LIBTOOL@,$LIBTOOL,;t t
 
10289
s,@LIBOBJS@,$LIBOBJS,;t t
 
10290
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
10291
CEOF
 
10292
 
 
10293
_ACEOF
 
10294
 
 
10295
  cat >>$CONFIG_STATUS <<\_ACEOF
 
10296
  # Split the substitutions into bite-sized pieces for seds with
 
10297
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
10298
  ac_max_sed_lines=48
 
10299
  ac_sed_frag=1 # Number of current file.
 
10300
  ac_beg=1 # First line for current file.
 
10301
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
10302
  ac_more_lines=:
 
10303
  ac_sed_cmds=
 
10304
  while $ac_more_lines; do
 
10305
    if test $ac_beg -gt 1; then
 
10306
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
10307
    else
 
10308
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
10309
    fi
 
10310
    if test ! -s $tmp/subs.frag; then
 
10311
      ac_more_lines=false
 
10312
    else
 
10313
      # The purpose of the label and of the branching condition is to
 
10314
      # speed up the sed processing (if there are no `@' at all, there
 
10315
      # is no need to browse any of the substitutions).
 
10316
      # These are the two extra sed commands mentioned above.
 
10317
      (echo ':t
 
10318
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
10319
      if test -z "$ac_sed_cmds"; then
 
10320
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
10321
      else
 
10322
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
10323
      fi
 
10324
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
10325
      ac_beg=$ac_end
 
10326
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
10327
    fi
 
10328
  done
 
10329
  if test -z "$ac_sed_cmds"; then
 
10330
    ac_sed_cmds=cat
 
10331
  fi
 
10332
fi # test -n "$CONFIG_FILES"
 
10333
 
 
10334
_ACEOF
 
10335
cat >>$CONFIG_STATUS <<\_ACEOF
 
10336
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
10337
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
10338
  case $ac_file in
 
10339
  - | *:- | *:-:* ) # input from stdin
 
10340
        cat >$tmp/stdin
 
10341
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10342
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10343
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10344
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10345
  * )   ac_file_in=$ac_file.in ;;
 
10346
  esac
 
10347
 
 
10348
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
10349
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
10350
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10351
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
10352
         X"$ac_file" : 'X\(//\)$' \| \
 
10353
         X"$ac_file" : 'X\(/\)' \| \
 
10354
         .     : '\(.\)' 2>/dev/null ||
 
10355
echo X"$ac_file" |
 
10356
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10357
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10358
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10359
          /^X\(\/\).*/{ s//\1/; q; }
 
10360
          s/.*/./; q'`
 
10361
  { if $as_mkdir_p; then
 
10362
    mkdir -p "$ac_dir"
 
10363
  else
 
10364
    as_dir="$ac_dir"
 
10365
    as_dirs=
 
10366
    while test ! -d "$as_dir"; do
 
10367
      as_dirs="$as_dir $as_dirs"
 
10368
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
10369
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10370
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
10371
         X"$as_dir" : 'X\(//\)$' \| \
 
10372
         X"$as_dir" : 'X\(/\)' \| \
 
10373
         .     : '\(.\)' 2>/dev/null ||
 
10374
echo X"$as_dir" |
 
10375
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10376
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10377
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10378
          /^X\(\/\).*/{ s//\1/; q; }
 
10379
          s/.*/./; q'`
 
10380
    done
 
10381
    test ! -n "$as_dirs" || mkdir $as_dirs
 
10382
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
10383
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
10384
   { (exit 1); exit 1; }; }; }
 
10385
 
 
10386
  ac_builddir=.
 
10387
 
 
10388
if test "$ac_dir" != .; then
 
10389
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
10390
  # A "../" for each directory in $ac_dir_suffix.
 
10391
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
10392
else
 
10393
  ac_dir_suffix= ac_top_builddir=
 
10394
fi
 
10395
 
 
10396
case $srcdir in
 
10397
  .)  # No --srcdir option.  We are building in place.
 
10398
    ac_srcdir=.
 
10399
    if test -z "$ac_top_builddir"; then
 
10400
       ac_top_srcdir=.
 
10401
    else
 
10402
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
10403
    fi ;;
 
10404
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
10405
    ac_srcdir=$srcdir$ac_dir_suffix;
 
10406
    ac_top_srcdir=$srcdir ;;
 
10407
  *) # Relative path.
 
10408
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
10409
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
10410
esac
 
10411
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
10412
# absolute.
 
10413
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
10414
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
10415
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
10416
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
10417
 
 
10418
 
 
10419
  case $INSTALL in
 
10420
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
10421
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
10422
  esac
 
10423
 
 
10424
  if test x"$ac_file" != x-; then
 
10425
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
10426
echo "$as_me: creating $ac_file" >&6;}
 
10427
    rm -f "$ac_file"
 
10428
  fi
 
10429
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
10430
  # use $as_me), people would be surprised to read:
 
10431
  #    /* config.h.  Generated by config.status.  */
 
10432
  if test x"$ac_file" = x-; then
 
10433
    configure_input=
 
10434
  else
 
10435
    configure_input="$ac_file.  "
 
10436
  fi
 
10437
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
10438
                                     sed 's,.*/,,'` by configure."
 
10439
 
 
10440
  # First look for the input files in the build tree, otherwise in the
 
10441
  # src tree.
 
10442
  ac_file_inputs=`IFS=:
 
10443
    for f in $ac_file_in; do
 
10444
      case $f in
 
10445
      -) echo $tmp/stdin ;;
 
10446
      [\\/$]*)
 
10447
         # Absolute (can't be DOS-style, as IFS=:)
 
10448
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
10449
echo "$as_me: error: cannot find input file: $f" >&2;}
 
10450
   { (exit 1); exit 1; }; }
 
10451
         echo $f;;
 
10452
      *) # Relative
 
10453
         if test -f "$f"; then
 
10454
           # Build tree
 
10455
           echo $f
 
10456
         elif test -f "$srcdir/$f"; then
 
10457
           # Source tree
 
10458
           echo $srcdir/$f
 
10459
         else
 
10460
           # /dev/null tree
 
10461
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
10462
echo "$as_me: error: cannot find input file: $f" >&2;}
 
10463
   { (exit 1); exit 1; }; }
 
10464
         fi;;
 
10465
      esac
 
10466
    done` || { (exit 1); exit 1; }
 
10467
_ACEOF
 
10468
cat >>$CONFIG_STATUS <<_ACEOF
 
10469
  sed "$ac_vpsub
 
10470
$extrasub
 
10471
_ACEOF
 
10472
cat >>$CONFIG_STATUS <<\_ACEOF
 
10473
:t
 
10474
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
10475
s,@configure_input@,$configure_input,;t t
 
10476
s,@srcdir@,$ac_srcdir,;t t
 
10477
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
10478
s,@top_srcdir@,$ac_top_srcdir,;t t
 
10479
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
10480
s,@builddir@,$ac_builddir,;t t
 
10481
s,@abs_builddir@,$ac_abs_builddir,;t t
 
10482
s,@top_builddir@,$ac_top_builddir,;t t
 
10483
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
10484
s,@INSTALL@,$ac_INSTALL,;t t
 
10485
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
10486
  rm -f $tmp/stdin
 
10487
  if test x"$ac_file" != x-; then
 
10488
    mv $tmp/out $ac_file
 
10489
  else
 
10490
    cat $tmp/out
 
10491
    rm -f $tmp/out
 
10492
  fi
 
10493
 
 
10494
done
 
10495
_ACEOF
 
10496
cat >>$CONFIG_STATUS <<\_ACEOF
 
10497
 
 
10498
#
 
10499
# CONFIG_HEADER section.
 
10500
#
 
10501
 
 
10502
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
10503
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
10504
#
 
10505
# ac_d sets the value in "#define NAME VALUE" lines.
 
10506
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
10507
ac_dB='[        ].*$,\1#\2'
 
10508
ac_dC=' '
 
10509
ac_dD=',;t'
 
10510
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
10511
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
10512
ac_uB='$,\1#\2define\3'
 
10513
ac_uC=' '
 
10514
ac_uD=',;t'
 
10515
 
 
10516
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
10517
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
10518
  case $ac_file in
 
10519
  - | *:- | *:-:* ) # input from stdin
 
10520
        cat >$tmp/stdin
 
10521
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10522
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10523
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10524
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
10525
  * )   ac_file_in=$ac_file.in ;;
 
10526
  esac
 
10527
 
 
10528
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
10529
echo "$as_me: creating $ac_file" >&6;}
 
10530
 
 
10531
  # First look for the input files in the build tree, otherwise in the
 
10532
  # src tree.
 
10533
  ac_file_inputs=`IFS=:
 
10534
    for f in $ac_file_in; do
 
10535
      case $f in
 
10536
      -) echo $tmp/stdin ;;
 
10537
      [\\/$]*)
 
10538
         # Absolute (can't be DOS-style, as IFS=:)
 
10539
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
10540
echo "$as_me: error: cannot find input file: $f" >&2;}
 
10541
   { (exit 1); exit 1; }; }
 
10542
         echo $f;;
 
10543
      *) # Relative
 
10544
         if test -f "$f"; then
 
10545
           # Build tree
 
10546
           echo $f
 
10547
         elif test -f "$srcdir/$f"; then
 
10548
           # Source tree
 
10549
           echo $srcdir/$f
 
10550
         else
 
10551
           # /dev/null tree
 
10552
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
10553
echo "$as_me: error: cannot find input file: $f" >&2;}
 
10554
   { (exit 1); exit 1; }; }
 
10555
         fi;;
 
10556
      esac
 
10557
    done` || { (exit 1); exit 1; }
 
10558
  # Remove the trailing spaces.
 
10559
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
10560
 
 
10561
_ACEOF
 
10562
 
 
10563
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
10564
# `conftest.undefs', that substitutes the proper values into
 
10565
# config.h.in to produce config.h.  The first handles `#define'
 
10566
# templates, and the second `#undef' templates.
 
10567
# And first: Protect against being on the right side of a sed subst in
 
10568
# config.status.  Protect against being in an unquoted here document
 
10569
# in config.status.
 
10570
rm -f conftest.defines conftest.undefs
 
10571
# Using a here document instead of a string reduces the quoting nightmare.
 
10572
# Putting comments in sed scripts is not portable.
 
10573
#
 
10574
# `end' is used to avoid that the second main sed command (meant for
 
10575
# 0-ary CPP macros) applies to n-ary macro definitions.
 
10576
# See the Autoconf documentation for `clear'.
 
10577
cat >confdef2sed.sed <<\_ACEOF
 
10578
s/[\\&,]/\\&/g
 
10579
s,[\\$`],\\&,g
 
10580
t clear
 
10581
: clear
 
10582
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
10583
t end
 
10584
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
10585
: end
 
10586
_ACEOF
 
10587
# If some macros were called several times there might be several times
 
10588
# the same #defines, which is useless.  Nevertheless, we may not want to
 
10589
# sort them, since we want the *last* AC-DEFINE to be honored.
 
10590
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
10591
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
10592
rm -f confdef2sed.sed
 
10593
 
 
10594
# This sed command replaces #undef with comments.  This is necessary, for
 
10595
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
10596
# on some systems where configure will not decide to define it.
 
10597
cat >>conftest.undefs <<\_ACEOF
 
10598
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
10599
_ACEOF
 
10600
 
 
10601
# Break up conftest.defines because some shells have a limit on the size
 
10602
# of here documents, and old seds have small limits too (100 cmds).
 
10603
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
10604
echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
10605
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
10606
echo '  :' >>$CONFIG_STATUS
 
10607
rm -f conftest.tail
 
10608
while grep . conftest.defines >/dev/null
 
10609
do
 
10610
  # Write a limited-size here document to $tmp/defines.sed.
 
10611
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
10612
  # Speed up: don't consider the non `#define' lines.
 
10613
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
10614
  # Work around the forget-to-reset-the-flag bug.
 
10615
  echo 't clr' >>$CONFIG_STATUS
 
10616
  echo ': clr' >>$CONFIG_STATUS
 
10617
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
10618
  echo 'CEOF
 
10619
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
10620
  rm -f $tmp/in
 
10621
  mv $tmp/out $tmp/in
 
10622
' >>$CONFIG_STATUS
 
10623
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
10624
  rm -f conftest.defines
 
10625
  mv conftest.tail conftest.defines
 
10626
done
 
10627
rm -f conftest.defines
 
10628
echo '  fi # grep' >>$CONFIG_STATUS
 
10629
echo >>$CONFIG_STATUS
 
10630
 
 
10631
# Break up conftest.undefs because some shells have a limit on the size
 
10632
# of here documents, and old seds have small limits too (100 cmds).
 
10633
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
10634
rm -f conftest.tail
 
10635
while grep . conftest.undefs >/dev/null
 
10636
do
 
10637
  # Write a limited-size here document to $tmp/undefs.sed.
 
10638
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
10639
  # Speed up: don't consider the non `#undef'
 
10640
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
10641
  # Work around the forget-to-reset-the-flag bug.
 
10642
  echo 't clr' >>$CONFIG_STATUS
 
10643
  echo ': clr' >>$CONFIG_STATUS
 
10644
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
10645
  echo 'CEOF
 
10646
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
10647
  rm -f $tmp/in
 
10648
  mv $tmp/out $tmp/in
 
10649
' >>$CONFIG_STATUS
 
10650
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
10651
  rm -f conftest.undefs
 
10652
  mv conftest.tail conftest.undefs
 
10653
done
 
10654
rm -f conftest.undefs
 
10655
 
 
10656
cat >>$CONFIG_STATUS <<\_ACEOF
 
10657
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
10658
  # use $as_me), people would be surprised to read:
 
10659
  #    /* config.h.  Generated by config.status.  */
 
10660
  if test x"$ac_file" = x-; then
 
10661
    echo "/* Generated by configure.  */" >$tmp/config.h
 
10662
  else
 
10663
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
10664
  fi
 
10665
  cat $tmp/in >>$tmp/config.h
 
10666
  rm -f $tmp/in
 
10667
  if test x"$ac_file" != x-; then
 
10668
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
10669
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
10670
echo "$as_me: $ac_file is unchanged" >&6;}
 
10671
    else
 
10672
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
10673
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10674
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
10675
         X"$ac_file" : 'X\(//\)$' \| \
 
10676
         X"$ac_file" : 'X\(/\)' \| \
 
10677
         .     : '\(.\)' 2>/dev/null ||
 
10678
echo X"$ac_file" |
 
10679
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10680
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10681
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10682
          /^X\(\/\).*/{ s//\1/; q; }
 
10683
          s/.*/./; q'`
 
10684
      { if $as_mkdir_p; then
 
10685
    mkdir -p "$ac_dir"
 
10686
  else
 
10687
    as_dir="$ac_dir"
 
10688
    as_dirs=
 
10689
    while test ! -d "$as_dir"; do
 
10690
      as_dirs="$as_dir $as_dirs"
 
10691
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
10692
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10693
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
10694
         X"$as_dir" : 'X\(//\)$' \| \
 
10695
         X"$as_dir" : 'X\(/\)' \| \
 
10696
         .     : '\(.\)' 2>/dev/null ||
 
10697
echo X"$as_dir" |
 
10698
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10699
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10700
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10701
          /^X\(\/\).*/{ s//\1/; q; }
 
10702
          s/.*/./; q'`
 
10703
    done
 
10704
    test ! -n "$as_dirs" || mkdir $as_dirs
 
10705
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
10706
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
10707
   { (exit 1); exit 1; }; }; }
 
10708
 
 
10709
      rm -f $ac_file
 
10710
      mv $tmp/config.h $ac_file
 
10711
    fi
 
10712
  else
 
10713
    cat $tmp/config.h
 
10714
    rm -f $tmp/config.h
 
10715
  fi
 
10716
# Compute $ac_file's index in $config_headers.
 
10717
_am_stamp_count=1
 
10718
for _am_header in $config_headers :; do
 
10719
  case $_am_header in
 
10720
    $ac_file | $ac_file:* )
 
10721
      break ;;
 
10722
    * )
 
10723
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
10724
  esac
 
10725
done
 
10726
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
10727
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10728
         X$ac_file : 'X\(//\)[^/]' \| \
 
10729
         X$ac_file : 'X\(//\)$' \| \
 
10730
         X$ac_file : 'X\(/\)' \| \
 
10731
         .     : '\(.\)' 2>/dev/null ||
 
10732
echo X$ac_file |
 
10733
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10734
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10735
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10736
          /^X\(\/\).*/{ s//\1/; q; }
 
10737
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
10738
done
 
10739
_ACEOF
 
10740
cat >>$CONFIG_STATUS <<\_ACEOF
 
10741
 
 
10742
#
 
10743
# CONFIG_COMMANDS section.
 
10744
#
 
10745
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
10746
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
10747
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
10748
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
10749
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10750
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
10751
         X"$ac_dest" : 'X\(//\)$' \| \
 
10752
         X"$ac_dest" : 'X\(/\)' \| \
 
10753
         .     : '\(.\)' 2>/dev/null ||
 
10754
echo X"$ac_dest" |
 
10755
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10756
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10757
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10758
          /^X\(\/\).*/{ s//\1/; q; }
 
10759
          s/.*/./; q'`
 
10760
  ac_builddir=.
 
10761
 
 
10762
if test "$ac_dir" != .; then
 
10763
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
10764
  # A "../" for each directory in $ac_dir_suffix.
 
10765
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
10766
else
 
10767
  ac_dir_suffix= ac_top_builddir=
 
10768
fi
 
10769
 
 
10770
case $srcdir in
 
10771
  .)  # No --srcdir option.  We are building in place.
 
10772
    ac_srcdir=.
 
10773
    if test -z "$ac_top_builddir"; then
 
10774
       ac_top_srcdir=.
 
10775
    else
 
10776
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
10777
    fi ;;
 
10778
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
10779
    ac_srcdir=$srcdir$ac_dir_suffix;
 
10780
    ac_top_srcdir=$srcdir ;;
 
10781
  *) # Relative path.
 
10782
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
10783
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
10784
esac
 
10785
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
10786
# absolute.
 
10787
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
 
10788
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
 
10789
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
 
10790
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
 
10791
 
 
10792
 
 
10793
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
10794
echo "$as_me: executing $ac_dest commands" >&6;}
 
10795
  case $ac_dest in
 
10796
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
10797
  # Strip MF so we end up with the name of the file.
 
10798
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
10799
  # Check whether this is an Automake generated Makefile or not.
 
10800
  # We used to match only the files named `Makefile.in', but
 
10801
  # some people rename them; so instead we look at the file content.
 
10802
  # Grep'ing the first line is not enough: some people post-process
 
10803
  # each Makefile.in and add a new line on top of each file to say so.
 
10804
  # So let's grep whole file.
 
10805
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
10806
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
10807
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10808
         X"$mf" : 'X\(//\)[^/]' \| \
 
10809
         X"$mf" : 'X\(//\)$' \| \
 
10810
         X"$mf" : 'X\(/\)' \| \
 
10811
         .     : '\(.\)' 2>/dev/null ||
 
10812
echo X"$mf" |
 
10813
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10814
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10815
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10816
          /^X\(\/\).*/{ s//\1/; q; }
 
10817
          s/.*/./; q'`
 
10818
  else
 
10819
    continue
 
10820
  fi
 
10821
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
10822
  # Extract the definition of DEP_FILES from the Makefile without
 
10823
  # running `make'.
 
10824
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
10825
  test -z "$DEPDIR" && continue
 
10826
  # When using ansi2knr, U may be empty or an underscore; expand it
 
10827
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
10828
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
10829
  # We invoke sed twice because it is the simplest approach to
 
10830
  # changing $(DEPDIR) to its actual value in the expansion.
 
10831
  for file in `sed -n -e '
 
10832
    /^DEP_FILES = .*\\\\$/ {
 
10833
      s/^DEP_FILES = //
 
10834
      :loop
 
10835
        s/\\\\$//
 
10836
        p
 
10837
        n
 
10838
        /\\\\$/ b loop
 
10839
      p
 
10840
    }
 
10841
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
10842
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
10843
    # Make sure the directory exists.
 
10844
    test -f "$dirpart/$file" && continue
 
10845
    fdir=`(dirname "$file") 2>/dev/null ||
 
10846
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10847
         X"$file" : 'X\(//\)[^/]' \| \
 
10848
         X"$file" : 'X\(//\)$' \| \
 
10849
         X"$file" : 'X\(/\)' \| \
 
10850
         .     : '\(.\)' 2>/dev/null ||
 
10851
echo X"$file" |
 
10852
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10853
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10854
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10855
          /^X\(\/\).*/{ s//\1/; q; }
 
10856
          s/.*/./; q'`
 
10857
    { if $as_mkdir_p; then
 
10858
    mkdir -p $dirpart/$fdir
 
10859
  else
 
10860
    as_dir=$dirpart/$fdir
 
10861
    as_dirs=
 
10862
    while test ! -d "$as_dir"; do
 
10863
      as_dirs="$as_dir $as_dirs"
 
10864
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
10865
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
10866
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
10867
         X"$as_dir" : 'X\(//\)$' \| \
 
10868
         X"$as_dir" : 'X\(/\)' \| \
 
10869
         .     : '\(.\)' 2>/dev/null ||
 
10870
echo X"$as_dir" |
 
10871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
10872
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
10873
          /^X\(\/\/\)$/{ s//\1/; q; }
 
10874
          /^X\(\/\).*/{ s//\1/; q; }
 
10875
          s/.*/./; q'`
 
10876
    done
 
10877
    test ! -n "$as_dirs" || mkdir $as_dirs
 
10878
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
10879
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
10880
   { (exit 1); exit 1; }; }; }
 
10881
 
 
10882
    # echo "creating $dirpart/$file"
 
10883
    echo '# dummy' > "$dirpart/$file"
 
10884
  done
 
10885
done
 
10886
 ;;
 
10887
  esac
 
10888
done
 
10889
_ACEOF
 
10890
 
 
10891
cat >>$CONFIG_STATUS <<\_ACEOF
 
10892
 
 
10893
{ (exit 0); exit 0; }
 
10894
_ACEOF
 
10895
chmod +x $CONFIG_STATUS
 
10896
ac_clean_files=$ac_clean_files_save
 
10897
 
 
10898
 
 
10899
# configure is writing to config.log, and then calls config.status.
 
10900
# config.status does its own redirection, appending to config.log.
 
10901
# Unfortunately, on DOS this fails, as config.log is still kept open
 
10902
# by configure, so config.status won't be able to write to it; its
 
10903
# output is simply discarded.  So we exec the FD to /dev/null,
 
10904
# effectively closing config.log, so it can be properly (re)opened and
 
10905
# appended to by config.status.  When coming back to configure, we
 
10906
# need to make the FD available again.
 
10907
if test "$no_create" != yes; then
 
10908
  ac_cs_success=:
 
10909
  ac_config_status_args=
 
10910
  test "$silent" = yes &&
 
10911
    ac_config_status_args="$ac_config_status_args --quiet"
 
10912
  exec 5>/dev/null
 
10913
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
10914
  exec 5>>config.log
 
10915
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
10916
  # would make configure fail if this is the last instruction.
 
10917
  $ac_cs_success || { (exit 1); exit 1; }
 
10918
fi
 
10919