~vlad-lesin/percona-server/mysql-5.0.33-original

« back to all changes in this revision

Viewing changes to configure

  • Committer: Vlad Lesin
  • Date: 2012-07-31 09:21:34 UTC
  • Revision ID: vladislav.lesin@percona.com-20120731092134-zfodx022b7992wsi
VirginĀ 5.0.33

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
 
 
4
 
 
5
 
 
6
 
 
7
 
 
8
 
 
9
 
 
10
 
 
11
DEFAULT_CHARSET=latin1
 
12
CHARSETS_AVAILABLE="binary armscii8 ascii big5 cp1250 cp1251 cp1256 cp1257 cp850 cp852 cp866 cp932 dec8 eucjpms euckr gb2312 gbk geostd8 greek hebrew hp8 keybcs2 koi8r koi8u latin1 latin2 latin5 latin7 macce macroman sjis swe7 tis620 ucs2 ujis utf8"
 
13
CHARSETS_COMPLEX="big5 cp1250 cp932 eucjpms euckr gb2312 gbk latin1 latin2 sjis tis620 ucs2 ujis utf8"
 
14
 
 
15
# Guess values for system-dependent variables and create Makefiles.
 
16
# Generated by GNU Autoconf 2.59.
 
17
#
 
18
# Copyright (C) 2003 Free Software Foundation, Inc.
 
19
# This configure script is free software; the Free Software Foundation
 
20
# gives unlimited permission to copy, distribute and modify it.
 
21
## --------------------- ##
 
22
## M4sh Initialization.  ##
 
23
## --------------------- ##
 
24
 
 
25
# Be Bourne compatible
 
26
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
27
  emulate sh
 
28
  NULLCMD=:
 
29
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
30
  # is contrary to our usage.  Disable this feature.
 
31
  alias -g '${1+"$@"}'='"$@"'
 
32
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
33
  set -o posix
 
34
fi
 
35
DUALCASE=1; export DUALCASE # for MKS sh
 
36
 
 
37
# Support unset when possible.
 
38
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
39
  as_unset=unset
 
40
else
 
41
  as_unset=false
 
42
fi
 
43
 
 
44
 
 
45
# Work around bugs in pre-3.0 UWIN ksh.
 
46
$as_unset ENV MAIL MAILPATH
 
47
PS1='$ '
 
48
PS2='> '
 
49
PS4='+ '
 
50
 
 
51
# NLS nuisances.
 
52
for as_var in \
 
53
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
54
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
55
  LC_TELEPHONE LC_TIME
 
56
do
 
57
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
58
    eval $as_var=C; export $as_var
 
59
  else
 
60
    $as_unset $as_var
 
61
  fi
 
62
done
 
63
 
 
64
# Required to use basename.
 
65
if expr a : '\(a\)' >/dev/null 2>&1; then
 
66
  as_expr=expr
 
67
else
 
68
  as_expr=false
 
69
fi
 
70
 
 
71
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
72
  as_basename=basename
 
73
else
 
74
  as_basename=false
 
75
fi
 
76
 
 
77
 
 
78
# Name of the executable.
 
79
as_me=`$as_basename "$0" ||
 
80
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
81
         X"$0" : 'X\(//\)$' \| \
 
82
         X"$0" : 'X\(/\)$' \| \
 
83
         .     : '\(.\)' 2>/dev/null ||
 
84
echo X/"$0" |
 
85
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
86
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
87
          /^X\/\(\/\).*/{ s//\1/; q; }
 
88
          s/.*/./; q'`
 
89
 
 
90
 
 
91
# PATH needs CR, and LINENO needs CR and PATH.
 
92
# Avoid depending upon Character Ranges.
 
93
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
94
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
95
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
96
as_cr_digits='0123456789'
 
97
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
98
 
 
99
# The user is always right.
 
100
if test "${PATH_SEPARATOR+set}" != set; then
 
101
  echo "#! /bin/sh" >conf$$.sh
 
102
  echo  "exit 0"   >>conf$$.sh
 
103
  chmod +x conf$$.sh
 
104
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
105
    PATH_SEPARATOR=';'
 
106
  else
 
107
    PATH_SEPARATOR=:
 
108
  fi
 
109
  rm -f conf$$.sh
 
110
fi
 
111
 
 
112
 
 
113
  as_lineno_1=$LINENO
 
114
  as_lineno_2=$LINENO
 
115
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
116
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
117
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
118
  # Find who we are.  Look in the path if we contain no path at all
 
119
  # relative or not.
 
120
  case $0 in
 
121
    *[\\/]* ) as_myself=$0 ;;
 
122
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
123
for as_dir in $PATH
 
124
do
 
125
  IFS=$as_save_IFS
 
126
  test -z "$as_dir" && as_dir=.
 
127
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
128
done
 
129
 
 
130
       ;;
 
131
  esac
 
132
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
133
  # in which case we are not to be found in the path.
 
134
  if test "x$as_myself" = x; then
 
135
    as_myself=$0
 
136
  fi
 
137
  if test ! -f "$as_myself"; then
 
138
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
139
   { (exit 1); exit 1; }; }
 
140
  fi
 
141
  case $CONFIG_SHELL in
 
142
  '')
 
143
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
144
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
145
do
 
146
  IFS=$as_save_IFS
 
147
  test -z "$as_dir" && as_dir=.
 
148
  for as_base in sh bash ksh sh5; do
 
149
         case $as_dir in
 
150
         /*)
 
151
           if ("$as_dir/$as_base" -c '
 
152
  as_lineno_1=$LINENO
 
153
  as_lineno_2=$LINENO
 
154
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
155
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
156
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
157
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
158
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
159
             CONFIG_SHELL=$as_dir/$as_base
 
160
             export CONFIG_SHELL
 
161
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
162
           fi;;
 
163
         esac
 
164
       done
 
165
done
 
166
;;
 
167
  esac
 
168
 
 
169
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
170
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
171
  # line-number line before each line; the second 'sed' does the real
 
172
  # work.  The second script uses 'N' to pair each line-number line
 
173
  # with the numbered line, and appends trailing '-' during
 
174
  # substitution so that $LINENO is not a special case at line end.
 
175
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
176
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
177
  sed '=' <$as_myself |
 
178
    sed '
 
179
      N
 
180
      s,$,-,
 
181
      : loop
 
182
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
183
      t loop
 
184
      s,-$,,
 
185
      s,^['$as_cr_digits']*\n,,
 
186
    ' >$as_me.lineno &&
 
187
  chmod +x $as_me.lineno ||
 
188
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
189
   { (exit 1); exit 1; }; }
 
190
 
 
191
  # Don't try to exec as it changes $[0], causing all sort of problems
 
192
  # (the dirname of $[0] is not the place where we might find the
 
193
  # original and so on.  Autoconf is especially sensible to this).
 
194
  . ./$as_me.lineno
 
195
  # Exit status is that of the last command.
 
196
  exit
 
197
}
 
198
 
 
199
 
 
200
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
201
  *c*,-n*) ECHO_N= ECHO_C='
 
202
' ECHO_T='      ' ;;
 
203
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
204
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
205
esac
 
206
 
 
207
if expr a : '\(a\)' >/dev/null 2>&1; then
 
208
  as_expr=expr
 
209
else
 
210
  as_expr=false
 
211
fi
 
212
 
 
213
rm -f conf$$ conf$$.exe conf$$.file
 
214
echo >conf$$.file
 
215
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
216
  # We could just check for DJGPP; but this test a) works b) is more generic
 
217
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
218
  if test -f conf$$.exe; then
 
219
    # Don't use ln at all; we don't have any links
 
220
    as_ln_s='cp -p'
 
221
  else
 
222
    as_ln_s='ln -s'
 
223
  fi
 
224
elif ln conf$$.file conf$$ 2>/dev/null; then
 
225
  as_ln_s=ln
 
226
else
 
227
  as_ln_s='cp -p'
 
228
fi
 
229
rm -f conf$$ conf$$.exe conf$$.file
 
230
 
 
231
if mkdir -p . 2>/dev/null; then
 
232
  as_mkdir_p=:
 
233
else
 
234
  test -d ./-p && rmdir ./-p
 
235
  as_mkdir_p=false
 
236
fi
 
237
 
 
238
as_executable_p="test -f"
 
239
 
 
240
# Sed expression to map a string onto a valid CPP name.
 
241
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
242
 
 
243
# Sed expression to map a string onto a valid variable name.
 
244
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
245
 
 
246
 
 
247
# IFS
 
248
# We need space, tab and new line, in precisely that order.
 
249
as_nl='
 
250
'
 
251
IFS="   $as_nl"
 
252
 
 
253
# CDPATH.
 
254
$as_unset CDPATH
 
255
 
 
256
 
 
257
 
 
258
# Check that we are running under the correct shell.
 
259
SHELL=${CONFIG_SHELL-/bin/sh}
 
260
 
 
261
case X$ECHO in
 
262
X*--fallback-echo)
 
263
  # Remove one level of quotation (which was required for Make).
 
264
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
265
  ;;
 
266
esac
 
267
 
 
268
echo=${ECHO-echo}
 
269
if test "X$1" = X--no-reexec; then
 
270
  # Discard the --no-reexec flag, and continue.
 
271
  shift
 
272
elif test "X$1" = X--fallback-echo; then
 
273
  # Avoid inline document here, it may be left over
 
274
  :
 
275
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
276
  # Yippee, $echo works!
 
277
  :
 
278
else
 
279
  # Restart under the correct shell.
 
280
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
281
fi
 
282
 
 
283
if test "X$1" = X--fallback-echo; then
 
284
  # used as fallback echo
 
285
  shift
 
286
  cat <<EOF
 
287
$*
 
288
EOF
 
289
  exit 0
 
290
fi
 
291
 
 
292
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
293
# if CDPATH is set.
 
294
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
295
 
 
296
if test -z "$ECHO"; then
 
297
if test "X${echo_test_string+set}" != Xset; then
 
298
# find a string as large as possible, as long as the shell can cope with it
 
299
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
300
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
301
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
302
       echo_test_string=`eval $cmd` &&
 
303
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
304
    then
 
305
      break
 
306
    fi
 
307
  done
 
308
fi
 
309
 
 
310
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
311
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
312
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
313
  :
 
314
else
 
315
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
316
  # backslashes.  This makes it impossible to quote backslashes using
 
317
  #   echo "$something" | sed 's/\\/\\\\/g'
 
318
  #
 
319
  # So, first we look for a working echo in the user's PATH.
 
320
 
 
321
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
322
  for dir in $PATH /usr/ucb; do
 
323
    IFS="$lt_save_ifs"
 
324
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
325
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
326
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
327
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
328
      echo="$dir/echo"
 
329
      break
 
330
    fi
 
331
  done
 
332
  IFS="$lt_save_ifs"
 
333
 
 
334
  if test "X$echo" = Xecho; then
 
335
    # We didn't find a better echo, so look for alternatives.
 
336
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
337
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
338
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
339
      # This shell has a builtin print -r that does the trick.
 
340
      echo='print -r'
 
341
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
342
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
343
      # If we have ksh, try running configure again with it.
 
344
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
345
      export ORIGINAL_CONFIG_SHELL
 
346
      CONFIG_SHELL=/bin/ksh
 
347
      export CONFIG_SHELL
 
348
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
349
    else
 
350
      # Try using printf.
 
351
      echo='printf %s\n'
 
352
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
353
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
354
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
355
        # Cool, printf works
 
356
        :
 
357
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
358
           test "X$echo_testing_string" = 'X\t' &&
 
359
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
360
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
361
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
362
        export CONFIG_SHELL
 
363
        SHELL="$CONFIG_SHELL"
 
364
        export SHELL
 
365
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
366
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
367
           test "X$echo_testing_string" = 'X\t' &&
 
368
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
369
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
370
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
371
      else
 
372
        # maybe with a smaller string...
 
373
        prev=:
 
374
 
 
375
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
376
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
377
          then
 
378
            break
 
379
          fi
 
380
          prev="$cmd"
 
381
        done
 
382
 
 
383
        if test "$prev" != 'sed 50q "$0"'; then
 
384
          echo_test_string=`eval $prev`
 
385
          export echo_test_string
 
386
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
387
        else
 
388
          # Oops.  We lost completely, so just stick with echo.
 
389
          echo=echo
 
390
        fi
 
391
      fi
 
392
    fi
 
393
  fi
 
394
fi
 
395
fi
 
396
 
 
397
# Copy echo and quote the copy suitably for passing to libtool from
 
398
# the Makefile, instead of quoting the original, which is used later.
 
399
ECHO=$echo
 
400
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
401
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
402
fi
 
403
 
 
404
 
 
405
 
 
406
 
 
407
tagnames=${tagnames+${tagnames},}CXX
 
408
 
 
409
tagnames=${tagnames+${tagnames},}F77
 
410
 
 
411
# Name of the host.
 
412
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
413
# so uname gets run too.
 
414
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
415
 
 
416
exec 6>&1
 
417
 
 
418
#
 
419
# Initializations.
 
420
#
 
421
ac_default_prefix=/usr/local
 
422
ac_config_libobj_dir=.
 
423
cross_compiling=no
 
424
subdirs=
 
425
MFLAGS=
 
426
MAKEFLAGS=
 
427
SHELL=${CONFIG_SHELL-/bin/sh}
 
428
 
 
429
# Maximum number of lines to put in a shell here document.
 
430
# This variable seems obsolete.  It should probably be removed, and
 
431
# only ac_max_sed_lines should be used.
 
432
: ${ac_max_here_lines=38}
 
433
 
 
434
# Identity of this package.
 
435
PACKAGE_NAME=
 
436
PACKAGE_TARNAME=
 
437
PACKAGE_VERSION=
 
438
PACKAGE_STRING=
 
439
PACKAGE_BUGREPORT=
 
440
 
 
441
ac_unique_file="sql/mysqld.cc"
 
442
# Factoring default headers for most tests.
 
443
ac_includes_default="\
 
444
#include <stdio.h>
 
445
#if HAVE_SYS_TYPES_H
 
446
# include <sys/types.h>
 
447
#endif
 
448
#if HAVE_SYS_STAT_H
 
449
# include <sys/stat.h>
 
450
#endif
 
451
#if STDC_HEADERS
 
452
# include <stdlib.h>
 
453
# include <stddef.h>
 
454
#else
 
455
# if HAVE_STDLIB_H
 
456
#  include <stdlib.h>
 
457
# endif
 
458
#endif
 
459
#if HAVE_STRING_H
 
460
# if !STDC_HEADERS && HAVE_MEMORY_H
 
461
#  include <memory.h>
 
462
# endif
 
463
# include <string.h>
 
464
#endif
 
465
#if HAVE_STRINGS_H
 
466
# include <strings.h>
 
467
#endif
 
468
#if HAVE_INTTYPES_H
 
469
# include <inttypes.h>
 
470
#else
 
471
# if HAVE_STDINT_H
 
472
#  include <stdint.h>
 
473
# endif
 
474
#endif
 
475
#if HAVE_UNISTD_H
 
476
# include <unistd.h>
 
477
#endif"
 
478
 
 
479
ac_subdirs_all="$ac_subdirs_all innobase"
 
480
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MYSQL_NO_DASH_VERSION MYSQL_BASE_VERSION MYSQL_VERSION_ID PROTOCOL_VERSION DOT_FRM_VERSION SHARED_LIB_MAJOR_VERSION SHARED_LIB_VERSION AVAILABLE_LANGUAGES NDB_VERSION_MAJOR NDB_VERSION_MINOR NDB_VERSION_BUILD NDB_VERSION_STATUS SYSTEM_TYPE MACHINE_TYPE CONF_COMMAND SAVE_ASFLAGS SAVE_CFLAGS SAVE_CXXFLAGS SAVE_LDFLAGS SAVE_CXXLDFLAGS CXXLDFLAGS AR RANLIB DARWIN_MWCC_TRUE DARWIN_MWCC_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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP CC_VERSION CXX_VERSION AS ac_ct_RANLIB EGREP LN_S ECHO ac_ct_AR CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL NM YACC PDFMANUAL DVIS uname_prog LD ARFLAGS LD_VERSION_SCRIPT MYSQLD_DEFAULT_SWITCHES TARGET_LINUX LN LN_CP_F MV RM CP SED CMP CHMOD HOSTNAME TAR PERL PERL5 DOXYGEN PDFLATEX MAKEINDEX ICHECK PS FIND_PROC KILL CHECK_PID CCAS CCASFLAGS NOINST_LDFLAGS MYSQL_SERVER_SUFFIX ASSEMBLER_x86_TRUE ASSEMBLER_x86_FALSE ASSEMBLER_sparc32_TRUE ASSEMBLER_sparc32_FALSE ASSEMBLER_sparc64_TRUE ASSEMBLER_sparc64_FALSE ASSEMBLER_TRUE ASSEMBLER_FALSE MYSQL_UNIX_ADDR MYSQL_TCP_PORT MYSQL_TCP_PORT_DEFAULT MYSQLD_USER GETCONF ac_ct_GETCONF zlib_dir ZLIB_LIBS ZLIB_DEPS ZLIB_INCLUDES WRAPLIBS pstack_dirs pstack_libs COMPILE_PSTACK_TRUE COMPILE_PSTACK_FALSE LIBDL MYSQLD_EXTRA_LDFLAGS CLIENT_EXTRA_LDFLAGS LIB_EXTRA_CCFLAGS LM_CFLAGS COMPILATION_COMMENT ALLOCA MAKE_SHELL TERMCAP_LIB LIBEDIT_LOBJECTS tools_dirs openssl_libs openssl_includes yassl_taocrypt_extra_cxxflags yassl_h_ln_cmd yassl_libs yassl_dir HAVE_YASSL_TRUE HAVE_YASSL_FALSE libmysqld_dirs linked_libmysqld_targets docs_dirs man_dirs man1_files man8_files bench_dirs readline_dir readline_topdir readline_basedir readline_link readline_h_ln_cmd bdb_includes bdb_libs bdb_libs_with_path innodb_includes innodb_libs innodb_system_libs NDB_SCI_INCLUDES NDB_SCI_LIBS HAVE_NDBCLUSTER_DB_TRUE HAVE_NDBCLUSTER_DB_FALSE ndbcluster_includes ndbcluster_libs ndbcluster_system_libs ndb_mgmclient_libs CLIENT_LIBS NON_THREADED_LIBS STATIC_NSS_FLAGS sql_client_dirs linked_client_targets netware_dir linked_netware_sources HAVE_NETWARE_TRUE HAVE_NETWARE_FALSE THREAD_LOBJECTS subdirs sql_server_dirs thread_dirs server_scripts sql_union_dirs GXX NDB_DEFS ndb_cxxflags_fix ndb_port ndb_transporter_opt_objs ndb_bin_am_ldflags ndb_opt_subdirs NDB_SIZEOF_CHARP NDB_SIZEOF_CHAR NDB_SIZEOF_SHORT NDB_SIZEOF_INT NDB_SIZEOF_LONG NDB_SIZEOF_LONG_LONG MAKE_BINARY_DISTRIBUTION_OPTIONS LIBOBJS LTLIBOBJS'
 
481
ac_subst_files=''
 
482
 
 
483
# Initialize some variables set by options.
 
484
ac_init_help=
 
485
ac_init_version=false
 
486
# The variables have the same names as the options, with
 
487
# dashes changed to underlines.
 
488
cache_file=/dev/null
 
489
exec_prefix=NONE
 
490
no_create=
 
491
no_recursion=
 
492
prefix=NONE
 
493
program_prefix=NONE
 
494
program_suffix=NONE
 
495
program_transform_name=s,x,x,
 
496
silent=
 
497
site=
 
498
srcdir=
 
499
verbose=
 
500
x_includes=NONE
 
501
x_libraries=NONE
 
502
 
 
503
# Installation directory options.
 
504
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
505
# and all the variables that are supposed to be based on exec_prefix
 
506
# by default will actually change.
 
507
# Use braces instead of parens because sh, perl, etc. also accept them.
 
508
bindir='${exec_prefix}/bin'
 
509
sbindir='${exec_prefix}/sbin'
 
510
libexecdir='${exec_prefix}/libexec'
 
511
datadir='${prefix}/share'
 
512
sysconfdir='${prefix}/etc'
 
513
sharedstatedir='${prefix}/com'
 
514
localstatedir='${prefix}/var'
 
515
libdir='${exec_prefix}/lib'
 
516
includedir='${prefix}/include'
 
517
oldincludedir='/usr/include'
 
518
infodir='${prefix}/info'
 
519
mandir='${prefix}/man'
 
520
 
 
521
ac_prev=
 
522
for ac_option
 
523
do
 
524
  # If the previous option needs an argument, assign it.
 
525
  if test -n "$ac_prev"; then
 
526
    eval "$ac_prev=\$ac_option"
 
527
    ac_prev=
 
528
    continue
 
529
  fi
 
530
 
 
531
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
532
 
 
533
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
534
 
 
535
  case $ac_option in
 
536
 
 
537
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
538
    ac_prev=bindir ;;
 
539
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
540
    bindir=$ac_optarg ;;
 
541
 
 
542
  -build | --build | --buil | --bui | --bu)
 
543
    ac_prev=build_alias ;;
 
544
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
545
    build_alias=$ac_optarg ;;
 
546
 
 
547
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
548
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
549
    ac_prev=cache_file ;;
 
550
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
551
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
552
    cache_file=$ac_optarg ;;
 
553
 
 
554
  --config-cache | -C)
 
555
    cache_file=config.cache ;;
 
556
 
 
557
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
558
    ac_prev=datadir ;;
 
559
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
560
  | --da=*)
 
561
    datadir=$ac_optarg ;;
 
562
 
 
563
  -disable-* | --disable-*)
 
564
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
565
    # Reject names that are not valid shell variable names.
 
566
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
567
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
568
   { (exit 1); exit 1; }; }
 
569
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
570
    eval "enable_$ac_feature=no" ;;
 
571
 
 
572
  -enable-* | --enable-*)
 
573
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
574
    # Reject names that are not valid shell variable names.
 
575
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
576
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
577
   { (exit 1); exit 1; }; }
 
578
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
579
    case $ac_option in
 
580
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
581
      *) ac_optarg=yes ;;
 
582
    esac
 
583
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
584
 
 
585
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
586
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
587
  | --exec | --exe | --ex)
 
588
    ac_prev=exec_prefix ;;
 
589
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
590
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
591
  | --exec=* | --exe=* | --ex=*)
 
592
    exec_prefix=$ac_optarg ;;
 
593
 
 
594
  -gas | --gas | --ga | --g)
 
595
    # Obsolete; use --with-gas.
 
596
    with_gas=yes ;;
 
597
 
 
598
  -help | --help | --hel | --he | -h)
 
599
    ac_init_help=long ;;
 
600
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
601
    ac_init_help=recursive ;;
 
602
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
603
    ac_init_help=short ;;
 
604
 
 
605
  -host | --host | --hos | --ho)
 
606
    ac_prev=host_alias ;;
 
607
  -host=* | --host=* | --hos=* | --ho=*)
 
608
    host_alias=$ac_optarg ;;
 
609
 
 
610
  -includedir | --includedir | --includedi | --included | --include \
 
611
  | --includ | --inclu | --incl | --inc)
 
612
    ac_prev=includedir ;;
 
613
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
614
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
615
    includedir=$ac_optarg ;;
 
616
 
 
617
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
618
    ac_prev=infodir ;;
 
619
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
620
    infodir=$ac_optarg ;;
 
621
 
 
622
  -libdir | --libdir | --libdi | --libd)
 
623
    ac_prev=libdir ;;
 
624
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
625
    libdir=$ac_optarg ;;
 
626
 
 
627
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
628
  | --libexe | --libex | --libe)
 
629
    ac_prev=libexecdir ;;
 
630
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
631
  | --libexe=* | --libex=* | --libe=*)
 
632
    libexecdir=$ac_optarg ;;
 
633
 
 
634
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
635
  | --localstate | --localstat | --localsta | --localst \
 
636
  | --locals | --local | --loca | --loc | --lo)
 
637
    ac_prev=localstatedir ;;
 
638
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
639
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
640
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
641
    localstatedir=$ac_optarg ;;
 
642
 
 
643
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
644
    ac_prev=mandir ;;
 
645
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
646
    mandir=$ac_optarg ;;
 
647
 
 
648
  -nfp | --nfp | --nf)
 
649
    # Obsolete; use --without-fp.
 
650
    with_fp=no ;;
 
651
 
 
652
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
653
  | --no-cr | --no-c | -n)
 
654
    no_create=yes ;;
 
655
 
 
656
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
657
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
658
    no_recursion=yes ;;
 
659
 
 
660
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
661
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
662
  | --oldin | --oldi | --old | --ol | --o)
 
663
    ac_prev=oldincludedir ;;
 
664
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
665
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
666
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
667
    oldincludedir=$ac_optarg ;;
 
668
 
 
669
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
670
    ac_prev=prefix ;;
 
671
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
672
    prefix=$ac_optarg ;;
 
673
 
 
674
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
675
  | --program-pre | --program-pr | --program-p)
 
676
    ac_prev=program_prefix ;;
 
677
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
678
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
679
    program_prefix=$ac_optarg ;;
 
680
 
 
681
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
682
  | --program-suf | --program-su | --program-s)
 
683
    ac_prev=program_suffix ;;
 
684
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
685
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
686
    program_suffix=$ac_optarg ;;
 
687
 
 
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
    ac_prev=program_transform_name ;;
 
696
  -program-transform-name=* | --program-transform-name=* \
 
697
  | --program-transform-nam=* | --program-transform-na=* \
 
698
  | --program-transform-n=* | --program-transform-=* \
 
699
  | --program-transform=* | --program-transfor=* \
 
700
  | --program-transfo=* | --program-transf=* \
 
701
  | --program-trans=* | --program-tran=* \
 
702
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
703
    program_transform_name=$ac_optarg ;;
 
704
 
 
705
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
706
  | -silent | --silent | --silen | --sile | --sil)
 
707
    silent=yes ;;
 
708
 
 
709
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
710
    ac_prev=sbindir ;;
 
711
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
712
  | --sbi=* | --sb=*)
 
713
    sbindir=$ac_optarg ;;
 
714
 
 
715
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
716
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
717
  | --sharedst | --shareds | --shared | --share | --shar \
 
718
  | --sha | --sh)
 
719
    ac_prev=sharedstatedir ;;
 
720
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
721
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
722
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
723
  | --sha=* | --sh=*)
 
724
    sharedstatedir=$ac_optarg ;;
 
725
 
 
726
  -site | --site | --sit)
 
727
    ac_prev=site ;;
 
728
  -site=* | --site=* | --sit=*)
 
729
    site=$ac_optarg ;;
 
730
 
 
731
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
732
    ac_prev=srcdir ;;
 
733
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
734
    srcdir=$ac_optarg ;;
 
735
 
 
736
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
737
  | --syscon | --sysco | --sysc | --sys | --sy)
 
738
    ac_prev=sysconfdir ;;
 
739
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
740
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
741
    sysconfdir=$ac_optarg ;;
 
742
 
 
743
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
744
    ac_prev=target_alias ;;
 
745
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
746
    target_alias=$ac_optarg ;;
 
747
 
 
748
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
749
    verbose=yes ;;
 
750
 
 
751
  -version | --version | --versio | --versi | --vers | -V)
 
752
    ac_init_version=: ;;
 
753
 
 
754
  -with-* | --with-*)
 
755
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
756
    # Reject names that are not valid shell variable names.
 
757
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
758
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
759
   { (exit 1); exit 1; }; }
 
760
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
761
    case $ac_option in
 
762
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
763
      *) ac_optarg=yes ;;
 
764
    esac
 
765
    eval "with_$ac_package='$ac_optarg'" ;;
 
766
 
 
767
  -without-* | --without-*)
 
768
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
769
    # Reject names that are not valid shell variable names.
 
770
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
771
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
772
   { (exit 1); exit 1; }; }
 
773
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
774
    eval "with_$ac_package=no" ;;
 
775
 
 
776
  --x)
 
777
    # Obsolete; use --with-x.
 
778
    with_x=yes ;;
 
779
 
 
780
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
781
  | --x-incl | --x-inc | --x-in | --x-i)
 
782
    ac_prev=x_includes ;;
 
783
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
784
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
785
    x_includes=$ac_optarg ;;
 
786
 
 
787
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
788
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
789
    ac_prev=x_libraries ;;
 
790
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
791
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
792
    x_libraries=$ac_optarg ;;
 
793
 
 
794
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
795
Try \`$0 --help' for more information." >&2
 
796
   { (exit 1); exit 1; }; }
 
797
    ;;
 
798
 
 
799
  *=*)
 
800
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
801
    # Reject names that are not valid shell variable names.
 
802
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
803
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
804
   { (exit 1); exit 1; }; }
 
805
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
806
    eval "$ac_envvar='$ac_optarg'"
 
807
    export $ac_envvar ;;
 
808
 
 
809
  *)
 
810
    # FIXME: should be removed in autoconf 3.0.
 
811
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
812
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
813
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
814
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
815
    ;;
 
816
 
 
817
  esac
 
818
done
 
819
 
 
820
if test -n "$ac_prev"; then
 
821
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
822
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
823
   { (exit 1); exit 1; }; }
 
824
fi
 
825
 
 
826
# Be sure to have absolute paths.
 
827
for ac_var in exec_prefix prefix
 
828
do
 
829
  eval ac_val=$`echo $ac_var`
 
830
  case $ac_val in
 
831
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
832
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
833
   { (exit 1); exit 1; }; };;
 
834
  esac
 
835
done
 
836
 
 
837
# Be sure to have absolute paths.
 
838
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
839
              localstatedir libdir includedir oldincludedir infodir mandir
 
840
do
 
841
  eval ac_val=$`echo $ac_var`
 
842
  case $ac_val in
 
843
    [\\/$]* | ?:[\\/]* ) ;;
 
844
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
845
   { (exit 1); exit 1; }; };;
 
846
  esac
 
847
done
 
848
 
 
849
# There might be people who depend on the old broken behavior: `$host'
 
850
# used to hold the argument of --host etc.
 
851
# FIXME: To remove some day.
 
852
build=$build_alias
 
853
host=$host_alias
 
854
target=$target_alias
 
855
 
 
856
# FIXME: To remove some day.
 
857
if test "x$host_alias" != x; then
 
858
  if test "x$build_alias" = x; then
 
859
    cross_compiling=maybe
 
860
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
861
    If a cross compiler is detected then cross compile mode will be used." >&2
 
862
  elif test "x$build_alias" != "x$host_alias"; then
 
863
    cross_compiling=yes
 
864
  fi
 
865
fi
 
866
 
 
867
ac_tool_prefix=
 
868
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
869
 
 
870
test "$silent" = yes && exec 6>/dev/null
 
871
 
 
872
 
 
873
# Find the source files, if location was not specified.
 
874
if test -z "$srcdir"; then
 
875
  ac_srcdir_defaulted=yes
 
876
  # Try the directory containing this script, then its parent.
 
877
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
878
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
879
         X"$0" : 'X\(//\)[^/]' \| \
 
880
         X"$0" : 'X\(//\)$' \| \
 
881
         X"$0" : 'X\(/\)' \| \
 
882
         .     : '\(.\)' 2>/dev/null ||
 
883
echo X"$0" |
 
884
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
885
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
886
          /^X\(\/\/\)$/{ s//\1/; q; }
 
887
          /^X\(\/\).*/{ s//\1/; q; }
 
888
          s/.*/./; q'`
 
889
  srcdir=$ac_confdir
 
890
  if test ! -r $srcdir/$ac_unique_file; then
 
891
    srcdir=..
 
892
  fi
 
893
else
 
894
  ac_srcdir_defaulted=no
 
895
fi
 
896
if test ! -r $srcdir/$ac_unique_file; then
 
897
  if test "$ac_srcdir_defaulted" = yes; then
 
898
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
899
   { (exit 1); exit 1; }; }
 
900
  else
 
901
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
902
   { (exit 1); exit 1; }; }
 
903
  fi
 
904
fi
 
905
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
906
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
907
   { (exit 1); exit 1; }; }
 
908
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
909
ac_env_build_alias_set=${build_alias+set}
 
910
ac_env_build_alias_value=$build_alias
 
911
ac_cv_env_build_alias_set=${build_alias+set}
 
912
ac_cv_env_build_alias_value=$build_alias
 
913
ac_env_host_alias_set=${host_alias+set}
 
914
ac_env_host_alias_value=$host_alias
 
915
ac_cv_env_host_alias_set=${host_alias+set}
 
916
ac_cv_env_host_alias_value=$host_alias
 
917
ac_env_target_alias_set=${target_alias+set}
 
918
ac_env_target_alias_value=$target_alias
 
919
ac_cv_env_target_alias_set=${target_alias+set}
 
920
ac_cv_env_target_alias_value=$target_alias
 
921
ac_env_CC_set=${CC+set}
 
922
ac_env_CC_value=$CC
 
923
ac_cv_env_CC_set=${CC+set}
 
924
ac_cv_env_CC_value=$CC
 
925
ac_env_CFLAGS_set=${CFLAGS+set}
 
926
ac_env_CFLAGS_value=$CFLAGS
 
927
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
928
ac_cv_env_CFLAGS_value=$CFLAGS
 
929
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
930
ac_env_LDFLAGS_value=$LDFLAGS
 
931
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
932
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
933
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
934
ac_env_CPPFLAGS_value=$CPPFLAGS
 
935
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
936
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
937
ac_env_CXX_set=${CXX+set}
 
938
ac_env_CXX_value=$CXX
 
939
ac_cv_env_CXX_set=${CXX+set}
 
940
ac_cv_env_CXX_value=$CXX
 
941
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
942
ac_env_CXXFLAGS_value=$CXXFLAGS
 
943
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
944
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
945
ac_env_CPP_set=${CPP+set}
 
946
ac_env_CPP_value=$CPP
 
947
ac_cv_env_CPP_set=${CPP+set}
 
948
ac_cv_env_CPP_value=$CPP
 
949
ac_env_CXXCPP_set=${CXXCPP+set}
 
950
ac_env_CXXCPP_value=$CXXCPP
 
951
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
952
ac_cv_env_CXXCPP_value=$CXXCPP
 
953
ac_env_F77_set=${F77+set}
 
954
ac_env_F77_value=$F77
 
955
ac_cv_env_F77_set=${F77+set}
 
956
ac_cv_env_F77_value=$F77
 
957
ac_env_FFLAGS_set=${FFLAGS+set}
 
958
ac_env_FFLAGS_value=$FFLAGS
 
959
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
960
ac_cv_env_FFLAGS_value=$FFLAGS
 
961
ac_env_CCAS_set=${CCAS+set}
 
962
ac_env_CCAS_value=$CCAS
 
963
ac_cv_env_CCAS_set=${CCAS+set}
 
964
ac_cv_env_CCAS_value=$CCAS
 
965
ac_env_CCASFLAGS_set=${CCASFLAGS+set}
 
966
ac_env_CCASFLAGS_value=$CCASFLAGS
 
967
ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
 
968
ac_cv_env_CCASFLAGS_value=$CCASFLAGS
 
969
 
 
970
#
 
971
# Report the --help message.
 
972
#
 
973
if test "$ac_init_help" = "long"; then
 
974
  # Omit some internal or obsolete options to make the list less imposing.
 
975
  # This message is too long to be a string in the A/UX 3.1 sh.
 
976
  cat <<_ACEOF
 
977
\`configure' configures this package to adapt to many kinds of systems.
 
978
 
 
979
Usage: $0 [OPTION]... [VAR=VALUE]...
 
980
 
 
981
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
982
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
983
 
 
984
Defaults for the options are specified in brackets.
 
985
 
 
986
Configuration:
 
987
  -h, --help              display this help and exit
 
988
      --help=short        display options specific to this package
 
989
      --help=recursive    display the short help of all the included packages
 
990
  -V, --version           display version information and exit
 
991
  -q, --quiet, --silent   do not print \`checking...' messages
 
992
      --cache-file=FILE   cache test results in FILE [disabled]
 
993
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
994
  -n, --no-create         do not create output files
 
995
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
996
 
 
997
_ACEOF
 
998
 
 
999
  cat <<_ACEOF
 
1000
Installation directories:
 
1001
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1002
                          [$ac_default_prefix]
 
1003
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1004
                          [PREFIX]
 
1005
 
 
1006
By default, \`make install' will install all the files in
 
1007
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1008
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1009
for instance \`--prefix=\$HOME'.
 
1010
 
 
1011
For better control, use the options below.
 
1012
 
 
1013
Fine tuning of the installation directories:
 
1014
  --bindir=DIR           user executables [EPREFIX/bin]
 
1015
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1016
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1017
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
1018
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1019
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1020
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1021
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1022
  --includedir=DIR       C header files [PREFIX/include]
 
1023
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1024
  --infodir=DIR          info documentation [PREFIX/info]
 
1025
  --mandir=DIR           man documentation [PREFIX/man]
 
1026
_ACEOF
 
1027
 
 
1028
  cat <<\_ACEOF
 
1029
 
 
1030
Program names:
 
1031
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1032
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1033
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1034
 
 
1035
System types:
 
1036
  --build=BUILD     configure for building on BUILD [guessed]
 
1037
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1038
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1039
_ACEOF
 
1040
fi
 
1041
 
 
1042
if test -n "$ac_init_help"; then
 
1043
 
 
1044
  cat <<\_ACEOF
 
1045
 
 
1046
Optional Features:
 
1047
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1048
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1049
  --disable-dependency-tracking  speeds up one-time build
 
1050
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1051
  --enable-shared[=PKGS]
 
1052
                          build shared libraries [default=yes]
 
1053
  --enable-static[=PKGS]
 
1054
                          build static libraries [default=yes]
 
1055
  --enable-fast-install[=PKGS]
 
1056
                          optimize for fast installation [default=yes]
 
1057
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1058
  --enable-thread-safe-client
 
1059
                          Compile the client with threads.
 
1060
  --enable-assembler      Use assembler versions of some string
 
1061
                          functions if available.
 
1062
  --enable-local-infile   Enable LOAD DATA LOCAL INFILE (default: disabled)
 
1063
  --disable-largefile     Omit support for large files
 
1064
 
 
1065
Optional Packages:
 
1066
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1067
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1068
  --with-charset=CHARSET
 
1069
                          Default character set, use one of:
 
1070
                          binary
 
1071
                          armscii8 ascii big5 cp1250 cp1251 cp1256 cp1257
 
1072
                          cp850 cp852 cp866 cp932 dec8 eucjpms euckr gb2312 gbk geostd8
 
1073
                          greek hebrew hp8 keybcs2 koi8r koi8u
 
1074
                          latin1 latin2 latin5 latin7 macce macroman
 
1075
                          sjis swe7 tis620 ucs2 ujis utf8
 
1076
  --with-collation=COLLATION
 
1077
                          Default collation
 
1078
  --with-extra-charsets=CHARSET,CHARSET,...
 
1079
                          Use charsets in addition to default (none, complex,
 
1080
                          all, or a list selected from the above sets)
 
1081
  --without-uca           Skip building of the national Unicode collations.
 
1082
  --with-darwin-mwcc      Use Metrowerks CodeWarrior wrappers on OS X/Darwin
 
1083
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1084
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1085
                          both]
 
1086
  --with-tags[=TAGS]
 
1087
                          include additional configurations [automatic]
 
1088
  --with-other-libc=DIR   Link against libc and other standard libraries
 
1089
                          installed in the specified non-standard location
 
1090
                          overriding default. Originally added to be able to
 
1091
                          link against glibc 2.2 without making the user
 
1092
                          upgrade the standard libc installation.
 
1093
  --with-server-suffix    Append value to the version string.
 
1094
  --with-pthread          Force use of pthread library.
 
1095
  --with-named-thread-libs=ARG
 
1096
                          Use specified thread libraries instead of
 
1097
                          those automatically found by configure.
 
1098
  --with-named-curses-libs=ARG
 
1099
                          Use specified curses libraries instead of
 
1100
                          those automatically found by configure.
 
1101
  --with-unix-socket-path=SOCKET
 
1102
                          Where to put the unix-domain socket.  SOCKET must be
 
1103
                          an absolute file name.
 
1104
  --with-tcp-port=port-number
 
1105
                          Which port to use for MySQL services (default 3306)
 
1106
  --with-mysqld-user=username
 
1107
                          What user the mysqld daemon shall be run as.
 
1108
  --with-zlib-dir=DIR     Provide MySQL with a custom location of compression
 
1109
                          library. Given DIR, zlib binary is assumed to be in
 
1110
                          $DIR/lib and header files in $DIR/include.
 
1111
  --with-libwrap=DIR      Compile in libwrap (tcp_wrappers) support
 
1112
  --with-pstack           Use the pstack backtrace library
 
1113
  --without-debug         Build a production version without debugging code
 
1114
  --with-mysqld-ldflags   Extra linking arguments for mysqld
 
1115
  --with-client-ldflags   Extra linking arguments for clients
 
1116
  --with-lib-ccflags      Extra CC options for libraries
 
1117
  --with-low-memory       Try to use less memory to compile to avoid
 
1118
                          memory limitations.
 
1119
  --with-comment          Comment about compilation environment.
 
1120
  --without-server        Only build the client.
 
1121
  --with-embedded-server  Build the embedded server (libmysqld).
 
1122
  --without-query-cache   Do not build query cache.
 
1123
  --without-geometry      Do not build geometry-related parts.
 
1124
  --with-embedded-privilege-control
 
1125
                          Build parts to check user's privileges.
 
1126
                          Only affects embedded library.
 
1127
  --without-extra-tools   Skip building utilites in the tools directory.
 
1128
  --with-mysqlmanager     Build the mysqlmanager binary: yes/no (default:
 
1129
                          build if server is built.)
 
1130
  --with-openssl=DIR    Include the OpenSSL support
 
1131
 
 
1132
  --with-openssl-includes=DIR
 
1133
                          Find OpenSSL headers in DIR
 
1134
 
 
1135
  --with-openssl-libs=DIR
 
1136
                          Find OpenSSL libraries in DIR
 
1137
  --with-yassl          Include the yaSSL support
 
1138
  --without-docs          Skip building of the documentation.
 
1139
  --without-man          Skip building of the man pages.
 
1140
  --without-bench         Skip building of the benchmark suite.
 
1141
  --without-readline      Use system readline instead of bundled copy.
 
1142
  --without-libedit       Use system libedit instead of bundled copy.
 
1143
 
 
1144
  --with-big-tables       Support tables with more than 4 G rows even on 32 bit platforms
 
1145
 
 
1146
  --with-max-indexes=\#      Sets the maximum number of indexes per table, default 64
 
1147
 
 
1148
  --with-berkeley-db=DIR
 
1149
                          Use BerkeleyDB located in DIR
 
1150
 
 
1151
  --with-berkeley-db-includes=DIR
 
1152
                          Find Berkeley DB headers in DIR
 
1153
 
 
1154
  --with-berkeley-db-libs=DIR
 
1155
                          Find Berkeley DB libraries in DIR
 
1156
 
 
1157
  --without-innodb        Do not include the InnoDB table handler
 
1158
 
 
1159
  --with-example-storage-engine
 
1160
                          Enable the Example Storage Engine
 
1161
 
 
1162
  --with-archive-storage-engine
 
1163
                          Enable the Archive Storage Engine
 
1164
 
 
1165
  --with-csv-storage-engine
 
1166
                          Enable the CSV Storage Engine
 
1167
 
 
1168
  --with-blackhole-storage-engine
 
1169
                          Enable the Blackhole Storage Engine
 
1170
 
 
1171
  --with-ndbcluster        Include the NDB Cluster table handler
 
1172
  --with-ndb-sci=DIR      Provide MySQL with a custom location of sci library.
 
1173
                          Given DIR, sci library is assumed to be in $DIR/lib
 
1174
                          and header files in $DIR/include.
 
1175
 
 
1176
  --with-ndb-test       Include the NDB Cluster ndbapi test programs
 
1177
 
 
1178
  --with-ndb-docs       Include the NDB Cluster ndbapi and mgmapi documentation
 
1179
 
 
1180
  --with-ndb-port       Port for NDB Cluster management server
 
1181
 
 
1182
  --with-ndb-port-base  Base port for NDB Cluster transporters
 
1183
 
 
1184
  --without-ndb-debug   Disable special ndb debug features
 
1185
  --with-ndb-ccflags=CFLAGS
 
1186
                          Extra CFLAGS for ndb compile
 
1187
 
 
1188
  --with-federated-storage-engine
 
1189
                        Enable the MySQL Federated Storage Engine
 
1190
 
 
1191
Some influential environment variables:
 
1192
  CC          C compiler command
 
1193
  CFLAGS      C compiler flags
 
1194
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1195
              nonstandard directory <lib dir>
 
1196
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1197
              headers in a nonstandard directory <include dir>
 
1198
  CXX         C++ compiler command
 
1199
  CXXFLAGS    C++ compiler flags
 
1200
  CPP         C preprocessor
 
1201
  CXXCPP      C++ preprocessor
 
1202
  F77         Fortran 77 compiler command
 
1203
  FFLAGS      Fortran 77 compiler flags
 
1204
  CCAS        assembler compiler command (defaults to CC)
 
1205
  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
 
1206
 
 
1207
Use these variables to override the choices made by `configure' or to help
 
1208
it to find libraries and programs with nonstandard names/locations.
 
1209
 
 
1210
_ACEOF
 
1211
fi
 
1212
 
 
1213
if test "$ac_init_help" = "recursive"; then
 
1214
  # If there are subdirs, report their specific --help.
 
1215
  ac_popdir=`pwd`
 
1216
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1217
    test -d $ac_dir || continue
 
1218
    ac_builddir=.
 
1219
 
 
1220
if test "$ac_dir" != .; then
 
1221
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1222
  # A "../" for each directory in $ac_dir_suffix.
 
1223
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1224
else
 
1225
  ac_dir_suffix= ac_top_builddir=
 
1226
fi
 
1227
 
 
1228
case $srcdir in
 
1229
  .)  # No --srcdir option.  We are building in place.
 
1230
    ac_srcdir=.
 
1231
    if test -z "$ac_top_builddir"; then
 
1232
       ac_top_srcdir=.
 
1233
    else
 
1234
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1235
    fi ;;
 
1236
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1237
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1238
    ac_top_srcdir=$srcdir ;;
 
1239
  *) # Relative path.
 
1240
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1241
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1242
esac
 
1243
 
 
1244
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1245
# the directories may not exist.
 
1246
case `pwd` in
 
1247
.) ac_abs_builddir="$ac_dir";;
 
1248
*)
 
1249
  case "$ac_dir" in
 
1250
  .) ac_abs_builddir=`pwd`;;
 
1251
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1252
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1253
  esac;;
 
1254
esac
 
1255
case $ac_abs_builddir in
 
1256
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1257
*)
 
1258
  case ${ac_top_builddir}. in
 
1259
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1260
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1261
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1262
  esac;;
 
1263
esac
 
1264
case $ac_abs_builddir in
 
1265
.) ac_abs_srcdir=$ac_srcdir;;
 
1266
*)
 
1267
  case $ac_srcdir in
 
1268
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1269
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1270
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1271
  esac;;
 
1272
esac
 
1273
case $ac_abs_builddir in
 
1274
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1275
*)
 
1276
  case $ac_top_srcdir in
 
1277
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1278
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1279
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1280
  esac;;
 
1281
esac
 
1282
 
 
1283
    cd $ac_dir
 
1284
    # Check for guested configure; otherwise get Cygnus style configure.
 
1285
    if test -f $ac_srcdir/configure.gnu; then
 
1286
      echo
 
1287
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1288
    elif test -f $ac_srcdir/configure; then
 
1289
      echo
 
1290
      $SHELL $ac_srcdir/configure  --help=recursive
 
1291
    elif test -f $ac_srcdir/configure.ac ||
 
1292
           test -f $ac_srcdir/configure.in; then
 
1293
      echo
 
1294
      $ac_configure --help
 
1295
    else
 
1296
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1297
    fi
 
1298
    cd $ac_popdir
 
1299
  done
 
1300
fi
 
1301
 
 
1302
test -n "$ac_init_help" && exit 0
 
1303
if $ac_init_version; then
 
1304
  cat <<\_ACEOF
 
1305
 
 
1306
Copyright (C) 2003 Free Software Foundation, Inc.
 
1307
This configure script is free software; the Free Software Foundation
 
1308
gives unlimited permission to copy, distribute and modify it.
 
1309
_ACEOF
 
1310
  exit 0
 
1311
fi
 
1312
exec 5>config.log
 
1313
cat >&5 <<_ACEOF
 
1314
This file contains any messages produced by compilers while
 
1315
running configure, to aid debugging if configure makes a mistake.
 
1316
 
 
1317
It was created by $as_me, which was
 
1318
generated by GNU Autoconf 2.59.  Invocation command line was
 
1319
 
 
1320
  $ $0 $@
 
1321
 
 
1322
_ACEOF
 
1323
{
 
1324
cat <<_ASUNAME
 
1325
## --------- ##
 
1326
## Platform. ##
 
1327
## --------- ##
 
1328
 
 
1329
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1330
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1331
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1332
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1333
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1334
 
 
1335
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1336
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1337
 
 
1338
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1339
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1340
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1341
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1342
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1343
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1344
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1345
 
 
1346
_ASUNAME
 
1347
 
 
1348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1349
for as_dir in $PATH
 
1350
do
 
1351
  IFS=$as_save_IFS
 
1352
  test -z "$as_dir" && as_dir=.
 
1353
  echo "PATH: $as_dir"
 
1354
done
 
1355
 
 
1356
} >&5
 
1357
 
 
1358
cat >&5 <<_ACEOF
 
1359
 
 
1360
 
 
1361
## ----------- ##
 
1362
## Core tests. ##
 
1363
## ----------- ##
 
1364
 
 
1365
_ACEOF
 
1366
 
 
1367
 
 
1368
# Keep a trace of the command line.
 
1369
# Strip out --no-create and --no-recursion so they do not pile up.
 
1370
# Strip out --silent because we don't want to record it for future runs.
 
1371
# Also quote any args containing shell meta-characters.
 
1372
# Make two passes to allow for proper duplicate-argument suppression.
 
1373
ac_configure_args=
 
1374
ac_configure_args0=
 
1375
ac_configure_args1=
 
1376
ac_sep=
 
1377
ac_must_keep_next=false
 
1378
for ac_pass in 1 2
 
1379
do
 
1380
  for ac_arg
 
1381
  do
 
1382
    case $ac_arg in
 
1383
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1384
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1385
    | -silent | --silent | --silen | --sile | --sil)
 
1386
      continue ;;
 
1387
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1388
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1389
    esac
 
1390
    case $ac_pass in
 
1391
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1392
    2)
 
1393
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1394
      if test $ac_must_keep_next = true; then
 
1395
        ac_must_keep_next=false # Got value, back to normal.
 
1396
      else
 
1397
        case $ac_arg in
 
1398
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1399
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1400
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1401
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1402
            case "$ac_configure_args0 " in
 
1403
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1404
            esac
 
1405
            ;;
 
1406
          -* ) ac_must_keep_next=true ;;
 
1407
        esac
 
1408
      fi
 
1409
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1410
      # Get rid of the leading space.
 
1411
      ac_sep=" "
 
1412
      ;;
 
1413
    esac
 
1414
  done
 
1415
done
 
1416
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1417
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1418
 
 
1419
# When interrupted or exit'd, cleanup temporary files, and complete
 
1420
# config.log.  We remove comments because anyway the quotes in there
 
1421
# would cause problems or look ugly.
 
1422
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1423
# such as our DU 5.0 friend, will then `close' the trap.
 
1424
trap 'exit_status=$?
 
1425
  # Save into config.log some information that might help in debugging.
 
1426
  {
 
1427
    echo
 
1428
 
 
1429
    cat <<\_ASBOX
 
1430
## ---------------- ##
 
1431
## Cache variables. ##
 
1432
## ---------------- ##
 
1433
_ASBOX
 
1434
    echo
 
1435
    # The following way of writing the cache mishandles newlines in values,
 
1436
{
 
1437
  (set) 2>&1 |
 
1438
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1439
    *ac_space=\ *)
 
1440
      sed -n \
 
1441
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1442
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1443
      ;;
 
1444
    *)
 
1445
      sed -n \
 
1446
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1447
      ;;
 
1448
    esac;
 
1449
}
 
1450
    echo
 
1451
 
 
1452
    cat <<\_ASBOX
 
1453
## ----------------- ##
 
1454
## Output variables. ##
 
1455
## ----------------- ##
 
1456
_ASBOX
 
1457
    echo
 
1458
    for ac_var in $ac_subst_vars
 
1459
    do
 
1460
      eval ac_val=$`echo $ac_var`
 
1461
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1462
    done | sort
 
1463
    echo
 
1464
 
 
1465
    if test -n "$ac_subst_files"; then
 
1466
      cat <<\_ASBOX
 
1467
## ------------- ##
 
1468
## Output files. ##
 
1469
## ------------- ##
 
1470
_ASBOX
 
1471
      echo
 
1472
      for ac_var in $ac_subst_files
 
1473
      do
 
1474
        eval ac_val=$`echo $ac_var`
 
1475
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1476
      done | sort
 
1477
      echo
 
1478
    fi
 
1479
 
 
1480
    if test -s confdefs.h; then
 
1481
      cat <<\_ASBOX
 
1482
## ----------- ##
 
1483
## confdefs.h. ##
 
1484
## ----------- ##
 
1485
_ASBOX
 
1486
      echo
 
1487
      sed "/^$/d" confdefs.h | sort
 
1488
      echo
 
1489
    fi
 
1490
    test "$ac_signal" != 0 &&
 
1491
      echo "$as_me: caught signal $ac_signal"
 
1492
    echo "$as_me: exit $exit_status"
 
1493
  } >&5
 
1494
  rm -f core *.core &&
 
1495
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1496
    exit $exit_status
 
1497
     ' 0
 
1498
for ac_signal in 1 2 13 15; do
 
1499
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1500
done
 
1501
ac_signal=0
 
1502
 
 
1503
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1504
rm -rf conftest* confdefs.h
 
1505
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1506
echo >confdefs.h
 
1507
 
 
1508
# Predefined preprocessor variables.
 
1509
 
 
1510
cat >>confdefs.h <<_ACEOF
 
1511
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1512
_ACEOF
 
1513
 
 
1514
 
 
1515
cat >>confdefs.h <<_ACEOF
 
1516
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1517
_ACEOF
 
1518
 
 
1519
 
 
1520
cat >>confdefs.h <<_ACEOF
 
1521
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1522
_ACEOF
 
1523
 
 
1524
 
 
1525
cat >>confdefs.h <<_ACEOF
 
1526
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1527
_ACEOF
 
1528
 
 
1529
 
 
1530
cat >>confdefs.h <<_ACEOF
 
1531
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1532
_ACEOF
 
1533
 
 
1534
 
 
1535
# Let the site file select an alternate cache file if it wants to.
 
1536
# Prefer explicitly selected file to automatically selected ones.
 
1537
if test -z "$CONFIG_SITE"; then
 
1538
  if test "x$prefix" != xNONE; then
 
1539
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1540
  else
 
1541
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1542
  fi
 
1543
fi
 
1544
for ac_site_file in $CONFIG_SITE; do
 
1545
  if test -r "$ac_site_file"; then
 
1546
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1547
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1548
    sed 's/^/| /' "$ac_site_file" >&5
 
1549
    . "$ac_site_file"
 
1550
  fi
 
1551
done
 
1552
 
 
1553
if test -r "$cache_file"; then
 
1554
  # Some versions of bash will fail to source /dev/null (special
 
1555
  # files actually), so we avoid doing that.
 
1556
  if test -f "$cache_file"; then
 
1557
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1558
echo "$as_me: loading cache $cache_file" >&6;}
 
1559
    case $cache_file in
 
1560
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1561
      *)                      . ./$cache_file;;
 
1562
    esac
 
1563
  fi
 
1564
else
 
1565
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1566
echo "$as_me: creating cache $cache_file" >&6;}
 
1567
  >$cache_file
 
1568
fi
 
1569
 
 
1570
# Check that the precious variables saved in the cache have kept the same
 
1571
# value.
 
1572
ac_cache_corrupted=false
 
1573
for ac_var in `(set) 2>&1 |
 
1574
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1575
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1576
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1577
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1578
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1579
  case $ac_old_set,$ac_new_set in
 
1580
    set,)
 
1581
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1582
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1583
      ac_cache_corrupted=: ;;
 
1584
    ,set)
 
1585
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1586
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1587
      ac_cache_corrupted=: ;;
 
1588
    ,);;
 
1589
    *)
 
1590
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1591
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1592
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1593
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1594
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1595
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1596
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1597
        ac_cache_corrupted=:
 
1598
      fi;;
 
1599
  esac
 
1600
  # Pass precious variables to config.status.
 
1601
  if test "$ac_new_set" = set; then
 
1602
    case $ac_new_val in
 
1603
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1604
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1605
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1606
    esac
 
1607
    case " $ac_configure_args " in
 
1608
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1609
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1610
    esac
 
1611
  fi
 
1612
done
 
1613
if $ac_cache_corrupted; then
 
1614
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1615
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1616
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1617
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1618
   { (exit 1); exit 1; }; }
 
1619
fi
 
1620
 
 
1621
ac_ext=c
 
1622
ac_cpp='$CPP $CPPFLAGS'
 
1623
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1624
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1625
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1626
 
 
1627
 
 
1628
 
 
1629
 
 
1630
 
 
1631
 
 
1632
 
 
1633
 
 
1634
 
 
1635
 
 
1636
 
 
1637
 
 
1638
 
 
1639
 
 
1640
 
 
1641
 
 
1642
 
 
1643
 
 
1644
 
 
1645
ac_aux_dir=
 
1646
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1647
  if test -f $ac_dir/install-sh; then
 
1648
    ac_aux_dir=$ac_dir
 
1649
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1650
    break
 
1651
  elif test -f $ac_dir/install.sh; then
 
1652
    ac_aux_dir=$ac_dir
 
1653
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1654
    break
 
1655
  elif test -f $ac_dir/shtool; then
 
1656
    ac_aux_dir=$ac_dir
 
1657
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1658
    break
 
1659
  fi
 
1660
done
 
1661
if test -z "$ac_aux_dir"; then
 
1662
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1663
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1664
   { (exit 1); exit 1; }; }
 
1665
fi
 
1666
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1667
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1668
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1669
 
 
1670
# Make sure we can run config.sub.
 
1671
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1672
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1673
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
1674
   { (exit 1); exit 1; }; }
 
1675
 
 
1676
echo "$as_me:$LINENO: checking build system type" >&5
 
1677
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1678
if test "${ac_cv_build+set}" = set; then
 
1679
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1680
else
 
1681
  ac_cv_build_alias=$build_alias
 
1682
test -z "$ac_cv_build_alias" &&
 
1683
  ac_cv_build_alias=`$ac_config_guess`
 
1684
test -z "$ac_cv_build_alias" &&
 
1685
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1686
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1687
   { (exit 1); exit 1; }; }
 
1688
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1689
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1690
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
1691
   { (exit 1); exit 1; }; }
 
1692
 
 
1693
fi
 
1694
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1695
echo "${ECHO_T}$ac_cv_build" >&6
 
1696
build=$ac_cv_build
 
1697
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1698
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1699
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1700
 
 
1701
 
 
1702
echo "$as_me:$LINENO: checking host system type" >&5
 
1703
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
1704
if test "${ac_cv_host+set}" = set; then
 
1705
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1706
else
 
1707
  ac_cv_host_alias=$host_alias
 
1708
test -z "$ac_cv_host_alias" &&
 
1709
  ac_cv_host_alias=$ac_cv_build_alias
 
1710
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1711
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1712
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
1713
   { (exit 1); exit 1; }; }
 
1714
 
 
1715
fi
 
1716
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1717
echo "${ECHO_T}$ac_cv_host" >&6
 
1718
host=$ac_cv_host
 
1719
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1720
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1721
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1722
 
 
1723
 
 
1724
echo "$as_me:$LINENO: checking target system type" >&5
 
1725
echo $ECHO_N "checking target system type... $ECHO_C" >&6
 
1726
if test "${ac_cv_target+set}" = set; then
 
1727
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1728
else
 
1729
  ac_cv_target_alias=$target_alias
 
1730
test "x$ac_cv_target_alias" = "x" &&
 
1731
  ac_cv_target_alias=$ac_cv_host_alias
 
1732
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
 
1733
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
 
1734
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
 
1735
   { (exit 1); exit 1; }; }
 
1736
 
 
1737
fi
 
1738
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
1739
echo "${ECHO_T}$ac_cv_target" >&6
 
1740
target=$ac_cv_target
 
1741
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1742
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1743
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1744
 
 
1745
 
 
1746
# The aliases save the names the user supplied, while $host etc.
 
1747
# will get canonicalized.
 
1748
test -n "$target_alias" &&
 
1749
  test "$program_prefix$program_suffix$program_transform_name" = \
 
1750
    NONENONEs,x,x, &&
 
1751
  program_prefix=${target_alias}-
 
1752
# The Docs Makefile.am parses this line!
 
1753
# remember to also change ndb version below and update version.c in ndb
 
1754
am__api_version="1.9"
 
1755
# Find a good install program.  We prefer a C program (faster),
 
1756
# so one script is as good as another.  But avoid the broken or
 
1757
# incompatible versions:
 
1758
# SysV /etc/install, /usr/sbin/install
 
1759
# SunOS /usr/etc/install
 
1760
# IRIX /sbin/install
 
1761
# AIX /bin/install
 
1762
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1763
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1764
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1765
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1766
# OS/2's system install, which has a completely different semantic
 
1767
# ./install, which can be erroneously created by make from ./install.sh.
 
1768
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1769
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1770
if test -z "$INSTALL"; then
 
1771
if test "${ac_cv_path_install+set}" = set; then
 
1772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1773
else
 
1774
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1775
for as_dir in $PATH
 
1776
do
 
1777
  IFS=$as_save_IFS
 
1778
  test -z "$as_dir" && as_dir=.
 
1779
  # Account for people who put trailing slashes in PATH elements.
 
1780
case $as_dir/ in
 
1781
  ./ | .// | /cC/* | \
 
1782
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1783
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1784
  /usr/ucb/* ) ;;
 
1785
  *)
 
1786
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1787
    # Don't use installbsd from OSF since it installs stuff as root
 
1788
    # by default.
 
1789
    for ac_prog in ginstall scoinst install; do
 
1790
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1791
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1792
          if test $ac_prog = install &&
 
1793
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1794
            # AIX install.  It has an incompatible calling convention.
 
1795
            :
 
1796
          elif test $ac_prog = install &&
 
1797
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1798
            # program-specific install script used by HP pwplus--don't use.
 
1799
            :
 
1800
          else
 
1801
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1802
            break 3
 
1803
          fi
 
1804
        fi
 
1805
      done
 
1806
    done
 
1807
    ;;
 
1808
esac
 
1809
done
 
1810
 
 
1811
 
 
1812
fi
 
1813
  if test "${ac_cv_path_install+set}" = set; then
 
1814
    INSTALL=$ac_cv_path_install
 
1815
  else
 
1816
    # As a last resort, use the slow shell script.  We don't cache a
 
1817
    # path for INSTALL within a source directory, because that will
 
1818
    # break other packages using the cache if that directory is
 
1819
    # removed, or if the path is relative.
 
1820
    INSTALL=$ac_install_sh
 
1821
  fi
 
1822
fi
 
1823
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1824
echo "${ECHO_T}$INSTALL" >&6
 
1825
 
 
1826
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1827
# It thinks the first close brace ends the variable substitution.
 
1828
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1829
 
 
1830
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1831
 
 
1832
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1833
 
 
1834
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1835
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1836
# Just in case
 
1837
sleep 1
 
1838
echo timestamp > conftest.file
 
1839
# Do `set' in a subshell so we don't clobber the current shell's
 
1840
# arguments.  Must try -L first in case configure is actually a
 
1841
# symlink; some systems play weird games with the mod time of symlinks
 
1842
# (eg FreeBSD returns the mod time of the symlink's containing
 
1843
# directory).
 
1844
if (
 
1845
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1846
   if test "$*" = "X"; then
 
1847
      # -L didn't work.
 
1848
      set X `ls -t $srcdir/configure conftest.file`
 
1849
   fi
 
1850
   rm -f conftest.file
 
1851
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1852
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1853
 
 
1854
      # If neither matched, then we have a broken ls.  This can happen
 
1855
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1856
      # broken ls alias from the environment.  This has actually
 
1857
      # happened.  Such a system could not be considered "sane".
 
1858
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1859
alias in your environment" >&5
 
1860
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1861
alias in your environment" >&2;}
 
1862
   { (exit 1); exit 1; }; }
 
1863
   fi
 
1864
 
 
1865
   test "$2" = conftest.file
 
1866
   )
 
1867
then
 
1868
   # Ok.
 
1869
   :
 
1870
else
 
1871
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1872
Check your system clock" >&5
 
1873
echo "$as_me: error: newly created file is older than distributed files!
 
1874
Check your system clock" >&2;}
 
1875
   { (exit 1); exit 1; }; }
 
1876
fi
 
1877
echo "$as_me:$LINENO: result: yes" >&5
 
1878
echo "${ECHO_T}yes" >&6
 
1879
test "$program_prefix" != NONE &&
 
1880
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1881
# Use a double $ so make ignores it.
 
1882
test "$program_suffix" != NONE &&
 
1883
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1884
# Double any \ or $.  echo might interpret backslashes.
 
1885
# By default was `s,x,x', remove it if useless.
 
1886
cat <<\_ACEOF >conftest.sed
 
1887
s/[\\$]/&&/g;s/;s,x,x,$//
 
1888
_ACEOF
 
1889
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1890
rm conftest.sed
 
1891
 
 
1892
# expand $ac_aux_dir to an absolute path
 
1893
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1894
 
 
1895
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1896
# Use eval to expand $SHELL
 
1897
if eval "$MISSING --run true"; then
 
1898
  am_missing_run="$MISSING --run "
 
1899
else
 
1900
  am_missing_run=
 
1901
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1902
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1903
fi
 
1904
 
 
1905
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1906
  # We used to keeping the `.' as first argument, in order to
 
1907
  # allow $(mkdir_p) to be used without argument.  As in
 
1908
  #   $(mkdir_p) $(somedir)
 
1909
  # where $(somedir) is conditionally defined.  However this is wrong
 
1910
  # for two reasons:
 
1911
  #  1. if the package is installed by a user who cannot write `.'
 
1912
  #     make install will fail,
 
1913
  #  2. the above comment should most certainly read
 
1914
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1915
  #     so it does not work when $(somedir) is undefined and
 
1916
  #     $(DESTDIR) is not.
 
1917
  #  To support the latter case, we have to write
 
1918
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1919
  #  so the `.' trick is pointless.
 
1920
  mkdir_p='mkdir -p --'
 
1921
else
 
1922
  # On NextStep and OpenStep, the `mkdir' command does not
 
1923
  # recognize any option.  It will interpret all options as
 
1924
  # directories to create, and then abort because `.' already
 
1925
  # exists.
 
1926
  for d in ./-p ./--version;
 
1927
  do
 
1928
    test -d $d && rmdir $d
 
1929
  done
 
1930
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1931
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1932
    mkdir_p='$(mkinstalldirs)'
 
1933
  else
 
1934
    mkdir_p='$(install_sh) -d'
 
1935
  fi
 
1936
fi
 
1937
 
 
1938
for ac_prog in gawk mawk nawk awk
 
1939
do
 
1940
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1941
set dummy $ac_prog; ac_word=$2
 
1942
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1943
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1944
if test "${ac_cv_prog_AWK+set}" = set; then
 
1945
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1946
else
 
1947
  if test -n "$AWK"; then
 
1948
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1949
else
 
1950
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1951
for as_dir in $PATH
 
1952
do
 
1953
  IFS=$as_save_IFS
 
1954
  test -z "$as_dir" && as_dir=.
 
1955
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1956
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1957
    ac_cv_prog_AWK="$ac_prog"
 
1958
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1959
    break 2
 
1960
  fi
 
1961
done
 
1962
done
 
1963
 
 
1964
fi
 
1965
fi
 
1966
AWK=$ac_cv_prog_AWK
 
1967
if test -n "$AWK"; then
 
1968
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1969
echo "${ECHO_T}$AWK" >&6
 
1970
else
 
1971
  echo "$as_me:$LINENO: result: no" >&5
 
1972
echo "${ECHO_T}no" >&6
 
1973
fi
 
1974
 
 
1975
  test -n "$AWK" && break
 
1976
done
 
1977
 
 
1978
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1979
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1980
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1981
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1983
else
 
1984
  cat >conftest.make <<\_ACEOF
 
1985
all:
 
1986
        @echo 'ac_maketemp="$(MAKE)"'
 
1987
_ACEOF
 
1988
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1989
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1990
if test -n "$ac_maketemp"; then
 
1991
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1992
else
 
1993
  eval ac_cv_prog_make_${ac_make}_set=no
 
1994
fi
 
1995
rm -f conftest.make
 
1996
fi
 
1997
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1998
  echo "$as_me:$LINENO: result: yes" >&5
 
1999
echo "${ECHO_T}yes" >&6
 
2000
  SET_MAKE=
 
2001
else
 
2002
  echo "$as_me:$LINENO: result: no" >&5
 
2003
echo "${ECHO_T}no" >&6
 
2004
  SET_MAKE="MAKE=${MAKE-make}"
 
2005
fi
 
2006
 
 
2007
rm -rf .tst 2>/dev/null
 
2008
mkdir .tst 2>/dev/null
 
2009
if test -d .tst; then
 
2010
  am__leading_dot=.
 
2011
else
 
2012
  am__leading_dot=_
 
2013
fi
 
2014
rmdir .tst 2>/dev/null
 
2015
 
 
2016
# test to see if srcdir already configured
 
2017
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
2018
   test -f $srcdir/config.status; then
 
2019
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2020
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2021
   { (exit 1); exit 1; }; }
 
2022
fi
 
2023
 
 
2024
# test whether we have cygpath
 
2025
if test -z "$CYGPATH_W"; then
 
2026
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2027
    CYGPATH_W='cygpath -w'
 
2028
  else
 
2029
    CYGPATH_W=echo
 
2030
  fi
 
2031
fi
 
2032
 
 
2033
 
 
2034
# Define the identity of the package.
 
2035
 PACKAGE=mysql
 
2036
 VERSION=5.0.33
 
2037
 
 
2038
 
 
2039
cat >>confdefs.h <<_ACEOF
 
2040
#define PACKAGE "$PACKAGE"
 
2041
_ACEOF
 
2042
 
 
2043
 
 
2044
cat >>confdefs.h <<_ACEOF
 
2045
#define VERSION "$VERSION"
 
2046
_ACEOF
 
2047
 
 
2048
# Some tools Automake needs.
 
2049
 
 
2050
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2051
 
 
2052
 
 
2053
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2054
 
 
2055
 
 
2056
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2057
 
 
2058
 
 
2059
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2060
 
 
2061
 
 
2062
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2063
 
 
2064
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2065
 
 
2066
# Installed binaries are usually stripped using `strip' when the user
 
2067
# run `make install-strip'.  However `strip' might not be the right
 
2068
# tool to use in cross-compilation environments, therefore Automake
 
2069
# will honor the `STRIP' environment variable to overrule this program.
 
2070
if test "$cross_compiling" != no; then
 
2071
  if test -n "$ac_tool_prefix"; then
 
2072
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2073
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2074
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2075
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2076
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2077
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2078
else
 
2079
  if test -n "$STRIP"; then
 
2080
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2081
else
 
2082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2083
for as_dir in $PATH
 
2084
do
 
2085
  IFS=$as_save_IFS
 
2086
  test -z "$as_dir" && as_dir=.
 
2087
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2088
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2089
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2090
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2091
    break 2
 
2092
  fi
 
2093
done
 
2094
done
 
2095
 
 
2096
fi
 
2097
fi
 
2098
STRIP=$ac_cv_prog_STRIP
 
2099
if test -n "$STRIP"; then
 
2100
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
2101
echo "${ECHO_T}$STRIP" >&6
 
2102
else
 
2103
  echo "$as_me:$LINENO: result: no" >&5
 
2104
echo "${ECHO_T}no" >&6
 
2105
fi
 
2106
 
 
2107
fi
 
2108
if test -z "$ac_cv_prog_STRIP"; then
 
2109
  ac_ct_STRIP=$STRIP
 
2110
  # Extract the first word of "strip", so it can be a program name with args.
 
2111
set dummy strip; ac_word=$2
 
2112
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2113
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2114
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2115
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2116
else
 
2117
  if test -n "$ac_ct_STRIP"; then
 
2118
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2119
else
 
2120
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2121
for as_dir in $PATH
 
2122
do
 
2123
  IFS=$as_save_IFS
 
2124
  test -z "$as_dir" && as_dir=.
 
2125
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2126
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2127
    ac_cv_prog_ac_ct_STRIP="strip"
 
2128
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2129
    break 2
 
2130
  fi
 
2131
done
 
2132
done
 
2133
 
 
2134
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
2135
fi
 
2136
fi
 
2137
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2138
if test -n "$ac_ct_STRIP"; then
 
2139
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2140
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
2141
else
 
2142
  echo "$as_me:$LINENO: result: no" >&5
 
2143
echo "${ECHO_T}no" >&6
 
2144
fi
 
2145
 
 
2146
  STRIP=$ac_ct_STRIP
 
2147
else
 
2148
  STRIP="$ac_cv_prog_STRIP"
 
2149
fi
 
2150
 
 
2151
fi
 
2152
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2153
 
 
2154
# We need awk for the "check" target.  The system "awk" is bad on
 
2155
# some platforms.
 
2156
# Always define AMTAR for backward compatibility.
 
2157
 
 
2158
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2159
 
 
2160
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2161
 
 
2162
 
 
2163
 
 
2164
 
 
2165
 
 
2166
          ac_config_headers="$ac_config_headers config.h"
 
2167
 
 
2168
 
 
2169
PROTOCOL_VERSION=10
 
2170
DOT_FRM_VERSION=6
 
2171
# See the libtool docs for information on how to do shared lib versions.
 
2172
SHARED_LIB_MAJOR_VERSION=15
 
2173
SHARED_LIB_VERSION=$SHARED_LIB_MAJOR_VERSION:0:0
 
2174
 
 
2175
# ndb version
 
2176
NDB_VERSION_MAJOR=5
 
2177
NDB_VERSION_MINOR=0
 
2178
NDB_VERSION_BUILD=33
 
2179
NDB_VERSION_STATUS=""
 
2180
 
 
2181
# Set all version vars based on $VERSION. How do we do this more elegant ?
 
2182
# Remember that regexps needs to quote [ and ] since this is run through m4
 
2183
MYSQL_NO_DASH_VERSION=`echo $VERSION | sed -e "s|[a-z]*-.*$||"`
 
2184
MYSQL_BASE_VERSION=`echo $MYSQL_NO_DASH_VERSION | sed -e "s|\.[^.]*$||"`
 
2185
MYSQL_VERSION_ID=`echo $MYSQL_NO_DASH_VERSION. | sed -e 's/[^0-9.]//g; s/\./  /g; s/ \([0-9]\) / 0\\1 /g; s/ //g'`
 
2186
 
 
2187
# The port should be constant for a LONG time
 
2188
MYSQL_TCP_PORT_DEFAULT=3306
 
2189
MYSQL_UNIX_ADDR_DEFAULT="/tmp/mysql.sock"
 
2190
 
 
2191
 
 
2192
 
 
2193
 
 
2194
 
 
2195
 
 
2196
 
 
2197
 
 
2198
 
 
2199
 
 
2200
# Check whether --with-charset or --without-charset was given.
 
2201
if test "${with_charset+set}" = set; then
 
2202
  withval="$with_charset"
 
2203
  default_charset="$withval"
 
2204
else
 
2205
  default_charset="$DEFAULT_CHARSET"
 
2206
fi;
 
2207
 
 
2208
 
 
2209
# Check whether --with-collation or --without-collation was given.
 
2210
if test "${with_collation+set}" = set; then
 
2211
  withval="$with_collation"
 
2212
  default_collation="$withval"
 
2213
else
 
2214
  default_collation="default"
 
2215
fi;
 
2216
 
 
2217
 
 
2218
 
 
2219
# Check whether --with-extra-charsets or --without-extra-charsets was given.
 
2220
if test "${with_extra_charsets+set}" = set; then
 
2221
  withval="$with_extra_charsets"
 
2222
  extra_charsets="$withval"
 
2223
else
 
2224
  extra_charsets="none"
 
2225
fi;
 
2226
 
 
2227
 
 
2228
echo "$as_me:$LINENO: checking \"character sets\"" >&5
 
2229
echo $ECHO_N "checking \"character sets\"... $ECHO_C" >&6
 
2230
 
 
2231
CHARSETS="$default_charset latin1 utf8"
 
2232
 
 
2233
if test "$extra_charsets" = no; then
 
2234
  CHARSETS="$CHARSETS"
 
2235
elif test "$extra_charsets" = none; then
 
2236
  CHARSETS="$CHARSETS"
 
2237
elif test "$extra_charsets" = complex; then
 
2238
  CHARSETS="$CHARSETS $CHARSETS_COMPLEX"
 
2239
 
 
2240
cat >>confdefs.h <<\_ACEOF
 
2241
#define DEFINE_ALL_CHARACTER_SETS 1
 
2242
_ACEOF
 
2243
 
 
2244
elif test "$extra_charsets" = all; then
 
2245
  CHARSETS="$CHARSETS $CHARSETS_AVAILABLE"
 
2246
 
 
2247
cat >>confdefs.h <<\_ACEOF
 
2248
#define DEFINE_ALL_CHARACTER_SETS 1
 
2249
_ACEOF
 
2250
 
 
2251
else
 
2252
  EXTRA_CHARSETS=`echo $extra_charsets | sed -e 's/,/ /g'`
 
2253
  CHARSETS="$CHARSETS $EXTRA_CHARSETS"
 
2254
fi
 
2255
 
 
2256
for cs in $CHARSETS
 
2257
do
 
2258
  case $cs in
 
2259
    armscii8)
 
2260
 
 
2261
cat >>confdefs.h <<\_ACEOF
 
2262
#define HAVE_CHARSET_armscii8 1
 
2263
_ACEOF
 
2264
 
 
2265
      ;;
 
2266
    ascii)
 
2267
 
 
2268
cat >>confdefs.h <<\_ACEOF
 
2269
#define HAVE_CHARSET_ascii 1
 
2270
_ACEOF
 
2271
 
 
2272
      ;;
 
2273
    big5)
 
2274
 
 
2275
cat >>confdefs.h <<\_ACEOF
 
2276
#define HAVE_CHARSET_big5 1
 
2277
_ACEOF
 
2278
 
 
2279
 
 
2280
cat >>confdefs.h <<\_ACEOF
 
2281
#define USE_MB 1
 
2282
_ACEOF
 
2283
 
 
2284
 
 
2285
cat >>confdefs.h <<\_ACEOF
 
2286
#define USE_MB_IDENT 1
 
2287
_ACEOF
 
2288
 
 
2289
      ;;
 
2290
    binary)
 
2291
      ;;
 
2292
    cp1250)
 
2293
 
 
2294
cat >>confdefs.h <<\_ACEOF
 
2295
#define HAVE_CHARSET_cp1250 1
 
2296
_ACEOF
 
2297
 
 
2298
      ;;
 
2299
    cp1251)
 
2300
 
 
2301
cat >>confdefs.h <<\_ACEOF
 
2302
#define HAVE_CHARSET_cp1251 1
 
2303
_ACEOF
 
2304
 
 
2305
      ;;
 
2306
    cp1256)
 
2307
 
 
2308
cat >>confdefs.h <<\_ACEOF
 
2309
#define HAVE_CHARSET_cp1256 1
 
2310
_ACEOF
 
2311
 
 
2312
      ;;
 
2313
    cp1257)
 
2314
 
 
2315
cat >>confdefs.h <<\_ACEOF
 
2316
#define HAVE_CHARSET_cp1257 1
 
2317
_ACEOF
 
2318
 
 
2319
      ;;
 
2320
    cp850)
 
2321
 
 
2322
cat >>confdefs.h <<\_ACEOF
 
2323
#define HAVE_CHARSET_cp850 1
 
2324
_ACEOF
 
2325
 
 
2326
      ;;
 
2327
    cp852)
 
2328
 
 
2329
cat >>confdefs.h <<\_ACEOF
 
2330
#define HAVE_CHARSET_cp852 1
 
2331
_ACEOF
 
2332
 
 
2333
      ;;
 
2334
    cp866)
 
2335
 
 
2336
cat >>confdefs.h <<\_ACEOF
 
2337
#define HAVE_CHARSET_cp866 1
 
2338
_ACEOF
 
2339
 
 
2340
      ;;
 
2341
    cp932)
 
2342
 
 
2343
cat >>confdefs.h <<\_ACEOF
 
2344
#define HAVE_CHARSET_cp932 1
 
2345
_ACEOF
 
2346
 
 
2347
 
 
2348
cat >>confdefs.h <<\_ACEOF
 
2349
#define USE_MB 1
 
2350
_ACEOF
 
2351
 
 
2352
      cat >>confdefs.h <<\_ACEOF
 
2353
#define USE_MB_IDENT 1
 
2354
_ACEOF
 
2355
 
 
2356
      ;;
 
2357
    dec8)
 
2358
 
 
2359
cat >>confdefs.h <<\_ACEOF
 
2360
#define HAVE_CHARSET_dec8 1
 
2361
_ACEOF
 
2362
 
 
2363
      ;;
 
2364
    eucjpms)
 
2365
 
 
2366
cat >>confdefs.h <<\_ACEOF
 
2367
#define HAVE_CHARSET_eucjpms 1
 
2368
_ACEOF
 
2369
 
 
2370
 
 
2371
cat >>confdefs.h <<\_ACEOF
 
2372
#define USE_MB 1
 
2373
_ACEOF
 
2374
 
 
2375
      cat >>confdefs.h <<\_ACEOF
 
2376
#define USE_MB_IDENT 1
 
2377
_ACEOF
 
2378
 
 
2379
      ;;
 
2380
    euckr)
 
2381
 
 
2382
cat >>confdefs.h <<\_ACEOF
 
2383
#define HAVE_CHARSET_euckr 1
 
2384
_ACEOF
 
2385
 
 
2386
 
 
2387
cat >>confdefs.h <<\_ACEOF
 
2388
#define USE_MB 1
 
2389
_ACEOF
 
2390
 
 
2391
      cat >>confdefs.h <<\_ACEOF
 
2392
#define USE_MB_IDENT 1
 
2393
_ACEOF
 
2394
 
 
2395
      ;;
 
2396
    gb2312)
 
2397
 
 
2398
cat >>confdefs.h <<\_ACEOF
 
2399
#define HAVE_CHARSET_gb2312 1
 
2400
_ACEOF
 
2401
 
 
2402
 
 
2403
cat >>confdefs.h <<\_ACEOF
 
2404
#define USE_MB 1
 
2405
_ACEOF
 
2406
 
 
2407
      cat >>confdefs.h <<\_ACEOF
 
2408
#define USE_MB_IDENT 1
 
2409
_ACEOF
 
2410
 
 
2411
      ;;
 
2412
    gbk)
 
2413
 
 
2414
cat >>confdefs.h <<\_ACEOF
 
2415
#define HAVE_CHARSET_gbk 1
 
2416
_ACEOF
 
2417
 
 
2418
 
 
2419
cat >>confdefs.h <<\_ACEOF
 
2420
#define USE_MB 1
 
2421
_ACEOF
 
2422
 
 
2423
      cat >>confdefs.h <<\_ACEOF
 
2424
#define USE_MB_IDENT 1
 
2425
_ACEOF
 
2426
 
 
2427
      ;;
 
2428
    geostd8)
 
2429
 
 
2430
cat >>confdefs.h <<\_ACEOF
 
2431
#define HAVE_CHARSET_geostd8 1
 
2432
_ACEOF
 
2433
 
 
2434
      ;;
 
2435
    greek)
 
2436
 
 
2437
cat >>confdefs.h <<\_ACEOF
 
2438
#define HAVE_CHARSET_greek 1
 
2439
_ACEOF
 
2440
 
 
2441
      ;;
 
2442
    hebrew)
 
2443
 
 
2444
cat >>confdefs.h <<\_ACEOF
 
2445
#define HAVE_CHARSET_hebrew 1
 
2446
_ACEOF
 
2447
 
 
2448
      ;;
 
2449
    hp8)
 
2450
 
 
2451
cat >>confdefs.h <<\_ACEOF
 
2452
#define HAVE_CHARSET_hp8 1
 
2453
_ACEOF
 
2454
 
 
2455
      ;;
 
2456
    keybcs2)
 
2457
 
 
2458
cat >>confdefs.h <<\_ACEOF
 
2459
#define HAVE_CHARSET_keybcs2 1
 
2460
_ACEOF
 
2461
 
 
2462
      ;;
 
2463
    koi8r)
 
2464
 
 
2465
cat >>confdefs.h <<\_ACEOF
 
2466
#define HAVE_CHARSET_koi8r 1
 
2467
_ACEOF
 
2468
 
 
2469
      ;;
 
2470
    koi8u)
 
2471
 
 
2472
cat >>confdefs.h <<\_ACEOF
 
2473
#define HAVE_CHARSET_koi8u 1
 
2474
_ACEOF
 
2475
 
 
2476
      ;;
 
2477
    latin1)
 
2478
 
 
2479
cat >>confdefs.h <<\_ACEOF
 
2480
#define HAVE_CHARSET_latin1 1
 
2481
_ACEOF
 
2482
 
 
2483
      ;;
 
2484
    latin2)
 
2485
 
 
2486
cat >>confdefs.h <<\_ACEOF
 
2487
#define HAVE_CHARSET_latin2 1
 
2488
_ACEOF
 
2489
 
 
2490
      ;;
 
2491
    latin5)
 
2492
 
 
2493
cat >>confdefs.h <<\_ACEOF
 
2494
#define HAVE_CHARSET_latin5 1
 
2495
_ACEOF
 
2496
 
 
2497
      ;;
 
2498
    latin7)
 
2499
 
 
2500
cat >>confdefs.h <<\_ACEOF
 
2501
#define HAVE_CHARSET_latin7 1
 
2502
_ACEOF
 
2503
 
 
2504
      ;;
 
2505
    macce)
 
2506
 
 
2507
cat >>confdefs.h <<\_ACEOF
 
2508
#define HAVE_CHARSET_macce 1
 
2509
_ACEOF
 
2510
 
 
2511
      ;;
 
2512
    macroman)
 
2513
 
 
2514
cat >>confdefs.h <<\_ACEOF
 
2515
#define HAVE_CHARSET_macroman 1
 
2516
_ACEOF
 
2517
 
 
2518
      ;;
 
2519
    sjis)
 
2520
 
 
2521
cat >>confdefs.h <<\_ACEOF
 
2522
#define HAVE_CHARSET_sjis 1
 
2523
_ACEOF
 
2524
 
 
2525
 
 
2526
cat >>confdefs.h <<\_ACEOF
 
2527
#define USE_MB 1
 
2528
_ACEOF
 
2529
 
 
2530
      cat >>confdefs.h <<\_ACEOF
 
2531
#define USE_MB_IDENT 1
 
2532
_ACEOF
 
2533
 
 
2534
      ;;
 
2535
    swe7)
 
2536
 
 
2537
cat >>confdefs.h <<\_ACEOF
 
2538
#define HAVE_CHARSET_swe7 1
 
2539
_ACEOF
 
2540
 
 
2541
      ;;
 
2542
    tis620)
 
2543
 
 
2544
cat >>confdefs.h <<\_ACEOF
 
2545
#define HAVE_CHARSET_tis620 1
 
2546
_ACEOF
 
2547
 
 
2548
      ;;
 
2549
    ucs2)
 
2550
 
 
2551
cat >>confdefs.h <<\_ACEOF
 
2552
#define HAVE_CHARSET_ucs2 1
 
2553
_ACEOF
 
2554
 
 
2555
 
 
2556
cat >>confdefs.h <<\_ACEOF
 
2557
#define USE_MB 1
 
2558
_ACEOF
 
2559
 
 
2560
      cat >>confdefs.h <<\_ACEOF
 
2561
#define USE_MB_IDENT 1
 
2562
_ACEOF
 
2563
 
 
2564
      ;;
 
2565
    ujis)
 
2566
 
 
2567
cat >>confdefs.h <<\_ACEOF
 
2568
#define HAVE_CHARSET_ujis 1
 
2569
_ACEOF
 
2570
 
 
2571
 
 
2572
cat >>confdefs.h <<\_ACEOF
 
2573
#define USE_MB 1
 
2574
_ACEOF
 
2575
 
 
2576
      cat >>confdefs.h <<\_ACEOF
 
2577
#define USE_MB_IDENT 1
 
2578
_ACEOF
 
2579
 
 
2580
      ;;
 
2581
    utf8)
 
2582
 
 
2583
cat >>confdefs.h <<\_ACEOF
 
2584
#define HAVE_CHARSET_utf8 1
 
2585
_ACEOF
 
2586
 
 
2587
 
 
2588
cat >>confdefs.h <<\_ACEOF
 
2589
#define USE_MB 1
 
2590
_ACEOF
 
2591
 
 
2592
      cat >>confdefs.h <<\_ACEOF
 
2593
#define USE_MB_IDENT 1
 
2594
_ACEOF
 
2595
 
 
2596
      ;;
 
2597
    *)
 
2598
      { { echo "$as_me:$LINENO: error: Charset '$cs' not available. (Available are: $CHARSETS_AVAILABLE).
 
2599
      See the Installation chapter in the Reference Manual." >&5
 
2600
echo "$as_me: error: Charset '$cs' not available. (Available are: $CHARSETS_AVAILABLE).
 
2601
      See the Installation chapter in the Reference Manual." >&2;}
 
2602
   { (exit 1); exit 1; }; };
 
2603
  esac
 
2604
done
 
2605
 
 
2606
 
 
2607
      default_charset_collations=""
 
2608
 
 
2609
case $default_charset in
 
2610
    armscii8)
 
2611
      default_charset_default_collation="armscii8_general_ci"
 
2612
      default_charset_collations="armscii8_general_ci armscii8_bin"
 
2613
      ;;
 
2614
    ascii)
 
2615
      default_charset_default_collation="ascii_general_ci"
 
2616
      default_charset_collations="ascii_general_ci ascii_bin"
 
2617
      ;;
 
2618
    big5)
 
2619
      default_charset_default_collation="big5_chinese_ci"
 
2620
      default_charset_collations="big5_chinese_ci big5_bin"
 
2621
      ;;
 
2622
    binary)
 
2623
      default_charset_default_collation="binary"
 
2624
      default_charset_collations="binary"
 
2625
      ;;
 
2626
    cp1250)
 
2627
      default_charset_default_collation="cp1250_general_ci"
 
2628
      default_charset_collations="cp1250_general_ci cp1250_czech_cs cp1250_bin"
 
2629
      ;;
 
2630
    cp1251)
 
2631
      default_charset_default_collation="cp1251_general_ci"
 
2632
      default_charset_collations="cp1251_general_ci cp1251_general_cs cp1251_bin cp1251_bulgarian_ci cp1251_ukrainian_ci"
 
2633
      ;;
 
2634
    cp1256)
 
2635
      default_charset_default_collation="cp1256_general_ci"
 
2636
      default_charset_collations="cp1256_general_ci cp1256_bin"
 
2637
      ;;
 
2638
    cp1257)
 
2639
      default_charset_default_collation="cp1257_general_ci"
 
2640
      default_charset_collations="cp1257_general_ci cp1257_lithuanian_ci cp1257_bin"
 
2641
      ;;
 
2642
    cp850)
 
2643
      default_charset_default_collation="cp850_general_ci"
 
2644
      default_charset_collations="cp850_general_ci cp850_bin"
 
2645
      ;;
 
2646
    cp852)
 
2647
      default_charset_default_collation="cp852_general_ci"
 
2648
      default_charset_collations="cp852_general_ci cp852_bin"
 
2649
      ;;
 
2650
    cp866)
 
2651
      default_charset_default_collation="cp866_general_ci"
 
2652
      default_charset_collations="cp866_general_ci cp866_bin"
 
2653
      ;;
 
2654
    cp932)
 
2655
      default_charset_default_collation="cp932_japanese_ci"
 
2656
      default_charset_collations="cp932_japanese_ci cp932_bin"
 
2657
      ;;
 
2658
    dec8)
 
2659
      default_charset_default_collation="dec8_swedish_ci"
 
2660
      default_charset_collations="dec8_swedish_ci dec8_bin"
 
2661
      ;;
 
2662
    eucjpms)
 
2663
      default_charset_default_collation="eucjpms_japanese_ci"
 
2664
      default_charset_collations="eucjpms_japanese_ci ujis_bin"
 
2665
      ;;
 
2666
    euckr)
 
2667
      default_charset_default_collation="euckr_korean_ci"
 
2668
      default_charset_collations="euckr_korean_ci euckr_bin"
 
2669
      ;;
 
2670
    gb2312)
 
2671
      default_charset_default_collation="gb2312_chinese_ci"
 
2672
      default_charset_collations="gb2312_chinese_ci gb2312_bin"
 
2673
      ;;
 
2674
    gbk)
 
2675
      default_charset_default_collation="gbk_chinese_ci"
 
2676
      default_charset_collations="gbk_chinese_ci gbk_bin"
 
2677
      ;;
 
2678
    geostd8)
 
2679
      default_charset_default_collation="geostd8_general_ci"
 
2680
      default_charset_collations="geostd8_general_ci geostd8_bin"
 
2681
      ;;
 
2682
    greek)
 
2683
      default_charset_default_collation="greek_general_ci"
 
2684
      default_charset_collations="greek_general_ci greek_bin"
 
2685
      ;;
 
2686
    hebrew)
 
2687
      default_charset_default_collation="hebrew_general_ci"
 
2688
      default_charset_collations="hebrew_general_ci hebrew_bin"
 
2689
      ;;
 
2690
    hp8)
 
2691
      default_charset_default_collation="hp8_english_ci"
 
2692
      default_charset_collations="hp8_english_ci hp8_bin"
 
2693
      ;;
 
2694
    keybcs2)
 
2695
      default_charset_default_collation="keybcs2_general_ci"
 
2696
      default_charset_collations="keybcs2_general_ci keybcs2_bin"
 
2697
      ;;
 
2698
    koi8r)
 
2699
      default_charset_default_collation="koi8r_general_ci"
 
2700
      default_charset_collations="koi8r_general_ci koi8r_bin"
 
2701
      ;;
 
2702
    koi8u)
 
2703
      default_charset_default_collation="koi8u_general_ci"
 
2704
      default_charset_collations="koi8u_general_ci koi8u_bin"
 
2705
      ;;
 
2706
    latin1)
 
2707
      default_charset_default_collation="latin1_swedish_ci"
 
2708
      default_charset_collations="latin1_general_ci latin1_general_cs latin1_bin latin1_german1_ci latin1_german2_ci latin1_danish_ci latin1_spanish_ci latin1_swedish_ci"
 
2709
      ;;
 
2710
    latin2)
 
2711
      default_charset_default_collation="latin2_general_ci"
 
2712
      default_charset_collations="latin2_general_ci latin2_bin latin2_czech_cs latin2_hungarian_ci latin2_croatian_ci"
 
2713
      ;;
 
2714
    latin5)
 
2715
      default_charset_default_collation="latin5_turkish_ci"
 
2716
      default_charset_collations="latin5_turkish_ci latin5_bin"
 
2717
      ;;
 
2718
    latin7)
 
2719
      default_charset_default_collation="latin7_general_ci"
 
2720
      default_charset_collations="latin7_general_ci latin7_general_cs latin7_bin latin7_estonian_cs"
 
2721
      ;;
 
2722
    macce)
 
2723
      default_charset_default_collation="macce_general_ci"
 
2724
      default_charset_collations="macce_general_ci macce_bin"
 
2725
      ;;
 
2726
    macroman)
 
2727
      default_charset_default_collation="macroman_general_ci"
 
2728
      default_charset_collations="macroman_general_ci macroman_bin"
 
2729
      ;;
 
2730
    sjis)
 
2731
      default_charset_default_collation="sjis_japanese_ci"
 
2732
      default_charset_collations="sjis_japanese_ci sjis_bin"
 
2733
      ;;
 
2734
    swe7)
 
2735
      default_charset_default_collation="swe7_swedish_ci"
 
2736
      default_charset_collations="swe7_swedish_ci swe7_bin"
 
2737
      ;;
 
2738
    tis620)
 
2739
      default_charset_default_collation="tis620_thai_ci"
 
2740
      default_charset_collations="tis620_thai_ci tis620_bin"
 
2741
      ;;
 
2742
    ucs2)
 
2743
      default_charset_default_collation="ucs2_general_ci"
 
2744
 
 
2745
 
 
2746
 
 
2747
 
 
2748
 
 
2749
 
 
2750
 
 
2751
 
 
2752
 
 
2753
      UCSC="ucs2_general_ci ucs2_bin ucs2_czech_ci ucs2_danish_ci ucs2_esperanto_ci ucs2_estonian_ci ucs2_icelandic_ci ucs2_latvian_ci ucs2_lithuanian_ci ucs2_persian_ci ucs2_polish_ci ucs2_romanian_ci ucs2_slovak_ci ucs2_slovenian_ci ucs2_spanish2_ci ucs2_spanish_ci ucs2_swedish_ci ucs2_turkish_ci ucs2_unicode_ci"
 
2754
      default_charset_collations="$UCSC"
 
2755
      ;;
 
2756
    ujis)
 
2757
      default_charset_default_collation="ujis_japanese_ci"
 
2758
      default_charset_collations="ujis_japanese_ci ujis_bin"
 
2759
      ;;
 
2760
    utf8)
 
2761
      default_charset_default_collation="utf8_general_ci"
 
2762
      if test "$default_collation" = "utf8_general_cs"; then
 
2763
        # For those who explicitly desire "utf8_general_cs", support it,
 
2764
        # and then also set the CPP switch enabling that code.
 
2765
        UTFC="utf8_general_cs"
 
2766
 
 
2767
cat >>confdefs.h <<\_ACEOF
 
2768
#define HAVE_UTF8_GENERAL_CS 1
 
2769
_ACEOF
 
2770
 
 
2771
      else
 
2772
 
 
2773
 
 
2774
 
 
2775
 
 
2776
 
 
2777
 
 
2778
 
 
2779
 
 
2780
 
 
2781
        UTFC="utf8_general_ci utf8_bin utf8_czech_ci utf8_danish_ci utf8_esperanto_ci utf8_estonian_ci utf8_icelandic_ci utf8_latvian_ci utf8_lithuanian_ci utf8_persian_ci utf8_polish_ci utf8_romanian_ci utf8_slovak_ci utf8_slovenian_ci utf8_spanish2_ci utf8_spanish_ci utf8_swedish_ci utf8_turkish_ci utf8_unicode_ci"
 
2782
      fi
 
2783
      default_charset_collations="$UTFC"
 
2784
      ;;
 
2785
    *)
 
2786
      { { echo "$as_me:$LINENO: error: Charset $cs not available. (Available are: $CHARSETS_AVAILABLE).
 
2787
      See the Installation chapter in the Reference Manual." >&5
 
2788
echo "$as_me: error: Charset $cs not available. (Available are: $CHARSETS_AVAILABLE).
 
2789
      See the Installation chapter in the Reference Manual." >&2;}
 
2790
   { (exit 1); exit 1; }; };
 
2791
esac
 
2792
 
 
2793
if test "$default_collation" = default; then
 
2794
  default_collation=$default_charset_default_collation
 
2795
fi
 
2796
 
 
2797
valid_default_collation=no
 
2798
for cl in $default_charset_collations
 
2799
do
 
2800
  if test x"$cl" = x"$default_collation"
 
2801
  then
 
2802
    valid_default_collation=yes
 
2803
    break
 
2804
  fi
 
2805
done
 
2806
 
 
2807
if test x$valid_default_collation = xyes
 
2808
then
 
2809
  echo "$as_me:$LINENO: result: default: $default_charset, collation: $default_collation; compiled in: $CHARSETS" >&5
 
2810
echo "${ECHO_T}default: $default_charset, collation: $default_collation; compiled in: $CHARSETS" >&6
 
2811
else
 
2812
  { { echo "$as_me:$LINENO: error:
 
2813
      Collation $default_collation is not valid for character set $default_charset.
 
2814
      Valid collations are: $default_charset_collations.
 
2815
      See the Installation chapter in the Reference Manual.
 
2816
  " >&5
 
2817
echo "$as_me: error:
 
2818
      Collation $default_collation is not valid for character set $default_charset.
 
2819
      Valid collations are: $default_charset_collations.
 
2820
      See the Installation chapter in the Reference Manual.
 
2821
  " >&2;}
 
2822
   { (exit 1); exit 1; }; };
 
2823
fi
 
2824
 
 
2825
 
 
2826
cat >>confdefs.h <<_ACEOF
 
2827
#define MYSQL_DEFAULT_CHARSET_NAME "$default_charset"
 
2828
_ACEOF
 
2829
 
 
2830
 
 
2831
cat >>confdefs.h <<_ACEOF
 
2832
#define MYSQL_DEFAULT_COLLATION_NAME "$default_collation"
 
2833
_ACEOF
 
2834
 
 
2835
 
 
2836
# Shall we build the UCA-based Unicode collations
 
2837
 
 
2838
# Check whether --with-uca or --without-uca was given.
 
2839
if test "${with_uca+set}" = set; then
 
2840
  withval="$with_uca"
 
2841
  with_uca=$withval
 
2842
else
 
2843
  with_uca=yes
 
2844
 
 
2845
fi;
 
2846
 
 
2847
echo "$as_me:$LINENO: checking whether to compile national Unicode collations" >&5
 
2848
echo $ECHO_N "checking whether to compile national Unicode collations... $ECHO_C" >&6
 
2849
 
 
2850
if test "$with_uca" = "yes"
 
2851
then
 
2852
  echo "$as_me:$LINENO: result: yes" >&5
 
2853
echo "${ECHO_T}yes" >&6
 
2854
 
 
2855
cat >>confdefs.h <<\_ACEOF
 
2856
#define HAVE_UCA_COLLATIONS 1
 
2857
_ACEOF
 
2858
 
 
2859
else
 
2860
  echo "$as_me:$LINENO: result: no" >&5
 
2861
echo "${ECHO_T}no" >&6
 
2862
fi
 
2863
 
 
2864
# option, cache_name, variable,
 
2865
# code to execute if yes, code to exectute if fail
 
2866
 
 
2867
 
 
2868
# arch, option, cache_name, variable
 
2869
 
 
2870
 
 
2871
# os, option, cache_name, variable
 
2872
 
 
2873
 
 
2874
 
 
2875
 
 
2876
 
 
2877
 
 
2878
 
 
2879
 
 
2880
 
 
2881
 
 
2882
 
 
2883
 
 
2884
 
 
2885
 
 
2886
 
 
2887
 
 
2888
 
 
2889
 
 
2890
 
 
2891
 
 
2892
 
 
2893
 
 
2894
 
 
2895
 
 
2896
 
 
2897
 
 
2898
 
 
2899
 
 
2900
 
 
2901
 
 
2902
 
 
2903
 
 
2904
 
 
2905
 
 
2906
 
 
2907
 
 
2908
 
 
2909
 
 
2910
 
 
2911
 
 
2912
 
 
2913
 
 
2914
 
 
2915
 
 
2916
 
 
2917
 
 
2918
 
 
2919
 
 
2920
 
 
2921
 
 
2922
 
 
2923
# Local macros for automake & autoconf
 
2924
 
 
2925
# A local version of AC_CHECK_SIZEOF that includes sys/types.h
 
2926
 
 
2927
 
 
2928
#---START: Used in for client configure
 
2929
 
 
2930
#---END:
 
2931
 
 
2932
 
 
2933
 
 
2934
#---START: Figure out whether to use 'struct rlimit' or 'struct rlimit64'
 
2935
 
 
2936
#---END:
 
2937
 
 
2938
 
 
2939
 
 
2940
 
 
2941
 
 
2942
 
 
2943
#---START: Used in for client configure
 
2944
 
 
2945
 
 
2946
 
 
2947
 
 
2948
 
 
2949
 
 
2950
 
 
2951
 
 
2952
 
 
2953
 
 
2954
 
 
2955
 
 
2956
 
 
2957
 
 
2958
#---END:
 
2959
 
 
2960
 
 
2961
 
 
2962
# From fileutils-3.14/aclocal.m4
 
2963
 
 
2964
# @defmac AC_PROG_CC_STDC
 
2965
# @maindex PROG_CC_STDC
 
2966
# @ovindex CC
 
2967
# If the C compiler in not in ANSI C mode by default, try to add an option
 
2968
# to output variable @code{CC} to make it so.  This macro tries various
 
2969
# options that select ANSI C on some system or another.  It considers the
 
2970
# compiler to be in ANSI C mode if it defines @code{__STDC__} to 1 and
 
2971
# handles function prototypes correctly.
 
2972
#
 
2973
# Patched by monty to only check if __STDC__ is defined. With the original
 
2974
# check it's impossible to get things to work with the Sunpro compiler from
 
2975
# Workshop 4.2
 
2976
#
 
2977
# If you use this macro, you should check after calling it whether the C
 
2978
# compiler has been set to accept ANSI C; if not, the shell variable
 
2979
# @code{am_cv_prog_cc_stdc} is set to @samp{no}.  If you wrote your source
 
2980
# code in ANSI C, you can make an un-ANSIfied copy of it by using the
 
2981
# program @code{ansi2knr}, which comes with Ghostscript.
 
2982
# @end defmac
 
2983
 
 
2984
 
 
2985
 
 
2986
# Orginal from bash-2.0 aclocal.m4, Changed to use termcap last by monty.
 
2987
 
 
2988
 
 
2989
 
 
2990
 
 
2991
 
 
2992
 
 
2993
 
 
2994
 
 
2995
 
 
2996
 
 
2997
 
 
2998
 
 
2999
 
 
3000
 
 
3001
 
 
3002
 
 
3003
 
 
3004
 
 
3005
 
 
3006
 
 
3007
 
 
3008
 
 
3009
 
 
3010
 
 
3011
 
 
3012
 
 
3013
# Local version of _AC_PROG_CXX_EXIT_DECLARATION that does not
 
3014
# include #stdlib.h as default as this breaks things on Solaris
 
3015
# (Conflicts with pthreads and big file handling)
 
3016
 
 
3017
# _AC_PROG_CXX_EXIT_DECLARATION
 
3018
 
 
3019
 
 
3020
 
 
3021
 
 
3022
 
 
3023
 
 
3024
 
 
3025
 
 
3026
 
 
3027
 
 
3028
 
 
3029
 
 
3030
 
 
3031
 
 
3032
 
 
3033
 
 
3034
 
 
3035
 
 
3036
 
 
3037
 
 
3038
 
 
3039
 
 
3040
 
 
3041
 
 
3042
 
 
3043
 
 
3044
 
 
3045
 
 
3046
                                                                      ac_config_files="$ac_config_files extra/yassl/Makefile extra/yassl/taocrypt/Makefile extra/yassl/taocrypt/src/Makefile extra/yassl/src/Makefile extra/yassl/testsuite/Makefile extra/yassl/taocrypt/test/Makefile extra/yassl/taocrypt/benchmark/Makefile"
 
3047
 
 
3048
 
 
3049
 
 
3050
 
 
3051
 
 
3052
 
 
3053
 
 
3054
 
 
3055
 
 
3056
 
 
3057
 
 
3058
 
 
3059
 
 
3060
 
 
3061
 
 
3062
# Remember to add a directory sql/share/LANGUAGE
 
3063
AVAILABLE_LANGUAGES="\
 
3064
czech danish dutch english estonian french german greek hungarian \
 
3065
italian japanese korean norwegian norwegian-ny polish portuguese \
 
3066
romanian russian serbian slovak spanish swedish ukrainian"
 
3067
 
 
3068
#####
 
3069
#####
 
3070
 
 
3071
 
 
3072
 
 
3073
 
 
3074
 
 
3075
 
 
3076
cat >>confdefs.h <<_ACEOF
 
3077
#define PROTOCOL_VERSION $PROTOCOL_VERSION
 
3078
_ACEOF
 
3079
 
 
3080
 
 
3081
 
 
3082
cat >>confdefs.h <<_ACEOF
 
3083
#define DOT_FRM_VERSION $DOT_FRM_VERSION
 
3084
_ACEOF
 
3085
 
 
3086
 
 
3087
 
 
3088
 
 
3089
 
 
3090
 
 
3091
 
 
3092
 
 
3093
 
 
3094
 
 
3095
cat >>confdefs.h <<_ACEOF
 
3096
#define NDB_VERSION_MAJOR $NDB_VERSION_MAJOR
 
3097
_ACEOF
 
3098
 
 
3099
 
 
3100
cat >>confdefs.h <<_ACEOF
 
3101
#define NDB_VERSION_MINOR $NDB_VERSION_MINOR
 
3102
_ACEOF
 
3103
 
 
3104
 
 
3105
cat >>confdefs.h <<_ACEOF
 
3106
#define NDB_VERSION_BUILD $NDB_VERSION_BUILD
 
3107
_ACEOF
 
3108
 
 
3109
 
 
3110
cat >>confdefs.h <<_ACEOF
 
3111
#define NDB_VERSION_STATUS "$NDB_VERSION_STATUS"
 
3112
_ACEOF
 
3113
 
 
3114
 
 
3115
 
 
3116
# Canonicalize the configuration name.
 
3117
SYSTEM_TYPE="$host_vendor-$host_os"
 
3118
MACHINE_TYPE="$host_cpu"
 
3119
 
 
3120
 
 
3121
cat >>confdefs.h <<_ACEOF
 
3122
#define SYSTEM_TYPE "$SYSTEM_TYPE"
 
3123
_ACEOF
 
3124
 
 
3125
 
 
3126
 
 
3127
cat >>confdefs.h <<_ACEOF
 
3128
#define MACHINE_TYPE "$MACHINE_TYPE"
 
3129
_ACEOF
 
3130
 
 
3131
 
 
3132
# Detect intel x86 like processor
 
3133
BASE_MACHINE_TYPE=$MACHINE_TYPE
 
3134
case $MACHINE_TYPE in
 
3135
  i?86) BASE_MACHINE_TYPE=i386 ;;
 
3136
esac
 
3137
 
 
3138
# Save some variables and the command line options for mysqlbug
 
3139
SAVE_ASFLAGS="$ASFLAGS"
 
3140
SAVE_CFLAGS="$CFLAGS"
 
3141
SAVE_CXXFLAGS="$CXXFLAGS"
 
3142
SAVE_LDFLAGS="$LDFLAGS"
 
3143
SAVE_CXXLDFLAGS="$CXXLDFLAGS"
 
3144
CONF_COMMAND="$0 $ac_configure_args"
 
3145
 
 
3146
 
 
3147
 
 
3148
 
 
3149
 
 
3150
 
 
3151
 
 
3152
 
 
3153
#AC_ARG_PROGRAM                 # Automaticly invoked by AM_INIT_AUTOMAKE
 
3154
 
 
3155
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
3156
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
3157
# Just in case
 
3158
sleep 1
 
3159
echo timestamp > conftest.file
 
3160
# Do `set' in a subshell so we don't clobber the current shell's
 
3161
# arguments.  Must try -L first in case configure is actually a
 
3162
# symlink; some systems play weird games with the mod time of symlinks
 
3163
# (eg FreeBSD returns the mod time of the symlink's containing
 
3164
# directory).
 
3165
if (
 
3166
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
3167
   if test "$*" = "X"; then
 
3168
      # -L didn't work.
 
3169
      set X `ls -t $srcdir/configure conftest.file`
 
3170
   fi
 
3171
   rm -f conftest.file
 
3172
   if test "$*" != "X $srcdir/configure conftest.file" \
 
3173
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
3174
 
 
3175
      # If neither matched, then we have a broken ls.  This can happen
 
3176
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
3177
      # broken ls alias from the environment.  This has actually
 
3178
      # happened.  Such a system could not be considered "sane".
 
3179
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
3180
alias in your environment" >&5
 
3181
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
3182
alias in your environment" >&2;}
 
3183
   { (exit 1); exit 1; }; }
 
3184
   fi
 
3185
 
 
3186
   test "$2" = conftest.file
 
3187
   )
 
3188
then
 
3189
   # Ok.
 
3190
   :
 
3191
else
 
3192
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
3193
Check your system clock" >&5
 
3194
echo "$as_me: error: newly created file is older than distributed files!
 
3195
Check your system clock" >&2;}
 
3196
   { (exit 1); exit 1; }; }
 
3197
fi
 
3198
echo "$as_me:$LINENO: result: yes" >&5
 
3199
echo "${ECHO_T}yes" >&6
 
3200
# This is needed is SUBDIRS is set
 
3201
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3202
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
3203
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
3204
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
3205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3206
else
 
3207
  cat >conftest.make <<\_ACEOF
 
3208
all:
 
3209
        @echo 'ac_maketemp="$(MAKE)"'
 
3210
_ACEOF
 
3211
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3212
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
3213
if test -n "$ac_maketemp"; then
 
3214
  eval ac_cv_prog_make_${ac_make}_set=yes
 
3215
else
 
3216
  eval ac_cv_prog_make_${ac_make}_set=no
 
3217
fi
 
3218
rm -f conftest.make
 
3219
fi
 
3220
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
3221
  echo "$as_me:$LINENO: result: yes" >&5
 
3222
echo "${ECHO_T}yes" >&6
 
3223
  SET_MAKE=
 
3224
else
 
3225
  echo "$as_me:$LINENO: result: no" >&5
 
3226
echo "${ECHO_T}no" >&6
 
3227
  SET_MAKE="MAKE=${MAKE-make}"
 
3228
fi
 
3229
 
 
3230
 
 
3231
##############################################################################
 
3232
# The below section needs to be done before AC_PROG_CC
 
3233
##############################################################################
 
3234
 
 
3235
# Hack for OS X/Darwin and Metrowerks CodeWarrior
 
3236
 
 
3237
# Check whether --with-darwin-mwcc or --without-darwin-mwcc was given.
 
3238
if test "${with_darwin_mwcc+set}" = set; then
 
3239
  withval="$with_darwin_mwcc"
 
3240
 
 
3241
 if  "with_darwin_mwcc" = yes  ; then
 
3242
  builddir=`pwd`
 
3243
  ccwrapper="$builddir/support-files/MacOSX/mwcc-wrapper"
 
3244
  arwrapper="$builddir/support-files/MacOSX/mwar-wrapper"
 
3245
  CC="$ccwrapper"
 
3246
  CXX="$ccwrapper"
 
3247
  LD="$ccwrapper"
 
3248
  AR="$arwrapper"
 
3249
  RANLIB=:
 
3250
  export CC CXX LD AR RANLIB
 
3251
 
 
3252
 
 
3253
 fi
 
3254
 
 
3255
fi;
 
3256
 
 
3257
 
 
3258
 
 
3259
if test x$with_darwin_mwcc = xyes; then
 
3260
  DARWIN_MWCC_TRUE=
 
3261
  DARWIN_MWCC_FALSE='#'
 
3262
else
 
3263
  DARWIN_MWCC_TRUE='#'
 
3264
  DARWIN_MWCC_FALSE=
 
3265
fi
 
3266
 
 
3267
 
 
3268
if test "x${CFLAGS-}" = x ; then
 
3269
  cflags_is_set=no
 
3270
else
 
3271
  cflags_is_set=yes
 
3272
fi
 
3273
 
 
3274
if test "x${CPPFLAGS-}" = x ; then
 
3275
  cppflags_is_set=no
 
3276
else
 
3277
  cppflags_is_set=yes
 
3278
fi
 
3279
 
 
3280
if test "x${LDFLAGS-}" = x ; then
 
3281
  ldflags_is_set=no
 
3282
else
 
3283
  ldflags_is_set=yes
 
3284
fi
 
3285
 
 
3286
################ End of section to be done before AC_PROG_CC #################
 
3287
 
 
3288
# The following hack should ensure that configure doesn't add optimizing
 
3289
# or debugging flags to CFLAGS or CXXFLAGS
 
3290
# C_EXTRA_FLAGS are flags that are automaticly added to both
 
3291
# CFLAGS and CXXFLAGS
 
3292
CFLAGS="$CFLAGS $C_EXTRA_FLAGS "
 
3293
CXXFLAGS="$CXXFLAGS $C_EXTRA_FLAGS "
 
3294
 
 
3295
for ac_prog in gawk mawk nawk awk
 
3296
do
 
3297
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3298
set dummy $ac_prog; ac_word=$2
 
3299
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3300
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3301
if test "${ac_cv_prog_AWK+set}" = set; then
 
3302
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3303
else
 
3304
  if test -n "$AWK"; then
 
3305
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3306
else
 
3307
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3308
for as_dir in $PATH
 
3309
do
 
3310
  IFS=$as_save_IFS
 
3311
  test -z "$as_dir" && as_dir=.
 
3312
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3313
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3314
    ac_cv_prog_AWK="$ac_prog"
 
3315
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3316
    break 2
 
3317
  fi
 
3318
done
 
3319
done
 
3320
 
 
3321
fi
 
3322
fi
 
3323
AWK=$ac_cv_prog_AWK
 
3324
if test -n "$AWK"; then
 
3325
  echo "$as_me:$LINENO: result: $AWK" >&5
 
3326
echo "${ECHO_T}$AWK" >&6
 
3327
else
 
3328
  echo "$as_me:$LINENO: result: no" >&5
 
3329
echo "${ECHO_T}no" >&6
 
3330
fi
 
3331
 
 
3332
  test -n "$AWK" && break
 
3333
done
 
3334
 
 
3335
ac_ext=c
 
3336
ac_cpp='$CPP $CPPFLAGS'
 
3337
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3338
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3339
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3340
if test -n "$ac_tool_prefix"; then
 
3341
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3342
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3343
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3344
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3345
if test "${ac_cv_prog_CC+set}" = set; then
 
3346
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3347
else
 
3348
  if test -n "$CC"; then
 
3349
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3350
else
 
3351
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3352
for as_dir in $PATH
 
3353
do
 
3354
  IFS=$as_save_IFS
 
3355
  test -z "$as_dir" && as_dir=.
 
3356
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3357
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3358
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3359
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3360
    break 2
 
3361
  fi
 
3362
done
 
3363
done
 
3364
 
 
3365
fi
 
3366
fi
 
3367
CC=$ac_cv_prog_CC
 
3368
if test -n "$CC"; then
 
3369
  echo "$as_me:$LINENO: result: $CC" >&5
 
3370
echo "${ECHO_T}$CC" >&6
 
3371
else
 
3372
  echo "$as_me:$LINENO: result: no" >&5
 
3373
echo "${ECHO_T}no" >&6
 
3374
fi
 
3375
 
 
3376
fi
 
3377
if test -z "$ac_cv_prog_CC"; then
 
3378
  ac_ct_CC=$CC
 
3379
  # Extract the first word of "gcc", so it can be a program name with args.
 
3380
set dummy gcc; ac_word=$2
 
3381
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3382
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3383
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3384
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3385
else
 
3386
  if test -n "$ac_ct_CC"; then
 
3387
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3388
else
 
3389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3390
for as_dir in $PATH
 
3391
do
 
3392
  IFS=$as_save_IFS
 
3393
  test -z "$as_dir" && as_dir=.
 
3394
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3395
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3396
    ac_cv_prog_ac_ct_CC="gcc"
 
3397
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3398
    break 2
 
3399
  fi
 
3400
done
 
3401
done
 
3402
 
 
3403
fi
 
3404
fi
 
3405
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3406
if test -n "$ac_ct_CC"; then
 
3407
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3408
echo "${ECHO_T}$ac_ct_CC" >&6
 
3409
else
 
3410
  echo "$as_me:$LINENO: result: no" >&5
 
3411
echo "${ECHO_T}no" >&6
 
3412
fi
 
3413
 
 
3414
  CC=$ac_ct_CC
 
3415
else
 
3416
  CC="$ac_cv_prog_CC"
 
3417
fi
 
3418
 
 
3419
if test -z "$CC"; then
 
3420
  if test -n "$ac_tool_prefix"; then
 
3421
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3422
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3423
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3425
if test "${ac_cv_prog_CC+set}" = set; then
 
3426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3427
else
 
3428
  if test -n "$CC"; then
 
3429
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3430
else
 
3431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3432
for as_dir in $PATH
 
3433
do
 
3434
  IFS=$as_save_IFS
 
3435
  test -z "$as_dir" && as_dir=.
 
3436
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3437
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3438
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3439
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3440
    break 2
 
3441
  fi
 
3442
done
 
3443
done
 
3444
 
 
3445
fi
 
3446
fi
 
3447
CC=$ac_cv_prog_CC
 
3448
if test -n "$CC"; then
 
3449
  echo "$as_me:$LINENO: result: $CC" >&5
 
3450
echo "${ECHO_T}$CC" >&6
 
3451
else
 
3452
  echo "$as_me:$LINENO: result: no" >&5
 
3453
echo "${ECHO_T}no" >&6
 
3454
fi
 
3455
 
 
3456
fi
 
3457
if test -z "$ac_cv_prog_CC"; then
 
3458
  ac_ct_CC=$CC
 
3459
  # Extract the first word of "cc", so it can be a program name with args.
 
3460
set dummy cc; ac_word=$2
 
3461
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3462
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3463
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3464
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3465
else
 
3466
  if test -n "$ac_ct_CC"; then
 
3467
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3468
else
 
3469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3470
for as_dir in $PATH
 
3471
do
 
3472
  IFS=$as_save_IFS
 
3473
  test -z "$as_dir" && as_dir=.
 
3474
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3475
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3476
    ac_cv_prog_ac_ct_CC="cc"
 
3477
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3478
    break 2
 
3479
  fi
 
3480
done
 
3481
done
 
3482
 
 
3483
fi
 
3484
fi
 
3485
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3486
if test -n "$ac_ct_CC"; then
 
3487
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3488
echo "${ECHO_T}$ac_ct_CC" >&6
 
3489
else
 
3490
  echo "$as_me:$LINENO: result: no" >&5
 
3491
echo "${ECHO_T}no" >&6
 
3492
fi
 
3493
 
 
3494
  CC=$ac_ct_CC
 
3495
else
 
3496
  CC="$ac_cv_prog_CC"
 
3497
fi
 
3498
 
 
3499
fi
 
3500
if test -z "$CC"; then
 
3501
  # Extract the first word of "cc", so it can be a program name with args.
 
3502
set dummy cc; ac_word=$2
 
3503
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3504
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3505
if test "${ac_cv_prog_CC+set}" = set; then
 
3506
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3507
else
 
3508
  if test -n "$CC"; then
 
3509
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3510
else
 
3511
  ac_prog_rejected=no
 
3512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3513
for as_dir in $PATH
 
3514
do
 
3515
  IFS=$as_save_IFS
 
3516
  test -z "$as_dir" && as_dir=.
 
3517
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3518
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3519
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3520
       ac_prog_rejected=yes
 
3521
       continue
 
3522
     fi
 
3523
    ac_cv_prog_CC="cc"
 
3524
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3525
    break 2
 
3526
  fi
 
3527
done
 
3528
done
 
3529
 
 
3530
if test $ac_prog_rejected = yes; then
 
3531
  # We found a bogon in the path, so make sure we never use it.
 
3532
  set dummy $ac_cv_prog_CC
 
3533
  shift
 
3534
  if test $# != 0; then
 
3535
    # We chose a different compiler from the bogus one.
 
3536
    # However, it has the same basename, so the bogon will be chosen
 
3537
    # first if we set CC to just the basename; use the full file name.
 
3538
    shift
 
3539
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3540
  fi
 
3541
fi
 
3542
fi
 
3543
fi
 
3544
CC=$ac_cv_prog_CC
 
3545
if test -n "$CC"; then
 
3546
  echo "$as_me:$LINENO: result: $CC" >&5
 
3547
echo "${ECHO_T}$CC" >&6
 
3548
else
 
3549
  echo "$as_me:$LINENO: result: no" >&5
 
3550
echo "${ECHO_T}no" >&6
 
3551
fi
 
3552
 
 
3553
fi
 
3554
if test -z "$CC"; then
 
3555
  if test -n "$ac_tool_prefix"; then
 
3556
  for ac_prog in cl
 
3557
  do
 
3558
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3559
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3560
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3561
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3562
if test "${ac_cv_prog_CC+set}" = set; then
 
3563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3564
else
 
3565
  if test -n "$CC"; then
 
3566
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3567
else
 
3568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3569
for as_dir in $PATH
 
3570
do
 
3571
  IFS=$as_save_IFS
 
3572
  test -z "$as_dir" && as_dir=.
 
3573
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3574
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3575
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3576
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3577
    break 2
 
3578
  fi
 
3579
done
 
3580
done
 
3581
 
 
3582
fi
 
3583
fi
 
3584
CC=$ac_cv_prog_CC
 
3585
if test -n "$CC"; then
 
3586
  echo "$as_me:$LINENO: result: $CC" >&5
 
3587
echo "${ECHO_T}$CC" >&6
 
3588
else
 
3589
  echo "$as_me:$LINENO: result: no" >&5
 
3590
echo "${ECHO_T}no" >&6
 
3591
fi
 
3592
 
 
3593
    test -n "$CC" && break
 
3594
  done
 
3595
fi
 
3596
if test -z "$CC"; then
 
3597
  ac_ct_CC=$CC
 
3598
  for ac_prog in cl
 
3599
do
 
3600
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3601
set dummy $ac_prog; ac_word=$2
 
3602
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3603
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3604
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3606
else
 
3607
  if test -n "$ac_ct_CC"; then
 
3608
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3609
else
 
3610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3611
for as_dir in $PATH
 
3612
do
 
3613
  IFS=$as_save_IFS
 
3614
  test -z "$as_dir" && as_dir=.
 
3615
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3616
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3617
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3618
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3619
    break 2
 
3620
  fi
 
3621
done
 
3622
done
 
3623
 
 
3624
fi
 
3625
fi
 
3626
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3627
if test -n "$ac_ct_CC"; then
 
3628
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3629
echo "${ECHO_T}$ac_ct_CC" >&6
 
3630
else
 
3631
  echo "$as_me:$LINENO: result: no" >&5
 
3632
echo "${ECHO_T}no" >&6
 
3633
fi
 
3634
 
 
3635
  test -n "$ac_ct_CC" && break
 
3636
done
 
3637
 
 
3638
  CC=$ac_ct_CC
 
3639
fi
 
3640
 
 
3641
fi
 
3642
 
 
3643
 
 
3644
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3645
See \`config.log' for more details." >&5
 
3646
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3647
See \`config.log' for more details." >&2;}
 
3648
   { (exit 1); exit 1; }; }
 
3649
 
 
3650
# Provide some information about the compiler.
 
3651
echo "$as_me:$LINENO:" \
 
3652
     "checking for C compiler version" >&5
 
3653
ac_compiler=`set X $ac_compile; echo $2`
 
3654
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3655
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3656
  ac_status=$?
 
3657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3658
  (exit $ac_status); }
 
3659
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3660
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3661
  ac_status=$?
 
3662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3663
  (exit $ac_status); }
 
3664
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3665
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3666
  ac_status=$?
 
3667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3668
  (exit $ac_status); }
 
3669
 
 
3670
cat >conftest.$ac_ext <<_ACEOF
 
3671
/* confdefs.h.  */
 
3672
_ACEOF
 
3673
cat confdefs.h >>conftest.$ac_ext
 
3674
cat >>conftest.$ac_ext <<_ACEOF
 
3675
/* end confdefs.h.  */
 
3676
 
 
3677
int
 
3678
main ()
 
3679
{
 
3680
 
 
3681
  ;
 
3682
  return 0;
 
3683
}
 
3684
_ACEOF
 
3685
ac_clean_files_save=$ac_clean_files
 
3686
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3687
# Try to create an executable without -o first, disregard a.out.
 
3688
# It will help us diagnose broken compilers, and finding out an intuition
 
3689
# of exeext.
 
3690
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3691
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
3692
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3693
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
3694
  (eval $ac_link_default) 2>&5
 
3695
  ac_status=$?
 
3696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3697
  (exit $ac_status); }; then
 
3698
  # Find the output, starting from the most likely.  This scheme is
 
3699
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
3700
# resort.
 
3701
 
 
3702
# Be careful to initialize this variable, since it used to be cached.
 
3703
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
3704
ac_cv_exeext=
 
3705
# b.out is created by i960 compilers.
 
3706
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
3707
do
 
3708
  test -f "$ac_file" || continue
 
3709
  case $ac_file in
 
3710
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
3711
        ;;
 
3712
    conftest.$ac_ext )
 
3713
        # This is the source file.
 
3714
        ;;
 
3715
    [ab].out )
 
3716
        # We found the default executable, but exeext='' is most
 
3717
        # certainly right.
 
3718
        break;;
 
3719
    *.* )
 
3720
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3721
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
3722
        # but it would be cool to find out if it's true.  Does anybody
 
3723
        # maintain Libtool? --akim.
 
3724
        export ac_cv_exeext
 
3725
        break;;
 
3726
    * )
 
3727
        break;;
 
3728
  esac
 
3729
done
 
3730
else
 
3731
  echo "$as_me: failed program was:" >&5
 
3732
sed 's/^/| /' conftest.$ac_ext >&5
 
3733
 
 
3734
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3735
See \`config.log' for more details." >&5
 
3736
echo "$as_me: error: C compiler cannot create executables
 
3737
See \`config.log' for more details." >&2;}
 
3738
   { (exit 77); exit 77; }; }
 
3739
fi
 
3740
 
 
3741
ac_exeext=$ac_cv_exeext
 
3742
echo "$as_me:$LINENO: result: $ac_file" >&5
 
3743
echo "${ECHO_T}$ac_file" >&6
 
3744
 
 
3745
# Check the compiler produces executables we can run.  If not, either
 
3746
# the compiler is broken, or we cross compile.
 
3747
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3748
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
3749
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3750
# If not cross compiling, check that we can run a simple program.
 
3751
if test "$cross_compiling" != yes; then
 
3752
  if { ac_try='./$ac_file'
 
3753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3754
  (eval $ac_try) 2>&5
 
3755
  ac_status=$?
 
3756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3757
  (exit $ac_status); }; }; then
 
3758
    cross_compiling=no
 
3759
  else
 
3760
    if test "$cross_compiling" = maybe; then
 
3761
        cross_compiling=yes
 
3762
    else
 
3763
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3764
If you meant to cross compile, use \`--host'.
 
3765
See \`config.log' for more details." >&5
 
3766
echo "$as_me: error: cannot run C compiled programs.
 
3767
If you meant to cross compile, use \`--host'.
 
3768
See \`config.log' for more details." >&2;}
 
3769
   { (exit 1); exit 1; }; }
 
3770
    fi
 
3771
  fi
 
3772
fi
 
3773
echo "$as_me:$LINENO: result: yes" >&5
 
3774
echo "${ECHO_T}yes" >&6
 
3775
 
 
3776
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3777
ac_clean_files=$ac_clean_files_save
 
3778
# Check the compiler produces executables we can run.  If not, either
 
3779
# the compiler is broken, or we cross compile.
 
3780
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3781
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
3782
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3783
echo "${ECHO_T}$cross_compiling" >&6
 
3784
 
 
3785
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3786
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
3787
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3788
  (eval $ac_link) 2>&5
 
3789
  ac_status=$?
 
3790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3791
  (exit $ac_status); }; then
 
3792
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3793
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3794
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3795
# `rm'.
 
3796
for ac_file in conftest.exe conftest conftest.*; do
 
3797
  test -f "$ac_file" || continue
 
3798
  case $ac_file in
 
3799
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
3800
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3801
          export ac_cv_exeext
 
3802
          break;;
 
3803
    * ) break;;
 
3804
  esac
 
3805
done
 
3806
else
 
3807
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3808
See \`config.log' for more details." >&5
 
3809
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3810
See \`config.log' for more details." >&2;}
 
3811
   { (exit 1); exit 1; }; }
 
3812
fi
 
3813
 
 
3814
rm -f conftest$ac_cv_exeext
 
3815
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3816
echo "${ECHO_T}$ac_cv_exeext" >&6
 
3817
 
 
3818
rm -f conftest.$ac_ext
 
3819
EXEEXT=$ac_cv_exeext
 
3820
ac_exeext=$EXEEXT
 
3821
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3822
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
3823
if test "${ac_cv_objext+set}" = set; then
 
3824
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3825
else
 
3826
  cat >conftest.$ac_ext <<_ACEOF
 
3827
/* confdefs.h.  */
 
3828
_ACEOF
 
3829
cat confdefs.h >>conftest.$ac_ext
 
3830
cat >>conftest.$ac_ext <<_ACEOF
 
3831
/* end confdefs.h.  */
 
3832
 
 
3833
int
 
3834
main ()
 
3835
{
 
3836
 
 
3837
  ;
 
3838
  return 0;
 
3839
}
 
3840
_ACEOF
 
3841
rm -f conftest.o conftest.obj
 
3842
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3843
  (eval $ac_compile) 2>&5
 
3844
  ac_status=$?
 
3845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3846
  (exit $ac_status); }; then
 
3847
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
3848
  case $ac_file in
 
3849
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
3850
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3851
       break;;
 
3852
  esac
 
3853
done
 
3854
else
 
3855
  echo "$as_me: failed program was:" >&5
 
3856
sed 's/^/| /' conftest.$ac_ext >&5
 
3857
 
 
3858
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3859
See \`config.log' for more details." >&5
 
3860
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3861
See \`config.log' for more details." >&2;}
 
3862
   { (exit 1); exit 1; }; }
 
3863
fi
 
3864
 
 
3865
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3866
fi
 
3867
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3868
echo "${ECHO_T}$ac_cv_objext" >&6
 
3869
OBJEXT=$ac_cv_objext
 
3870
ac_objext=$OBJEXT
 
3871
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3872
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3873
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3874
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3875
else
 
3876
  cat >conftest.$ac_ext <<_ACEOF
 
3877
/* confdefs.h.  */
 
3878
_ACEOF
 
3879
cat confdefs.h >>conftest.$ac_ext
 
3880
cat >>conftest.$ac_ext <<_ACEOF
 
3881
/* end confdefs.h.  */
 
3882
 
 
3883
int
 
3884
main ()
 
3885
{
 
3886
#ifndef __GNUC__
 
3887
       choke me
 
3888
#endif
 
3889
 
 
3890
  ;
 
3891
  return 0;
 
3892
}
 
3893
_ACEOF
 
3894
rm -f conftest.$ac_objext
 
3895
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3896
  (eval $ac_compile) 2>conftest.er1
 
3897
  ac_status=$?
 
3898
  grep -v '^ *+' conftest.er1 >conftest.err
 
3899
  rm -f conftest.er1
 
3900
  cat conftest.err >&5
 
3901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3902
  (exit $ac_status); } &&
 
3903
         { ac_try='test -z "$ac_c_werror_flag"
 
3904
                         || test ! -s conftest.err'
 
3905
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3906
  (eval $ac_try) 2>&5
 
3907
  ac_status=$?
 
3908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3909
  (exit $ac_status); }; } &&
 
3910
         { ac_try='test -s conftest.$ac_objext'
 
3911
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3912
  (eval $ac_try) 2>&5
 
3913
  ac_status=$?
 
3914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3915
  (exit $ac_status); }; }; then
 
3916
  ac_compiler_gnu=yes
 
3917
else
 
3918
  echo "$as_me: failed program was:" >&5
 
3919
sed 's/^/| /' conftest.$ac_ext >&5
 
3920
 
 
3921
ac_compiler_gnu=no
 
3922
fi
 
3923
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3924
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3925
 
 
3926
fi
 
3927
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3928
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3929
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3930
ac_test_CFLAGS=${CFLAGS+set}
 
3931
ac_save_CFLAGS=$CFLAGS
 
3932
CFLAGS="-g"
 
3933
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3934
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3935
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3937
else
 
3938
  cat >conftest.$ac_ext <<_ACEOF
 
3939
/* confdefs.h.  */
 
3940
_ACEOF
 
3941
cat confdefs.h >>conftest.$ac_ext
 
3942
cat >>conftest.$ac_ext <<_ACEOF
 
3943
/* end confdefs.h.  */
 
3944
 
 
3945
int
 
3946
main ()
 
3947
{
 
3948
 
 
3949
  ;
 
3950
  return 0;
 
3951
}
 
3952
_ACEOF
 
3953
rm -f conftest.$ac_objext
 
3954
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3955
  (eval $ac_compile) 2>conftest.er1
 
3956
  ac_status=$?
 
3957
  grep -v '^ *+' conftest.er1 >conftest.err
 
3958
  rm -f conftest.er1
 
3959
  cat conftest.err >&5
 
3960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3961
  (exit $ac_status); } &&
 
3962
         { ac_try='test -z "$ac_c_werror_flag"
 
3963
                         || test ! -s conftest.err'
 
3964
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3965
  (eval $ac_try) 2>&5
 
3966
  ac_status=$?
 
3967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3968
  (exit $ac_status); }; } &&
 
3969
         { ac_try='test -s conftest.$ac_objext'
 
3970
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3971
  (eval $ac_try) 2>&5
 
3972
  ac_status=$?
 
3973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3974
  (exit $ac_status); }; }; then
 
3975
  ac_cv_prog_cc_g=yes
 
3976
else
 
3977
  echo "$as_me: failed program was:" >&5
 
3978
sed 's/^/| /' conftest.$ac_ext >&5
 
3979
 
 
3980
ac_cv_prog_cc_g=no
 
3981
fi
 
3982
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3983
fi
 
3984
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3985
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3986
if test "$ac_test_CFLAGS" = set; then
 
3987
  CFLAGS=$ac_save_CFLAGS
 
3988
elif test $ac_cv_prog_cc_g = yes; then
 
3989
  if test "$GCC" = yes; then
 
3990
    CFLAGS="-g -O2"
 
3991
  else
 
3992
    CFLAGS="-g"
 
3993
  fi
 
3994
else
 
3995
  if test "$GCC" = yes; then
 
3996
    CFLAGS="-O2"
 
3997
  else
 
3998
    CFLAGS=
 
3999
  fi
 
4000
fi
 
4001
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
4002
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
4003
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
4004
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4005
else
 
4006
  ac_cv_prog_cc_stdc=no
 
4007
ac_save_CC=$CC
 
4008
cat >conftest.$ac_ext <<_ACEOF
 
4009
/* confdefs.h.  */
 
4010
_ACEOF
 
4011
cat confdefs.h >>conftest.$ac_ext
 
4012
cat >>conftest.$ac_ext <<_ACEOF
 
4013
/* end confdefs.h.  */
 
4014
#include <stdarg.h>
 
4015
#include <stdio.h>
 
4016
#include <sys/types.h>
 
4017
#include <sys/stat.h>
 
4018
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4019
struct buf { int x; };
 
4020
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4021
static char *e (p, i)
 
4022
     char **p;
 
4023
     int i;
 
4024
{
 
4025
  return p[i];
 
4026
}
 
4027
static char *f (char * (*g) (char **, int), char **p, ...)
 
4028
{
 
4029
  char *s;
 
4030
  va_list v;
 
4031
  va_start (v,p);
 
4032
  s = g (p, va_arg (v,int));
 
4033
  va_end (v);
 
4034
  return s;
 
4035
}
 
4036
 
 
4037
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4038
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4039
   These don't provoke an error unfortunately, instead are silently treated
 
4040
   as 'x'.  The following induces an error, until -std1 is added to get
 
4041
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4042
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4043
   that's true only with -std1.  */
 
4044
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4045
 
 
4046
int test (int i, double x);
 
4047
struct s1 {int (*f) (int a);};
 
4048
struct s2 {int (*f) (double a);};
 
4049
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4050
int argc;
 
4051
char **argv;
 
4052
int
 
4053
main ()
 
4054
{
 
4055
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4056
  ;
 
4057
  return 0;
 
4058
}
 
4059
_ACEOF
 
4060
# Don't try gcc -ansi; that turns off useful extensions and
 
4061
# breaks some systems' header files.
 
4062
# AIX                   -qlanglvl=ansi
 
4063
# Ultrix and OSF/1      -std1
 
4064
# HP-UX 10.20 and later -Ae
 
4065
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
4066
# SVR4                  -Xc -D__EXTENSIONS__
 
4067
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4068
do
 
4069
  CC="$ac_save_CC $ac_arg"
 
4070
  rm -f conftest.$ac_objext
 
4071
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4072
  (eval $ac_compile) 2>conftest.er1
 
4073
  ac_status=$?
 
4074
  grep -v '^ *+' conftest.er1 >conftest.err
 
4075
  rm -f conftest.er1
 
4076
  cat conftest.err >&5
 
4077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4078
  (exit $ac_status); } &&
 
4079
         { ac_try='test -z "$ac_c_werror_flag"
 
4080
                         || test ! -s conftest.err'
 
4081
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4082
  (eval $ac_try) 2>&5
 
4083
  ac_status=$?
 
4084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4085
  (exit $ac_status); }; } &&
 
4086
         { ac_try='test -s conftest.$ac_objext'
 
4087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4088
  (eval $ac_try) 2>&5
 
4089
  ac_status=$?
 
4090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4091
  (exit $ac_status); }; }; then
 
4092
  ac_cv_prog_cc_stdc=$ac_arg
 
4093
break
 
4094
else
 
4095
  echo "$as_me: failed program was:" >&5
 
4096
sed 's/^/| /' conftest.$ac_ext >&5
 
4097
 
 
4098
fi
 
4099
rm -f conftest.err conftest.$ac_objext
 
4100
done
 
4101
rm -f conftest.$ac_ext conftest.$ac_objext
 
4102
CC=$ac_save_CC
 
4103
 
 
4104
fi
 
4105
 
 
4106
case "x$ac_cv_prog_cc_stdc" in
 
4107
  x|xno)
 
4108
    echo "$as_me:$LINENO: result: none needed" >&5
 
4109
echo "${ECHO_T}none needed" >&6 ;;
 
4110
  *)
 
4111
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
4112
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
4113
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
4114
esac
 
4115
 
 
4116
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
4117
# in C++ we need to declare it.  In case someone uses the same compiler
 
4118
# for both compiling C and C++ we need to have the C++ compiler decide
 
4119
# the declaration of exit, since it's the most demanding environment.
 
4120
cat >conftest.$ac_ext <<_ACEOF
 
4121
#ifndef __cplusplus
 
4122
  choke me
 
4123
#endif
 
4124
_ACEOF
 
4125
rm -f conftest.$ac_objext
 
4126
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4127
  (eval $ac_compile) 2>conftest.er1
 
4128
  ac_status=$?
 
4129
  grep -v '^ *+' conftest.er1 >conftest.err
 
4130
  rm -f conftest.er1
 
4131
  cat conftest.err >&5
 
4132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4133
  (exit $ac_status); } &&
 
4134
         { ac_try='test -z "$ac_c_werror_flag"
 
4135
                         || test ! -s conftest.err'
 
4136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4137
  (eval $ac_try) 2>&5
 
4138
  ac_status=$?
 
4139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4140
  (exit $ac_status); }; } &&
 
4141
         { ac_try='test -s conftest.$ac_objext'
 
4142
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4143
  (eval $ac_try) 2>&5
 
4144
  ac_status=$?
 
4145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4146
  (exit $ac_status); }; }; then
 
4147
  for ac_declaration in \
 
4148
   ''\
 
4149
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4150
   'extern "C" void std::exit (int); using std::exit;' \
 
4151
   'extern "C" void exit (int) throw ();' \
 
4152
   'extern "C" void exit (int);' \
 
4153
   'void exit (int);' \
 
4154
   '#include <stdlib.h>'
 
4155
do
 
4156
  cat >conftest.$ac_ext <<_ACEOF
 
4157
/* confdefs.h.  */
 
4158
_ACEOF
 
4159
cat confdefs.h >>conftest.$ac_ext
 
4160
cat >>conftest.$ac_ext <<_ACEOF
 
4161
/* end confdefs.h.  */
 
4162
$ac_declaration
 
4163
#include <stdlib.h>
 
4164
int
 
4165
main ()
 
4166
{
 
4167
exit (42);
 
4168
  ;
 
4169
  return 0;
 
4170
}
 
4171
_ACEOF
 
4172
rm -f conftest.$ac_objext
 
4173
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4174
  (eval $ac_compile) 2>conftest.er1
 
4175
  ac_status=$?
 
4176
  grep -v '^ *+' conftest.er1 >conftest.err
 
4177
  rm -f conftest.er1
 
4178
  cat conftest.err >&5
 
4179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4180
  (exit $ac_status); } &&
 
4181
         { ac_try='test -z "$ac_c_werror_flag"
 
4182
                         || test ! -s conftest.err'
 
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); }; } &&
 
4188
         { ac_try='test -s conftest.$ac_objext'
 
4189
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4190
  (eval $ac_try) 2>&5
 
4191
  ac_status=$?
 
4192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4193
  (exit $ac_status); }; }; then
 
4194
  :
 
4195
else
 
4196
  echo "$as_me: failed program was:" >&5
 
4197
sed 's/^/| /' conftest.$ac_ext >&5
 
4198
 
 
4199
continue
 
4200
fi
 
4201
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4202
  cat >conftest.$ac_ext <<_ACEOF
 
4203
/* confdefs.h.  */
 
4204
_ACEOF
 
4205
cat confdefs.h >>conftest.$ac_ext
 
4206
cat >>conftest.$ac_ext <<_ACEOF
 
4207
/* end confdefs.h.  */
 
4208
$ac_declaration
 
4209
int
 
4210
main ()
 
4211
{
 
4212
exit (42);
 
4213
  ;
 
4214
  return 0;
 
4215
}
 
4216
_ACEOF
 
4217
rm -f conftest.$ac_objext
 
4218
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4219
  (eval $ac_compile) 2>conftest.er1
 
4220
  ac_status=$?
 
4221
  grep -v '^ *+' conftest.er1 >conftest.err
 
4222
  rm -f conftest.er1
 
4223
  cat conftest.err >&5
 
4224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4225
  (exit $ac_status); } &&
 
4226
         { ac_try='test -z "$ac_c_werror_flag"
 
4227
                         || test ! -s conftest.err'
 
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); }; } &&
 
4233
         { ac_try='test -s conftest.$ac_objext'
 
4234
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4235
  (eval $ac_try) 2>&5
 
4236
  ac_status=$?
 
4237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4238
  (exit $ac_status); }; }; then
 
4239
  break
 
4240
else
 
4241
  echo "$as_me: failed program was:" >&5
 
4242
sed 's/^/| /' conftest.$ac_ext >&5
 
4243
 
 
4244
fi
 
4245
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4246
done
 
4247
rm -f conftest*
 
4248
if test -n "$ac_declaration"; then
 
4249
  echo '#ifdef __cplusplus' >>confdefs.h
 
4250
  echo $ac_declaration      >>confdefs.h
 
4251
  echo '#endif'             >>confdefs.h
 
4252
fi
 
4253
 
 
4254
else
 
4255
  echo "$as_me: failed program was:" >&5
 
4256
sed 's/^/| /' conftest.$ac_ext >&5
 
4257
 
 
4258
fi
 
4259
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4260
ac_ext=c
 
4261
ac_cpp='$CPP $CPPFLAGS'
 
4262
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4263
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4264
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4265
DEPDIR="${am__leading_dot}deps"
 
4266
 
 
4267
          ac_config_commands="$ac_config_commands depfiles"
 
4268
 
 
4269
 
 
4270
am_make=${MAKE-make}
 
4271
cat > confinc << 'END'
 
4272
am__doit:
 
4273
        @echo done
 
4274
.PHONY: am__doit
 
4275
END
 
4276
# If we don't find an include directive, just comment out the code.
 
4277
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
4278
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
4279
am__include="#"
 
4280
am__quote=
 
4281
_am_result=none
 
4282
# First try GNU make style include.
 
4283
echo "include confinc" > confmf
 
4284
# We grep out `Entering directory' and `Leaving directory'
 
4285
# messages which can occur if `w' ends up in MAKEFLAGS.
 
4286
# In particular we don't look at `^make:' because GNU make might
 
4287
# be invoked under some other name (usually "gmake"), in which
 
4288
# case it prints its new name instead of `make'.
 
4289
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
4290
   am__include=include
 
4291
   am__quote=
 
4292
   _am_result=GNU
 
4293
fi
 
4294
# Now try BSD make style include.
 
4295
if test "$am__include" = "#"; then
 
4296
   echo '.include "confinc"' > confmf
 
4297
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
4298
      am__include=.include
 
4299
      am__quote="\""
 
4300
      _am_result=BSD
 
4301
   fi
 
4302
fi
 
4303
 
 
4304
 
 
4305
echo "$as_me:$LINENO: result: $_am_result" >&5
 
4306
echo "${ECHO_T}$_am_result" >&6
 
4307
rm -f confinc confmf
 
4308
 
 
4309
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
4310
if test "${enable_dependency_tracking+set}" = set; then
 
4311
  enableval="$enable_dependency_tracking"
 
4312
 
 
4313
fi;
 
4314
if test "x$enable_dependency_tracking" != xno; then
 
4315
  am_depcomp="$ac_aux_dir/depcomp"
 
4316
  AMDEPBACKSLASH='\'
 
4317
fi
 
4318
 
 
4319
 
 
4320
if test "x$enable_dependency_tracking" != xno; then
 
4321
  AMDEP_TRUE=
 
4322
  AMDEP_FALSE='#'
 
4323
else
 
4324
  AMDEP_TRUE='#'
 
4325
  AMDEP_FALSE=
 
4326
fi
 
4327
 
 
4328
 
 
4329
 
 
4330
 
 
4331
depcc="$CC"   am_compiler_list=
 
4332
 
 
4333
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4334
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4335
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4337
else
 
4338
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4339
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4340
  # making bogus files that we don't know about and never remove.  For
 
4341
  # instance it was reported that on HP-UX the gcc test will end up
 
4342
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4343
  # in D'.
 
4344
  mkdir conftest.dir
 
4345
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4346
  # using a relative directory.
 
4347
  cp "$am_depcomp" conftest.dir
 
4348
  cd conftest.dir
 
4349
  # We will build objects and dependencies in a subdirectory because
 
4350
  # it helps to detect inapplicable dependency modes.  For instance
 
4351
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4352
  # side effect of compilation, but ICC will put the dependencies in
 
4353
  # the current directory while Tru64 will put them in the object
 
4354
  # directory.
 
4355
  mkdir sub
 
4356
 
 
4357
  am_cv_CC_dependencies_compiler_type=none
 
4358
  if test "$am_compiler_list" = ""; then
 
4359
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4360
  fi
 
4361
  for depmode in $am_compiler_list; do
 
4362
    # Setup a source with many dependencies, because some compilers
 
4363
    # like to wrap large dependency lists on column 80 (with \), and
 
4364
    # we should not choose a depcomp mode which is confused by this.
 
4365
    #
 
4366
    # We need to recreate these files for each test, as the compiler may
 
4367
    # overwrite some of them when testing with obscure command lines.
 
4368
    # This happens at least with the AIX C compiler.
 
4369
    : > sub/conftest.c
 
4370
    for i in 1 2 3 4 5 6; do
 
4371
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4372
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4373
      # Solaris 8's {/usr,}/bin/sh.
 
4374
      touch sub/conftst$i.h
 
4375
    done
 
4376
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4377
 
 
4378
    case $depmode in
 
4379
    nosideeffect)
 
4380
      # after this tag, mechanisms are not by side-effect, so they'll
 
4381
      # only be used when explicitly requested
 
4382
      if test "x$enable_dependency_tracking" = xyes; then
 
4383
        continue
 
4384
      else
 
4385
        break
 
4386
      fi
 
4387
      ;;
 
4388
    none) break ;;
 
4389
    esac
 
4390
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4391
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4392
    # handle `-M -o', and we need to detect this.
 
4393
    if depmode=$depmode \
 
4394
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4395
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4396
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4397
         >/dev/null 2>conftest.err &&
 
4398
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4399
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4400
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4401
      # icc doesn't choke on unknown options, it will just issue warnings
 
4402
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4403
      # that says an option was ignored or not supported.
 
4404
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4405
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4406
      # The diagnosis changed in icc 8.0:
 
4407
      #   icc: Command line remark: option '-MP' not supported
 
4408
      if (grep 'ignoring option' conftest.err ||
 
4409
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4410
        am_cv_CC_dependencies_compiler_type=$depmode
 
4411
        break
 
4412
      fi
 
4413
    fi
 
4414
  done
 
4415
 
 
4416
  cd ..
 
4417
  rm -rf conftest.dir
 
4418
else
 
4419
  am_cv_CC_dependencies_compiler_type=none
 
4420
fi
 
4421
 
 
4422
fi
 
4423
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4424
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
4425
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4426
 
 
4427
 
 
4428
 
 
4429
if
 
4430
  test "x$enable_dependency_tracking" != xno \
 
4431
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4432
  am__fastdepCC_TRUE=
 
4433
  am__fastdepCC_FALSE='#'
 
4434
else
 
4435
  am__fastdepCC_TRUE='#'
 
4436
  am__fastdepCC_FALSE=
 
4437
fi
 
4438
 
 
4439
 
 
4440
ac_ext=cc
 
4441
ac_cpp='$CXXCPP $CPPFLAGS'
 
4442
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4443
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4444
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4445
if test -n "$ac_tool_prefix"; then
 
4446
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4447
  do
 
4448
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4449
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4450
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4451
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4452
if test "${ac_cv_prog_CXX+set}" = set; then
 
4453
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4454
else
 
4455
  if test -n "$CXX"; then
 
4456
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4457
else
 
4458
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4459
for as_dir in $PATH
 
4460
do
 
4461
  IFS=$as_save_IFS
 
4462
  test -z "$as_dir" && as_dir=.
 
4463
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4464
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4465
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4466
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4467
    break 2
 
4468
  fi
 
4469
done
 
4470
done
 
4471
 
 
4472
fi
 
4473
fi
 
4474
CXX=$ac_cv_prog_CXX
 
4475
if test -n "$CXX"; then
 
4476
  echo "$as_me:$LINENO: result: $CXX" >&5
 
4477
echo "${ECHO_T}$CXX" >&6
 
4478
else
 
4479
  echo "$as_me:$LINENO: result: no" >&5
 
4480
echo "${ECHO_T}no" >&6
 
4481
fi
 
4482
 
 
4483
    test -n "$CXX" && break
 
4484
  done
 
4485
fi
 
4486
if test -z "$CXX"; then
 
4487
  ac_ct_CXX=$CXX
 
4488
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
4489
do
 
4490
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4491
set dummy $ac_prog; ac_word=$2
 
4492
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4493
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4494
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4496
else
 
4497
  if test -n "$ac_ct_CXX"; then
 
4498
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4499
else
 
4500
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4501
for as_dir in $PATH
 
4502
do
 
4503
  IFS=$as_save_IFS
 
4504
  test -z "$as_dir" && as_dir=.
 
4505
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4506
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4507
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4508
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4509
    break 2
 
4510
  fi
 
4511
done
 
4512
done
 
4513
 
 
4514
fi
 
4515
fi
 
4516
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4517
if test -n "$ac_ct_CXX"; then
 
4518
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4519
echo "${ECHO_T}$ac_ct_CXX" >&6
 
4520
else
 
4521
  echo "$as_me:$LINENO: result: no" >&5
 
4522
echo "${ECHO_T}no" >&6
 
4523
fi
 
4524
 
 
4525
  test -n "$ac_ct_CXX" && break
 
4526
done
 
4527
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
4528
 
 
4529
  CXX=$ac_ct_CXX
 
4530
fi
 
4531
 
 
4532
 
 
4533
# Provide some information about the compiler.
 
4534
echo "$as_me:$LINENO:" \
 
4535
     "checking for C++ compiler version" >&5
 
4536
ac_compiler=`set X $ac_compile; echo $2`
 
4537
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4538
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4539
  ac_status=$?
 
4540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4541
  (exit $ac_status); }
 
4542
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4543
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4544
  ac_status=$?
 
4545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4546
  (exit $ac_status); }
 
4547
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4548
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
4549
  ac_status=$?
 
4550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4551
  (exit $ac_status); }
 
4552
 
 
4553
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
4554
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
4555
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
4556
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4557
else
 
4558
  cat >conftest.$ac_ext <<_ACEOF
 
4559
/* confdefs.h.  */
 
4560
_ACEOF
 
4561
cat confdefs.h >>conftest.$ac_ext
 
4562
cat >>conftest.$ac_ext <<_ACEOF
 
4563
/* end confdefs.h.  */
 
4564
 
 
4565
int
 
4566
main ()
 
4567
{
 
4568
#ifndef __GNUC__
 
4569
       choke me
 
4570
#endif
 
4571
 
 
4572
  ;
 
4573
  return 0;
 
4574
}
 
4575
_ACEOF
 
4576
rm -f conftest.$ac_objext
 
4577
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4578
  (eval $ac_compile) 2>conftest.er1
 
4579
  ac_status=$?
 
4580
  grep -v '^ *+' conftest.er1 >conftest.err
 
4581
  rm -f conftest.er1
 
4582
  cat conftest.err >&5
 
4583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4584
  (exit $ac_status); } &&
 
4585
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4586
                         || test ! -s conftest.err'
 
4587
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4588
  (eval $ac_try) 2>&5
 
4589
  ac_status=$?
 
4590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4591
  (exit $ac_status); }; } &&
 
4592
         { ac_try='test -s conftest.$ac_objext'
 
4593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4594
  (eval $ac_try) 2>&5
 
4595
  ac_status=$?
 
4596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4597
  (exit $ac_status); }; }; then
 
4598
  ac_compiler_gnu=yes
 
4599
else
 
4600
  echo "$as_me: failed program was:" >&5
 
4601
sed 's/^/| /' conftest.$ac_ext >&5
 
4602
 
 
4603
ac_compiler_gnu=no
 
4604
fi
 
4605
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4606
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
4607
 
 
4608
fi
 
4609
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4610
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
4611
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
4612
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
4613
ac_save_CXXFLAGS=$CXXFLAGS
 
4614
CXXFLAGS="-g"
 
4615
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4616
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
4617
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
4618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4619
else
 
4620
  cat >conftest.$ac_ext <<_ACEOF
 
4621
/* confdefs.h.  */
 
4622
_ACEOF
 
4623
cat confdefs.h >>conftest.$ac_ext
 
4624
cat >>conftest.$ac_ext <<_ACEOF
 
4625
/* end confdefs.h.  */
 
4626
 
 
4627
int
 
4628
main ()
 
4629
{
 
4630
 
 
4631
  ;
 
4632
  return 0;
 
4633
}
 
4634
_ACEOF
 
4635
rm -f conftest.$ac_objext
 
4636
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4637
  (eval $ac_compile) 2>conftest.er1
 
4638
  ac_status=$?
 
4639
  grep -v '^ *+' conftest.er1 >conftest.err
 
4640
  rm -f conftest.er1
 
4641
  cat conftest.err >&5
 
4642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4643
  (exit $ac_status); } &&
 
4644
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4645
                         || test ! -s conftest.err'
 
4646
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4647
  (eval $ac_try) 2>&5
 
4648
  ac_status=$?
 
4649
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4650
  (exit $ac_status); }; } &&
 
4651
         { ac_try='test -s conftest.$ac_objext'
 
4652
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4653
  (eval $ac_try) 2>&5
 
4654
  ac_status=$?
 
4655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4656
  (exit $ac_status); }; }; then
 
4657
  ac_cv_prog_cxx_g=yes
 
4658
else
 
4659
  echo "$as_me: failed program was:" >&5
 
4660
sed 's/^/| /' conftest.$ac_ext >&5
 
4661
 
 
4662
ac_cv_prog_cxx_g=no
 
4663
fi
 
4664
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4665
fi
 
4666
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4667
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
4668
if test "$ac_test_CXXFLAGS" = set; then
 
4669
  CXXFLAGS=$ac_save_CXXFLAGS
 
4670
elif test $ac_cv_prog_cxx_g = yes; then
 
4671
  if test "$GXX" = yes; then
 
4672
    CXXFLAGS="-g -O2"
 
4673
  else
 
4674
    CXXFLAGS="-g"
 
4675
  fi
 
4676
else
 
4677
  if test "$GXX" = yes; then
 
4678
    CXXFLAGS="-O2"
 
4679
  else
 
4680
    CXXFLAGS=
 
4681
  fi
 
4682
fi
 
4683
for ac_declaration in \
 
4684
   ''\
 
4685
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4686
   'extern "C" void std::exit (int); using std::exit;' \
 
4687
   'extern "C" void exit (int) throw ();' \
 
4688
   'extern "C" void exit (int);' \
 
4689
   'void exit (int);' \
 
4690
   '#include <stdlib.h>'
 
4691
do
 
4692
  cat >conftest.$ac_ext <<_ACEOF
 
4693
/* confdefs.h.  */
 
4694
_ACEOF
 
4695
cat confdefs.h >>conftest.$ac_ext
 
4696
cat >>conftest.$ac_ext <<_ACEOF
 
4697
/* end confdefs.h.  */
 
4698
$ac_declaration
 
4699
#include <stdlib.h>
 
4700
int
 
4701
main ()
 
4702
{
 
4703
exit (42);
 
4704
  ;
 
4705
  return 0;
 
4706
}
 
4707
_ACEOF
 
4708
rm -f conftest.$ac_objext
 
4709
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4710
  (eval $ac_compile) 2>conftest.er1
 
4711
  ac_status=$?
 
4712
  grep -v '^ *+' conftest.er1 >conftest.err
 
4713
  rm -f conftest.er1
 
4714
  cat conftest.err >&5
 
4715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4716
  (exit $ac_status); } &&
 
4717
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4718
                         || test ! -s conftest.err'
 
4719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4720
  (eval $ac_try) 2>&5
 
4721
  ac_status=$?
 
4722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4723
  (exit $ac_status); }; } &&
 
4724
         { ac_try='test -s conftest.$ac_objext'
 
4725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4726
  (eval $ac_try) 2>&5
 
4727
  ac_status=$?
 
4728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4729
  (exit $ac_status); }; }; then
 
4730
  :
 
4731
else
 
4732
  echo "$as_me: failed program was:" >&5
 
4733
sed 's/^/| /' conftest.$ac_ext >&5
 
4734
 
 
4735
continue
 
4736
fi
 
4737
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4738
  cat >conftest.$ac_ext <<_ACEOF
 
4739
/* confdefs.h.  */
 
4740
_ACEOF
 
4741
cat confdefs.h >>conftest.$ac_ext
 
4742
cat >>conftest.$ac_ext <<_ACEOF
 
4743
/* end confdefs.h.  */
 
4744
$ac_declaration
 
4745
int
 
4746
main ()
 
4747
{
 
4748
exit (42);
 
4749
  ;
 
4750
  return 0;
 
4751
}
 
4752
_ACEOF
 
4753
rm -f conftest.$ac_objext
 
4754
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4755
  (eval $ac_compile) 2>conftest.er1
 
4756
  ac_status=$?
 
4757
  grep -v '^ *+' conftest.er1 >conftest.err
 
4758
  rm -f conftest.er1
 
4759
  cat conftest.err >&5
 
4760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4761
  (exit $ac_status); } &&
 
4762
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4763
                         || test ! -s conftest.err'
 
4764
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4765
  (eval $ac_try) 2>&5
 
4766
  ac_status=$?
 
4767
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4768
  (exit $ac_status); }; } &&
 
4769
         { ac_try='test -s conftest.$ac_objext'
 
4770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4771
  (eval $ac_try) 2>&5
 
4772
  ac_status=$?
 
4773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4774
  (exit $ac_status); }; }; then
 
4775
  break
 
4776
else
 
4777
  echo "$as_me: failed program was:" >&5
 
4778
sed 's/^/| /' conftest.$ac_ext >&5
 
4779
 
 
4780
fi
 
4781
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4782
done
 
4783
rm -f conftest*
 
4784
if test -n "$ac_declaration"; then
 
4785
  echo '#ifdef __cplusplus' >>confdefs.h
 
4786
  echo $ac_declaration      >>confdefs.h
 
4787
  echo '#endif'             >>confdefs.h
 
4788
fi
 
4789
 
 
4790
ac_ext=c
 
4791
ac_cpp='$CPP $CPPFLAGS'
 
4792
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4793
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4794
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4795
 
 
4796
depcc="$CXX"  am_compiler_list=
 
4797
 
 
4798
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4799
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4800
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
4801
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4802
else
 
4803
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4804
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4805
  # making bogus files that we don't know about and never remove.  For
 
4806
  # instance it was reported that on HP-UX the gcc test will end up
 
4807
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4808
  # in D'.
 
4809
  mkdir conftest.dir
 
4810
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4811
  # using a relative directory.
 
4812
  cp "$am_depcomp" conftest.dir
 
4813
  cd conftest.dir
 
4814
  # We will build objects and dependencies in a subdirectory because
 
4815
  # it helps to detect inapplicable dependency modes.  For instance
 
4816
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4817
  # side effect of compilation, but ICC will put the dependencies in
 
4818
  # the current directory while Tru64 will put them in the object
 
4819
  # directory.
 
4820
  mkdir sub
 
4821
 
 
4822
  am_cv_CXX_dependencies_compiler_type=none
 
4823
  if test "$am_compiler_list" = ""; then
 
4824
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4825
  fi
 
4826
  for depmode in $am_compiler_list; do
 
4827
    # Setup a source with many dependencies, because some compilers
 
4828
    # like to wrap large dependency lists on column 80 (with \), and
 
4829
    # we should not choose a depcomp mode which is confused by this.
 
4830
    #
 
4831
    # We need to recreate these files for each test, as the compiler may
 
4832
    # overwrite some of them when testing with obscure command lines.
 
4833
    # This happens at least with the AIX C compiler.
 
4834
    : > sub/conftest.c
 
4835
    for i in 1 2 3 4 5 6; do
 
4836
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4837
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4838
      # Solaris 8's {/usr,}/bin/sh.
 
4839
      touch sub/conftst$i.h
 
4840
    done
 
4841
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4842
 
 
4843
    case $depmode in
 
4844
    nosideeffect)
 
4845
      # after this tag, mechanisms are not by side-effect, so they'll
 
4846
      # only be used when explicitly requested
 
4847
      if test "x$enable_dependency_tracking" = xyes; then
 
4848
        continue
 
4849
      else
 
4850
        break
 
4851
      fi
 
4852
      ;;
 
4853
    none) break ;;
 
4854
    esac
 
4855
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4856
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4857
    # handle `-M -o', and we need to detect this.
 
4858
    if depmode=$depmode \
 
4859
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4860
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4861
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4862
         >/dev/null 2>conftest.err &&
 
4863
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4864
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4865
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4866
      # icc doesn't choke on unknown options, it will just issue warnings
 
4867
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4868
      # that says an option was ignored or not supported.
 
4869
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4870
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4871
      # The diagnosis changed in icc 8.0:
 
4872
      #   icc: Command line remark: option '-MP' not supported
 
4873
      if (grep 'ignoring option' conftest.err ||
 
4874
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4875
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4876
        break
 
4877
      fi
 
4878
    fi
 
4879
  done
 
4880
 
 
4881
  cd ..
 
4882
  rm -rf conftest.dir
 
4883
else
 
4884
  am_cv_CXX_dependencies_compiler_type=none
 
4885
fi
 
4886
 
 
4887
fi
 
4888
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4889
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
4890
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4891
 
 
4892
 
 
4893
 
 
4894
if
 
4895
  test "x$enable_dependency_tracking" != xno \
 
4896
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4897
  am__fastdepCXX_TRUE=
 
4898
  am__fastdepCXX_FALSE='#'
 
4899
else
 
4900
  am__fastdepCXX_TRUE='#'
 
4901
  am__fastdepCXX_FALSE=
 
4902
fi
 
4903
 
 
4904
 
 
4905
ac_ext=c
 
4906
ac_cpp='$CPP $CPPFLAGS'
 
4907
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4908
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4909
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4910
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4911
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4912
# On Suns, sometimes $CPP names a directory.
 
4913
if test -n "$CPP" && test -d "$CPP"; then
 
4914
  CPP=
 
4915
fi
 
4916
if test -z "$CPP"; then
 
4917
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4919
else
 
4920
      # Double quotes because CPP needs to be expanded
 
4921
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4922
    do
 
4923
      ac_preproc_ok=false
 
4924
for ac_c_preproc_warn_flag in '' yes
 
4925
do
 
4926
  # Use a header file that comes with gcc, so configuring glibc
 
4927
  # with a fresh cross-compiler works.
 
4928
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4929
  # <limits.h> exists even on freestanding compilers.
 
4930
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4931
  # not just through cpp. "Syntax error" is here to catch this case.
 
4932
  cat >conftest.$ac_ext <<_ACEOF
 
4933
/* confdefs.h.  */
 
4934
_ACEOF
 
4935
cat confdefs.h >>conftest.$ac_ext
 
4936
cat >>conftest.$ac_ext <<_ACEOF
 
4937
/* end confdefs.h.  */
 
4938
#ifdef __STDC__
 
4939
# include <limits.h>
 
4940
#else
 
4941
# include <assert.h>
 
4942
#endif
 
4943
                     Syntax error
 
4944
_ACEOF
 
4945
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4946
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4947
  ac_status=$?
 
4948
  grep -v '^ *+' conftest.er1 >conftest.err
 
4949
  rm -f conftest.er1
 
4950
  cat conftest.err >&5
 
4951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4952
  (exit $ac_status); } >/dev/null; then
 
4953
  if test -s conftest.err; then
 
4954
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4955
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4956
  else
 
4957
    ac_cpp_err=
 
4958
  fi
 
4959
else
 
4960
  ac_cpp_err=yes
 
4961
fi
 
4962
if test -z "$ac_cpp_err"; then
 
4963
  :
 
4964
else
 
4965
  echo "$as_me: failed program was:" >&5
 
4966
sed 's/^/| /' conftest.$ac_ext >&5
 
4967
 
 
4968
  # Broken: fails on valid input.
 
4969
continue
 
4970
fi
 
4971
rm -f conftest.err conftest.$ac_ext
 
4972
 
 
4973
  # OK, works on sane cases.  Now check whether non-existent headers
 
4974
  # can be detected and how.
 
4975
  cat >conftest.$ac_ext <<_ACEOF
 
4976
/* confdefs.h.  */
 
4977
_ACEOF
 
4978
cat confdefs.h >>conftest.$ac_ext
 
4979
cat >>conftest.$ac_ext <<_ACEOF
 
4980
/* end confdefs.h.  */
 
4981
#include <ac_nonexistent.h>
 
4982
_ACEOF
 
4983
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4984
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4985
  ac_status=$?
 
4986
  grep -v '^ *+' conftest.er1 >conftest.err
 
4987
  rm -f conftest.er1
 
4988
  cat conftest.err >&5
 
4989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4990
  (exit $ac_status); } >/dev/null; then
 
4991
  if test -s conftest.err; then
 
4992
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4993
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4994
  else
 
4995
    ac_cpp_err=
 
4996
  fi
 
4997
else
 
4998
  ac_cpp_err=yes
 
4999
fi
 
5000
if test -z "$ac_cpp_err"; then
 
5001
  # Broken: success on invalid input.
 
5002
continue
 
5003
else
 
5004
  echo "$as_me: failed program was:" >&5
 
5005
sed 's/^/| /' conftest.$ac_ext >&5
 
5006
 
 
5007
  # Passes both tests.
 
5008
ac_preproc_ok=:
 
5009
break
 
5010
fi
 
5011
rm -f conftest.err conftest.$ac_ext
 
5012
 
 
5013
done
 
5014
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5015
rm -f conftest.err conftest.$ac_ext
 
5016
if $ac_preproc_ok; then
 
5017
  break
 
5018
fi
 
5019
 
 
5020
    done
 
5021
    ac_cv_prog_CPP=$CPP
 
5022
 
 
5023
fi
 
5024
  CPP=$ac_cv_prog_CPP
 
5025
else
 
5026
  ac_cv_prog_CPP=$CPP
 
5027
fi
 
5028
echo "$as_me:$LINENO: result: $CPP" >&5
 
5029
echo "${ECHO_T}$CPP" >&6
 
5030
ac_preproc_ok=false
 
5031
for ac_c_preproc_warn_flag in '' yes
 
5032
do
 
5033
  # Use a header file that comes with gcc, so configuring glibc
 
5034
  # with a fresh cross-compiler works.
 
5035
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5036
  # <limits.h> exists even on freestanding compilers.
 
5037
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5038
  # not just through cpp. "Syntax error" is here to catch this case.
 
5039
  cat >conftest.$ac_ext <<_ACEOF
 
5040
/* confdefs.h.  */
 
5041
_ACEOF
 
5042
cat confdefs.h >>conftest.$ac_ext
 
5043
cat >>conftest.$ac_ext <<_ACEOF
 
5044
/* end confdefs.h.  */
 
5045
#ifdef __STDC__
 
5046
# include <limits.h>
 
5047
#else
 
5048
# include <assert.h>
 
5049
#endif
 
5050
                     Syntax error
 
5051
_ACEOF
 
5052
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5053
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5054
  ac_status=$?
 
5055
  grep -v '^ *+' conftest.er1 >conftest.err
 
5056
  rm -f conftest.er1
 
5057
  cat conftest.err >&5
 
5058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5059
  (exit $ac_status); } >/dev/null; then
 
5060
  if test -s conftest.err; then
 
5061
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5062
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5063
  else
 
5064
    ac_cpp_err=
 
5065
  fi
 
5066
else
 
5067
  ac_cpp_err=yes
 
5068
fi
 
5069
if test -z "$ac_cpp_err"; then
 
5070
  :
 
5071
else
 
5072
  echo "$as_me: failed program was:" >&5
 
5073
sed 's/^/| /' conftest.$ac_ext >&5
 
5074
 
 
5075
  # Broken: fails on valid input.
 
5076
continue
 
5077
fi
 
5078
rm -f conftest.err conftest.$ac_ext
 
5079
 
 
5080
  # OK, works on sane cases.  Now check whether non-existent headers
 
5081
  # can be detected and how.
 
5082
  cat >conftest.$ac_ext <<_ACEOF
 
5083
/* confdefs.h.  */
 
5084
_ACEOF
 
5085
cat confdefs.h >>conftest.$ac_ext
 
5086
cat >>conftest.$ac_ext <<_ACEOF
 
5087
/* end confdefs.h.  */
 
5088
#include <ac_nonexistent.h>
 
5089
_ACEOF
 
5090
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5091
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5092
  ac_status=$?
 
5093
  grep -v '^ *+' conftest.er1 >conftest.err
 
5094
  rm -f conftest.er1
 
5095
  cat conftest.err >&5
 
5096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5097
  (exit $ac_status); } >/dev/null; then
 
5098
  if test -s conftest.err; then
 
5099
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5100
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5101
  else
 
5102
    ac_cpp_err=
 
5103
  fi
 
5104
else
 
5105
  ac_cpp_err=yes
 
5106
fi
 
5107
if test -z "$ac_cpp_err"; then
 
5108
  # Broken: success on invalid input.
 
5109
continue
 
5110
else
 
5111
  echo "$as_me: failed program was:" >&5
 
5112
sed 's/^/| /' conftest.$ac_ext >&5
 
5113
 
 
5114
  # Passes both tests.
 
5115
ac_preproc_ok=:
 
5116
break
 
5117
fi
 
5118
rm -f conftest.err conftest.$ac_ext
 
5119
 
 
5120
done
 
5121
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5122
rm -f conftest.err conftest.$ac_ext
 
5123
if $ac_preproc_ok; then
 
5124
  :
 
5125
else
 
5126
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
5127
See \`config.log' for more details." >&5
 
5128
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
5129
See \`config.log' for more details." >&2;}
 
5130
   { (exit 1); exit 1; }; }
 
5131
fi
 
5132
 
 
5133
ac_ext=c
 
5134
ac_cpp='$CPP $CPPFLAGS'
 
5135
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5136
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5137
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5138
 
 
5139
 
 
5140
# Print version of CC and CXX compiler (if they support --version)
 
5141
case $SYSTEM_TYPE in
 
5142
  *netware*)
 
5143
CC_VERSION=`$CC -version | grep -i version`
 
5144
    ;;
 
5145
  *)
 
5146
CC_VERSION=`$CC --version | sed 1q`
 
5147
    ;;
 
5148
esac
 
5149
if test $? -eq "0"
 
5150
then
 
5151
  echo "$as_me:$LINENO: checking \"C Compiler version\"" >&5
 
5152
echo $ECHO_N "checking \"C Compiler version\"... $ECHO_C" >&6;
 
5153
  echo "$as_me:$LINENO: result: \"$CC $CC_VERSION\"" >&5
 
5154
echo "${ECHO_T}\"$CC $CC_VERSION\"" >&6
 
5155
else
 
5156
CC_VERSION=""
 
5157
fi
 
5158
 
 
5159
 
 
5160
case $SYSTEM_TYPE in
 
5161
  *netware*)
 
5162
    CXX_VERSION=`$CXX -version | grep -i version`
 
5163
  ;;
 
5164
  *)
 
5165
    CXX_VERSION=`$CXX --version | sed 1q`
 
5166
    if test $? -ne "0" -o -z "$CXX_VERSION"
 
5167
    then
 
5168
      CXX_VERSION=`$CXX -V 2>&1|sed 1q` # trying harder for Sun and SGI
 
5169
    fi
 
5170
    if test $? -ne "0" -o -z "$CXX_VERSION"
 
5171
    then
 
5172
      CXX_VERSION=`$CXX -v 2>&1|sed 1q` # even harder for Alpha
 
5173
    fi
 
5174
    if test $? -ne "0" -o -z "$CXX_VERSION"
 
5175
    then
 
5176
      CXX_VERSION=""
 
5177
    fi
 
5178
esac
 
5179
if test "$CXX_VERSION"
 
5180
then
 
5181
  echo "$as_me:$LINENO: checking \"C++ compiler version\"" >&5
 
5182
echo $ECHO_N "checking \"C++ compiler version\"... $ECHO_C" >&6;
 
5183
  echo "$as_me:$LINENO: result: \"$CXX $CXX_VERSION\"" >&5
 
5184
echo "${ECHO_T}\"$CXX $CXX_VERSION\"" >&6
 
5185
fi
 
5186
 
 
5187
 
 
5188
 
 
5189
# Fix for sgi gcc / sgiCC which tries to emulate gcc
 
5190
if test "$CC" = "sgicc"
 
5191
then
 
5192
  ac_cv_c_compiler_gnu="no"
 
5193
fi
 
5194
if test "$CXX" = "sgi++"
 
5195
then
 
5196
  GXX="no"
 
5197
fi
 
5198
 
 
5199
if test "$ac_cv_c_compiler_gnu" = "yes"
 
5200
then
 
5201
  AS="$CC -c"
 
5202
 
 
5203
else
 
5204
  # Extract the first word of "as", so it can be a program name with args.
 
5205
set dummy as; ac_word=$2
 
5206
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5208
if test "${ac_cv_path_AS+set}" = set; then
 
5209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5210
else
 
5211
  case $AS in
 
5212
  [\\/]* | ?:[\\/]*)
 
5213
  ac_cv_path_AS="$AS" # Let the user override the test with a path.
 
5214
  ;;
 
5215
  *)
 
5216
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5217
for as_dir in $PATH
 
5218
do
 
5219
  IFS=$as_save_IFS
 
5220
  test -z "$as_dir" && as_dir=.
 
5221
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5222
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5223
    ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
 
5224
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5225
    break 2
 
5226
  fi
 
5227
done
 
5228
done
 
5229
 
 
5230
  test -z "$ac_cv_path_AS" && ac_cv_path_AS="as"
 
5231
  ;;
 
5232
esac
 
5233
fi
 
5234
AS=$ac_cv_path_AS
 
5235
 
 
5236
if test -n "$AS"; then
 
5237
  echo "$as_me:$LINENO: result: $AS" >&5
 
5238
echo "${ECHO_T}$AS" >&6
 
5239
else
 
5240
  echo "$as_me:$LINENO: result: no" >&5
 
5241
echo "${ECHO_T}no" >&6
 
5242
fi
 
5243
 
 
5244
fi
 
5245
 
 
5246
# Still need ranlib for readline; local static use only so no libtool.
 
5247
if test -n "$ac_tool_prefix"; then
 
5248
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5249
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5250
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5251
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5252
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5253
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5254
else
 
5255
  if test -n "$RANLIB"; then
 
5256
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5257
else
 
5258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5259
for as_dir in $PATH
 
5260
do
 
5261
  IFS=$as_save_IFS
 
5262
  test -z "$as_dir" && as_dir=.
 
5263
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5264
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5265
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5266
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5267
    break 2
 
5268
  fi
 
5269
done
 
5270
done
 
5271
 
 
5272
fi
 
5273
fi
 
5274
RANLIB=$ac_cv_prog_RANLIB
 
5275
if test -n "$RANLIB"; then
 
5276
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5277
echo "${ECHO_T}$RANLIB" >&6
 
5278
else
 
5279
  echo "$as_me:$LINENO: result: no" >&5
 
5280
echo "${ECHO_T}no" >&6
 
5281
fi
 
5282
 
 
5283
fi
 
5284
if test -z "$ac_cv_prog_RANLIB"; then
 
5285
  ac_ct_RANLIB=$RANLIB
 
5286
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5287
set dummy ranlib; ac_word=$2
 
5288
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5289
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5290
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5291
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5292
else
 
5293
  if test -n "$ac_ct_RANLIB"; then
 
5294
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5295
else
 
5296
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5297
for as_dir in $PATH
 
5298
do
 
5299
  IFS=$as_save_IFS
 
5300
  test -z "$as_dir" && as_dir=.
 
5301
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5302
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5303
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
5304
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5305
    break 2
 
5306
  fi
 
5307
done
 
5308
done
 
5309
 
 
5310
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
5311
fi
 
5312
fi
 
5313
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
5314
if test -n "$ac_ct_RANLIB"; then
 
5315
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5316
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
5317
else
 
5318
  echo "$as_me:$LINENO: result: no" >&5
 
5319
echo "${ECHO_T}no" >&6
 
5320
fi
 
5321
 
 
5322
  RANLIB=$ac_ct_RANLIB
 
5323
else
 
5324
  RANLIB="$ac_cv_prog_RANLIB"
 
5325
fi
 
5326
 
 
5327
# We use libtool
 
5328
#AC_LIBTOOL_WIN32_DLL
 
5329
# Check whether --enable-shared or --disable-shared was given.
 
5330
if test "${enable_shared+set}" = set; then
 
5331
  enableval="$enable_shared"
 
5332
  p=${PACKAGE-default}
 
5333
    case $enableval in
 
5334
    yes) enable_shared=yes ;;
 
5335
    no) enable_shared=no ;;
 
5336
    *)
 
5337
      enable_shared=no
 
5338
      # Look at the argument we got.  We use all the common list separators.
 
5339
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5340
      for pkg in $enableval; do
 
5341
        IFS="$lt_save_ifs"
 
5342
        if test "X$pkg" = "X$p"; then
 
5343
          enable_shared=yes
 
5344
        fi
 
5345
      done
 
5346
      IFS="$lt_save_ifs"
 
5347
      ;;
 
5348
    esac
 
5349
else
 
5350
  enable_shared=yes
 
5351
fi;
 
5352
 
 
5353
# Check whether --enable-static or --disable-static was given.
 
5354
if test "${enable_static+set}" = set; then
 
5355
  enableval="$enable_static"
 
5356
  p=${PACKAGE-default}
 
5357
    case $enableval in
 
5358
    yes) enable_static=yes ;;
 
5359
    no) enable_static=no ;;
 
5360
    *)
 
5361
     enable_static=no
 
5362
      # Look at the argument we got.  We use all the common list separators.
 
5363
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5364
      for pkg in $enableval; do
 
5365
        IFS="$lt_save_ifs"
 
5366
        if test "X$pkg" = "X$p"; then
 
5367
          enable_static=yes
 
5368
        fi
 
5369
      done
 
5370
      IFS="$lt_save_ifs"
 
5371
      ;;
 
5372
    esac
 
5373
else
 
5374
  enable_static=yes
 
5375
fi;
 
5376
 
 
5377
# Check whether --enable-fast-install or --disable-fast-install was given.
 
5378
if test "${enable_fast_install+set}" = set; then
 
5379
  enableval="$enable_fast_install"
 
5380
  p=${PACKAGE-default}
 
5381
    case $enableval in
 
5382
    yes) enable_fast_install=yes ;;
 
5383
    no) enable_fast_install=no ;;
 
5384
    *)
 
5385
      enable_fast_install=no
 
5386
      # Look at the argument we got.  We use all the common list separators.
 
5387
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5388
      for pkg in $enableval; do
 
5389
        IFS="$lt_save_ifs"
 
5390
        if test "X$pkg" = "X$p"; then
 
5391
          enable_fast_install=yes
 
5392
        fi
 
5393
      done
 
5394
      IFS="$lt_save_ifs"
 
5395
      ;;
 
5396
    esac
 
5397
else
 
5398
  enable_fast_install=yes
 
5399
fi;
 
5400
 
 
5401
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
5402
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
5403
if test "${lt_cv_path_SED+set}" = set; then
 
5404
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5405
else
 
5406
  # Loop through the user's path and test for sed and gsed.
 
5407
# Then use that list of sed's as ones to test for truncation.
 
5408
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5409
for as_dir in $PATH
 
5410
do
 
5411
  IFS=$as_save_IFS
 
5412
  test -z "$as_dir" && as_dir=.
 
5413
  for lt_ac_prog in sed gsed; do
 
5414
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5415
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
5416
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
5417
      fi
 
5418
    done
 
5419
  done
 
5420
done
 
5421
lt_ac_max=0
 
5422
lt_ac_count=0
 
5423
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
5424
# along with /bin/sed that truncates output.
 
5425
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
5426
  test ! -f $lt_ac_sed && continue
 
5427
  cat /dev/null > conftest.in
 
5428
  lt_ac_count=0
 
5429
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
5430
  # Check for GNU sed and select it if it is found.
 
5431
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
5432
    lt_cv_path_SED=$lt_ac_sed
 
5433
    break
 
5434
  fi
 
5435
  while true; do
 
5436
    cat conftest.in conftest.in >conftest.tmp
 
5437
    mv conftest.tmp conftest.in
 
5438
    cp conftest.in conftest.nl
 
5439
    echo >>conftest.nl
 
5440
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
5441
    cmp -s conftest.out conftest.nl || break
 
5442
    # 10000 chars as input seems more than enough
 
5443
    test $lt_ac_count -gt 10 && break
 
5444
    lt_ac_count=`expr $lt_ac_count + 1`
 
5445
    if test $lt_ac_count -gt $lt_ac_max; then
 
5446
      lt_ac_max=$lt_ac_count
 
5447
      lt_cv_path_SED=$lt_ac_sed
 
5448
    fi
 
5449
  done
 
5450
done
 
5451
 
 
5452
fi
 
5453
 
 
5454
SED=$lt_cv_path_SED
 
5455
echo "$as_me:$LINENO: result: $SED" >&5
 
5456
echo "${ECHO_T}$SED" >&6
 
5457
 
 
5458
echo "$as_me:$LINENO: checking for egrep" >&5
 
5459
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
5460
if test "${ac_cv_prog_egrep+set}" = set; then
 
5461
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5462
else
 
5463
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
5464
    then ac_cv_prog_egrep='grep -E'
 
5465
    else ac_cv_prog_egrep='egrep'
 
5466
    fi
 
5467
fi
 
5468
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
5469
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
5470
 EGREP=$ac_cv_prog_egrep
 
5471
 
 
5472
 
 
5473
 
 
5474
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
5475
if test "${with_gnu_ld+set}" = set; then
 
5476
  withval="$with_gnu_ld"
 
5477
  test "$withval" = no || with_gnu_ld=yes
 
5478
else
 
5479
  with_gnu_ld=no
 
5480
fi;
 
5481
ac_prog=ld
 
5482
if test "$GCC" = yes; then
 
5483
  # Check if gcc -print-prog-name=ld gives a path.
 
5484
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
5485
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
5486
  case $host in
 
5487
  *-*-mingw*)
 
5488
    # gcc leaves a trailing carriage return which upsets mingw
 
5489
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5490
  *)
 
5491
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5492
  esac
 
5493
  case $ac_prog in
 
5494
    # Accept absolute paths.
 
5495
    [\\/]* | ?:[\\/]*)
 
5496
      re_direlt='/[^/][^/]*/\.\./'
 
5497
      # Canonicalize the pathname of ld
 
5498
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
5499
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
5500
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
5501
      done
 
5502
      test -z "$LD" && LD="$ac_prog"
 
5503
      ;;
 
5504
  "")
 
5505
    # If it fails, then pretend we aren't using GCC.
 
5506
    ac_prog=ld
 
5507
    ;;
 
5508
  *)
 
5509
    # If it is relative, then search for the first ld in PATH.
 
5510
    with_gnu_ld=unknown
 
5511
    ;;
 
5512
  esac
 
5513
elif test "$with_gnu_ld" = yes; then
 
5514
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
5515
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
5516
else
 
5517
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
5518
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
5519
fi
 
5520
if test "${lt_cv_path_LD+set}" = set; then
 
5521
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5522
else
 
5523
  if test -z "$LD"; then
 
5524
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5525
  for ac_dir in $PATH; do
 
5526
    IFS="$lt_save_ifs"
 
5527
    test -z "$ac_dir" && ac_dir=.
 
5528
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5529
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5530
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5531
      # but apparently some variants of GNU ld only accept -v.
 
5532
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5533
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5534
      *GNU* | *'with BFD'*)
 
5535
        test "$with_gnu_ld" != no && break
 
5536
        ;;
 
5537
      *)
 
5538
        test "$with_gnu_ld" != yes && break
 
5539
        ;;
 
5540
      esac
 
5541
    fi
 
5542
  done
 
5543
  IFS="$lt_save_ifs"
 
5544
else
 
5545
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5546
fi
 
5547
fi
 
5548
 
 
5549
LD="$lt_cv_path_LD"
 
5550
if test -n "$LD"; then
 
5551
  echo "$as_me:$LINENO: result: $LD" >&5
 
5552
echo "${ECHO_T}$LD" >&6
 
5553
else
 
5554
  echo "$as_me:$LINENO: result: no" >&5
 
5555
echo "${ECHO_T}no" >&6
 
5556
fi
 
5557
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
5558
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
5559
   { (exit 1); exit 1; }; }
 
5560
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
5561
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
5562
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
5563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5564
else
 
5565
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5566
case `$LD -v 2>&1 </dev/null` in
 
5567
*GNU* | *'with BFD'*)
 
5568
  lt_cv_prog_gnu_ld=yes
 
5569
  ;;
 
5570
*)
 
5571
  lt_cv_prog_gnu_ld=no
 
5572
  ;;
 
5573
esac
 
5574
fi
 
5575
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
5576
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
5577
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5578
 
 
5579
 
 
5580
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
5581
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
5582
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
5583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5584
else
 
5585
  lt_cv_ld_reload_flag='-r'
 
5586
fi
 
5587
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
5588
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
5589
reload_flag=$lt_cv_ld_reload_flag
 
5590
case $reload_flag in
 
5591
"" | " "*) ;;
 
5592
*) reload_flag=" $reload_flag" ;;
 
5593
esac
 
5594
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5595
case $host_os in
 
5596
  darwin*)
 
5597
    if test "$GCC" = yes; then
 
5598
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5599
    else
 
5600
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5601
    fi
 
5602
    ;;
 
5603
esac
 
5604
 
 
5605
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
5606
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
5607
if test "${lt_cv_path_NM+set}" = set; then
 
5608
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5609
else
 
5610
  if test -n "$NM"; then
 
5611
  # Let the user override the test.
 
5612
  lt_cv_path_NM="$NM"
 
5613
else
 
5614
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5615
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5616
    lt_nm_to_check="$lt_nm_to_check nm"
 
5617
  fi
 
5618
  for lt_tmp_nm in $lt_nm_to_check; do
 
5619
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5620
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5621
      IFS="$lt_save_ifs"
 
5622
      test -z "$ac_dir" && ac_dir=.
 
5623
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5624
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5625
        # Check to see if the nm accepts a BSD-compat flag.
 
5626
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5627
        #   nm: unknown option "B" ignored
 
5628
        # Tru64's nm complains that /dev/null is an invalid object file
 
5629
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5630
        */dev/null* | *'Invalid file or object type'*)
 
5631
          lt_cv_path_NM="$tmp_nm -B"
 
5632
          break
 
5633
          ;;
 
5634
        *)
 
5635
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5636
          */dev/null*)
 
5637
            lt_cv_path_NM="$tmp_nm -p"
 
5638
            break
 
5639
            ;;
 
5640
          *)
 
5641
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5642
            continue # so that we can try to find one that supports BSD flags
 
5643
            ;;
 
5644
          esac
 
5645
          ;;
 
5646
        esac
 
5647
      fi
 
5648
    done
 
5649
    IFS="$lt_save_ifs"
 
5650
  done
 
5651
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
5652
fi
 
5653
fi
 
5654
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
5655
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
5656
NM="$lt_cv_path_NM"
 
5657
 
 
5658
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
5659
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
5660
LN_S=$as_ln_s
 
5661
if test "$LN_S" = "ln -s"; then
 
5662
  echo "$as_me:$LINENO: result: yes" >&5
 
5663
echo "${ECHO_T}yes" >&6
 
5664
else
 
5665
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
5666
echo "${ECHO_T}no, using $LN_S" >&6
 
5667
fi
 
5668
 
 
5669
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
5670
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
5671
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
5672
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5673
else
 
5674
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5675
lt_cv_file_magic_test_file=
 
5676
lt_cv_deplibs_check_method='unknown'
 
5677
# Need to set the preceding variable on all platforms that support
 
5678
# interlibrary dependencies.
 
5679
# 'none' -- dependencies not supported.
 
5680
# `unknown' -- same as none, but documents that we really don't know.
 
5681
# 'pass_all' -- all dependencies passed with no checks.
 
5682
# 'test_compile' -- check by making test program.
 
5683
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5684
# which responds to the $file_magic_cmd with a given extended regex.
 
5685
# If you have `file' or equivalent on your system and you're not sure
 
5686
# whether `pass_all' will *always* work, you probably want this one.
 
5687
 
 
5688
case $host_os in
 
5689
aix4* | aix5*)
 
5690
  lt_cv_deplibs_check_method=pass_all
 
5691
  ;;
 
5692
 
 
5693
beos*)
 
5694
  lt_cv_deplibs_check_method=pass_all
 
5695
  ;;
 
5696
 
 
5697
bsdi[45]*)
 
5698
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5699
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5700
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5701
  ;;
 
5702
 
 
5703
cygwin*)
 
5704
  # func_win32_libid is a shell function defined in ltmain.sh
 
5705
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5706
  lt_cv_file_magic_cmd='func_win32_libid'
 
5707
  ;;
 
5708
 
 
5709
mingw* | pw32*)
 
5710
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5711
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
5712
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5713
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5714
  ;;
 
5715
 
 
5716
darwin* | rhapsody*)
 
5717
  lt_cv_deplibs_check_method=pass_all
 
5718
  ;;
 
5719
 
 
5720
freebsd* | kfreebsd*-gnu | dragonfly*)
 
5721
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5722
    case $host_cpu in
 
5723
    i*86 )
 
5724
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5725
      # Let's accept both of them until this is cleared up.
 
5726
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5727
      lt_cv_file_magic_cmd=/usr/bin/file
 
5728
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5729
      ;;
 
5730
    esac
 
5731
  else
 
5732
    lt_cv_deplibs_check_method=pass_all
 
5733
  fi
 
5734
  ;;
 
5735
 
 
5736
gnu*)
 
5737
  lt_cv_deplibs_check_method=pass_all
 
5738
  ;;
 
5739
 
 
5740
hpux10.20* | hpux11*)
 
5741
  lt_cv_file_magic_cmd=/usr/bin/file
 
5742
  case $host_cpu in
 
5743
  ia64*)
 
5744
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5745
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5746
    ;;
 
5747
  hppa*64*)
 
5748
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
5749
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5750
    ;;
 
5751
  *)
 
5752
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5753
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5754
    ;;
 
5755
  esac
 
5756
  ;;
 
5757
 
 
5758
interix3*)
 
5759
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5760
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5761
  ;;
 
5762
 
 
5763
irix5* | irix6* | nonstopux*)
 
5764
  case $LD in
 
5765
  *-32|*"-32 ") libmagic=32-bit;;
 
5766
  *-n32|*"-n32 ") libmagic=N32;;
 
5767
  *-64|*"-64 ") libmagic=64-bit;;
 
5768
  *) libmagic=never-match;;
 
5769
  esac
 
5770
  lt_cv_deplibs_check_method=pass_all
 
5771
  ;;
 
5772
 
 
5773
# This must be Linux ELF.
 
5774
linux*)
 
5775
  lt_cv_deplibs_check_method=pass_all
 
5776
  ;;
 
5777
 
 
5778
netbsd*)
 
5779
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5780
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5781
  else
 
5782
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5783
  fi
 
5784
  ;;
 
5785
 
 
5786
newos6*)
 
5787
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5788
  lt_cv_file_magic_cmd=/usr/bin/file
 
5789
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5790
  ;;
 
5791
 
 
5792
nto-qnx*)
 
5793
  lt_cv_deplibs_check_method=unknown
 
5794
  ;;
 
5795
 
 
5796
openbsd*)
 
5797
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5798
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5799
  else
 
5800
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5801
  fi
 
5802
  ;;
 
5803
 
 
5804
osf3* | osf4* | osf5*)
 
5805
  lt_cv_deplibs_check_method=pass_all
 
5806
  ;;
 
5807
 
 
5808
solaris*)
 
5809
  lt_cv_deplibs_check_method=pass_all
 
5810
  ;;
 
5811
 
 
5812
sysv4 | sysv4.3*)
 
5813
  case $host_vendor in
 
5814
  motorola)
 
5815
    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]'
 
5816
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5817
    ;;
 
5818
  ncr)
 
5819
    lt_cv_deplibs_check_method=pass_all
 
5820
    ;;
 
5821
  sequent)
 
5822
    lt_cv_file_magic_cmd='/bin/file'
 
5823
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5824
    ;;
 
5825
  sni)
 
5826
    lt_cv_file_magic_cmd='/bin/file'
 
5827
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5828
    lt_cv_file_magic_test_file=/lib/libc.so
 
5829
    ;;
 
5830
  siemens)
 
5831
    lt_cv_deplibs_check_method=pass_all
 
5832
    ;;
 
5833
  pc)
 
5834
    lt_cv_deplibs_check_method=pass_all
 
5835
    ;;
 
5836
  esac
 
5837
  ;;
 
5838
 
 
5839
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5840
  lt_cv_deplibs_check_method=pass_all
 
5841
  ;;
 
5842
esac
 
5843
 
 
5844
fi
 
5845
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
5846
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
5847
file_magic_cmd=$lt_cv_file_magic_cmd
 
5848
deplibs_check_method=$lt_cv_deplibs_check_method
 
5849
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5850
 
 
5851
 
 
5852
 
 
5853
 
 
5854
# If no C compiler was specified, use CC.
 
5855
LTCC=${LTCC-"$CC"}
 
5856
 
 
5857
# If no C compiler flags were specified, use CFLAGS.
 
5858
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5859
 
 
5860
# Allow CC to be a program name with arguments.
 
5861
compiler=$CC
 
5862
 
 
5863
 
 
5864
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5865
if test "${enable_libtool_lock+set}" = set; then
 
5866
  enableval="$enable_libtool_lock"
 
5867
 
 
5868
fi;
 
5869
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5870
 
 
5871
# Some flags need to be propagated to the compiler or linker for good
 
5872
# libtool support.
 
5873
case $host in
 
5874
ia64-*-hpux*)
 
5875
  # Find out which ABI we are using.
 
5876
  echo 'int i;' > conftest.$ac_ext
 
5877
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5878
  (eval $ac_compile) 2>&5
 
5879
  ac_status=$?
 
5880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5881
  (exit $ac_status); }; then
 
5882
    case `/usr/bin/file conftest.$ac_objext` in
 
5883
    *ELF-32*)
 
5884
      HPUX_IA64_MODE="32"
 
5885
      ;;
 
5886
    *ELF-64*)
 
5887
      HPUX_IA64_MODE="64"
 
5888
      ;;
 
5889
    esac
 
5890
  fi
 
5891
  rm -rf conftest*
 
5892
  ;;
 
5893
*-*-irix6*)
 
5894
  # Find out which ABI we are using.
 
5895
  echo '#line 5895 "configure"' > conftest.$ac_ext
 
5896
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5897
  (eval $ac_compile) 2>&5
 
5898
  ac_status=$?
 
5899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5900
  (exit $ac_status); }; then
 
5901
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
5902
    case `/usr/bin/file conftest.$ac_objext` in
 
5903
    *32-bit*)
 
5904
      LD="${LD-ld} -melf32bsmip"
 
5905
      ;;
 
5906
    *N32*)
 
5907
      LD="${LD-ld} -melf32bmipn32"
 
5908
      ;;
 
5909
    *64-bit*)
 
5910
      LD="${LD-ld} -melf64bmip"
 
5911
      ;;
 
5912
    esac
 
5913
   else
 
5914
    case `/usr/bin/file conftest.$ac_objext` in
 
5915
    *32-bit*)
 
5916
      LD="${LD-ld} -32"
 
5917
      ;;
 
5918
    *N32*)
 
5919
      LD="${LD-ld} -n32"
 
5920
      ;;
 
5921
    *64-bit*)
 
5922
      LD="${LD-ld} -64"
 
5923
      ;;
 
5924
    esac
 
5925
   fi
 
5926
  fi
 
5927
  rm -rf conftest*
 
5928
  ;;
 
5929
 
 
5930
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
5931
  # Find out which ABI we are using.
 
5932
  echo 'int i;' > conftest.$ac_ext
 
5933
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5934
  (eval $ac_compile) 2>&5
 
5935
  ac_status=$?
 
5936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5937
  (exit $ac_status); }; then
 
5938
    case `/usr/bin/file conftest.o` in
 
5939
    *32-bit*)
 
5940
      case $host in
 
5941
        x86_64-*linux*)
 
5942
          LD="${LD-ld} -m elf_i386"
 
5943
          ;;
 
5944
        ppc64-*linux*|powerpc64-*linux*)
 
5945
          LD="${LD-ld} -m elf32ppclinux"
 
5946
          ;;
 
5947
        s390x-*linux*)
 
5948
          LD="${LD-ld} -m elf_s390"
 
5949
          ;;
 
5950
        sparc64-*linux*)
 
5951
          LD="${LD-ld} -m elf32_sparc"
 
5952
          ;;
 
5953
      esac
 
5954
      ;;
 
5955
    *64-bit*)
 
5956
      case $host in
 
5957
        x86_64-*linux*)
 
5958
          LD="${LD-ld} -m elf_x86_64"
 
5959
          ;;
 
5960
        ppc*-*linux*|powerpc*-*linux*)
 
5961
          LD="${LD-ld} -m elf64ppc"
 
5962
          ;;
 
5963
        s390*-*linux*)
 
5964
          LD="${LD-ld} -m elf64_s390"
 
5965
          ;;
 
5966
        sparc*-*linux*)
 
5967
          LD="${LD-ld} -m elf64_sparc"
 
5968
          ;;
 
5969
      esac
 
5970
      ;;
 
5971
    esac
 
5972
  fi
 
5973
  rm -rf conftest*
 
5974
  ;;
 
5975
 
 
5976
*-*-sco3.2v5*)
 
5977
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5978
  SAVE_CFLAGS="$CFLAGS"
 
5979
  CFLAGS="$CFLAGS -belf"
 
5980
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5981
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
5982
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5983
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5984
else
 
5985
  ac_ext=c
 
5986
ac_cpp='$CPP $CPPFLAGS'
 
5987
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5988
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5989
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5990
 
 
5991
     cat >conftest.$ac_ext <<_ACEOF
 
5992
/* confdefs.h.  */
 
5993
_ACEOF
 
5994
cat confdefs.h >>conftest.$ac_ext
 
5995
cat >>conftest.$ac_ext <<_ACEOF
 
5996
/* end confdefs.h.  */
 
5997
 
 
5998
int
 
5999
main ()
 
6000
{
 
6001
 
 
6002
  ;
 
6003
  return 0;
 
6004
}
 
6005
_ACEOF
 
6006
rm -f conftest.$ac_objext conftest$ac_exeext
 
6007
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6008
  (eval $ac_link) 2>conftest.er1
 
6009
  ac_status=$?
 
6010
  grep -v '^ *+' conftest.er1 >conftest.err
 
6011
  rm -f conftest.er1
 
6012
  cat conftest.err >&5
 
6013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6014
  (exit $ac_status); } &&
 
6015
         { ac_try='test -z "$ac_c_werror_flag"
 
6016
                         || test ! -s conftest.err'
 
6017
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6018
  (eval $ac_try) 2>&5
 
6019
  ac_status=$?
 
6020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6021
  (exit $ac_status); }; } &&
 
6022
         { ac_try='test -s conftest$ac_exeext'
 
6023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6024
  (eval $ac_try) 2>&5
 
6025
  ac_status=$?
 
6026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6027
  (exit $ac_status); }; }; then
 
6028
  lt_cv_cc_needs_belf=yes
 
6029
else
 
6030
  echo "$as_me: failed program was:" >&5
 
6031
sed 's/^/| /' conftest.$ac_ext >&5
 
6032
 
 
6033
lt_cv_cc_needs_belf=no
 
6034
fi
 
6035
rm -f conftest.err conftest.$ac_objext \
 
6036
      conftest$ac_exeext conftest.$ac_ext
 
6037
     ac_ext=c
 
6038
ac_cpp='$CPP $CPPFLAGS'
 
6039
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6040
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6041
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6042
 
 
6043
fi
 
6044
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
6045
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
6046
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
6047
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
6048
    CFLAGS="$SAVE_CFLAGS"
 
6049
  fi
 
6050
  ;;
 
6051
sparc*-*solaris*)
 
6052
  # Find out which ABI we are using.
 
6053
  echo 'int i;' > conftest.$ac_ext
 
6054
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6055
  (eval $ac_compile) 2>&5
 
6056
  ac_status=$?
 
6057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6058
  (exit $ac_status); }; then
 
6059
    case `/usr/bin/file conftest.o` in
 
6060
    *64-bit*)
 
6061
      case $lt_cv_prog_gnu_ld in
 
6062
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
6063
      *)    LD="${LD-ld} -64" ;;
 
6064
      esac
 
6065
      ;;
 
6066
    esac
 
6067
  fi
 
6068
  rm -rf conftest*
 
6069
  ;;
 
6070
 
 
6071
 
 
6072
esac
 
6073
 
 
6074
need_locks="$enable_libtool_lock"
 
6075
 
 
6076
 
 
6077
 
 
6078
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
6079
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
6080
if test "${ac_cv_header_stdc+set}" = set; then
 
6081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6082
else
 
6083
  cat >conftest.$ac_ext <<_ACEOF
 
6084
/* confdefs.h.  */
 
6085
_ACEOF
 
6086
cat confdefs.h >>conftest.$ac_ext
 
6087
cat >>conftest.$ac_ext <<_ACEOF
 
6088
/* end confdefs.h.  */
 
6089
#include <stdlib.h>
 
6090
#include <stdarg.h>
 
6091
#include <string.h>
 
6092
#include <float.h>
 
6093
 
 
6094
int
 
6095
main ()
 
6096
{
 
6097
 
 
6098
  ;
 
6099
  return 0;
 
6100
}
 
6101
_ACEOF
 
6102
rm -f conftest.$ac_objext
 
6103
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6104
  (eval $ac_compile) 2>conftest.er1
 
6105
  ac_status=$?
 
6106
  grep -v '^ *+' conftest.er1 >conftest.err
 
6107
  rm -f conftest.er1
 
6108
  cat conftest.err >&5
 
6109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6110
  (exit $ac_status); } &&
 
6111
         { ac_try='test -z "$ac_c_werror_flag"
 
6112
                         || test ! -s conftest.err'
 
6113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6114
  (eval $ac_try) 2>&5
 
6115
  ac_status=$?
 
6116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6117
  (exit $ac_status); }; } &&
 
6118
         { ac_try='test -s conftest.$ac_objext'
 
6119
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6120
  (eval $ac_try) 2>&5
 
6121
  ac_status=$?
 
6122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6123
  (exit $ac_status); }; }; then
 
6124
  ac_cv_header_stdc=yes
 
6125
else
 
6126
  echo "$as_me: failed program was:" >&5
 
6127
sed 's/^/| /' conftest.$ac_ext >&5
 
6128
 
 
6129
ac_cv_header_stdc=no
 
6130
fi
 
6131
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6132
 
 
6133
if test $ac_cv_header_stdc = yes; then
 
6134
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
6135
  cat >conftest.$ac_ext <<_ACEOF
 
6136
/* confdefs.h.  */
 
6137
_ACEOF
 
6138
cat confdefs.h >>conftest.$ac_ext
 
6139
cat >>conftest.$ac_ext <<_ACEOF
 
6140
/* end confdefs.h.  */
 
6141
#include <string.h>
 
6142
 
 
6143
_ACEOF
 
6144
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6145
  $EGREP "memchr" >/dev/null 2>&1; then
 
6146
  :
 
6147
else
 
6148
  ac_cv_header_stdc=no
 
6149
fi
 
6150
rm -f conftest*
 
6151
 
 
6152
fi
 
6153
 
 
6154
if test $ac_cv_header_stdc = yes; then
 
6155
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
6156
  cat >conftest.$ac_ext <<_ACEOF
 
6157
/* confdefs.h.  */
 
6158
_ACEOF
 
6159
cat confdefs.h >>conftest.$ac_ext
 
6160
cat >>conftest.$ac_ext <<_ACEOF
 
6161
/* end confdefs.h.  */
 
6162
#include <stdlib.h>
 
6163
 
 
6164
_ACEOF
 
6165
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6166
  $EGREP "free" >/dev/null 2>&1; then
 
6167
  :
 
6168
else
 
6169
  ac_cv_header_stdc=no
 
6170
fi
 
6171
rm -f conftest*
 
6172
 
 
6173
fi
 
6174
 
 
6175
if test $ac_cv_header_stdc = yes; then
 
6176
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
6177
  if test "$cross_compiling" = yes; then
 
6178
  :
 
6179
else
 
6180
  cat >conftest.$ac_ext <<_ACEOF
 
6181
/* confdefs.h.  */
 
6182
_ACEOF
 
6183
cat confdefs.h >>conftest.$ac_ext
 
6184
cat >>conftest.$ac_ext <<_ACEOF
 
6185
/* end confdefs.h.  */
 
6186
#include <ctype.h>
 
6187
#if ((' ' & 0x0FF) == 0x020)
 
6188
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
6189
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
6190
#else
 
6191
# define ISLOWER(c) \
 
6192
                   (('a' <= (c) && (c) <= 'i') \
 
6193
                     || ('j' <= (c) && (c) <= 'r') \
 
6194
                     || ('s' <= (c) && (c) <= 'z'))
 
6195
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
6196
#endif
 
6197
 
 
6198
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
6199
int
 
6200
main ()
 
6201
{
 
6202
  int i;
 
6203
  for (i = 0; i < 256; i++)
 
6204
    if (XOR (islower (i), ISLOWER (i))
 
6205
        || toupper (i) != TOUPPER (i))
 
6206
      exit(2);
 
6207
  exit (0);
 
6208
}
 
6209
_ACEOF
 
6210
rm -f conftest$ac_exeext
 
6211
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6212
  (eval $ac_link) 2>&5
 
6213
  ac_status=$?
 
6214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6215
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6216
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6217
  (eval $ac_try) 2>&5
 
6218
  ac_status=$?
 
6219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6220
  (exit $ac_status); }; }; then
 
6221
  :
 
6222
else
 
6223
  echo "$as_me: program exited with status $ac_status" >&5
 
6224
echo "$as_me: failed program was:" >&5
 
6225
sed 's/^/| /' conftest.$ac_ext >&5
 
6226
 
 
6227
( exit $ac_status )
 
6228
ac_cv_header_stdc=no
 
6229
fi
 
6230
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6231
fi
 
6232
fi
 
6233
fi
 
6234
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
6235
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
6236
if test $ac_cv_header_stdc = yes; then
 
6237
 
 
6238
cat >>confdefs.h <<\_ACEOF
 
6239
#define STDC_HEADERS 1
 
6240
_ACEOF
 
6241
 
 
6242
fi
 
6243
 
 
6244
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
6245
 
 
6246
 
 
6247
 
 
6248
 
 
6249
 
 
6250
 
 
6251
 
 
6252
 
 
6253
 
 
6254
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
6255
                  inttypes.h stdint.h unistd.h
 
6256
do
 
6257
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6258
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6259
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6260
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6262
else
 
6263
  cat >conftest.$ac_ext <<_ACEOF
 
6264
/* confdefs.h.  */
 
6265
_ACEOF
 
6266
cat confdefs.h >>conftest.$ac_ext
 
6267
cat >>conftest.$ac_ext <<_ACEOF
 
6268
/* end confdefs.h.  */
 
6269
$ac_includes_default
 
6270
 
 
6271
#include <$ac_header>
 
6272
_ACEOF
 
6273
rm -f conftest.$ac_objext
 
6274
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6275
  (eval $ac_compile) 2>conftest.er1
 
6276
  ac_status=$?
 
6277
  grep -v '^ *+' conftest.er1 >conftest.err
 
6278
  rm -f conftest.er1
 
6279
  cat conftest.err >&5
 
6280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6281
  (exit $ac_status); } &&
 
6282
         { ac_try='test -z "$ac_c_werror_flag"
 
6283
                         || test ! -s conftest.err'
 
6284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6285
  (eval $ac_try) 2>&5
 
6286
  ac_status=$?
 
6287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6288
  (exit $ac_status); }; } &&
 
6289
         { ac_try='test -s conftest.$ac_objext'
 
6290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6291
  (eval $ac_try) 2>&5
 
6292
  ac_status=$?
 
6293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6294
  (exit $ac_status); }; }; then
 
6295
  eval "$as_ac_Header=yes"
 
6296
else
 
6297
  echo "$as_me: failed program was:" >&5
 
6298
sed 's/^/| /' conftest.$ac_ext >&5
 
6299
 
 
6300
eval "$as_ac_Header=no"
 
6301
fi
 
6302
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6303
fi
 
6304
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6305
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6306
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6307
  cat >>confdefs.h <<_ACEOF
 
6308
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6309
_ACEOF
 
6310
 
 
6311
fi
 
6312
 
 
6313
done
 
6314
 
 
6315
 
 
6316
 
 
6317
for ac_header in dlfcn.h
 
6318
do
 
6319
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6320
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6321
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6322
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6323
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6324
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6325
fi
 
6326
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6327
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6328
else
 
6329
  # Is the header compilable?
 
6330
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6331
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6332
cat >conftest.$ac_ext <<_ACEOF
 
6333
/* confdefs.h.  */
 
6334
_ACEOF
 
6335
cat confdefs.h >>conftest.$ac_ext
 
6336
cat >>conftest.$ac_ext <<_ACEOF
 
6337
/* end confdefs.h.  */
 
6338
$ac_includes_default
 
6339
#include <$ac_header>
 
6340
_ACEOF
 
6341
rm -f conftest.$ac_objext
 
6342
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6343
  (eval $ac_compile) 2>conftest.er1
 
6344
  ac_status=$?
 
6345
  grep -v '^ *+' conftest.er1 >conftest.err
 
6346
  rm -f conftest.er1
 
6347
  cat conftest.err >&5
 
6348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6349
  (exit $ac_status); } &&
 
6350
         { ac_try='test -z "$ac_c_werror_flag"
 
6351
                         || test ! -s conftest.err'
 
6352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6353
  (eval $ac_try) 2>&5
 
6354
  ac_status=$?
 
6355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6356
  (exit $ac_status); }; } &&
 
6357
         { ac_try='test -s conftest.$ac_objext'
 
6358
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6359
  (eval $ac_try) 2>&5
 
6360
  ac_status=$?
 
6361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6362
  (exit $ac_status); }; }; then
 
6363
  ac_header_compiler=yes
 
6364
else
 
6365
  echo "$as_me: failed program was:" >&5
 
6366
sed 's/^/| /' conftest.$ac_ext >&5
 
6367
 
 
6368
ac_header_compiler=no
 
6369
fi
 
6370
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6371
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6372
echo "${ECHO_T}$ac_header_compiler" >&6
 
6373
 
 
6374
# Is the header present?
 
6375
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6376
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6377
cat >conftest.$ac_ext <<_ACEOF
 
6378
/* confdefs.h.  */
 
6379
_ACEOF
 
6380
cat confdefs.h >>conftest.$ac_ext
 
6381
cat >>conftest.$ac_ext <<_ACEOF
 
6382
/* end confdefs.h.  */
 
6383
#include <$ac_header>
 
6384
_ACEOF
 
6385
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6386
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6387
  ac_status=$?
 
6388
  grep -v '^ *+' conftest.er1 >conftest.err
 
6389
  rm -f conftest.er1
 
6390
  cat conftest.err >&5
 
6391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6392
  (exit $ac_status); } >/dev/null; then
 
6393
  if test -s conftest.err; then
 
6394
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6395
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6396
  else
 
6397
    ac_cpp_err=
 
6398
  fi
 
6399
else
 
6400
  ac_cpp_err=yes
 
6401
fi
 
6402
if test -z "$ac_cpp_err"; then
 
6403
  ac_header_preproc=yes
 
6404
else
 
6405
  echo "$as_me: failed program was:" >&5
 
6406
sed 's/^/| /' conftest.$ac_ext >&5
 
6407
 
 
6408
  ac_header_preproc=no
 
6409
fi
 
6410
rm -f conftest.err conftest.$ac_ext
 
6411
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6412
echo "${ECHO_T}$ac_header_preproc" >&6
 
6413
 
 
6414
# So?  What about this header?
 
6415
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6416
  yes:no: )
 
6417
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6418
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6419
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6420
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6421
    ac_header_preproc=yes
 
6422
    ;;
 
6423
  no:yes:* )
 
6424
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6425
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6426
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6427
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6428
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6429
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6430
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6431
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6432
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6433
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6434
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6435
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6436
    (
 
6437
      cat <<\_ASBOX
 
6438
## ------------------------------------------ ##
 
6439
## Report this to the AC_PACKAGE_NAME lists.  ##
 
6440
## ------------------------------------------ ##
 
6441
_ASBOX
 
6442
    ) |
 
6443
      sed "s/^/$as_me: WARNING:     /" >&2
 
6444
    ;;
 
6445
esac
 
6446
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6447
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6448
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6449
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6450
else
 
6451
  eval "$as_ac_Header=\$ac_header_preproc"
 
6452
fi
 
6453
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6454
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6455
 
 
6456
fi
 
6457
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6458
  cat >>confdefs.h <<_ACEOF
 
6459
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6460
_ACEOF
 
6461
 
 
6462
fi
 
6463
 
 
6464
done
 
6465
 
 
6466
 
 
6467
 
 
6468
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6469
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6470
    (test "X$CXX" != "Xg++"))) ; then
 
6471
  ac_ext=cc
 
6472
ac_cpp='$CXXCPP $CPPFLAGS'
 
6473
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6474
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6475
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6476
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6477
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
6478
if test -z "$CXXCPP"; then
 
6479
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6481
else
 
6482
      # Double quotes because CXXCPP needs to be expanded
 
6483
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6484
    do
 
6485
      ac_preproc_ok=false
 
6486
for ac_cxx_preproc_warn_flag in '' yes
 
6487
do
 
6488
  # Use a header file that comes with gcc, so configuring glibc
 
6489
  # with a fresh cross-compiler works.
 
6490
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6491
  # <limits.h> exists even on freestanding compilers.
 
6492
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6493
  # not just through cpp. "Syntax error" is here to catch this case.
 
6494
  cat >conftest.$ac_ext <<_ACEOF
 
6495
/* confdefs.h.  */
 
6496
_ACEOF
 
6497
cat confdefs.h >>conftest.$ac_ext
 
6498
cat >>conftest.$ac_ext <<_ACEOF
 
6499
/* end confdefs.h.  */
 
6500
#ifdef __STDC__
 
6501
# include <limits.h>
 
6502
#else
 
6503
# include <assert.h>
 
6504
#endif
 
6505
                     Syntax error
 
6506
_ACEOF
 
6507
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6508
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6509
  ac_status=$?
 
6510
  grep -v '^ *+' conftest.er1 >conftest.err
 
6511
  rm -f conftest.er1
 
6512
  cat conftest.err >&5
 
6513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6514
  (exit $ac_status); } >/dev/null; then
 
6515
  if test -s conftest.err; then
 
6516
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6517
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6518
  else
 
6519
    ac_cpp_err=
 
6520
  fi
 
6521
else
 
6522
  ac_cpp_err=yes
 
6523
fi
 
6524
if test -z "$ac_cpp_err"; then
 
6525
  :
 
6526
else
 
6527
  echo "$as_me: failed program was:" >&5
 
6528
sed 's/^/| /' conftest.$ac_ext >&5
 
6529
 
 
6530
  # Broken: fails on valid input.
 
6531
continue
 
6532
fi
 
6533
rm -f conftest.err conftest.$ac_ext
 
6534
 
 
6535
  # OK, works on sane cases.  Now check whether non-existent headers
 
6536
  # can be detected and how.
 
6537
  cat >conftest.$ac_ext <<_ACEOF
 
6538
/* confdefs.h.  */
 
6539
_ACEOF
 
6540
cat confdefs.h >>conftest.$ac_ext
 
6541
cat >>conftest.$ac_ext <<_ACEOF
 
6542
/* end confdefs.h.  */
 
6543
#include <ac_nonexistent.h>
 
6544
_ACEOF
 
6545
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6546
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6547
  ac_status=$?
 
6548
  grep -v '^ *+' conftest.er1 >conftest.err
 
6549
  rm -f conftest.er1
 
6550
  cat conftest.err >&5
 
6551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6552
  (exit $ac_status); } >/dev/null; then
 
6553
  if test -s conftest.err; then
 
6554
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6555
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6556
  else
 
6557
    ac_cpp_err=
 
6558
  fi
 
6559
else
 
6560
  ac_cpp_err=yes
 
6561
fi
 
6562
if test -z "$ac_cpp_err"; then
 
6563
  # Broken: success on invalid input.
 
6564
continue
 
6565
else
 
6566
  echo "$as_me: failed program was:" >&5
 
6567
sed 's/^/| /' conftest.$ac_ext >&5
 
6568
 
 
6569
  # Passes both tests.
 
6570
ac_preproc_ok=:
 
6571
break
 
6572
fi
 
6573
rm -f conftest.err conftest.$ac_ext
 
6574
 
 
6575
done
 
6576
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6577
rm -f conftest.err conftest.$ac_ext
 
6578
if $ac_preproc_ok; then
 
6579
  break
 
6580
fi
 
6581
 
 
6582
    done
 
6583
    ac_cv_prog_CXXCPP=$CXXCPP
 
6584
 
 
6585
fi
 
6586
  CXXCPP=$ac_cv_prog_CXXCPP
 
6587
else
 
6588
  ac_cv_prog_CXXCPP=$CXXCPP
 
6589
fi
 
6590
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6591
echo "${ECHO_T}$CXXCPP" >&6
 
6592
ac_preproc_ok=false
 
6593
for ac_cxx_preproc_warn_flag in '' yes
 
6594
do
 
6595
  # Use a header file that comes with gcc, so configuring glibc
 
6596
  # with a fresh cross-compiler works.
 
6597
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6598
  # <limits.h> exists even on freestanding compilers.
 
6599
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6600
  # not just through cpp. "Syntax error" is here to catch this case.
 
6601
  cat >conftest.$ac_ext <<_ACEOF
 
6602
/* confdefs.h.  */
 
6603
_ACEOF
 
6604
cat confdefs.h >>conftest.$ac_ext
 
6605
cat >>conftest.$ac_ext <<_ACEOF
 
6606
/* end confdefs.h.  */
 
6607
#ifdef __STDC__
 
6608
# include <limits.h>
 
6609
#else
 
6610
# include <assert.h>
 
6611
#endif
 
6612
                     Syntax error
 
6613
_ACEOF
 
6614
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6615
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6616
  ac_status=$?
 
6617
  grep -v '^ *+' conftest.er1 >conftest.err
 
6618
  rm -f conftest.er1
 
6619
  cat conftest.err >&5
 
6620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6621
  (exit $ac_status); } >/dev/null; then
 
6622
  if test -s conftest.err; then
 
6623
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6624
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6625
  else
 
6626
    ac_cpp_err=
 
6627
  fi
 
6628
else
 
6629
  ac_cpp_err=yes
 
6630
fi
 
6631
if test -z "$ac_cpp_err"; then
 
6632
  :
 
6633
else
 
6634
  echo "$as_me: failed program was:" >&5
 
6635
sed 's/^/| /' conftest.$ac_ext >&5
 
6636
 
 
6637
  # Broken: fails on valid input.
 
6638
continue
 
6639
fi
 
6640
rm -f conftest.err conftest.$ac_ext
 
6641
 
 
6642
  # OK, works on sane cases.  Now check whether non-existent headers
 
6643
  # can be detected and how.
 
6644
  cat >conftest.$ac_ext <<_ACEOF
 
6645
/* confdefs.h.  */
 
6646
_ACEOF
 
6647
cat confdefs.h >>conftest.$ac_ext
 
6648
cat >>conftest.$ac_ext <<_ACEOF
 
6649
/* end confdefs.h.  */
 
6650
#include <ac_nonexistent.h>
 
6651
_ACEOF
 
6652
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6653
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6654
  ac_status=$?
 
6655
  grep -v '^ *+' conftest.er1 >conftest.err
 
6656
  rm -f conftest.er1
 
6657
  cat conftest.err >&5
 
6658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6659
  (exit $ac_status); } >/dev/null; then
 
6660
  if test -s conftest.err; then
 
6661
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6662
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6663
  else
 
6664
    ac_cpp_err=
 
6665
  fi
 
6666
else
 
6667
  ac_cpp_err=yes
 
6668
fi
 
6669
if test -z "$ac_cpp_err"; then
 
6670
  # Broken: success on invalid input.
 
6671
continue
 
6672
else
 
6673
  echo "$as_me: failed program was:" >&5
 
6674
sed 's/^/| /' conftest.$ac_ext >&5
 
6675
 
 
6676
  # Passes both tests.
 
6677
ac_preproc_ok=:
 
6678
break
 
6679
fi
 
6680
rm -f conftest.err conftest.$ac_ext
 
6681
 
 
6682
done
 
6683
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6684
rm -f conftest.err conftest.$ac_ext
 
6685
if $ac_preproc_ok; then
 
6686
  :
 
6687
else
 
6688
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6689
See \`config.log' for more details." >&5
 
6690
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6691
See \`config.log' for more details." >&2;}
 
6692
   { (exit 1); exit 1; }; }
 
6693
fi
 
6694
 
 
6695
ac_ext=cc
 
6696
ac_cpp='$CXXCPP $CPPFLAGS'
 
6697
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6698
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6699
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6700
 
 
6701
fi
 
6702
 
 
6703
 
 
6704
ac_ext=f
 
6705
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6706
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6707
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6708
if test -n "$ac_tool_prefix"; then
 
6709
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6710
  do
 
6711
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6712
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6713
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6714
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6715
if test "${ac_cv_prog_F77+set}" = set; then
 
6716
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6717
else
 
6718
  if test -n "$F77"; then
 
6719
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6720
else
 
6721
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6722
for as_dir in $PATH
 
6723
do
 
6724
  IFS=$as_save_IFS
 
6725
  test -z "$as_dir" && as_dir=.
 
6726
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6727
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6728
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6729
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6730
    break 2
 
6731
  fi
 
6732
done
 
6733
done
 
6734
 
 
6735
fi
 
6736
fi
 
6737
F77=$ac_cv_prog_F77
 
6738
if test -n "$F77"; then
 
6739
  echo "$as_me:$LINENO: result: $F77" >&5
 
6740
echo "${ECHO_T}$F77" >&6
 
6741
else
 
6742
  echo "$as_me:$LINENO: result: no" >&5
 
6743
echo "${ECHO_T}no" >&6
 
6744
fi
 
6745
 
 
6746
    test -n "$F77" && break
 
6747
  done
 
6748
fi
 
6749
if test -z "$F77"; then
 
6750
  ac_ct_F77=$F77
 
6751
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6752
do
 
6753
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6754
set dummy $ac_prog; ac_word=$2
 
6755
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6756
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6757
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6758
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6759
else
 
6760
  if test -n "$ac_ct_F77"; then
 
6761
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6762
else
 
6763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6764
for as_dir in $PATH
 
6765
do
 
6766
  IFS=$as_save_IFS
 
6767
  test -z "$as_dir" && as_dir=.
 
6768
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6769
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6770
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6771
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6772
    break 2
 
6773
  fi
 
6774
done
 
6775
done
 
6776
 
 
6777
fi
 
6778
fi
 
6779
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6780
if test -n "$ac_ct_F77"; then
 
6781
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6782
echo "${ECHO_T}$ac_ct_F77" >&6
 
6783
else
 
6784
  echo "$as_me:$LINENO: result: no" >&5
 
6785
echo "${ECHO_T}no" >&6
 
6786
fi
 
6787
 
 
6788
  test -n "$ac_ct_F77" && break
 
6789
done
 
6790
 
 
6791
  F77=$ac_ct_F77
 
6792
fi
 
6793
 
 
6794
 
 
6795
# Provide some information about the compiler.
 
6796
echo "$as_me:6796:" \
 
6797
     "checking for Fortran 77 compiler version" >&5
 
6798
ac_compiler=`set X $ac_compile; echo $2`
 
6799
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
6800
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
6801
  ac_status=$?
 
6802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6803
  (exit $ac_status); }
 
6804
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
6805
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
6806
  ac_status=$?
 
6807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6808
  (exit $ac_status); }
 
6809
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
6810
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6811
  ac_status=$?
 
6812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6813
  (exit $ac_status); }
 
6814
rm -f a.out
 
6815
 
 
6816
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6817
# input file.  (Note that this only needs to work for GNU compilers.)
 
6818
ac_save_ext=$ac_ext
 
6819
ac_ext=F
 
6820
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6821
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
6822
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6823
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6824
else
 
6825
  cat >conftest.$ac_ext <<_ACEOF
 
6826
      program main
 
6827
#ifndef __GNUC__
 
6828
       choke me
 
6829
#endif
 
6830
 
 
6831
      end
 
6832
_ACEOF
 
6833
rm -f conftest.$ac_objext
 
6834
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6835
  (eval $ac_compile) 2>conftest.er1
 
6836
  ac_status=$?
 
6837
  grep -v '^ *+' conftest.er1 >conftest.err
 
6838
  rm -f conftest.er1
 
6839
  cat conftest.err >&5
 
6840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6841
  (exit $ac_status); } &&
 
6842
         { ac_try='test -z "$ac_f77_werror_flag"
 
6843
                         || test ! -s conftest.err'
 
6844
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6845
  (eval $ac_try) 2>&5
 
6846
  ac_status=$?
 
6847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6848
  (exit $ac_status); }; } &&
 
6849
         { ac_try='test -s conftest.$ac_objext'
 
6850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6851
  (eval $ac_try) 2>&5
 
6852
  ac_status=$?
 
6853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6854
  (exit $ac_status); }; }; then
 
6855
  ac_compiler_gnu=yes
 
6856
else
 
6857
  echo "$as_me: failed program was:" >&5
 
6858
sed 's/^/| /' conftest.$ac_ext >&5
 
6859
 
 
6860
ac_compiler_gnu=no
 
6861
fi
 
6862
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6863
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6864
 
 
6865
fi
 
6866
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6867
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
6868
ac_ext=$ac_save_ext
 
6869
ac_test_FFLAGS=${FFLAGS+set}
 
6870
ac_save_FFLAGS=$FFLAGS
 
6871
FFLAGS=
 
6872
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6873
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
6874
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6875
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6876
else
 
6877
  FFLAGS=-g
 
6878
cat >conftest.$ac_ext <<_ACEOF
 
6879
      program main
 
6880
 
 
6881
      end
 
6882
_ACEOF
 
6883
rm -f conftest.$ac_objext
 
6884
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6885
  (eval $ac_compile) 2>conftest.er1
 
6886
  ac_status=$?
 
6887
  grep -v '^ *+' conftest.er1 >conftest.err
 
6888
  rm -f conftest.er1
 
6889
  cat conftest.err >&5
 
6890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6891
  (exit $ac_status); } &&
 
6892
         { ac_try='test -z "$ac_f77_werror_flag"
 
6893
                         || test ! -s conftest.err'
 
6894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6895
  (eval $ac_try) 2>&5
 
6896
  ac_status=$?
 
6897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6898
  (exit $ac_status); }; } &&
 
6899
         { ac_try='test -s conftest.$ac_objext'
 
6900
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6901
  (eval $ac_try) 2>&5
 
6902
  ac_status=$?
 
6903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6904
  (exit $ac_status); }; }; then
 
6905
  ac_cv_prog_f77_g=yes
 
6906
else
 
6907
  echo "$as_me: failed program was:" >&5
 
6908
sed 's/^/| /' conftest.$ac_ext >&5
 
6909
 
 
6910
ac_cv_prog_f77_g=no
 
6911
fi
 
6912
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6913
 
 
6914
fi
 
6915
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6916
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
6917
if test "$ac_test_FFLAGS" = set; then
 
6918
  FFLAGS=$ac_save_FFLAGS
 
6919
elif test $ac_cv_prog_f77_g = yes; then
 
6920
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6921
    FFLAGS="-g -O2"
 
6922
  else
 
6923
    FFLAGS="-g"
 
6924
  fi
 
6925
else
 
6926
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6927
    FFLAGS="-O2"
 
6928
  else
 
6929
    FFLAGS=
 
6930
  fi
 
6931
fi
 
6932
 
 
6933
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6934
ac_ext=c
 
6935
ac_cpp='$CPP $CPPFLAGS'
 
6936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6939
 
 
6940
 
 
6941
 
 
6942
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6943
 
 
6944
# find the maximum length of command line arguments
 
6945
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6946
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
6947
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6948
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6949
else
 
6950
    i=0
 
6951
  teststring="ABCD"
 
6952
 
 
6953
  case $build_os in
 
6954
  msdosdjgpp*)
 
6955
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6956
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6957
    # during glob expansion).  Even if it were fixed, the result of this
 
6958
    # check would be larger than it should be.
 
6959
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6960
    ;;
 
6961
 
 
6962
  gnu*)
 
6963
    # Under GNU Hurd, this test is not required because there is
 
6964
    # no limit to the length of command line arguments.
 
6965
    # Libtool will interpret -1 as no limit whatsoever
 
6966
    lt_cv_sys_max_cmd_len=-1;
 
6967
    ;;
 
6968
 
 
6969
  cygwin* | mingw*)
 
6970
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6971
    # about 5 minutes as the teststring grows exponentially.
 
6972
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6973
    # you end up with a "frozen" computer, even though with patience
 
6974
    # the test eventually succeeds (with a max line length of 256k).
 
6975
    # Instead, let's just punt: use the minimum linelength reported by
 
6976
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6977
    lt_cv_sys_max_cmd_len=8192;
 
6978
    ;;
 
6979
 
 
6980
  amigaos*)
 
6981
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6982
    # So we just punt and use a minimum line length of 8192.
 
6983
    lt_cv_sys_max_cmd_len=8192;
 
6984
    ;;
 
6985
 
 
6986
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6987
    # This has been around since 386BSD, at least.  Likely further.
 
6988
    if test -x /sbin/sysctl; then
 
6989
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6990
    elif test -x /usr/sbin/sysctl; then
 
6991
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6992
    else
 
6993
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6994
    fi
 
6995
    # And add a safety zone
 
6996
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6997
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6998
    ;;
 
6999
 
 
7000
  interix*)
 
7001
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
7002
    lt_cv_sys_max_cmd_len=196608
 
7003
    ;;
 
7004
 
 
7005
  osf*)
 
7006
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
7007
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
7008
    # nice to cause kernel panics so lets avoid the loop below.
 
7009
    # First set a reasonable default.
 
7010
    lt_cv_sys_max_cmd_len=16384
 
7011
    #
 
7012
    if test -x /sbin/sysconfig; then
 
7013
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
7014
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
7015
      esac
 
7016
    fi
 
7017
    ;;
 
7018
  sco3.2v5*)
 
7019
    lt_cv_sys_max_cmd_len=102400
 
7020
    ;;
 
7021
  sysv5* | sco5v6* | sysv4.2uw2*)
 
7022
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
7023
    if test -n "$kargmax"; then
 
7024
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
7025
    else
 
7026
      lt_cv_sys_max_cmd_len=32768
 
7027
    fi
 
7028
    ;;
 
7029
  *)
 
7030
    # If test is not a shell built-in, we'll probably end up computing a
 
7031
    # maximum length that is only half of the actual maximum length, but
 
7032
    # we can't tell.
 
7033
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
7034
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
7035
               = "XX$teststring") >/dev/null 2>&1 &&
 
7036
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
7037
            lt_cv_sys_max_cmd_len=$new_result &&
 
7038
            test $i != 17 # 1/2 MB should be enough
 
7039
    do
 
7040
      i=`expr $i + 1`
 
7041
      teststring=$teststring$teststring
 
7042
    done
 
7043
    teststring=
 
7044
    # Add a significant safety factor because C++ compilers can tack on massive
 
7045
    # amounts of additional arguments before passing them to the linker.
 
7046
    # It appears as though 1/2 is a usable value.
 
7047
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
7048
    ;;
 
7049
  esac
 
7050
 
 
7051
fi
 
7052
 
 
7053
if test -n $lt_cv_sys_max_cmd_len ; then
 
7054
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
7055
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
7056
else
 
7057
  echo "$as_me:$LINENO: result: none" >&5
 
7058
echo "${ECHO_T}none" >&6
 
7059
fi
 
7060
 
 
7061
 
 
7062
 
 
7063
 
 
7064
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
7065
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
7066
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
7067
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
7068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7069
else
 
7070
 
 
7071
# These are sane defaults that work on at least a few old systems.
 
7072
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
7073
 
 
7074
# Character class describing NM global symbol codes.
 
7075
symcode='[BCDEGRST]'
 
7076
 
 
7077
# Regexp to match symbols that can be accessed directly from C.
 
7078
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
7079
 
 
7080
# Transform an extracted symbol line into a proper C declaration
 
7081
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
7082
 
 
7083
# Transform an extracted symbol line into symbol name and symbol address
 
7084
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
7085
 
 
7086
# Define system-specific variables.
 
7087
case $host_os in
 
7088
aix*)
 
7089
  symcode='[BCDT]'
 
7090
  ;;
 
7091
cygwin* | mingw* | pw32*)
 
7092
  symcode='[ABCDGISTW]'
 
7093
  ;;
 
7094
hpux*) # Its linker distinguishes data from code symbols
 
7095
  if test "$host_cpu" = ia64; then
 
7096
    symcode='[ABCDEGRST]'
 
7097
  fi
 
7098
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7099
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
7100
  ;;
 
7101
linux*)
 
7102
  if test "$host_cpu" = ia64; then
 
7103
    symcode='[ABCDGIRSTW]'
 
7104
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7105
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
7106
  fi
 
7107
  ;;
 
7108
irix* | nonstopux*)
 
7109
  symcode='[BCDEGRST]'
 
7110
  ;;
 
7111
osf*)
 
7112
  symcode='[BCDEGQRST]'
 
7113
  ;;
 
7114
solaris*)
 
7115
  symcode='[BDRT]'
 
7116
  ;;
 
7117
sco3.2v5*)
 
7118
  symcode='[DT]'
 
7119
  ;;
 
7120
sysv4.2uw2*)
 
7121
  symcode='[DT]'
 
7122
  ;;
 
7123
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
7124
  symcode='[ABDT]'
 
7125
  ;;
 
7126
sysv4)
 
7127
  symcode='[DFNSTU]'
 
7128
  ;;
 
7129
esac
 
7130
 
 
7131
# Handle CRLF in mingw tool chain
 
7132
opt_cr=
 
7133
case $build_os in
 
7134
mingw*)
 
7135
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7136
  ;;
 
7137
esac
 
7138
 
 
7139
# If we're using GNU nm, then use its standard symbol codes.
 
7140
case `$NM -V 2>&1` in
 
7141
*GNU* | *'with BFD'*)
 
7142
  symcode='[ABCDGIRSTW]' ;;
 
7143
esac
 
7144
 
 
7145
# Try without a prefix undercore, then with it.
 
7146
for ac_symprfx in "" "_"; do
 
7147
 
 
7148
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
7149
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
7150
 
 
7151
  # Write the raw and C identifiers.
 
7152
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7153
 
 
7154
  # Check to see that the pipe works correctly.
 
7155
  pipe_works=no
 
7156
 
 
7157
  rm -f conftest*
 
7158
  cat > conftest.$ac_ext <<EOF
 
7159
#ifdef __cplusplus
 
7160
extern "C" {
 
7161
#endif
 
7162
char nm_test_var;
 
7163
void nm_test_func(){}
 
7164
#ifdef __cplusplus
 
7165
}
 
7166
#endif
 
7167
int main(){nm_test_var='a';nm_test_func();return(0);}
 
7168
EOF
 
7169
 
 
7170
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7171
  (eval $ac_compile) 2>&5
 
7172
  ac_status=$?
 
7173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7174
  (exit $ac_status); }; then
 
7175
    # Now try to grab the symbols.
 
7176
    nlist=conftest.nm
 
7177
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
7178
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
7179
  ac_status=$?
 
7180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7181
  (exit $ac_status); } && test -s "$nlist"; then
 
7182
      # Try sorting and uniquifying the output.
 
7183
      if sort "$nlist" | uniq > "$nlist"T; then
 
7184
        mv -f "$nlist"T "$nlist"
 
7185
      else
 
7186
        rm -f "$nlist"T
 
7187
      fi
 
7188
 
 
7189
      # Make sure that we snagged all the symbols we need.
 
7190
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
7191
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
7192
          cat <<EOF > conftest.$ac_ext
 
7193
#ifdef __cplusplus
 
7194
extern "C" {
 
7195
#endif
 
7196
 
 
7197
EOF
 
7198
          # Now generate the symbol file.
 
7199
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
7200
 
 
7201
          cat <<EOF >> conftest.$ac_ext
 
7202
#if defined (__STDC__) && __STDC__
 
7203
# define lt_ptr_t void *
 
7204
#else
 
7205
# define lt_ptr_t char *
 
7206
# define const
 
7207
#endif
 
7208
 
 
7209
/* The mapping between symbol names and symbols. */
 
7210
const struct {
 
7211
  const char *name;
 
7212
  lt_ptr_t address;
 
7213
}
 
7214
lt_preloaded_symbols[] =
 
7215
{
 
7216
EOF
 
7217
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
7218
          cat <<\EOF >> conftest.$ac_ext
 
7219
  {0, (lt_ptr_t) 0}
 
7220
};
 
7221
 
 
7222
#ifdef __cplusplus
 
7223
}
 
7224
#endif
 
7225
EOF
 
7226
          # Now try linking the two files.
 
7227
          mv conftest.$ac_objext conftstm.$ac_objext
 
7228
          lt_save_LIBS="$LIBS"
 
7229
          lt_save_CFLAGS="$CFLAGS"
 
7230
          LIBS="conftstm.$ac_objext"
 
7231
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7232
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7233
  (eval $ac_link) 2>&5
 
7234
  ac_status=$?
 
7235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7236
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
7237
            pipe_works=yes
 
7238
          fi
 
7239
          LIBS="$lt_save_LIBS"
 
7240
          CFLAGS="$lt_save_CFLAGS"
 
7241
        else
 
7242
          echo "cannot find nm_test_func in $nlist" >&5
 
7243
        fi
 
7244
      else
 
7245
        echo "cannot find nm_test_var in $nlist" >&5
 
7246
      fi
 
7247
    else
 
7248
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
7249
    fi
 
7250
  else
 
7251
    echo "$progname: failed program was:" >&5
 
7252
    cat conftest.$ac_ext >&5
 
7253
  fi
 
7254
  rm -f conftest* conftst*
 
7255
 
 
7256
  # Do not use the global_symbol_pipe unless it works.
 
7257
  if test "$pipe_works" = yes; then
 
7258
    break
 
7259
  else
 
7260
    lt_cv_sys_global_symbol_pipe=
 
7261
  fi
 
7262
done
 
7263
 
 
7264
fi
 
7265
 
 
7266
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
7267
  lt_cv_sys_global_symbol_to_cdecl=
 
7268
fi
 
7269
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7270
  echo "$as_me:$LINENO: result: failed" >&5
 
7271
echo "${ECHO_T}failed" >&6
 
7272
else
 
7273
  echo "$as_me:$LINENO: result: ok" >&5
 
7274
echo "${ECHO_T}ok" >&6
 
7275
fi
 
7276
 
 
7277
echo "$as_me:$LINENO: checking for objdir" >&5
 
7278
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
7279
if test "${lt_cv_objdir+set}" = set; then
 
7280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7281
else
 
7282
  rm -f .libs 2>/dev/null
 
7283
mkdir .libs 2>/dev/null
 
7284
if test -d .libs; then
 
7285
  lt_cv_objdir=.libs
 
7286
else
 
7287
  # MS-DOS does not allow filenames that begin with a dot.
 
7288
  lt_cv_objdir=_libs
 
7289
fi
 
7290
rmdir .libs 2>/dev/null
 
7291
fi
 
7292
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7293
echo "${ECHO_T}$lt_cv_objdir" >&6
 
7294
objdir=$lt_cv_objdir
 
7295
 
 
7296
 
 
7297
 
 
7298
 
 
7299
 
 
7300
case $host_os in
 
7301
aix3*)
 
7302
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7303
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7304
  # vanish in a puff of smoke.
 
7305
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7306
    COLLECT_NAMES=
 
7307
    export COLLECT_NAMES
 
7308
  fi
 
7309
  ;;
 
7310
esac
 
7311
 
 
7312
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7313
# metacharacters that are still active within double-quoted strings.
 
7314
Xsed='sed -e 1s/^X//'
 
7315
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
7316
 
 
7317
# Same as above, but do not quote variable references.
 
7318
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
7319
 
 
7320
# Sed substitution to delay expansion of an escaped shell variable in a
 
7321
# double_quote_subst'ed string.
 
7322
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7323
 
 
7324
# Sed substitution to avoid accidental globbing in evaled expressions
 
7325
no_glob_subst='s/\*/\\\*/g'
 
7326
 
 
7327
# Constants:
 
7328
rm="rm -f"
 
7329
 
 
7330
# Global variables:
 
7331
default_ofile=libtool
 
7332
can_build_shared=yes
 
7333
 
 
7334
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7335
# which needs '.lib').
 
7336
libext=a
 
7337
ltmain="$ac_aux_dir/ltmain.sh"
 
7338
ofile="$default_ofile"
 
7339
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7340
 
 
7341
if test -n "$ac_tool_prefix"; then
 
7342
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7343
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7344
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7345
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7346
if test "${ac_cv_prog_AR+set}" = set; then
 
7347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7348
else
 
7349
  if test -n "$AR"; then
 
7350
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7351
else
 
7352
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7353
for as_dir in $PATH
 
7354
do
 
7355
  IFS=$as_save_IFS
 
7356
  test -z "$as_dir" && as_dir=.
 
7357
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7358
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7359
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7360
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7361
    break 2
 
7362
  fi
 
7363
done
 
7364
done
 
7365
 
 
7366
fi
 
7367
fi
 
7368
AR=$ac_cv_prog_AR
 
7369
if test -n "$AR"; then
 
7370
  echo "$as_me:$LINENO: result: $AR" >&5
 
7371
echo "${ECHO_T}$AR" >&6
 
7372
else
 
7373
  echo "$as_me:$LINENO: result: no" >&5
 
7374
echo "${ECHO_T}no" >&6
 
7375
fi
 
7376
 
 
7377
fi
 
7378
if test -z "$ac_cv_prog_AR"; then
 
7379
  ac_ct_AR=$AR
 
7380
  # Extract the first word of "ar", so it can be a program name with args.
 
7381
set dummy ar; ac_word=$2
 
7382
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7383
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7384
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
7385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7386
else
 
7387
  if test -n "$ac_ct_AR"; then
 
7388
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7389
else
 
7390
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7391
for as_dir in $PATH
 
7392
do
 
7393
  IFS=$as_save_IFS
 
7394
  test -z "$as_dir" && as_dir=.
 
7395
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7396
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7397
    ac_cv_prog_ac_ct_AR="ar"
 
7398
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7399
    break 2
 
7400
  fi
 
7401
done
 
7402
done
 
7403
 
 
7404
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
7405
fi
 
7406
fi
 
7407
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7408
if test -n "$ac_ct_AR"; then
 
7409
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7410
echo "${ECHO_T}$ac_ct_AR" >&6
 
7411
else
 
7412
  echo "$as_me:$LINENO: result: no" >&5
 
7413
echo "${ECHO_T}no" >&6
 
7414
fi
 
7415
 
 
7416
  AR=$ac_ct_AR
 
7417
else
 
7418
  AR="$ac_cv_prog_AR"
 
7419
fi
 
7420
 
 
7421
if test -n "$ac_tool_prefix"; then
 
7422
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7423
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7424
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7425
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7426
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7427
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7428
else
 
7429
  if test -n "$RANLIB"; then
 
7430
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7431
else
 
7432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7433
for as_dir in $PATH
 
7434
do
 
7435
  IFS=$as_save_IFS
 
7436
  test -z "$as_dir" && as_dir=.
 
7437
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7438
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7439
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7440
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7441
    break 2
 
7442
  fi
 
7443
done
 
7444
done
 
7445
 
 
7446
fi
 
7447
fi
 
7448
RANLIB=$ac_cv_prog_RANLIB
 
7449
if test -n "$RANLIB"; then
 
7450
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7451
echo "${ECHO_T}$RANLIB" >&6
 
7452
else
 
7453
  echo "$as_me:$LINENO: result: no" >&5
 
7454
echo "${ECHO_T}no" >&6
 
7455
fi
 
7456
 
 
7457
fi
 
7458
if test -z "$ac_cv_prog_RANLIB"; then
 
7459
  ac_ct_RANLIB=$RANLIB
 
7460
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7461
set dummy ranlib; ac_word=$2
 
7462
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7463
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7464
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7466
else
 
7467
  if test -n "$ac_ct_RANLIB"; then
 
7468
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7469
else
 
7470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7471
for as_dir in $PATH
 
7472
do
 
7473
  IFS=$as_save_IFS
 
7474
  test -z "$as_dir" && as_dir=.
 
7475
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7476
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7477
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7478
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7479
    break 2
 
7480
  fi
 
7481
done
 
7482
done
 
7483
 
 
7484
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
7485
fi
 
7486
fi
 
7487
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7488
if test -n "$ac_ct_RANLIB"; then
 
7489
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7490
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
7491
else
 
7492
  echo "$as_me:$LINENO: result: no" >&5
 
7493
echo "${ECHO_T}no" >&6
 
7494
fi
 
7495
 
 
7496
  RANLIB=$ac_ct_RANLIB
 
7497
else
 
7498
  RANLIB="$ac_cv_prog_RANLIB"
 
7499
fi
 
7500
 
 
7501
if test -n "$ac_tool_prefix"; then
 
7502
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7503
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7504
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7505
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7506
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7508
else
 
7509
  if test -n "$STRIP"; then
 
7510
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7511
else
 
7512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7513
for as_dir in $PATH
 
7514
do
 
7515
  IFS=$as_save_IFS
 
7516
  test -z "$as_dir" && as_dir=.
 
7517
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7518
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7519
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7520
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7521
    break 2
 
7522
  fi
 
7523
done
 
7524
done
 
7525
 
 
7526
fi
 
7527
fi
 
7528
STRIP=$ac_cv_prog_STRIP
 
7529
if test -n "$STRIP"; then
 
7530
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
7531
echo "${ECHO_T}$STRIP" >&6
 
7532
else
 
7533
  echo "$as_me:$LINENO: result: no" >&5
 
7534
echo "${ECHO_T}no" >&6
 
7535
fi
 
7536
 
 
7537
fi
 
7538
if test -z "$ac_cv_prog_STRIP"; then
 
7539
  ac_ct_STRIP=$STRIP
 
7540
  # Extract the first word of "strip", so it can be a program name with args.
 
7541
set dummy strip; ac_word=$2
 
7542
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7543
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7544
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7545
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7546
else
 
7547
  if test -n "$ac_ct_STRIP"; then
 
7548
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7549
else
 
7550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7551
for as_dir in $PATH
 
7552
do
 
7553
  IFS=$as_save_IFS
 
7554
  test -z "$as_dir" && as_dir=.
 
7555
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7556
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7557
    ac_cv_prog_ac_ct_STRIP="strip"
 
7558
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7559
    break 2
 
7560
  fi
 
7561
done
 
7562
done
 
7563
 
 
7564
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
7565
fi
 
7566
fi
 
7567
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7568
if test -n "$ac_ct_STRIP"; then
 
7569
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7570
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
7571
else
 
7572
  echo "$as_me:$LINENO: result: no" >&5
 
7573
echo "${ECHO_T}no" >&6
 
7574
fi
 
7575
 
 
7576
  STRIP=$ac_ct_STRIP
 
7577
else
 
7578
  STRIP="$ac_cv_prog_STRIP"
 
7579
fi
 
7580
 
 
7581
 
 
7582
old_CC="$CC"
 
7583
old_CFLAGS="$CFLAGS"
 
7584
 
 
7585
# Set sane defaults for various variables
 
7586
test -z "$AR" && AR=ar
 
7587
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7588
test -z "$AS" && AS=as
 
7589
test -z "$CC" && CC=cc
 
7590
test -z "$LTCC" && LTCC=$CC
 
7591
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7592
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7593
test -z "$LD" && LD=ld
 
7594
test -z "$LN_S" && LN_S="ln -s"
 
7595
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7596
test -z "$NM" && NM=nm
 
7597
test -z "$SED" && SED=sed
 
7598
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7599
test -z "$RANLIB" && RANLIB=:
 
7600
test -z "$STRIP" && STRIP=:
 
7601
test -z "$ac_objext" && ac_objext=o
 
7602
 
 
7603
# Determine commands to create old-style static archives.
 
7604
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
7605
old_postinstall_cmds='chmod 644 $oldlib'
 
7606
old_postuninstall_cmds=
 
7607
 
 
7608
if test -n "$RANLIB"; then
 
7609
  case $host_os in
 
7610
  openbsd*)
 
7611
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7612
    ;;
 
7613
  *)
 
7614
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7615
    ;;
 
7616
  esac
 
7617
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7618
fi
 
7619
 
 
7620
for cc_temp in $compiler""; do
 
7621
  case $cc_temp in
 
7622
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7623
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7624
    \-*) ;;
 
7625
    *) break;;
 
7626
  esac
 
7627
done
 
7628
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7629
 
 
7630
 
 
7631
# Only perform the check for file, if the check method requires it
 
7632
case $deplibs_check_method in
 
7633
file_magic*)
 
7634
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7635
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7636
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
7637
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7639
else
 
7640
  case $MAGIC_CMD in
 
7641
[\\/*] |  ?:[\\/]*)
 
7642
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7643
  ;;
 
7644
*)
 
7645
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7646
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7647
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7648
  for ac_dir in $ac_dummy; do
 
7649
    IFS="$lt_save_ifs"
 
7650
    test -z "$ac_dir" && ac_dir=.
 
7651
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7652
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7653
      if test -n "$file_magic_test_file"; then
 
7654
        case $deplibs_check_method in
 
7655
        "file_magic "*)
 
7656
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7657
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7658
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7659
            $EGREP "$file_magic_regex" > /dev/null; then
 
7660
            :
 
7661
          else
 
7662
            cat <<EOF 1>&2
 
7663
 
 
7664
*** Warning: the command libtool uses to detect shared libraries,
 
7665
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7666
*** The result is that libtool may fail to recognize shared libraries
 
7667
*** as such.  This will affect the creation of libtool libraries that
 
7668
*** depend on shared libraries, but programs linked with such libtool
 
7669
*** libraries will work regardless of this problem.  Nevertheless, you
 
7670
*** may want to report the problem to your system manager and/or to
 
7671
*** bug-libtool@gnu.org
 
7672
 
 
7673
EOF
 
7674
          fi ;;
 
7675
        esac
 
7676
      fi
 
7677
      break
 
7678
    fi
 
7679
  done
 
7680
  IFS="$lt_save_ifs"
 
7681
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7682
  ;;
 
7683
esac
 
7684
fi
 
7685
 
 
7686
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7687
if test -n "$MAGIC_CMD"; then
 
7688
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7689
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7690
else
 
7691
  echo "$as_me:$LINENO: result: no" >&5
 
7692
echo "${ECHO_T}no" >&6
 
7693
fi
 
7694
 
 
7695
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7696
  if test -n "$ac_tool_prefix"; then
 
7697
    echo "$as_me:$LINENO: checking for file" >&5
 
7698
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
7699
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7700
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7701
else
 
7702
  case $MAGIC_CMD in
 
7703
[\\/*] |  ?:[\\/]*)
 
7704
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7705
  ;;
 
7706
*)
 
7707
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7708
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7709
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7710
  for ac_dir in $ac_dummy; do
 
7711
    IFS="$lt_save_ifs"
 
7712
    test -z "$ac_dir" && ac_dir=.
 
7713
    if test -f $ac_dir/file; then
 
7714
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7715
      if test -n "$file_magic_test_file"; then
 
7716
        case $deplibs_check_method in
 
7717
        "file_magic "*)
 
7718
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7719
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7720
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7721
            $EGREP "$file_magic_regex" > /dev/null; then
 
7722
            :
 
7723
          else
 
7724
            cat <<EOF 1>&2
 
7725
 
 
7726
*** Warning: the command libtool uses to detect shared libraries,
 
7727
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7728
*** The result is that libtool may fail to recognize shared libraries
 
7729
*** as such.  This will affect the creation of libtool libraries that
 
7730
*** depend on shared libraries, but programs linked with such libtool
 
7731
*** libraries will work regardless of this problem.  Nevertheless, you
 
7732
*** may want to report the problem to your system manager and/or to
 
7733
*** bug-libtool@gnu.org
 
7734
 
 
7735
EOF
 
7736
          fi ;;
 
7737
        esac
 
7738
      fi
 
7739
      break
 
7740
    fi
 
7741
  done
 
7742
  IFS="$lt_save_ifs"
 
7743
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7744
  ;;
 
7745
esac
 
7746
fi
 
7747
 
 
7748
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7749
if test -n "$MAGIC_CMD"; then
 
7750
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7751
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7752
else
 
7753
  echo "$as_me:$LINENO: result: no" >&5
 
7754
echo "${ECHO_T}no" >&6
 
7755
fi
 
7756
 
 
7757
  else
 
7758
    MAGIC_CMD=:
 
7759
  fi
 
7760
fi
 
7761
 
 
7762
  fi
 
7763
  ;;
 
7764
esac
 
7765
 
 
7766
enable_dlopen=no
 
7767
enable_win32_dll=no
 
7768
 
 
7769
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
7770
if test "${enable_libtool_lock+set}" = set; then
 
7771
  enableval="$enable_libtool_lock"
 
7772
 
 
7773
fi;
 
7774
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7775
 
 
7776
 
 
7777
# Check whether --with-pic or --without-pic was given.
 
7778
if test "${with_pic+set}" = set; then
 
7779
  withval="$with_pic"
 
7780
  pic_mode="$withval"
 
7781
else
 
7782
  pic_mode=default
 
7783
fi;
 
7784
test -z "$pic_mode" && pic_mode=default
 
7785
 
 
7786
# Use C for the default configuration in the libtool script
 
7787
tagname=
 
7788
lt_save_CC="$CC"
 
7789
ac_ext=c
 
7790
ac_cpp='$CPP $CPPFLAGS'
 
7791
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7792
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7793
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7794
 
 
7795
 
 
7796
# Source file extension for C test sources.
 
7797
ac_ext=c
 
7798
 
 
7799
# Object file extension for compiled C test sources.
 
7800
objext=o
 
7801
objext=$objext
 
7802
 
 
7803
# Code to be used in simple compile tests
 
7804
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7805
 
 
7806
# Code to be used in simple link tests
 
7807
lt_simple_link_test_code='int main(){return(0);}\n'
 
7808
 
 
7809
 
 
7810
# If no C compiler was specified, use CC.
 
7811
LTCC=${LTCC-"$CC"}
 
7812
 
 
7813
# If no C compiler flags were specified, use CFLAGS.
 
7814
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7815
 
 
7816
# Allow CC to be a program name with arguments.
 
7817
compiler=$CC
 
7818
 
 
7819
 
 
7820
# save warnings/boilerplate of simple test code
 
7821
ac_outfile=conftest.$ac_objext
 
7822
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7823
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7824
_lt_compiler_boilerplate=`cat conftest.err`
 
7825
$rm conftest*
 
7826
 
 
7827
ac_outfile=conftest.$ac_objext
 
7828
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7829
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7830
_lt_linker_boilerplate=`cat conftest.err`
 
7831
$rm conftest*
 
7832
 
 
7833
 
 
7834
 
 
7835
lt_prog_compiler_no_builtin_flag=
 
7836
 
 
7837
if test "$GCC" = yes; then
 
7838
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7839
 
 
7840
 
 
7841
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7842
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
7843
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7844
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7845
else
 
7846
  lt_cv_prog_compiler_rtti_exceptions=no
 
7847
  ac_outfile=conftest.$ac_objext
 
7848
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7849
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7850
   # Insert the option either (1) after the last *FLAGS variable, or
 
7851
   # (2) before a word containing "conftest.", or (3) at the end.
 
7852
   # Note that $ac_compile itself does not contain backslashes and begins
 
7853
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7854
   # The option is referenced via a variable to avoid confusing sed.
 
7855
   lt_compile=`echo "$ac_compile" | $SED \
 
7856
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7857
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7858
   -e 's:$: $lt_compiler_flag:'`
 
7859
   (eval echo "\"\$as_me:7859: $lt_compile\"" >&5)
 
7860
   (eval "$lt_compile" 2>conftest.err)
 
7861
   ac_status=$?
 
7862
   cat conftest.err >&5
 
7863
   echo "$as_me:7863: \$? = $ac_status" >&5
 
7864
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7865
     # The compiler can only warn and ignore the option if not recognized
 
7866
     # So say no if there are warnings other than the usual output.
 
7867
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7868
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7869
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7870
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7871
     fi
 
7872
   fi
 
7873
   $rm conftest*
 
7874
 
 
7875
fi
 
7876
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7877
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
7878
 
 
7879
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7880
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7881
else
 
7882
    :
 
7883
fi
 
7884
 
 
7885
fi
 
7886
 
 
7887
lt_prog_compiler_wl=
 
7888
lt_prog_compiler_pic=
 
7889
lt_prog_compiler_static=
 
7890
 
 
7891
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7892
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
7893
 
 
7894
  if test "$GCC" = yes; then
 
7895
    lt_prog_compiler_wl='-Wl,'
 
7896
    lt_prog_compiler_static='-static'
 
7897
 
 
7898
    case $host_os in
 
7899
      aix*)
 
7900
      # All AIX code is PIC.
 
7901
      if test "$host_cpu" = ia64; then
 
7902
        # AIX 5 now supports IA64 processor
 
7903
        lt_prog_compiler_static='-Bstatic'
 
7904
      fi
 
7905
      ;;
 
7906
 
 
7907
    amigaos*)
 
7908
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7909
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7910
      # like `-m68040'.
 
7911
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7912
      ;;
 
7913
 
 
7914
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7915
      # PIC is the default for these OSes.
 
7916
      ;;
 
7917
 
 
7918
    mingw* | pw32* | os2*)
 
7919
      # This hack is so that the source file can tell whether it is being
 
7920
      # built for inclusion in a dll (and should export symbols for example).
 
7921
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7922
      ;;
 
7923
 
 
7924
    darwin* | rhapsody*)
 
7925
      # PIC is the default on this platform
 
7926
      # Common symbols not allowed in MH_DYLIB files
 
7927
      lt_prog_compiler_pic='-fno-common'
 
7928
      ;;
 
7929
 
 
7930
    interix3*)
 
7931
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7932
      # Instead, we relocate shared libraries at runtime.
 
7933
      ;;
 
7934
 
 
7935
    msdosdjgpp*)
 
7936
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7937
      # on systems that don't support them.
 
7938
      lt_prog_compiler_can_build_shared=no
 
7939
      enable_shared=no
 
7940
      ;;
 
7941
 
 
7942
    sysv4*MP*)
 
7943
      if test -d /usr/nec; then
 
7944
        lt_prog_compiler_pic=-Kconform_pic
 
7945
      fi
 
7946
      ;;
 
7947
 
 
7948
    hpux*)
 
7949
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7950
      # not for PA HP-UX.
 
7951
      case $host_cpu in
 
7952
      hppa*64*|ia64*)
 
7953
        # +Z the default
 
7954
        ;;
 
7955
      *)
 
7956
        lt_prog_compiler_pic='-fPIC'
 
7957
        ;;
 
7958
      esac
 
7959
      ;;
 
7960
 
 
7961
    *)
 
7962
      lt_prog_compiler_pic='-fPIC'
 
7963
      ;;
 
7964
    esac
 
7965
  else
 
7966
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7967
    case $host_os in
 
7968
    aix*)
 
7969
      lt_prog_compiler_wl='-Wl,'
 
7970
      if test "$host_cpu" = ia64; then
 
7971
        # AIX 5 now supports IA64 processor
 
7972
        lt_prog_compiler_static='-Bstatic'
 
7973
      else
 
7974
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7975
      fi
 
7976
      ;;
 
7977
      darwin*)
 
7978
        # PIC is the default on this platform
 
7979
        # Common symbols not allowed in MH_DYLIB files
 
7980
       case $cc_basename in
 
7981
         xlc*)
 
7982
         lt_prog_compiler_pic='-qnocommon'
 
7983
         lt_prog_compiler_wl='-Wl,'
 
7984
         ;;
 
7985
       esac
 
7986
       ;;
 
7987
 
 
7988
    mingw* | pw32* | os2*)
 
7989
      # This hack is so that the source file can tell whether it is being
 
7990
      # built for inclusion in a dll (and should export symbols for example).
 
7991
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7992
      ;;
 
7993
 
 
7994
    hpux9* | hpux10* | hpux11*)
 
7995
      lt_prog_compiler_wl='-Wl,'
 
7996
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7997
      # not for PA HP-UX.
 
7998
      case $host_cpu in
 
7999
      hppa*64*|ia64*)
 
8000
        # +Z the default
 
8001
        ;;
 
8002
      *)
 
8003
        lt_prog_compiler_pic='+Z'
 
8004
        ;;
 
8005
      esac
 
8006
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8007
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8008
      ;;
 
8009
 
 
8010
    irix5* | irix6* | nonstopux*)
 
8011
      lt_prog_compiler_wl='-Wl,'
 
8012
      # PIC (with -KPIC) is the default.
 
8013
      lt_prog_compiler_static='-non_shared'
 
8014
      ;;
 
8015
 
 
8016
    newsos6)
 
8017
      lt_prog_compiler_pic='-KPIC'
 
8018
      lt_prog_compiler_static='-Bstatic'
 
8019
      ;;
 
8020
 
 
8021
    linux*)
 
8022
      case $cc_basename in
 
8023
      icc* | ecc*)
 
8024
        lt_prog_compiler_wl='-Wl,'
 
8025
        lt_prog_compiler_pic='-KPIC'
 
8026
        lt_prog_compiler_static='-static'
 
8027
        ;;
 
8028
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8029
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8030
        # which looks to be a dead project)
 
8031
        lt_prog_compiler_wl='-Wl,'
 
8032
        lt_prog_compiler_pic='-fpic'
 
8033
        lt_prog_compiler_static='-Bstatic'
 
8034
        ;;
 
8035
      ccc*)
 
8036
        lt_prog_compiler_wl='-Wl,'
 
8037
        # All Alpha code is PIC.
 
8038
        lt_prog_compiler_static='-non_shared'
 
8039
        ;;
 
8040
      esac
 
8041
      ;;
 
8042
 
 
8043
    osf3* | osf4* | osf5*)
 
8044
      lt_prog_compiler_wl='-Wl,'
 
8045
      # All OSF/1 code is PIC.
 
8046
      lt_prog_compiler_static='-non_shared'
 
8047
      ;;
 
8048
 
 
8049
    solaris*)
 
8050
      lt_prog_compiler_pic='-KPIC'
 
8051
      lt_prog_compiler_static='-Bstatic'
 
8052
      case $cc_basename in
 
8053
      f77* | f90* | f95*)
 
8054
        lt_prog_compiler_wl='-Qoption ld ';;
 
8055
      *)
 
8056
        lt_prog_compiler_wl='-Wl,';;
 
8057
      esac
 
8058
      ;;
 
8059
 
 
8060
    sunos4*)
 
8061
      lt_prog_compiler_wl='-Qoption ld '
 
8062
      lt_prog_compiler_pic='-PIC'
 
8063
      lt_prog_compiler_static='-Bstatic'
 
8064
      ;;
 
8065
 
 
8066
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8067
      lt_prog_compiler_wl='-Wl,'
 
8068
      lt_prog_compiler_pic='-KPIC'
 
8069
      lt_prog_compiler_static='-Bstatic'
 
8070
      ;;
 
8071
 
 
8072
    sysv4*MP*)
 
8073
      if test -d /usr/nec ;then
 
8074
        lt_prog_compiler_pic='-Kconform_pic'
 
8075
        lt_prog_compiler_static='-Bstatic'
 
8076
      fi
 
8077
      ;;
 
8078
 
 
8079
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8080
      lt_prog_compiler_wl='-Wl,'
 
8081
      lt_prog_compiler_pic='-KPIC'
 
8082
      lt_prog_compiler_static='-Bstatic'
 
8083
      ;;
 
8084
 
 
8085
    unicos*)
 
8086
      lt_prog_compiler_wl='-Wl,'
 
8087
      lt_prog_compiler_can_build_shared=no
 
8088
      ;;
 
8089
 
 
8090
    uts4*)
 
8091
      lt_prog_compiler_pic='-pic'
 
8092
      lt_prog_compiler_static='-Bstatic'
 
8093
      ;;
 
8094
 
 
8095
    *)
 
8096
      lt_prog_compiler_can_build_shared=no
 
8097
      ;;
 
8098
    esac
 
8099
  fi
 
8100
 
 
8101
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
8102
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
8103
 
 
8104
#
 
8105
# Check to make sure the PIC flag actually works.
 
8106
#
 
8107
if test -n "$lt_prog_compiler_pic"; then
 
8108
 
 
8109
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8110
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
8111
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
8112
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8113
else
 
8114
  lt_prog_compiler_pic_works=no
 
8115
  ac_outfile=conftest.$ac_objext
 
8116
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8117
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8118
   # Insert the option either (1) after the last *FLAGS variable, or
 
8119
   # (2) before a word containing "conftest.", or (3) at the end.
 
8120
   # Note that $ac_compile itself does not contain backslashes and begins
 
8121
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8122
   # The option is referenced via a variable to avoid confusing sed.
 
8123
   lt_compile=`echo "$ac_compile" | $SED \
 
8124
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8125
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8126
   -e 's:$: $lt_compiler_flag:'`
 
8127
   (eval echo "\"\$as_me:8127: $lt_compile\"" >&5)
 
8128
   (eval "$lt_compile" 2>conftest.err)
 
8129
   ac_status=$?
 
8130
   cat conftest.err >&5
 
8131
   echo "$as_me:8131: \$? = $ac_status" >&5
 
8132
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8133
     # The compiler can only warn and ignore the option if not recognized
 
8134
     # So say no if there are warnings other than the usual output.
 
8135
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8136
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8137
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8138
       lt_prog_compiler_pic_works=yes
 
8139
     fi
 
8140
   fi
 
8141
   $rm conftest*
 
8142
 
 
8143
fi
 
8144
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
8145
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
8146
 
 
8147
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
8148
    case $lt_prog_compiler_pic in
 
8149
     "" | " "*) ;;
 
8150
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8151
     esac
 
8152
else
 
8153
    lt_prog_compiler_pic=
 
8154
     lt_prog_compiler_can_build_shared=no
 
8155
fi
 
8156
 
 
8157
fi
 
8158
case $host_os in
 
8159
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8160
  *djgpp*)
 
8161
    lt_prog_compiler_pic=
 
8162
    ;;
 
8163
  *)
 
8164
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8165
    ;;
 
8166
esac
 
8167
 
 
8168
#
 
8169
# Check to make sure the static flag actually works.
 
8170
#
 
8171
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8172
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8173
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
8174
if test "${lt_prog_compiler_static_works+set}" = set; then
 
8175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8176
else
 
8177
  lt_prog_compiler_static_works=no
 
8178
   save_LDFLAGS="$LDFLAGS"
 
8179
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8180
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
8181
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8182
     # The linker can only warn and ignore the option if not recognized
 
8183
     # So say no if there are warnings
 
8184
     if test -s conftest.err; then
 
8185
       # Append any errors to the config.log.
 
8186
       cat conftest.err 1>&5
 
8187
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8188
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8189
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8190
         lt_prog_compiler_static_works=yes
 
8191
       fi
 
8192
     else
 
8193
       lt_prog_compiler_static_works=yes
 
8194
     fi
 
8195
   fi
 
8196
   $rm conftest*
 
8197
   LDFLAGS="$save_LDFLAGS"
 
8198
 
 
8199
fi
 
8200
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
8201
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
8202
 
 
8203
if test x"$lt_prog_compiler_static_works" = xyes; then
 
8204
    :
 
8205
else
 
8206
    lt_prog_compiler_static=
 
8207
fi
 
8208
 
 
8209
 
 
8210
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8211
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
8212
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8214
else
 
8215
  lt_cv_prog_compiler_c_o=no
 
8216
   $rm -r conftest 2>/dev/null
 
8217
   mkdir conftest
 
8218
   cd conftest
 
8219
   mkdir out
 
8220
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8221
 
 
8222
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8223
   # Insert the option either (1) after the last *FLAGS variable, or
 
8224
   # (2) before a word containing "conftest.", or (3) at the end.
 
8225
   # Note that $ac_compile itself does not contain backslashes and begins
 
8226
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8227
   lt_compile=`echo "$ac_compile" | $SED \
 
8228
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8229
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8230
   -e 's:$: $lt_compiler_flag:'`
 
8231
   (eval echo "\"\$as_me:8231: $lt_compile\"" >&5)
 
8232
   (eval "$lt_compile" 2>out/conftest.err)
 
8233
   ac_status=$?
 
8234
   cat out/conftest.err >&5
 
8235
   echo "$as_me:8235: \$? = $ac_status" >&5
 
8236
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8237
   then
 
8238
     # The compiler can only warn and ignore the option if not recognized
 
8239
     # So say no if there are warnings
 
8240
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8241
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8242
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8243
       lt_cv_prog_compiler_c_o=yes
 
8244
     fi
 
8245
   fi
 
8246
   chmod u+w . 2>&5
 
8247
   $rm conftest*
 
8248
   # SGI C++ compiler will create directory out/ii_files/ for
 
8249
   # template instantiation
 
8250
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8251
   $rm out/* && rmdir out
 
8252
   cd ..
 
8253
   rmdir conftest
 
8254
   $rm conftest*
 
8255
 
 
8256
fi
 
8257
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8258
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
8259
 
 
8260
 
 
8261
hard_links="nottested"
 
8262
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8263
  # do not overwrite the value of need_locks provided by the user
 
8264
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8265
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
8266
  hard_links=yes
 
8267
  $rm conftest*
 
8268
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8269
  touch conftest.a
 
8270
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8271
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8272
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
8273
echo "${ECHO_T}$hard_links" >&6
 
8274
  if test "$hard_links" = no; then
 
8275
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8276
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8277
    need_locks=warn
 
8278
  fi
 
8279
else
 
8280
  need_locks=no
 
8281
fi
 
8282
 
 
8283
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8284
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
8285
 
 
8286
  runpath_var=
 
8287
  allow_undefined_flag=
 
8288
  enable_shared_with_static_runtimes=no
 
8289
  archive_cmds=
 
8290
  archive_expsym_cmds=
 
8291
  old_archive_From_new_cmds=
 
8292
  old_archive_from_expsyms_cmds=
 
8293
  export_dynamic_flag_spec=
 
8294
  whole_archive_flag_spec=
 
8295
  thread_safe_flag_spec=
 
8296
  hardcode_libdir_flag_spec=
 
8297
  hardcode_libdir_flag_spec_ld=
 
8298
  hardcode_libdir_separator=
 
8299
  hardcode_direct=no
 
8300
  hardcode_minus_L=no
 
8301
  hardcode_shlibpath_var=unsupported
 
8302
  link_all_deplibs=unknown
 
8303
  hardcode_automatic=no
 
8304
  module_cmds=
 
8305
  module_expsym_cmds=
 
8306
  always_export_symbols=no
 
8307
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8308
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8309
  # included in the symbol list
 
8310
  include_expsyms=
 
8311
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8312
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8313
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8314
  # as well as any symbol that contains `d'.
 
8315
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
8316
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8317
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8318
  # the symbol is explicitly referenced.  Since portable code cannot
 
8319
  # rely on this symbol name, it's probably fine to never include it in
 
8320
  # preloaded symbol tables.
 
8321
  extract_expsyms_cmds=
 
8322
  # Just being paranoid about ensuring that cc_basename is set.
 
8323
  for cc_temp in $compiler""; do
 
8324
  case $cc_temp in
 
8325
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8326
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8327
    \-*) ;;
 
8328
    *) break;;
 
8329
  esac
 
8330
done
 
8331
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8332
 
 
8333
  case $host_os in
 
8334
  cygwin* | mingw* | pw32*)
 
8335
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8336
    # When not using gcc, we currently assume that we are using
 
8337
    # Microsoft Visual C++.
 
8338
    if test "$GCC" != yes; then
 
8339
      with_gnu_ld=no
 
8340
    fi
 
8341
    ;;
 
8342
  interix*)
 
8343
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8344
    with_gnu_ld=yes
 
8345
    ;;
 
8346
  openbsd*)
 
8347
    with_gnu_ld=no
 
8348
    ;;
 
8349
  esac
 
8350
 
 
8351
  ld_shlibs=yes
 
8352
  if test "$with_gnu_ld" = yes; then
 
8353
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8354
    wlarc='${wl}'
 
8355
 
 
8356
    # Set some defaults for GNU ld with shared library support. These
 
8357
    # are reset later if shared libraries are not supported. Putting them
 
8358
    # here allows them to be overridden if necessary.
 
8359
    runpath_var=LD_RUN_PATH
 
8360
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8361
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8362
    # ancient GNU ld didn't support --whole-archive et. al.
 
8363
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8364
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8365
      else
 
8366
        whole_archive_flag_spec=
 
8367
    fi
 
8368
    supports_anon_versioning=no
 
8369
    case `$LD -v 2>/dev/null` in
 
8370
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8371
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8372
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8373
      *\ 2.11.*) ;; # other 2.11 versions
 
8374
      *) supports_anon_versioning=yes ;;
 
8375
    esac
 
8376
 
 
8377
    # See if GNU ld supports shared libraries.
 
8378
    case $host_os in
 
8379
    aix3* | aix4* | aix5*)
 
8380
      # On AIX/PPC, the GNU linker is very broken
 
8381
      if test "$host_cpu" != ia64; then
 
8382
        ld_shlibs=no
 
8383
        cat <<EOF 1>&2
 
8384
 
 
8385
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8386
*** to be unable to reliably create shared libraries on AIX.
 
8387
*** Therefore, libtool is disabling shared libraries support.  If you
 
8388
*** really care for shared libraries, you may want to modify your PATH
 
8389
*** so that a non-GNU linker is found, and then restart.
 
8390
 
 
8391
EOF
 
8392
      fi
 
8393
      ;;
 
8394
 
 
8395
    amigaos*)
 
8396
      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)'
 
8397
      hardcode_libdir_flag_spec='-L$libdir'
 
8398
      hardcode_minus_L=yes
 
8399
 
 
8400
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8401
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8402
      # to version 4, is to share data among multiple programs linked
 
8403
      # with the same dynamic library.  Since this doesn't match the
 
8404
      # behavior of shared libraries on other platforms, we can't use
 
8405
      # them.
 
8406
      ld_shlibs=no
 
8407
      ;;
 
8408
 
 
8409
    beos*)
 
8410
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8411
        allow_undefined_flag=unsupported
 
8412
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8413
        # support --undefined.  This deserves some investigation.  FIXME
 
8414
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8415
      else
 
8416
        ld_shlibs=no
 
8417
      fi
 
8418
      ;;
 
8419
 
 
8420
    cygwin* | mingw* | pw32*)
 
8421
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8422
      # as there is no search path for DLLs.
 
8423
      hardcode_libdir_flag_spec='-L$libdir'
 
8424
      allow_undefined_flag=unsupported
 
8425
      always_export_symbols=no
 
8426
      enable_shared_with_static_runtimes=yes
 
8427
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8428
 
 
8429
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8430
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8431
        # If the export-symbols file already is a .def file (1st line
 
8432
        # is EXPORTS), use it as is; otherwise, prepend...
 
8433
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8434
          cp $export_symbols $output_objdir/$soname.def;
 
8435
        else
 
8436
          echo EXPORTS > $output_objdir/$soname.def;
 
8437
          cat $export_symbols >> $output_objdir/$soname.def;
 
8438
        fi~
 
8439
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8440
      else
 
8441
        ld_shlibs=no
 
8442
      fi
 
8443
      ;;
 
8444
 
 
8445
    interix3*)
 
8446
      hardcode_direct=no
 
8447
      hardcode_shlibpath_var=no
 
8448
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8449
      export_dynamic_flag_spec='${wl}-E'
 
8450
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8451
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8452
      # default) and relocated if they conflict, which is a slow very memory
 
8453
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8454
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8455
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8456
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8457
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8458
      ;;
 
8459
 
 
8460
    linux*)
 
8461
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8462
        tmp_addflag=
 
8463
        case $cc_basename,$host_cpu in
 
8464
        pgcc*)                          # Portland Group C compiler
 
8465
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8466
          tmp_addflag=' $pic_flag'
 
8467
          ;;
 
8468
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8469
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8470
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8471
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8472
          tmp_addflag=' -i_dynamic' ;;
 
8473
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8474
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8475
        ifc* | ifort*)                  # Intel Fortran compiler
 
8476
          tmp_addflag=' -nofor_main' ;;
 
8477
        esac
 
8478
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8479
 
 
8480
        if test $supports_anon_versioning = yes; then
 
8481
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8482
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8483
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8484
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8485
        fi
 
8486
      else
 
8487
        ld_shlibs=no
 
8488
      fi
 
8489
      ;;
 
8490
 
 
8491
    netbsd*)
 
8492
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8493
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8494
        wlarc=
 
8495
      else
 
8496
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8497
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8498
      fi
 
8499
      ;;
 
8500
 
 
8501
    solaris*)
 
8502
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8503
        ld_shlibs=no
 
8504
        cat <<EOF 1>&2
 
8505
 
 
8506
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8507
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8508
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8509
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8510
*** your PATH or compiler configuration so that the native linker is
 
8511
*** used, and then restart.
 
8512
 
 
8513
EOF
 
8514
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8515
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8516
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8517
      else
 
8518
        ld_shlibs=no
 
8519
      fi
 
8520
      ;;
 
8521
 
 
8522
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8523
      case `$LD -v 2>&1` in
 
8524
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8525
        ld_shlibs=no
 
8526
        cat <<_LT_EOF 1>&2
 
8527
 
 
8528
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8529
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8530
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8531
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8532
*** your PATH or compiler configuration so that the native linker is
 
8533
*** used, and then restart.
 
8534
 
 
8535
_LT_EOF
 
8536
        ;;
 
8537
        *)
 
8538
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8539
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8540
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8541
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8542
          else
 
8543
            ld_shlibs=no
 
8544
          fi
 
8545
        ;;
 
8546
      esac
 
8547
      ;;
 
8548
 
 
8549
    sunos4*)
 
8550
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8551
      wlarc=
 
8552
      hardcode_direct=yes
 
8553
      hardcode_shlibpath_var=no
 
8554
      ;;
 
8555
 
 
8556
    *)
 
8557
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8558
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8559
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8560
      else
 
8561
        ld_shlibs=no
 
8562
      fi
 
8563
      ;;
 
8564
    esac
 
8565
 
 
8566
    if test "$ld_shlibs" = no; then
 
8567
      runpath_var=
 
8568
      hardcode_libdir_flag_spec=
 
8569
      export_dynamic_flag_spec=
 
8570
      whole_archive_flag_spec=
 
8571
    fi
 
8572
  else
 
8573
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8574
    case $host_os in
 
8575
    aix3*)
 
8576
      allow_undefined_flag=unsupported
 
8577
      always_export_symbols=yes
 
8578
      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'
 
8579
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8580
      # are no directories specified by -L.
 
8581
      hardcode_minus_L=yes
 
8582
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8583
        # Neither direct hardcoding nor static linking is supported with a
 
8584
        # broken collect2.
 
8585
        hardcode_direct=unsupported
 
8586
      fi
 
8587
      ;;
 
8588
 
 
8589
    aix4* | aix5*)
 
8590
      if test "$host_cpu" = ia64; then
 
8591
        # On IA64, the linker does run time linking by default, so we don't
 
8592
        # have to do anything special.
 
8593
        aix_use_runtimelinking=no
 
8594
        exp_sym_flag='-Bexport'
 
8595
        no_entry_flag=""
 
8596
      else
 
8597
        # If we're using GNU nm, then we don't want the "-C" option.
 
8598
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8599
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8600
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
8601
        else
 
8602
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
8603
        fi
 
8604
        aix_use_runtimelinking=no
 
8605
 
 
8606
        # Test if we are trying to use run time linking or normal
 
8607
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8608
        # need to do runtime linking.
 
8609
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8610
          for ld_flag in $LDFLAGS; do
 
8611
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8612
            aix_use_runtimelinking=yes
 
8613
            break
 
8614
          fi
 
8615
          done
 
8616
          ;;
 
8617
        esac
 
8618
 
 
8619
        exp_sym_flag='-bexport'
 
8620
        no_entry_flag='-bnoentry'
 
8621
      fi
 
8622
 
 
8623
      # When large executables or shared objects are built, AIX ld can
 
8624
      # have problems creating the table of contents.  If linking a library
 
8625
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8626
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8627
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8628
 
 
8629
      archive_cmds=''
 
8630
      hardcode_direct=yes
 
8631
      hardcode_libdir_separator=':'
 
8632
      link_all_deplibs=yes
 
8633
 
 
8634
      if test "$GCC" = yes; then
 
8635
        case $host_os in aix4.[012]|aix4.[012].*)
 
8636
        # We only want to do this on AIX 4.2 and lower, the check
 
8637
        # below for broken collect2 doesn't work under 4.3+
 
8638
          collect2name=`${CC} -print-prog-name=collect2`
 
8639
          if test -f "$collect2name" && \
 
8640
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8641
          then
 
8642
          # We have reworked collect2
 
8643
          hardcode_direct=yes
 
8644
          else
 
8645
          # We have old collect2
 
8646
          hardcode_direct=unsupported
 
8647
          # It fails to find uninstalled libraries when the uninstalled
 
8648
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8649
          # to unsupported forces relinking
 
8650
          hardcode_minus_L=yes
 
8651
          hardcode_libdir_flag_spec='-L$libdir'
 
8652
          hardcode_libdir_separator=
 
8653
          fi
 
8654
          ;;
 
8655
        esac
 
8656
        shared_flag='-shared'
 
8657
        if test "$aix_use_runtimelinking" = yes; then
 
8658
          shared_flag="$shared_flag "'${wl}-G'
 
8659
        fi
 
8660
      else
 
8661
        # not using gcc
 
8662
        if test "$host_cpu" = ia64; then
 
8663
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8664
        # chokes on -Wl,-G. The following line is correct:
 
8665
          shared_flag='-G'
 
8666
        else
 
8667
          if test "$aix_use_runtimelinking" = yes; then
 
8668
            shared_flag='${wl}-G'
 
8669
          else
 
8670
            shared_flag='${wl}-bM:SRE'
 
8671
          fi
 
8672
        fi
 
8673
      fi
 
8674
 
 
8675
      # It seems that -bexpall does not export symbols beginning with
 
8676
      # underscore (_), so it is better to generate a list of symbols to export.
 
8677
      always_export_symbols=yes
 
8678
      if test "$aix_use_runtimelinking" = yes; then
 
8679
        # Warning - without using the other runtime loading flags (-brtl),
 
8680
        # -berok will link without error, but may produce a broken library.
 
8681
        allow_undefined_flag='-berok'
 
8682
       # Determine the default libpath from the value encoded in an empty executable.
 
8683
       cat >conftest.$ac_ext <<_ACEOF
 
8684
/* confdefs.h.  */
 
8685
_ACEOF
 
8686
cat confdefs.h >>conftest.$ac_ext
 
8687
cat >>conftest.$ac_ext <<_ACEOF
 
8688
/* end confdefs.h.  */
 
8689
 
 
8690
int
 
8691
main ()
 
8692
{
 
8693
 
 
8694
  ;
 
8695
  return 0;
 
8696
}
 
8697
_ACEOF
 
8698
rm -f conftest.$ac_objext conftest$ac_exeext
 
8699
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8700
  (eval $ac_link) 2>conftest.er1
 
8701
  ac_status=$?
 
8702
  grep -v '^ *+' conftest.er1 >conftest.err
 
8703
  rm -f conftest.er1
 
8704
  cat conftest.err >&5
 
8705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8706
  (exit $ac_status); } &&
 
8707
         { ac_try='test -z "$ac_c_werror_flag"
 
8708
                         || test ! -s conftest.err'
 
8709
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8710
  (eval $ac_try) 2>&5
 
8711
  ac_status=$?
 
8712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8713
  (exit $ac_status); }; } &&
 
8714
         { ac_try='test -s conftest$ac_exeext'
 
8715
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8716
  (eval $ac_try) 2>&5
 
8717
  ac_status=$?
 
8718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8719
  (exit $ac_status); }; }; then
 
8720
 
 
8721
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8722
}'`
 
8723
# Check for a 64-bit object if we didn't find anything.
 
8724
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8725
}'`; fi
 
8726
else
 
8727
  echo "$as_me: failed program was:" >&5
 
8728
sed 's/^/| /' conftest.$ac_ext >&5
 
8729
 
 
8730
fi
 
8731
rm -f conftest.err conftest.$ac_objext \
 
8732
      conftest$ac_exeext conftest.$ac_ext
 
8733
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8734
 
 
8735
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8736
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8737
       else
 
8738
        if test "$host_cpu" = ia64; then
 
8739
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8740
          allow_undefined_flag="-z nodefs"
 
8741
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
8742
        else
 
8743
         # Determine the default libpath from the value encoded in an empty executable.
 
8744
         cat >conftest.$ac_ext <<_ACEOF
 
8745
/* confdefs.h.  */
 
8746
_ACEOF
 
8747
cat confdefs.h >>conftest.$ac_ext
 
8748
cat >>conftest.$ac_ext <<_ACEOF
 
8749
/* end confdefs.h.  */
 
8750
 
 
8751
int
 
8752
main ()
 
8753
{
 
8754
 
 
8755
  ;
 
8756
  return 0;
 
8757
}
 
8758
_ACEOF
 
8759
rm -f conftest.$ac_objext conftest$ac_exeext
 
8760
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8761
  (eval $ac_link) 2>conftest.er1
 
8762
  ac_status=$?
 
8763
  grep -v '^ *+' conftest.er1 >conftest.err
 
8764
  rm -f conftest.er1
 
8765
  cat conftest.err >&5
 
8766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8767
  (exit $ac_status); } &&
 
8768
         { ac_try='test -z "$ac_c_werror_flag"
 
8769
                         || test ! -s conftest.err'
 
8770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8771
  (eval $ac_try) 2>&5
 
8772
  ac_status=$?
 
8773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8774
  (exit $ac_status); }; } &&
 
8775
         { ac_try='test -s conftest$ac_exeext'
 
8776
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8777
  (eval $ac_try) 2>&5
 
8778
  ac_status=$?
 
8779
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8780
  (exit $ac_status); }; }; then
 
8781
 
 
8782
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8783
}'`
 
8784
# Check for a 64-bit object if we didn't find anything.
 
8785
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8786
}'`; fi
 
8787
else
 
8788
  echo "$as_me: failed program was:" >&5
 
8789
sed 's/^/| /' conftest.$ac_ext >&5
 
8790
 
 
8791
fi
 
8792
rm -f conftest.err conftest.$ac_objext \
 
8793
      conftest$ac_exeext conftest.$ac_ext
 
8794
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8795
 
 
8796
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8797
          # Warning - without using the other run time loading flags,
 
8798
          # -berok will link without error, but may produce a broken library.
 
8799
          no_undefined_flag=' ${wl}-bernotok'
 
8800
          allow_undefined_flag=' ${wl}-berok'
 
8801
          # Exported symbols can be pulled into shared objects from archives
 
8802
          whole_archive_flag_spec='$convenience'
 
8803
          archive_cmds_need_lc=yes
 
8804
          # This is similar to how AIX traditionally builds its shared libraries.
 
8805
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
8806
        fi
 
8807
      fi
 
8808
      ;;
 
8809
 
 
8810
    amigaos*)
 
8811
      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)'
 
8812
      hardcode_libdir_flag_spec='-L$libdir'
 
8813
      hardcode_minus_L=yes
 
8814
      # see comment about different semantics on the GNU ld section
 
8815
      ld_shlibs=no
 
8816
      ;;
 
8817
 
 
8818
    bsdi[45]*)
 
8819
      export_dynamic_flag_spec=-rdynamic
 
8820
      ;;
 
8821
 
 
8822
    cygwin* | mingw* | pw32*)
 
8823
      # When not using gcc, we currently assume that we are using
 
8824
      # Microsoft Visual C++.
 
8825
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8826
      # no search path for DLLs.
 
8827
      hardcode_libdir_flag_spec=' '
 
8828
      allow_undefined_flag=unsupported
 
8829
      # Tell ltmain to make .lib files, not .a files.
 
8830
      libext=lib
 
8831
      # Tell ltmain to make .dll files, not .so files.
 
8832
      shrext_cmds=".dll"
 
8833
      # FIXME: Setting linknames here is a bad hack.
 
8834
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8835
      # The linker will automatically build a .lib file if we build a DLL.
 
8836
      old_archive_From_new_cmds='true'
 
8837
      # FIXME: Should let the user specify the lib program.
 
8838
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8839
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8840
      enable_shared_with_static_runtimes=yes
 
8841
      ;;
 
8842
 
 
8843
    darwin* | rhapsody*)
 
8844
      case $host_os in
 
8845
        rhapsody* | darwin1.[012])
 
8846
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8847
         ;;
 
8848
       *) # Darwin 1.3 on
 
8849
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8850
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8851
         else
 
8852
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8853
             10.[012])
 
8854
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8855
               ;;
 
8856
             10.*)
 
8857
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8858
               ;;
 
8859
           esac
 
8860
         fi
 
8861
         ;;
 
8862
      esac
 
8863
      archive_cmds_need_lc=no
 
8864
      hardcode_direct=no
 
8865
      hardcode_automatic=yes
 
8866
      hardcode_shlibpath_var=unsupported
 
8867
      whole_archive_flag_spec=''
 
8868
      link_all_deplibs=yes
 
8869
    if test "$GCC" = yes ; then
 
8870
        output_verbose_link_cmd='echo'
 
8871
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8872
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8873
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8874
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8875
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8876
    else
 
8877
      case $cc_basename in
 
8878
        xlc*)
 
8879
         output_verbose_link_cmd='echo'
 
8880
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8881
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8882
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8883
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8884
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8885
          ;;
 
8886
       *)
 
8887
         ld_shlibs=no
 
8888
          ;;
 
8889
      esac
 
8890
    fi
 
8891
      ;;
 
8892
 
 
8893
    dgux*)
 
8894
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8895
      hardcode_libdir_flag_spec='-L$libdir'
 
8896
      hardcode_shlibpath_var=no
 
8897
      ;;
 
8898
 
 
8899
    freebsd1*)
 
8900
      ld_shlibs=no
 
8901
      ;;
 
8902
 
 
8903
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8904
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8905
    # does not break anything, and helps significantly (at the cost of a little
 
8906
    # extra space).
 
8907
    freebsd2.2*)
 
8908
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8909
      hardcode_libdir_flag_spec='-R$libdir'
 
8910
      hardcode_direct=yes
 
8911
      hardcode_shlibpath_var=no
 
8912
      ;;
 
8913
 
 
8914
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8915
    freebsd2*)
 
8916
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8917
      hardcode_direct=yes
 
8918
      hardcode_minus_L=yes
 
8919
      hardcode_shlibpath_var=no
 
8920
      ;;
 
8921
 
 
8922
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8923
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
8924
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8925
      hardcode_libdir_flag_spec='-R$libdir'
 
8926
      hardcode_direct=yes
 
8927
      hardcode_shlibpath_var=no
 
8928
      ;;
 
8929
 
 
8930
    hpux9*)
 
8931
      if test "$GCC" = yes; then
 
8932
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8933
      else
 
8934
        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'
 
8935
      fi
 
8936
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8937
      hardcode_libdir_separator=:
 
8938
      hardcode_direct=yes
 
8939
 
 
8940
      # hardcode_minus_L: Not really in the search PATH,
 
8941
      # but as the default location of the library.
 
8942
      hardcode_minus_L=yes
 
8943
      export_dynamic_flag_spec='${wl}-E'
 
8944
      ;;
 
8945
 
 
8946
    hpux10*)
 
8947
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8948
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8949
      else
 
8950
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8951
      fi
 
8952
      if test "$with_gnu_ld" = no; then
 
8953
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8954
        hardcode_libdir_separator=:
 
8955
 
 
8956
        hardcode_direct=yes
 
8957
        export_dynamic_flag_spec='${wl}-E'
 
8958
 
 
8959
        # hardcode_minus_L: Not really in the search PATH,
 
8960
        # but as the default location of the library.
 
8961
        hardcode_minus_L=yes
 
8962
      fi
 
8963
      ;;
 
8964
 
 
8965
    hpux11*)
 
8966
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8967
        case $host_cpu in
 
8968
        hppa*64*)
 
8969
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8970
          ;;
 
8971
        ia64*)
 
8972
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8973
          ;;
 
8974
        *)
 
8975
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8976
          ;;
 
8977
        esac
 
8978
      else
 
8979
        case $host_cpu in
 
8980
        hppa*64*)
 
8981
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8982
          ;;
 
8983
        ia64*)
 
8984
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8985
          ;;
 
8986
        *)
 
8987
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8988
          ;;
 
8989
        esac
 
8990
      fi
 
8991
      if test "$with_gnu_ld" = no; then
 
8992
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8993
        hardcode_libdir_separator=:
 
8994
 
 
8995
        case $host_cpu in
 
8996
        hppa*64*|ia64*)
 
8997
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8998
          hardcode_direct=no
 
8999
          hardcode_shlibpath_var=no
 
9000
          ;;
 
9001
        *)
 
9002
          hardcode_direct=yes
 
9003
          export_dynamic_flag_spec='${wl}-E'
 
9004
 
 
9005
          # hardcode_minus_L: Not really in the search PATH,
 
9006
          # but as the default location of the library.
 
9007
          hardcode_minus_L=yes
 
9008
          ;;
 
9009
        esac
 
9010
      fi
 
9011
      ;;
 
9012
 
 
9013
    irix5* | irix6* | nonstopux*)
 
9014
      if test "$GCC" = yes; then
 
9015
        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'
 
9016
      else
 
9017
        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'
 
9018
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9019
      fi
 
9020
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9021
      hardcode_libdir_separator=:
 
9022
      link_all_deplibs=yes
 
9023
      ;;
 
9024
 
 
9025
    netbsd*)
 
9026
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9027
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9028
      else
 
9029
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9030
      fi
 
9031
      hardcode_libdir_flag_spec='-R$libdir'
 
9032
      hardcode_direct=yes
 
9033
      hardcode_shlibpath_var=no
 
9034
      ;;
 
9035
 
 
9036
    newsos6)
 
9037
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9038
      hardcode_direct=yes
 
9039
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9040
      hardcode_libdir_separator=:
 
9041
      hardcode_shlibpath_var=no
 
9042
      ;;
 
9043
 
 
9044
    openbsd*)
 
9045
      hardcode_direct=yes
 
9046
      hardcode_shlibpath_var=no
 
9047
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9048
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9049
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9050
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9051
        export_dynamic_flag_spec='${wl}-E'
 
9052
      else
 
9053
       case $host_os in
 
9054
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9055
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9056
           hardcode_libdir_flag_spec='-R$libdir'
 
9057
           ;;
 
9058
         *)
 
9059
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9060
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9061
           ;;
 
9062
       esac
 
9063
      fi
 
9064
      ;;
 
9065
 
 
9066
    os2*)
 
9067
      hardcode_libdir_flag_spec='-L$libdir'
 
9068
      hardcode_minus_L=yes
 
9069
      allow_undefined_flag=unsupported
 
9070
      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'
 
9071
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9072
      ;;
 
9073
 
 
9074
    osf3*)
 
9075
      if test "$GCC" = yes; then
 
9076
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9077
        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'
 
9078
      else
 
9079
        allow_undefined_flag=' -expect_unresolved \*'
 
9080
        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'
 
9081
      fi
 
9082
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9083
      hardcode_libdir_separator=:
 
9084
      ;;
 
9085
 
 
9086
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9087
      if test "$GCC" = yes; then
 
9088
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9089
        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'
 
9090
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9091
      else
 
9092
        allow_undefined_flag=' -expect_unresolved \*'
 
9093
        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'
 
9094
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
9095
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
9096
 
 
9097
        # Both c and cxx compiler support -rpath directly
 
9098
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9099
      fi
 
9100
      hardcode_libdir_separator=:
 
9101
      ;;
 
9102
 
 
9103
    solaris*)
 
9104
      no_undefined_flag=' -z text'
 
9105
      if test "$GCC" = yes; then
 
9106
        wlarc='${wl}'
 
9107
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9108
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9109
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9110
      else
 
9111
        wlarc=''
 
9112
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9113
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9114
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9115
      fi
 
9116
      hardcode_libdir_flag_spec='-R$libdir'
 
9117
      hardcode_shlibpath_var=no
 
9118
      case $host_os in
 
9119
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9120
      *)
 
9121
        # The compiler driver will combine linker options so we
 
9122
        # cannot just pass the convience library names through
 
9123
        # without $wl, iff we do not link with $LD.
 
9124
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
9125
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9126
        case $wlarc in
 
9127
        '')
 
9128
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
9129
        *)
 
9130
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
9131
        esac ;;
 
9132
      esac
 
9133
      link_all_deplibs=yes
 
9134
      ;;
 
9135
 
 
9136
    sunos4*)
 
9137
      if test "x$host_vendor" = xsequent; then
 
9138
        # Use $CC to link under sequent, because it throws in some extra .o
 
9139
        # files that make .init and .fini sections work.
 
9140
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9141
      else
 
9142
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9143
      fi
 
9144
      hardcode_libdir_flag_spec='-L$libdir'
 
9145
      hardcode_direct=yes
 
9146
      hardcode_minus_L=yes
 
9147
      hardcode_shlibpath_var=no
 
9148
      ;;
 
9149
 
 
9150
    sysv4)
 
9151
      case $host_vendor in
 
9152
        sni)
 
9153
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9154
          hardcode_direct=yes # is this really true???
 
9155
        ;;
 
9156
        siemens)
 
9157
          ## LD is ld it makes a PLAMLIB
 
9158
          ## CC just makes a GrossModule.
 
9159
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9160
          reload_cmds='$CC -r -o $output$reload_objs'
 
9161
          hardcode_direct=no
 
9162
        ;;
 
9163
        motorola)
 
9164
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9165
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9166
        ;;
 
9167
      esac
 
9168
      runpath_var='LD_RUN_PATH'
 
9169
      hardcode_shlibpath_var=no
 
9170
      ;;
 
9171
 
 
9172
    sysv4.3*)
 
9173
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9174
      hardcode_shlibpath_var=no
 
9175
      export_dynamic_flag_spec='-Bexport'
 
9176
      ;;
 
9177
 
 
9178
    sysv4*MP*)
 
9179
      if test -d /usr/nec; then
 
9180
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9181
        hardcode_shlibpath_var=no
 
9182
        runpath_var=LD_RUN_PATH
 
9183
        hardcode_runpath_var=yes
 
9184
        ld_shlibs=yes
 
9185
      fi
 
9186
      ;;
 
9187
 
 
9188
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
9189
      no_undefined_flag='${wl}-z,text'
 
9190
      archive_cmds_need_lc=no
 
9191
      hardcode_shlibpath_var=no
 
9192
      runpath_var='LD_RUN_PATH'
 
9193
 
 
9194
      if test "$GCC" = yes; then
 
9195
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9196
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9197
      else
 
9198
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9199
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9200
      fi
 
9201
      ;;
 
9202
 
 
9203
    sysv5* | sco3.2v5* | sco5v6*)
 
9204
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9205
      # link with -lc, and that would cause any symbols used from libc to
 
9206
      # always be unresolved, which means just about no library would
 
9207
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9208
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9209
      # as -z defs.
 
9210
      no_undefined_flag='${wl}-z,text'
 
9211
      allow_undefined_flag='${wl}-z,nodefs'
 
9212
      archive_cmds_need_lc=no
 
9213
      hardcode_shlibpath_var=no
 
9214
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9215
      hardcode_libdir_separator=':'
 
9216
      link_all_deplibs=yes
 
9217
      export_dynamic_flag_spec='${wl}-Bexport'
 
9218
      runpath_var='LD_RUN_PATH'
 
9219
 
 
9220
      if test "$GCC" = yes; then
 
9221
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9222
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9223
      else
 
9224
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9225
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9226
      fi
 
9227
      ;;
 
9228
 
 
9229
    uts4*)
 
9230
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9231
      hardcode_libdir_flag_spec='-L$libdir'
 
9232
      hardcode_shlibpath_var=no
 
9233
      ;;
 
9234
 
 
9235
    *)
 
9236
      ld_shlibs=no
 
9237
      ;;
 
9238
    esac
 
9239
  fi
 
9240
 
 
9241
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9242
echo "${ECHO_T}$ld_shlibs" >&6
 
9243
test "$ld_shlibs" = no && can_build_shared=no
 
9244
 
 
9245
#
 
9246
# Do we need to explicitly link libc?
 
9247
#
 
9248
case "x$archive_cmds_need_lc" in
 
9249
x|xyes)
 
9250
  # Assume -lc should be added
 
9251
  archive_cmds_need_lc=yes
 
9252
 
 
9253
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9254
    case $archive_cmds in
 
9255
    *'~'*)
 
9256
      # FIXME: we may have to deal with multi-command sequences.
 
9257
      ;;
 
9258
    '$CC '*)
 
9259
      # Test whether the compiler implicitly links with -lc since on some
 
9260
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9261
      # to ld, don't add -lc before -lgcc.
 
9262
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9263
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
9264
      $rm conftest*
 
9265
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9266
 
 
9267
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9268
  (eval $ac_compile) 2>&5
 
9269
  ac_status=$?
 
9270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9271
  (exit $ac_status); } 2>conftest.err; then
 
9272
        soname=conftest
 
9273
        lib=conftest
 
9274
        libobjs=conftest.$ac_objext
 
9275
        deplibs=
 
9276
        wl=$lt_prog_compiler_wl
 
9277
        pic_flag=$lt_prog_compiler_pic
 
9278
        compiler_flags=-v
 
9279
        linker_flags=-v
 
9280
        verstring=
 
9281
        output_objdir=.
 
9282
        libname=conftest
 
9283
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9284
        allow_undefined_flag=
 
9285
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9286
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9287
  ac_status=$?
 
9288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9289
  (exit $ac_status); }
 
9290
        then
 
9291
          archive_cmds_need_lc=no
 
9292
        else
 
9293
          archive_cmds_need_lc=yes
 
9294
        fi
 
9295
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9296
      else
 
9297
        cat conftest.err 1>&5
 
9298
      fi
 
9299
      $rm conftest*
 
9300
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9301
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
9302
      ;;
 
9303
    esac
 
9304
  fi
 
9305
  ;;
 
9306
esac
 
9307
 
 
9308
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9309
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
9310
library_names_spec=
 
9311
libname_spec='lib$name'
 
9312
soname_spec=
 
9313
shrext_cmds=".so"
 
9314
postinstall_cmds=
 
9315
postuninstall_cmds=
 
9316
finish_cmds=
 
9317
finish_eval=
 
9318
shlibpath_var=
 
9319
shlibpath_overrides_runpath=unknown
 
9320
version_type=none
 
9321
dynamic_linker="$host_os ld.so"
 
9322
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9323
if test "$GCC" = yes; then
 
9324
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9325
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
9326
    # if the path contains ";" then we assume it to be the separator
 
9327
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9328
    # assumed that no part of a normal pathname contains ";" but that should
 
9329
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9330
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9331
  else
 
9332
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9333
  fi
 
9334
else
 
9335
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9336
fi
 
9337
need_lib_prefix=unknown
 
9338
hardcode_into_libs=no
 
9339
 
 
9340
# when you set need_version to no, make sure it does not cause -set_version
 
9341
# flags to be left without arguments
 
9342
need_version=unknown
 
9343
 
 
9344
case $host_os in
 
9345
aix3*)
 
9346
  version_type=linux
 
9347
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9348
  shlibpath_var=LIBPATH
 
9349
 
 
9350
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9351
  soname_spec='${libname}${release}${shared_ext}$major'
 
9352
  ;;
 
9353
 
 
9354
aix4* | aix5*)
 
9355
  version_type=linux
 
9356
  need_lib_prefix=no
 
9357
  need_version=no
 
9358
  hardcode_into_libs=yes
 
9359
  if test "$host_cpu" = ia64; then
 
9360
    # AIX 5 supports IA64
 
9361
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9362
    shlibpath_var=LD_LIBRARY_PATH
 
9363
  else
 
9364
    # With GCC up to 2.95.x, collect2 would create an import file
 
9365
    # for dependence libraries.  The import file would start with
 
9366
    # the line `#! .'.  This would cause the generated library to
 
9367
    # depend on `.', always an invalid library.  This was fixed in
 
9368
    # development snapshots of GCC prior to 3.0.
 
9369
    case $host_os in
 
9370
      aix4 | aix4.[01] | aix4.[01].*)
 
9371
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9372
           echo ' yes '
 
9373
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9374
        :
 
9375
      else
 
9376
        can_build_shared=no
 
9377
      fi
 
9378
      ;;
 
9379
    esac
 
9380
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9381
    # soname into executable. Probably we can add versioning support to
 
9382
    # collect2, so additional links can be useful in future.
 
9383
    if test "$aix_use_runtimelinking" = yes; then
 
9384
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9385
      # instead of lib<name>.a to let people know that these are not
 
9386
      # typical AIX shared libraries.
 
9387
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9388
    else
 
9389
      # We preserve .a as extension for shared libraries through AIX4.2
 
9390
      # and later when we are not doing run time linking.
 
9391
      library_names_spec='${libname}${release}.a $libname.a'
 
9392
      soname_spec='${libname}${release}${shared_ext}$major'
 
9393
    fi
 
9394
    shlibpath_var=LIBPATH
 
9395
  fi
 
9396
  ;;
 
9397
 
 
9398
amigaos*)
 
9399
  library_names_spec='$libname.ixlibrary $libname.a'
 
9400
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9401
  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'
 
9402
  ;;
 
9403
 
 
9404
beos*)
 
9405
  library_names_spec='${libname}${shared_ext}'
 
9406
  dynamic_linker="$host_os ld.so"
 
9407
  shlibpath_var=LIBRARY_PATH
 
9408
  ;;
 
9409
 
 
9410
bsdi[45]*)
 
9411
  version_type=linux
 
9412
  need_version=no
 
9413
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9414
  soname_spec='${libname}${release}${shared_ext}$major'
 
9415
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9416
  shlibpath_var=LD_LIBRARY_PATH
 
9417
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9418
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9419
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9420
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9421
  # libtool to hard-code these into programs
 
9422
  ;;
 
9423
 
 
9424
cygwin* | mingw* | pw32*)
 
9425
  version_type=windows
 
9426
  shrext_cmds=".dll"
 
9427
  need_version=no
 
9428
  need_lib_prefix=no
 
9429
 
 
9430
  case $GCC,$host_os in
 
9431
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9432
    library_names_spec='$libname.dll.a'
 
9433
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9434
    postinstall_cmds='base_file=`basename \${file}`~
 
9435
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9436
      dldir=$destdir/`dirname \$dlpath`~
 
9437
      test -d \$dldir || mkdir -p \$dldir~
 
9438
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9439
      chmod a+x \$dldir/$dlname'
 
9440
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9441
      dlpath=$dir/\$dldll~
 
9442
       $rm \$dlpath'
 
9443
    shlibpath_overrides_runpath=yes
 
9444
 
 
9445
    case $host_os in
 
9446
    cygwin*)
 
9447
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9448
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9449
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9450
      ;;
 
9451
    mingw*)
 
9452
      # MinGW DLLs use traditional 'lib' prefix
 
9453
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9454
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9455
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9456
        # It is most probably a Windows format PATH printed by
 
9457
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9458
        # path with ; separators, and with drive letters. We can handle the
 
9459
        # drive letters (cygwin fileutils understands them), so leave them,
 
9460
        # especially as we might pass files found there to a mingw objdump,
 
9461
        # which wouldn't understand a cygwinified path. Ahh.
 
9462
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9463
      else
 
9464
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9465
      fi
 
9466
      ;;
 
9467
    pw32*)
 
9468
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9469
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9470
      ;;
 
9471
    esac
 
9472
    ;;
 
9473
 
 
9474
  *)
 
9475
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9476
    ;;
 
9477
  esac
 
9478
  dynamic_linker='Win32 ld.exe'
 
9479
  # FIXME: first we should search . and the directory the executable is in
 
9480
  shlibpath_var=PATH
 
9481
  ;;
 
9482
 
 
9483
darwin* | rhapsody*)
 
9484
  dynamic_linker="$host_os dyld"
 
9485
  version_type=darwin
 
9486
  need_lib_prefix=no
 
9487
  need_version=no
 
9488
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9489
  soname_spec='${libname}${release}${major}$shared_ext'
 
9490
  shlibpath_overrides_runpath=yes
 
9491
  shlibpath_var=DYLD_LIBRARY_PATH
 
9492
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9493
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
9494
  if test "$GCC" = yes; then
 
9495
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
9496
  else
 
9497
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
9498
  fi
 
9499
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9500
  ;;
 
9501
 
 
9502
dgux*)
 
9503
  version_type=linux
 
9504
  need_lib_prefix=no
 
9505
  need_version=no
 
9506
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9507
  soname_spec='${libname}${release}${shared_ext}$major'
 
9508
  shlibpath_var=LD_LIBRARY_PATH
 
9509
  ;;
 
9510
 
 
9511
freebsd1*)
 
9512
  dynamic_linker=no
 
9513
  ;;
 
9514
 
 
9515
kfreebsd*-gnu)
 
9516
  version_type=linux
 
9517
  need_lib_prefix=no
 
9518
  need_version=no
 
9519
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9520
  soname_spec='${libname}${release}${shared_ext}$major'
 
9521
  shlibpath_var=LD_LIBRARY_PATH
 
9522
  shlibpath_overrides_runpath=no
 
9523
  hardcode_into_libs=yes
 
9524
  dynamic_linker='GNU ld.so'
 
9525
  ;;
 
9526
 
 
9527
freebsd* | dragonfly*)
 
9528
  # DragonFly does not have aout.  When/if they implement a new
 
9529
  # versioning mechanism, adjust this.
 
9530
  if test -x /usr/bin/objformat; then
 
9531
    objformat=`/usr/bin/objformat`
 
9532
  else
 
9533
    case $host_os in
 
9534
    freebsd[123]*) objformat=aout ;;
 
9535
    *) objformat=elf ;;
 
9536
    esac
 
9537
  fi
 
9538
  version_type=freebsd-$objformat
 
9539
  case $version_type in
 
9540
    freebsd-elf*)
 
9541
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9542
      need_version=no
 
9543
      need_lib_prefix=no
 
9544
      ;;
 
9545
    freebsd-*)
 
9546
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9547
      need_version=yes
 
9548
      ;;
 
9549
  esac
 
9550
  shlibpath_var=LD_LIBRARY_PATH
 
9551
  case $host_os in
 
9552
  freebsd2*)
 
9553
    shlibpath_overrides_runpath=yes
 
9554
    ;;
 
9555
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9556
    shlibpath_overrides_runpath=yes
 
9557
    hardcode_into_libs=yes
 
9558
    ;;
 
9559
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9560
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9561
    shlibpath_overrides_runpath=no
 
9562
    hardcode_into_libs=yes
 
9563
    ;;
 
9564
  freebsd*) # from 4.6 on
 
9565
    shlibpath_overrides_runpath=yes
 
9566
    hardcode_into_libs=yes
 
9567
    ;;
 
9568
  esac
 
9569
  ;;
 
9570
 
 
9571
gnu*)
 
9572
  version_type=linux
 
9573
  need_lib_prefix=no
 
9574
  need_version=no
 
9575
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9576
  soname_spec='${libname}${release}${shared_ext}$major'
 
9577
  shlibpath_var=LD_LIBRARY_PATH
 
9578
  hardcode_into_libs=yes
 
9579
  ;;
 
9580
 
 
9581
hpux9* | hpux10* | hpux11*)
 
9582
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9583
  # link against other versions.
 
9584
  version_type=sunos
 
9585
  need_lib_prefix=no
 
9586
  need_version=no
 
9587
  case $host_cpu in
 
9588
  ia64*)
 
9589
    shrext_cmds='.so'
 
9590
    hardcode_into_libs=yes
 
9591
    dynamic_linker="$host_os dld.so"
 
9592
    shlibpath_var=LD_LIBRARY_PATH
 
9593
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9594
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9595
    soname_spec='${libname}${release}${shared_ext}$major'
 
9596
    if test "X$HPUX_IA64_MODE" = X32; then
 
9597
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9598
    else
 
9599
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9600
    fi
 
9601
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9602
    ;;
 
9603
   hppa*64*)
 
9604
     shrext_cmds='.sl'
 
9605
     hardcode_into_libs=yes
 
9606
     dynamic_linker="$host_os dld.sl"
 
9607
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9608
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9609
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9610
     soname_spec='${libname}${release}${shared_ext}$major'
 
9611
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9612
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9613
     ;;
 
9614
   *)
 
9615
    shrext_cmds='.sl'
 
9616
    dynamic_linker="$host_os dld.sl"
 
9617
    shlibpath_var=SHLIB_PATH
 
9618
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9619
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9620
    soname_spec='${libname}${release}${shared_ext}$major'
 
9621
    ;;
 
9622
  esac
 
9623
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9624
  postinstall_cmds='chmod 555 $lib'
 
9625
  ;;
 
9626
 
 
9627
interix3*)
 
9628
  version_type=linux
 
9629
  need_lib_prefix=no
 
9630
  need_version=no
 
9631
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9632
  soname_spec='${libname}${release}${shared_ext}$major'
 
9633
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9634
  shlibpath_var=LD_LIBRARY_PATH
 
9635
  shlibpath_overrides_runpath=no
 
9636
  hardcode_into_libs=yes
 
9637
  ;;
 
9638
 
 
9639
irix5* | irix6* | nonstopux*)
 
9640
  case $host_os in
 
9641
    nonstopux*) version_type=nonstopux ;;
 
9642
    *)
 
9643
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9644
                version_type=linux
 
9645
        else
 
9646
                version_type=irix
 
9647
        fi ;;
 
9648
  esac
 
9649
  need_lib_prefix=no
 
9650
  need_version=no
 
9651
  soname_spec='${libname}${release}${shared_ext}$major'
 
9652
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9653
  case $host_os in
 
9654
  irix5* | nonstopux*)
 
9655
    libsuff= shlibsuff=
 
9656
    ;;
 
9657
  *)
 
9658
    case $LD in # libtool.m4 will add one of these switches to LD
 
9659
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9660
      libsuff= shlibsuff= libmagic=32-bit;;
 
9661
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9662
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9663
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9664
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9665
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9666
    esac
 
9667
    ;;
 
9668
  esac
 
9669
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9670
  shlibpath_overrides_runpath=no
 
9671
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9672
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9673
  hardcode_into_libs=yes
 
9674
  ;;
 
9675
 
 
9676
# No shared lib support for Linux oldld, aout, or coff.
 
9677
linux*oldld* | linux*aout* | linux*coff*)
 
9678
  dynamic_linker=no
 
9679
  ;;
 
9680
 
 
9681
# This must be Linux ELF.
 
9682
linux*)
 
9683
  version_type=linux
 
9684
  need_lib_prefix=no
 
9685
  need_version=no
 
9686
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9687
  soname_spec='${libname}${release}${shared_ext}$major'
 
9688
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9689
  shlibpath_var=LD_LIBRARY_PATH
 
9690
  shlibpath_overrides_runpath=no
 
9691
  # This implies no fast_install, which is unacceptable.
 
9692
  # Some rework will be needed to allow for fast_install
 
9693
  # before this can be enabled.
 
9694
  hardcode_into_libs=yes
 
9695
 
 
9696
  # find out which ABI we are using
 
9697
  libsuff=
 
9698
  case "$host_cpu" in
 
9699
  x86_64*|s390x*|powerpc64*)
 
9700
    echo '#line 9700 "configure"' > conftest.$ac_ext
 
9701
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9702
  (eval $ac_compile) 2>&5
 
9703
  ac_status=$?
 
9704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9705
  (exit $ac_status); }; then
 
9706
      case `/usr/bin/file conftest.$ac_objext` in
 
9707
      *64-bit*)
 
9708
        libsuff=64
 
9709
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
9710
        ;;
 
9711
      esac
 
9712
    fi
 
9713
    rm -rf conftest*
 
9714
    ;;
 
9715
  esac
 
9716
 
 
9717
  # Append ld.so.conf contents to the search path
 
9718
  if test -f /etc/ld.so.conf; then
 
9719
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9720
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
9721
  fi
 
9722
 
 
9723
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9724
  # powerpc, because MkLinux only supported shared libraries with the
 
9725
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9726
  # most powerpc-linux boxes support dynamic linking these days and
 
9727
  # people can always --disable-shared, the test was removed, and we
 
9728
  # assume the GNU/Linux dynamic linker is in use.
 
9729
  dynamic_linker='GNU/Linux ld.so'
 
9730
  ;;
 
9731
 
 
9732
knetbsd*-gnu)
 
9733
  version_type=linux
 
9734
  need_lib_prefix=no
 
9735
  need_version=no
 
9736
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9737
  soname_spec='${libname}${release}${shared_ext}$major'
 
9738
  shlibpath_var=LD_LIBRARY_PATH
 
9739
  shlibpath_overrides_runpath=no
 
9740
  hardcode_into_libs=yes
 
9741
  dynamic_linker='GNU ld.so'
 
9742
  ;;
 
9743
 
 
9744
netbsd*)
 
9745
  version_type=sunos
 
9746
  need_lib_prefix=no
 
9747
  need_version=no
 
9748
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9749
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9750
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9751
    dynamic_linker='NetBSD (a.out) ld.so'
 
9752
  else
 
9753
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9754
    soname_spec='${libname}${release}${shared_ext}$major'
 
9755
    dynamic_linker='NetBSD ld.elf_so'
 
9756
  fi
 
9757
  shlibpath_var=LD_LIBRARY_PATH
 
9758
  shlibpath_overrides_runpath=yes
 
9759
  hardcode_into_libs=yes
 
9760
  ;;
 
9761
 
 
9762
newsos6)
 
9763
  version_type=linux
 
9764
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9765
  shlibpath_var=LD_LIBRARY_PATH
 
9766
  shlibpath_overrides_runpath=yes
 
9767
  ;;
 
9768
 
 
9769
nto-qnx*)
 
9770
  version_type=linux
 
9771
  need_lib_prefix=no
 
9772
  need_version=no
 
9773
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9774
  soname_spec='${libname}${release}${shared_ext}$major'
 
9775
  shlibpath_var=LD_LIBRARY_PATH
 
9776
  shlibpath_overrides_runpath=yes
 
9777
  ;;
 
9778
 
 
9779
openbsd*)
 
9780
  version_type=sunos
 
9781
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9782
  need_lib_prefix=no
 
9783
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9784
  case $host_os in
 
9785
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9786
    *)                         need_version=no  ;;
 
9787
  esac
 
9788
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9789
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9790
  shlibpath_var=LD_LIBRARY_PATH
 
9791
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9792
    case $host_os in
 
9793
      openbsd2.[89] | openbsd2.[89].*)
 
9794
        shlibpath_overrides_runpath=no
 
9795
        ;;
 
9796
      *)
 
9797
        shlibpath_overrides_runpath=yes
 
9798
        ;;
 
9799
      esac
 
9800
  else
 
9801
    shlibpath_overrides_runpath=yes
 
9802
  fi
 
9803
  ;;
 
9804
 
 
9805
os2*)
 
9806
  libname_spec='$name'
 
9807
  shrext_cmds=".dll"
 
9808
  need_lib_prefix=no
 
9809
  library_names_spec='$libname${shared_ext} $libname.a'
 
9810
  dynamic_linker='OS/2 ld.exe'
 
9811
  shlibpath_var=LIBPATH
 
9812
  ;;
 
9813
 
 
9814
osf3* | osf4* | osf5*)
 
9815
  version_type=osf
 
9816
  need_lib_prefix=no
 
9817
  need_version=no
 
9818
  soname_spec='${libname}${release}${shared_ext}$major'
 
9819
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9820
  shlibpath_var=LD_LIBRARY_PATH
 
9821
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9822
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9823
  ;;
 
9824
 
 
9825
solaris*)
 
9826
  version_type=linux
 
9827
  need_lib_prefix=no
 
9828
  need_version=no
 
9829
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9830
  soname_spec='${libname}${release}${shared_ext}$major'
 
9831
  shlibpath_var=LD_LIBRARY_PATH
 
9832
  shlibpath_overrides_runpath=yes
 
9833
  hardcode_into_libs=yes
 
9834
  # ldd complains unless libraries are executable
 
9835
  postinstall_cmds='chmod +x $lib'
 
9836
  ;;
 
9837
 
 
9838
sunos4*)
 
9839
  version_type=sunos
 
9840
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9841
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9842
  shlibpath_var=LD_LIBRARY_PATH
 
9843
  shlibpath_overrides_runpath=yes
 
9844
  if test "$with_gnu_ld" = yes; then
 
9845
    need_lib_prefix=no
 
9846
  fi
 
9847
  need_version=yes
 
9848
  ;;
 
9849
 
 
9850
sysv4 | sysv4.3*)
 
9851
  version_type=linux
 
9852
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9853
  soname_spec='${libname}${release}${shared_ext}$major'
 
9854
  shlibpath_var=LD_LIBRARY_PATH
 
9855
  case $host_vendor in
 
9856
    sni)
 
9857
      shlibpath_overrides_runpath=no
 
9858
      need_lib_prefix=no
 
9859
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9860
      runpath_var=LD_RUN_PATH
 
9861
      ;;
 
9862
    siemens)
 
9863
      need_lib_prefix=no
 
9864
      ;;
 
9865
    motorola)
 
9866
      need_lib_prefix=no
 
9867
      need_version=no
 
9868
      shlibpath_overrides_runpath=no
 
9869
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9870
      ;;
 
9871
  esac
 
9872
  ;;
 
9873
 
 
9874
sysv4*MP*)
 
9875
  if test -d /usr/nec ;then
 
9876
    version_type=linux
 
9877
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9878
    soname_spec='$libname${shared_ext}.$major'
 
9879
    shlibpath_var=LD_LIBRARY_PATH
 
9880
  fi
 
9881
  ;;
 
9882
 
 
9883
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9884
  version_type=freebsd-elf
 
9885
  need_lib_prefix=no
 
9886
  need_version=no
 
9887
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9888
  soname_spec='${libname}${release}${shared_ext}$major'
 
9889
  shlibpath_var=LD_LIBRARY_PATH
 
9890
  hardcode_into_libs=yes
 
9891
  if test "$with_gnu_ld" = yes; then
 
9892
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9893
    shlibpath_overrides_runpath=no
 
9894
  else
 
9895
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9896
    shlibpath_overrides_runpath=yes
 
9897
    case $host_os in
 
9898
      sco3.2v5*)
 
9899
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9900
        ;;
 
9901
    esac
 
9902
  fi
 
9903
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9904
  ;;
 
9905
 
 
9906
uts4*)
 
9907
  version_type=linux
 
9908
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9909
  soname_spec='${libname}${release}${shared_ext}$major'
 
9910
  shlibpath_var=LD_LIBRARY_PATH
 
9911
  ;;
 
9912
 
 
9913
*)
 
9914
  dynamic_linker=no
 
9915
  ;;
 
9916
esac
 
9917
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9918
echo "${ECHO_T}$dynamic_linker" >&6
 
9919
test "$dynamic_linker" = no && can_build_shared=no
 
9920
 
 
9921
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9922
if test "$GCC" = yes; then
 
9923
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9924
fi
 
9925
 
 
9926
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9927
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
9928
hardcode_action=
 
9929
if test -n "$hardcode_libdir_flag_spec" || \
 
9930
   test -n "$runpath_var" || \
 
9931
   test "X$hardcode_automatic" = "Xyes" ; then
 
9932
 
 
9933
  # We can hardcode non-existant directories.
 
9934
  if test "$hardcode_direct" != no &&
 
9935
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9936
     # have to relink, otherwise we might link with an installed library
 
9937
     # when we should be linking with a yet-to-be-installed one
 
9938
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9939
     test "$hardcode_minus_L" != no; then
 
9940
    # Linking always hardcodes the temporary library directory.
 
9941
    hardcode_action=relink
 
9942
  else
 
9943
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9944
    hardcode_action=immediate
 
9945
  fi
 
9946
else
 
9947
  # We cannot hardcode anything, or else we can only hardcode existing
 
9948
  # directories.
 
9949
  hardcode_action=unsupported
 
9950
fi
 
9951
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9952
echo "${ECHO_T}$hardcode_action" >&6
 
9953
 
 
9954
if test "$hardcode_action" = relink; then
 
9955
  # Fast installation is not supported
 
9956
  enable_fast_install=no
 
9957
elif test "$shlibpath_overrides_runpath" = yes ||
 
9958
     test "$enable_shared" = no; then
 
9959
  # Fast installation is not necessary
 
9960
  enable_fast_install=needless
 
9961
fi
 
9962
 
 
9963
striplib=
 
9964
old_striplib=
 
9965
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9966
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
9967
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9968
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9969
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9970
  echo "$as_me:$LINENO: result: yes" >&5
 
9971
echo "${ECHO_T}yes" >&6
 
9972
else
 
9973
# FIXME - insert some real tests, host_os isn't really good enough
 
9974
  case $host_os in
 
9975
   darwin*)
 
9976
       if test -n "$STRIP" ; then
 
9977
         striplib="$STRIP -x"
 
9978
         echo "$as_me:$LINENO: result: yes" >&5
 
9979
echo "${ECHO_T}yes" >&6
 
9980
       else
 
9981
  echo "$as_me:$LINENO: result: no" >&5
 
9982
echo "${ECHO_T}no" >&6
 
9983
fi
 
9984
       ;;
 
9985
   *)
 
9986
  echo "$as_me:$LINENO: result: no" >&5
 
9987
echo "${ECHO_T}no" >&6
 
9988
    ;;
 
9989
  esac
 
9990
fi
 
9991
 
 
9992
if test "x$enable_dlopen" != xyes; then
 
9993
  enable_dlopen=unknown
 
9994
  enable_dlopen_self=unknown
 
9995
  enable_dlopen_self_static=unknown
 
9996
else
 
9997
  lt_cv_dlopen=no
 
9998
  lt_cv_dlopen_libs=
 
9999
 
 
10000
  case $host_os in
 
10001
  beos*)
 
10002
    lt_cv_dlopen="load_add_on"
 
10003
    lt_cv_dlopen_libs=
 
10004
    lt_cv_dlopen_self=yes
 
10005
    ;;
 
10006
 
 
10007
  mingw* | pw32*)
 
10008
    lt_cv_dlopen="LoadLibrary"
 
10009
    lt_cv_dlopen_libs=
 
10010
   ;;
 
10011
 
 
10012
  cygwin*)
 
10013
    lt_cv_dlopen="dlopen"
 
10014
    lt_cv_dlopen_libs=
 
10015
   ;;
 
10016
 
 
10017
  darwin*)
 
10018
  # if libdl is installed we need to link against it
 
10019
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10020
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10021
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10022
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10023
else
 
10024
  ac_check_lib_save_LIBS=$LIBS
 
10025
LIBS="-ldl  $LIBS"
 
10026
cat >conftest.$ac_ext <<_ACEOF
 
10027
/* confdefs.h.  */
 
10028
_ACEOF
 
10029
cat confdefs.h >>conftest.$ac_ext
 
10030
cat >>conftest.$ac_ext <<_ACEOF
 
10031
/* end confdefs.h.  */
 
10032
 
 
10033
/* Override any gcc2 internal prototype to avoid an error.  */
 
10034
#ifdef __cplusplus
 
10035
extern "C"
 
10036
#endif
 
10037
/* We use char because int might match the return type of a gcc2
 
10038
   builtin and then its argument prototype would still apply.  */
 
10039
char dlopen ();
 
10040
int
 
10041
main ()
 
10042
{
 
10043
dlopen ();
 
10044
  ;
 
10045
  return 0;
 
10046
}
 
10047
_ACEOF
 
10048
rm -f conftest.$ac_objext conftest$ac_exeext
 
10049
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10050
  (eval $ac_link) 2>conftest.er1
 
10051
  ac_status=$?
 
10052
  grep -v '^ *+' conftest.er1 >conftest.err
 
10053
  rm -f conftest.er1
 
10054
  cat conftest.err >&5
 
10055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10056
  (exit $ac_status); } &&
 
10057
         { ac_try='test -z "$ac_c_werror_flag"
 
10058
                         || test ! -s conftest.err'
 
10059
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10060
  (eval $ac_try) 2>&5
 
10061
  ac_status=$?
 
10062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10063
  (exit $ac_status); }; } &&
 
10064
         { ac_try='test -s conftest$ac_exeext'
 
10065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10066
  (eval $ac_try) 2>&5
 
10067
  ac_status=$?
 
10068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10069
  (exit $ac_status); }; }; then
 
10070
  ac_cv_lib_dl_dlopen=yes
 
10071
else
 
10072
  echo "$as_me: failed program was:" >&5
 
10073
sed 's/^/| /' conftest.$ac_ext >&5
 
10074
 
 
10075
ac_cv_lib_dl_dlopen=no
 
10076
fi
 
10077
rm -f conftest.err conftest.$ac_objext \
 
10078
      conftest$ac_exeext conftest.$ac_ext
 
10079
LIBS=$ac_check_lib_save_LIBS
 
10080
fi
 
10081
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10082
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
10083
if test $ac_cv_lib_dl_dlopen = yes; then
 
10084
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10085
else
 
10086
 
 
10087
    lt_cv_dlopen="dyld"
 
10088
    lt_cv_dlopen_libs=
 
10089
    lt_cv_dlopen_self=yes
 
10090
 
 
10091
fi
 
10092
 
 
10093
   ;;
 
10094
 
 
10095
  *)
 
10096
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
10097
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
10098
if test "${ac_cv_func_shl_load+set}" = set; then
 
10099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10100
else
 
10101
  cat >conftest.$ac_ext <<_ACEOF
 
10102
/* confdefs.h.  */
 
10103
_ACEOF
 
10104
cat confdefs.h >>conftest.$ac_ext
 
10105
cat >>conftest.$ac_ext <<_ACEOF
 
10106
/* end confdefs.h.  */
 
10107
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10108
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10109
#define shl_load innocuous_shl_load
 
10110
 
 
10111
/* System header to define __stub macros and hopefully few prototypes,
 
10112
    which can conflict with char shl_load (); below.
 
10113
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10114
    <limits.h> exists even on freestanding compilers.  */
 
10115
 
 
10116
#ifdef __STDC__
 
10117
# include <limits.h>
 
10118
#else
 
10119
# include <assert.h>
 
10120
#endif
 
10121
 
 
10122
#undef shl_load
 
10123
 
 
10124
/* Override any gcc2 internal prototype to avoid an error.  */
 
10125
#ifdef __cplusplus
 
10126
extern "C"
 
10127
{
 
10128
#endif
 
10129
/* We use char because int might match the return type of a gcc2
 
10130
   builtin and then its argument prototype would still apply.  */
 
10131
char shl_load ();
 
10132
/* The GNU C library defines this for functions which it implements
 
10133
    to always fail with ENOSYS.  Some functions are actually named
 
10134
    something starting with __ and the normal name is an alias.  */
 
10135
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
10136
choke me
 
10137
#else
 
10138
char (*f) () = shl_load;
 
10139
#endif
 
10140
#ifdef __cplusplus
 
10141
}
 
10142
#endif
 
10143
 
 
10144
int
 
10145
main ()
 
10146
{
 
10147
return f != shl_load;
 
10148
  ;
 
10149
  return 0;
 
10150
}
 
10151
_ACEOF
 
10152
rm -f conftest.$ac_objext conftest$ac_exeext
 
10153
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10154
  (eval $ac_link) 2>conftest.er1
 
10155
  ac_status=$?
 
10156
  grep -v '^ *+' conftest.er1 >conftest.err
 
10157
  rm -f conftest.er1
 
10158
  cat conftest.err >&5
 
10159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10160
  (exit $ac_status); } &&
 
10161
         { ac_try='test -z "$ac_c_werror_flag"
 
10162
                         || test ! -s conftest.err'
 
10163
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10164
  (eval $ac_try) 2>&5
 
10165
  ac_status=$?
 
10166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10167
  (exit $ac_status); }; } &&
 
10168
         { ac_try='test -s conftest$ac_exeext'
 
10169
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10170
  (eval $ac_try) 2>&5
 
10171
  ac_status=$?
 
10172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10173
  (exit $ac_status); }; }; then
 
10174
  ac_cv_func_shl_load=yes
 
10175
else
 
10176
  echo "$as_me: failed program was:" >&5
 
10177
sed 's/^/| /' conftest.$ac_ext >&5
 
10178
 
 
10179
ac_cv_func_shl_load=no
 
10180
fi
 
10181
rm -f conftest.err conftest.$ac_objext \
 
10182
      conftest$ac_exeext conftest.$ac_ext
 
10183
fi
 
10184
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10185
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
10186
if test $ac_cv_func_shl_load = yes; then
 
10187
  lt_cv_dlopen="shl_load"
 
10188
else
 
10189
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10190
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
10191
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10192
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10193
else
 
10194
  ac_check_lib_save_LIBS=$LIBS
 
10195
LIBS="-ldld  $LIBS"
 
10196
cat >conftest.$ac_ext <<_ACEOF
 
10197
/* confdefs.h.  */
 
10198
_ACEOF
 
10199
cat confdefs.h >>conftest.$ac_ext
 
10200
cat >>conftest.$ac_ext <<_ACEOF
 
10201
/* end confdefs.h.  */
 
10202
 
 
10203
/* Override any gcc2 internal prototype to avoid an error.  */
 
10204
#ifdef __cplusplus
 
10205
extern "C"
 
10206
#endif
 
10207
/* We use char because int might match the return type of a gcc2
 
10208
   builtin and then its argument prototype would still apply.  */
 
10209
char shl_load ();
 
10210
int
 
10211
main ()
 
10212
{
 
10213
shl_load ();
 
10214
  ;
 
10215
  return 0;
 
10216
}
 
10217
_ACEOF
 
10218
rm -f conftest.$ac_objext conftest$ac_exeext
 
10219
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10220
  (eval $ac_link) 2>conftest.er1
 
10221
  ac_status=$?
 
10222
  grep -v '^ *+' conftest.er1 >conftest.err
 
10223
  rm -f conftest.er1
 
10224
  cat conftest.err >&5
 
10225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10226
  (exit $ac_status); } &&
 
10227
         { ac_try='test -z "$ac_c_werror_flag"
 
10228
                         || test ! -s conftest.err'
 
10229
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10230
  (eval $ac_try) 2>&5
 
10231
  ac_status=$?
 
10232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10233
  (exit $ac_status); }; } &&
 
10234
         { ac_try='test -s conftest$ac_exeext'
 
10235
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10236
  (eval $ac_try) 2>&5
 
10237
  ac_status=$?
 
10238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10239
  (exit $ac_status); }; }; then
 
10240
  ac_cv_lib_dld_shl_load=yes
 
10241
else
 
10242
  echo "$as_me: failed program was:" >&5
 
10243
sed 's/^/| /' conftest.$ac_ext >&5
 
10244
 
 
10245
ac_cv_lib_dld_shl_load=no
 
10246
fi
 
10247
rm -f conftest.err conftest.$ac_objext \
 
10248
      conftest$ac_exeext conftest.$ac_ext
 
10249
LIBS=$ac_check_lib_save_LIBS
 
10250
fi
 
10251
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10252
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
10253
if test $ac_cv_lib_dld_shl_load = yes; then
 
10254
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
10255
else
 
10256
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
10257
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
10258
if test "${ac_cv_func_dlopen+set}" = set; then
 
10259
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10260
else
 
10261
  cat >conftest.$ac_ext <<_ACEOF
 
10262
/* confdefs.h.  */
 
10263
_ACEOF
 
10264
cat confdefs.h >>conftest.$ac_ext
 
10265
cat >>conftest.$ac_ext <<_ACEOF
 
10266
/* end confdefs.h.  */
 
10267
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10268
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10269
#define dlopen innocuous_dlopen
 
10270
 
 
10271
/* System header to define __stub macros and hopefully few prototypes,
 
10272
    which can conflict with char dlopen (); below.
 
10273
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10274
    <limits.h> exists even on freestanding compilers.  */
 
10275
 
 
10276
#ifdef __STDC__
 
10277
# include <limits.h>
 
10278
#else
 
10279
# include <assert.h>
 
10280
#endif
 
10281
 
 
10282
#undef dlopen
 
10283
 
 
10284
/* Override any gcc2 internal prototype to avoid an error.  */
 
10285
#ifdef __cplusplus
 
10286
extern "C"
 
10287
{
 
10288
#endif
 
10289
/* We use char because int might match the return type of a gcc2
 
10290
   builtin and then its argument prototype would still apply.  */
 
10291
char dlopen ();
 
10292
/* The GNU C library defines this for functions which it implements
 
10293
    to always fail with ENOSYS.  Some functions are actually named
 
10294
    something starting with __ and the normal name is an alias.  */
 
10295
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
10296
choke me
 
10297
#else
 
10298
char (*f) () = dlopen;
 
10299
#endif
 
10300
#ifdef __cplusplus
 
10301
}
 
10302
#endif
 
10303
 
 
10304
int
 
10305
main ()
 
10306
{
 
10307
return f != dlopen;
 
10308
  ;
 
10309
  return 0;
 
10310
}
 
10311
_ACEOF
 
10312
rm -f conftest.$ac_objext conftest$ac_exeext
 
10313
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10314
  (eval $ac_link) 2>conftest.er1
 
10315
  ac_status=$?
 
10316
  grep -v '^ *+' conftest.er1 >conftest.err
 
10317
  rm -f conftest.er1
 
10318
  cat conftest.err >&5
 
10319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10320
  (exit $ac_status); } &&
 
10321
         { ac_try='test -z "$ac_c_werror_flag"
 
10322
                         || test ! -s conftest.err'
 
10323
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10324
  (eval $ac_try) 2>&5
 
10325
  ac_status=$?
 
10326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10327
  (exit $ac_status); }; } &&
 
10328
         { ac_try='test -s conftest$ac_exeext'
 
10329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10330
  (eval $ac_try) 2>&5
 
10331
  ac_status=$?
 
10332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10333
  (exit $ac_status); }; }; then
 
10334
  ac_cv_func_dlopen=yes
 
10335
else
 
10336
  echo "$as_me: failed program was:" >&5
 
10337
sed 's/^/| /' conftest.$ac_ext >&5
 
10338
 
 
10339
ac_cv_func_dlopen=no
 
10340
fi
 
10341
rm -f conftest.err conftest.$ac_objext \
 
10342
      conftest$ac_exeext conftest.$ac_ext
 
10343
fi
 
10344
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10345
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
10346
if test $ac_cv_func_dlopen = yes; then
 
10347
  lt_cv_dlopen="dlopen"
 
10348
else
 
10349
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10350
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10351
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10352
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10353
else
 
10354
  ac_check_lib_save_LIBS=$LIBS
 
10355
LIBS="-ldl  $LIBS"
 
10356
cat >conftest.$ac_ext <<_ACEOF
 
10357
/* confdefs.h.  */
 
10358
_ACEOF
 
10359
cat confdefs.h >>conftest.$ac_ext
 
10360
cat >>conftest.$ac_ext <<_ACEOF
 
10361
/* end confdefs.h.  */
 
10362
 
 
10363
/* Override any gcc2 internal prototype to avoid an error.  */
 
10364
#ifdef __cplusplus
 
10365
extern "C"
 
10366
#endif
 
10367
/* We use char because int might match the return type of a gcc2
 
10368
   builtin and then its argument prototype would still apply.  */
 
10369
char dlopen ();
 
10370
int
 
10371
main ()
 
10372
{
 
10373
dlopen ();
 
10374
  ;
 
10375
  return 0;
 
10376
}
 
10377
_ACEOF
 
10378
rm -f conftest.$ac_objext conftest$ac_exeext
 
10379
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10380
  (eval $ac_link) 2>conftest.er1
 
10381
  ac_status=$?
 
10382
  grep -v '^ *+' conftest.er1 >conftest.err
 
10383
  rm -f conftest.er1
 
10384
  cat conftest.err >&5
 
10385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10386
  (exit $ac_status); } &&
 
10387
         { ac_try='test -z "$ac_c_werror_flag"
 
10388
                         || test ! -s conftest.err'
 
10389
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10390
  (eval $ac_try) 2>&5
 
10391
  ac_status=$?
 
10392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10393
  (exit $ac_status); }; } &&
 
10394
         { ac_try='test -s conftest$ac_exeext'
 
10395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10396
  (eval $ac_try) 2>&5
 
10397
  ac_status=$?
 
10398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10399
  (exit $ac_status); }; }; then
 
10400
  ac_cv_lib_dl_dlopen=yes
 
10401
else
 
10402
  echo "$as_me: failed program was:" >&5
 
10403
sed 's/^/| /' conftest.$ac_ext >&5
 
10404
 
 
10405
ac_cv_lib_dl_dlopen=no
 
10406
fi
 
10407
rm -f conftest.err conftest.$ac_objext \
 
10408
      conftest$ac_exeext conftest.$ac_ext
 
10409
LIBS=$ac_check_lib_save_LIBS
 
10410
fi
 
10411
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10412
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
10413
if test $ac_cv_lib_dl_dlopen = yes; then
 
10414
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10415
else
 
10416
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10417
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
10418
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10420
else
 
10421
  ac_check_lib_save_LIBS=$LIBS
 
10422
LIBS="-lsvld  $LIBS"
 
10423
cat >conftest.$ac_ext <<_ACEOF
 
10424
/* confdefs.h.  */
 
10425
_ACEOF
 
10426
cat confdefs.h >>conftest.$ac_ext
 
10427
cat >>conftest.$ac_ext <<_ACEOF
 
10428
/* end confdefs.h.  */
 
10429
 
 
10430
/* Override any gcc2 internal prototype to avoid an error.  */
 
10431
#ifdef __cplusplus
 
10432
extern "C"
 
10433
#endif
 
10434
/* We use char because int might match the return type of a gcc2
 
10435
   builtin and then its argument prototype would still apply.  */
 
10436
char dlopen ();
 
10437
int
 
10438
main ()
 
10439
{
 
10440
dlopen ();
 
10441
  ;
 
10442
  return 0;
 
10443
}
 
10444
_ACEOF
 
10445
rm -f conftest.$ac_objext conftest$ac_exeext
 
10446
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10447
  (eval $ac_link) 2>conftest.er1
 
10448
  ac_status=$?
 
10449
  grep -v '^ *+' conftest.er1 >conftest.err
 
10450
  rm -f conftest.er1
 
10451
  cat conftest.err >&5
 
10452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10453
  (exit $ac_status); } &&
 
10454
         { ac_try='test -z "$ac_c_werror_flag"
 
10455
                         || test ! -s conftest.err'
 
10456
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10457
  (eval $ac_try) 2>&5
 
10458
  ac_status=$?
 
10459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10460
  (exit $ac_status); }; } &&
 
10461
         { ac_try='test -s conftest$ac_exeext'
 
10462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10463
  (eval $ac_try) 2>&5
 
10464
  ac_status=$?
 
10465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10466
  (exit $ac_status); }; }; then
 
10467
  ac_cv_lib_svld_dlopen=yes
 
10468
else
 
10469
  echo "$as_me: failed program was:" >&5
 
10470
sed 's/^/| /' conftest.$ac_ext >&5
 
10471
 
 
10472
ac_cv_lib_svld_dlopen=no
 
10473
fi
 
10474
rm -f conftest.err conftest.$ac_objext \
 
10475
      conftest$ac_exeext conftest.$ac_ext
 
10476
LIBS=$ac_check_lib_save_LIBS
 
10477
fi
 
10478
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10479
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
10480
if test $ac_cv_lib_svld_dlopen = yes; then
 
10481
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10482
else
 
10483
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10484
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
10485
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10486
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10487
else
 
10488
  ac_check_lib_save_LIBS=$LIBS
 
10489
LIBS="-ldld  $LIBS"
 
10490
cat >conftest.$ac_ext <<_ACEOF
 
10491
/* confdefs.h.  */
 
10492
_ACEOF
 
10493
cat confdefs.h >>conftest.$ac_ext
 
10494
cat >>conftest.$ac_ext <<_ACEOF
 
10495
/* end confdefs.h.  */
 
10496
 
 
10497
/* Override any gcc2 internal prototype to avoid an error.  */
 
10498
#ifdef __cplusplus
 
10499
extern "C"
 
10500
#endif
 
10501
/* We use char because int might match the return type of a gcc2
 
10502
   builtin and then its argument prototype would still apply.  */
 
10503
char dld_link ();
 
10504
int
 
10505
main ()
 
10506
{
 
10507
dld_link ();
 
10508
  ;
 
10509
  return 0;
 
10510
}
 
10511
_ACEOF
 
10512
rm -f conftest.$ac_objext conftest$ac_exeext
 
10513
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10514
  (eval $ac_link) 2>conftest.er1
 
10515
  ac_status=$?
 
10516
  grep -v '^ *+' conftest.er1 >conftest.err
 
10517
  rm -f conftest.er1
 
10518
  cat conftest.err >&5
 
10519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10520
  (exit $ac_status); } &&
 
10521
         { ac_try='test -z "$ac_c_werror_flag"
 
10522
                         || test ! -s conftest.err'
 
10523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10524
  (eval $ac_try) 2>&5
 
10525
  ac_status=$?
 
10526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10527
  (exit $ac_status); }; } &&
 
10528
         { ac_try='test -s conftest$ac_exeext'
 
10529
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10530
  (eval $ac_try) 2>&5
 
10531
  ac_status=$?
 
10532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10533
  (exit $ac_status); }; }; then
 
10534
  ac_cv_lib_dld_dld_link=yes
 
10535
else
 
10536
  echo "$as_me: failed program was:" >&5
 
10537
sed 's/^/| /' conftest.$ac_ext >&5
 
10538
 
 
10539
ac_cv_lib_dld_dld_link=no
 
10540
fi
 
10541
rm -f conftest.err conftest.$ac_objext \
 
10542
      conftest$ac_exeext conftest.$ac_ext
 
10543
LIBS=$ac_check_lib_save_LIBS
 
10544
fi
 
10545
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10546
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
10547
if test $ac_cv_lib_dld_dld_link = yes; then
 
10548
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
10549
fi
 
10550
 
 
10551
 
 
10552
fi
 
10553
 
 
10554
 
 
10555
fi
 
10556
 
 
10557
 
 
10558
fi
 
10559
 
 
10560
 
 
10561
fi
 
10562
 
 
10563
 
 
10564
fi
 
10565
 
 
10566
    ;;
 
10567
  esac
 
10568
 
 
10569
  if test "x$lt_cv_dlopen" != xno; then
 
10570
    enable_dlopen=yes
 
10571
  else
 
10572
    enable_dlopen=no
 
10573
  fi
 
10574
 
 
10575
  case $lt_cv_dlopen in
 
10576
  dlopen)
 
10577
    save_CPPFLAGS="$CPPFLAGS"
 
10578
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10579
 
 
10580
    save_LDFLAGS="$LDFLAGS"
 
10581
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10582
 
 
10583
    save_LIBS="$LIBS"
 
10584
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10585
 
 
10586
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10587
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
10588
if test "${lt_cv_dlopen_self+set}" = set; then
 
10589
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10590
else
 
10591
          if test "$cross_compiling" = yes; then :
 
10592
  lt_cv_dlopen_self=cross
 
10593
else
 
10594
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10595
  lt_status=$lt_dlunknown
 
10596
  cat > conftest.$ac_ext <<EOF
 
10597
#line 10597 "configure"
 
10598
#include "confdefs.h"
 
10599
 
 
10600
#if HAVE_DLFCN_H
 
10601
#include <dlfcn.h>
 
10602
#endif
 
10603
 
 
10604
#include <stdio.h>
 
10605
 
 
10606
#ifdef RTLD_GLOBAL
 
10607
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10608
#else
 
10609
#  ifdef DL_GLOBAL
 
10610
#    define LT_DLGLOBAL         DL_GLOBAL
 
10611
#  else
 
10612
#    define LT_DLGLOBAL         0
 
10613
#  endif
 
10614
#endif
 
10615
 
 
10616
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10617
   find out it does not work in some platform. */
 
10618
#ifndef LT_DLLAZY_OR_NOW
 
10619
#  ifdef RTLD_LAZY
 
10620
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10621
#  else
 
10622
#    ifdef DL_LAZY
 
10623
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10624
#    else
 
10625
#      ifdef RTLD_NOW
 
10626
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10627
#      else
 
10628
#        ifdef DL_NOW
 
10629
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10630
#        else
 
10631
#          define LT_DLLAZY_OR_NOW      0
 
10632
#        endif
 
10633
#      endif
 
10634
#    endif
 
10635
#  endif
 
10636
#endif
 
10637
 
 
10638
#ifdef __cplusplus
 
10639
extern "C" void exit (int);
 
10640
#endif
 
10641
 
 
10642
void fnord() { int i=42;}
 
10643
int main ()
 
10644
{
 
10645
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10646
  int status = $lt_dlunknown;
 
10647
 
 
10648
  if (self)
 
10649
    {
 
10650
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10651
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10652
      /* dlclose (self); */
 
10653
    }
 
10654
  else
 
10655
    puts (dlerror ());
 
10656
 
 
10657
    exit (status);
 
10658
}
 
10659
EOF
 
10660
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10661
  (eval $ac_link) 2>&5
 
10662
  ac_status=$?
 
10663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10664
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10665
    (./conftest; exit; ) >&5 2>/dev/null
 
10666
    lt_status=$?
 
10667
    case x$lt_status in
 
10668
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10669
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10670
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10671
    esac
 
10672
  else :
 
10673
    # compilation failed
 
10674
    lt_cv_dlopen_self=no
 
10675
  fi
 
10676
fi
 
10677
rm -fr conftest*
 
10678
 
 
10679
 
 
10680
fi
 
10681
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10682
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
10683
 
 
10684
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10685
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10686
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10687
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
10688
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10690
else
 
10691
          if test "$cross_compiling" = yes; then :
 
10692
  lt_cv_dlopen_self_static=cross
 
10693
else
 
10694
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10695
  lt_status=$lt_dlunknown
 
10696
  cat > conftest.$ac_ext <<EOF
 
10697
#line 10697 "configure"
 
10698
#include "confdefs.h"
 
10699
 
 
10700
#if HAVE_DLFCN_H
 
10701
#include <dlfcn.h>
 
10702
#endif
 
10703
 
 
10704
#include <stdio.h>
 
10705
 
 
10706
#ifdef RTLD_GLOBAL
 
10707
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10708
#else
 
10709
#  ifdef DL_GLOBAL
 
10710
#    define LT_DLGLOBAL         DL_GLOBAL
 
10711
#  else
 
10712
#    define LT_DLGLOBAL         0
 
10713
#  endif
 
10714
#endif
 
10715
 
 
10716
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10717
   find out it does not work in some platform. */
 
10718
#ifndef LT_DLLAZY_OR_NOW
 
10719
#  ifdef RTLD_LAZY
 
10720
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10721
#  else
 
10722
#    ifdef DL_LAZY
 
10723
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10724
#    else
 
10725
#      ifdef RTLD_NOW
 
10726
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10727
#      else
 
10728
#        ifdef DL_NOW
 
10729
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10730
#        else
 
10731
#          define LT_DLLAZY_OR_NOW      0
 
10732
#        endif
 
10733
#      endif
 
10734
#    endif
 
10735
#  endif
 
10736
#endif
 
10737
 
 
10738
#ifdef __cplusplus
 
10739
extern "C" void exit (int);
 
10740
#endif
 
10741
 
 
10742
void fnord() { int i=42;}
 
10743
int main ()
 
10744
{
 
10745
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10746
  int status = $lt_dlunknown;
 
10747
 
 
10748
  if (self)
 
10749
    {
 
10750
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10751
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10752
      /* dlclose (self); */
 
10753
    }
 
10754
  else
 
10755
    puts (dlerror ());
 
10756
 
 
10757
    exit (status);
 
10758
}
 
10759
EOF
 
10760
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10761
  (eval $ac_link) 2>&5
 
10762
  ac_status=$?
 
10763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10764
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10765
    (./conftest; exit; ) >&5 2>/dev/null
 
10766
    lt_status=$?
 
10767
    case x$lt_status in
 
10768
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10769
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10770
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10771
    esac
 
10772
  else :
 
10773
    # compilation failed
 
10774
    lt_cv_dlopen_self_static=no
 
10775
  fi
 
10776
fi
 
10777
rm -fr conftest*
 
10778
 
 
10779
 
 
10780
fi
 
10781
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10782
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
10783
    fi
 
10784
 
 
10785
    CPPFLAGS="$save_CPPFLAGS"
 
10786
    LDFLAGS="$save_LDFLAGS"
 
10787
    LIBS="$save_LIBS"
 
10788
    ;;
 
10789
  esac
 
10790
 
 
10791
  case $lt_cv_dlopen_self in
 
10792
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10793
  *) enable_dlopen_self=unknown ;;
 
10794
  esac
 
10795
 
 
10796
  case $lt_cv_dlopen_self_static in
 
10797
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10798
  *) enable_dlopen_self_static=unknown ;;
 
10799
  esac
 
10800
fi
 
10801
 
 
10802
 
 
10803
# Report which library types will actually be built
 
10804
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10805
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
10806
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10807
echo "${ECHO_T}$can_build_shared" >&6
 
10808
 
 
10809
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10810
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
10811
test "$can_build_shared" = "no" && enable_shared=no
 
10812
 
 
10813
# On AIX, shared libraries and static libraries use the same namespace, and
 
10814
# are all built from PIC.
 
10815
case $host_os in
 
10816
aix3*)
 
10817
  test "$enable_shared" = yes && enable_static=no
 
10818
  if test -n "$RANLIB"; then
 
10819
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10820
    postinstall_cmds='$RANLIB $lib'
 
10821
  fi
 
10822
  ;;
 
10823
 
 
10824
aix4* | aix5*)
 
10825
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10826
    test "$enable_shared" = yes && enable_static=no
 
10827
  fi
 
10828
    ;;
 
10829
esac
 
10830
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10831
echo "${ECHO_T}$enable_shared" >&6
 
10832
 
 
10833
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10834
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
10835
# Make sure either enable_shared or enable_static is yes.
 
10836
test "$enable_shared" = yes || enable_static=yes
 
10837
echo "$as_me:$LINENO: result: $enable_static" >&5
 
10838
echo "${ECHO_T}$enable_static" >&6
 
10839
 
 
10840
# The else clause should only fire when bootstrapping the
 
10841
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10842
# with your package, and you will get complaints that there are
 
10843
# no rules to generate ltmain.sh.
 
10844
if test -f "$ltmain"; then
 
10845
  # See if we are running on zsh, and set the options which allow our commands through
 
10846
  # without removal of \ escapes.
 
10847
  if test -n "${ZSH_VERSION+set}" ; then
 
10848
    setopt NO_GLOB_SUBST
 
10849
  fi
 
10850
  # Now quote all the things that may contain metacharacters while being
 
10851
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10852
  # variables and quote the copies for generation of the libtool script.
 
10853
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10854
    SED SHELL STRIP \
 
10855
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10856
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10857
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10858
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10859
    lt_cv_sys_global_symbol_to_c_name_address \
 
10860
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10861
    old_postinstall_cmds old_postuninstall_cmds \
 
10862
    compiler \
 
10863
    CC \
 
10864
    LD \
 
10865
    lt_prog_compiler_wl \
 
10866
    lt_prog_compiler_pic \
 
10867
    lt_prog_compiler_static \
 
10868
    lt_prog_compiler_no_builtin_flag \
 
10869
    export_dynamic_flag_spec \
 
10870
    thread_safe_flag_spec \
 
10871
    whole_archive_flag_spec \
 
10872
    enable_shared_with_static_runtimes \
 
10873
    old_archive_cmds \
 
10874
    old_archive_from_new_cmds \
 
10875
    predep_objects \
 
10876
    postdep_objects \
 
10877
    predeps \
 
10878
    postdeps \
 
10879
    compiler_lib_search_path \
 
10880
    archive_cmds \
 
10881
    archive_expsym_cmds \
 
10882
    postinstall_cmds \
 
10883
    postuninstall_cmds \
 
10884
    old_archive_from_expsyms_cmds \
 
10885
    allow_undefined_flag \
 
10886
    no_undefined_flag \
 
10887
    export_symbols_cmds \
 
10888
    hardcode_libdir_flag_spec \
 
10889
    hardcode_libdir_flag_spec_ld \
 
10890
    hardcode_libdir_separator \
 
10891
    hardcode_automatic \
 
10892
    module_cmds \
 
10893
    module_expsym_cmds \
 
10894
    lt_cv_prog_compiler_c_o \
 
10895
    exclude_expsyms \
 
10896
    include_expsyms; do
 
10897
 
 
10898
    case $var in
 
10899
    old_archive_cmds | \
 
10900
    old_archive_from_new_cmds | \
 
10901
    archive_cmds | \
 
10902
    archive_expsym_cmds | \
 
10903
    module_cmds | \
 
10904
    module_expsym_cmds | \
 
10905
    old_archive_from_expsyms_cmds | \
 
10906
    export_symbols_cmds | \
 
10907
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10908
    postinstall_cmds | postuninstall_cmds | \
 
10909
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10910
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10911
      # Double-quote double-evaled strings.
 
10912
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10913
      ;;
 
10914
    *)
 
10915
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10916
      ;;
 
10917
    esac
 
10918
  done
 
10919
 
 
10920
  case $lt_echo in
 
10921
  *'\$0 --fallback-echo"')
 
10922
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10923
    ;;
 
10924
  esac
 
10925
 
 
10926
cfgfile="${ofile}T"
 
10927
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10928
  $rm -f "$cfgfile"
 
10929
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10930
echo "$as_me: creating $ofile" >&6;}
 
10931
 
 
10932
  cat <<__EOF__ >> "$cfgfile"
 
10933
#! $SHELL
 
10934
 
 
10935
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10936
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10937
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10938
#
 
10939
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10940
# Free Software Foundation, Inc.
 
10941
#
 
10942
# This file is part of GNU Libtool:
 
10943
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10944
#
 
10945
# This program is free software; you can redistribute it and/or modify
 
10946
# it under the terms of the GNU General Public License as published by
 
10947
# the Free Software Foundation; either version 2 of the License, or
 
10948
# (at your option) any later version.
 
10949
#
 
10950
# This program is distributed in the hope that it will be useful, but
 
10951
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10952
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10953
# General Public License for more details.
 
10954
#
 
10955
# You should have received a copy of the GNU General Public License
 
10956
# along with this program; if not, write to the Free Software
 
10957
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10958
#
 
10959
# As a special exception to the GNU General Public License, if you
 
10960
# distribute this file as part of a program that contains a
 
10961
# configuration script generated by Autoconf, you may include it under
 
10962
# the same distribution terms that you use for the rest of that program.
 
10963
 
 
10964
# A sed program that does not truncate output.
 
10965
SED=$lt_SED
 
10966
 
 
10967
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10968
Xsed="$SED -e 1s/^X//"
 
10969
 
 
10970
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10971
# if CDPATH is set.
 
10972
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10973
 
 
10974
# The names of the tagged configurations supported by this script.
 
10975
available_tags=
 
10976
 
 
10977
# ### BEGIN LIBTOOL CONFIG
 
10978
 
 
10979
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10980
 
 
10981
# Shell to use when invoking shell scripts.
 
10982
SHELL=$lt_SHELL
 
10983
 
 
10984
# Whether or not to build shared libraries.
 
10985
build_libtool_libs=$enable_shared
 
10986
 
 
10987
# Whether or not to build static libraries.
 
10988
build_old_libs=$enable_static
 
10989
 
 
10990
# Whether or not to add -lc for building shared libraries.
 
10991
build_libtool_need_lc=$archive_cmds_need_lc
 
10992
 
 
10993
# Whether or not to disallow shared libs when runtime libs are static
 
10994
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10995
 
 
10996
# Whether or not to optimize for fast installation.
 
10997
fast_install=$enable_fast_install
 
10998
 
 
10999
# The host system.
 
11000
host_alias=$host_alias
 
11001
host=$host
 
11002
host_os=$host_os
 
11003
 
 
11004
# The build system.
 
11005
build_alias=$build_alias
 
11006
build=$build
 
11007
build_os=$build_os
 
11008
 
 
11009
# An echo program that does not interpret backslashes.
 
11010
echo=$lt_echo
 
11011
 
 
11012
# The archiver.
 
11013
AR=$lt_AR
 
11014
AR_FLAGS=$lt_AR_FLAGS
 
11015
 
 
11016
# A C compiler.
 
11017
LTCC=$lt_LTCC
 
11018
 
 
11019
# LTCC compiler flags.
 
11020
LTCFLAGS=$lt_LTCFLAGS
 
11021
 
 
11022
# A language-specific compiler.
 
11023
CC=$lt_compiler
 
11024
 
 
11025
# Is the compiler the GNU C compiler?
 
11026
with_gcc=$GCC
 
11027
 
 
11028
# An ERE matcher.
 
11029
EGREP=$lt_EGREP
 
11030
 
 
11031
# The linker used to build libraries.
 
11032
LD=$lt_LD
 
11033
 
 
11034
# Whether we need hard or soft links.
 
11035
LN_S=$lt_LN_S
 
11036
 
 
11037
# A BSD-compatible nm program.
 
11038
NM=$lt_NM
 
11039
 
 
11040
# A symbol stripping program
 
11041
STRIP=$lt_STRIP
 
11042
 
 
11043
# Used to examine libraries when file_magic_cmd begins "file"
 
11044
MAGIC_CMD=$MAGIC_CMD
 
11045
 
 
11046
# Used on cygwin: DLL creation program.
 
11047
DLLTOOL="$DLLTOOL"
 
11048
 
 
11049
# Used on cygwin: object dumper.
 
11050
OBJDUMP="$OBJDUMP"
 
11051
 
 
11052
# Used on cygwin: assembler.
 
11053
AS="$AS"
 
11054
 
 
11055
# The name of the directory that contains temporary libtool files.
 
11056
objdir=$objdir
 
11057
 
 
11058
# How to create reloadable object files.
 
11059
reload_flag=$lt_reload_flag
 
11060
reload_cmds=$lt_reload_cmds
 
11061
 
 
11062
# How to pass a linker flag through the compiler.
 
11063
wl=$lt_lt_prog_compiler_wl
 
11064
 
 
11065
# Object file suffix (normally "o").
 
11066
objext="$ac_objext"
 
11067
 
 
11068
# Old archive suffix (normally "a").
 
11069
libext="$libext"
 
11070
 
 
11071
# Shared library suffix (normally ".so").
 
11072
shrext_cmds='$shrext_cmds'
 
11073
 
 
11074
# Executable file suffix (normally "").
 
11075
exeext="$exeext"
 
11076
 
 
11077
# Additional compiler flags for building library objects.
 
11078
pic_flag=$lt_lt_prog_compiler_pic
 
11079
pic_mode=$pic_mode
 
11080
 
 
11081
# What is the maximum length of a command?
 
11082
max_cmd_len=$lt_cv_sys_max_cmd_len
 
11083
 
 
11084
# Does compiler simultaneously support -c and -o options?
 
11085
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
11086
 
 
11087
# Must we lock files when doing compilation?
 
11088
need_locks=$lt_need_locks
 
11089
 
 
11090
# Do we need the lib prefix for modules?
 
11091
need_lib_prefix=$need_lib_prefix
 
11092
 
 
11093
# Do we need a version for libraries?
 
11094
need_version=$need_version
 
11095
 
 
11096
# Whether dlopen is supported.
 
11097
dlopen_support=$enable_dlopen
 
11098
 
 
11099
# Whether dlopen of programs is supported.
 
11100
dlopen_self=$enable_dlopen_self
 
11101
 
 
11102
# Whether dlopen of statically linked programs is supported.
 
11103
dlopen_self_static=$enable_dlopen_self_static
 
11104
 
 
11105
# Compiler flag to prevent dynamic linking.
 
11106
link_static_flag=$lt_lt_prog_compiler_static
 
11107
 
 
11108
# Compiler flag to turn off builtin functions.
 
11109
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
11110
 
 
11111
# Compiler flag to allow reflexive dlopens.
 
11112
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
11113
 
 
11114
# Compiler flag to generate shared objects directly from archives.
 
11115
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
11116
 
 
11117
# Compiler flag to generate thread-safe objects.
 
11118
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
11119
 
 
11120
# Library versioning type.
 
11121
version_type=$version_type
 
11122
 
 
11123
# Format of library name prefix.
 
11124
libname_spec=$lt_libname_spec
 
11125
 
 
11126
# List of archive names.  First name is the real one, the rest are links.
 
11127
# The last name is the one that the linker finds with -lNAME.
 
11128
library_names_spec=$lt_library_names_spec
 
11129
 
 
11130
# The coded name of the library, if different from the real name.
 
11131
soname_spec=$lt_soname_spec
 
11132
 
 
11133
# Commands used to build and install an old-style archive.
 
11134
RANLIB=$lt_RANLIB
 
11135
old_archive_cmds=$lt_old_archive_cmds
 
11136
old_postinstall_cmds=$lt_old_postinstall_cmds
 
11137
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
11138
 
 
11139
# Create an old-style archive from a shared archive.
 
11140
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
11141
 
 
11142
# Create a temporary old-style archive to link instead of a shared archive.
 
11143
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
11144
 
 
11145
# Commands used to build and install a shared archive.
 
11146
archive_cmds=$lt_archive_cmds
 
11147
archive_expsym_cmds=$lt_archive_expsym_cmds
 
11148
postinstall_cmds=$lt_postinstall_cmds
 
11149
postuninstall_cmds=$lt_postuninstall_cmds
 
11150
 
 
11151
# Commands used to build a loadable module (assumed same as above if empty)
 
11152
module_cmds=$lt_module_cmds
 
11153
module_expsym_cmds=$lt_module_expsym_cmds
 
11154
 
 
11155
# Commands to strip libraries.
 
11156
old_striplib=$lt_old_striplib
 
11157
striplib=$lt_striplib
 
11158
 
 
11159
# Dependencies to place before the objects being linked to create a
 
11160
# shared library.
 
11161
predep_objects=$lt_predep_objects
 
11162
 
 
11163
# Dependencies to place after the objects being linked to create a
 
11164
# shared library.
 
11165
postdep_objects=$lt_postdep_objects
 
11166
 
 
11167
# Dependencies to place before the objects being linked to create a
 
11168
# shared library.
 
11169
predeps=$lt_predeps
 
11170
 
 
11171
# Dependencies to place after the objects being linked to create a
 
11172
# shared library.
 
11173
postdeps=$lt_postdeps
 
11174
 
 
11175
# The library search path used internally by the compiler when linking
 
11176
# a shared library.
 
11177
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11178
 
 
11179
# Method to check whether dependent libraries are shared objects.
 
11180
deplibs_check_method=$lt_deplibs_check_method
 
11181
 
 
11182
# Command to use when deplibs_check_method == file_magic.
 
11183
file_magic_cmd=$lt_file_magic_cmd
 
11184
 
 
11185
# Flag that allows shared libraries with undefined symbols to be built.
 
11186
allow_undefined_flag=$lt_allow_undefined_flag
 
11187
 
 
11188
# Flag that forces no undefined symbols.
 
11189
no_undefined_flag=$lt_no_undefined_flag
 
11190
 
 
11191
# Commands used to finish a libtool library installation in a directory.
 
11192
finish_cmds=$lt_finish_cmds
 
11193
 
 
11194
# Same as above, but a single script fragment to be evaled but not shown.
 
11195
finish_eval=$lt_finish_eval
 
11196
 
 
11197
# Take the output of nm and produce a listing of raw symbols and C names.
 
11198
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11199
 
 
11200
# Transform the output of nm in a proper C declaration
 
11201
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11202
 
 
11203
# Transform the output of nm in a C name address pair
 
11204
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11205
 
 
11206
# This is the shared library runtime path variable.
 
11207
runpath_var=$runpath_var
 
11208
 
 
11209
# This is the shared library path variable.
 
11210
shlibpath_var=$shlibpath_var
 
11211
 
 
11212
# Is shlibpath searched before the hard-coded library search path?
 
11213
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
11214
 
 
11215
# How to hardcode a shared library path into an executable.
 
11216
hardcode_action=$hardcode_action
 
11217
 
 
11218
# Whether we should hardcode library paths into libraries.
 
11219
hardcode_into_libs=$hardcode_into_libs
 
11220
 
 
11221
# Flag to hardcode \$libdir into a binary during linking.
 
11222
# This must work even if \$libdir does not exist.
 
11223
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11224
 
 
11225
# If ld is used when linking, flag to hardcode \$libdir into
 
11226
# a binary during linking. This must work even if \$libdir does
 
11227
# not exist.
 
11228
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11229
 
 
11230
# Whether we need a single -rpath flag with a separated argument.
 
11231
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11232
 
 
11233
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11234
# resulting binary.
 
11235
hardcode_direct=$hardcode_direct
 
11236
 
 
11237
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11238
# resulting binary.
 
11239
hardcode_minus_L=$hardcode_minus_L
 
11240
 
 
11241
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11242
# the resulting binary.
 
11243
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11244
 
 
11245
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11246
# and all subsequent libraries and executables linked against it.
 
11247
hardcode_automatic=$hardcode_automatic
 
11248
 
 
11249
# Variables whose values should be saved in libtool wrapper scripts and
 
11250
# restored at relink time.
 
11251
variables_saved_for_relink="$variables_saved_for_relink"
 
11252
 
 
11253
# Whether libtool must link a program against all its dependency libraries.
 
11254
link_all_deplibs=$link_all_deplibs
 
11255
 
 
11256
# Compile-time system search path for libraries
 
11257
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11258
 
 
11259
# Run-time system search path for libraries
 
11260
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11261
 
 
11262
# Fix the shell variable \$srcfile for the compiler.
 
11263
fix_srcfile_path="$fix_srcfile_path"
 
11264
 
 
11265
# Set to yes if exported symbols are required.
 
11266
always_export_symbols=$always_export_symbols
 
11267
 
 
11268
# The commands to list exported symbols.
 
11269
export_symbols_cmds=$lt_export_symbols_cmds
 
11270
 
 
11271
# The commands to extract the exported symbol list from a shared archive.
 
11272
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11273
 
 
11274
# Symbols that should not be listed in the preloaded symbols.
 
11275
exclude_expsyms=$lt_exclude_expsyms
 
11276
 
 
11277
# Symbols that must always be exported.
 
11278
include_expsyms=$lt_include_expsyms
 
11279
 
 
11280
# ### END LIBTOOL CONFIG
 
11281
 
 
11282
__EOF__
 
11283
 
 
11284
 
 
11285
  case $host_os in
 
11286
  aix3*)
 
11287
    cat <<\EOF >> "$cfgfile"
 
11288
 
 
11289
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11290
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11291
# vanish in a puff of smoke.
 
11292
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11293
  COLLECT_NAMES=
 
11294
  export COLLECT_NAMES
 
11295
fi
 
11296
EOF
 
11297
    ;;
 
11298
  esac
 
11299
 
 
11300
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11301
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11302
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11303
  # is reportedly fixed, but why not run on old versions too?
 
11304
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11305
 
 
11306
  mv -f "$cfgfile" "$ofile" || \
 
11307
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11308
  chmod +x "$ofile"
 
11309
 
 
11310
else
 
11311
  # If there is no Makefile yet, we rely on a make rule to execute
 
11312
  # `config.status --recheck' to rerun these tests and create the
 
11313
  # libtool script then.
 
11314
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11315
  if test -f "$ltmain_in"; then
 
11316
    test -f Makefile && make "$ltmain"
 
11317
  fi
 
11318
fi
 
11319
 
 
11320
 
 
11321
ac_ext=c
 
11322
ac_cpp='$CPP $CPPFLAGS'
 
11323
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11324
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11325
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11326
 
 
11327
CC="$lt_save_CC"
 
11328
 
 
11329
 
 
11330
# Check whether --with-tags or --without-tags was given.
 
11331
if test "${with_tags+set}" = set; then
 
11332
  withval="$with_tags"
 
11333
  tagnames="$withval"
 
11334
fi;
 
11335
 
 
11336
if test -f "$ltmain" && test -n "$tagnames"; then
 
11337
  if test ! -f "${ofile}"; then
 
11338
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11339
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11340
  fi
 
11341
 
 
11342
  if test -z "$LTCC"; then
 
11343
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11344
    if test -z "$LTCC"; then
 
11345
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11346
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11347
    else
 
11348
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11349
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11350
    fi
 
11351
  fi
 
11352
  if test -z "$LTCFLAGS"; then
 
11353
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11354
  fi
 
11355
 
 
11356
  # Extract list of available tagged configurations in $ofile.
 
11357
  # Note that this assumes the entire list is on one line.
 
11358
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11359
 
 
11360
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11361
  for tagname in $tagnames; do
 
11362
    IFS="$lt_save_ifs"
 
11363
    # Check whether tagname contains only valid characters
 
11364
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11365
    "") ;;
 
11366
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11367
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11368
   { (exit 1); exit 1; }; }
 
11369
        ;;
 
11370
    esac
 
11371
 
 
11372
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11373
    then
 
11374
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11375
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11376
   { (exit 1); exit 1; }; }
 
11377
    fi
 
11378
 
 
11379
    # Update the list of available tags.
 
11380
    if test -n "$tagname"; then
 
11381
      echo appending configuration tag \"$tagname\" to $ofile
 
11382
 
 
11383
      case $tagname in
 
11384
      CXX)
 
11385
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11386
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11387
            (test "X$CXX" != "Xg++"))) ; then
 
11388
          ac_ext=cc
 
11389
ac_cpp='$CXXCPP $CPPFLAGS'
 
11390
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11391
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11392
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11393
 
 
11394
 
 
11395
 
 
11396
 
 
11397
archive_cmds_need_lc_CXX=no
 
11398
allow_undefined_flag_CXX=
 
11399
always_export_symbols_CXX=no
 
11400
archive_expsym_cmds_CXX=
 
11401
export_dynamic_flag_spec_CXX=
 
11402
hardcode_direct_CXX=no
 
11403
hardcode_libdir_flag_spec_CXX=
 
11404
hardcode_libdir_flag_spec_ld_CXX=
 
11405
hardcode_libdir_separator_CXX=
 
11406
hardcode_minus_L_CXX=no
 
11407
hardcode_shlibpath_var_CXX=unsupported
 
11408
hardcode_automatic_CXX=no
 
11409
module_cmds_CXX=
 
11410
module_expsym_cmds_CXX=
 
11411
link_all_deplibs_CXX=unknown
 
11412
old_archive_cmds_CXX=$old_archive_cmds
 
11413
no_undefined_flag_CXX=
 
11414
whole_archive_flag_spec_CXX=
 
11415
enable_shared_with_static_runtimes_CXX=no
 
11416
 
 
11417
# Dependencies to place before and after the object being linked:
 
11418
predep_objects_CXX=
 
11419
postdep_objects_CXX=
 
11420
predeps_CXX=
 
11421
postdeps_CXX=
 
11422
compiler_lib_search_path_CXX=
 
11423
 
 
11424
# Source file extension for C++ test sources.
 
11425
ac_ext=cpp
 
11426
 
 
11427
# Object file extension for compiled C++ test sources.
 
11428
objext=o
 
11429
objext_CXX=$objext
 
11430
 
 
11431
# Code to be used in simple compile tests
 
11432
lt_simple_compile_test_code="int some_variable = 0;\n"
 
11433
 
 
11434
# Code to be used in simple link tests
 
11435
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
11436
 
 
11437
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11438
 
 
11439
# If no C compiler was specified, use CC.
 
11440
LTCC=${LTCC-"$CC"}
 
11441
 
 
11442
# If no C compiler flags were specified, use CFLAGS.
 
11443
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11444
 
 
11445
# Allow CC to be a program name with arguments.
 
11446
compiler=$CC
 
11447
 
 
11448
 
 
11449
# save warnings/boilerplate of simple test code
 
11450
ac_outfile=conftest.$ac_objext
 
11451
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11452
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11453
_lt_compiler_boilerplate=`cat conftest.err`
 
11454
$rm conftest*
 
11455
 
 
11456
ac_outfile=conftest.$ac_objext
 
11457
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
11458
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11459
_lt_linker_boilerplate=`cat conftest.err`
 
11460
$rm conftest*
 
11461
 
 
11462
 
 
11463
# Allow CC to be a program name with arguments.
 
11464
lt_save_CC=$CC
 
11465
lt_save_LD=$LD
 
11466
lt_save_GCC=$GCC
 
11467
GCC=$GXX
 
11468
lt_save_with_gnu_ld=$with_gnu_ld
 
11469
lt_save_path_LD=$lt_cv_path_LD
 
11470
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11471
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11472
else
 
11473
  $as_unset lt_cv_prog_gnu_ld
 
11474
fi
 
11475
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11476
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11477
else
 
11478
  $as_unset lt_cv_path_LD
 
11479
fi
 
11480
test -z "${LDCXX+set}" || LD=$LDCXX
 
11481
CC=${CXX-"c++"}
 
11482
compiler=$CC
 
11483
compiler_CXX=$CC
 
11484
for cc_temp in $compiler""; do
 
11485
  case $cc_temp in
 
11486
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11487
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11488
    \-*) ;;
 
11489
    *) break;;
 
11490
  esac
 
11491
done
 
11492
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11493
 
 
11494
 
 
11495
# We don't want -fno-exception wen compiling C++ code, so set the
 
11496
# no_builtin_flag separately
 
11497
if test "$GXX" = yes; then
 
11498
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11499
else
 
11500
  lt_prog_compiler_no_builtin_flag_CXX=
 
11501
fi
 
11502
 
 
11503
if test "$GXX" = yes; then
 
11504
  # Set up default GNU C++ configuration
 
11505
 
 
11506
 
 
11507
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
11508
if test "${with_gnu_ld+set}" = set; then
 
11509
  withval="$with_gnu_ld"
 
11510
  test "$withval" = no || with_gnu_ld=yes
 
11511
else
 
11512
  with_gnu_ld=no
 
11513
fi;
 
11514
ac_prog=ld
 
11515
if test "$GCC" = yes; then
 
11516
  # Check if gcc -print-prog-name=ld gives a path.
 
11517
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11518
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
11519
  case $host in
 
11520
  *-*-mingw*)
 
11521
    # gcc leaves a trailing carriage return which upsets mingw
 
11522
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11523
  *)
 
11524
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11525
  esac
 
11526
  case $ac_prog in
 
11527
    # Accept absolute paths.
 
11528
    [\\/]* | ?:[\\/]*)
 
11529
      re_direlt='/[^/][^/]*/\.\./'
 
11530
      # Canonicalize the pathname of ld
 
11531
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11532
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11533
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11534
      done
 
11535
      test -z "$LD" && LD="$ac_prog"
 
11536
      ;;
 
11537
  "")
 
11538
    # If it fails, then pretend we aren't using GCC.
 
11539
    ac_prog=ld
 
11540
    ;;
 
11541
  *)
 
11542
    # If it is relative, then search for the first ld in PATH.
 
11543
    with_gnu_ld=unknown
 
11544
    ;;
 
11545
  esac
 
11546
elif test "$with_gnu_ld" = yes; then
 
11547
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11548
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
11549
else
 
11550
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11551
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
11552
fi
 
11553
if test "${lt_cv_path_LD+set}" = set; then
 
11554
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11555
else
 
11556
  if test -z "$LD"; then
 
11557
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11558
  for ac_dir in $PATH; do
 
11559
    IFS="$lt_save_ifs"
 
11560
    test -z "$ac_dir" && ac_dir=.
 
11561
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11562
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11563
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11564
      # but apparently some variants of GNU ld only accept -v.
 
11565
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11566
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11567
      *GNU* | *'with BFD'*)
 
11568
        test "$with_gnu_ld" != no && break
 
11569
        ;;
 
11570
      *)
 
11571
        test "$with_gnu_ld" != yes && break
 
11572
        ;;
 
11573
      esac
 
11574
    fi
 
11575
  done
 
11576
  IFS="$lt_save_ifs"
 
11577
else
 
11578
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11579
fi
 
11580
fi
 
11581
 
 
11582
LD="$lt_cv_path_LD"
 
11583
if test -n "$LD"; then
 
11584
  echo "$as_me:$LINENO: result: $LD" >&5
 
11585
echo "${ECHO_T}$LD" >&6
 
11586
else
 
11587
  echo "$as_me:$LINENO: result: no" >&5
 
11588
echo "${ECHO_T}no" >&6
 
11589
fi
 
11590
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11591
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11592
   { (exit 1); exit 1; }; }
 
11593
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11594
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
11595
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11596
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11597
else
 
11598
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11599
case `$LD -v 2>&1 </dev/null` in
 
11600
*GNU* | *'with BFD'*)
 
11601
  lt_cv_prog_gnu_ld=yes
 
11602
  ;;
 
11603
*)
 
11604
  lt_cv_prog_gnu_ld=no
 
11605
  ;;
 
11606
esac
 
11607
fi
 
11608
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11609
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
11610
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11611
 
 
11612
 
 
11613
 
 
11614
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11615
  # archiving commands below assume that GNU ld is being used.
 
11616
  if test "$with_gnu_ld" = yes; then
 
11617
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11618
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11619
 
 
11620
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11621
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11622
 
 
11623
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11624
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11625
    #     investigate it a little bit more. (MM)
 
11626
    wlarc='${wl}'
 
11627
 
 
11628
    # ancient GNU ld didn't support --whole-archive et. al.
 
11629
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11630
        grep 'no-whole-archive' > /dev/null; then
 
11631
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11632
    else
 
11633
      whole_archive_flag_spec_CXX=
 
11634
    fi
 
11635
  else
 
11636
    with_gnu_ld=no
 
11637
    wlarc=
 
11638
 
 
11639
    # A generic and very simple default shared library creation
 
11640
    # command for GNU C++ for the case where it uses the native
 
11641
    # linker, instead of GNU ld.  If possible, this setting should
 
11642
    # overridden to take advantage of the native linker features on
 
11643
    # the platform it is being used on.
 
11644
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11645
  fi
 
11646
 
 
11647
  # Commands to make compiler produce verbose output that lists
 
11648
  # what "hidden" libraries, object files and flags are used when
 
11649
  # linking a shared library.
 
11650
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11651
 
 
11652
else
 
11653
  GXX=no
 
11654
  with_gnu_ld=no
 
11655
  wlarc=
 
11656
fi
 
11657
 
 
11658
# PORTME: fill in a description of your system's C++ link characteristics
 
11659
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11660
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11661
ld_shlibs_CXX=yes
 
11662
case $host_os in
 
11663
  aix3*)
 
11664
    # FIXME: insert proper C++ library support
 
11665
    ld_shlibs_CXX=no
 
11666
    ;;
 
11667
  aix4* | aix5*)
 
11668
    if test "$host_cpu" = ia64; then
 
11669
      # On IA64, the linker does run time linking by default, so we don't
 
11670
      # have to do anything special.
 
11671
      aix_use_runtimelinking=no
 
11672
      exp_sym_flag='-Bexport'
 
11673
      no_entry_flag=""
 
11674
    else
 
11675
      aix_use_runtimelinking=no
 
11676
 
 
11677
      # Test if we are trying to use run time linking or normal
 
11678
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11679
      # need to do runtime linking.
 
11680
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11681
        for ld_flag in $LDFLAGS; do
 
11682
          case $ld_flag in
 
11683
          *-brtl*)
 
11684
            aix_use_runtimelinking=yes
 
11685
            break
 
11686
            ;;
 
11687
          esac
 
11688
        done
 
11689
        ;;
 
11690
      esac
 
11691
 
 
11692
      exp_sym_flag='-bexport'
 
11693
      no_entry_flag='-bnoentry'
 
11694
    fi
 
11695
 
 
11696
    # When large executables or shared objects are built, AIX ld can
 
11697
    # have problems creating the table of contents.  If linking a library
 
11698
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11699
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11700
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11701
 
 
11702
    archive_cmds_CXX=''
 
11703
    hardcode_direct_CXX=yes
 
11704
    hardcode_libdir_separator_CXX=':'
 
11705
    link_all_deplibs_CXX=yes
 
11706
 
 
11707
    if test "$GXX" = yes; then
 
11708
      case $host_os in aix4.[012]|aix4.[012].*)
 
11709
      # We only want to do this on AIX 4.2 and lower, the check
 
11710
      # below for broken collect2 doesn't work under 4.3+
 
11711
        collect2name=`${CC} -print-prog-name=collect2`
 
11712
        if test -f "$collect2name" && \
 
11713
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11714
        then
 
11715
          # We have reworked collect2
 
11716
          hardcode_direct_CXX=yes
 
11717
        else
 
11718
          # We have old collect2
 
11719
          hardcode_direct_CXX=unsupported
 
11720
          # It fails to find uninstalled libraries when the uninstalled
 
11721
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11722
          # to unsupported forces relinking
 
11723
          hardcode_minus_L_CXX=yes
 
11724
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11725
          hardcode_libdir_separator_CXX=
 
11726
        fi
 
11727
        ;;
 
11728
      esac
 
11729
      shared_flag='-shared'
 
11730
      if test "$aix_use_runtimelinking" = yes; then
 
11731
        shared_flag="$shared_flag "'${wl}-G'
 
11732
      fi
 
11733
    else
 
11734
      # not using gcc
 
11735
      if test "$host_cpu" = ia64; then
 
11736
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11737
        # chokes on -Wl,-G. The following line is correct:
 
11738
        shared_flag='-G'
 
11739
      else
 
11740
        if test "$aix_use_runtimelinking" = yes; then
 
11741
          shared_flag='${wl}-G'
 
11742
        else
 
11743
          shared_flag='${wl}-bM:SRE'
 
11744
        fi
 
11745
      fi
 
11746
    fi
 
11747
 
 
11748
    # It seems that -bexpall does not export symbols beginning with
 
11749
    # underscore (_), so it is better to generate a list of symbols to export.
 
11750
    always_export_symbols_CXX=yes
 
11751
    if test "$aix_use_runtimelinking" = yes; then
 
11752
      # Warning - without using the other runtime loading flags (-brtl),
 
11753
      # -berok will link without error, but may produce a broken library.
 
11754
      allow_undefined_flag_CXX='-berok'
 
11755
      # Determine the default libpath from the value encoded in an empty executable.
 
11756
      cat >conftest.$ac_ext <<_ACEOF
 
11757
/* confdefs.h.  */
 
11758
_ACEOF
 
11759
cat confdefs.h >>conftest.$ac_ext
 
11760
cat >>conftest.$ac_ext <<_ACEOF
 
11761
/* end confdefs.h.  */
 
11762
 
 
11763
int
 
11764
main ()
 
11765
{
 
11766
 
 
11767
  ;
 
11768
  return 0;
 
11769
}
 
11770
_ACEOF
 
11771
rm -f conftest.$ac_objext conftest$ac_exeext
 
11772
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11773
  (eval $ac_link) 2>conftest.er1
 
11774
  ac_status=$?
 
11775
  grep -v '^ *+' conftest.er1 >conftest.err
 
11776
  rm -f conftest.er1
 
11777
  cat conftest.err >&5
 
11778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11779
  (exit $ac_status); } &&
 
11780
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11781
                         || test ! -s conftest.err'
 
11782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11783
  (eval $ac_try) 2>&5
 
11784
  ac_status=$?
 
11785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11786
  (exit $ac_status); }; } &&
 
11787
         { ac_try='test -s conftest$ac_exeext'
 
11788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11789
  (eval $ac_try) 2>&5
 
11790
  ac_status=$?
 
11791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11792
  (exit $ac_status); }; }; then
 
11793
 
 
11794
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11795
}'`
 
11796
# Check for a 64-bit object if we didn't find anything.
 
11797
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11798
}'`; fi
 
11799
else
 
11800
  echo "$as_me: failed program was:" >&5
 
11801
sed 's/^/| /' conftest.$ac_ext >&5
 
11802
 
 
11803
fi
 
11804
rm -f conftest.err conftest.$ac_objext \
 
11805
      conftest$ac_exeext conftest.$ac_ext
 
11806
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11807
 
 
11808
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11809
 
 
11810
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11811
     else
 
11812
      if test "$host_cpu" = ia64; then
 
11813
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11814
        allow_undefined_flag_CXX="-z nodefs"
 
11815
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
11816
      else
 
11817
        # Determine the default libpath from the value encoded in an empty executable.
 
11818
        cat >conftest.$ac_ext <<_ACEOF
 
11819
/* confdefs.h.  */
 
11820
_ACEOF
 
11821
cat confdefs.h >>conftest.$ac_ext
 
11822
cat >>conftest.$ac_ext <<_ACEOF
 
11823
/* end confdefs.h.  */
 
11824
 
 
11825
int
 
11826
main ()
 
11827
{
 
11828
 
 
11829
  ;
 
11830
  return 0;
 
11831
}
 
11832
_ACEOF
 
11833
rm -f conftest.$ac_objext conftest$ac_exeext
 
11834
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11835
  (eval $ac_link) 2>conftest.er1
 
11836
  ac_status=$?
 
11837
  grep -v '^ *+' conftest.er1 >conftest.err
 
11838
  rm -f conftest.er1
 
11839
  cat conftest.err >&5
 
11840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11841
  (exit $ac_status); } &&
 
11842
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11843
                         || test ! -s conftest.err'
 
11844
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11845
  (eval $ac_try) 2>&5
 
11846
  ac_status=$?
 
11847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11848
  (exit $ac_status); }; } &&
 
11849
         { ac_try='test -s conftest$ac_exeext'
 
11850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11851
  (eval $ac_try) 2>&5
 
11852
  ac_status=$?
 
11853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11854
  (exit $ac_status); }; }; then
 
11855
 
 
11856
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11857
}'`
 
11858
# Check for a 64-bit object if we didn't find anything.
 
11859
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11860
}'`; fi
 
11861
else
 
11862
  echo "$as_me: failed program was:" >&5
 
11863
sed 's/^/| /' conftest.$ac_ext >&5
 
11864
 
 
11865
fi
 
11866
rm -f conftest.err conftest.$ac_objext \
 
11867
      conftest$ac_exeext conftest.$ac_ext
 
11868
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11869
 
 
11870
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11871
        # Warning - without using the other run time loading flags,
 
11872
        # -berok will link without error, but may produce a broken library.
 
11873
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11874
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11875
        # Exported symbols can be pulled into shared objects from archives
 
11876
        whole_archive_flag_spec_CXX='$convenience'
 
11877
        archive_cmds_need_lc_CXX=yes
 
11878
        # This is similar to how AIX traditionally builds its shared libraries.
 
11879
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11880
      fi
 
11881
    fi
 
11882
    ;;
 
11883
 
 
11884
  beos*)
 
11885
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11886
      allow_undefined_flag_CXX=unsupported
 
11887
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11888
      # support --undefined.  This deserves some investigation.  FIXME
 
11889
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11890
    else
 
11891
      ld_shlibs_CXX=no
 
11892
    fi
 
11893
    ;;
 
11894
 
 
11895
  chorus*)
 
11896
    case $cc_basename in
 
11897
      *)
 
11898
        # FIXME: insert proper C++ library support
 
11899
        ld_shlibs_CXX=no
 
11900
        ;;
 
11901
    esac
 
11902
    ;;
 
11903
 
 
11904
  cygwin* | mingw* | pw32*)
 
11905
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11906
    # as there is no search path for DLLs.
 
11907
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11908
    allow_undefined_flag_CXX=unsupported
 
11909
    always_export_symbols_CXX=no
 
11910
    enable_shared_with_static_runtimes_CXX=yes
 
11911
 
 
11912
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11913
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11914
      # If the export-symbols file already is a .def file (1st line
 
11915
      # is EXPORTS), use it as is; otherwise, prepend...
 
11916
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11917
        cp $export_symbols $output_objdir/$soname.def;
 
11918
      else
 
11919
        echo EXPORTS > $output_objdir/$soname.def;
 
11920
        cat $export_symbols >> $output_objdir/$soname.def;
 
11921
      fi~
 
11922
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
11923
    else
 
11924
      ld_shlibs_CXX=no
 
11925
    fi
 
11926
  ;;
 
11927
      darwin* | rhapsody*)
 
11928
        case $host_os in
 
11929
        rhapsody* | darwin1.[012])
 
11930
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11931
         ;;
 
11932
       *) # Darwin 1.3 on
 
11933
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11934
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11935
         else
 
11936
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11937
             10.[012])
 
11938
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11939
               ;;
 
11940
             10.*)
 
11941
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11942
               ;;
 
11943
           esac
 
11944
         fi
 
11945
         ;;
 
11946
        esac
 
11947
      archive_cmds_need_lc_CXX=no
 
11948
      hardcode_direct_CXX=no
 
11949
      hardcode_automatic_CXX=yes
 
11950
      hardcode_shlibpath_var_CXX=unsupported
 
11951
      whole_archive_flag_spec_CXX=''
 
11952
      link_all_deplibs_CXX=yes
 
11953
 
 
11954
    if test "$GXX" = yes ; then
 
11955
      lt_int_apple_cc_single_mod=no
 
11956
      output_verbose_link_cmd='echo'
 
11957
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11958
       lt_int_apple_cc_single_mod=yes
 
11959
      fi
 
11960
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11961
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11962
      else
 
11963
          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11964
        fi
 
11965
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11966
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11967
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11968
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11969
          else
 
11970
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11971
          fi
 
11972
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11973
      else
 
11974
      case $cc_basename in
 
11975
        xlc*)
 
11976
         output_verbose_link_cmd='echo'
 
11977
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
11978
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11979
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11980
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11981
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11982
          ;;
 
11983
       *)
 
11984
         ld_shlibs_CXX=no
 
11985
          ;;
 
11986
      esac
 
11987
      fi
 
11988
        ;;
 
11989
 
 
11990
  dgux*)
 
11991
    case $cc_basename in
 
11992
      ec++*)
 
11993
        # FIXME: insert proper C++ library support
 
11994
        ld_shlibs_CXX=no
 
11995
        ;;
 
11996
      ghcx*)
 
11997
        # Green Hills C++ Compiler
 
11998
        # FIXME: insert proper C++ library support
 
11999
        ld_shlibs_CXX=no
 
12000
        ;;
 
12001
      *)
 
12002
        # FIXME: insert proper C++ library support
 
12003
        ld_shlibs_CXX=no
 
12004
        ;;
 
12005
    esac
 
12006
    ;;
 
12007
  freebsd[12]*)
 
12008
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
12009
    ld_shlibs_CXX=no
 
12010
    ;;
 
12011
  freebsd-elf*)
 
12012
    archive_cmds_need_lc_CXX=no
 
12013
    ;;
 
12014
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
12015
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12016
    # conventions
 
12017
    ld_shlibs_CXX=yes
 
12018
    ;;
 
12019
  gnu*)
 
12020
    ;;
 
12021
  hpux9*)
 
12022
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12023
    hardcode_libdir_separator_CXX=:
 
12024
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12025
    hardcode_direct_CXX=yes
 
12026
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12027
                                # but as the default
 
12028
                                # location of the library.
 
12029
 
 
12030
    case $cc_basename in
 
12031
    CC*)
 
12032
      # FIXME: insert proper C++ library support
 
12033
      ld_shlibs_CXX=no
 
12034
      ;;
 
12035
    aCC*)
 
12036
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12037
      # Commands to make compiler produce verbose output that lists
 
12038
      # what "hidden" libraries, object files and flags are used when
 
12039
      # linking a shared library.
 
12040
      #
 
12041
      # There doesn't appear to be a way to prevent this compiler from
 
12042
      # explicitly linking system object files so we need to strip them
 
12043
      # from the output so that they don't get included in the library
 
12044
      # dependencies.
 
12045
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12046
      ;;
 
12047
    *)
 
12048
      if test "$GXX" = yes; then
 
12049
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
12050
      else
 
12051
        # FIXME: insert proper C++ library support
 
12052
        ld_shlibs_CXX=no
 
12053
      fi
 
12054
      ;;
 
12055
    esac
 
12056
    ;;
 
12057
  hpux10*|hpux11*)
 
12058
    if test $with_gnu_ld = no; then
 
12059
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12060
      hardcode_libdir_separator_CXX=:
 
12061
 
 
12062
      case $host_cpu in
 
12063
      hppa*64*|ia64*)
 
12064
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
12065
        ;;
 
12066
      *)
 
12067
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12068
        ;;
 
12069
      esac
 
12070
    fi
 
12071
    case $host_cpu in
 
12072
    hppa*64*|ia64*)
 
12073
      hardcode_direct_CXX=no
 
12074
      hardcode_shlibpath_var_CXX=no
 
12075
      ;;
 
12076
    *)
 
12077
      hardcode_direct_CXX=yes
 
12078
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12079
                                              # but as the default
 
12080
                                              # location of the library.
 
12081
      ;;
 
12082
    esac
 
12083
 
 
12084
    case $cc_basename in
 
12085
      CC*)
 
12086
        # FIXME: insert proper C++ library support
 
12087
        ld_shlibs_CXX=no
 
12088
        ;;
 
12089
      aCC*)
 
12090
        case $host_cpu in
 
12091
        hppa*64*)
 
12092
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12093
          ;;
 
12094
        ia64*)
 
12095
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12096
          ;;
 
12097
        *)
 
12098
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12099
          ;;
 
12100
        esac
 
12101
        # Commands to make compiler produce verbose output that lists
 
12102
        # what "hidden" libraries, object files and flags are used when
 
12103
        # linking a shared library.
 
12104
        #
 
12105
        # There doesn't appear to be a way to prevent this compiler from
 
12106
        # explicitly linking system object files so we need to strip them
 
12107
        # from the output so that they don't get included in the library
 
12108
        # dependencies.
 
12109
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12110
        ;;
 
12111
      *)
 
12112
        if test "$GXX" = yes; then
 
12113
          if test $with_gnu_ld = no; then
 
12114
            case $host_cpu in
 
12115
            hppa*64*)
 
12116
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12117
              ;;
 
12118
            ia64*)
 
12119
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12120
              ;;
 
12121
            *)
 
12122
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12123
              ;;
 
12124
            esac
 
12125
          fi
 
12126
        else
 
12127
          # FIXME: insert proper C++ library support
 
12128
          ld_shlibs_CXX=no
 
12129
        fi
 
12130
        ;;
 
12131
    esac
 
12132
    ;;
 
12133
  interix3*)
 
12134
    hardcode_direct_CXX=no
 
12135
    hardcode_shlibpath_var_CXX=no
 
12136
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12137
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12138
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12139
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12140
    # default) and relocated if they conflict, which is a slow very memory
 
12141
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
12142
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12143
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12144
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
12145
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
12146
    ;;
 
12147
  irix5* | irix6*)
 
12148
    case $cc_basename in
 
12149
      CC*)
 
12150
        # SGI C++
 
12151
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
12152
 
 
12153
        # Archives containing C++ object files must be created using
 
12154
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12155
        # necessary to make sure instantiated templates are included
 
12156
        # in the archive.
 
12157
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12158
        ;;
 
12159
      *)
 
12160
        if test "$GXX" = yes; then
 
12161
          if test "$with_gnu_ld" = no; then
 
12162
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
 
12163
          else
 
12164
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
12165
          fi
 
12166
        fi
 
12167
        link_all_deplibs_CXX=yes
 
12168
        ;;
 
12169
    esac
 
12170
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12171
    hardcode_libdir_separator_CXX=:
 
12172
    ;;
 
12173
  linux*)
 
12174
    case $cc_basename in
 
12175
      KCC*)
 
12176
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12177
 
 
12178
        # KCC will only create a shared library if the output file
 
12179
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12180
        # to its proper name (with version) after linking.
 
12181
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
12182
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
12183
        # Commands to make compiler produce verbose output that lists
 
12184
        # what "hidden" libraries, object files and flags are used when
 
12185
        # linking a shared library.
 
12186
        #
 
12187
        # There doesn't appear to be a way to prevent this compiler from
 
12188
        # explicitly linking system object files so we need to strip them
 
12189
        # from the output so that they don't get included in the library
 
12190
        # dependencies.
 
12191
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12192
 
 
12193
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12194
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12195
 
 
12196
        # Archives containing C++ object files must be created using
 
12197
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12198
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12199
        ;;
 
12200
      icpc*)
 
12201
        # Intel C++
 
12202
        with_gnu_ld=yes
 
12203
        # version 8.0 and above of icpc choke on multiply defined symbols
 
12204
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12205
        # earlier do not add the objects themselves.
 
12206
        case `$CC -V 2>&1` in
 
12207
        *"Version 7."*)
 
12208
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12209
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12210
          ;;
 
12211
        *)  # Version 8.0 or newer
 
12212
          tmp_idyn=
 
12213
          case $host_cpu in
 
12214
            ia64*) tmp_idyn=' -i_dynamic';;
 
12215
          esac
 
12216
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12217
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12218
          ;;
 
12219
        esac
 
12220
        archive_cmds_need_lc_CXX=no
 
12221
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12222
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12223
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12224
        ;;
 
12225
      pgCC*)
 
12226
        # Portland Group C++ compiler
 
12227
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12228
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
12229
 
 
12230
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12231
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12232
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
12233
        ;;
 
12234
      cxx*)
 
12235
        # Compaq C++
 
12236
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12237
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
12238
 
 
12239
        runpath_var=LD_RUN_PATH
 
12240
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12241
        hardcode_libdir_separator_CXX=:
 
12242
 
 
12243
        # Commands to make compiler produce verbose output that lists
 
12244
        # what "hidden" libraries, object files and flags are used when
 
12245
        # linking a shared library.
 
12246
        #
 
12247
        # There doesn't appear to be a way to prevent this compiler from
 
12248
        # explicitly linking system object files so we need to strip them
 
12249
        # from the output so that they don't get included in the library
 
12250
        # dependencies.
 
12251
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12252
        ;;
 
12253
    esac
 
12254
    ;;
 
12255
  lynxos*)
 
12256
    # FIXME: insert proper C++ library support
 
12257
    ld_shlibs_CXX=no
 
12258
    ;;
 
12259
  m88k*)
 
12260
    # FIXME: insert proper C++ library support
 
12261
    ld_shlibs_CXX=no
 
12262
    ;;
 
12263
  mvs*)
 
12264
    case $cc_basename in
 
12265
      cxx*)
 
12266
        # FIXME: insert proper C++ library support
 
12267
        ld_shlibs_CXX=no
 
12268
        ;;
 
12269
      *)
 
12270
        # FIXME: insert proper C++ library support
 
12271
        ld_shlibs_CXX=no
 
12272
        ;;
 
12273
    esac
 
12274
    ;;
 
12275
  netbsd*)
 
12276
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12277
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12278
      wlarc=
 
12279
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12280
      hardcode_direct_CXX=yes
 
12281
      hardcode_shlibpath_var_CXX=no
 
12282
    fi
 
12283
    # Workaround some broken pre-1.5 toolchains
 
12284
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12285
    ;;
 
12286
  openbsd2*)
 
12287
    # C++ shared libraries are fairly broken
 
12288
    ld_shlibs_CXX=no
 
12289
    ;;
 
12290
  openbsd*)
 
12291
    hardcode_direct_CXX=yes
 
12292
    hardcode_shlibpath_var_CXX=no
 
12293
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12294
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12295
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12296
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12297
      export_dynamic_flag_spec_CXX='${wl}-E'
 
12298
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12299
    fi
 
12300
    output_verbose_link_cmd='echo'
 
12301
    ;;
 
12302
  osf3*)
 
12303
    case $cc_basename in
 
12304
      KCC*)
 
12305
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12306
 
 
12307
        # KCC will only create a shared library if the output file
 
12308
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12309
        # to its proper name (with version) after linking.
 
12310
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
12311
 
 
12312
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12313
        hardcode_libdir_separator_CXX=:
 
12314
 
 
12315
        # Archives containing C++ object files must be created using
 
12316
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12317
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12318
 
 
12319
        ;;
 
12320
      RCC*)
 
12321
        # Rational C++ 2.4.1
 
12322
        # FIXME: insert proper C++ library support
 
12323
        ld_shlibs_CXX=no
 
12324
        ;;
 
12325
      cxx*)
 
12326
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12327
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
12328
 
 
12329
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12330
        hardcode_libdir_separator_CXX=:
 
12331
 
 
12332
        # Commands to make compiler produce verbose output that lists
 
12333
        # what "hidden" libraries, object files and flags are used when
 
12334
        # linking a shared library.
 
12335
        #
 
12336
        # There doesn't appear to be a way to prevent this compiler from
 
12337
        # explicitly linking system object files so we need to strip them
 
12338
        # from the output so that they don't get included in the library
 
12339
        # dependencies.
 
12340
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12341
        ;;
 
12342
      *)
 
12343
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12344
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12345
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12346
 
 
12347
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12348
          hardcode_libdir_separator_CXX=:
 
12349
 
 
12350
          # Commands to make compiler produce verbose output that lists
 
12351
          # what "hidden" libraries, object files and flags are used when
 
12352
          # linking a shared library.
 
12353
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12354
 
 
12355
        else
 
12356
          # FIXME: insert proper C++ library support
 
12357
          ld_shlibs_CXX=no
 
12358
        fi
 
12359
        ;;
 
12360
    esac
 
12361
    ;;
 
12362
  osf4* | osf5*)
 
12363
    case $cc_basename in
 
12364
      KCC*)
 
12365
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12366
 
 
12367
        # KCC will only create a shared library if the output file
 
12368
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12369
        # to its proper name (with version) after linking.
 
12370
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
12371
 
 
12372
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12373
        hardcode_libdir_separator_CXX=:
 
12374
 
 
12375
        # Archives containing C++ object files must be created using
 
12376
        # the KAI C++ compiler.
 
12377
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12378
        ;;
 
12379
      RCC*)
 
12380
        # Rational C++ 2.4.1
 
12381
        # FIXME: insert proper C++ library support
 
12382
        ld_shlibs_CXX=no
 
12383
        ;;
 
12384
      cxx*)
 
12385
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12386
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
12387
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12388
          echo "-hidden">> $lib.exp~
 
12389
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
12390
          $rm $lib.exp'
 
12391
 
 
12392
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12393
        hardcode_libdir_separator_CXX=:
 
12394
 
 
12395
        # Commands to make compiler produce verbose output that lists
 
12396
        # what "hidden" libraries, object files and flags are used when
 
12397
        # linking a shared library.
 
12398
        #
 
12399
        # There doesn't appear to be a way to prevent this compiler from
 
12400
        # explicitly linking system object files so we need to strip them
 
12401
        # from the output so that they don't get included in the library
 
12402
        # dependencies.
 
12403
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12404
        ;;
 
12405
      *)
 
12406
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12407
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12408
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12409
 
 
12410
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12411
          hardcode_libdir_separator_CXX=:
 
12412
 
 
12413
          # Commands to make compiler produce verbose output that lists
 
12414
          # what "hidden" libraries, object files and flags are used when
 
12415
          # linking a shared library.
 
12416
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12417
 
 
12418
        else
 
12419
          # FIXME: insert proper C++ library support
 
12420
          ld_shlibs_CXX=no
 
12421
        fi
 
12422
        ;;
 
12423
    esac
 
12424
    ;;
 
12425
  psos*)
 
12426
    # FIXME: insert proper C++ library support
 
12427
    ld_shlibs_CXX=no
 
12428
    ;;
 
12429
  sunos4*)
 
12430
    case $cc_basename in
 
12431
      CC*)
 
12432
        # Sun C++ 4.x
 
12433
        # FIXME: insert proper C++ library support
 
12434
        ld_shlibs_CXX=no
 
12435
        ;;
 
12436
      lcc*)
 
12437
        # Lucid
 
12438
        # FIXME: insert proper C++ library support
 
12439
        ld_shlibs_CXX=no
 
12440
        ;;
 
12441
      *)
 
12442
        # FIXME: insert proper C++ library support
 
12443
        ld_shlibs_CXX=no
 
12444
        ;;
 
12445
    esac
 
12446
    ;;
 
12447
  solaris*)
 
12448
    case $cc_basename in
 
12449
      CC*)
 
12450
        # Sun C++ 4.2, 5.x and Centerline C++
 
12451
        archive_cmds_need_lc_CXX=yes
 
12452
        no_undefined_flag_CXX=' -zdefs'
 
12453
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12454
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12455
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12456
 
 
12457
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12458
        hardcode_shlibpath_var_CXX=no
 
12459
        case $host_os in
 
12460
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12461
          *)
 
12462
            # The C++ compiler is used as linker so we must use $wl
 
12463
            # flag to pass the commands to the underlying system
 
12464
            # linker. We must also pass each convience library through
 
12465
            # to the system linker between allextract/defaultextract.
 
12466
            # The C++ compiler will combine linker options so we
 
12467
            # cannot just pass the convience library names through
 
12468
            # without $wl.
 
12469
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12470
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
12471
            ;;
 
12472
        esac
 
12473
        link_all_deplibs_CXX=yes
 
12474
 
 
12475
        output_verbose_link_cmd='echo'
 
12476
 
 
12477
        # Archives containing C++ object files must be created using
 
12478
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12479
        # necessary to make sure instantiated templates are included
 
12480
        # in the archive.
 
12481
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12482
        ;;
 
12483
      gcx*)
 
12484
        # Green Hills C++ Compiler
 
12485
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12486
 
 
12487
        # The C++ compiler must be used to create the archive.
 
12488
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12489
        ;;
 
12490
      *)
 
12491
        # GNU C++ compiler with Solaris linker
 
12492
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12493
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12494
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12495
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12496
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12497
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12498
 
 
12499
            # Commands to make compiler produce verbose output that lists
 
12500
            # what "hidden" libraries, object files and flags are used when
 
12501
            # linking a shared library.
 
12502
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12503
          else
 
12504
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12505
            # platform.
 
12506
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12507
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12508
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12509
 
 
12510
            # Commands to make compiler produce verbose output that lists
 
12511
            # what "hidden" libraries, object files and flags are used when
 
12512
            # linking a shared library.
 
12513
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12514
          fi
 
12515
 
 
12516
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12517
        fi
 
12518
        ;;
 
12519
    esac
 
12520
    ;;
 
12521
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12522
    no_undefined_flag_CXX='${wl}-z,text'
 
12523
    archive_cmds_need_lc_CXX=no
 
12524
    hardcode_shlibpath_var_CXX=no
 
12525
    runpath_var='LD_RUN_PATH'
 
12526
 
 
12527
    case $cc_basename in
 
12528
      CC*)
 
12529
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12530
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12531
        ;;
 
12532
      *)
 
12533
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12534
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12535
        ;;
 
12536
    esac
 
12537
    ;;
 
12538
  sysv5* | sco3.2v5* | sco5v6*)
 
12539
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12540
    # link with -lc, and that would cause any symbols used from libc to
 
12541
    # always be unresolved, which means just about no library would
 
12542
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12543
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12544
    # as -z defs.
 
12545
    # For security reasons, it is highly recommended that you always
 
12546
    # use absolute paths for naming shared libraries, and exclude the
 
12547
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12548
    # requires that you compile everything twice, which is a pain.
 
12549
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12550
    # non-empty value in the environment.  Most likely only useful for
 
12551
    # creating official distributions of packages.
 
12552
    # This is a hack until libtool officially supports absolute path
 
12553
    # names for shared libraries.
 
12554
    no_undefined_flag_CXX='${wl}-z,text'
 
12555
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12556
    archive_cmds_need_lc_CXX=no
 
12557
    hardcode_shlibpath_var_CXX=no
 
12558
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12559
    hardcode_libdir_separator_CXX=':'
 
12560
    link_all_deplibs_CXX=yes
 
12561
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12562
    runpath_var='LD_RUN_PATH'
 
12563
 
 
12564
    case $cc_basename in
 
12565
      CC*)
 
12566
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12567
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12568
        ;;
 
12569
      *)
 
12570
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12571
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12572
        ;;
 
12573
    esac
 
12574
    ;;
 
12575
  tandem*)
 
12576
    case $cc_basename in
 
12577
      NCC*)
 
12578
        # NonStop-UX NCC 3.20
 
12579
        # FIXME: insert proper C++ library support
 
12580
        ld_shlibs_CXX=no
 
12581
        ;;
 
12582
      *)
 
12583
        # FIXME: insert proper C++ library support
 
12584
        ld_shlibs_CXX=no
 
12585
        ;;
 
12586
    esac
 
12587
    ;;
 
12588
  vxworks*)
 
12589
    # FIXME: insert proper C++ library support
 
12590
    ld_shlibs_CXX=no
 
12591
    ;;
 
12592
  *)
 
12593
    # FIXME: insert proper C++ library support
 
12594
    ld_shlibs_CXX=no
 
12595
    ;;
 
12596
esac
 
12597
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12598
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12599
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12600
 
 
12601
GCC_CXX="$GXX"
 
12602
LD_CXX="$LD"
 
12603
 
 
12604
 
 
12605
cat > conftest.$ac_ext <<EOF
 
12606
class Foo
 
12607
{
 
12608
public:
 
12609
  Foo (void) { a = 0; }
 
12610
private:
 
12611
  int a;
 
12612
};
 
12613
EOF
 
12614
 
 
12615
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12616
  (eval $ac_compile) 2>&5
 
12617
  ac_status=$?
 
12618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12619
  (exit $ac_status); }; then
 
12620
  # Parse the compiler output and extract the necessary
 
12621
  # objects, libraries and library flags.
 
12622
 
 
12623
  # Sentinel used to keep track of whether or not we are before
 
12624
  # the conftest object file.
 
12625
  pre_test_object_deps_done=no
 
12626
 
 
12627
  # The `*' in the case matches for architectures that use `case' in
 
12628
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12629
  # eval without this substitution.
 
12630
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12631
 
 
12632
  for p in `eval $output_verbose_link_cmd`; do
 
12633
    case $p in
 
12634
 
 
12635
    -L* | -R* | -l*)
 
12636
       # Some compilers place space between "-{L,R}" and the path.
 
12637
       # Remove the space.
 
12638
       if test $p = "-L" \
 
12639
          || test $p = "-R"; then
 
12640
         prev=$p
 
12641
         continue
 
12642
       else
 
12643
         prev=
 
12644
       fi
 
12645
 
 
12646
       if test "$pre_test_object_deps_done" = no; then
 
12647
         case $p in
 
12648
         -L* | -R*)
 
12649
           # Internal compiler library paths should come after those
 
12650
           # provided the user.  The postdeps already come after the
 
12651
           # user supplied libs so there is no need to process them.
 
12652
           if test -z "$compiler_lib_search_path_CXX"; then
 
12653
             compiler_lib_search_path_CXX="${prev}${p}"
 
12654
           else
 
12655
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12656
           fi
 
12657
           ;;
 
12658
         # The "-l" case would never come before the object being
 
12659
         # linked, so don't bother handling this case.
 
12660
         esac
 
12661
       else
 
12662
         if test -z "$postdeps_CXX"; then
 
12663
           postdeps_CXX="${prev}${p}"
 
12664
         else
 
12665
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12666
         fi
 
12667
       fi
 
12668
       ;;
 
12669
 
 
12670
    *.$objext)
 
12671
       # This assumes that the test object file only shows up
 
12672
       # once in the compiler output.
 
12673
       if test "$p" = "conftest.$objext"; then
 
12674
         pre_test_object_deps_done=yes
 
12675
         continue
 
12676
       fi
 
12677
 
 
12678
       if test "$pre_test_object_deps_done" = no; then
 
12679
         if test -z "$predep_objects_CXX"; then
 
12680
           predep_objects_CXX="$p"
 
12681
         else
 
12682
           predep_objects_CXX="$predep_objects_CXX $p"
 
12683
         fi
 
12684
       else
 
12685
         if test -z "$postdep_objects_CXX"; then
 
12686
           postdep_objects_CXX="$p"
 
12687
         else
 
12688
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12689
         fi
 
12690
       fi
 
12691
       ;;
 
12692
 
 
12693
    *) ;; # Ignore the rest.
 
12694
 
 
12695
    esac
 
12696
  done
 
12697
 
 
12698
  # Clean up.
 
12699
  rm -f a.out a.exe
 
12700
else
 
12701
  echo "libtool.m4: error: problem compiling CXX test program"
 
12702
fi
 
12703
 
 
12704
$rm -f confest.$objext
 
12705
 
 
12706
# PORTME: override above test on systems where it is broken
 
12707
case $host_os in
 
12708
interix3*)
 
12709
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12710
  # hack all around it, let's just trust "g++" to DTRT.
 
12711
  predep_objects_CXX=
 
12712
  postdep_objects_CXX=
 
12713
  postdeps_CXX=
 
12714
  ;;
 
12715
 
 
12716
solaris*)
 
12717
  case $cc_basename in
 
12718
  CC*)
 
12719
    # Adding this requires a known-good setup of shared libraries for
 
12720
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12721
    # archive will be linked into the output, leading to subtle bugs.
 
12722
    postdeps_CXX='-lCstd -lCrun'
 
12723
    ;;
 
12724
  esac
 
12725
  ;;
 
12726
esac
 
12727
 
 
12728
 
 
12729
case " $postdeps_CXX " in
 
12730
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12731
esac
 
12732
 
 
12733
lt_prog_compiler_wl_CXX=
 
12734
lt_prog_compiler_pic_CXX=
 
12735
lt_prog_compiler_static_CXX=
 
12736
 
 
12737
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12738
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12739
 
 
12740
  # C++ specific cases for pic, static, wl, etc.
 
12741
  if test "$GXX" = yes; then
 
12742
    lt_prog_compiler_wl_CXX='-Wl,'
 
12743
    lt_prog_compiler_static_CXX='-static'
 
12744
 
 
12745
    case $host_os in
 
12746
    aix*)
 
12747
      # All AIX code is PIC.
 
12748
      if test "$host_cpu" = ia64; then
 
12749
        # AIX 5 now supports IA64 processor
 
12750
        lt_prog_compiler_static_CXX='-Bstatic'
 
12751
      fi
 
12752
      ;;
 
12753
    amigaos*)
 
12754
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12755
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12756
      # like `-m68040'.
 
12757
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12758
      ;;
 
12759
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12760
      # PIC is the default for these OSes.
 
12761
      ;;
 
12762
    mingw* | os2* | pw32*)
 
12763
      # This hack is so that the source file can tell whether it is being
 
12764
      # built for inclusion in a dll (and should export symbols for example).
 
12765
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12766
      ;;
 
12767
    darwin* | rhapsody*)
 
12768
      # PIC is the default on this platform
 
12769
      # Common symbols not allowed in MH_DYLIB files
 
12770
      lt_prog_compiler_pic_CXX='-fno-common'
 
12771
      ;;
 
12772
    *djgpp*)
 
12773
      # DJGPP does not support shared libraries at all
 
12774
      lt_prog_compiler_pic_CXX=
 
12775
      ;;
 
12776
    interix3*)
 
12777
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12778
      # Instead, we relocate shared libraries at runtime.
 
12779
      ;;
 
12780
    sysv4*MP*)
 
12781
      if test -d /usr/nec; then
 
12782
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12783
      fi
 
12784
      ;;
 
12785
    hpux*)
 
12786
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12787
      # not for PA HP-UX.
 
12788
      case $host_cpu in
 
12789
      hppa*64*|ia64*)
 
12790
        ;;
 
12791
      *)
 
12792
        lt_prog_compiler_pic_CXX='-fPIC'
 
12793
        ;;
 
12794
      esac
 
12795
      ;;
 
12796
    *)
 
12797
      lt_prog_compiler_pic_CXX='-fPIC'
 
12798
      ;;
 
12799
    esac
 
12800
  else
 
12801
    case $host_os in
 
12802
      aix4* | aix5*)
 
12803
        # All AIX code is PIC.
 
12804
        if test "$host_cpu" = ia64; then
 
12805
          # AIX 5 now supports IA64 processor
 
12806
          lt_prog_compiler_static_CXX='-Bstatic'
 
12807
        else
 
12808
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12809
        fi
 
12810
        ;;
 
12811
      chorus*)
 
12812
        case $cc_basename in
 
12813
        cxch68*)
 
12814
          # Green Hills C++ Compiler
 
12815
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
12816
          ;;
 
12817
        esac
 
12818
        ;;
 
12819
       darwin*)
 
12820
         # PIC is the default on this platform
 
12821
         # Common symbols not allowed in MH_DYLIB files
 
12822
         case $cc_basename in
 
12823
           xlc*)
 
12824
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12825
           lt_prog_compiler_wl_CXX='-Wl,'
 
12826
           ;;
 
12827
         esac
 
12828
       ;;
 
12829
      dgux*)
 
12830
        case $cc_basename in
 
12831
          ec++*)
 
12832
            lt_prog_compiler_pic_CXX='-KPIC'
 
12833
            ;;
 
12834
          ghcx*)
 
12835
            # Green Hills C++ Compiler
 
12836
            lt_prog_compiler_pic_CXX='-pic'
 
12837
            ;;
 
12838
          *)
 
12839
            ;;
 
12840
        esac
 
12841
        ;;
 
12842
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
12843
        # FreeBSD uses GNU C++
 
12844
        ;;
 
12845
      hpux9* | hpux10* | hpux11*)
 
12846
        case $cc_basename in
 
12847
          CC*)
 
12848
            lt_prog_compiler_wl_CXX='-Wl,'
 
12849
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12850
            if test "$host_cpu" != ia64; then
 
12851
              lt_prog_compiler_pic_CXX='+Z'
 
12852
            fi
 
12853
            ;;
 
12854
          aCC*)
 
12855
            lt_prog_compiler_wl_CXX='-Wl,'
 
12856
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12857
            case $host_cpu in
 
12858
            hppa*64*|ia64*)
 
12859
              # +Z the default
 
12860
              ;;
 
12861
            *)
 
12862
              lt_prog_compiler_pic_CXX='+Z'
 
12863
              ;;
 
12864
            esac
 
12865
            ;;
 
12866
          *)
 
12867
            ;;
 
12868
        esac
 
12869
        ;;
 
12870
      interix*)
 
12871
        # This is c89, which is MS Visual C++ (no shared libs)
 
12872
        # Anyone wants to do a port?
 
12873
        ;;
 
12874
      irix5* | irix6* | nonstopux*)
 
12875
        case $cc_basename in
 
12876
          CC*)
 
12877
            lt_prog_compiler_wl_CXX='-Wl,'
 
12878
            lt_prog_compiler_static_CXX='-non_shared'
 
12879
            # CC pic flag -KPIC is the default.
 
12880
            ;;
 
12881
          *)
 
12882
            ;;
 
12883
        esac
 
12884
        ;;
 
12885
      linux*)
 
12886
        case $cc_basename in
 
12887
          KCC*)
 
12888
            # KAI C++ Compiler
 
12889
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12890
            lt_prog_compiler_pic_CXX='-fPIC'
 
12891
            ;;
 
12892
          icpc* | ecpc*)
 
12893
            # Intel C++
 
12894
            lt_prog_compiler_wl_CXX='-Wl,'
 
12895
            lt_prog_compiler_pic_CXX='-KPIC'
 
12896
            lt_prog_compiler_static_CXX='-static'
 
12897
            ;;
 
12898
          pgCC*)
 
12899
            # Portland Group C++ compiler.
 
12900
            lt_prog_compiler_wl_CXX='-Wl,'
 
12901
            lt_prog_compiler_pic_CXX='-fpic'
 
12902
            lt_prog_compiler_static_CXX='-Bstatic'
 
12903
            ;;
 
12904
          cxx*)
 
12905
            # Compaq C++
 
12906
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12907
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12908
            lt_prog_compiler_pic_CXX=
 
12909
            lt_prog_compiler_static_CXX='-non_shared'
 
12910
            ;;
 
12911
          *)
 
12912
            ;;
 
12913
        esac
 
12914
        ;;
 
12915
      lynxos*)
 
12916
        ;;
 
12917
      m88k*)
 
12918
        ;;
 
12919
      mvs*)
 
12920
        case $cc_basename in
 
12921
          cxx*)
 
12922
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12923
            ;;
 
12924
          *)
 
12925
            ;;
 
12926
        esac
 
12927
        ;;
 
12928
      netbsd*)
 
12929
        ;;
 
12930
      osf3* | osf4* | osf5*)
 
12931
        case $cc_basename in
 
12932
          KCC*)
 
12933
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12934
            ;;
 
12935
          RCC*)
 
12936
            # Rational C++ 2.4.1
 
12937
            lt_prog_compiler_pic_CXX='-pic'
 
12938
            ;;
 
12939
          cxx*)
 
12940
            # Digital/Compaq C++
 
12941
            lt_prog_compiler_wl_CXX='-Wl,'
 
12942
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12943
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12944
            lt_prog_compiler_pic_CXX=
 
12945
            lt_prog_compiler_static_CXX='-non_shared'
 
12946
            ;;
 
12947
          *)
 
12948
            ;;
 
12949
        esac
 
12950
        ;;
 
12951
      psos*)
 
12952
        ;;
 
12953
      solaris*)
 
12954
        case $cc_basename in
 
12955
          CC*)
 
12956
            # Sun C++ 4.2, 5.x and Centerline C++
 
12957
            lt_prog_compiler_pic_CXX='-KPIC'
 
12958
            lt_prog_compiler_static_CXX='-Bstatic'
 
12959
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12960
            ;;
 
12961
          gcx*)
 
12962
            # Green Hills C++ Compiler
 
12963
            lt_prog_compiler_pic_CXX='-PIC'
 
12964
            ;;
 
12965
          *)
 
12966
            ;;
 
12967
        esac
 
12968
        ;;
 
12969
      sunos4*)
 
12970
        case $cc_basename in
 
12971
          CC*)
 
12972
            # Sun C++ 4.x
 
12973
            lt_prog_compiler_pic_CXX='-pic'
 
12974
            lt_prog_compiler_static_CXX='-Bstatic'
 
12975
            ;;
 
12976
          lcc*)
 
12977
            # Lucid
 
12978
            lt_prog_compiler_pic_CXX='-pic'
 
12979
            ;;
 
12980
          *)
 
12981
            ;;
 
12982
        esac
 
12983
        ;;
 
12984
      tandem*)
 
12985
        case $cc_basename in
 
12986
          NCC*)
 
12987
            # NonStop-UX NCC 3.20
 
12988
            lt_prog_compiler_pic_CXX='-KPIC'
 
12989
            ;;
 
12990
          *)
 
12991
            ;;
 
12992
        esac
 
12993
        ;;
 
12994
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12995
        case $cc_basename in
 
12996
          CC*)
 
12997
            lt_prog_compiler_wl_CXX='-Wl,'
 
12998
            lt_prog_compiler_pic_CXX='-KPIC'
 
12999
            lt_prog_compiler_static_CXX='-Bstatic'
 
13000
            ;;
 
13001
        esac
 
13002
        ;;
 
13003
      vxworks*)
 
13004
        ;;
 
13005
      *)
 
13006
        lt_prog_compiler_can_build_shared_CXX=no
 
13007
        ;;
 
13008
    esac
 
13009
  fi
 
13010
 
 
13011
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
13012
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
13013
 
 
13014
#
 
13015
# Check to make sure the PIC flag actually works.
 
13016
#
 
13017
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13018
 
 
13019
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13020
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
13021
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
13022
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13023
else
 
13024
  lt_prog_compiler_pic_works_CXX=no
 
13025
  ac_outfile=conftest.$ac_objext
 
13026
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13027
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13028
   # Insert the option either (1) after the last *FLAGS variable, or
 
13029
   # (2) before a word containing "conftest.", or (3) at the end.
 
13030
   # Note that $ac_compile itself does not contain backslashes and begins
 
13031
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13032
   # The option is referenced via a variable to avoid confusing sed.
 
13033
   lt_compile=`echo "$ac_compile" | $SED \
 
13034
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13035
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13036
   -e 's:$: $lt_compiler_flag:'`
 
13037
   (eval echo "\"\$as_me:13037: $lt_compile\"" >&5)
 
13038
   (eval "$lt_compile" 2>conftest.err)
 
13039
   ac_status=$?
 
13040
   cat conftest.err >&5
 
13041
   echo "$as_me:13041: \$? = $ac_status" >&5
 
13042
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13043
     # The compiler can only warn and ignore the option if not recognized
 
13044
     # So say no if there are warnings other than the usual output.
 
13045
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13046
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13047
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13048
       lt_prog_compiler_pic_works_CXX=yes
 
13049
     fi
 
13050
   fi
 
13051
   $rm conftest*
 
13052
 
 
13053
fi
 
13054
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
13055
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
13056
 
 
13057
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
13058
    case $lt_prog_compiler_pic_CXX in
 
13059
     "" | " "*) ;;
 
13060
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13061
     esac
 
13062
else
 
13063
    lt_prog_compiler_pic_CXX=
 
13064
     lt_prog_compiler_can_build_shared_CXX=no
 
13065
fi
 
13066
 
 
13067
fi
 
13068
case $host_os in
 
13069
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13070
  *djgpp*)
 
13071
    lt_prog_compiler_pic_CXX=
 
13072
    ;;
 
13073
  *)
 
13074
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13075
    ;;
 
13076
esac
 
13077
 
 
13078
#
 
13079
# Check to make sure the static flag actually works.
 
13080
#
 
13081
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13082
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13083
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
13084
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
13085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13086
else
 
13087
  lt_prog_compiler_static_works_CXX=no
 
13088
   save_LDFLAGS="$LDFLAGS"
 
13089
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13090
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13091
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13092
     # The linker can only warn and ignore the option if not recognized
 
13093
     # So say no if there are warnings
 
13094
     if test -s conftest.err; then
 
13095
       # Append any errors to the config.log.
 
13096
       cat conftest.err 1>&5
 
13097
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13098
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13099
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13100
         lt_prog_compiler_static_works_CXX=yes
 
13101
       fi
 
13102
     else
 
13103
       lt_prog_compiler_static_works_CXX=yes
 
13104
     fi
 
13105
   fi
 
13106
   $rm conftest*
 
13107
   LDFLAGS="$save_LDFLAGS"
 
13108
 
 
13109
fi
 
13110
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
13111
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
 
13112
 
 
13113
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
13114
    :
 
13115
else
 
13116
    lt_prog_compiler_static_CXX=
 
13117
fi
 
13118
 
 
13119
 
 
13120
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13121
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13122
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13124
else
 
13125
  lt_cv_prog_compiler_c_o_CXX=no
 
13126
   $rm -r conftest 2>/dev/null
 
13127
   mkdir conftest
 
13128
   cd conftest
 
13129
   mkdir out
 
13130
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13131
 
 
13132
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13133
   # Insert the option either (1) after the last *FLAGS variable, or
 
13134
   # (2) before a word containing "conftest.", or (3) at the end.
 
13135
   # Note that $ac_compile itself does not contain backslashes and begins
 
13136
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13137
   lt_compile=`echo "$ac_compile" | $SED \
 
13138
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13139
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13140
   -e 's:$: $lt_compiler_flag:'`
 
13141
   (eval echo "\"\$as_me:13141: $lt_compile\"" >&5)
 
13142
   (eval "$lt_compile" 2>out/conftest.err)
 
13143
   ac_status=$?
 
13144
   cat out/conftest.err >&5
 
13145
   echo "$as_me:13145: \$? = $ac_status" >&5
 
13146
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13147
   then
 
13148
     # The compiler can only warn and ignore the option if not recognized
 
13149
     # So say no if there are warnings
 
13150
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13151
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13152
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13153
       lt_cv_prog_compiler_c_o_CXX=yes
 
13154
     fi
 
13155
   fi
 
13156
   chmod u+w . 2>&5
 
13157
   $rm conftest*
 
13158
   # SGI C++ compiler will create directory out/ii_files/ for
 
13159
   # template instantiation
 
13160
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13161
   $rm out/* && rmdir out
 
13162
   cd ..
 
13163
   rmdir conftest
 
13164
   $rm conftest*
 
13165
 
 
13166
fi
 
13167
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13168
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
13169
 
 
13170
 
 
13171
hard_links="nottested"
 
13172
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13173
  # do not overwrite the value of need_locks provided by the user
 
13174
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13175
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13176
  hard_links=yes
 
13177
  $rm conftest*
 
13178
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13179
  touch conftest.a
 
13180
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13181
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13182
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13183
echo "${ECHO_T}$hard_links" >&6
 
13184
  if test "$hard_links" = no; then
 
13185
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13186
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13187
    need_locks=warn
 
13188
  fi
 
13189
else
 
13190
  need_locks=no
 
13191
fi
 
13192
 
 
13193
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13194
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13195
 
 
13196
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13197
  case $host_os in
 
13198
  aix4* | aix5*)
 
13199
    # If we're using GNU nm, then we don't want the "-C" option.
 
13200
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13201
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13202
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
13203
    else
 
13204
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
13205
    fi
 
13206
    ;;
 
13207
  pw32*)
 
13208
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13209
  ;;
 
13210
  cygwin* | mingw*)
 
13211
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13212
  ;;
 
13213
  *)
 
13214
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13215
  ;;
 
13216
  esac
 
13217
 
 
13218
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13219
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
13220
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13221
 
 
13222
#
 
13223
# Do we need to explicitly link libc?
 
13224
#
 
13225
case "x$archive_cmds_need_lc_CXX" in
 
13226
x|xyes)
 
13227
  # Assume -lc should be added
 
13228
  archive_cmds_need_lc_CXX=yes
 
13229
 
 
13230
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13231
    case $archive_cmds_CXX in
 
13232
    *'~'*)
 
13233
      # FIXME: we may have to deal with multi-command sequences.
 
13234
      ;;
 
13235
    '$CC '*)
 
13236
      # Test whether the compiler implicitly links with -lc since on some
 
13237
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13238
      # to ld, don't add -lc before -lgcc.
 
13239
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13240
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
13241
      $rm conftest*
 
13242
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13243
 
 
13244
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13245
  (eval $ac_compile) 2>&5
 
13246
  ac_status=$?
 
13247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13248
  (exit $ac_status); } 2>conftest.err; then
 
13249
        soname=conftest
 
13250
        lib=conftest
 
13251
        libobjs=conftest.$ac_objext
 
13252
        deplibs=
 
13253
        wl=$lt_prog_compiler_wl_CXX
 
13254
        pic_flag=$lt_prog_compiler_pic_CXX
 
13255
        compiler_flags=-v
 
13256
        linker_flags=-v
 
13257
        verstring=
 
13258
        output_objdir=.
 
13259
        libname=conftest
 
13260
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13261
        allow_undefined_flag_CXX=
 
13262
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13263
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13264
  ac_status=$?
 
13265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13266
  (exit $ac_status); }
 
13267
        then
 
13268
          archive_cmds_need_lc_CXX=no
 
13269
        else
 
13270
          archive_cmds_need_lc_CXX=yes
 
13271
        fi
 
13272
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13273
      else
 
13274
        cat conftest.err 1>&5
 
13275
      fi
 
13276
      $rm conftest*
 
13277
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13278
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
13279
      ;;
 
13280
    esac
 
13281
  fi
 
13282
  ;;
 
13283
esac
 
13284
 
 
13285
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13286
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
13287
library_names_spec=
 
13288
libname_spec='lib$name'
 
13289
soname_spec=
 
13290
shrext_cmds=".so"
 
13291
postinstall_cmds=
 
13292
postuninstall_cmds=
 
13293
finish_cmds=
 
13294
finish_eval=
 
13295
shlibpath_var=
 
13296
shlibpath_overrides_runpath=unknown
 
13297
version_type=none
 
13298
dynamic_linker="$host_os ld.so"
 
13299
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13300
if test "$GCC" = yes; then
 
13301
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13302
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
13303
    # if the path contains ";" then we assume it to be the separator
 
13304
    # otherwise default to the standard path separator (i.e. ":") - it is
 
13305
    # assumed that no part of a normal pathname contains ";" but that should
 
13306
    # okay in the real world where ";" in dirpaths is itself problematic.
 
13307
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13308
  else
 
13309
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13310
  fi
 
13311
else
 
13312
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
13313
fi
 
13314
need_lib_prefix=unknown
 
13315
hardcode_into_libs=no
 
13316
 
 
13317
# when you set need_version to no, make sure it does not cause -set_version
 
13318
# flags to be left without arguments
 
13319
need_version=unknown
 
13320
 
 
13321
case $host_os in
 
13322
aix3*)
 
13323
  version_type=linux
 
13324
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13325
  shlibpath_var=LIBPATH
 
13326
 
 
13327
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13328
  soname_spec='${libname}${release}${shared_ext}$major'
 
13329
  ;;
 
13330
 
 
13331
aix4* | aix5*)
 
13332
  version_type=linux
 
13333
  need_lib_prefix=no
 
13334
  need_version=no
 
13335
  hardcode_into_libs=yes
 
13336
  if test "$host_cpu" = ia64; then
 
13337
    # AIX 5 supports IA64
 
13338
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13339
    shlibpath_var=LD_LIBRARY_PATH
 
13340
  else
 
13341
    # With GCC up to 2.95.x, collect2 would create an import file
 
13342
    # for dependence libraries.  The import file would start with
 
13343
    # the line `#! .'.  This would cause the generated library to
 
13344
    # depend on `.', always an invalid library.  This was fixed in
 
13345
    # development snapshots of GCC prior to 3.0.
 
13346
    case $host_os in
 
13347
      aix4 | aix4.[01] | aix4.[01].*)
 
13348
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13349
           echo ' yes '
 
13350
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13351
        :
 
13352
      else
 
13353
        can_build_shared=no
 
13354
      fi
 
13355
      ;;
 
13356
    esac
 
13357
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13358
    # soname into executable. Probably we can add versioning support to
 
13359
    # collect2, so additional links can be useful in future.
 
13360
    if test "$aix_use_runtimelinking" = yes; then
 
13361
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13362
      # instead of lib<name>.a to let people know that these are not
 
13363
      # typical AIX shared libraries.
 
13364
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13365
    else
 
13366
      # We preserve .a as extension for shared libraries through AIX4.2
 
13367
      # and later when we are not doing run time linking.
 
13368
      library_names_spec='${libname}${release}.a $libname.a'
 
13369
      soname_spec='${libname}${release}${shared_ext}$major'
 
13370
    fi
 
13371
    shlibpath_var=LIBPATH
 
13372
  fi
 
13373
  ;;
 
13374
 
 
13375
amigaos*)
 
13376
  library_names_spec='$libname.ixlibrary $libname.a'
 
13377
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13378
  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'
 
13379
  ;;
 
13380
 
 
13381
beos*)
 
13382
  library_names_spec='${libname}${shared_ext}'
 
13383
  dynamic_linker="$host_os ld.so"
 
13384
  shlibpath_var=LIBRARY_PATH
 
13385
  ;;
 
13386
 
 
13387
bsdi[45]*)
 
13388
  version_type=linux
 
13389
  need_version=no
 
13390
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13391
  soname_spec='${libname}${release}${shared_ext}$major'
 
13392
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13393
  shlibpath_var=LD_LIBRARY_PATH
 
13394
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13395
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13396
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13397
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13398
  # libtool to hard-code these into programs
 
13399
  ;;
 
13400
 
 
13401
cygwin* | mingw* | pw32*)
 
13402
  version_type=windows
 
13403
  shrext_cmds=".dll"
 
13404
  need_version=no
 
13405
  need_lib_prefix=no
 
13406
 
 
13407
  case $GCC,$host_os in
 
13408
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13409
    library_names_spec='$libname.dll.a'
 
13410
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13411
    postinstall_cmds='base_file=`basename \${file}`~
 
13412
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13413
      dldir=$destdir/`dirname \$dlpath`~
 
13414
      test -d \$dldir || mkdir -p \$dldir~
 
13415
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13416
      chmod a+x \$dldir/$dlname'
 
13417
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13418
      dlpath=$dir/\$dldll~
 
13419
       $rm \$dlpath'
 
13420
    shlibpath_overrides_runpath=yes
 
13421
 
 
13422
    case $host_os in
 
13423
    cygwin*)
 
13424
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13425
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13426
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13427
      ;;
 
13428
    mingw*)
 
13429
      # MinGW DLLs use traditional 'lib' prefix
 
13430
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13431
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13432
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13433
        # It is most probably a Windows format PATH printed by
 
13434
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13435
        # path with ; separators, and with drive letters. We can handle the
 
13436
        # drive letters (cygwin fileutils understands them), so leave them,
 
13437
        # especially as we might pass files found there to a mingw objdump,
 
13438
        # which wouldn't understand a cygwinified path. Ahh.
 
13439
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13440
      else
 
13441
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13442
      fi
 
13443
      ;;
 
13444
    pw32*)
 
13445
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13446
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13447
      ;;
 
13448
    esac
 
13449
    ;;
 
13450
 
 
13451
  *)
 
13452
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13453
    ;;
 
13454
  esac
 
13455
  dynamic_linker='Win32 ld.exe'
 
13456
  # FIXME: first we should search . and the directory the executable is in
 
13457
  shlibpath_var=PATH
 
13458
  ;;
 
13459
 
 
13460
darwin* | rhapsody*)
 
13461
  dynamic_linker="$host_os dyld"
 
13462
  version_type=darwin
 
13463
  need_lib_prefix=no
 
13464
  need_version=no
 
13465
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13466
  soname_spec='${libname}${release}${major}$shared_ext'
 
13467
  shlibpath_overrides_runpath=yes
 
13468
  shlibpath_var=DYLD_LIBRARY_PATH
 
13469
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13470
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
13471
  if test "$GCC" = yes; then
 
13472
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
13473
  else
 
13474
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
13475
  fi
 
13476
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13477
  ;;
 
13478
 
 
13479
dgux*)
 
13480
  version_type=linux
 
13481
  need_lib_prefix=no
 
13482
  need_version=no
 
13483
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13484
  soname_spec='${libname}${release}${shared_ext}$major'
 
13485
  shlibpath_var=LD_LIBRARY_PATH
 
13486
  ;;
 
13487
 
 
13488
freebsd1*)
 
13489
  dynamic_linker=no
 
13490
  ;;
 
13491
 
 
13492
kfreebsd*-gnu)
 
13493
  version_type=linux
 
13494
  need_lib_prefix=no
 
13495
  need_version=no
 
13496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13497
  soname_spec='${libname}${release}${shared_ext}$major'
 
13498
  shlibpath_var=LD_LIBRARY_PATH
 
13499
  shlibpath_overrides_runpath=no
 
13500
  hardcode_into_libs=yes
 
13501
  dynamic_linker='GNU ld.so'
 
13502
  ;;
 
13503
 
 
13504
freebsd* | dragonfly*)
 
13505
  # DragonFly does not have aout.  When/if they implement a new
 
13506
  # versioning mechanism, adjust this.
 
13507
  if test -x /usr/bin/objformat; then
 
13508
    objformat=`/usr/bin/objformat`
 
13509
  else
 
13510
    case $host_os in
 
13511
    freebsd[123]*) objformat=aout ;;
 
13512
    *) objformat=elf ;;
 
13513
    esac
 
13514
  fi
 
13515
  version_type=freebsd-$objformat
 
13516
  case $version_type in
 
13517
    freebsd-elf*)
 
13518
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13519
      need_version=no
 
13520
      need_lib_prefix=no
 
13521
      ;;
 
13522
    freebsd-*)
 
13523
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13524
      need_version=yes
 
13525
      ;;
 
13526
  esac
 
13527
  shlibpath_var=LD_LIBRARY_PATH
 
13528
  case $host_os in
 
13529
  freebsd2*)
 
13530
    shlibpath_overrides_runpath=yes
 
13531
    ;;
 
13532
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13533
    shlibpath_overrides_runpath=yes
 
13534
    hardcode_into_libs=yes
 
13535
    ;;
 
13536
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13537
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13538
    shlibpath_overrides_runpath=no
 
13539
    hardcode_into_libs=yes
 
13540
    ;;
 
13541
  freebsd*) # from 4.6 on
 
13542
    shlibpath_overrides_runpath=yes
 
13543
    hardcode_into_libs=yes
 
13544
    ;;
 
13545
  esac
 
13546
  ;;
 
13547
 
 
13548
gnu*)
 
13549
  version_type=linux
 
13550
  need_lib_prefix=no
 
13551
  need_version=no
 
13552
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13553
  soname_spec='${libname}${release}${shared_ext}$major'
 
13554
  shlibpath_var=LD_LIBRARY_PATH
 
13555
  hardcode_into_libs=yes
 
13556
  ;;
 
13557
 
 
13558
hpux9* | hpux10* | hpux11*)
 
13559
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13560
  # link against other versions.
 
13561
  version_type=sunos
 
13562
  need_lib_prefix=no
 
13563
  need_version=no
 
13564
  case $host_cpu in
 
13565
  ia64*)
 
13566
    shrext_cmds='.so'
 
13567
    hardcode_into_libs=yes
 
13568
    dynamic_linker="$host_os dld.so"
 
13569
    shlibpath_var=LD_LIBRARY_PATH
 
13570
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13571
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13572
    soname_spec='${libname}${release}${shared_ext}$major'
 
13573
    if test "X$HPUX_IA64_MODE" = X32; then
 
13574
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13575
    else
 
13576
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13577
    fi
 
13578
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13579
    ;;
 
13580
   hppa*64*)
 
13581
     shrext_cmds='.sl'
 
13582
     hardcode_into_libs=yes
 
13583
     dynamic_linker="$host_os dld.sl"
 
13584
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13585
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13586
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13587
     soname_spec='${libname}${release}${shared_ext}$major'
 
13588
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13589
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13590
     ;;
 
13591
   *)
 
13592
    shrext_cmds='.sl'
 
13593
    dynamic_linker="$host_os dld.sl"
 
13594
    shlibpath_var=SHLIB_PATH
 
13595
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13596
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13597
    soname_spec='${libname}${release}${shared_ext}$major'
 
13598
    ;;
 
13599
  esac
 
13600
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13601
  postinstall_cmds='chmod 555 $lib'
 
13602
  ;;
 
13603
 
 
13604
interix3*)
 
13605
  version_type=linux
 
13606
  need_lib_prefix=no
 
13607
  need_version=no
 
13608
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13609
  soname_spec='${libname}${release}${shared_ext}$major'
 
13610
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13611
  shlibpath_var=LD_LIBRARY_PATH
 
13612
  shlibpath_overrides_runpath=no
 
13613
  hardcode_into_libs=yes
 
13614
  ;;
 
13615
 
 
13616
irix5* | irix6* | nonstopux*)
 
13617
  case $host_os in
 
13618
    nonstopux*) version_type=nonstopux ;;
 
13619
    *)
 
13620
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13621
                version_type=linux
 
13622
        else
 
13623
                version_type=irix
 
13624
        fi ;;
 
13625
  esac
 
13626
  need_lib_prefix=no
 
13627
  need_version=no
 
13628
  soname_spec='${libname}${release}${shared_ext}$major'
 
13629
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13630
  case $host_os in
 
13631
  irix5* | nonstopux*)
 
13632
    libsuff= shlibsuff=
 
13633
    ;;
 
13634
  *)
 
13635
    case $LD in # libtool.m4 will add one of these switches to LD
 
13636
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13637
      libsuff= shlibsuff= libmagic=32-bit;;
 
13638
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13639
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13640
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13641
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13642
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13643
    esac
 
13644
    ;;
 
13645
  esac
 
13646
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13647
  shlibpath_overrides_runpath=no
 
13648
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13649
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13650
  hardcode_into_libs=yes
 
13651
  ;;
 
13652
 
 
13653
# No shared lib support for Linux oldld, aout, or coff.
 
13654
linux*oldld* | linux*aout* | linux*coff*)
 
13655
  dynamic_linker=no
 
13656
  ;;
 
13657
 
 
13658
# This must be Linux ELF.
 
13659
linux*)
 
13660
  version_type=linux
 
13661
  need_lib_prefix=no
 
13662
  need_version=no
 
13663
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13664
  soname_spec='${libname}${release}${shared_ext}$major'
 
13665
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13666
  shlibpath_var=LD_LIBRARY_PATH
 
13667
  shlibpath_overrides_runpath=no
 
13668
  # This implies no fast_install, which is unacceptable.
 
13669
  # Some rework will be needed to allow for fast_install
 
13670
  # before this can be enabled.
 
13671
  hardcode_into_libs=yes
 
13672
 
 
13673
  # find out which ABI we are using
 
13674
  libsuff=
 
13675
  case "$host_cpu" in
 
13676
  x86_64*|s390x*|powerpc64*)
 
13677
    echo '#line 13677 "configure"' > conftest.$ac_ext
 
13678
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13679
  (eval $ac_compile) 2>&5
 
13680
  ac_status=$?
 
13681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13682
  (exit $ac_status); }; then
 
13683
      case `/usr/bin/file conftest.$ac_objext` in
 
13684
      *64-bit*)
 
13685
        libsuff=64
 
13686
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
13687
        ;;
 
13688
      esac
 
13689
    fi
 
13690
    rm -rf conftest*
 
13691
    ;;
 
13692
  esac
 
13693
 
 
13694
  # Append ld.so.conf contents to the search path
 
13695
  if test -f /etc/ld.so.conf; then
 
13696
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13697
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
13698
  fi
 
13699
 
 
13700
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13701
  # powerpc, because MkLinux only supported shared libraries with the
 
13702
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13703
  # most powerpc-linux boxes support dynamic linking these days and
 
13704
  # people can always --disable-shared, the test was removed, and we
 
13705
  # assume the GNU/Linux dynamic linker is in use.
 
13706
  dynamic_linker='GNU/Linux ld.so'
 
13707
  ;;
 
13708
 
 
13709
knetbsd*-gnu)
 
13710
  version_type=linux
 
13711
  need_lib_prefix=no
 
13712
  need_version=no
 
13713
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13714
  soname_spec='${libname}${release}${shared_ext}$major'
 
13715
  shlibpath_var=LD_LIBRARY_PATH
 
13716
  shlibpath_overrides_runpath=no
 
13717
  hardcode_into_libs=yes
 
13718
  dynamic_linker='GNU ld.so'
 
13719
  ;;
 
13720
 
 
13721
netbsd*)
 
13722
  version_type=sunos
 
13723
  need_lib_prefix=no
 
13724
  need_version=no
 
13725
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13726
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13727
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13728
    dynamic_linker='NetBSD (a.out) ld.so'
 
13729
  else
 
13730
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13731
    soname_spec='${libname}${release}${shared_ext}$major'
 
13732
    dynamic_linker='NetBSD ld.elf_so'
 
13733
  fi
 
13734
  shlibpath_var=LD_LIBRARY_PATH
 
13735
  shlibpath_overrides_runpath=yes
 
13736
  hardcode_into_libs=yes
 
13737
  ;;
 
13738
 
 
13739
newsos6)
 
13740
  version_type=linux
 
13741
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13742
  shlibpath_var=LD_LIBRARY_PATH
 
13743
  shlibpath_overrides_runpath=yes
 
13744
  ;;
 
13745
 
 
13746
nto-qnx*)
 
13747
  version_type=linux
 
13748
  need_lib_prefix=no
 
13749
  need_version=no
 
13750
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13751
  soname_spec='${libname}${release}${shared_ext}$major'
 
13752
  shlibpath_var=LD_LIBRARY_PATH
 
13753
  shlibpath_overrides_runpath=yes
 
13754
  ;;
 
13755
 
 
13756
openbsd*)
 
13757
  version_type=sunos
 
13758
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13759
  need_lib_prefix=no
 
13760
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13761
  case $host_os in
 
13762
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13763
    *)                         need_version=no  ;;
 
13764
  esac
 
13765
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13766
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13767
  shlibpath_var=LD_LIBRARY_PATH
 
13768
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13769
    case $host_os in
 
13770
      openbsd2.[89] | openbsd2.[89].*)
 
13771
        shlibpath_overrides_runpath=no
 
13772
        ;;
 
13773
      *)
 
13774
        shlibpath_overrides_runpath=yes
 
13775
        ;;
 
13776
      esac
 
13777
  else
 
13778
    shlibpath_overrides_runpath=yes
 
13779
  fi
 
13780
  ;;
 
13781
 
 
13782
os2*)
 
13783
  libname_spec='$name'
 
13784
  shrext_cmds=".dll"
 
13785
  need_lib_prefix=no
 
13786
  library_names_spec='$libname${shared_ext} $libname.a'
 
13787
  dynamic_linker='OS/2 ld.exe'
 
13788
  shlibpath_var=LIBPATH
 
13789
  ;;
 
13790
 
 
13791
osf3* | osf4* | osf5*)
 
13792
  version_type=osf
 
13793
  need_lib_prefix=no
 
13794
  need_version=no
 
13795
  soname_spec='${libname}${release}${shared_ext}$major'
 
13796
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13797
  shlibpath_var=LD_LIBRARY_PATH
 
13798
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13799
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13800
  ;;
 
13801
 
 
13802
solaris*)
 
13803
  version_type=linux
 
13804
  need_lib_prefix=no
 
13805
  need_version=no
 
13806
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13807
  soname_spec='${libname}${release}${shared_ext}$major'
 
13808
  shlibpath_var=LD_LIBRARY_PATH
 
13809
  shlibpath_overrides_runpath=yes
 
13810
  hardcode_into_libs=yes
 
13811
  # ldd complains unless libraries are executable
 
13812
  postinstall_cmds='chmod +x $lib'
 
13813
  ;;
 
13814
 
 
13815
sunos4*)
 
13816
  version_type=sunos
 
13817
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13818
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13819
  shlibpath_var=LD_LIBRARY_PATH
 
13820
  shlibpath_overrides_runpath=yes
 
13821
  if test "$with_gnu_ld" = yes; then
 
13822
    need_lib_prefix=no
 
13823
  fi
 
13824
  need_version=yes
 
13825
  ;;
 
13826
 
 
13827
sysv4 | sysv4.3*)
 
13828
  version_type=linux
 
13829
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13830
  soname_spec='${libname}${release}${shared_ext}$major'
 
13831
  shlibpath_var=LD_LIBRARY_PATH
 
13832
  case $host_vendor in
 
13833
    sni)
 
13834
      shlibpath_overrides_runpath=no
 
13835
      need_lib_prefix=no
 
13836
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13837
      runpath_var=LD_RUN_PATH
 
13838
      ;;
 
13839
    siemens)
 
13840
      need_lib_prefix=no
 
13841
      ;;
 
13842
    motorola)
 
13843
      need_lib_prefix=no
 
13844
      need_version=no
 
13845
      shlibpath_overrides_runpath=no
 
13846
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13847
      ;;
 
13848
  esac
 
13849
  ;;
 
13850
 
 
13851
sysv4*MP*)
 
13852
  if test -d /usr/nec ;then
 
13853
    version_type=linux
 
13854
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13855
    soname_spec='$libname${shared_ext}.$major'
 
13856
    shlibpath_var=LD_LIBRARY_PATH
 
13857
  fi
 
13858
  ;;
 
13859
 
 
13860
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13861
  version_type=freebsd-elf
 
13862
  need_lib_prefix=no
 
13863
  need_version=no
 
13864
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13865
  soname_spec='${libname}${release}${shared_ext}$major'
 
13866
  shlibpath_var=LD_LIBRARY_PATH
 
13867
  hardcode_into_libs=yes
 
13868
  if test "$with_gnu_ld" = yes; then
 
13869
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13870
    shlibpath_overrides_runpath=no
 
13871
  else
 
13872
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13873
    shlibpath_overrides_runpath=yes
 
13874
    case $host_os in
 
13875
      sco3.2v5*)
 
13876
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13877
        ;;
 
13878
    esac
 
13879
  fi
 
13880
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13881
  ;;
 
13882
 
 
13883
uts4*)
 
13884
  version_type=linux
 
13885
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13886
  soname_spec='${libname}${release}${shared_ext}$major'
 
13887
  shlibpath_var=LD_LIBRARY_PATH
 
13888
  ;;
 
13889
 
 
13890
*)
 
13891
  dynamic_linker=no
 
13892
  ;;
 
13893
esac
 
13894
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13895
echo "${ECHO_T}$dynamic_linker" >&6
 
13896
test "$dynamic_linker" = no && can_build_shared=no
 
13897
 
 
13898
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13899
if test "$GCC" = yes; then
 
13900
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13901
fi
 
13902
 
 
13903
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13904
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
13905
hardcode_action_CXX=
 
13906
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13907
   test -n "$runpath_var_CXX" || \
 
13908
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13909
 
 
13910
  # We can hardcode non-existant directories.
 
13911
  if test "$hardcode_direct_CXX" != no &&
 
13912
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13913
     # have to relink, otherwise we might link with an installed library
 
13914
     # when we should be linking with a yet-to-be-installed one
 
13915
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13916
     test "$hardcode_minus_L_CXX" != no; then
 
13917
    # Linking always hardcodes the temporary library directory.
 
13918
    hardcode_action_CXX=relink
 
13919
  else
 
13920
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13921
    hardcode_action_CXX=immediate
 
13922
  fi
 
13923
else
 
13924
  # We cannot hardcode anything, or else we can only hardcode existing
 
13925
  # directories.
 
13926
  hardcode_action_CXX=unsupported
 
13927
fi
 
13928
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13929
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
13930
 
 
13931
if test "$hardcode_action_CXX" = relink; then
 
13932
  # Fast installation is not supported
 
13933
  enable_fast_install=no
 
13934
elif test "$shlibpath_overrides_runpath" = yes ||
 
13935
     test "$enable_shared" = no; then
 
13936
  # Fast installation is not necessary
 
13937
  enable_fast_install=needless
 
13938
fi
 
13939
 
 
13940
 
 
13941
# The else clause should only fire when bootstrapping the
 
13942
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13943
# with your package, and you will get complaints that there are
 
13944
# no rules to generate ltmain.sh.
 
13945
if test -f "$ltmain"; then
 
13946
  # See if we are running on zsh, and set the options which allow our commands through
 
13947
  # without removal of \ escapes.
 
13948
  if test -n "${ZSH_VERSION+set}" ; then
 
13949
    setopt NO_GLOB_SUBST
 
13950
  fi
 
13951
  # Now quote all the things that may contain metacharacters while being
 
13952
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13953
  # variables and quote the copies for generation of the libtool script.
 
13954
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13955
    SED SHELL STRIP \
 
13956
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13957
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13958
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13959
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13960
    lt_cv_sys_global_symbol_to_c_name_address \
 
13961
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13962
    old_postinstall_cmds old_postuninstall_cmds \
 
13963
    compiler_CXX \
 
13964
    CC_CXX \
 
13965
    LD_CXX \
 
13966
    lt_prog_compiler_wl_CXX \
 
13967
    lt_prog_compiler_pic_CXX \
 
13968
    lt_prog_compiler_static_CXX \
 
13969
    lt_prog_compiler_no_builtin_flag_CXX \
 
13970
    export_dynamic_flag_spec_CXX \
 
13971
    thread_safe_flag_spec_CXX \
 
13972
    whole_archive_flag_spec_CXX \
 
13973
    enable_shared_with_static_runtimes_CXX \
 
13974
    old_archive_cmds_CXX \
 
13975
    old_archive_from_new_cmds_CXX \
 
13976
    predep_objects_CXX \
 
13977
    postdep_objects_CXX \
 
13978
    predeps_CXX \
 
13979
    postdeps_CXX \
 
13980
    compiler_lib_search_path_CXX \
 
13981
    archive_cmds_CXX \
 
13982
    archive_expsym_cmds_CXX \
 
13983
    postinstall_cmds_CXX \
 
13984
    postuninstall_cmds_CXX \
 
13985
    old_archive_from_expsyms_cmds_CXX \
 
13986
    allow_undefined_flag_CXX \
 
13987
    no_undefined_flag_CXX \
 
13988
    export_symbols_cmds_CXX \
 
13989
    hardcode_libdir_flag_spec_CXX \
 
13990
    hardcode_libdir_flag_spec_ld_CXX \
 
13991
    hardcode_libdir_separator_CXX \
 
13992
    hardcode_automatic_CXX \
 
13993
    module_cmds_CXX \
 
13994
    module_expsym_cmds_CXX \
 
13995
    lt_cv_prog_compiler_c_o_CXX \
 
13996
    exclude_expsyms_CXX \
 
13997
    include_expsyms_CXX; do
 
13998
 
 
13999
    case $var in
 
14000
    old_archive_cmds_CXX | \
 
14001
    old_archive_from_new_cmds_CXX | \
 
14002
    archive_cmds_CXX | \
 
14003
    archive_expsym_cmds_CXX | \
 
14004
    module_cmds_CXX | \
 
14005
    module_expsym_cmds_CXX | \
 
14006
    old_archive_from_expsyms_cmds_CXX | \
 
14007
    export_symbols_cmds_CXX | \
 
14008
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14009
    postinstall_cmds | postuninstall_cmds | \
 
14010
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14011
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14012
      # Double-quote double-evaled strings.
 
14013
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14014
      ;;
 
14015
    *)
 
14016
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14017
      ;;
 
14018
    esac
 
14019
  done
 
14020
 
 
14021
  case $lt_echo in
 
14022
  *'\$0 --fallback-echo"')
 
14023
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14024
    ;;
 
14025
  esac
 
14026
 
 
14027
cfgfile="$ofile"
 
14028
 
 
14029
  cat <<__EOF__ >> "$cfgfile"
 
14030
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14031
 
 
14032
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14033
 
 
14034
# Shell to use when invoking shell scripts.
 
14035
SHELL=$lt_SHELL
 
14036
 
 
14037
# Whether or not to build shared libraries.
 
14038
build_libtool_libs=$enable_shared
 
14039
 
 
14040
# Whether or not to build static libraries.
 
14041
build_old_libs=$enable_static
 
14042
 
 
14043
# Whether or not to add -lc for building shared libraries.
 
14044
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
14045
 
 
14046
# Whether or not to disallow shared libs when runtime libs are static
 
14047
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
14048
 
 
14049
# Whether or not to optimize for fast installation.
 
14050
fast_install=$enable_fast_install
 
14051
 
 
14052
# The host system.
 
14053
host_alias=$host_alias
 
14054
host=$host
 
14055
host_os=$host_os
 
14056
 
 
14057
# The build system.
 
14058
build_alias=$build_alias
 
14059
build=$build
 
14060
build_os=$build_os
 
14061
 
 
14062
# An echo program that does not interpret backslashes.
 
14063
echo=$lt_echo
 
14064
 
 
14065
# The archiver.
 
14066
AR=$lt_AR
 
14067
AR_FLAGS=$lt_AR_FLAGS
 
14068
 
 
14069
# A C compiler.
 
14070
LTCC=$lt_LTCC
 
14071
 
 
14072
# LTCC compiler flags.
 
14073
LTCFLAGS=$lt_LTCFLAGS
 
14074
 
 
14075
# A language-specific compiler.
 
14076
CC=$lt_compiler_CXX
 
14077
 
 
14078
# Is the compiler the GNU C compiler?
 
14079
with_gcc=$GCC_CXX
 
14080
 
 
14081
# An ERE matcher.
 
14082
EGREP=$lt_EGREP
 
14083
 
 
14084
# The linker used to build libraries.
 
14085
LD=$lt_LD_CXX
 
14086
 
 
14087
# Whether we need hard or soft links.
 
14088
LN_S=$lt_LN_S
 
14089
 
 
14090
# A BSD-compatible nm program.
 
14091
NM=$lt_NM
 
14092
 
 
14093
# A symbol stripping program
 
14094
STRIP=$lt_STRIP
 
14095
 
 
14096
# Used to examine libraries when file_magic_cmd begins "file"
 
14097
MAGIC_CMD=$MAGIC_CMD
 
14098
 
 
14099
# Used on cygwin: DLL creation program.
 
14100
DLLTOOL="$DLLTOOL"
 
14101
 
 
14102
# Used on cygwin: object dumper.
 
14103
OBJDUMP="$OBJDUMP"
 
14104
 
 
14105
# Used on cygwin: assembler.
 
14106
AS="$AS"
 
14107
 
 
14108
# The name of the directory that contains temporary libtool files.
 
14109
objdir=$objdir
 
14110
 
 
14111
# How to create reloadable object files.
 
14112
reload_flag=$lt_reload_flag
 
14113
reload_cmds=$lt_reload_cmds
 
14114
 
 
14115
# How to pass a linker flag through the compiler.
 
14116
wl=$lt_lt_prog_compiler_wl_CXX
 
14117
 
 
14118
# Object file suffix (normally "o").
 
14119
objext="$ac_objext"
 
14120
 
 
14121
# Old archive suffix (normally "a").
 
14122
libext="$libext"
 
14123
 
 
14124
# Shared library suffix (normally ".so").
 
14125
shrext_cmds='$shrext_cmds'
 
14126
 
 
14127
# Executable file suffix (normally "").
 
14128
exeext="$exeext"
 
14129
 
 
14130
# Additional compiler flags for building library objects.
 
14131
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14132
pic_mode=$pic_mode
 
14133
 
 
14134
# What is the maximum length of a command?
 
14135
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14136
 
 
14137
# Does compiler simultaneously support -c and -o options?
 
14138
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14139
 
 
14140
# Must we lock files when doing compilation?
 
14141
need_locks=$lt_need_locks
 
14142
 
 
14143
# Do we need the lib prefix for modules?
 
14144
need_lib_prefix=$need_lib_prefix
 
14145
 
 
14146
# Do we need a version for libraries?
 
14147
need_version=$need_version
 
14148
 
 
14149
# Whether dlopen is supported.
 
14150
dlopen_support=$enable_dlopen
 
14151
 
 
14152
# Whether dlopen of programs is supported.
 
14153
dlopen_self=$enable_dlopen_self
 
14154
 
 
14155
# Whether dlopen of statically linked programs is supported.
 
14156
dlopen_self_static=$enable_dlopen_self_static
 
14157
 
 
14158
# Compiler flag to prevent dynamic linking.
 
14159
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14160
 
 
14161
# Compiler flag to turn off builtin functions.
 
14162
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14163
 
 
14164
# Compiler flag to allow reflexive dlopens.
 
14165
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14166
 
 
14167
# Compiler flag to generate shared objects directly from archives.
 
14168
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14169
 
 
14170
# Compiler flag to generate thread-safe objects.
 
14171
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14172
 
 
14173
# Library versioning type.
 
14174
version_type=$version_type
 
14175
 
 
14176
# Format of library name prefix.
 
14177
libname_spec=$lt_libname_spec
 
14178
 
 
14179
# List of archive names.  First name is the real one, the rest are links.
 
14180
# The last name is the one that the linker finds with -lNAME.
 
14181
library_names_spec=$lt_library_names_spec
 
14182
 
 
14183
# The coded name of the library, if different from the real name.
 
14184
soname_spec=$lt_soname_spec
 
14185
 
 
14186
# Commands used to build and install an old-style archive.
 
14187
RANLIB=$lt_RANLIB
 
14188
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14189
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14190
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14191
 
 
14192
# Create an old-style archive from a shared archive.
 
14193
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14194
 
 
14195
# Create a temporary old-style archive to link instead of a shared archive.
 
14196
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14197
 
 
14198
# Commands used to build and install a shared archive.
 
14199
archive_cmds=$lt_archive_cmds_CXX
 
14200
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14201
postinstall_cmds=$lt_postinstall_cmds
 
14202
postuninstall_cmds=$lt_postuninstall_cmds
 
14203
 
 
14204
# Commands used to build a loadable module (assumed same as above if empty)
 
14205
module_cmds=$lt_module_cmds_CXX
 
14206
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14207
 
 
14208
# Commands to strip libraries.
 
14209
old_striplib=$lt_old_striplib
 
14210
striplib=$lt_striplib
 
14211
 
 
14212
# Dependencies to place before the objects being linked to create a
 
14213
# shared library.
 
14214
predep_objects=$lt_predep_objects_CXX
 
14215
 
 
14216
# Dependencies to place after the objects being linked to create a
 
14217
# shared library.
 
14218
postdep_objects=$lt_postdep_objects_CXX
 
14219
 
 
14220
# Dependencies to place before the objects being linked to create a
 
14221
# shared library.
 
14222
predeps=$lt_predeps_CXX
 
14223
 
 
14224
# Dependencies to place after the objects being linked to create a
 
14225
# shared library.
 
14226
postdeps=$lt_postdeps_CXX
 
14227
 
 
14228
# The library search path used internally by the compiler when linking
 
14229
# a shared library.
 
14230
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14231
 
 
14232
# Method to check whether dependent libraries are shared objects.
 
14233
deplibs_check_method=$lt_deplibs_check_method
 
14234
 
 
14235
# Command to use when deplibs_check_method == file_magic.
 
14236
file_magic_cmd=$lt_file_magic_cmd
 
14237
 
 
14238
# Flag that allows shared libraries with undefined symbols to be built.
 
14239
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14240
 
 
14241
# Flag that forces no undefined symbols.
 
14242
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14243
 
 
14244
# Commands used to finish a libtool library installation in a directory.
 
14245
finish_cmds=$lt_finish_cmds
 
14246
 
 
14247
# Same as above, but a single script fragment to be evaled but not shown.
 
14248
finish_eval=$lt_finish_eval
 
14249
 
 
14250
# Take the output of nm and produce a listing of raw symbols and C names.
 
14251
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14252
 
 
14253
# Transform the output of nm in a proper C declaration
 
14254
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14255
 
 
14256
# Transform the output of nm in a C name address pair
 
14257
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14258
 
 
14259
# This is the shared library runtime path variable.
 
14260
runpath_var=$runpath_var
 
14261
 
 
14262
# This is the shared library path variable.
 
14263
shlibpath_var=$shlibpath_var
 
14264
 
 
14265
# Is shlibpath searched before the hard-coded library search path?
 
14266
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14267
 
 
14268
# How to hardcode a shared library path into an executable.
 
14269
hardcode_action=$hardcode_action_CXX
 
14270
 
 
14271
# Whether we should hardcode library paths into libraries.
 
14272
hardcode_into_libs=$hardcode_into_libs
 
14273
 
 
14274
# Flag to hardcode \$libdir into a binary during linking.
 
14275
# This must work even if \$libdir does not exist.
 
14276
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14277
 
 
14278
# If ld is used when linking, flag to hardcode \$libdir into
 
14279
# a binary during linking. This must work even if \$libdir does
 
14280
# not exist.
 
14281
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14282
 
 
14283
# Whether we need a single -rpath flag with a separated argument.
 
14284
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14285
 
 
14286
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14287
# resulting binary.
 
14288
hardcode_direct=$hardcode_direct_CXX
 
14289
 
 
14290
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14291
# resulting binary.
 
14292
hardcode_minus_L=$hardcode_minus_L_CXX
 
14293
 
 
14294
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14295
# the resulting binary.
 
14296
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14297
 
 
14298
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14299
# and all subsequent libraries and executables linked against it.
 
14300
hardcode_automatic=$hardcode_automatic_CXX
 
14301
 
 
14302
# Variables whose values should be saved in libtool wrapper scripts and
 
14303
# restored at relink time.
 
14304
variables_saved_for_relink="$variables_saved_for_relink"
 
14305
 
 
14306
# Whether libtool must link a program against all its dependency libraries.
 
14307
link_all_deplibs=$link_all_deplibs_CXX
 
14308
 
 
14309
# Compile-time system search path for libraries
 
14310
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14311
 
 
14312
# Run-time system search path for libraries
 
14313
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14314
 
 
14315
# Fix the shell variable \$srcfile for the compiler.
 
14316
fix_srcfile_path="$fix_srcfile_path_CXX"
 
14317
 
 
14318
# Set to yes if exported symbols are required.
 
14319
always_export_symbols=$always_export_symbols_CXX
 
14320
 
 
14321
# The commands to list exported symbols.
 
14322
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14323
 
 
14324
# The commands to extract the exported symbol list from a shared archive.
 
14325
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14326
 
 
14327
# Symbols that should not be listed in the preloaded symbols.
 
14328
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14329
 
 
14330
# Symbols that must always be exported.
 
14331
include_expsyms=$lt_include_expsyms_CXX
 
14332
 
 
14333
# ### END LIBTOOL TAG CONFIG: $tagname
 
14334
 
 
14335
__EOF__
 
14336
 
 
14337
 
 
14338
else
 
14339
  # If there is no Makefile yet, we rely on a make rule to execute
 
14340
  # `config.status --recheck' to rerun these tests and create the
 
14341
  # libtool script then.
 
14342
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14343
  if test -f "$ltmain_in"; then
 
14344
    test -f Makefile && make "$ltmain"
 
14345
  fi
 
14346
fi
 
14347
 
 
14348
 
 
14349
ac_ext=c
 
14350
ac_cpp='$CPP $CPPFLAGS'
 
14351
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14352
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14353
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14354
 
 
14355
CC=$lt_save_CC
 
14356
LDCXX=$LD
 
14357
LD=$lt_save_LD
 
14358
GCC=$lt_save_GCC
 
14359
with_gnu_ldcxx=$with_gnu_ld
 
14360
with_gnu_ld=$lt_save_with_gnu_ld
 
14361
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14362
lt_cv_path_LD=$lt_save_path_LD
 
14363
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14364
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14365
 
 
14366
        else
 
14367
          tagname=""
 
14368
        fi
 
14369
        ;;
 
14370
 
 
14371
      F77)
 
14372
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14373
 
 
14374
ac_ext=f
 
14375
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14376
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14377
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14378
 
 
14379
 
 
14380
archive_cmds_need_lc_F77=no
 
14381
allow_undefined_flag_F77=
 
14382
always_export_symbols_F77=no
 
14383
archive_expsym_cmds_F77=
 
14384
export_dynamic_flag_spec_F77=
 
14385
hardcode_direct_F77=no
 
14386
hardcode_libdir_flag_spec_F77=
 
14387
hardcode_libdir_flag_spec_ld_F77=
 
14388
hardcode_libdir_separator_F77=
 
14389
hardcode_minus_L_F77=no
 
14390
hardcode_automatic_F77=no
 
14391
module_cmds_F77=
 
14392
module_expsym_cmds_F77=
 
14393
link_all_deplibs_F77=unknown
 
14394
old_archive_cmds_F77=$old_archive_cmds
 
14395
no_undefined_flag_F77=
 
14396
whole_archive_flag_spec_F77=
 
14397
enable_shared_with_static_runtimes_F77=no
 
14398
 
 
14399
# Source file extension for f77 test sources.
 
14400
ac_ext=f
 
14401
 
 
14402
# Object file extension for compiled f77 test sources.
 
14403
objext=o
 
14404
objext_F77=$objext
 
14405
 
 
14406
# Code to be used in simple compile tests
 
14407
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
14408
 
 
14409
# Code to be used in simple link tests
 
14410
lt_simple_link_test_code="      program t\n      end\n"
 
14411
 
 
14412
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14413
 
 
14414
# If no C compiler was specified, use CC.
 
14415
LTCC=${LTCC-"$CC"}
 
14416
 
 
14417
# If no C compiler flags were specified, use CFLAGS.
 
14418
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14419
 
 
14420
# Allow CC to be a program name with arguments.
 
14421
compiler=$CC
 
14422
 
 
14423
 
 
14424
# save warnings/boilerplate of simple test code
 
14425
ac_outfile=conftest.$ac_objext
 
14426
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14427
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14428
_lt_compiler_boilerplate=`cat conftest.err`
 
14429
$rm conftest*
 
14430
 
 
14431
ac_outfile=conftest.$ac_objext
 
14432
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
14433
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14434
_lt_linker_boilerplate=`cat conftest.err`
 
14435
$rm conftest*
 
14436
 
 
14437
 
 
14438
# Allow CC to be a program name with arguments.
 
14439
lt_save_CC="$CC"
 
14440
CC=${F77-"f77"}
 
14441
compiler=$CC
 
14442
compiler_F77=$CC
 
14443
for cc_temp in $compiler""; do
 
14444
  case $cc_temp in
 
14445
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14446
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14447
    \-*) ;;
 
14448
    *) break;;
 
14449
  esac
 
14450
done
 
14451
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14452
 
 
14453
 
 
14454
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14455
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
14456
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14457
echo "${ECHO_T}$can_build_shared" >&6
 
14458
 
 
14459
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14460
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
14461
test "$can_build_shared" = "no" && enable_shared=no
 
14462
 
 
14463
# On AIX, shared libraries and static libraries use the same namespace, and
 
14464
# are all built from PIC.
 
14465
case $host_os in
 
14466
aix3*)
 
14467
  test "$enable_shared" = yes && enable_static=no
 
14468
  if test -n "$RANLIB"; then
 
14469
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14470
    postinstall_cmds='$RANLIB $lib'
 
14471
  fi
 
14472
  ;;
 
14473
aix4* | aix5*)
 
14474
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14475
    test "$enable_shared" = yes && enable_static=no
 
14476
  fi
 
14477
  ;;
 
14478
esac
 
14479
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14480
echo "${ECHO_T}$enable_shared" >&6
 
14481
 
 
14482
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14483
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
14484
# Make sure either enable_shared or enable_static is yes.
 
14485
test "$enable_shared" = yes || enable_static=yes
 
14486
echo "$as_me:$LINENO: result: $enable_static" >&5
 
14487
echo "${ECHO_T}$enable_static" >&6
 
14488
 
 
14489
GCC_F77="$G77"
 
14490
LD_F77="$LD"
 
14491
 
 
14492
lt_prog_compiler_wl_F77=
 
14493
lt_prog_compiler_pic_F77=
 
14494
lt_prog_compiler_static_F77=
 
14495
 
 
14496
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14497
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
14498
 
 
14499
  if test "$GCC" = yes; then
 
14500
    lt_prog_compiler_wl_F77='-Wl,'
 
14501
    lt_prog_compiler_static_F77='-static'
 
14502
 
 
14503
    case $host_os in
 
14504
      aix*)
 
14505
      # All AIX code is PIC.
 
14506
      if test "$host_cpu" = ia64; then
 
14507
        # AIX 5 now supports IA64 processor
 
14508
        lt_prog_compiler_static_F77='-Bstatic'
 
14509
      fi
 
14510
      ;;
 
14511
 
 
14512
    amigaos*)
 
14513
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14514
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14515
      # like `-m68040'.
 
14516
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14517
      ;;
 
14518
 
 
14519
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14520
      # PIC is the default for these OSes.
 
14521
      ;;
 
14522
 
 
14523
    mingw* | pw32* | os2*)
 
14524
      # This hack is so that the source file can tell whether it is being
 
14525
      # built for inclusion in a dll (and should export symbols for example).
 
14526
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14527
      ;;
 
14528
 
 
14529
    darwin* | rhapsody*)
 
14530
      # PIC is the default on this platform
 
14531
      # Common symbols not allowed in MH_DYLIB files
 
14532
      lt_prog_compiler_pic_F77='-fno-common'
 
14533
      ;;
 
14534
 
 
14535
    interix3*)
 
14536
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14537
      # Instead, we relocate shared libraries at runtime.
 
14538
      ;;
 
14539
 
 
14540
    msdosdjgpp*)
 
14541
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14542
      # on systems that don't support them.
 
14543
      lt_prog_compiler_can_build_shared_F77=no
 
14544
      enable_shared=no
 
14545
      ;;
 
14546
 
 
14547
    sysv4*MP*)
 
14548
      if test -d /usr/nec; then
 
14549
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14550
      fi
 
14551
      ;;
 
14552
 
 
14553
    hpux*)
 
14554
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14555
      # not for PA HP-UX.
 
14556
      case $host_cpu in
 
14557
      hppa*64*|ia64*)
 
14558
        # +Z the default
 
14559
        ;;
 
14560
      *)
 
14561
        lt_prog_compiler_pic_F77='-fPIC'
 
14562
        ;;
 
14563
      esac
 
14564
      ;;
 
14565
 
 
14566
    *)
 
14567
      lt_prog_compiler_pic_F77='-fPIC'
 
14568
      ;;
 
14569
    esac
 
14570
  else
 
14571
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14572
    case $host_os in
 
14573
    aix*)
 
14574
      lt_prog_compiler_wl_F77='-Wl,'
 
14575
      if test "$host_cpu" = ia64; then
 
14576
        # AIX 5 now supports IA64 processor
 
14577
        lt_prog_compiler_static_F77='-Bstatic'
 
14578
      else
 
14579
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14580
      fi
 
14581
      ;;
 
14582
      darwin*)
 
14583
        # PIC is the default on this platform
 
14584
        # Common symbols not allowed in MH_DYLIB files
 
14585
       case $cc_basename in
 
14586
         xlc*)
 
14587
         lt_prog_compiler_pic_F77='-qnocommon'
 
14588
         lt_prog_compiler_wl_F77='-Wl,'
 
14589
         ;;
 
14590
       esac
 
14591
       ;;
 
14592
 
 
14593
    mingw* | pw32* | os2*)
 
14594
      # This hack is so that the source file can tell whether it is being
 
14595
      # built for inclusion in a dll (and should export symbols for example).
 
14596
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14597
      ;;
 
14598
 
 
14599
    hpux9* | hpux10* | hpux11*)
 
14600
      lt_prog_compiler_wl_F77='-Wl,'
 
14601
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14602
      # not for PA HP-UX.
 
14603
      case $host_cpu in
 
14604
      hppa*64*|ia64*)
 
14605
        # +Z the default
 
14606
        ;;
 
14607
      *)
 
14608
        lt_prog_compiler_pic_F77='+Z'
 
14609
        ;;
 
14610
      esac
 
14611
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14612
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14613
      ;;
 
14614
 
 
14615
    irix5* | irix6* | nonstopux*)
 
14616
      lt_prog_compiler_wl_F77='-Wl,'
 
14617
      # PIC (with -KPIC) is the default.
 
14618
      lt_prog_compiler_static_F77='-non_shared'
 
14619
      ;;
 
14620
 
 
14621
    newsos6)
 
14622
      lt_prog_compiler_pic_F77='-KPIC'
 
14623
      lt_prog_compiler_static_F77='-Bstatic'
 
14624
      ;;
 
14625
 
 
14626
    linux*)
 
14627
      case $cc_basename in
 
14628
      icc* | ecc*)
 
14629
        lt_prog_compiler_wl_F77='-Wl,'
 
14630
        lt_prog_compiler_pic_F77='-KPIC'
 
14631
        lt_prog_compiler_static_F77='-static'
 
14632
        ;;
 
14633
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14634
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14635
        # which looks to be a dead project)
 
14636
        lt_prog_compiler_wl_F77='-Wl,'
 
14637
        lt_prog_compiler_pic_F77='-fpic'
 
14638
        lt_prog_compiler_static_F77='-Bstatic'
 
14639
        ;;
 
14640
      ccc*)
 
14641
        lt_prog_compiler_wl_F77='-Wl,'
 
14642
        # All Alpha code is PIC.
 
14643
        lt_prog_compiler_static_F77='-non_shared'
 
14644
        ;;
 
14645
      esac
 
14646
      ;;
 
14647
 
 
14648
    osf3* | osf4* | osf5*)
 
14649
      lt_prog_compiler_wl_F77='-Wl,'
 
14650
      # All OSF/1 code is PIC.
 
14651
      lt_prog_compiler_static_F77='-non_shared'
 
14652
      ;;
 
14653
 
 
14654
    solaris*)
 
14655
      lt_prog_compiler_pic_F77='-KPIC'
 
14656
      lt_prog_compiler_static_F77='-Bstatic'
 
14657
      case $cc_basename in
 
14658
      f77* | f90* | f95*)
 
14659
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14660
      *)
 
14661
        lt_prog_compiler_wl_F77='-Wl,';;
 
14662
      esac
 
14663
      ;;
 
14664
 
 
14665
    sunos4*)
 
14666
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14667
      lt_prog_compiler_pic_F77='-PIC'
 
14668
      lt_prog_compiler_static_F77='-Bstatic'
 
14669
      ;;
 
14670
 
 
14671
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14672
      lt_prog_compiler_wl_F77='-Wl,'
 
14673
      lt_prog_compiler_pic_F77='-KPIC'
 
14674
      lt_prog_compiler_static_F77='-Bstatic'
 
14675
      ;;
 
14676
 
 
14677
    sysv4*MP*)
 
14678
      if test -d /usr/nec ;then
 
14679
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14680
        lt_prog_compiler_static_F77='-Bstatic'
 
14681
      fi
 
14682
      ;;
 
14683
 
 
14684
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14685
      lt_prog_compiler_wl_F77='-Wl,'
 
14686
      lt_prog_compiler_pic_F77='-KPIC'
 
14687
      lt_prog_compiler_static_F77='-Bstatic'
 
14688
      ;;
 
14689
 
 
14690
    unicos*)
 
14691
      lt_prog_compiler_wl_F77='-Wl,'
 
14692
      lt_prog_compiler_can_build_shared_F77=no
 
14693
      ;;
 
14694
 
 
14695
    uts4*)
 
14696
      lt_prog_compiler_pic_F77='-pic'
 
14697
      lt_prog_compiler_static_F77='-Bstatic'
 
14698
      ;;
 
14699
 
 
14700
    *)
 
14701
      lt_prog_compiler_can_build_shared_F77=no
 
14702
      ;;
 
14703
    esac
 
14704
  fi
 
14705
 
 
14706
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14707
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
14708
 
 
14709
#
 
14710
# Check to make sure the PIC flag actually works.
 
14711
#
 
14712
if test -n "$lt_prog_compiler_pic_F77"; then
 
14713
 
 
14714
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14715
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
14716
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14717
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14718
else
 
14719
  lt_prog_compiler_pic_works_F77=no
 
14720
  ac_outfile=conftest.$ac_objext
 
14721
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14722
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14723
   # Insert the option either (1) after the last *FLAGS variable, or
 
14724
   # (2) before a word containing "conftest.", or (3) at the end.
 
14725
   # Note that $ac_compile itself does not contain backslashes and begins
 
14726
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14727
   # The option is referenced via a variable to avoid confusing sed.
 
14728
   lt_compile=`echo "$ac_compile" | $SED \
 
14729
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14730
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14731
   -e 's:$: $lt_compiler_flag:'`
 
14732
   (eval echo "\"\$as_me:14732: $lt_compile\"" >&5)
 
14733
   (eval "$lt_compile" 2>conftest.err)
 
14734
   ac_status=$?
 
14735
   cat conftest.err >&5
 
14736
   echo "$as_me:14736: \$? = $ac_status" >&5
 
14737
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14738
     # The compiler can only warn and ignore the option if not recognized
 
14739
     # So say no if there are warnings other than the usual output.
 
14740
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14741
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14742
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14743
       lt_prog_compiler_pic_works_F77=yes
 
14744
     fi
 
14745
   fi
 
14746
   $rm conftest*
 
14747
 
 
14748
fi
 
14749
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14750
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
14751
 
 
14752
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14753
    case $lt_prog_compiler_pic_F77 in
 
14754
     "" | " "*) ;;
 
14755
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14756
     esac
 
14757
else
 
14758
    lt_prog_compiler_pic_F77=
 
14759
     lt_prog_compiler_can_build_shared_F77=no
 
14760
fi
 
14761
 
 
14762
fi
 
14763
case $host_os in
 
14764
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14765
  *djgpp*)
 
14766
    lt_prog_compiler_pic_F77=
 
14767
    ;;
 
14768
  *)
 
14769
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14770
    ;;
 
14771
esac
 
14772
 
 
14773
#
 
14774
# Check to make sure the static flag actually works.
 
14775
#
 
14776
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14777
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14778
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
14779
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14781
else
 
14782
  lt_prog_compiler_static_works_F77=no
 
14783
   save_LDFLAGS="$LDFLAGS"
 
14784
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14785
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14786
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14787
     # The linker can only warn and ignore the option if not recognized
 
14788
     # So say no if there are warnings
 
14789
     if test -s conftest.err; then
 
14790
       # Append any errors to the config.log.
 
14791
       cat conftest.err 1>&5
 
14792
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14793
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14794
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14795
         lt_prog_compiler_static_works_F77=yes
 
14796
       fi
 
14797
     else
 
14798
       lt_prog_compiler_static_works_F77=yes
 
14799
     fi
 
14800
   fi
 
14801
   $rm conftest*
 
14802
   LDFLAGS="$save_LDFLAGS"
 
14803
 
 
14804
fi
 
14805
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
14806
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
 
14807
 
 
14808
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14809
    :
 
14810
else
 
14811
    lt_prog_compiler_static_F77=
 
14812
fi
 
14813
 
 
14814
 
 
14815
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14816
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
14817
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14818
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14819
else
 
14820
  lt_cv_prog_compiler_c_o_F77=no
 
14821
   $rm -r conftest 2>/dev/null
 
14822
   mkdir conftest
 
14823
   cd conftest
 
14824
   mkdir out
 
14825
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14826
 
 
14827
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14828
   # Insert the option either (1) after the last *FLAGS variable, or
 
14829
   # (2) before a word containing "conftest.", or (3) at the end.
 
14830
   # Note that $ac_compile itself does not contain backslashes and begins
 
14831
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14832
   lt_compile=`echo "$ac_compile" | $SED \
 
14833
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14834
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14835
   -e 's:$: $lt_compiler_flag:'`
 
14836
   (eval echo "\"\$as_me:14836: $lt_compile\"" >&5)
 
14837
   (eval "$lt_compile" 2>out/conftest.err)
 
14838
   ac_status=$?
 
14839
   cat out/conftest.err >&5
 
14840
   echo "$as_me:14840: \$? = $ac_status" >&5
 
14841
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14842
   then
 
14843
     # The compiler can only warn and ignore the option if not recognized
 
14844
     # So say no if there are warnings
 
14845
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14846
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14847
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14848
       lt_cv_prog_compiler_c_o_F77=yes
 
14849
     fi
 
14850
   fi
 
14851
   chmod u+w . 2>&5
 
14852
   $rm conftest*
 
14853
   # SGI C++ compiler will create directory out/ii_files/ for
 
14854
   # template instantiation
 
14855
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14856
   $rm out/* && rmdir out
 
14857
   cd ..
 
14858
   rmdir conftest
 
14859
   $rm conftest*
 
14860
 
 
14861
fi
 
14862
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14863
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
14864
 
 
14865
 
 
14866
hard_links="nottested"
 
14867
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14868
  # do not overwrite the value of need_locks provided by the user
 
14869
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14870
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
14871
  hard_links=yes
 
14872
  $rm conftest*
 
14873
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14874
  touch conftest.a
 
14875
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14876
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14877
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
14878
echo "${ECHO_T}$hard_links" >&6
 
14879
  if test "$hard_links" = no; then
 
14880
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14881
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14882
    need_locks=warn
 
14883
  fi
 
14884
else
 
14885
  need_locks=no
 
14886
fi
 
14887
 
 
14888
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14889
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
14890
 
 
14891
  runpath_var=
 
14892
  allow_undefined_flag_F77=
 
14893
  enable_shared_with_static_runtimes_F77=no
 
14894
  archive_cmds_F77=
 
14895
  archive_expsym_cmds_F77=
 
14896
  old_archive_From_new_cmds_F77=
 
14897
  old_archive_from_expsyms_cmds_F77=
 
14898
  export_dynamic_flag_spec_F77=
 
14899
  whole_archive_flag_spec_F77=
 
14900
  thread_safe_flag_spec_F77=
 
14901
  hardcode_libdir_flag_spec_F77=
 
14902
  hardcode_libdir_flag_spec_ld_F77=
 
14903
  hardcode_libdir_separator_F77=
 
14904
  hardcode_direct_F77=no
 
14905
  hardcode_minus_L_F77=no
 
14906
  hardcode_shlibpath_var_F77=unsupported
 
14907
  link_all_deplibs_F77=unknown
 
14908
  hardcode_automatic_F77=no
 
14909
  module_cmds_F77=
 
14910
  module_expsym_cmds_F77=
 
14911
  always_export_symbols_F77=no
 
14912
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14913
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14914
  # included in the symbol list
 
14915
  include_expsyms_F77=
 
14916
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14917
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14918
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14919
  # as well as any symbol that contains `d'.
 
14920
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14921
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14922
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14923
  # the symbol is explicitly referenced.  Since portable code cannot
 
14924
  # rely on this symbol name, it's probably fine to never include it in
 
14925
  # preloaded symbol tables.
 
14926
  extract_expsyms_cmds=
 
14927
  # Just being paranoid about ensuring that cc_basename is set.
 
14928
  for cc_temp in $compiler""; do
 
14929
  case $cc_temp in
 
14930
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14931
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14932
    \-*) ;;
 
14933
    *) break;;
 
14934
  esac
 
14935
done
 
14936
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14937
 
 
14938
  case $host_os in
 
14939
  cygwin* | mingw* | pw32*)
 
14940
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14941
    # When not using gcc, we currently assume that we are using
 
14942
    # Microsoft Visual C++.
 
14943
    if test "$GCC" != yes; then
 
14944
      with_gnu_ld=no
 
14945
    fi
 
14946
    ;;
 
14947
  interix*)
 
14948
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14949
    with_gnu_ld=yes
 
14950
    ;;
 
14951
  openbsd*)
 
14952
    with_gnu_ld=no
 
14953
    ;;
 
14954
  esac
 
14955
 
 
14956
  ld_shlibs_F77=yes
 
14957
  if test "$with_gnu_ld" = yes; then
 
14958
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14959
    wlarc='${wl}'
 
14960
 
 
14961
    # Set some defaults for GNU ld with shared library support. These
 
14962
    # are reset later if shared libraries are not supported. Putting them
 
14963
    # here allows them to be overridden if necessary.
 
14964
    runpath_var=LD_RUN_PATH
 
14965
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14966
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14967
    # ancient GNU ld didn't support --whole-archive et. al.
 
14968
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14969
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14970
      else
 
14971
        whole_archive_flag_spec_F77=
 
14972
    fi
 
14973
    supports_anon_versioning=no
 
14974
    case `$LD -v 2>/dev/null` in
 
14975
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14976
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14977
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14978
      *\ 2.11.*) ;; # other 2.11 versions
 
14979
      *) supports_anon_versioning=yes ;;
 
14980
    esac
 
14981
 
 
14982
    # See if GNU ld supports shared libraries.
 
14983
    case $host_os in
 
14984
    aix3* | aix4* | aix5*)
 
14985
      # On AIX/PPC, the GNU linker is very broken
 
14986
      if test "$host_cpu" != ia64; then
 
14987
        ld_shlibs_F77=no
 
14988
        cat <<EOF 1>&2
 
14989
 
 
14990
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14991
*** to be unable to reliably create shared libraries on AIX.
 
14992
*** Therefore, libtool is disabling shared libraries support.  If you
 
14993
*** really care for shared libraries, you may want to modify your PATH
 
14994
*** so that a non-GNU linker is found, and then restart.
 
14995
 
 
14996
EOF
 
14997
      fi
 
14998
      ;;
 
14999
 
 
15000
    amigaos*)
 
15001
      archive_cmds_F77='$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)'
 
15002
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15003
      hardcode_minus_L_F77=yes
 
15004
 
 
15005
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15006
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15007
      # to version 4, is to share data among multiple programs linked
 
15008
      # with the same dynamic library.  Since this doesn't match the
 
15009
      # behavior of shared libraries on other platforms, we can't use
 
15010
      # them.
 
15011
      ld_shlibs_F77=no
 
15012
      ;;
 
15013
 
 
15014
    beos*)
 
15015
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15016
        allow_undefined_flag_F77=unsupported
 
15017
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15018
        # support --undefined.  This deserves some investigation.  FIXME
 
15019
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15020
      else
 
15021
        ld_shlibs_F77=no
 
15022
      fi
 
15023
      ;;
 
15024
 
 
15025
    cygwin* | mingw* | pw32*)
 
15026
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
15027
      # as there is no search path for DLLs.
 
15028
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15029
      allow_undefined_flag_F77=unsupported
 
15030
      always_export_symbols_F77=no
 
15031
      enable_shared_with_static_runtimes_F77=yes
 
15032
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15033
 
 
15034
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15035
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15036
        # If the export-symbols file already is a .def file (1st line
 
15037
        # is EXPORTS), use it as is; otherwise, prepend...
 
15038
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15039
          cp $export_symbols $output_objdir/$soname.def;
 
15040
        else
 
15041
          echo EXPORTS > $output_objdir/$soname.def;
 
15042
          cat $export_symbols >> $output_objdir/$soname.def;
 
15043
        fi~
 
15044
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15045
      else
 
15046
        ld_shlibs_F77=no
 
15047
      fi
 
15048
      ;;
 
15049
 
 
15050
    interix3*)
 
15051
      hardcode_direct_F77=no
 
15052
      hardcode_shlibpath_var_F77=no
 
15053
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15054
      export_dynamic_flag_spec_F77='${wl}-E'
 
15055
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
15056
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
15057
      # default) and relocated if they conflict, which is a slow very memory
 
15058
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
15059
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
15060
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
15061
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
15062
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
15063
      ;;
 
15064
 
 
15065
    linux*)
 
15066
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15067
        tmp_addflag=
 
15068
        case $cc_basename,$host_cpu in
 
15069
        pgcc*)                          # Portland Group C compiler
 
15070
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
15071
          tmp_addflag=' $pic_flag'
 
15072
          ;;
 
15073
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
15074
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
15075
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
15076
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
15077
          tmp_addflag=' -i_dynamic' ;;
 
15078
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
15079
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
15080
        ifc* | ifort*)                  # Intel Fortran compiler
 
15081
          tmp_addflag=' -nofor_main' ;;
 
15082
        esac
 
15083
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15084
 
 
15085
        if test $supports_anon_versioning = yes; then
 
15086
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15087
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15088
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
15089
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15090
        fi
 
15091
      else
 
15092
        ld_shlibs_F77=no
 
15093
      fi
 
15094
      ;;
 
15095
 
 
15096
    netbsd*)
 
15097
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15098
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15099
        wlarc=
 
15100
      else
 
15101
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15102
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15103
      fi
 
15104
      ;;
 
15105
 
 
15106
    solaris*)
 
15107
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15108
        ld_shlibs_F77=no
 
15109
        cat <<EOF 1>&2
 
15110
 
 
15111
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15112
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15113
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15114
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15115
*** your PATH or compiler configuration so that the native linker is
 
15116
*** used, and then restart.
 
15117
 
 
15118
EOF
 
15119
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15120
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15121
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15122
      else
 
15123
        ld_shlibs_F77=no
 
15124
      fi
 
15125
      ;;
 
15126
 
 
15127
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
15128
      case `$LD -v 2>&1` in
 
15129
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
15130
        ld_shlibs_F77=no
 
15131
        cat <<_LT_EOF 1>&2
 
15132
 
 
15133
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
15134
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
15135
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15136
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
15137
*** your PATH or compiler configuration so that the native linker is
 
15138
*** used, and then restart.
 
15139
 
 
15140
_LT_EOF
 
15141
        ;;
 
15142
        *)
 
15143
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15144
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
15145
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
15146
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
15147
          else
 
15148
            ld_shlibs_F77=no
 
15149
          fi
 
15150
        ;;
 
15151
      esac
 
15152
      ;;
 
15153
 
 
15154
    sunos4*)
 
15155
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15156
      wlarc=
 
15157
      hardcode_direct_F77=yes
 
15158
      hardcode_shlibpath_var_F77=no
 
15159
      ;;
 
15160
 
 
15161
    *)
 
15162
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15163
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15164
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15165
      else
 
15166
        ld_shlibs_F77=no
 
15167
      fi
 
15168
      ;;
 
15169
    esac
 
15170
 
 
15171
    if test "$ld_shlibs_F77" = no; then
 
15172
      runpath_var=
 
15173
      hardcode_libdir_flag_spec_F77=
 
15174
      export_dynamic_flag_spec_F77=
 
15175
      whole_archive_flag_spec_F77=
 
15176
    fi
 
15177
  else
 
15178
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15179
    case $host_os in
 
15180
    aix3*)
 
15181
      allow_undefined_flag_F77=unsupported
 
15182
      always_export_symbols_F77=yes
 
15183
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
15184
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15185
      # are no directories specified by -L.
 
15186
      hardcode_minus_L_F77=yes
 
15187
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15188
        # Neither direct hardcoding nor static linking is supported with a
 
15189
        # broken collect2.
 
15190
        hardcode_direct_F77=unsupported
 
15191
      fi
 
15192
      ;;
 
15193
 
 
15194
    aix4* | aix5*)
 
15195
      if test "$host_cpu" = ia64; then
 
15196
        # On IA64, the linker does run time linking by default, so we don't
 
15197
        # have to do anything special.
 
15198
        aix_use_runtimelinking=no
 
15199
        exp_sym_flag='-Bexport'
 
15200
        no_entry_flag=""
 
15201
      else
 
15202
        # If we're using GNU nm, then we don't want the "-C" option.
 
15203
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15204
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15205
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
15206
        else
 
15207
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
15208
        fi
 
15209
        aix_use_runtimelinking=no
 
15210
 
 
15211
        # Test if we are trying to use run time linking or normal
 
15212
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15213
        # need to do runtime linking.
 
15214
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15215
          for ld_flag in $LDFLAGS; do
 
15216
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15217
            aix_use_runtimelinking=yes
 
15218
            break
 
15219
          fi
 
15220
          done
 
15221
          ;;
 
15222
        esac
 
15223
 
 
15224
        exp_sym_flag='-bexport'
 
15225
        no_entry_flag='-bnoentry'
 
15226
      fi
 
15227
 
 
15228
      # When large executables or shared objects are built, AIX ld can
 
15229
      # have problems creating the table of contents.  If linking a library
 
15230
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15231
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15232
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15233
 
 
15234
      archive_cmds_F77=''
 
15235
      hardcode_direct_F77=yes
 
15236
      hardcode_libdir_separator_F77=':'
 
15237
      link_all_deplibs_F77=yes
 
15238
 
 
15239
      if test "$GCC" = yes; then
 
15240
        case $host_os in aix4.[012]|aix4.[012].*)
 
15241
        # We only want to do this on AIX 4.2 and lower, the check
 
15242
        # below for broken collect2 doesn't work under 4.3+
 
15243
          collect2name=`${CC} -print-prog-name=collect2`
 
15244
          if test -f "$collect2name" && \
 
15245
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15246
          then
 
15247
          # We have reworked collect2
 
15248
          hardcode_direct_F77=yes
 
15249
          else
 
15250
          # We have old collect2
 
15251
          hardcode_direct_F77=unsupported
 
15252
          # It fails to find uninstalled libraries when the uninstalled
 
15253
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15254
          # to unsupported forces relinking
 
15255
          hardcode_minus_L_F77=yes
 
15256
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15257
          hardcode_libdir_separator_F77=
 
15258
          fi
 
15259
          ;;
 
15260
        esac
 
15261
        shared_flag='-shared'
 
15262
        if test "$aix_use_runtimelinking" = yes; then
 
15263
          shared_flag="$shared_flag "'${wl}-G'
 
15264
        fi
 
15265
      else
 
15266
        # not using gcc
 
15267
        if test "$host_cpu" = ia64; then
 
15268
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15269
        # chokes on -Wl,-G. The following line is correct:
 
15270
          shared_flag='-G'
 
15271
        else
 
15272
          if test "$aix_use_runtimelinking" = yes; then
 
15273
            shared_flag='${wl}-G'
 
15274
          else
 
15275
            shared_flag='${wl}-bM:SRE'
 
15276
          fi
 
15277
        fi
 
15278
      fi
 
15279
 
 
15280
      # It seems that -bexpall does not export symbols beginning with
 
15281
      # underscore (_), so it is better to generate a list of symbols to export.
 
15282
      always_export_symbols_F77=yes
 
15283
      if test "$aix_use_runtimelinking" = yes; then
 
15284
        # Warning - without using the other runtime loading flags (-brtl),
 
15285
        # -berok will link without error, but may produce a broken library.
 
15286
        allow_undefined_flag_F77='-berok'
 
15287
       # Determine the default libpath from the value encoded in an empty executable.
 
15288
       cat >conftest.$ac_ext <<_ACEOF
 
15289
      program main
 
15290
 
 
15291
      end
 
15292
_ACEOF
 
15293
rm -f conftest.$ac_objext conftest$ac_exeext
 
15294
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15295
  (eval $ac_link) 2>conftest.er1
 
15296
  ac_status=$?
 
15297
  grep -v '^ *+' conftest.er1 >conftest.err
 
15298
  rm -f conftest.er1
 
15299
  cat conftest.err >&5
 
15300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15301
  (exit $ac_status); } &&
 
15302
         { ac_try='test -z "$ac_f77_werror_flag"
 
15303
                         || test ! -s conftest.err'
 
15304
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15305
  (eval $ac_try) 2>&5
 
15306
  ac_status=$?
 
15307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15308
  (exit $ac_status); }; } &&
 
15309
         { ac_try='test -s conftest$ac_exeext'
 
15310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15311
  (eval $ac_try) 2>&5
 
15312
  ac_status=$?
 
15313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15314
  (exit $ac_status); }; }; then
 
15315
 
 
15316
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15317
}'`
 
15318
# Check for a 64-bit object if we didn't find anything.
 
15319
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15320
}'`; fi
 
15321
else
 
15322
  echo "$as_me: failed program was:" >&5
 
15323
sed 's/^/| /' conftest.$ac_ext >&5
 
15324
 
 
15325
fi
 
15326
rm -f conftest.err conftest.$ac_objext \
 
15327
      conftest$ac_exeext conftest.$ac_ext
 
15328
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15329
 
 
15330
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15331
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
15332
       else
 
15333
        if test "$host_cpu" = ia64; then
 
15334
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15335
          allow_undefined_flag_F77="-z nodefs"
 
15336
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
15337
        else
 
15338
         # Determine the default libpath from the value encoded in an empty executable.
 
15339
         cat >conftest.$ac_ext <<_ACEOF
 
15340
      program main
 
15341
 
 
15342
      end
 
15343
_ACEOF
 
15344
rm -f conftest.$ac_objext conftest$ac_exeext
 
15345
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15346
  (eval $ac_link) 2>conftest.er1
 
15347
  ac_status=$?
 
15348
  grep -v '^ *+' conftest.er1 >conftest.err
 
15349
  rm -f conftest.er1
 
15350
  cat conftest.err >&5
 
15351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15352
  (exit $ac_status); } &&
 
15353
         { ac_try='test -z "$ac_f77_werror_flag"
 
15354
                         || test ! -s conftest.err'
 
15355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15356
  (eval $ac_try) 2>&5
 
15357
  ac_status=$?
 
15358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15359
  (exit $ac_status); }; } &&
 
15360
         { ac_try='test -s conftest$ac_exeext'
 
15361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15362
  (eval $ac_try) 2>&5
 
15363
  ac_status=$?
 
15364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15365
  (exit $ac_status); }; }; then
 
15366
 
 
15367
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15368
}'`
 
15369
# Check for a 64-bit object if we didn't find anything.
 
15370
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15371
}'`; fi
 
15372
else
 
15373
  echo "$as_me: failed program was:" >&5
 
15374
sed 's/^/| /' conftest.$ac_ext >&5
 
15375
 
 
15376
fi
 
15377
rm -f conftest.err conftest.$ac_objext \
 
15378
      conftest$ac_exeext conftest.$ac_ext
 
15379
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15380
 
 
15381
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15382
          # Warning - without using the other run time loading flags,
 
15383
          # -berok will link without error, but may produce a broken library.
 
15384
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15385
          allow_undefined_flag_F77=' ${wl}-berok'
 
15386
          # Exported symbols can be pulled into shared objects from archives
 
15387
          whole_archive_flag_spec_F77='$convenience'
 
15388
          archive_cmds_need_lc_F77=yes
 
15389
          # This is similar to how AIX traditionally builds its shared libraries.
 
15390
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
15391
        fi
 
15392
      fi
 
15393
      ;;
 
15394
 
 
15395
    amigaos*)
 
15396
      archive_cmds_F77='$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)'
 
15397
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15398
      hardcode_minus_L_F77=yes
 
15399
      # see comment about different semantics on the GNU ld section
 
15400
      ld_shlibs_F77=no
 
15401
      ;;
 
15402
 
 
15403
    bsdi[45]*)
 
15404
      export_dynamic_flag_spec_F77=-rdynamic
 
15405
      ;;
 
15406
 
 
15407
    cygwin* | mingw* | pw32*)
 
15408
      # When not using gcc, we currently assume that we are using
 
15409
      # Microsoft Visual C++.
 
15410
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15411
      # no search path for DLLs.
 
15412
      hardcode_libdir_flag_spec_F77=' '
 
15413
      allow_undefined_flag_F77=unsupported
 
15414
      # Tell ltmain to make .lib files, not .a files.
 
15415
      libext=lib
 
15416
      # Tell ltmain to make .dll files, not .so files.
 
15417
      shrext_cmds=".dll"
 
15418
      # FIXME: Setting linknames here is a bad hack.
 
15419
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15420
      # The linker will automatically build a .lib file if we build a DLL.
 
15421
      old_archive_From_new_cmds_F77='true'
 
15422
      # FIXME: Should let the user specify the lib program.
 
15423
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15424
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15425
      enable_shared_with_static_runtimes_F77=yes
 
15426
      ;;
 
15427
 
 
15428
    darwin* | rhapsody*)
 
15429
      case $host_os in
 
15430
        rhapsody* | darwin1.[012])
 
15431
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15432
         ;;
 
15433
       *) # Darwin 1.3 on
 
15434
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15435
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15436
         else
 
15437
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15438
             10.[012])
 
15439
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15440
               ;;
 
15441
             10.*)
 
15442
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15443
               ;;
 
15444
           esac
 
15445
         fi
 
15446
         ;;
 
15447
      esac
 
15448
      archive_cmds_need_lc_F77=no
 
15449
      hardcode_direct_F77=no
 
15450
      hardcode_automatic_F77=yes
 
15451
      hardcode_shlibpath_var_F77=unsupported
 
15452
      whole_archive_flag_spec_F77=''
 
15453
      link_all_deplibs_F77=yes
 
15454
    if test "$GCC" = yes ; then
 
15455
        output_verbose_link_cmd='echo'
 
15456
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15457
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15458
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15459
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15460
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15461
    else
 
15462
      case $cc_basename in
 
15463
        xlc*)
 
15464
         output_verbose_link_cmd='echo'
 
15465
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
15466
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15467
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15468
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15469
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15470
          ;;
 
15471
       *)
 
15472
         ld_shlibs_F77=no
 
15473
          ;;
 
15474
      esac
 
15475
    fi
 
15476
      ;;
 
15477
 
 
15478
    dgux*)
 
15479
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15480
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15481
      hardcode_shlibpath_var_F77=no
 
15482
      ;;
 
15483
 
 
15484
    freebsd1*)
 
15485
      ld_shlibs_F77=no
 
15486
      ;;
 
15487
 
 
15488
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15489
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15490
    # does not break anything, and helps significantly (at the cost of a little
 
15491
    # extra space).
 
15492
    freebsd2.2*)
 
15493
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15494
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15495
      hardcode_direct_F77=yes
 
15496
      hardcode_shlibpath_var_F77=no
 
15497
      ;;
 
15498
 
 
15499
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15500
    freebsd2*)
 
15501
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15502
      hardcode_direct_F77=yes
 
15503
      hardcode_minus_L_F77=yes
 
15504
      hardcode_shlibpath_var_F77=no
 
15505
      ;;
 
15506
 
 
15507
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15508
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
15509
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15510
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15511
      hardcode_direct_F77=yes
 
15512
      hardcode_shlibpath_var_F77=no
 
15513
      ;;
 
15514
 
 
15515
    hpux9*)
 
15516
      if test "$GCC" = yes; then
 
15517
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
15518
      else
 
15519
        archive_cmds_F77='$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'
 
15520
      fi
 
15521
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15522
      hardcode_libdir_separator_F77=:
 
15523
      hardcode_direct_F77=yes
 
15524
 
 
15525
      # hardcode_minus_L: Not really in the search PATH,
 
15526
      # but as the default location of the library.
 
15527
      hardcode_minus_L_F77=yes
 
15528
      export_dynamic_flag_spec_F77='${wl}-E'
 
15529
      ;;
 
15530
 
 
15531
    hpux10*)
 
15532
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15533
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15534
      else
 
15535
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15536
      fi
 
15537
      if test "$with_gnu_ld" = no; then
 
15538
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15539
        hardcode_libdir_separator_F77=:
 
15540
 
 
15541
        hardcode_direct_F77=yes
 
15542
        export_dynamic_flag_spec_F77='${wl}-E'
 
15543
 
 
15544
        # hardcode_minus_L: Not really in the search PATH,
 
15545
        # but as the default location of the library.
 
15546
        hardcode_minus_L_F77=yes
 
15547
      fi
 
15548
      ;;
 
15549
 
 
15550
    hpux11*)
 
15551
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15552
        case $host_cpu in
 
15553
        hppa*64*)
 
15554
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15555
          ;;
 
15556
        ia64*)
 
15557
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15558
          ;;
 
15559
        *)
 
15560
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15561
          ;;
 
15562
        esac
 
15563
      else
 
15564
        case $host_cpu in
 
15565
        hppa*64*)
 
15566
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15567
          ;;
 
15568
        ia64*)
 
15569
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15570
          ;;
 
15571
        *)
 
15572
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15573
          ;;
 
15574
        esac
 
15575
      fi
 
15576
      if test "$with_gnu_ld" = no; then
 
15577
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15578
        hardcode_libdir_separator_F77=:
 
15579
 
 
15580
        case $host_cpu in
 
15581
        hppa*64*|ia64*)
 
15582
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15583
          hardcode_direct_F77=no
 
15584
          hardcode_shlibpath_var_F77=no
 
15585
          ;;
 
15586
        *)
 
15587
          hardcode_direct_F77=yes
 
15588
          export_dynamic_flag_spec_F77='${wl}-E'
 
15589
 
 
15590
          # hardcode_minus_L: Not really in the search PATH,
 
15591
          # but as the default location of the library.
 
15592
          hardcode_minus_L_F77=yes
 
15593
          ;;
 
15594
        esac
 
15595
      fi
 
15596
      ;;
 
15597
 
 
15598
    irix5* | irix6* | nonstopux*)
 
15599
      if test "$GCC" = yes; then
 
15600
        archive_cmds_F77='$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'
 
15601
      else
 
15602
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15603
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15604
      fi
 
15605
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15606
      hardcode_libdir_separator_F77=:
 
15607
      link_all_deplibs_F77=yes
 
15608
      ;;
 
15609
 
 
15610
    netbsd*)
 
15611
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15612
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15613
      else
 
15614
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15615
      fi
 
15616
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15617
      hardcode_direct_F77=yes
 
15618
      hardcode_shlibpath_var_F77=no
 
15619
      ;;
 
15620
 
 
15621
    newsos6)
 
15622
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15623
      hardcode_direct_F77=yes
 
15624
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15625
      hardcode_libdir_separator_F77=:
 
15626
      hardcode_shlibpath_var_F77=no
 
15627
      ;;
 
15628
 
 
15629
    openbsd*)
 
15630
      hardcode_direct_F77=yes
 
15631
      hardcode_shlibpath_var_F77=no
 
15632
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15633
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15634
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15635
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15636
        export_dynamic_flag_spec_F77='${wl}-E'
 
15637
      else
 
15638
       case $host_os in
 
15639
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15640
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15641
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
15642
           ;;
 
15643
         *)
 
15644
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15645
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15646
           ;;
 
15647
       esac
 
15648
      fi
 
15649
      ;;
 
15650
 
 
15651
    os2*)
 
15652
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15653
      hardcode_minus_L_F77=yes
 
15654
      allow_undefined_flag_F77=unsupported
 
15655
      archive_cmds_F77='$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'
 
15656
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15657
      ;;
 
15658
 
 
15659
    osf3*)
 
15660
      if test "$GCC" = yes; then
 
15661
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15662
        archive_cmds_F77='$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'
 
15663
      else
 
15664
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15665
        archive_cmds_F77='$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'
 
15666
      fi
 
15667
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15668
      hardcode_libdir_separator_F77=:
 
15669
      ;;
 
15670
 
 
15671
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15672
      if test "$GCC" = yes; then
 
15673
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15674
        archive_cmds_F77='$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'
 
15675
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15676
      else
 
15677
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15678
        archive_cmds_F77='$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'
 
15679
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
15680
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
15681
 
 
15682
        # Both c and cxx compiler support -rpath directly
 
15683
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15684
      fi
 
15685
      hardcode_libdir_separator_F77=:
 
15686
      ;;
 
15687
 
 
15688
    solaris*)
 
15689
      no_undefined_flag_F77=' -z text'
 
15690
      if test "$GCC" = yes; then
 
15691
        wlarc='${wl}'
 
15692
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15693
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15694
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15695
      else
 
15696
        wlarc=''
 
15697
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15698
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15699
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15700
      fi
 
15701
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15702
      hardcode_shlibpath_var_F77=no
 
15703
      case $host_os in
 
15704
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15705
      *)
 
15706
        # The compiler driver will combine linker options so we
 
15707
        # cannot just pass the convience library names through
 
15708
        # without $wl, iff we do not link with $LD.
 
15709
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
15710
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15711
        case $wlarc in
 
15712
        '')
 
15713
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15714
        *)
 
15715
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
15716
        esac ;;
 
15717
      esac
 
15718
      link_all_deplibs_F77=yes
 
15719
      ;;
 
15720
 
 
15721
    sunos4*)
 
15722
      if test "x$host_vendor" = xsequent; then
 
15723
        # Use $CC to link under sequent, because it throws in some extra .o
 
15724
        # files that make .init and .fini sections work.
 
15725
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15726
      else
 
15727
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15728
      fi
 
15729
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15730
      hardcode_direct_F77=yes
 
15731
      hardcode_minus_L_F77=yes
 
15732
      hardcode_shlibpath_var_F77=no
 
15733
      ;;
 
15734
 
 
15735
    sysv4)
 
15736
      case $host_vendor in
 
15737
        sni)
 
15738
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15739
          hardcode_direct_F77=yes # is this really true???
 
15740
        ;;
 
15741
        siemens)
 
15742
          ## LD is ld it makes a PLAMLIB
 
15743
          ## CC just makes a GrossModule.
 
15744
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15745
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15746
          hardcode_direct_F77=no
 
15747
        ;;
 
15748
        motorola)
 
15749
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15750
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15751
        ;;
 
15752
      esac
 
15753
      runpath_var='LD_RUN_PATH'
 
15754
      hardcode_shlibpath_var_F77=no
 
15755
      ;;
 
15756
 
 
15757
    sysv4.3*)
 
15758
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15759
      hardcode_shlibpath_var_F77=no
 
15760
      export_dynamic_flag_spec_F77='-Bexport'
 
15761
      ;;
 
15762
 
 
15763
    sysv4*MP*)
 
15764
      if test -d /usr/nec; then
 
15765
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15766
        hardcode_shlibpath_var_F77=no
 
15767
        runpath_var=LD_RUN_PATH
 
15768
        hardcode_runpath_var=yes
 
15769
        ld_shlibs_F77=yes
 
15770
      fi
 
15771
      ;;
 
15772
 
 
15773
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
15774
      no_undefined_flag_F77='${wl}-z,text'
 
15775
      archive_cmds_need_lc_F77=no
 
15776
      hardcode_shlibpath_var_F77=no
 
15777
      runpath_var='LD_RUN_PATH'
 
15778
 
 
15779
      if test "$GCC" = yes; then
 
15780
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15781
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15782
      else
 
15783
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15784
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15785
      fi
 
15786
      ;;
 
15787
 
 
15788
    sysv5* | sco3.2v5* | sco5v6*)
 
15789
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15790
      # link with -lc, and that would cause any symbols used from libc to
 
15791
      # always be unresolved, which means just about no library would
 
15792
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15793
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15794
      # as -z defs.
 
15795
      no_undefined_flag_F77='${wl}-z,text'
 
15796
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15797
      archive_cmds_need_lc_F77=no
 
15798
      hardcode_shlibpath_var_F77=no
 
15799
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15800
      hardcode_libdir_separator_F77=':'
 
15801
      link_all_deplibs_F77=yes
 
15802
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15803
      runpath_var='LD_RUN_PATH'
 
15804
 
 
15805
      if test "$GCC" = yes; then
 
15806
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15807
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15808
      else
 
15809
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15810
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15811
      fi
 
15812
      ;;
 
15813
 
 
15814
    uts4*)
 
15815
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15816
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15817
      hardcode_shlibpath_var_F77=no
 
15818
      ;;
 
15819
 
 
15820
    *)
 
15821
      ld_shlibs_F77=no
 
15822
      ;;
 
15823
    esac
 
15824
  fi
 
15825
 
 
15826
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15827
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
15828
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15829
 
 
15830
#
 
15831
# Do we need to explicitly link libc?
 
15832
#
 
15833
case "x$archive_cmds_need_lc_F77" in
 
15834
x|xyes)
 
15835
  # Assume -lc should be added
 
15836
  archive_cmds_need_lc_F77=yes
 
15837
 
 
15838
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15839
    case $archive_cmds_F77 in
 
15840
    *'~'*)
 
15841
      # FIXME: we may have to deal with multi-command sequences.
 
15842
      ;;
 
15843
    '$CC '*)
 
15844
      # Test whether the compiler implicitly links with -lc since on some
 
15845
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15846
      # to ld, don't add -lc before -lgcc.
 
15847
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15848
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
15849
      $rm conftest*
 
15850
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15851
 
 
15852
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15853
  (eval $ac_compile) 2>&5
 
15854
  ac_status=$?
 
15855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15856
  (exit $ac_status); } 2>conftest.err; then
 
15857
        soname=conftest
 
15858
        lib=conftest
 
15859
        libobjs=conftest.$ac_objext
 
15860
        deplibs=
 
15861
        wl=$lt_prog_compiler_wl_F77
 
15862
        pic_flag=$lt_prog_compiler_pic_F77
 
15863
        compiler_flags=-v
 
15864
        linker_flags=-v
 
15865
        verstring=
 
15866
        output_objdir=.
 
15867
        libname=conftest
 
15868
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15869
        allow_undefined_flag_F77=
 
15870
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15871
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15872
  ac_status=$?
 
15873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15874
  (exit $ac_status); }
 
15875
        then
 
15876
          archive_cmds_need_lc_F77=no
 
15877
        else
 
15878
          archive_cmds_need_lc_F77=yes
 
15879
        fi
 
15880
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15881
      else
 
15882
        cat conftest.err 1>&5
 
15883
      fi
 
15884
      $rm conftest*
 
15885
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15886
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
15887
      ;;
 
15888
    esac
 
15889
  fi
 
15890
  ;;
 
15891
esac
 
15892
 
 
15893
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15894
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
15895
library_names_spec=
 
15896
libname_spec='lib$name'
 
15897
soname_spec=
 
15898
shrext_cmds=".so"
 
15899
postinstall_cmds=
 
15900
postuninstall_cmds=
 
15901
finish_cmds=
 
15902
finish_eval=
 
15903
shlibpath_var=
 
15904
shlibpath_overrides_runpath=unknown
 
15905
version_type=none
 
15906
dynamic_linker="$host_os ld.so"
 
15907
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15908
if test "$GCC" = yes; then
 
15909
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15910
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15911
    # if the path contains ";" then we assume it to be the separator
 
15912
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15913
    # assumed that no part of a normal pathname contains ";" but that should
 
15914
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15915
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15916
  else
 
15917
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15918
  fi
 
15919
else
 
15920
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15921
fi
 
15922
need_lib_prefix=unknown
 
15923
hardcode_into_libs=no
 
15924
 
 
15925
# when you set need_version to no, make sure it does not cause -set_version
 
15926
# flags to be left without arguments
 
15927
need_version=unknown
 
15928
 
 
15929
case $host_os in
 
15930
aix3*)
 
15931
  version_type=linux
 
15932
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15933
  shlibpath_var=LIBPATH
 
15934
 
 
15935
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15936
  soname_spec='${libname}${release}${shared_ext}$major'
 
15937
  ;;
 
15938
 
 
15939
aix4* | aix5*)
 
15940
  version_type=linux
 
15941
  need_lib_prefix=no
 
15942
  need_version=no
 
15943
  hardcode_into_libs=yes
 
15944
  if test "$host_cpu" = ia64; then
 
15945
    # AIX 5 supports IA64
 
15946
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15947
    shlibpath_var=LD_LIBRARY_PATH
 
15948
  else
 
15949
    # With GCC up to 2.95.x, collect2 would create an import file
 
15950
    # for dependence libraries.  The import file would start with
 
15951
    # the line `#! .'.  This would cause the generated library to
 
15952
    # depend on `.', always an invalid library.  This was fixed in
 
15953
    # development snapshots of GCC prior to 3.0.
 
15954
    case $host_os in
 
15955
      aix4 | aix4.[01] | aix4.[01].*)
 
15956
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15957
           echo ' yes '
 
15958
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15959
        :
 
15960
      else
 
15961
        can_build_shared=no
 
15962
      fi
 
15963
      ;;
 
15964
    esac
 
15965
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15966
    # soname into executable. Probably we can add versioning support to
 
15967
    # collect2, so additional links can be useful in future.
 
15968
    if test "$aix_use_runtimelinking" = yes; then
 
15969
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15970
      # instead of lib<name>.a to let people know that these are not
 
15971
      # typical AIX shared libraries.
 
15972
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15973
    else
 
15974
      # We preserve .a as extension for shared libraries through AIX4.2
 
15975
      # and later when we are not doing run time linking.
 
15976
      library_names_spec='${libname}${release}.a $libname.a'
 
15977
      soname_spec='${libname}${release}${shared_ext}$major'
 
15978
    fi
 
15979
    shlibpath_var=LIBPATH
 
15980
  fi
 
15981
  ;;
 
15982
 
 
15983
amigaos*)
 
15984
  library_names_spec='$libname.ixlibrary $libname.a'
 
15985
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15986
  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'
 
15987
  ;;
 
15988
 
 
15989
beos*)
 
15990
  library_names_spec='${libname}${shared_ext}'
 
15991
  dynamic_linker="$host_os ld.so"
 
15992
  shlibpath_var=LIBRARY_PATH
 
15993
  ;;
 
15994
 
 
15995
bsdi[45]*)
 
15996
  version_type=linux
 
15997
  need_version=no
 
15998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15999
  soname_spec='${libname}${release}${shared_ext}$major'
 
16000
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16001
  shlibpath_var=LD_LIBRARY_PATH
 
16002
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16003
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16004
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16005
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16006
  # libtool to hard-code these into programs
 
16007
  ;;
 
16008
 
 
16009
cygwin* | mingw* | pw32*)
 
16010
  version_type=windows
 
16011
  shrext_cmds=".dll"
 
16012
  need_version=no
 
16013
  need_lib_prefix=no
 
16014
 
 
16015
  case $GCC,$host_os in
 
16016
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16017
    library_names_spec='$libname.dll.a'
 
16018
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16019
    postinstall_cmds='base_file=`basename \${file}`~
 
16020
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16021
      dldir=$destdir/`dirname \$dlpath`~
 
16022
      test -d \$dldir || mkdir -p \$dldir~
 
16023
      $install_prog $dir/$dlname \$dldir/$dlname~
 
16024
      chmod a+x \$dldir/$dlname'
 
16025
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16026
      dlpath=$dir/\$dldll~
 
16027
       $rm \$dlpath'
 
16028
    shlibpath_overrides_runpath=yes
 
16029
 
 
16030
    case $host_os in
 
16031
    cygwin*)
 
16032
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16033
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16034
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16035
      ;;
 
16036
    mingw*)
 
16037
      # MinGW DLLs use traditional 'lib' prefix
 
16038
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16039
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16040
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16041
        # It is most probably a Windows format PATH printed by
 
16042
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16043
        # path with ; separators, and with drive letters. We can handle the
 
16044
        # drive letters (cygwin fileutils understands them), so leave them,
 
16045
        # especially as we might pass files found there to a mingw objdump,
 
16046
        # which wouldn't understand a cygwinified path. Ahh.
 
16047
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16048
      else
 
16049
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16050
      fi
 
16051
      ;;
 
16052
    pw32*)
 
16053
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16054
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16055
      ;;
 
16056
    esac
 
16057
    ;;
 
16058
 
 
16059
  *)
 
16060
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16061
    ;;
 
16062
  esac
 
16063
  dynamic_linker='Win32 ld.exe'
 
16064
  # FIXME: first we should search . and the directory the executable is in
 
16065
  shlibpath_var=PATH
 
16066
  ;;
 
16067
 
 
16068
darwin* | rhapsody*)
 
16069
  dynamic_linker="$host_os dyld"
 
16070
  version_type=darwin
 
16071
  need_lib_prefix=no
 
16072
  need_version=no
 
16073
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16074
  soname_spec='${libname}${release}${major}$shared_ext'
 
16075
  shlibpath_overrides_runpath=yes
 
16076
  shlibpath_var=DYLD_LIBRARY_PATH
 
16077
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
16078
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16079
  if test "$GCC" = yes; then
 
16080
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
16081
  else
 
16082
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16083
  fi
 
16084
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16085
  ;;
 
16086
 
 
16087
dgux*)
 
16088
  version_type=linux
 
16089
  need_lib_prefix=no
 
16090
  need_version=no
 
16091
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16092
  soname_spec='${libname}${release}${shared_ext}$major'
 
16093
  shlibpath_var=LD_LIBRARY_PATH
 
16094
  ;;
 
16095
 
 
16096
freebsd1*)
 
16097
  dynamic_linker=no
 
16098
  ;;
 
16099
 
 
16100
kfreebsd*-gnu)
 
16101
  version_type=linux
 
16102
  need_lib_prefix=no
 
16103
  need_version=no
 
16104
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16105
  soname_spec='${libname}${release}${shared_ext}$major'
 
16106
  shlibpath_var=LD_LIBRARY_PATH
 
16107
  shlibpath_overrides_runpath=no
 
16108
  hardcode_into_libs=yes
 
16109
  dynamic_linker='GNU ld.so'
 
16110
  ;;
 
16111
 
 
16112
freebsd* | dragonfly*)
 
16113
  # DragonFly does not have aout.  When/if they implement a new
 
16114
  # versioning mechanism, adjust this.
 
16115
  if test -x /usr/bin/objformat; then
 
16116
    objformat=`/usr/bin/objformat`
 
16117
  else
 
16118
    case $host_os in
 
16119
    freebsd[123]*) objformat=aout ;;
 
16120
    *) objformat=elf ;;
 
16121
    esac
 
16122
  fi
 
16123
  version_type=freebsd-$objformat
 
16124
  case $version_type in
 
16125
    freebsd-elf*)
 
16126
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16127
      need_version=no
 
16128
      need_lib_prefix=no
 
16129
      ;;
 
16130
    freebsd-*)
 
16131
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16132
      need_version=yes
 
16133
      ;;
 
16134
  esac
 
16135
  shlibpath_var=LD_LIBRARY_PATH
 
16136
  case $host_os in
 
16137
  freebsd2*)
 
16138
    shlibpath_overrides_runpath=yes
 
16139
    ;;
 
16140
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16141
    shlibpath_overrides_runpath=yes
 
16142
    hardcode_into_libs=yes
 
16143
    ;;
 
16144
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
16145
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
16146
    shlibpath_overrides_runpath=no
 
16147
    hardcode_into_libs=yes
 
16148
    ;;
 
16149
  freebsd*) # from 4.6 on
 
16150
    shlibpath_overrides_runpath=yes
 
16151
    hardcode_into_libs=yes
 
16152
    ;;
 
16153
  esac
 
16154
  ;;
 
16155
 
 
16156
gnu*)
 
16157
  version_type=linux
 
16158
  need_lib_prefix=no
 
16159
  need_version=no
 
16160
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16161
  soname_spec='${libname}${release}${shared_ext}$major'
 
16162
  shlibpath_var=LD_LIBRARY_PATH
 
16163
  hardcode_into_libs=yes
 
16164
  ;;
 
16165
 
 
16166
hpux9* | hpux10* | hpux11*)
 
16167
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16168
  # link against other versions.
 
16169
  version_type=sunos
 
16170
  need_lib_prefix=no
 
16171
  need_version=no
 
16172
  case $host_cpu in
 
16173
  ia64*)
 
16174
    shrext_cmds='.so'
 
16175
    hardcode_into_libs=yes
 
16176
    dynamic_linker="$host_os dld.so"
 
16177
    shlibpath_var=LD_LIBRARY_PATH
 
16178
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16179
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16180
    soname_spec='${libname}${release}${shared_ext}$major'
 
16181
    if test "X$HPUX_IA64_MODE" = X32; then
 
16182
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16183
    else
 
16184
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16185
    fi
 
16186
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16187
    ;;
 
16188
   hppa*64*)
 
16189
     shrext_cmds='.sl'
 
16190
     hardcode_into_libs=yes
 
16191
     dynamic_linker="$host_os dld.sl"
 
16192
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16193
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16194
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16195
     soname_spec='${libname}${release}${shared_ext}$major'
 
16196
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16197
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16198
     ;;
 
16199
   *)
 
16200
    shrext_cmds='.sl'
 
16201
    dynamic_linker="$host_os dld.sl"
 
16202
    shlibpath_var=SHLIB_PATH
 
16203
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16204
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16205
    soname_spec='${libname}${release}${shared_ext}$major'
 
16206
    ;;
 
16207
  esac
 
16208
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16209
  postinstall_cmds='chmod 555 $lib'
 
16210
  ;;
 
16211
 
 
16212
interix3*)
 
16213
  version_type=linux
 
16214
  need_lib_prefix=no
 
16215
  need_version=no
 
16216
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16217
  soname_spec='${libname}${release}${shared_ext}$major'
 
16218
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16219
  shlibpath_var=LD_LIBRARY_PATH
 
16220
  shlibpath_overrides_runpath=no
 
16221
  hardcode_into_libs=yes
 
16222
  ;;
 
16223
 
 
16224
irix5* | irix6* | nonstopux*)
 
16225
  case $host_os in
 
16226
    nonstopux*) version_type=nonstopux ;;
 
16227
    *)
 
16228
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16229
                version_type=linux
 
16230
        else
 
16231
                version_type=irix
 
16232
        fi ;;
 
16233
  esac
 
16234
  need_lib_prefix=no
 
16235
  need_version=no
 
16236
  soname_spec='${libname}${release}${shared_ext}$major'
 
16237
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16238
  case $host_os in
 
16239
  irix5* | nonstopux*)
 
16240
    libsuff= shlibsuff=
 
16241
    ;;
 
16242
  *)
 
16243
    case $LD in # libtool.m4 will add one of these switches to LD
 
16244
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16245
      libsuff= shlibsuff= libmagic=32-bit;;
 
16246
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16247
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16248
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16249
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16250
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16251
    esac
 
16252
    ;;
 
16253
  esac
 
16254
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16255
  shlibpath_overrides_runpath=no
 
16256
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16257
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16258
  hardcode_into_libs=yes
 
16259
  ;;
 
16260
 
 
16261
# No shared lib support for Linux oldld, aout, or coff.
 
16262
linux*oldld* | linux*aout* | linux*coff*)
 
16263
  dynamic_linker=no
 
16264
  ;;
 
16265
 
 
16266
# This must be Linux ELF.
 
16267
linux*)
 
16268
  version_type=linux
 
16269
  need_lib_prefix=no
 
16270
  need_version=no
 
16271
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16272
  soname_spec='${libname}${release}${shared_ext}$major'
 
16273
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16274
  shlibpath_var=LD_LIBRARY_PATH
 
16275
  shlibpath_overrides_runpath=no
 
16276
  # This implies no fast_install, which is unacceptable.
 
16277
  # Some rework will be needed to allow for fast_install
 
16278
  # before this can be enabled.
 
16279
  hardcode_into_libs=yes
 
16280
 
 
16281
  # find out which ABI we are using
 
16282
  libsuff=
 
16283
  case "$host_cpu" in
 
16284
  x86_64*|s390x*|powerpc64*)
 
16285
    echo '#line 16285 "configure"' > conftest.$ac_ext
 
16286
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16287
  (eval $ac_compile) 2>&5
 
16288
  ac_status=$?
 
16289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16290
  (exit $ac_status); }; then
 
16291
      case `/usr/bin/file conftest.$ac_objext` in
 
16292
      *64-bit*)
 
16293
        libsuff=64
 
16294
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
16295
        ;;
 
16296
      esac
 
16297
    fi
 
16298
    rm -rf conftest*
 
16299
    ;;
 
16300
  esac
 
16301
 
 
16302
  # Append ld.so.conf contents to the search path
 
16303
  if test -f /etc/ld.so.conf; then
 
16304
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
16305
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
16306
  fi
 
16307
 
 
16308
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16309
  # powerpc, because MkLinux only supported shared libraries with the
 
16310
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16311
  # most powerpc-linux boxes support dynamic linking these days and
 
16312
  # people can always --disable-shared, the test was removed, and we
 
16313
  # assume the GNU/Linux dynamic linker is in use.
 
16314
  dynamic_linker='GNU/Linux ld.so'
 
16315
  ;;
 
16316
 
 
16317
knetbsd*-gnu)
 
16318
  version_type=linux
 
16319
  need_lib_prefix=no
 
16320
  need_version=no
 
16321
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16322
  soname_spec='${libname}${release}${shared_ext}$major'
 
16323
  shlibpath_var=LD_LIBRARY_PATH
 
16324
  shlibpath_overrides_runpath=no
 
16325
  hardcode_into_libs=yes
 
16326
  dynamic_linker='GNU ld.so'
 
16327
  ;;
 
16328
 
 
16329
netbsd*)
 
16330
  version_type=sunos
 
16331
  need_lib_prefix=no
 
16332
  need_version=no
 
16333
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16334
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16335
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16336
    dynamic_linker='NetBSD (a.out) ld.so'
 
16337
  else
 
16338
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16339
    soname_spec='${libname}${release}${shared_ext}$major'
 
16340
    dynamic_linker='NetBSD ld.elf_so'
 
16341
  fi
 
16342
  shlibpath_var=LD_LIBRARY_PATH
 
16343
  shlibpath_overrides_runpath=yes
 
16344
  hardcode_into_libs=yes
 
16345
  ;;
 
16346
 
 
16347
newsos6)
 
16348
  version_type=linux
 
16349
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16350
  shlibpath_var=LD_LIBRARY_PATH
 
16351
  shlibpath_overrides_runpath=yes
 
16352
  ;;
 
16353
 
 
16354
nto-qnx*)
 
16355
  version_type=linux
 
16356
  need_lib_prefix=no
 
16357
  need_version=no
 
16358
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16359
  soname_spec='${libname}${release}${shared_ext}$major'
 
16360
  shlibpath_var=LD_LIBRARY_PATH
 
16361
  shlibpath_overrides_runpath=yes
 
16362
  ;;
 
16363
 
 
16364
openbsd*)
 
16365
  version_type=sunos
 
16366
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16367
  need_lib_prefix=no
 
16368
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16369
  case $host_os in
 
16370
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16371
    *)                         need_version=no  ;;
 
16372
  esac
 
16373
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16374
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16375
  shlibpath_var=LD_LIBRARY_PATH
 
16376
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16377
    case $host_os in
 
16378
      openbsd2.[89] | openbsd2.[89].*)
 
16379
        shlibpath_overrides_runpath=no
 
16380
        ;;
 
16381
      *)
 
16382
        shlibpath_overrides_runpath=yes
 
16383
        ;;
 
16384
      esac
 
16385
  else
 
16386
    shlibpath_overrides_runpath=yes
 
16387
  fi
 
16388
  ;;
 
16389
 
 
16390
os2*)
 
16391
  libname_spec='$name'
 
16392
  shrext_cmds=".dll"
 
16393
  need_lib_prefix=no
 
16394
  library_names_spec='$libname${shared_ext} $libname.a'
 
16395
  dynamic_linker='OS/2 ld.exe'
 
16396
  shlibpath_var=LIBPATH
 
16397
  ;;
 
16398
 
 
16399
osf3* | osf4* | osf5*)
 
16400
  version_type=osf
 
16401
  need_lib_prefix=no
 
16402
  need_version=no
 
16403
  soname_spec='${libname}${release}${shared_ext}$major'
 
16404
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16405
  shlibpath_var=LD_LIBRARY_PATH
 
16406
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16407
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16408
  ;;
 
16409
 
 
16410
solaris*)
 
16411
  version_type=linux
 
16412
  need_lib_prefix=no
 
16413
  need_version=no
 
16414
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16415
  soname_spec='${libname}${release}${shared_ext}$major'
 
16416
  shlibpath_var=LD_LIBRARY_PATH
 
16417
  shlibpath_overrides_runpath=yes
 
16418
  hardcode_into_libs=yes
 
16419
  # ldd complains unless libraries are executable
 
16420
  postinstall_cmds='chmod +x $lib'
 
16421
  ;;
 
16422
 
 
16423
sunos4*)
 
16424
  version_type=sunos
 
16425
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16426
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16427
  shlibpath_var=LD_LIBRARY_PATH
 
16428
  shlibpath_overrides_runpath=yes
 
16429
  if test "$with_gnu_ld" = yes; then
 
16430
    need_lib_prefix=no
 
16431
  fi
 
16432
  need_version=yes
 
16433
  ;;
 
16434
 
 
16435
sysv4 | sysv4.3*)
 
16436
  version_type=linux
 
16437
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16438
  soname_spec='${libname}${release}${shared_ext}$major'
 
16439
  shlibpath_var=LD_LIBRARY_PATH
 
16440
  case $host_vendor in
 
16441
    sni)
 
16442
      shlibpath_overrides_runpath=no
 
16443
      need_lib_prefix=no
 
16444
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16445
      runpath_var=LD_RUN_PATH
 
16446
      ;;
 
16447
    siemens)
 
16448
      need_lib_prefix=no
 
16449
      ;;
 
16450
    motorola)
 
16451
      need_lib_prefix=no
 
16452
      need_version=no
 
16453
      shlibpath_overrides_runpath=no
 
16454
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16455
      ;;
 
16456
  esac
 
16457
  ;;
 
16458
 
 
16459
sysv4*MP*)
 
16460
  if test -d /usr/nec ;then
 
16461
    version_type=linux
 
16462
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16463
    soname_spec='$libname${shared_ext}.$major'
 
16464
    shlibpath_var=LD_LIBRARY_PATH
 
16465
  fi
 
16466
  ;;
 
16467
 
 
16468
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16469
  version_type=freebsd-elf
 
16470
  need_lib_prefix=no
 
16471
  need_version=no
 
16472
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16473
  soname_spec='${libname}${release}${shared_ext}$major'
 
16474
  shlibpath_var=LD_LIBRARY_PATH
 
16475
  hardcode_into_libs=yes
 
16476
  if test "$with_gnu_ld" = yes; then
 
16477
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16478
    shlibpath_overrides_runpath=no
 
16479
  else
 
16480
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16481
    shlibpath_overrides_runpath=yes
 
16482
    case $host_os in
 
16483
      sco3.2v5*)
 
16484
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16485
        ;;
 
16486
    esac
 
16487
  fi
 
16488
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16489
  ;;
 
16490
 
 
16491
uts4*)
 
16492
  version_type=linux
 
16493
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16494
  soname_spec='${libname}${release}${shared_ext}$major'
 
16495
  shlibpath_var=LD_LIBRARY_PATH
 
16496
  ;;
 
16497
 
 
16498
*)
 
16499
  dynamic_linker=no
 
16500
  ;;
 
16501
esac
 
16502
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16503
echo "${ECHO_T}$dynamic_linker" >&6
 
16504
test "$dynamic_linker" = no && can_build_shared=no
 
16505
 
 
16506
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16507
if test "$GCC" = yes; then
 
16508
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16509
fi
 
16510
 
 
16511
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16512
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
16513
hardcode_action_F77=
 
16514
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16515
   test -n "$runpath_var_F77" || \
 
16516
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16517
 
 
16518
  # We can hardcode non-existant directories.
 
16519
  if test "$hardcode_direct_F77" != no &&
 
16520
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16521
     # have to relink, otherwise we might link with an installed library
 
16522
     # when we should be linking with a yet-to-be-installed one
 
16523
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16524
     test "$hardcode_minus_L_F77" != no; then
 
16525
    # Linking always hardcodes the temporary library directory.
 
16526
    hardcode_action_F77=relink
 
16527
  else
 
16528
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16529
    hardcode_action_F77=immediate
 
16530
  fi
 
16531
else
 
16532
  # We cannot hardcode anything, or else we can only hardcode existing
 
16533
  # directories.
 
16534
  hardcode_action_F77=unsupported
 
16535
fi
 
16536
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16537
echo "${ECHO_T}$hardcode_action_F77" >&6
 
16538
 
 
16539
if test "$hardcode_action_F77" = relink; then
 
16540
  # Fast installation is not supported
 
16541
  enable_fast_install=no
 
16542
elif test "$shlibpath_overrides_runpath" = yes ||
 
16543
     test "$enable_shared" = no; then
 
16544
  # Fast installation is not necessary
 
16545
  enable_fast_install=needless
 
16546
fi
 
16547
 
 
16548
 
 
16549
# The else clause should only fire when bootstrapping the
 
16550
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16551
# with your package, and you will get complaints that there are
 
16552
# no rules to generate ltmain.sh.
 
16553
if test -f "$ltmain"; then
 
16554
  # See if we are running on zsh, and set the options which allow our commands through
 
16555
  # without removal of \ escapes.
 
16556
  if test -n "${ZSH_VERSION+set}" ; then
 
16557
    setopt NO_GLOB_SUBST
 
16558
  fi
 
16559
  # Now quote all the things that may contain metacharacters while being
 
16560
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16561
  # variables and quote the copies for generation of the libtool script.
 
16562
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16563
    SED SHELL STRIP \
 
16564
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16565
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16566
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16567
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16568
    lt_cv_sys_global_symbol_to_c_name_address \
 
16569
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16570
    old_postinstall_cmds old_postuninstall_cmds \
 
16571
    compiler_F77 \
 
16572
    CC_F77 \
 
16573
    LD_F77 \
 
16574
    lt_prog_compiler_wl_F77 \
 
16575
    lt_prog_compiler_pic_F77 \
 
16576
    lt_prog_compiler_static_F77 \
 
16577
    lt_prog_compiler_no_builtin_flag_F77 \
 
16578
    export_dynamic_flag_spec_F77 \
 
16579
    thread_safe_flag_spec_F77 \
 
16580
    whole_archive_flag_spec_F77 \
 
16581
    enable_shared_with_static_runtimes_F77 \
 
16582
    old_archive_cmds_F77 \
 
16583
    old_archive_from_new_cmds_F77 \
 
16584
    predep_objects_F77 \
 
16585
    postdep_objects_F77 \
 
16586
    predeps_F77 \
 
16587
    postdeps_F77 \
 
16588
    compiler_lib_search_path_F77 \
 
16589
    archive_cmds_F77 \
 
16590
    archive_expsym_cmds_F77 \
 
16591
    postinstall_cmds_F77 \
 
16592
    postuninstall_cmds_F77 \
 
16593
    old_archive_from_expsyms_cmds_F77 \
 
16594
    allow_undefined_flag_F77 \
 
16595
    no_undefined_flag_F77 \
 
16596
    export_symbols_cmds_F77 \
 
16597
    hardcode_libdir_flag_spec_F77 \
 
16598
    hardcode_libdir_flag_spec_ld_F77 \
 
16599
    hardcode_libdir_separator_F77 \
 
16600
    hardcode_automatic_F77 \
 
16601
    module_cmds_F77 \
 
16602
    module_expsym_cmds_F77 \
 
16603
    lt_cv_prog_compiler_c_o_F77 \
 
16604
    exclude_expsyms_F77 \
 
16605
    include_expsyms_F77; do
 
16606
 
 
16607
    case $var in
 
16608
    old_archive_cmds_F77 | \
 
16609
    old_archive_from_new_cmds_F77 | \
 
16610
    archive_cmds_F77 | \
 
16611
    archive_expsym_cmds_F77 | \
 
16612
    module_cmds_F77 | \
 
16613
    module_expsym_cmds_F77 | \
 
16614
    old_archive_from_expsyms_cmds_F77 | \
 
16615
    export_symbols_cmds_F77 | \
 
16616
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16617
    postinstall_cmds | postuninstall_cmds | \
 
16618
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16619
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16620
      # Double-quote double-evaled strings.
 
16621
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16622
      ;;
 
16623
    *)
 
16624
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16625
      ;;
 
16626
    esac
 
16627
  done
 
16628
 
 
16629
  case $lt_echo in
 
16630
  *'\$0 --fallback-echo"')
 
16631
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16632
    ;;
 
16633
  esac
 
16634
 
 
16635
cfgfile="$ofile"
 
16636
 
 
16637
  cat <<__EOF__ >> "$cfgfile"
 
16638
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16639
 
 
16640
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16641
 
 
16642
# Shell to use when invoking shell scripts.
 
16643
SHELL=$lt_SHELL
 
16644
 
 
16645
# Whether or not to build shared libraries.
 
16646
build_libtool_libs=$enable_shared
 
16647
 
 
16648
# Whether or not to build static libraries.
 
16649
build_old_libs=$enable_static
 
16650
 
 
16651
# Whether or not to add -lc for building shared libraries.
 
16652
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16653
 
 
16654
# Whether or not to disallow shared libs when runtime libs are static
 
16655
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16656
 
 
16657
# Whether or not to optimize for fast installation.
 
16658
fast_install=$enable_fast_install
 
16659
 
 
16660
# The host system.
 
16661
host_alias=$host_alias
 
16662
host=$host
 
16663
host_os=$host_os
 
16664
 
 
16665
# The build system.
 
16666
build_alias=$build_alias
 
16667
build=$build
 
16668
build_os=$build_os
 
16669
 
 
16670
# An echo program that does not interpret backslashes.
 
16671
echo=$lt_echo
 
16672
 
 
16673
# The archiver.
 
16674
AR=$lt_AR
 
16675
AR_FLAGS=$lt_AR_FLAGS
 
16676
 
 
16677
# A C compiler.
 
16678
LTCC=$lt_LTCC
 
16679
 
 
16680
# LTCC compiler flags.
 
16681
LTCFLAGS=$lt_LTCFLAGS
 
16682
 
 
16683
# A language-specific compiler.
 
16684
CC=$lt_compiler_F77
 
16685
 
 
16686
# Is the compiler the GNU C compiler?
 
16687
with_gcc=$GCC_F77
 
16688
 
 
16689
# An ERE matcher.
 
16690
EGREP=$lt_EGREP
 
16691
 
 
16692
# The linker used to build libraries.
 
16693
LD=$lt_LD_F77
 
16694
 
 
16695
# Whether we need hard or soft links.
 
16696
LN_S=$lt_LN_S
 
16697
 
 
16698
# A BSD-compatible nm program.
 
16699
NM=$lt_NM
 
16700
 
 
16701
# A symbol stripping program
 
16702
STRIP=$lt_STRIP
 
16703
 
 
16704
# Used to examine libraries when file_magic_cmd begins "file"
 
16705
MAGIC_CMD=$MAGIC_CMD
 
16706
 
 
16707
# Used on cygwin: DLL creation program.
 
16708
DLLTOOL="$DLLTOOL"
 
16709
 
 
16710
# Used on cygwin: object dumper.
 
16711
OBJDUMP="$OBJDUMP"
 
16712
 
 
16713
# Used on cygwin: assembler.
 
16714
AS="$AS"
 
16715
 
 
16716
# The name of the directory that contains temporary libtool files.
 
16717
objdir=$objdir
 
16718
 
 
16719
# How to create reloadable object files.
 
16720
reload_flag=$lt_reload_flag
 
16721
reload_cmds=$lt_reload_cmds
 
16722
 
 
16723
# How to pass a linker flag through the compiler.
 
16724
wl=$lt_lt_prog_compiler_wl_F77
 
16725
 
 
16726
# Object file suffix (normally "o").
 
16727
objext="$ac_objext"
 
16728
 
 
16729
# Old archive suffix (normally "a").
 
16730
libext="$libext"
 
16731
 
 
16732
# Shared library suffix (normally ".so").
 
16733
shrext_cmds='$shrext_cmds'
 
16734
 
 
16735
# Executable file suffix (normally "").
 
16736
exeext="$exeext"
 
16737
 
 
16738
# Additional compiler flags for building library objects.
 
16739
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16740
pic_mode=$pic_mode
 
16741
 
 
16742
# What is the maximum length of a command?
 
16743
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16744
 
 
16745
# Does compiler simultaneously support -c and -o options?
 
16746
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16747
 
 
16748
# Must we lock files when doing compilation?
 
16749
need_locks=$lt_need_locks
 
16750
 
 
16751
# Do we need the lib prefix for modules?
 
16752
need_lib_prefix=$need_lib_prefix
 
16753
 
 
16754
# Do we need a version for libraries?
 
16755
need_version=$need_version
 
16756
 
 
16757
# Whether dlopen is supported.
 
16758
dlopen_support=$enable_dlopen
 
16759
 
 
16760
# Whether dlopen of programs is supported.
 
16761
dlopen_self=$enable_dlopen_self
 
16762
 
 
16763
# Whether dlopen of statically linked programs is supported.
 
16764
dlopen_self_static=$enable_dlopen_self_static
 
16765
 
 
16766
# Compiler flag to prevent dynamic linking.
 
16767
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16768
 
 
16769
# Compiler flag to turn off builtin functions.
 
16770
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16771
 
 
16772
# Compiler flag to allow reflexive dlopens.
 
16773
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16774
 
 
16775
# Compiler flag to generate shared objects directly from archives.
 
16776
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16777
 
 
16778
# Compiler flag to generate thread-safe objects.
 
16779
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16780
 
 
16781
# Library versioning type.
 
16782
version_type=$version_type
 
16783
 
 
16784
# Format of library name prefix.
 
16785
libname_spec=$lt_libname_spec
 
16786
 
 
16787
# List of archive names.  First name is the real one, the rest are links.
 
16788
# The last name is the one that the linker finds with -lNAME.
 
16789
library_names_spec=$lt_library_names_spec
 
16790
 
 
16791
# The coded name of the library, if different from the real name.
 
16792
soname_spec=$lt_soname_spec
 
16793
 
 
16794
# Commands used to build and install an old-style archive.
 
16795
RANLIB=$lt_RANLIB
 
16796
old_archive_cmds=$lt_old_archive_cmds_F77
 
16797
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16798
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16799
 
 
16800
# Create an old-style archive from a shared archive.
 
16801
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16802
 
 
16803
# Create a temporary old-style archive to link instead of a shared archive.
 
16804
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16805
 
 
16806
# Commands used to build and install a shared archive.
 
16807
archive_cmds=$lt_archive_cmds_F77
 
16808
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16809
postinstall_cmds=$lt_postinstall_cmds
 
16810
postuninstall_cmds=$lt_postuninstall_cmds
 
16811
 
 
16812
# Commands used to build a loadable module (assumed same as above if empty)
 
16813
module_cmds=$lt_module_cmds_F77
 
16814
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16815
 
 
16816
# Commands to strip libraries.
 
16817
old_striplib=$lt_old_striplib
 
16818
striplib=$lt_striplib
 
16819
 
 
16820
# Dependencies to place before the objects being linked to create a
 
16821
# shared library.
 
16822
predep_objects=$lt_predep_objects_F77
 
16823
 
 
16824
# Dependencies to place after the objects being linked to create a
 
16825
# shared library.
 
16826
postdep_objects=$lt_postdep_objects_F77
 
16827
 
 
16828
# Dependencies to place before the objects being linked to create a
 
16829
# shared library.
 
16830
predeps=$lt_predeps_F77
 
16831
 
 
16832
# Dependencies to place after the objects being linked to create a
 
16833
# shared library.
 
16834
postdeps=$lt_postdeps_F77
 
16835
 
 
16836
# The library search path used internally by the compiler when linking
 
16837
# a shared library.
 
16838
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16839
 
 
16840
# Method to check whether dependent libraries are shared objects.
 
16841
deplibs_check_method=$lt_deplibs_check_method
 
16842
 
 
16843
# Command to use when deplibs_check_method == file_magic.
 
16844
file_magic_cmd=$lt_file_magic_cmd
 
16845
 
 
16846
# Flag that allows shared libraries with undefined symbols to be built.
 
16847
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16848
 
 
16849
# Flag that forces no undefined symbols.
 
16850
no_undefined_flag=$lt_no_undefined_flag_F77
 
16851
 
 
16852
# Commands used to finish a libtool library installation in a directory.
 
16853
finish_cmds=$lt_finish_cmds
 
16854
 
 
16855
# Same as above, but a single script fragment to be evaled but not shown.
 
16856
finish_eval=$lt_finish_eval
 
16857
 
 
16858
# Take the output of nm and produce a listing of raw symbols and C names.
 
16859
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16860
 
 
16861
# Transform the output of nm in a proper C declaration
 
16862
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16863
 
 
16864
# Transform the output of nm in a C name address pair
 
16865
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16866
 
 
16867
# This is the shared library runtime path variable.
 
16868
runpath_var=$runpath_var
 
16869
 
 
16870
# This is the shared library path variable.
 
16871
shlibpath_var=$shlibpath_var
 
16872
 
 
16873
# Is shlibpath searched before the hard-coded library search path?
 
16874
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16875
 
 
16876
# How to hardcode a shared library path into an executable.
 
16877
hardcode_action=$hardcode_action_F77
 
16878
 
 
16879
# Whether we should hardcode library paths into libraries.
 
16880
hardcode_into_libs=$hardcode_into_libs
 
16881
 
 
16882
# Flag to hardcode \$libdir into a binary during linking.
 
16883
# This must work even if \$libdir does not exist.
 
16884
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16885
 
 
16886
# If ld is used when linking, flag to hardcode \$libdir into
 
16887
# a binary during linking. This must work even if \$libdir does
 
16888
# not exist.
 
16889
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16890
 
 
16891
# Whether we need a single -rpath flag with a separated argument.
 
16892
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16893
 
 
16894
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16895
# resulting binary.
 
16896
hardcode_direct=$hardcode_direct_F77
 
16897
 
 
16898
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16899
# resulting binary.
 
16900
hardcode_minus_L=$hardcode_minus_L_F77
 
16901
 
 
16902
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16903
# the resulting binary.
 
16904
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16905
 
 
16906
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16907
# and all subsequent libraries and executables linked against it.
 
16908
hardcode_automatic=$hardcode_automatic_F77
 
16909
 
 
16910
# Variables whose values should be saved in libtool wrapper scripts and
 
16911
# restored at relink time.
 
16912
variables_saved_for_relink="$variables_saved_for_relink"
 
16913
 
 
16914
# Whether libtool must link a program against all its dependency libraries.
 
16915
link_all_deplibs=$link_all_deplibs_F77
 
16916
 
 
16917
# Compile-time system search path for libraries
 
16918
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16919
 
 
16920
# Run-time system search path for libraries
 
16921
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16922
 
 
16923
# Fix the shell variable \$srcfile for the compiler.
 
16924
fix_srcfile_path="$fix_srcfile_path_F77"
 
16925
 
 
16926
# Set to yes if exported symbols are required.
 
16927
always_export_symbols=$always_export_symbols_F77
 
16928
 
 
16929
# The commands to list exported symbols.
 
16930
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16931
 
 
16932
# The commands to extract the exported symbol list from a shared archive.
 
16933
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16934
 
 
16935
# Symbols that should not be listed in the preloaded symbols.
 
16936
exclude_expsyms=$lt_exclude_expsyms_F77
 
16937
 
 
16938
# Symbols that must always be exported.
 
16939
include_expsyms=$lt_include_expsyms_F77
 
16940
 
 
16941
# ### END LIBTOOL TAG CONFIG: $tagname
 
16942
 
 
16943
__EOF__
 
16944
 
 
16945
 
 
16946
else
 
16947
  # If there is no Makefile yet, we rely on a make rule to execute
 
16948
  # `config.status --recheck' to rerun these tests and create the
 
16949
  # libtool script then.
 
16950
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16951
  if test -f "$ltmain_in"; then
 
16952
    test -f Makefile && make "$ltmain"
 
16953
  fi
 
16954
fi
 
16955
 
 
16956
 
 
16957
ac_ext=c
 
16958
ac_cpp='$CPP $CPPFLAGS'
 
16959
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16960
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16961
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16962
 
 
16963
CC="$lt_save_CC"
 
16964
 
 
16965
        else
 
16966
          tagname=""
 
16967
        fi
 
16968
        ;;
 
16969
 
 
16970
      GCJ)
 
16971
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16972
 
 
16973
 
 
16974
 
 
16975
# Source file extension for Java test sources.
 
16976
ac_ext=java
 
16977
 
 
16978
# Object file extension for compiled Java test sources.
 
16979
objext=o
 
16980
objext_GCJ=$objext
 
16981
 
 
16982
# Code to be used in simple compile tests
 
16983
lt_simple_compile_test_code="class foo {}\n"
 
16984
 
 
16985
# Code to be used in simple link tests
 
16986
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
16987
 
 
16988
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16989
 
 
16990
# If no C compiler was specified, use CC.
 
16991
LTCC=${LTCC-"$CC"}
 
16992
 
 
16993
# If no C compiler flags were specified, use CFLAGS.
 
16994
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16995
 
 
16996
# Allow CC to be a program name with arguments.
 
16997
compiler=$CC
 
16998
 
 
16999
 
 
17000
# save warnings/boilerplate of simple test code
 
17001
ac_outfile=conftest.$ac_objext
 
17002
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
17003
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17004
_lt_compiler_boilerplate=`cat conftest.err`
 
17005
$rm conftest*
 
17006
 
 
17007
ac_outfile=conftest.$ac_objext
 
17008
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
17009
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17010
_lt_linker_boilerplate=`cat conftest.err`
 
17011
$rm conftest*
 
17012
 
 
17013
 
 
17014
# Allow CC to be a program name with arguments.
 
17015
lt_save_CC="$CC"
 
17016
CC=${GCJ-"gcj"}
 
17017
compiler=$CC
 
17018
compiler_GCJ=$CC
 
17019
for cc_temp in $compiler""; do
 
17020
  case $cc_temp in
 
17021
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17022
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17023
    \-*) ;;
 
17024
    *) break;;
 
17025
  esac
 
17026
done
 
17027
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17028
 
 
17029
 
 
17030
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
17031
archive_cmds_need_lc_GCJ=no
 
17032
 
 
17033
old_archive_cmds_GCJ=$old_archive_cmds
 
17034
 
 
17035
 
 
17036
lt_prog_compiler_no_builtin_flag_GCJ=
 
17037
 
 
17038
if test "$GCC" = yes; then
 
17039
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17040
 
 
17041
 
 
17042
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17043
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
17044
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17045
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17046
else
 
17047
  lt_cv_prog_compiler_rtti_exceptions=no
 
17048
  ac_outfile=conftest.$ac_objext
 
17049
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17050
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17051
   # Insert the option either (1) after the last *FLAGS variable, or
 
17052
   # (2) before a word containing "conftest.", or (3) at the end.
 
17053
   # Note that $ac_compile itself does not contain backslashes and begins
 
17054
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17055
   # The option is referenced via a variable to avoid confusing sed.
 
17056
   lt_compile=`echo "$ac_compile" | $SED \
 
17057
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17058
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17059
   -e 's:$: $lt_compiler_flag:'`
 
17060
   (eval echo "\"\$as_me:17060: $lt_compile\"" >&5)
 
17061
   (eval "$lt_compile" 2>conftest.err)
 
17062
   ac_status=$?
 
17063
   cat conftest.err >&5
 
17064
   echo "$as_me:17064: \$? = $ac_status" >&5
 
17065
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17066
     # The compiler can only warn and ignore the option if not recognized
 
17067
     # So say no if there are warnings other than the usual output.
 
17068
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17069
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17070
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17071
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17072
     fi
 
17073
   fi
 
17074
   $rm conftest*
 
17075
 
 
17076
fi
 
17077
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17078
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
17079
 
 
17080
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17081
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17082
else
 
17083
    :
 
17084
fi
 
17085
 
 
17086
fi
 
17087
 
 
17088
lt_prog_compiler_wl_GCJ=
 
17089
lt_prog_compiler_pic_GCJ=
 
17090
lt_prog_compiler_static_GCJ=
 
17091
 
 
17092
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17093
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
17094
 
 
17095
  if test "$GCC" = yes; then
 
17096
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17097
    lt_prog_compiler_static_GCJ='-static'
 
17098
 
 
17099
    case $host_os in
 
17100
      aix*)
 
17101
      # All AIX code is PIC.
 
17102
      if test "$host_cpu" = ia64; then
 
17103
        # AIX 5 now supports IA64 processor
 
17104
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17105
      fi
 
17106
      ;;
 
17107
 
 
17108
    amigaos*)
 
17109
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17110
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17111
      # like `-m68040'.
 
17112
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17113
      ;;
 
17114
 
 
17115
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17116
      # PIC is the default for these OSes.
 
17117
      ;;
 
17118
 
 
17119
    mingw* | pw32* | os2*)
 
17120
      # This hack is so that the source file can tell whether it is being
 
17121
      # built for inclusion in a dll (and should export symbols for example).
 
17122
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17123
      ;;
 
17124
 
 
17125
    darwin* | rhapsody*)
 
17126
      # PIC is the default on this platform
 
17127
      # Common symbols not allowed in MH_DYLIB files
 
17128
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17129
      ;;
 
17130
 
 
17131
    interix3*)
 
17132
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
17133
      # Instead, we relocate shared libraries at runtime.
 
17134
      ;;
 
17135
 
 
17136
    msdosdjgpp*)
 
17137
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17138
      # on systems that don't support them.
 
17139
      lt_prog_compiler_can_build_shared_GCJ=no
 
17140
      enable_shared=no
 
17141
      ;;
 
17142
 
 
17143
    sysv4*MP*)
 
17144
      if test -d /usr/nec; then
 
17145
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17146
      fi
 
17147
      ;;
 
17148
 
 
17149
    hpux*)
 
17150
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17151
      # not for PA HP-UX.
 
17152
      case $host_cpu in
 
17153
      hppa*64*|ia64*)
 
17154
        # +Z the default
 
17155
        ;;
 
17156
      *)
 
17157
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17158
        ;;
 
17159
      esac
 
17160
      ;;
 
17161
 
 
17162
    *)
 
17163
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17164
      ;;
 
17165
    esac
 
17166
  else
 
17167
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17168
    case $host_os in
 
17169
    aix*)
 
17170
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17171
      if test "$host_cpu" = ia64; then
 
17172
        # AIX 5 now supports IA64 processor
 
17173
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17174
      else
 
17175
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17176
      fi
 
17177
      ;;
 
17178
      darwin*)
 
17179
        # PIC is the default on this platform
 
17180
        # Common symbols not allowed in MH_DYLIB files
 
17181
       case $cc_basename in
 
17182
         xlc*)
 
17183
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17184
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17185
         ;;
 
17186
       esac
 
17187
       ;;
 
17188
 
 
17189
    mingw* | pw32* | os2*)
 
17190
      # This hack is so that the source file can tell whether it is being
 
17191
      # built for inclusion in a dll (and should export symbols for example).
 
17192
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17193
      ;;
 
17194
 
 
17195
    hpux9* | hpux10* | hpux11*)
 
17196
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17197
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17198
      # not for PA HP-UX.
 
17199
      case $host_cpu in
 
17200
      hppa*64*|ia64*)
 
17201
        # +Z the default
 
17202
        ;;
 
17203
      *)
 
17204
        lt_prog_compiler_pic_GCJ='+Z'
 
17205
        ;;
 
17206
      esac
 
17207
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17208
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17209
      ;;
 
17210
 
 
17211
    irix5* | irix6* | nonstopux*)
 
17212
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17213
      # PIC (with -KPIC) is the default.
 
17214
      lt_prog_compiler_static_GCJ='-non_shared'
 
17215
      ;;
 
17216
 
 
17217
    newsos6)
 
17218
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17219
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17220
      ;;
 
17221
 
 
17222
    linux*)
 
17223
      case $cc_basename in
 
17224
      icc* | ecc*)
 
17225
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17226
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17227
        lt_prog_compiler_static_GCJ='-static'
 
17228
        ;;
 
17229
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17230
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17231
        # which looks to be a dead project)
 
17232
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17233
        lt_prog_compiler_pic_GCJ='-fpic'
 
17234
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17235
        ;;
 
17236
      ccc*)
 
17237
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17238
        # All Alpha code is PIC.
 
17239
        lt_prog_compiler_static_GCJ='-non_shared'
 
17240
        ;;
 
17241
      esac
 
17242
      ;;
 
17243
 
 
17244
    osf3* | osf4* | osf5*)
 
17245
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17246
      # All OSF/1 code is PIC.
 
17247
      lt_prog_compiler_static_GCJ='-non_shared'
 
17248
      ;;
 
17249
 
 
17250
    solaris*)
 
17251
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17252
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17253
      case $cc_basename in
 
17254
      f77* | f90* | f95*)
 
17255
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17256
      *)
 
17257
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17258
      esac
 
17259
      ;;
 
17260
 
 
17261
    sunos4*)
 
17262
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17263
      lt_prog_compiler_pic_GCJ='-PIC'
 
17264
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17265
      ;;
 
17266
 
 
17267
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17268
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17269
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17270
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17271
      ;;
 
17272
 
 
17273
    sysv4*MP*)
 
17274
      if test -d /usr/nec ;then
 
17275
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17276
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17277
      fi
 
17278
      ;;
 
17279
 
 
17280
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17281
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17282
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17283
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17284
      ;;
 
17285
 
 
17286
    unicos*)
 
17287
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17288
      lt_prog_compiler_can_build_shared_GCJ=no
 
17289
      ;;
 
17290
 
 
17291
    uts4*)
 
17292
      lt_prog_compiler_pic_GCJ='-pic'
 
17293
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17294
      ;;
 
17295
 
 
17296
    *)
 
17297
      lt_prog_compiler_can_build_shared_GCJ=no
 
17298
      ;;
 
17299
    esac
 
17300
  fi
 
17301
 
 
17302
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17303
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
17304
 
 
17305
#
 
17306
# Check to make sure the PIC flag actually works.
 
17307
#
 
17308
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17309
 
 
17310
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17311
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
17312
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
17313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17314
else
 
17315
  lt_prog_compiler_pic_works_GCJ=no
 
17316
  ac_outfile=conftest.$ac_objext
 
17317
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17318
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17319
   # Insert the option either (1) after the last *FLAGS variable, or
 
17320
   # (2) before a word containing "conftest.", or (3) at the end.
 
17321
   # Note that $ac_compile itself does not contain backslashes and begins
 
17322
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17323
   # The option is referenced via a variable to avoid confusing sed.
 
17324
   lt_compile=`echo "$ac_compile" | $SED \
 
17325
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17326
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17327
   -e 's:$: $lt_compiler_flag:'`
 
17328
   (eval echo "\"\$as_me:17328: $lt_compile\"" >&5)
 
17329
   (eval "$lt_compile" 2>conftest.err)
 
17330
   ac_status=$?
 
17331
   cat conftest.err >&5
 
17332
   echo "$as_me:17332: \$? = $ac_status" >&5
 
17333
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17334
     # The compiler can only warn and ignore the option if not recognized
 
17335
     # So say no if there are warnings other than the usual output.
 
17336
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17337
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17338
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17339
       lt_prog_compiler_pic_works_GCJ=yes
 
17340
     fi
 
17341
   fi
 
17342
   $rm conftest*
 
17343
 
 
17344
fi
 
17345
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
17346
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
17347
 
 
17348
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
17349
    case $lt_prog_compiler_pic_GCJ in
 
17350
     "" | " "*) ;;
 
17351
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17352
     esac
 
17353
else
 
17354
    lt_prog_compiler_pic_GCJ=
 
17355
     lt_prog_compiler_can_build_shared_GCJ=no
 
17356
fi
 
17357
 
 
17358
fi
 
17359
case $host_os in
 
17360
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17361
  *djgpp*)
 
17362
    lt_prog_compiler_pic_GCJ=
 
17363
    ;;
 
17364
  *)
 
17365
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17366
    ;;
 
17367
esac
 
17368
 
 
17369
#
 
17370
# Check to make sure the static flag actually works.
 
17371
#
 
17372
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17373
echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17374
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
 
17375
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
17376
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17377
else
 
17378
  lt_prog_compiler_static_works_GCJ=no
 
17379
   save_LDFLAGS="$LDFLAGS"
 
17380
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17381
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
17382
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17383
     # The linker can only warn and ignore the option if not recognized
 
17384
     # So say no if there are warnings
 
17385
     if test -s conftest.err; then
 
17386
       # Append any errors to the config.log.
 
17387
       cat conftest.err 1>&5
 
17388
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17389
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17390
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17391
         lt_prog_compiler_static_works_GCJ=yes
 
17392
       fi
 
17393
     else
 
17394
       lt_prog_compiler_static_works_GCJ=yes
 
17395
     fi
 
17396
   fi
 
17397
   $rm conftest*
 
17398
   LDFLAGS="$save_LDFLAGS"
 
17399
 
 
17400
fi
 
17401
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
17402
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
 
17403
 
 
17404
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
17405
    :
 
17406
else
 
17407
    lt_prog_compiler_static_GCJ=
 
17408
fi
 
17409
 
 
17410
 
 
17411
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17412
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
17413
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17414
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17415
else
 
17416
  lt_cv_prog_compiler_c_o_GCJ=no
 
17417
   $rm -r conftest 2>/dev/null
 
17418
   mkdir conftest
 
17419
   cd conftest
 
17420
   mkdir out
 
17421
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17422
 
 
17423
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17424
   # Insert the option either (1) after the last *FLAGS variable, or
 
17425
   # (2) before a word containing "conftest.", or (3) at the end.
 
17426
   # Note that $ac_compile itself does not contain backslashes and begins
 
17427
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17428
   lt_compile=`echo "$ac_compile" | $SED \
 
17429
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17430
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17431
   -e 's:$: $lt_compiler_flag:'`
 
17432
   (eval echo "\"\$as_me:17432: $lt_compile\"" >&5)
 
17433
   (eval "$lt_compile" 2>out/conftest.err)
 
17434
   ac_status=$?
 
17435
   cat out/conftest.err >&5
 
17436
   echo "$as_me:17436: \$? = $ac_status" >&5
 
17437
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17438
   then
 
17439
     # The compiler can only warn and ignore the option if not recognized
 
17440
     # So say no if there are warnings
 
17441
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17442
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17443
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17444
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17445
     fi
 
17446
   fi
 
17447
   chmod u+w . 2>&5
 
17448
   $rm conftest*
 
17449
   # SGI C++ compiler will create directory out/ii_files/ for
 
17450
   # template instantiation
 
17451
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17452
   $rm out/* && rmdir out
 
17453
   cd ..
 
17454
   rmdir conftest
 
17455
   $rm conftest*
 
17456
 
 
17457
fi
 
17458
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17459
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
17460
 
 
17461
 
 
17462
hard_links="nottested"
 
17463
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17464
  # do not overwrite the value of need_locks provided by the user
 
17465
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17466
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
17467
  hard_links=yes
 
17468
  $rm conftest*
 
17469
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17470
  touch conftest.a
 
17471
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17472
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17473
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
17474
echo "${ECHO_T}$hard_links" >&6
 
17475
  if test "$hard_links" = no; then
 
17476
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17477
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17478
    need_locks=warn
 
17479
  fi
 
17480
else
 
17481
  need_locks=no
 
17482
fi
 
17483
 
 
17484
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17485
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
17486
 
 
17487
  runpath_var=
 
17488
  allow_undefined_flag_GCJ=
 
17489
  enable_shared_with_static_runtimes_GCJ=no
 
17490
  archive_cmds_GCJ=
 
17491
  archive_expsym_cmds_GCJ=
 
17492
  old_archive_From_new_cmds_GCJ=
 
17493
  old_archive_from_expsyms_cmds_GCJ=
 
17494
  export_dynamic_flag_spec_GCJ=
 
17495
  whole_archive_flag_spec_GCJ=
 
17496
  thread_safe_flag_spec_GCJ=
 
17497
  hardcode_libdir_flag_spec_GCJ=
 
17498
  hardcode_libdir_flag_spec_ld_GCJ=
 
17499
  hardcode_libdir_separator_GCJ=
 
17500
  hardcode_direct_GCJ=no
 
17501
  hardcode_minus_L_GCJ=no
 
17502
  hardcode_shlibpath_var_GCJ=unsupported
 
17503
  link_all_deplibs_GCJ=unknown
 
17504
  hardcode_automatic_GCJ=no
 
17505
  module_cmds_GCJ=
 
17506
  module_expsym_cmds_GCJ=
 
17507
  always_export_symbols_GCJ=no
 
17508
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17509
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17510
  # included in the symbol list
 
17511
  include_expsyms_GCJ=
 
17512
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17513
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17514
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17515
  # as well as any symbol that contains `d'.
 
17516
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17517
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17518
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17519
  # the symbol is explicitly referenced.  Since portable code cannot
 
17520
  # rely on this symbol name, it's probably fine to never include it in
 
17521
  # preloaded symbol tables.
 
17522
  extract_expsyms_cmds=
 
17523
  # Just being paranoid about ensuring that cc_basename is set.
 
17524
  for cc_temp in $compiler""; do
 
17525
  case $cc_temp in
 
17526
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17527
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17528
    \-*) ;;
 
17529
    *) break;;
 
17530
  esac
 
17531
done
 
17532
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17533
 
 
17534
  case $host_os in
 
17535
  cygwin* | mingw* | pw32*)
 
17536
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17537
    # When not using gcc, we currently assume that we are using
 
17538
    # Microsoft Visual C++.
 
17539
    if test "$GCC" != yes; then
 
17540
      with_gnu_ld=no
 
17541
    fi
 
17542
    ;;
 
17543
  interix*)
 
17544
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17545
    with_gnu_ld=yes
 
17546
    ;;
 
17547
  openbsd*)
 
17548
    with_gnu_ld=no
 
17549
    ;;
 
17550
  esac
 
17551
 
 
17552
  ld_shlibs_GCJ=yes
 
17553
  if test "$with_gnu_ld" = yes; then
 
17554
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17555
    wlarc='${wl}'
 
17556
 
 
17557
    # Set some defaults for GNU ld with shared library support. These
 
17558
    # are reset later if shared libraries are not supported. Putting them
 
17559
    # here allows them to be overridden if necessary.
 
17560
    runpath_var=LD_RUN_PATH
 
17561
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17562
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17563
    # ancient GNU ld didn't support --whole-archive et. al.
 
17564
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17565
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17566
      else
 
17567
        whole_archive_flag_spec_GCJ=
 
17568
    fi
 
17569
    supports_anon_versioning=no
 
17570
    case `$LD -v 2>/dev/null` in
 
17571
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17572
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17573
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17574
      *\ 2.11.*) ;; # other 2.11 versions
 
17575
      *) supports_anon_versioning=yes ;;
 
17576
    esac
 
17577
 
 
17578
    # See if GNU ld supports shared libraries.
 
17579
    case $host_os in
 
17580
    aix3* | aix4* | aix5*)
 
17581
      # On AIX/PPC, the GNU linker is very broken
 
17582
      if test "$host_cpu" != ia64; then
 
17583
        ld_shlibs_GCJ=no
 
17584
        cat <<EOF 1>&2
 
17585
 
 
17586
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17587
*** to be unable to reliably create shared libraries on AIX.
 
17588
*** Therefore, libtool is disabling shared libraries support.  If you
 
17589
*** really care for shared libraries, you may want to modify your PATH
 
17590
*** so that a non-GNU linker is found, and then restart.
 
17591
 
 
17592
EOF
 
17593
      fi
 
17594
      ;;
 
17595
 
 
17596
    amigaos*)
 
17597
      archive_cmds_GCJ='$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)'
 
17598
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17599
      hardcode_minus_L_GCJ=yes
 
17600
 
 
17601
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17602
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17603
      # to version 4, is to share data among multiple programs linked
 
17604
      # with the same dynamic library.  Since this doesn't match the
 
17605
      # behavior of shared libraries on other platforms, we can't use
 
17606
      # them.
 
17607
      ld_shlibs_GCJ=no
 
17608
      ;;
 
17609
 
 
17610
    beos*)
 
17611
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17612
        allow_undefined_flag_GCJ=unsupported
 
17613
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17614
        # support --undefined.  This deserves some investigation.  FIXME
 
17615
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17616
      else
 
17617
        ld_shlibs_GCJ=no
 
17618
      fi
 
17619
      ;;
 
17620
 
 
17621
    cygwin* | mingw* | pw32*)
 
17622
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17623
      # as there is no search path for DLLs.
 
17624
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17625
      allow_undefined_flag_GCJ=unsupported
 
17626
      always_export_symbols_GCJ=no
 
17627
      enable_shared_with_static_runtimes_GCJ=yes
 
17628
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17629
 
 
17630
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17631
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17632
        # If the export-symbols file already is a .def file (1st line
 
17633
        # is EXPORTS), use it as is; otherwise, prepend...
 
17634
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17635
          cp $export_symbols $output_objdir/$soname.def;
 
17636
        else
 
17637
          echo EXPORTS > $output_objdir/$soname.def;
 
17638
          cat $export_symbols >> $output_objdir/$soname.def;
 
17639
        fi~
 
17640
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17641
      else
 
17642
        ld_shlibs_GCJ=no
 
17643
      fi
 
17644
      ;;
 
17645
 
 
17646
    interix3*)
 
17647
      hardcode_direct_GCJ=no
 
17648
      hardcode_shlibpath_var_GCJ=no
 
17649
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17650
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17651
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17652
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17653
      # default) and relocated if they conflict, which is a slow very memory
 
17654
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17655
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17656
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17657
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
17658
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
17659
      ;;
 
17660
 
 
17661
    linux*)
 
17662
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17663
        tmp_addflag=
 
17664
        case $cc_basename,$host_cpu in
 
17665
        pgcc*)                          # Portland Group C compiler
 
17666
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17667
          tmp_addflag=' $pic_flag'
 
17668
          ;;
 
17669
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17670
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17671
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17672
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17673
          tmp_addflag=' -i_dynamic' ;;
 
17674
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17675
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17676
        ifc* | ifort*)                  # Intel Fortran compiler
 
17677
          tmp_addflag=' -nofor_main' ;;
 
17678
        esac
 
17679
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17680
 
 
17681
        if test $supports_anon_versioning = yes; then
 
17682
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17683
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17684
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17685
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17686
        fi
 
17687
      else
 
17688
        ld_shlibs_GCJ=no
 
17689
      fi
 
17690
      ;;
 
17691
 
 
17692
    netbsd*)
 
17693
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17694
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17695
        wlarc=
 
17696
      else
 
17697
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17698
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17699
      fi
 
17700
      ;;
 
17701
 
 
17702
    solaris*)
 
17703
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17704
        ld_shlibs_GCJ=no
 
17705
        cat <<EOF 1>&2
 
17706
 
 
17707
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17708
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17709
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17710
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17711
*** your PATH or compiler configuration so that the native linker is
 
17712
*** used, and then restart.
 
17713
 
 
17714
EOF
 
17715
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17716
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17717
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17718
      else
 
17719
        ld_shlibs_GCJ=no
 
17720
      fi
 
17721
      ;;
 
17722
 
 
17723
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17724
      case `$LD -v 2>&1` in
 
17725
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17726
        ld_shlibs_GCJ=no
 
17727
        cat <<_LT_EOF 1>&2
 
17728
 
 
17729
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17730
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17731
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17732
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17733
*** your PATH or compiler configuration so that the native linker is
 
17734
*** used, and then restart.
 
17735
 
 
17736
_LT_EOF
 
17737
        ;;
 
17738
        *)
 
17739
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17740
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17741
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17742
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17743
          else
 
17744
            ld_shlibs_GCJ=no
 
17745
          fi
 
17746
        ;;
 
17747
      esac
 
17748
      ;;
 
17749
 
 
17750
    sunos4*)
 
17751
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17752
      wlarc=
 
17753
      hardcode_direct_GCJ=yes
 
17754
      hardcode_shlibpath_var_GCJ=no
 
17755
      ;;
 
17756
 
 
17757
    *)
 
17758
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17759
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17760
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17761
      else
 
17762
        ld_shlibs_GCJ=no
 
17763
      fi
 
17764
      ;;
 
17765
    esac
 
17766
 
 
17767
    if test "$ld_shlibs_GCJ" = no; then
 
17768
      runpath_var=
 
17769
      hardcode_libdir_flag_spec_GCJ=
 
17770
      export_dynamic_flag_spec_GCJ=
 
17771
      whole_archive_flag_spec_GCJ=
 
17772
    fi
 
17773
  else
 
17774
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17775
    case $host_os in
 
17776
    aix3*)
 
17777
      allow_undefined_flag_GCJ=unsupported
 
17778
      always_export_symbols_GCJ=yes
 
17779
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
17780
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17781
      # are no directories specified by -L.
 
17782
      hardcode_minus_L_GCJ=yes
 
17783
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17784
        # Neither direct hardcoding nor static linking is supported with a
 
17785
        # broken collect2.
 
17786
        hardcode_direct_GCJ=unsupported
 
17787
      fi
 
17788
      ;;
 
17789
 
 
17790
    aix4* | aix5*)
 
17791
      if test "$host_cpu" = ia64; then
 
17792
        # On IA64, the linker does run time linking by default, so we don't
 
17793
        # have to do anything special.
 
17794
        aix_use_runtimelinking=no
 
17795
        exp_sym_flag='-Bexport'
 
17796
        no_entry_flag=""
 
17797
      else
 
17798
        # If we're using GNU nm, then we don't want the "-C" option.
 
17799
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17800
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17801
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17802
        else
 
17803
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17804
        fi
 
17805
        aix_use_runtimelinking=no
 
17806
 
 
17807
        # Test if we are trying to use run time linking or normal
 
17808
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17809
        # need to do runtime linking.
 
17810
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17811
          for ld_flag in $LDFLAGS; do
 
17812
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17813
            aix_use_runtimelinking=yes
 
17814
            break
 
17815
          fi
 
17816
          done
 
17817
          ;;
 
17818
        esac
 
17819
 
 
17820
        exp_sym_flag='-bexport'
 
17821
        no_entry_flag='-bnoentry'
 
17822
      fi
 
17823
 
 
17824
      # When large executables or shared objects are built, AIX ld can
 
17825
      # have problems creating the table of contents.  If linking a library
 
17826
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17827
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17828
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17829
 
 
17830
      archive_cmds_GCJ=''
 
17831
      hardcode_direct_GCJ=yes
 
17832
      hardcode_libdir_separator_GCJ=':'
 
17833
      link_all_deplibs_GCJ=yes
 
17834
 
 
17835
      if test "$GCC" = yes; then
 
17836
        case $host_os in aix4.[012]|aix4.[012].*)
 
17837
        # We only want to do this on AIX 4.2 and lower, the check
 
17838
        # below for broken collect2 doesn't work under 4.3+
 
17839
          collect2name=`${CC} -print-prog-name=collect2`
 
17840
          if test -f "$collect2name" && \
 
17841
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17842
          then
 
17843
          # We have reworked collect2
 
17844
          hardcode_direct_GCJ=yes
 
17845
          else
 
17846
          # We have old collect2
 
17847
          hardcode_direct_GCJ=unsupported
 
17848
          # It fails to find uninstalled libraries when the uninstalled
 
17849
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17850
          # to unsupported forces relinking
 
17851
          hardcode_minus_L_GCJ=yes
 
17852
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17853
          hardcode_libdir_separator_GCJ=
 
17854
          fi
 
17855
          ;;
 
17856
        esac
 
17857
        shared_flag='-shared'
 
17858
        if test "$aix_use_runtimelinking" = yes; then
 
17859
          shared_flag="$shared_flag "'${wl}-G'
 
17860
        fi
 
17861
      else
 
17862
        # not using gcc
 
17863
        if test "$host_cpu" = ia64; then
 
17864
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17865
        # chokes on -Wl,-G. The following line is correct:
 
17866
          shared_flag='-G'
 
17867
        else
 
17868
          if test "$aix_use_runtimelinking" = yes; then
 
17869
            shared_flag='${wl}-G'
 
17870
          else
 
17871
            shared_flag='${wl}-bM:SRE'
 
17872
          fi
 
17873
        fi
 
17874
      fi
 
17875
 
 
17876
      # It seems that -bexpall does not export symbols beginning with
 
17877
      # underscore (_), so it is better to generate a list of symbols to export.
 
17878
      always_export_symbols_GCJ=yes
 
17879
      if test "$aix_use_runtimelinking" = yes; then
 
17880
        # Warning - without using the other runtime loading flags (-brtl),
 
17881
        # -berok will link without error, but may produce a broken library.
 
17882
        allow_undefined_flag_GCJ='-berok'
 
17883
       # Determine the default libpath from the value encoded in an empty executable.
 
17884
       cat >conftest.$ac_ext <<_ACEOF
 
17885
/* confdefs.h.  */
 
17886
_ACEOF
 
17887
cat confdefs.h >>conftest.$ac_ext
 
17888
cat >>conftest.$ac_ext <<_ACEOF
 
17889
/* end confdefs.h.  */
 
17890
 
 
17891
int
 
17892
main ()
 
17893
{
 
17894
 
 
17895
  ;
 
17896
  return 0;
 
17897
}
 
17898
_ACEOF
 
17899
rm -f conftest.$ac_objext conftest$ac_exeext
 
17900
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17901
  (eval $ac_link) 2>conftest.er1
 
17902
  ac_status=$?
 
17903
  grep -v '^ *+' conftest.er1 >conftest.err
 
17904
  rm -f conftest.er1
 
17905
  cat conftest.err >&5
 
17906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17907
  (exit $ac_status); } &&
 
17908
         { ac_try='test -z "$ac_c_werror_flag"
 
17909
                         || test ! -s conftest.err'
 
17910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17911
  (eval $ac_try) 2>&5
 
17912
  ac_status=$?
 
17913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17914
  (exit $ac_status); }; } &&
 
17915
         { ac_try='test -s conftest$ac_exeext'
 
17916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17917
  (eval $ac_try) 2>&5
 
17918
  ac_status=$?
 
17919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17920
  (exit $ac_status); }; }; then
 
17921
 
 
17922
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17923
}'`
 
17924
# Check for a 64-bit object if we didn't find anything.
 
17925
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17926
}'`; fi
 
17927
else
 
17928
  echo "$as_me: failed program was:" >&5
 
17929
sed 's/^/| /' conftest.$ac_ext >&5
 
17930
 
 
17931
fi
 
17932
rm -f conftest.err conftest.$ac_objext \
 
17933
      conftest$ac_exeext conftest.$ac_ext
 
17934
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17935
 
 
17936
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17937
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
17938
       else
 
17939
        if test "$host_cpu" = ia64; then
 
17940
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17941
          allow_undefined_flag_GCJ="-z nodefs"
 
17942
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
17943
        else
 
17944
         # Determine the default libpath from the value encoded in an empty executable.
 
17945
         cat >conftest.$ac_ext <<_ACEOF
 
17946
/* confdefs.h.  */
 
17947
_ACEOF
 
17948
cat confdefs.h >>conftest.$ac_ext
 
17949
cat >>conftest.$ac_ext <<_ACEOF
 
17950
/* end confdefs.h.  */
 
17951
 
 
17952
int
 
17953
main ()
 
17954
{
 
17955
 
 
17956
  ;
 
17957
  return 0;
 
17958
}
 
17959
_ACEOF
 
17960
rm -f conftest.$ac_objext conftest$ac_exeext
 
17961
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17962
  (eval $ac_link) 2>conftest.er1
 
17963
  ac_status=$?
 
17964
  grep -v '^ *+' conftest.er1 >conftest.err
 
17965
  rm -f conftest.er1
 
17966
  cat conftest.err >&5
 
17967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17968
  (exit $ac_status); } &&
 
17969
         { ac_try='test -z "$ac_c_werror_flag"
 
17970
                         || test ! -s conftest.err'
 
17971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17972
  (eval $ac_try) 2>&5
 
17973
  ac_status=$?
 
17974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17975
  (exit $ac_status); }; } &&
 
17976
         { ac_try='test -s conftest$ac_exeext'
 
17977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17978
  (eval $ac_try) 2>&5
 
17979
  ac_status=$?
 
17980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17981
  (exit $ac_status); }; }; then
 
17982
 
 
17983
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17984
}'`
 
17985
# Check for a 64-bit object if we didn't find anything.
 
17986
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17987
}'`; fi
 
17988
else
 
17989
  echo "$as_me: failed program was:" >&5
 
17990
sed 's/^/| /' conftest.$ac_ext >&5
 
17991
 
 
17992
fi
 
17993
rm -f conftest.err conftest.$ac_objext \
 
17994
      conftest$ac_exeext conftest.$ac_ext
 
17995
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17996
 
 
17997
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17998
          # Warning - without using the other run time loading flags,
 
17999
          # -berok will link without error, but may produce a broken library.
 
18000
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
18001
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
18002
          # Exported symbols can be pulled into shared objects from archives
 
18003
          whole_archive_flag_spec_GCJ='$convenience'
 
18004
          archive_cmds_need_lc_GCJ=yes
 
18005
          # This is similar to how AIX traditionally builds its shared libraries.
 
18006
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
18007
        fi
 
18008
      fi
 
18009
      ;;
 
18010
 
 
18011
    amigaos*)
 
18012
      archive_cmds_GCJ='$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)'
 
18013
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18014
      hardcode_minus_L_GCJ=yes
 
18015
      # see comment about different semantics on the GNU ld section
 
18016
      ld_shlibs_GCJ=no
 
18017
      ;;
 
18018
 
 
18019
    bsdi[45]*)
 
18020
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18021
      ;;
 
18022
 
 
18023
    cygwin* | mingw* | pw32*)
 
18024
      # When not using gcc, we currently assume that we are using
 
18025
      # Microsoft Visual C++.
 
18026
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18027
      # no search path for DLLs.
 
18028
      hardcode_libdir_flag_spec_GCJ=' '
 
18029
      allow_undefined_flag_GCJ=unsupported
 
18030
      # Tell ltmain to make .lib files, not .a files.
 
18031
      libext=lib
 
18032
      # Tell ltmain to make .dll files, not .so files.
 
18033
      shrext_cmds=".dll"
 
18034
      # FIXME: Setting linknames here is a bad hack.
 
18035
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18036
      # The linker will automatically build a .lib file if we build a DLL.
 
18037
      old_archive_From_new_cmds_GCJ='true'
 
18038
      # FIXME: Should let the user specify the lib program.
 
18039
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
18040
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
18041
      enable_shared_with_static_runtimes_GCJ=yes
 
18042
      ;;
 
18043
 
 
18044
    darwin* | rhapsody*)
 
18045
      case $host_os in
 
18046
        rhapsody* | darwin1.[012])
 
18047
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
18048
         ;;
 
18049
       *) # Darwin 1.3 on
 
18050
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18051
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18052
         else
 
18053
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
18054
             10.[012])
 
18055
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18056
               ;;
 
18057
             10.*)
 
18058
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
18059
               ;;
 
18060
           esac
 
18061
         fi
 
18062
         ;;
 
18063
      esac
 
18064
      archive_cmds_need_lc_GCJ=no
 
18065
      hardcode_direct_GCJ=no
 
18066
      hardcode_automatic_GCJ=yes
 
18067
      hardcode_shlibpath_var_GCJ=unsupported
 
18068
      whole_archive_flag_spec_GCJ=''
 
18069
      link_all_deplibs_GCJ=yes
 
18070
    if test "$GCC" = yes ; then
 
18071
        output_verbose_link_cmd='echo'
 
18072
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18073
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18074
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18075
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18076
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18077
    else
 
18078
      case $cc_basename in
 
18079
        xlc*)
 
18080
         output_verbose_link_cmd='echo'
 
18081
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
18082
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18083
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18084
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18085
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18086
          ;;
 
18087
       *)
 
18088
         ld_shlibs_GCJ=no
 
18089
          ;;
 
18090
      esac
 
18091
    fi
 
18092
      ;;
 
18093
 
 
18094
    dgux*)
 
18095
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18096
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18097
      hardcode_shlibpath_var_GCJ=no
 
18098
      ;;
 
18099
 
 
18100
    freebsd1*)
 
18101
      ld_shlibs_GCJ=no
 
18102
      ;;
 
18103
 
 
18104
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18105
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18106
    # does not break anything, and helps significantly (at the cost of a little
 
18107
    # extra space).
 
18108
    freebsd2.2*)
 
18109
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18110
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18111
      hardcode_direct_GCJ=yes
 
18112
      hardcode_shlibpath_var_GCJ=no
 
18113
      ;;
 
18114
 
 
18115
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18116
    freebsd2*)
 
18117
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18118
      hardcode_direct_GCJ=yes
 
18119
      hardcode_minus_L_GCJ=yes
 
18120
      hardcode_shlibpath_var_GCJ=no
 
18121
      ;;
 
18122
 
 
18123
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18124
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
18125
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18126
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18127
      hardcode_direct_GCJ=yes
 
18128
      hardcode_shlibpath_var_GCJ=no
 
18129
      ;;
 
18130
 
 
18131
    hpux9*)
 
18132
      if test "$GCC" = yes; then
 
18133
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18134
      else
 
18135
        archive_cmds_GCJ='$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'
 
18136
      fi
 
18137
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18138
      hardcode_libdir_separator_GCJ=:
 
18139
      hardcode_direct_GCJ=yes
 
18140
 
 
18141
      # hardcode_minus_L: Not really in the search PATH,
 
18142
      # but as the default location of the library.
 
18143
      hardcode_minus_L_GCJ=yes
 
18144
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18145
      ;;
 
18146
 
 
18147
    hpux10*)
 
18148
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18149
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18150
      else
 
18151
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18152
      fi
 
18153
      if test "$with_gnu_ld" = no; then
 
18154
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18155
        hardcode_libdir_separator_GCJ=:
 
18156
 
 
18157
        hardcode_direct_GCJ=yes
 
18158
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18159
 
 
18160
        # hardcode_minus_L: Not really in the search PATH,
 
18161
        # but as the default location of the library.
 
18162
        hardcode_minus_L_GCJ=yes
 
18163
      fi
 
18164
      ;;
 
18165
 
 
18166
    hpux11*)
 
18167
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18168
        case $host_cpu in
 
18169
        hppa*64*)
 
18170
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18171
          ;;
 
18172
        ia64*)
 
18173
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18174
          ;;
 
18175
        *)
 
18176
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18177
          ;;
 
18178
        esac
 
18179
      else
 
18180
        case $host_cpu in
 
18181
        hppa*64*)
 
18182
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18183
          ;;
 
18184
        ia64*)
 
18185
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18186
          ;;
 
18187
        *)
 
18188
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18189
          ;;
 
18190
        esac
 
18191
      fi
 
18192
      if test "$with_gnu_ld" = no; then
 
18193
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18194
        hardcode_libdir_separator_GCJ=:
 
18195
 
 
18196
        case $host_cpu in
 
18197
        hppa*64*|ia64*)
 
18198
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18199
          hardcode_direct_GCJ=no
 
18200
          hardcode_shlibpath_var_GCJ=no
 
18201
          ;;
 
18202
        *)
 
18203
          hardcode_direct_GCJ=yes
 
18204
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18205
 
 
18206
          # hardcode_minus_L: Not really in the search PATH,
 
18207
          # but as the default location of the library.
 
18208
          hardcode_minus_L_GCJ=yes
 
18209
          ;;
 
18210
        esac
 
18211
      fi
 
18212
      ;;
 
18213
 
 
18214
    irix5* | irix6* | nonstopux*)
 
18215
      if test "$GCC" = yes; then
 
18216
        archive_cmds_GCJ='$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'
 
18217
      else
 
18218
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18219
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18220
      fi
 
18221
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18222
      hardcode_libdir_separator_GCJ=:
 
18223
      link_all_deplibs_GCJ=yes
 
18224
      ;;
 
18225
 
 
18226
    netbsd*)
 
18227
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18228
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18229
      else
 
18230
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18231
      fi
 
18232
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18233
      hardcode_direct_GCJ=yes
 
18234
      hardcode_shlibpath_var_GCJ=no
 
18235
      ;;
 
18236
 
 
18237
    newsos6)
 
18238
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18239
      hardcode_direct_GCJ=yes
 
18240
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18241
      hardcode_libdir_separator_GCJ=:
 
18242
      hardcode_shlibpath_var_GCJ=no
 
18243
      ;;
 
18244
 
 
18245
    openbsd*)
 
18246
      hardcode_direct_GCJ=yes
 
18247
      hardcode_shlibpath_var_GCJ=no
 
18248
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18249
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18250
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18251
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18252
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18253
      else
 
18254
       case $host_os in
 
18255
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18256
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18257
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18258
           ;;
 
18259
         *)
 
18260
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18261
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18262
           ;;
 
18263
       esac
 
18264
      fi
 
18265
      ;;
 
18266
 
 
18267
    os2*)
 
18268
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18269
      hardcode_minus_L_GCJ=yes
 
18270
      allow_undefined_flag_GCJ=unsupported
 
18271
      archive_cmds_GCJ='$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'
 
18272
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18273
      ;;
 
18274
 
 
18275
    osf3*)
 
18276
      if test "$GCC" = yes; then
 
18277
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18278
        archive_cmds_GCJ='$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'
 
18279
      else
 
18280
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18281
        archive_cmds_GCJ='$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'
 
18282
      fi
 
18283
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18284
      hardcode_libdir_separator_GCJ=:
 
18285
      ;;
 
18286
 
 
18287
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18288
      if test "$GCC" = yes; then
 
18289
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18290
        archive_cmds_GCJ='$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'
 
18291
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18292
      else
 
18293
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18294
        archive_cmds_GCJ='$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'
 
18295
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
18296
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
18297
 
 
18298
        # Both c and cxx compiler support -rpath directly
 
18299
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18300
      fi
 
18301
      hardcode_libdir_separator_GCJ=:
 
18302
      ;;
 
18303
 
 
18304
    solaris*)
 
18305
      no_undefined_flag_GCJ=' -z text'
 
18306
      if test "$GCC" = yes; then
 
18307
        wlarc='${wl}'
 
18308
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18309
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18310
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18311
      else
 
18312
        wlarc=''
 
18313
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18314
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18315
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18316
      fi
 
18317
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18318
      hardcode_shlibpath_var_GCJ=no
 
18319
      case $host_os in
 
18320
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18321
      *)
 
18322
        # The compiler driver will combine linker options so we
 
18323
        # cannot just pass the convience library names through
 
18324
        # without $wl, iff we do not link with $LD.
 
18325
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
18326
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18327
        case $wlarc in
 
18328
        '')
 
18329
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
18330
        *)
 
18331
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
18332
        esac ;;
 
18333
      esac
 
18334
      link_all_deplibs_GCJ=yes
 
18335
      ;;
 
18336
 
 
18337
    sunos4*)
 
18338
      if test "x$host_vendor" = xsequent; then
 
18339
        # Use $CC to link under sequent, because it throws in some extra .o
 
18340
        # files that make .init and .fini sections work.
 
18341
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18342
      else
 
18343
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18344
      fi
 
18345
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18346
      hardcode_direct_GCJ=yes
 
18347
      hardcode_minus_L_GCJ=yes
 
18348
      hardcode_shlibpath_var_GCJ=no
 
18349
      ;;
 
18350
 
 
18351
    sysv4)
 
18352
      case $host_vendor in
 
18353
        sni)
 
18354
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18355
          hardcode_direct_GCJ=yes # is this really true???
 
18356
        ;;
 
18357
        siemens)
 
18358
          ## LD is ld it makes a PLAMLIB
 
18359
          ## CC just makes a GrossModule.
 
18360
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18361
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18362
          hardcode_direct_GCJ=no
 
18363
        ;;
 
18364
        motorola)
 
18365
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18366
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18367
        ;;
 
18368
      esac
 
18369
      runpath_var='LD_RUN_PATH'
 
18370
      hardcode_shlibpath_var_GCJ=no
 
18371
      ;;
 
18372
 
 
18373
    sysv4.3*)
 
18374
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18375
      hardcode_shlibpath_var_GCJ=no
 
18376
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18377
      ;;
 
18378
 
 
18379
    sysv4*MP*)
 
18380
      if test -d /usr/nec; then
 
18381
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18382
        hardcode_shlibpath_var_GCJ=no
 
18383
        runpath_var=LD_RUN_PATH
 
18384
        hardcode_runpath_var=yes
 
18385
        ld_shlibs_GCJ=yes
 
18386
      fi
 
18387
      ;;
 
18388
 
 
18389
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
18390
      no_undefined_flag_GCJ='${wl}-z,text'
 
18391
      archive_cmds_need_lc_GCJ=no
 
18392
      hardcode_shlibpath_var_GCJ=no
 
18393
      runpath_var='LD_RUN_PATH'
 
18394
 
 
18395
      if test "$GCC" = yes; then
 
18396
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18397
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18398
      else
 
18399
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18400
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18401
      fi
 
18402
      ;;
 
18403
 
 
18404
    sysv5* | sco3.2v5* | sco5v6*)
 
18405
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18406
      # link with -lc, and that would cause any symbols used from libc to
 
18407
      # always be unresolved, which means just about no library would
 
18408
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18409
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18410
      # as -z defs.
 
18411
      no_undefined_flag_GCJ='${wl}-z,text'
 
18412
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18413
      archive_cmds_need_lc_GCJ=no
 
18414
      hardcode_shlibpath_var_GCJ=no
 
18415
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18416
      hardcode_libdir_separator_GCJ=':'
 
18417
      link_all_deplibs_GCJ=yes
 
18418
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18419
      runpath_var='LD_RUN_PATH'
 
18420
 
 
18421
      if test "$GCC" = yes; then
 
18422
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18423
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18424
      else
 
18425
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18426
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18427
      fi
 
18428
      ;;
 
18429
 
 
18430
    uts4*)
 
18431
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18432
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18433
      hardcode_shlibpath_var_GCJ=no
 
18434
      ;;
 
18435
 
 
18436
    *)
 
18437
      ld_shlibs_GCJ=no
 
18438
      ;;
 
18439
    esac
 
18440
  fi
 
18441
 
 
18442
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18443
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
18444
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18445
 
 
18446
#
 
18447
# Do we need to explicitly link libc?
 
18448
#
 
18449
case "x$archive_cmds_need_lc_GCJ" in
 
18450
x|xyes)
 
18451
  # Assume -lc should be added
 
18452
  archive_cmds_need_lc_GCJ=yes
 
18453
 
 
18454
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18455
    case $archive_cmds_GCJ in
 
18456
    *'~'*)
 
18457
      # FIXME: we may have to deal with multi-command sequences.
 
18458
      ;;
 
18459
    '$CC '*)
 
18460
      # Test whether the compiler implicitly links with -lc since on some
 
18461
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18462
      # to ld, don't add -lc before -lgcc.
 
18463
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18464
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
18465
      $rm conftest*
 
18466
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18467
 
 
18468
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18469
  (eval $ac_compile) 2>&5
 
18470
  ac_status=$?
 
18471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18472
  (exit $ac_status); } 2>conftest.err; then
 
18473
        soname=conftest
 
18474
        lib=conftest
 
18475
        libobjs=conftest.$ac_objext
 
18476
        deplibs=
 
18477
        wl=$lt_prog_compiler_wl_GCJ
 
18478
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18479
        compiler_flags=-v
 
18480
        linker_flags=-v
 
18481
        verstring=
 
18482
        output_objdir=.
 
18483
        libname=conftest
 
18484
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18485
        allow_undefined_flag_GCJ=
 
18486
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18487
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18488
  ac_status=$?
 
18489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18490
  (exit $ac_status); }
 
18491
        then
 
18492
          archive_cmds_need_lc_GCJ=no
 
18493
        else
 
18494
          archive_cmds_need_lc_GCJ=yes
 
18495
        fi
 
18496
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18497
      else
 
18498
        cat conftest.err 1>&5
 
18499
      fi
 
18500
      $rm conftest*
 
18501
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18502
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
18503
      ;;
 
18504
    esac
 
18505
  fi
 
18506
  ;;
 
18507
esac
 
18508
 
 
18509
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18510
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
18511
library_names_spec=
 
18512
libname_spec='lib$name'
 
18513
soname_spec=
 
18514
shrext_cmds=".so"
 
18515
postinstall_cmds=
 
18516
postuninstall_cmds=
 
18517
finish_cmds=
 
18518
finish_eval=
 
18519
shlibpath_var=
 
18520
shlibpath_overrides_runpath=unknown
 
18521
version_type=none
 
18522
dynamic_linker="$host_os ld.so"
 
18523
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18524
if test "$GCC" = yes; then
 
18525
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18526
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
18527
    # if the path contains ";" then we assume it to be the separator
 
18528
    # otherwise default to the standard path separator (i.e. ":") - it is
 
18529
    # assumed that no part of a normal pathname contains ";" but that should
 
18530
    # okay in the real world where ";" in dirpaths is itself problematic.
 
18531
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18532
  else
 
18533
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18534
  fi
 
18535
else
 
18536
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
18537
fi
 
18538
need_lib_prefix=unknown
 
18539
hardcode_into_libs=no
 
18540
 
 
18541
# when you set need_version to no, make sure it does not cause -set_version
 
18542
# flags to be left without arguments
 
18543
need_version=unknown
 
18544
 
 
18545
case $host_os in
 
18546
aix3*)
 
18547
  version_type=linux
 
18548
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18549
  shlibpath_var=LIBPATH
 
18550
 
 
18551
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18552
  soname_spec='${libname}${release}${shared_ext}$major'
 
18553
  ;;
 
18554
 
 
18555
aix4* | aix5*)
 
18556
  version_type=linux
 
18557
  need_lib_prefix=no
 
18558
  need_version=no
 
18559
  hardcode_into_libs=yes
 
18560
  if test "$host_cpu" = ia64; then
 
18561
    # AIX 5 supports IA64
 
18562
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18563
    shlibpath_var=LD_LIBRARY_PATH
 
18564
  else
 
18565
    # With GCC up to 2.95.x, collect2 would create an import file
 
18566
    # for dependence libraries.  The import file would start with
 
18567
    # the line `#! .'.  This would cause the generated library to
 
18568
    # depend on `.', always an invalid library.  This was fixed in
 
18569
    # development snapshots of GCC prior to 3.0.
 
18570
    case $host_os in
 
18571
      aix4 | aix4.[01] | aix4.[01].*)
 
18572
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18573
           echo ' yes '
 
18574
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18575
        :
 
18576
      else
 
18577
        can_build_shared=no
 
18578
      fi
 
18579
      ;;
 
18580
    esac
 
18581
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18582
    # soname into executable. Probably we can add versioning support to
 
18583
    # collect2, so additional links can be useful in future.
 
18584
    if test "$aix_use_runtimelinking" = yes; then
 
18585
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18586
      # instead of lib<name>.a to let people know that these are not
 
18587
      # typical AIX shared libraries.
 
18588
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18589
    else
 
18590
      # We preserve .a as extension for shared libraries through AIX4.2
 
18591
      # and later when we are not doing run time linking.
 
18592
      library_names_spec='${libname}${release}.a $libname.a'
 
18593
      soname_spec='${libname}${release}${shared_ext}$major'
 
18594
    fi
 
18595
    shlibpath_var=LIBPATH
 
18596
  fi
 
18597
  ;;
 
18598
 
 
18599
amigaos*)
 
18600
  library_names_spec='$libname.ixlibrary $libname.a'
 
18601
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18602
  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'
 
18603
  ;;
 
18604
 
 
18605
beos*)
 
18606
  library_names_spec='${libname}${shared_ext}'
 
18607
  dynamic_linker="$host_os ld.so"
 
18608
  shlibpath_var=LIBRARY_PATH
 
18609
  ;;
 
18610
 
 
18611
bsdi[45]*)
 
18612
  version_type=linux
 
18613
  need_version=no
 
18614
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18615
  soname_spec='${libname}${release}${shared_ext}$major'
 
18616
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18617
  shlibpath_var=LD_LIBRARY_PATH
 
18618
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18619
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18620
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18621
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18622
  # libtool to hard-code these into programs
 
18623
  ;;
 
18624
 
 
18625
cygwin* | mingw* | pw32*)
 
18626
  version_type=windows
 
18627
  shrext_cmds=".dll"
 
18628
  need_version=no
 
18629
  need_lib_prefix=no
 
18630
 
 
18631
  case $GCC,$host_os in
 
18632
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18633
    library_names_spec='$libname.dll.a'
 
18634
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18635
    postinstall_cmds='base_file=`basename \${file}`~
 
18636
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18637
      dldir=$destdir/`dirname \$dlpath`~
 
18638
      test -d \$dldir || mkdir -p \$dldir~
 
18639
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18640
      chmod a+x \$dldir/$dlname'
 
18641
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18642
      dlpath=$dir/\$dldll~
 
18643
       $rm \$dlpath'
 
18644
    shlibpath_overrides_runpath=yes
 
18645
 
 
18646
    case $host_os in
 
18647
    cygwin*)
 
18648
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18649
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18650
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18651
      ;;
 
18652
    mingw*)
 
18653
      # MinGW DLLs use traditional 'lib' prefix
 
18654
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18655
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18656
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18657
        # It is most probably a Windows format PATH printed by
 
18658
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18659
        # path with ; separators, and with drive letters. We can handle the
 
18660
        # drive letters (cygwin fileutils understands them), so leave them,
 
18661
        # especially as we might pass files found there to a mingw objdump,
 
18662
        # which wouldn't understand a cygwinified path. Ahh.
 
18663
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18664
      else
 
18665
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18666
      fi
 
18667
      ;;
 
18668
    pw32*)
 
18669
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18670
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18671
      ;;
 
18672
    esac
 
18673
    ;;
 
18674
 
 
18675
  *)
 
18676
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18677
    ;;
 
18678
  esac
 
18679
  dynamic_linker='Win32 ld.exe'
 
18680
  # FIXME: first we should search . and the directory the executable is in
 
18681
  shlibpath_var=PATH
 
18682
  ;;
 
18683
 
 
18684
darwin* | rhapsody*)
 
18685
  dynamic_linker="$host_os dyld"
 
18686
  version_type=darwin
 
18687
  need_lib_prefix=no
 
18688
  need_version=no
 
18689
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18690
  soname_spec='${libname}${release}${major}$shared_ext'
 
18691
  shlibpath_overrides_runpath=yes
 
18692
  shlibpath_var=DYLD_LIBRARY_PATH
 
18693
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18694
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18695
  if test "$GCC" = yes; then
 
18696
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
18697
  else
 
18698
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
18699
  fi
 
18700
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18701
  ;;
 
18702
 
 
18703
dgux*)
 
18704
  version_type=linux
 
18705
  need_lib_prefix=no
 
18706
  need_version=no
 
18707
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18708
  soname_spec='${libname}${release}${shared_ext}$major'
 
18709
  shlibpath_var=LD_LIBRARY_PATH
 
18710
  ;;
 
18711
 
 
18712
freebsd1*)
 
18713
  dynamic_linker=no
 
18714
  ;;
 
18715
 
 
18716
kfreebsd*-gnu)
 
18717
  version_type=linux
 
18718
  need_lib_prefix=no
 
18719
  need_version=no
 
18720
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18721
  soname_spec='${libname}${release}${shared_ext}$major'
 
18722
  shlibpath_var=LD_LIBRARY_PATH
 
18723
  shlibpath_overrides_runpath=no
 
18724
  hardcode_into_libs=yes
 
18725
  dynamic_linker='GNU ld.so'
 
18726
  ;;
 
18727
 
 
18728
freebsd* | dragonfly*)
 
18729
  # DragonFly does not have aout.  When/if they implement a new
 
18730
  # versioning mechanism, adjust this.
 
18731
  if test -x /usr/bin/objformat; then
 
18732
    objformat=`/usr/bin/objformat`
 
18733
  else
 
18734
    case $host_os in
 
18735
    freebsd[123]*) objformat=aout ;;
 
18736
    *) objformat=elf ;;
 
18737
    esac
 
18738
  fi
 
18739
  version_type=freebsd-$objformat
 
18740
  case $version_type in
 
18741
    freebsd-elf*)
 
18742
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18743
      need_version=no
 
18744
      need_lib_prefix=no
 
18745
      ;;
 
18746
    freebsd-*)
 
18747
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18748
      need_version=yes
 
18749
      ;;
 
18750
  esac
 
18751
  shlibpath_var=LD_LIBRARY_PATH
 
18752
  case $host_os in
 
18753
  freebsd2*)
 
18754
    shlibpath_overrides_runpath=yes
 
18755
    ;;
 
18756
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18757
    shlibpath_overrides_runpath=yes
 
18758
    hardcode_into_libs=yes
 
18759
    ;;
 
18760
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18761
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18762
    shlibpath_overrides_runpath=no
 
18763
    hardcode_into_libs=yes
 
18764
    ;;
 
18765
  freebsd*) # from 4.6 on
 
18766
    shlibpath_overrides_runpath=yes
 
18767
    hardcode_into_libs=yes
 
18768
    ;;
 
18769
  esac
 
18770
  ;;
 
18771
 
 
18772
gnu*)
 
18773
  version_type=linux
 
18774
  need_lib_prefix=no
 
18775
  need_version=no
 
18776
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18777
  soname_spec='${libname}${release}${shared_ext}$major'
 
18778
  shlibpath_var=LD_LIBRARY_PATH
 
18779
  hardcode_into_libs=yes
 
18780
  ;;
 
18781
 
 
18782
hpux9* | hpux10* | hpux11*)
 
18783
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18784
  # link against other versions.
 
18785
  version_type=sunos
 
18786
  need_lib_prefix=no
 
18787
  need_version=no
 
18788
  case $host_cpu in
 
18789
  ia64*)
 
18790
    shrext_cmds='.so'
 
18791
    hardcode_into_libs=yes
 
18792
    dynamic_linker="$host_os dld.so"
 
18793
    shlibpath_var=LD_LIBRARY_PATH
 
18794
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18795
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18796
    soname_spec='${libname}${release}${shared_ext}$major'
 
18797
    if test "X$HPUX_IA64_MODE" = X32; then
 
18798
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18799
    else
 
18800
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18801
    fi
 
18802
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18803
    ;;
 
18804
   hppa*64*)
 
18805
     shrext_cmds='.sl'
 
18806
     hardcode_into_libs=yes
 
18807
     dynamic_linker="$host_os dld.sl"
 
18808
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18809
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18810
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18811
     soname_spec='${libname}${release}${shared_ext}$major'
 
18812
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18813
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18814
     ;;
 
18815
   *)
 
18816
    shrext_cmds='.sl'
 
18817
    dynamic_linker="$host_os dld.sl"
 
18818
    shlibpath_var=SHLIB_PATH
 
18819
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18820
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18821
    soname_spec='${libname}${release}${shared_ext}$major'
 
18822
    ;;
 
18823
  esac
 
18824
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18825
  postinstall_cmds='chmod 555 $lib'
 
18826
  ;;
 
18827
 
 
18828
interix3*)
 
18829
  version_type=linux
 
18830
  need_lib_prefix=no
 
18831
  need_version=no
 
18832
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18833
  soname_spec='${libname}${release}${shared_ext}$major'
 
18834
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18835
  shlibpath_var=LD_LIBRARY_PATH
 
18836
  shlibpath_overrides_runpath=no
 
18837
  hardcode_into_libs=yes
 
18838
  ;;
 
18839
 
 
18840
irix5* | irix6* | nonstopux*)
 
18841
  case $host_os in
 
18842
    nonstopux*) version_type=nonstopux ;;
 
18843
    *)
 
18844
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18845
                version_type=linux
 
18846
        else
 
18847
                version_type=irix
 
18848
        fi ;;
 
18849
  esac
 
18850
  need_lib_prefix=no
 
18851
  need_version=no
 
18852
  soname_spec='${libname}${release}${shared_ext}$major'
 
18853
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18854
  case $host_os in
 
18855
  irix5* | nonstopux*)
 
18856
    libsuff= shlibsuff=
 
18857
    ;;
 
18858
  *)
 
18859
    case $LD in # libtool.m4 will add one of these switches to LD
 
18860
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18861
      libsuff= shlibsuff= libmagic=32-bit;;
 
18862
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18863
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18864
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18865
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18866
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18867
    esac
 
18868
    ;;
 
18869
  esac
 
18870
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18871
  shlibpath_overrides_runpath=no
 
18872
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18873
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18874
  hardcode_into_libs=yes
 
18875
  ;;
 
18876
 
 
18877
# No shared lib support for Linux oldld, aout, or coff.
 
18878
linux*oldld* | linux*aout* | linux*coff*)
 
18879
  dynamic_linker=no
 
18880
  ;;
 
18881
 
 
18882
# This must be Linux ELF.
 
18883
linux*)
 
18884
  version_type=linux
 
18885
  need_lib_prefix=no
 
18886
  need_version=no
 
18887
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18888
  soname_spec='${libname}${release}${shared_ext}$major'
 
18889
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18890
  shlibpath_var=LD_LIBRARY_PATH
 
18891
  shlibpath_overrides_runpath=no
 
18892
  # This implies no fast_install, which is unacceptable.
 
18893
  # Some rework will be needed to allow for fast_install
 
18894
  # before this can be enabled.
 
18895
  hardcode_into_libs=yes
 
18896
 
 
18897
  # find out which ABI we are using
 
18898
  libsuff=
 
18899
  case "$host_cpu" in
 
18900
  x86_64*|s390x*|powerpc64*)
 
18901
    echo '#line 18901 "configure"' > conftest.$ac_ext
 
18902
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18903
  (eval $ac_compile) 2>&5
 
18904
  ac_status=$?
 
18905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18906
  (exit $ac_status); }; then
 
18907
      case `/usr/bin/file conftest.$ac_objext` in
 
18908
      *64-bit*)
 
18909
        libsuff=64
 
18910
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
18911
        ;;
 
18912
      esac
 
18913
    fi
 
18914
    rm -rf conftest*
 
18915
    ;;
 
18916
  esac
 
18917
 
 
18918
  # Append ld.so.conf contents to the search path
 
18919
  if test -f /etc/ld.so.conf; then
 
18920
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18921
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
18922
  fi
 
18923
 
 
18924
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18925
  # powerpc, because MkLinux only supported shared libraries with the
 
18926
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18927
  # most powerpc-linux boxes support dynamic linking these days and
 
18928
  # people can always --disable-shared, the test was removed, and we
 
18929
  # assume the GNU/Linux dynamic linker is in use.
 
18930
  dynamic_linker='GNU/Linux ld.so'
 
18931
  ;;
 
18932
 
 
18933
knetbsd*-gnu)
 
18934
  version_type=linux
 
18935
  need_lib_prefix=no
 
18936
  need_version=no
 
18937
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18938
  soname_spec='${libname}${release}${shared_ext}$major'
 
18939
  shlibpath_var=LD_LIBRARY_PATH
 
18940
  shlibpath_overrides_runpath=no
 
18941
  hardcode_into_libs=yes
 
18942
  dynamic_linker='GNU ld.so'
 
18943
  ;;
 
18944
 
 
18945
netbsd*)
 
18946
  version_type=sunos
 
18947
  need_lib_prefix=no
 
18948
  need_version=no
 
18949
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18950
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18951
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18952
    dynamic_linker='NetBSD (a.out) ld.so'
 
18953
  else
 
18954
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18955
    soname_spec='${libname}${release}${shared_ext}$major'
 
18956
    dynamic_linker='NetBSD ld.elf_so'
 
18957
  fi
 
18958
  shlibpath_var=LD_LIBRARY_PATH
 
18959
  shlibpath_overrides_runpath=yes
 
18960
  hardcode_into_libs=yes
 
18961
  ;;
 
18962
 
 
18963
newsos6)
 
18964
  version_type=linux
 
18965
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18966
  shlibpath_var=LD_LIBRARY_PATH
 
18967
  shlibpath_overrides_runpath=yes
 
18968
  ;;
 
18969
 
 
18970
nto-qnx*)
 
18971
  version_type=linux
 
18972
  need_lib_prefix=no
 
18973
  need_version=no
 
18974
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18975
  soname_spec='${libname}${release}${shared_ext}$major'
 
18976
  shlibpath_var=LD_LIBRARY_PATH
 
18977
  shlibpath_overrides_runpath=yes
 
18978
  ;;
 
18979
 
 
18980
openbsd*)
 
18981
  version_type=sunos
 
18982
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18983
  need_lib_prefix=no
 
18984
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18985
  case $host_os in
 
18986
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18987
    *)                         need_version=no  ;;
 
18988
  esac
 
18989
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18990
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18991
  shlibpath_var=LD_LIBRARY_PATH
 
18992
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18993
    case $host_os in
 
18994
      openbsd2.[89] | openbsd2.[89].*)
 
18995
        shlibpath_overrides_runpath=no
 
18996
        ;;
 
18997
      *)
 
18998
        shlibpath_overrides_runpath=yes
 
18999
        ;;
 
19000
      esac
 
19001
  else
 
19002
    shlibpath_overrides_runpath=yes
 
19003
  fi
 
19004
  ;;
 
19005
 
 
19006
os2*)
 
19007
  libname_spec='$name'
 
19008
  shrext_cmds=".dll"
 
19009
  need_lib_prefix=no
 
19010
  library_names_spec='$libname${shared_ext} $libname.a'
 
19011
  dynamic_linker='OS/2 ld.exe'
 
19012
  shlibpath_var=LIBPATH
 
19013
  ;;
 
19014
 
 
19015
osf3* | osf4* | osf5*)
 
19016
  version_type=osf
 
19017
  need_lib_prefix=no
 
19018
  need_version=no
 
19019
  soname_spec='${libname}${release}${shared_ext}$major'
 
19020
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19021
  shlibpath_var=LD_LIBRARY_PATH
 
19022
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19023
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19024
  ;;
 
19025
 
 
19026
solaris*)
 
19027
  version_type=linux
 
19028
  need_lib_prefix=no
 
19029
  need_version=no
 
19030
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19031
  soname_spec='${libname}${release}${shared_ext}$major'
 
19032
  shlibpath_var=LD_LIBRARY_PATH
 
19033
  shlibpath_overrides_runpath=yes
 
19034
  hardcode_into_libs=yes
 
19035
  # ldd complains unless libraries are executable
 
19036
  postinstall_cmds='chmod +x $lib'
 
19037
  ;;
 
19038
 
 
19039
sunos4*)
 
19040
  version_type=sunos
 
19041
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19042
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19043
  shlibpath_var=LD_LIBRARY_PATH
 
19044
  shlibpath_overrides_runpath=yes
 
19045
  if test "$with_gnu_ld" = yes; then
 
19046
    need_lib_prefix=no
 
19047
  fi
 
19048
  need_version=yes
 
19049
  ;;
 
19050
 
 
19051
sysv4 | sysv4.3*)
 
19052
  version_type=linux
 
19053
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19054
  soname_spec='${libname}${release}${shared_ext}$major'
 
19055
  shlibpath_var=LD_LIBRARY_PATH
 
19056
  case $host_vendor in
 
19057
    sni)
 
19058
      shlibpath_overrides_runpath=no
 
19059
      need_lib_prefix=no
 
19060
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19061
      runpath_var=LD_RUN_PATH
 
19062
      ;;
 
19063
    siemens)
 
19064
      need_lib_prefix=no
 
19065
      ;;
 
19066
    motorola)
 
19067
      need_lib_prefix=no
 
19068
      need_version=no
 
19069
      shlibpath_overrides_runpath=no
 
19070
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19071
      ;;
 
19072
  esac
 
19073
  ;;
 
19074
 
 
19075
sysv4*MP*)
 
19076
  if test -d /usr/nec ;then
 
19077
    version_type=linux
 
19078
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19079
    soname_spec='$libname${shared_ext}.$major'
 
19080
    shlibpath_var=LD_LIBRARY_PATH
 
19081
  fi
 
19082
  ;;
 
19083
 
 
19084
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
19085
  version_type=freebsd-elf
 
19086
  need_lib_prefix=no
 
19087
  need_version=no
 
19088
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19089
  soname_spec='${libname}${release}${shared_ext}$major'
 
19090
  shlibpath_var=LD_LIBRARY_PATH
 
19091
  hardcode_into_libs=yes
 
19092
  if test "$with_gnu_ld" = yes; then
 
19093
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
19094
    shlibpath_overrides_runpath=no
 
19095
  else
 
19096
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
19097
    shlibpath_overrides_runpath=yes
 
19098
    case $host_os in
 
19099
      sco3.2v5*)
 
19100
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
19101
        ;;
 
19102
    esac
 
19103
  fi
 
19104
  sys_lib_dlsearch_path_spec='/usr/lib'
 
19105
  ;;
 
19106
 
 
19107
uts4*)
 
19108
  version_type=linux
 
19109
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19110
  soname_spec='${libname}${release}${shared_ext}$major'
 
19111
  shlibpath_var=LD_LIBRARY_PATH
 
19112
  ;;
 
19113
 
 
19114
*)
 
19115
  dynamic_linker=no
 
19116
  ;;
 
19117
esac
 
19118
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19119
echo "${ECHO_T}$dynamic_linker" >&6
 
19120
test "$dynamic_linker" = no && can_build_shared=no
 
19121
 
 
19122
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19123
if test "$GCC" = yes; then
 
19124
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19125
fi
 
19126
 
 
19127
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19128
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
19129
hardcode_action_GCJ=
 
19130
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19131
   test -n "$runpath_var_GCJ" || \
 
19132
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
19133
 
 
19134
  # We can hardcode non-existant directories.
 
19135
  if test "$hardcode_direct_GCJ" != no &&
 
19136
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19137
     # have to relink, otherwise we might link with an installed library
 
19138
     # when we should be linking with a yet-to-be-installed one
 
19139
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19140
     test "$hardcode_minus_L_GCJ" != no; then
 
19141
    # Linking always hardcodes the temporary library directory.
 
19142
    hardcode_action_GCJ=relink
 
19143
  else
 
19144
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19145
    hardcode_action_GCJ=immediate
 
19146
  fi
 
19147
else
 
19148
  # We cannot hardcode anything, or else we can only hardcode existing
 
19149
  # directories.
 
19150
  hardcode_action_GCJ=unsupported
 
19151
fi
 
19152
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
19153
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
19154
 
 
19155
if test "$hardcode_action_GCJ" = relink; then
 
19156
  # Fast installation is not supported
 
19157
  enable_fast_install=no
 
19158
elif test "$shlibpath_overrides_runpath" = yes ||
 
19159
     test "$enable_shared" = no; then
 
19160
  # Fast installation is not necessary
 
19161
  enable_fast_install=needless
 
19162
fi
 
19163
 
 
19164
 
 
19165
# The else clause should only fire when bootstrapping the
 
19166
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19167
# with your package, and you will get complaints that there are
 
19168
# no rules to generate ltmain.sh.
 
19169
if test -f "$ltmain"; then
 
19170
  # See if we are running on zsh, and set the options which allow our commands through
 
19171
  # without removal of \ escapes.
 
19172
  if test -n "${ZSH_VERSION+set}" ; then
 
19173
    setopt NO_GLOB_SUBST
 
19174
  fi
 
19175
  # Now quote all the things that may contain metacharacters while being
 
19176
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19177
  # variables and quote the copies for generation of the libtool script.
 
19178
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19179
    SED SHELL STRIP \
 
19180
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19181
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19182
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19183
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19184
    lt_cv_sys_global_symbol_to_c_name_address \
 
19185
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19186
    old_postinstall_cmds old_postuninstall_cmds \
 
19187
    compiler_GCJ \
 
19188
    CC_GCJ \
 
19189
    LD_GCJ \
 
19190
    lt_prog_compiler_wl_GCJ \
 
19191
    lt_prog_compiler_pic_GCJ \
 
19192
    lt_prog_compiler_static_GCJ \
 
19193
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19194
    export_dynamic_flag_spec_GCJ \
 
19195
    thread_safe_flag_spec_GCJ \
 
19196
    whole_archive_flag_spec_GCJ \
 
19197
    enable_shared_with_static_runtimes_GCJ \
 
19198
    old_archive_cmds_GCJ \
 
19199
    old_archive_from_new_cmds_GCJ \
 
19200
    predep_objects_GCJ \
 
19201
    postdep_objects_GCJ \
 
19202
    predeps_GCJ \
 
19203
    postdeps_GCJ \
 
19204
    compiler_lib_search_path_GCJ \
 
19205
    archive_cmds_GCJ \
 
19206
    archive_expsym_cmds_GCJ \
 
19207
    postinstall_cmds_GCJ \
 
19208
    postuninstall_cmds_GCJ \
 
19209
    old_archive_from_expsyms_cmds_GCJ \
 
19210
    allow_undefined_flag_GCJ \
 
19211
    no_undefined_flag_GCJ \
 
19212
    export_symbols_cmds_GCJ \
 
19213
    hardcode_libdir_flag_spec_GCJ \
 
19214
    hardcode_libdir_flag_spec_ld_GCJ \
 
19215
    hardcode_libdir_separator_GCJ \
 
19216
    hardcode_automatic_GCJ \
 
19217
    module_cmds_GCJ \
 
19218
    module_expsym_cmds_GCJ \
 
19219
    lt_cv_prog_compiler_c_o_GCJ \
 
19220
    exclude_expsyms_GCJ \
 
19221
    include_expsyms_GCJ; do
 
19222
 
 
19223
    case $var in
 
19224
    old_archive_cmds_GCJ | \
 
19225
    old_archive_from_new_cmds_GCJ | \
 
19226
    archive_cmds_GCJ | \
 
19227
    archive_expsym_cmds_GCJ | \
 
19228
    module_cmds_GCJ | \
 
19229
    module_expsym_cmds_GCJ | \
 
19230
    old_archive_from_expsyms_cmds_GCJ | \
 
19231
    export_symbols_cmds_GCJ | \
 
19232
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19233
    postinstall_cmds | postuninstall_cmds | \
 
19234
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19235
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19236
      # Double-quote double-evaled strings.
 
19237
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19238
      ;;
 
19239
    *)
 
19240
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19241
      ;;
 
19242
    esac
 
19243
  done
 
19244
 
 
19245
  case $lt_echo in
 
19246
  *'\$0 --fallback-echo"')
 
19247
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19248
    ;;
 
19249
  esac
 
19250
 
 
19251
cfgfile="$ofile"
 
19252
 
 
19253
  cat <<__EOF__ >> "$cfgfile"
 
19254
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19255
 
 
19256
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19257
 
 
19258
# Shell to use when invoking shell scripts.
 
19259
SHELL=$lt_SHELL
 
19260
 
 
19261
# Whether or not to build shared libraries.
 
19262
build_libtool_libs=$enable_shared
 
19263
 
 
19264
# Whether or not to build static libraries.
 
19265
build_old_libs=$enable_static
 
19266
 
 
19267
# Whether or not to add -lc for building shared libraries.
 
19268
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19269
 
 
19270
# Whether or not to disallow shared libs when runtime libs are static
 
19271
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19272
 
 
19273
# Whether or not to optimize for fast installation.
 
19274
fast_install=$enable_fast_install
 
19275
 
 
19276
# The host system.
 
19277
host_alias=$host_alias
 
19278
host=$host
 
19279
host_os=$host_os
 
19280
 
 
19281
# The build system.
 
19282
build_alias=$build_alias
 
19283
build=$build
 
19284
build_os=$build_os
 
19285
 
 
19286
# An echo program that does not interpret backslashes.
 
19287
echo=$lt_echo
 
19288
 
 
19289
# The archiver.
 
19290
AR=$lt_AR
 
19291
AR_FLAGS=$lt_AR_FLAGS
 
19292
 
 
19293
# A C compiler.
 
19294
LTCC=$lt_LTCC
 
19295
 
 
19296
# LTCC compiler flags.
 
19297
LTCFLAGS=$lt_LTCFLAGS
 
19298
 
 
19299
# A language-specific compiler.
 
19300
CC=$lt_compiler_GCJ
 
19301
 
 
19302
# Is the compiler the GNU C compiler?
 
19303
with_gcc=$GCC_GCJ
 
19304
 
 
19305
# An ERE matcher.
 
19306
EGREP=$lt_EGREP
 
19307
 
 
19308
# The linker used to build libraries.
 
19309
LD=$lt_LD_GCJ
 
19310
 
 
19311
# Whether we need hard or soft links.
 
19312
LN_S=$lt_LN_S
 
19313
 
 
19314
# A BSD-compatible nm program.
 
19315
NM=$lt_NM
 
19316
 
 
19317
# A symbol stripping program
 
19318
STRIP=$lt_STRIP
 
19319
 
 
19320
# Used to examine libraries when file_magic_cmd begins "file"
 
19321
MAGIC_CMD=$MAGIC_CMD
 
19322
 
 
19323
# Used on cygwin: DLL creation program.
 
19324
DLLTOOL="$DLLTOOL"
 
19325
 
 
19326
# Used on cygwin: object dumper.
 
19327
OBJDUMP="$OBJDUMP"
 
19328
 
 
19329
# Used on cygwin: assembler.
 
19330
AS="$AS"
 
19331
 
 
19332
# The name of the directory that contains temporary libtool files.
 
19333
objdir=$objdir
 
19334
 
 
19335
# How to create reloadable object files.
 
19336
reload_flag=$lt_reload_flag
 
19337
reload_cmds=$lt_reload_cmds
 
19338
 
 
19339
# How to pass a linker flag through the compiler.
 
19340
wl=$lt_lt_prog_compiler_wl_GCJ
 
19341
 
 
19342
# Object file suffix (normally "o").
 
19343
objext="$ac_objext"
 
19344
 
 
19345
# Old archive suffix (normally "a").
 
19346
libext="$libext"
 
19347
 
 
19348
# Shared library suffix (normally ".so").
 
19349
shrext_cmds='$shrext_cmds'
 
19350
 
 
19351
# Executable file suffix (normally "").
 
19352
exeext="$exeext"
 
19353
 
 
19354
# Additional compiler flags for building library objects.
 
19355
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19356
pic_mode=$pic_mode
 
19357
 
 
19358
# What is the maximum length of a command?
 
19359
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19360
 
 
19361
# Does compiler simultaneously support -c and -o options?
 
19362
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19363
 
 
19364
# Must we lock files when doing compilation?
 
19365
need_locks=$lt_need_locks
 
19366
 
 
19367
# Do we need the lib prefix for modules?
 
19368
need_lib_prefix=$need_lib_prefix
 
19369
 
 
19370
# Do we need a version for libraries?
 
19371
need_version=$need_version
 
19372
 
 
19373
# Whether dlopen is supported.
 
19374
dlopen_support=$enable_dlopen
 
19375
 
 
19376
# Whether dlopen of programs is supported.
 
19377
dlopen_self=$enable_dlopen_self
 
19378
 
 
19379
# Whether dlopen of statically linked programs is supported.
 
19380
dlopen_self_static=$enable_dlopen_self_static
 
19381
 
 
19382
# Compiler flag to prevent dynamic linking.
 
19383
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19384
 
 
19385
# Compiler flag to turn off builtin functions.
 
19386
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19387
 
 
19388
# Compiler flag to allow reflexive dlopens.
 
19389
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19390
 
 
19391
# Compiler flag to generate shared objects directly from archives.
 
19392
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19393
 
 
19394
# Compiler flag to generate thread-safe objects.
 
19395
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19396
 
 
19397
# Library versioning type.
 
19398
version_type=$version_type
 
19399
 
 
19400
# Format of library name prefix.
 
19401
libname_spec=$lt_libname_spec
 
19402
 
 
19403
# List of archive names.  First name is the real one, the rest are links.
 
19404
# The last name is the one that the linker finds with -lNAME.
 
19405
library_names_spec=$lt_library_names_spec
 
19406
 
 
19407
# The coded name of the library, if different from the real name.
 
19408
soname_spec=$lt_soname_spec
 
19409
 
 
19410
# Commands used to build and install an old-style archive.
 
19411
RANLIB=$lt_RANLIB
 
19412
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19413
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19414
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19415
 
 
19416
# Create an old-style archive from a shared archive.
 
19417
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19418
 
 
19419
# Create a temporary old-style archive to link instead of a shared archive.
 
19420
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19421
 
 
19422
# Commands used to build and install a shared archive.
 
19423
archive_cmds=$lt_archive_cmds_GCJ
 
19424
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19425
postinstall_cmds=$lt_postinstall_cmds
 
19426
postuninstall_cmds=$lt_postuninstall_cmds
 
19427
 
 
19428
# Commands used to build a loadable module (assumed same as above if empty)
 
19429
module_cmds=$lt_module_cmds_GCJ
 
19430
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19431
 
 
19432
# Commands to strip libraries.
 
19433
old_striplib=$lt_old_striplib
 
19434
striplib=$lt_striplib
 
19435
 
 
19436
# Dependencies to place before the objects being linked to create a
 
19437
# shared library.
 
19438
predep_objects=$lt_predep_objects_GCJ
 
19439
 
 
19440
# Dependencies to place after the objects being linked to create a
 
19441
# shared library.
 
19442
postdep_objects=$lt_postdep_objects_GCJ
 
19443
 
 
19444
# Dependencies to place before the objects being linked to create a
 
19445
# shared library.
 
19446
predeps=$lt_predeps_GCJ
 
19447
 
 
19448
# Dependencies to place after the objects being linked to create a
 
19449
# shared library.
 
19450
postdeps=$lt_postdeps_GCJ
 
19451
 
 
19452
# The library search path used internally by the compiler when linking
 
19453
# a shared library.
 
19454
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19455
 
 
19456
# Method to check whether dependent libraries are shared objects.
 
19457
deplibs_check_method=$lt_deplibs_check_method
 
19458
 
 
19459
# Command to use when deplibs_check_method == file_magic.
 
19460
file_magic_cmd=$lt_file_magic_cmd
 
19461
 
 
19462
# Flag that allows shared libraries with undefined symbols to be built.
 
19463
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19464
 
 
19465
# Flag that forces no undefined symbols.
 
19466
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19467
 
 
19468
# Commands used to finish a libtool library installation in a directory.
 
19469
finish_cmds=$lt_finish_cmds
 
19470
 
 
19471
# Same as above, but a single script fragment to be evaled but not shown.
 
19472
finish_eval=$lt_finish_eval
 
19473
 
 
19474
# Take the output of nm and produce a listing of raw symbols and C names.
 
19475
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19476
 
 
19477
# Transform the output of nm in a proper C declaration
 
19478
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19479
 
 
19480
# Transform the output of nm in a C name address pair
 
19481
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19482
 
 
19483
# This is the shared library runtime path variable.
 
19484
runpath_var=$runpath_var
 
19485
 
 
19486
# This is the shared library path variable.
 
19487
shlibpath_var=$shlibpath_var
 
19488
 
 
19489
# Is shlibpath searched before the hard-coded library search path?
 
19490
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19491
 
 
19492
# How to hardcode a shared library path into an executable.
 
19493
hardcode_action=$hardcode_action_GCJ
 
19494
 
 
19495
# Whether we should hardcode library paths into libraries.
 
19496
hardcode_into_libs=$hardcode_into_libs
 
19497
 
 
19498
# Flag to hardcode \$libdir into a binary during linking.
 
19499
# This must work even if \$libdir does not exist.
 
19500
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19501
 
 
19502
# If ld is used when linking, flag to hardcode \$libdir into
 
19503
# a binary during linking. This must work even if \$libdir does
 
19504
# not exist.
 
19505
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19506
 
 
19507
# Whether we need a single -rpath flag with a separated argument.
 
19508
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19509
 
 
19510
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19511
# resulting binary.
 
19512
hardcode_direct=$hardcode_direct_GCJ
 
19513
 
 
19514
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19515
# resulting binary.
 
19516
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19517
 
 
19518
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19519
# the resulting binary.
 
19520
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19521
 
 
19522
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19523
# and all subsequent libraries and executables linked against it.
 
19524
hardcode_automatic=$hardcode_automatic_GCJ
 
19525
 
 
19526
# Variables whose values should be saved in libtool wrapper scripts and
 
19527
# restored at relink time.
 
19528
variables_saved_for_relink="$variables_saved_for_relink"
 
19529
 
 
19530
# Whether libtool must link a program against all its dependency libraries.
 
19531
link_all_deplibs=$link_all_deplibs_GCJ
 
19532
 
 
19533
# Compile-time system search path for libraries
 
19534
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19535
 
 
19536
# Run-time system search path for libraries
 
19537
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19538
 
 
19539
# Fix the shell variable \$srcfile for the compiler.
 
19540
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19541
 
 
19542
# Set to yes if exported symbols are required.
 
19543
always_export_symbols=$always_export_symbols_GCJ
 
19544
 
 
19545
# The commands to list exported symbols.
 
19546
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19547
 
 
19548
# The commands to extract the exported symbol list from a shared archive.
 
19549
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19550
 
 
19551
# Symbols that should not be listed in the preloaded symbols.
 
19552
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19553
 
 
19554
# Symbols that must always be exported.
 
19555
include_expsyms=$lt_include_expsyms_GCJ
 
19556
 
 
19557
# ### END LIBTOOL TAG CONFIG: $tagname
 
19558
 
 
19559
__EOF__
 
19560
 
 
19561
 
 
19562
else
 
19563
  # If there is no Makefile yet, we rely on a make rule to execute
 
19564
  # `config.status --recheck' to rerun these tests and create the
 
19565
  # libtool script then.
 
19566
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19567
  if test -f "$ltmain_in"; then
 
19568
    test -f Makefile && make "$ltmain"
 
19569
  fi
 
19570
fi
 
19571
 
 
19572
 
 
19573
ac_ext=c
 
19574
ac_cpp='$CPP $CPPFLAGS'
 
19575
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19576
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19577
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19578
 
 
19579
CC="$lt_save_CC"
 
19580
 
 
19581
        else
 
19582
          tagname=""
 
19583
        fi
 
19584
        ;;
 
19585
 
 
19586
      RC)
 
19587
 
 
19588
 
 
19589
 
 
19590
# Source file extension for RC test sources.
 
19591
ac_ext=rc
 
19592
 
 
19593
# Object file extension for compiled RC test sources.
 
19594
objext=o
 
19595
objext_RC=$objext
 
19596
 
 
19597
# Code to be used in simple compile tests
 
19598
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19599
 
 
19600
# Code to be used in simple link tests
 
19601
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19602
 
 
19603
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19604
 
 
19605
# If no C compiler was specified, use CC.
 
19606
LTCC=${LTCC-"$CC"}
 
19607
 
 
19608
# If no C compiler flags were specified, use CFLAGS.
 
19609
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19610
 
 
19611
# Allow CC to be a program name with arguments.
 
19612
compiler=$CC
 
19613
 
 
19614
 
 
19615
# save warnings/boilerplate of simple test code
 
19616
ac_outfile=conftest.$ac_objext
 
19617
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19618
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19619
_lt_compiler_boilerplate=`cat conftest.err`
 
19620
$rm conftest*
 
19621
 
 
19622
ac_outfile=conftest.$ac_objext
 
19623
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19624
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19625
_lt_linker_boilerplate=`cat conftest.err`
 
19626
$rm conftest*
 
19627
 
 
19628
 
 
19629
# Allow CC to be a program name with arguments.
 
19630
lt_save_CC="$CC"
 
19631
CC=${RC-"windres"}
 
19632
compiler=$CC
 
19633
compiler_RC=$CC
 
19634
for cc_temp in $compiler""; do
 
19635
  case $cc_temp in
 
19636
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19637
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19638
    \-*) ;;
 
19639
    *) break;;
 
19640
  esac
 
19641
done
 
19642
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19643
 
 
19644
lt_cv_prog_compiler_c_o_RC=yes
 
19645
 
 
19646
# The else clause should only fire when bootstrapping the
 
19647
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19648
# with your package, and you will get complaints that there are
 
19649
# no rules to generate ltmain.sh.
 
19650
if test -f "$ltmain"; then
 
19651
  # See if we are running on zsh, and set the options which allow our commands through
 
19652
  # without removal of \ escapes.
 
19653
  if test -n "${ZSH_VERSION+set}" ; then
 
19654
    setopt NO_GLOB_SUBST
 
19655
  fi
 
19656
  # Now quote all the things that may contain metacharacters while being
 
19657
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19658
  # variables and quote the copies for generation of the libtool script.
 
19659
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19660
    SED SHELL STRIP \
 
19661
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19662
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19663
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19664
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19665
    lt_cv_sys_global_symbol_to_c_name_address \
 
19666
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19667
    old_postinstall_cmds old_postuninstall_cmds \
 
19668
    compiler_RC \
 
19669
    CC_RC \
 
19670
    LD_RC \
 
19671
    lt_prog_compiler_wl_RC \
 
19672
    lt_prog_compiler_pic_RC \
 
19673
    lt_prog_compiler_static_RC \
 
19674
    lt_prog_compiler_no_builtin_flag_RC \
 
19675
    export_dynamic_flag_spec_RC \
 
19676
    thread_safe_flag_spec_RC \
 
19677
    whole_archive_flag_spec_RC \
 
19678
    enable_shared_with_static_runtimes_RC \
 
19679
    old_archive_cmds_RC \
 
19680
    old_archive_from_new_cmds_RC \
 
19681
    predep_objects_RC \
 
19682
    postdep_objects_RC \
 
19683
    predeps_RC \
 
19684
    postdeps_RC \
 
19685
    compiler_lib_search_path_RC \
 
19686
    archive_cmds_RC \
 
19687
    archive_expsym_cmds_RC \
 
19688
    postinstall_cmds_RC \
 
19689
    postuninstall_cmds_RC \
 
19690
    old_archive_from_expsyms_cmds_RC \
 
19691
    allow_undefined_flag_RC \
 
19692
    no_undefined_flag_RC \
 
19693
    export_symbols_cmds_RC \
 
19694
    hardcode_libdir_flag_spec_RC \
 
19695
    hardcode_libdir_flag_spec_ld_RC \
 
19696
    hardcode_libdir_separator_RC \
 
19697
    hardcode_automatic_RC \
 
19698
    module_cmds_RC \
 
19699
    module_expsym_cmds_RC \
 
19700
    lt_cv_prog_compiler_c_o_RC \
 
19701
    exclude_expsyms_RC \
 
19702
    include_expsyms_RC; do
 
19703
 
 
19704
    case $var in
 
19705
    old_archive_cmds_RC | \
 
19706
    old_archive_from_new_cmds_RC | \
 
19707
    archive_cmds_RC | \
 
19708
    archive_expsym_cmds_RC | \
 
19709
    module_cmds_RC | \
 
19710
    module_expsym_cmds_RC | \
 
19711
    old_archive_from_expsyms_cmds_RC | \
 
19712
    export_symbols_cmds_RC | \
 
19713
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19714
    postinstall_cmds | postuninstall_cmds | \
 
19715
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19716
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19717
      # Double-quote double-evaled strings.
 
19718
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19719
      ;;
 
19720
    *)
 
19721
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19722
      ;;
 
19723
    esac
 
19724
  done
 
19725
 
 
19726
  case $lt_echo in
 
19727
  *'\$0 --fallback-echo"')
 
19728
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19729
    ;;
 
19730
  esac
 
19731
 
 
19732
cfgfile="$ofile"
 
19733
 
 
19734
  cat <<__EOF__ >> "$cfgfile"
 
19735
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19736
 
 
19737
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19738
 
 
19739
# Shell to use when invoking shell scripts.
 
19740
SHELL=$lt_SHELL
 
19741
 
 
19742
# Whether or not to build shared libraries.
 
19743
build_libtool_libs=$enable_shared
 
19744
 
 
19745
# Whether or not to build static libraries.
 
19746
build_old_libs=$enable_static
 
19747
 
 
19748
# Whether or not to add -lc for building shared libraries.
 
19749
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19750
 
 
19751
# Whether or not to disallow shared libs when runtime libs are static
 
19752
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19753
 
 
19754
# Whether or not to optimize for fast installation.
 
19755
fast_install=$enable_fast_install
 
19756
 
 
19757
# The host system.
 
19758
host_alias=$host_alias
 
19759
host=$host
 
19760
host_os=$host_os
 
19761
 
 
19762
# The build system.
 
19763
build_alias=$build_alias
 
19764
build=$build
 
19765
build_os=$build_os
 
19766
 
 
19767
# An echo program that does not interpret backslashes.
 
19768
echo=$lt_echo
 
19769
 
 
19770
# The archiver.
 
19771
AR=$lt_AR
 
19772
AR_FLAGS=$lt_AR_FLAGS
 
19773
 
 
19774
# A C compiler.
 
19775
LTCC=$lt_LTCC
 
19776
 
 
19777
# LTCC compiler flags.
 
19778
LTCFLAGS=$lt_LTCFLAGS
 
19779
 
 
19780
# A language-specific compiler.
 
19781
CC=$lt_compiler_RC
 
19782
 
 
19783
# Is the compiler the GNU C compiler?
 
19784
with_gcc=$GCC_RC
 
19785
 
 
19786
# An ERE matcher.
 
19787
EGREP=$lt_EGREP
 
19788
 
 
19789
# The linker used to build libraries.
 
19790
LD=$lt_LD_RC
 
19791
 
 
19792
# Whether we need hard or soft links.
 
19793
LN_S=$lt_LN_S
 
19794
 
 
19795
# A BSD-compatible nm program.
 
19796
NM=$lt_NM
 
19797
 
 
19798
# A symbol stripping program
 
19799
STRIP=$lt_STRIP
 
19800
 
 
19801
# Used to examine libraries when file_magic_cmd begins "file"
 
19802
MAGIC_CMD=$MAGIC_CMD
 
19803
 
 
19804
# Used on cygwin: DLL creation program.
 
19805
DLLTOOL="$DLLTOOL"
 
19806
 
 
19807
# Used on cygwin: object dumper.
 
19808
OBJDUMP="$OBJDUMP"
 
19809
 
 
19810
# Used on cygwin: assembler.
 
19811
AS="$AS"
 
19812
 
 
19813
# The name of the directory that contains temporary libtool files.
 
19814
objdir=$objdir
 
19815
 
 
19816
# How to create reloadable object files.
 
19817
reload_flag=$lt_reload_flag
 
19818
reload_cmds=$lt_reload_cmds
 
19819
 
 
19820
# How to pass a linker flag through the compiler.
 
19821
wl=$lt_lt_prog_compiler_wl_RC
 
19822
 
 
19823
# Object file suffix (normally "o").
 
19824
objext="$ac_objext"
 
19825
 
 
19826
# Old archive suffix (normally "a").
 
19827
libext="$libext"
 
19828
 
 
19829
# Shared library suffix (normally ".so").
 
19830
shrext_cmds='$shrext_cmds'
 
19831
 
 
19832
# Executable file suffix (normally "").
 
19833
exeext="$exeext"
 
19834
 
 
19835
# Additional compiler flags for building library objects.
 
19836
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19837
pic_mode=$pic_mode
 
19838
 
 
19839
# What is the maximum length of a command?
 
19840
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19841
 
 
19842
# Does compiler simultaneously support -c and -o options?
 
19843
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19844
 
 
19845
# Must we lock files when doing compilation?
 
19846
need_locks=$lt_need_locks
 
19847
 
 
19848
# Do we need the lib prefix for modules?
 
19849
need_lib_prefix=$need_lib_prefix
 
19850
 
 
19851
# Do we need a version for libraries?
 
19852
need_version=$need_version
 
19853
 
 
19854
# Whether dlopen is supported.
 
19855
dlopen_support=$enable_dlopen
 
19856
 
 
19857
# Whether dlopen of programs is supported.
 
19858
dlopen_self=$enable_dlopen_self
 
19859
 
 
19860
# Whether dlopen of statically linked programs is supported.
 
19861
dlopen_self_static=$enable_dlopen_self_static
 
19862
 
 
19863
# Compiler flag to prevent dynamic linking.
 
19864
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19865
 
 
19866
# Compiler flag to turn off builtin functions.
 
19867
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19868
 
 
19869
# Compiler flag to allow reflexive dlopens.
 
19870
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19871
 
 
19872
# Compiler flag to generate shared objects directly from archives.
 
19873
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19874
 
 
19875
# Compiler flag to generate thread-safe objects.
 
19876
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19877
 
 
19878
# Library versioning type.
 
19879
version_type=$version_type
 
19880
 
 
19881
# Format of library name prefix.
 
19882
libname_spec=$lt_libname_spec
 
19883
 
 
19884
# List of archive names.  First name is the real one, the rest are links.
 
19885
# The last name is the one that the linker finds with -lNAME.
 
19886
library_names_spec=$lt_library_names_spec
 
19887
 
 
19888
# The coded name of the library, if different from the real name.
 
19889
soname_spec=$lt_soname_spec
 
19890
 
 
19891
# Commands used to build and install an old-style archive.
 
19892
RANLIB=$lt_RANLIB
 
19893
old_archive_cmds=$lt_old_archive_cmds_RC
 
19894
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19895
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19896
 
 
19897
# Create an old-style archive from a shared archive.
 
19898
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19899
 
 
19900
# Create a temporary old-style archive to link instead of a shared archive.
 
19901
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19902
 
 
19903
# Commands used to build and install a shared archive.
 
19904
archive_cmds=$lt_archive_cmds_RC
 
19905
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19906
postinstall_cmds=$lt_postinstall_cmds
 
19907
postuninstall_cmds=$lt_postuninstall_cmds
 
19908
 
 
19909
# Commands used to build a loadable module (assumed same as above if empty)
 
19910
module_cmds=$lt_module_cmds_RC
 
19911
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19912
 
 
19913
# Commands to strip libraries.
 
19914
old_striplib=$lt_old_striplib
 
19915
striplib=$lt_striplib
 
19916
 
 
19917
# Dependencies to place before the objects being linked to create a
 
19918
# shared library.
 
19919
predep_objects=$lt_predep_objects_RC
 
19920
 
 
19921
# Dependencies to place after the objects being linked to create a
 
19922
# shared library.
 
19923
postdep_objects=$lt_postdep_objects_RC
 
19924
 
 
19925
# Dependencies to place before the objects being linked to create a
 
19926
# shared library.
 
19927
predeps=$lt_predeps_RC
 
19928
 
 
19929
# Dependencies to place after the objects being linked to create a
 
19930
# shared library.
 
19931
postdeps=$lt_postdeps_RC
 
19932
 
 
19933
# The library search path used internally by the compiler when linking
 
19934
# a shared library.
 
19935
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19936
 
 
19937
# Method to check whether dependent libraries are shared objects.
 
19938
deplibs_check_method=$lt_deplibs_check_method
 
19939
 
 
19940
# Command to use when deplibs_check_method == file_magic.
 
19941
file_magic_cmd=$lt_file_magic_cmd
 
19942
 
 
19943
# Flag that allows shared libraries with undefined symbols to be built.
 
19944
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19945
 
 
19946
# Flag that forces no undefined symbols.
 
19947
no_undefined_flag=$lt_no_undefined_flag_RC
 
19948
 
 
19949
# Commands used to finish a libtool library installation in a directory.
 
19950
finish_cmds=$lt_finish_cmds
 
19951
 
 
19952
# Same as above, but a single script fragment to be evaled but not shown.
 
19953
finish_eval=$lt_finish_eval
 
19954
 
 
19955
# Take the output of nm and produce a listing of raw symbols and C names.
 
19956
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19957
 
 
19958
# Transform the output of nm in a proper C declaration
 
19959
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19960
 
 
19961
# Transform the output of nm in a C name address pair
 
19962
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19963
 
 
19964
# This is the shared library runtime path variable.
 
19965
runpath_var=$runpath_var
 
19966
 
 
19967
# This is the shared library path variable.
 
19968
shlibpath_var=$shlibpath_var
 
19969
 
 
19970
# Is shlibpath searched before the hard-coded library search path?
 
19971
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19972
 
 
19973
# How to hardcode a shared library path into an executable.
 
19974
hardcode_action=$hardcode_action_RC
 
19975
 
 
19976
# Whether we should hardcode library paths into libraries.
 
19977
hardcode_into_libs=$hardcode_into_libs
 
19978
 
 
19979
# Flag to hardcode \$libdir into a binary during linking.
 
19980
# This must work even if \$libdir does not exist.
 
19981
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19982
 
 
19983
# If ld is used when linking, flag to hardcode \$libdir into
 
19984
# a binary during linking. This must work even if \$libdir does
 
19985
# not exist.
 
19986
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19987
 
 
19988
# Whether we need a single -rpath flag with a separated argument.
 
19989
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19990
 
 
19991
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19992
# resulting binary.
 
19993
hardcode_direct=$hardcode_direct_RC
 
19994
 
 
19995
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19996
# resulting binary.
 
19997
hardcode_minus_L=$hardcode_minus_L_RC
 
19998
 
 
19999
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20000
# the resulting binary.
 
20001
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
20002
 
 
20003
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20004
# and all subsequent libraries and executables linked against it.
 
20005
hardcode_automatic=$hardcode_automatic_RC
 
20006
 
 
20007
# Variables whose values should be saved in libtool wrapper scripts and
 
20008
# restored at relink time.
 
20009
variables_saved_for_relink="$variables_saved_for_relink"
 
20010
 
 
20011
# Whether libtool must link a program against all its dependency libraries.
 
20012
link_all_deplibs=$link_all_deplibs_RC
 
20013
 
 
20014
# Compile-time system search path for libraries
 
20015
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20016
 
 
20017
# Run-time system search path for libraries
 
20018
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20019
 
 
20020
# Fix the shell variable \$srcfile for the compiler.
 
20021
fix_srcfile_path="$fix_srcfile_path_RC"
 
20022
 
 
20023
# Set to yes if exported symbols are required.
 
20024
always_export_symbols=$always_export_symbols_RC
 
20025
 
 
20026
# The commands to list exported symbols.
 
20027
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20028
 
 
20029
# The commands to extract the exported symbol list from a shared archive.
 
20030
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20031
 
 
20032
# Symbols that should not be listed in the preloaded symbols.
 
20033
exclude_expsyms=$lt_exclude_expsyms_RC
 
20034
 
 
20035
# Symbols that must always be exported.
 
20036
include_expsyms=$lt_include_expsyms_RC
 
20037
 
 
20038
# ### END LIBTOOL TAG CONFIG: $tagname
 
20039
 
 
20040
__EOF__
 
20041
 
 
20042
 
 
20043
else
 
20044
  # If there is no Makefile yet, we rely on a make rule to execute
 
20045
  # `config.status --recheck' to rerun these tests and create the
 
20046
  # libtool script then.
 
20047
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20048
  if test -f "$ltmain_in"; then
 
20049
    test -f Makefile && make "$ltmain"
 
20050
  fi
 
20051
fi
 
20052
 
 
20053
 
 
20054
ac_ext=c
 
20055
ac_cpp='$CPP $CPPFLAGS'
 
20056
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20057
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20058
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20059
 
 
20060
CC="$lt_save_CC"
 
20061
 
 
20062
        ;;
 
20063
 
 
20064
      *)
 
20065
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20066
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20067
   { (exit 1); exit 1; }; }
 
20068
        ;;
 
20069
      esac
 
20070
 
 
20071
      # Append the new tag name to the list of available tags.
 
20072
      if test -n "$tagname" ; then
 
20073
      available_tags="$available_tags $tagname"
 
20074
    fi
 
20075
    fi
 
20076
  done
 
20077
  IFS="$lt_save_ifs"
 
20078
 
 
20079
  # Now substitute the updated list of available tags.
 
20080
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20081
    mv "${ofile}T" "$ofile"
 
20082
    chmod +x "$ofile"
 
20083
  else
 
20084
    rm -f "${ofile}T"
 
20085
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20086
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20087
   { (exit 1); exit 1; }; }
 
20088
  fi
 
20089
fi
 
20090
 
 
20091
 
 
20092
 
 
20093
# This can be used to rebuild libtool when needed
 
20094
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20095
 
 
20096
# Always use our own libtool.
 
20097
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
20098
 
 
20099
# Prevent multiple expansion
 
20100
 
 
20101
 
 
20102
 
 
20103
 
 
20104
 
 
20105
 
 
20106
 
 
20107
 
 
20108
 
 
20109
 
 
20110
 
 
20111
 
 
20112
 
 
20113
 
 
20114
 
 
20115
 
 
20116
 
 
20117
 
 
20118
 
 
20119
 
 
20120
 
 
20121
# Ensure that we have --preserve-dup-deps defines, otherwise we get link
 
20122
# problems of 'mysql' with CXX=g++
 
20123
LIBTOOL="$LIBTOOL --preserve-dup-deps"
 
20124
 
 
20125
 
 
20126
# NM= "$NM -X64"
 
20127
#archive_expsym_cmds= `echo "$archive_expsym_cmds" | sed -e '/"$(CC)"//'`
 
20128
#archive_expsym_cmds= "$CC -q64 $archive_expsym_cmds"
 
20129
#  CXXFLAGS=`echo "$CXXFLAGS -Werror" | sed -e 's/-fbranch-probabilities//; s/-Wall//; s/-ansi//; s/-pedantic//; s/-Wcheck//'`
 
20130
 
 
20131
#AC_LIBTOOL_DLOPEN AC_LIBTOOL_WIN32_DLL AC_DISABLE_FAST_INSTALL AC_DISABLE_SHARED AC_DISABLE_STATIC
 
20132
 
 
20133
# AC_PROG_INSTALL
 
20134
# Find a good install program.  We prefer a C program (faster),
 
20135
# so one script is as good as another.  But avoid the broken or
 
20136
# incompatible versions:
 
20137
# SysV /etc/install, /usr/sbin/install
 
20138
# SunOS /usr/etc/install
 
20139
# IRIX /sbin/install
 
20140
# AIX /bin/install
 
20141
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
20142
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
20143
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
20144
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
20145
# OS/2's system install, which has a completely different semantic
 
20146
# ./install, which can be erroneously created by make from ./install.sh.
 
20147
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
20148
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
20149
if test -z "$INSTALL"; then
 
20150
if test "${ac_cv_path_install+set}" = set; then
 
20151
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20152
else
 
20153
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20154
for as_dir in $PATH
 
20155
do
 
20156
  IFS=$as_save_IFS
 
20157
  test -z "$as_dir" && as_dir=.
 
20158
  # Account for people who put trailing slashes in PATH elements.
 
20159
case $as_dir/ in
 
20160
  ./ | .// | /cC/* | \
 
20161
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
20162
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
20163
  /usr/ucb/* ) ;;
 
20164
  *)
 
20165
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
20166
    # Don't use installbsd from OSF since it installs stuff as root
 
20167
    # by default.
 
20168
    for ac_prog in ginstall scoinst install; do
 
20169
      for ac_exec_ext in '' $ac_executable_extensions; do
 
20170
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
20171
          if test $ac_prog = install &&
 
20172
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
20173
            # AIX install.  It has an incompatible calling convention.
 
20174
            :
 
20175
          elif test $ac_prog = install &&
 
20176
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
20177
            # program-specific install script used by HP pwplus--don't use.
 
20178
            :
 
20179
          else
 
20180
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
20181
            break 3
 
20182
          fi
 
20183
        fi
 
20184
      done
 
20185
    done
 
20186
    ;;
 
20187
esac
 
20188
done
 
20189
 
 
20190
 
 
20191
fi
 
20192
  if test "${ac_cv_path_install+set}" = set; then
 
20193
    INSTALL=$ac_cv_path_install
 
20194
  else
 
20195
    # As a last resort, use the slow shell script.  We don't cache a
 
20196
    # path for INSTALL within a source directory, because that will
 
20197
    # break other packages using the cache if that directory is
 
20198
    # removed, or if the path is relative.
 
20199
    INSTALL=$ac_install_sh
 
20200
  fi
 
20201
fi
 
20202
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
20203
echo "${ECHO_T}$INSTALL" >&6
 
20204
 
 
20205
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
20206
# It thinks the first close brace ends the variable substitution.
 
20207
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
20208
 
 
20209
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
20210
 
 
20211
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
20212
 
 
20213
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
20214
 
 
20215
# Not critical since the generated file is distributed
 
20216
for ac_prog in 'bison -y -p MYSQL'
 
20217
do
 
20218
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
20219
set dummy $ac_prog; ac_word=$2
 
20220
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20221
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20222
if test "${ac_cv_prog_YACC+set}" = set; then
 
20223
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20224
else
 
20225
  if test -n "$YACC"; then
 
20226
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
20227
else
 
20228
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20229
for as_dir in $PATH
 
20230
do
 
20231
  IFS=$as_save_IFS
 
20232
  test -z "$as_dir" && as_dir=.
 
20233
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20234
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20235
    ac_cv_prog_YACC="$ac_prog"
 
20236
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20237
    break 2
 
20238
  fi
 
20239
done
 
20240
done
 
20241
 
 
20242
fi
 
20243
fi
 
20244
YACC=$ac_cv_prog_YACC
 
20245
if test -n "$YACC"; then
 
20246
  echo "$as_me:$LINENO: result: $YACC" >&5
 
20247
echo "${ECHO_T}$YACC" >&6
 
20248
else
 
20249
  echo "$as_me:$LINENO: result: no" >&5
 
20250
echo "${ECHO_T}no" >&6
 
20251
fi
 
20252
 
 
20253
  test -n "$YACC" && break
 
20254
done
 
20255
 
 
20256
# Extract the first word of "pdftex", so it can be a program name with args.
 
20257
set dummy pdftex; ac_word=$2
 
20258
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20259
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20260
if test "${ac_cv_prog_PDFMANUAL+set}" = set; then
 
20261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20262
else
 
20263
  if test -n "$PDFMANUAL"; then
 
20264
  ac_cv_prog_PDFMANUAL="$PDFMANUAL" # Let the user override the test.
 
20265
else
 
20266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20267
for as_dir in $PATH
 
20268
do
 
20269
  IFS=$as_save_IFS
 
20270
  test -z "$as_dir" && as_dir=.
 
20271
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20272
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20273
    ac_cv_prog_PDFMANUAL="manual.pdf"
 
20274
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20275
    break 2
 
20276
  fi
 
20277
done
 
20278
done
 
20279
 
 
20280
fi
 
20281
fi
 
20282
PDFMANUAL=$ac_cv_prog_PDFMANUAL
 
20283
if test -n "$PDFMANUAL"; then
 
20284
  echo "$as_me:$LINENO: result: $PDFMANUAL" >&5
 
20285
echo "${ECHO_T}$PDFMANUAL" >&6
 
20286
else
 
20287
  echo "$as_me:$LINENO: result: no" >&5
 
20288
echo "${ECHO_T}no" >&6
 
20289
fi
 
20290
 
 
20291
# Extract the first word of "tex", so it can be a program name with args.
 
20292
set dummy tex; ac_word=$2
 
20293
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20294
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20295
if test "${ac_cv_prog_DVIS+set}" = set; then
 
20296
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20297
else
 
20298
  if test -n "$DVIS"; then
 
20299
  ac_cv_prog_DVIS="$DVIS" # Let the user override the test.
 
20300
else
 
20301
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20302
for as_dir in $PATH
 
20303
do
 
20304
  IFS=$as_save_IFS
 
20305
  test -z "$as_dir" && as_dir=.
 
20306
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20307
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20308
    ac_cv_prog_DVIS="manual.dvi"
 
20309
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20310
    break 2
 
20311
  fi
 
20312
done
 
20313
done
 
20314
 
 
20315
fi
 
20316
fi
 
20317
DVIS=$ac_cv_prog_DVIS
 
20318
if test -n "$DVIS"; then
 
20319
  echo "$as_me:$LINENO: result: $DVIS" >&5
 
20320
echo "${ECHO_T}$DVIS" >&6
 
20321
else
 
20322
  echo "$as_me:$LINENO: result: no" >&5
 
20323
echo "${ECHO_T}no" >&6
 
20324
fi
 
20325
 
 
20326
 
 
20327
echo "$as_me:$LINENO: checking \"return type of sprintf\"" >&5
 
20328
echo $ECHO_N "checking \"return type of sprintf\"... $ECHO_C" >&6
 
20329
 
 
20330
#check the return type of sprintf
 
20331
case $SYSTEM_TYPE in
 
20332
  *netware*)
 
20333
    cat >>confdefs.h <<\_ACEOF
 
20334
#define SPRINTF_RETURNS_INT 1
 
20335
_ACEOF
 
20336
 echo "$as_me:$LINENO: result: \"int\"" >&5
 
20337
echo "${ECHO_T}\"int\"" >&6
 
20338
    ;;
 
20339
  *)
 
20340
if test "$cross_compiling" = yes; then
 
20341
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
20342
See \`config.log' for more details." >&5
 
20343
echo "$as_me: error: cannot run test program while cross compiling
 
20344
See \`config.log' for more details." >&2;}
 
20345
   { (exit 1); exit 1; }; }
 
20346
else
 
20347
  cat >conftest.$ac_ext <<_ACEOF
 
20348
/* confdefs.h.  */
 
20349
_ACEOF
 
20350
cat confdefs.h >>conftest.$ac_ext
 
20351
cat >>conftest.$ac_ext <<_ACEOF
 
20352
/* end confdefs.h.  */
 
20353
 
 
20354
  int main()
 
20355
    {
 
20356
      char* s = "hello";
 
20357
      char buf[6];
 
20358
      if((int)sprintf(buf, s) == strlen(s))
 
20359
        return 0;
 
20360
 
 
20361
      return -1;
 
20362
     }
 
20363
 
 
20364
_ACEOF
 
20365
rm -f conftest$ac_exeext
 
20366
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20367
  (eval $ac_link) 2>&5
 
20368
  ac_status=$?
 
20369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20370
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20372
  (eval $ac_try) 2>&5
 
20373
  ac_status=$?
 
20374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20375
  (exit $ac_status); }; }; then
 
20376
 
 
20377
cat >>confdefs.h <<\_ACEOF
 
20378
#define SPRINTF_RETURNS_INT 1
 
20379
_ACEOF
 
20380
 
 
20381
   echo "$as_me:$LINENO: result: \"int\"" >&5
 
20382
echo "${ECHO_T}\"int\"" >&6
 
20383
else
 
20384
  echo "$as_me: program exited with status $ac_status" >&5
 
20385
echo "$as_me: failed program was:" >&5
 
20386
sed 's/^/| /' conftest.$ac_ext >&5
 
20387
 
 
20388
( exit $ac_status )
 
20389
if test "$cross_compiling" = yes; then
 
20390
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
20391
See \`config.log' for more details." >&5
 
20392
echo "$as_me: error: cannot run test program while cross compiling
 
20393
See \`config.log' for more details." >&2;}
 
20394
   { (exit 1); exit 1; }; }
 
20395
else
 
20396
  cat >conftest.$ac_ext <<_ACEOF
 
20397
/* confdefs.h.  */
 
20398
_ACEOF
 
20399
cat confdefs.h >>conftest.$ac_ext
 
20400
cat >>conftest.$ac_ext <<_ACEOF
 
20401
/* end confdefs.h.  */
 
20402
 
 
20403
 int main()
 
20404
   {
 
20405
     char* s = "hello";
 
20406
     char buf[6];
 
20407
     if((char*)sprintf(buf,s) == buf + strlen(s))
 
20408
       return 0;
 
20409
     return -1;
 
20410
   }
 
20411
_ACEOF
 
20412
rm -f conftest$ac_exeext
 
20413
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20414
  (eval $ac_link) 2>&5
 
20415
  ac_status=$?
 
20416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20417
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20419
  (eval $ac_try) 2>&5
 
20420
  ac_status=$?
 
20421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20422
  (exit $ac_status); }; }; then
 
20423
 
 
20424
cat >>confdefs.h <<\_ACEOF
 
20425
#define SPRINTF_RETURNS_PTR 1
 
20426
_ACEOF
 
20427
 
 
20428
                echo "$as_me:$LINENO: result: \"ptr\"" >&5
 
20429
echo "${ECHO_T}\"ptr\"" >&6
 
20430
else
 
20431
  echo "$as_me: program exited with status $ac_status" >&5
 
20432
echo "$as_me: failed program was:" >&5
 
20433
sed 's/^/| /' conftest.$ac_ext >&5
 
20434
 
 
20435
( exit $ac_status )
 
20436
 
 
20437
cat >>confdefs.h <<\_ACEOF
 
20438
#define SPRINTF_RETURNS_GARBAGE 1
 
20439
_ACEOF
 
20440
 
 
20441
                echo "$as_me:$LINENO: result: \"garbage\"" >&5
 
20442
echo "${ECHO_T}\"garbage\"" >&6
 
20443
fi
 
20444
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20445
fi
 
20446
 
 
20447
fi
 
20448
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20449
fi
 
20450
    ;;
 
20451
esac
 
20452
 
 
20453
# Extract the first word of "uname", so it can be a program name with args.
 
20454
set dummy uname; ac_word=$2
 
20455
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20456
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20457
if test "${ac_cv_path_uname_prog+set}" = set; then
 
20458
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20459
else
 
20460
  case $uname_prog in
 
20461
  [\\/]* | ?:[\\/]*)
 
20462
  ac_cv_path_uname_prog="$uname_prog" # Let the user override the test with a path.
 
20463
  ;;
 
20464
  *)
 
20465
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20466
for as_dir in $PATH
 
20467
do
 
20468
  IFS=$as_save_IFS
 
20469
  test -z "$as_dir" && as_dir=.
 
20470
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20471
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20472
    ac_cv_path_uname_prog="$as_dir/$ac_word$ac_exec_ext"
 
20473
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20474
    break 2
 
20475
  fi
 
20476
done
 
20477
done
 
20478
 
 
20479
  test -z "$ac_cv_path_uname_prog" && ac_cv_path_uname_prog="no"
 
20480
  ;;
 
20481
esac
 
20482
fi
 
20483
uname_prog=$ac_cv_path_uname_prog
 
20484
 
 
20485
if test -n "$uname_prog"; then
 
20486
  echo "$as_me:$LINENO: result: $uname_prog" >&5
 
20487
echo "${ECHO_T}$uname_prog" >&6
 
20488
else
 
20489
  echo "$as_me:$LINENO: result: no" >&5
 
20490
echo "${ECHO_T}no" >&6
 
20491
fi
 
20492
 
 
20493
 
 
20494
# We should go through this and put all the explictly system dependent
 
20495
# stuff in one place
 
20496
echo "$as_me:$LINENO: checking operating system" >&5
 
20497
echo $ECHO_N "checking operating system... $ECHO_C" >&6
 
20498
if test "${mysql_cv_sys_os+set}" = set; then
 
20499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20500
else
 
20501
 
 
20502
if test "$uname_prog" != "no"; then
 
20503
  mysql_cv_sys_os="`uname`"
 
20504
else
 
20505
  mysql_cv_sys_os="Not Solaris"
 
20506
fi
 
20507
 
 
20508
fi
 
20509
 
 
20510
echo "$as_me:$LINENO: result: $mysql_cv_sys_os" >&5
 
20511
echo "${ECHO_T}$mysql_cv_sys_os" >&6
 
20512
 
 
20513
# This should be rewritten to use $target_os
 
20514
case "$target_os" in
 
20515
  sco3.2v5*)
 
20516
     CFLAGS="$CFLAGS -DSCO"
 
20517
     CXXFLAGS="$CXXFLAGS -DSCO"
 
20518
     LD='$(CC) $(CFLAGS)'
 
20519
     case "$CFLAGS" in
 
20520
       *-belf*)
 
20521
 
 
20522
  echo "$as_me:$LINENO: checking -belf" >&5
 
20523
echo $ECHO_N "checking -belf... $ECHO_C" >&6
 
20524
  OLD_CFLAGS="$CFLAGS"
 
20525
  if test "${mysql_cv_option_sco_belf_option+set}" = set; then
 
20526
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20527
else
 
20528
 
 
20529
    CFLAGS="$OLD_CFLAGS -belf"
 
20530
    if test "$cross_compiling" = yes; then
 
20531
  mysql_cv_option_sco_belf_option=no
 
20532
else
 
20533
  cat >conftest.$ac_ext <<_ACEOF
 
20534
/* confdefs.h.  */
 
20535
_ACEOF
 
20536
cat confdefs.h >>conftest.$ac_ext
 
20537
cat >>conftest.$ac_ext <<_ACEOF
 
20538
/* end confdefs.h.  */
 
20539
int main(){exit(0);}
 
20540
_ACEOF
 
20541
rm -f conftest$ac_exeext
 
20542
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20543
  (eval $ac_link) 2>&5
 
20544
  ac_status=$?
 
20545
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20546
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20547
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20548
  (eval $ac_try) 2>&5
 
20549
  ac_status=$?
 
20550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20551
  (exit $ac_status); }; }; then
 
20552
  mysql_cv_option_sco_belf_option=yes
 
20553
else
 
20554
  echo "$as_me: program exited with status $ac_status" >&5
 
20555
echo "$as_me: failed program was:" >&5
 
20556
sed 's/^/| /' conftest.$ac_ext >&5
 
20557
 
 
20558
( exit $ac_status )
 
20559
mysql_cv_option_sco_belf_option=no
 
20560
fi
 
20561
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20562
fi
 
20563
 
 
20564
fi
 
20565
 
 
20566
 
 
20567
  CFLAGS="$OLD_CFLAGS"
 
20568
 
 
20569
  if test x"$mysql_cv_option_sco_belf_option" = "xyes" ; then
 
20570
    CFLAGS="$CFLAGS -belf"
 
20571
    echo "$as_me:$LINENO: result: yes" >&5
 
20572
echo "${ECHO_T}yes" >&6
 
20573
 
 
20574
         case "$LDFLAGS" in
 
20575
           *-belf*) ;;
 
20576
           *) { echo "$as_me:$LINENO: WARNING: Adding -belf option to ldflags." >&5
 
20577
echo "$as_me: WARNING: Adding -belf option to ldflags." >&2;}
 
20578
              LDFLAGS="$LDFLAGS -belf"
 
20579
           ;;
 
20580
         esac
 
20581
 
 
20582
  else
 
20583
    echo "$as_me:$LINENO: result: no" >&5
 
20584
echo "${ECHO_T}no" >&6
 
20585
 
 
20586
  fi
 
20587
 
 
20588
       ;;
 
20589
       *)
 
20590
 
 
20591
  echo "$as_me:$LINENO: checking -belf" >&5
 
20592
echo $ECHO_N "checking -belf... $ECHO_C" >&6
 
20593
  OLD_CFLAGS="$CFLAGS"
 
20594
  if test "${mysql_cv_option_sco_belf_option+set}" = set; then
 
20595
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20596
else
 
20597
 
 
20598
    CFLAGS="$OLD_CFLAGS -belf"
 
20599
    if test "$cross_compiling" = yes; then
 
20600
  mysql_cv_option_sco_belf_option=no
 
20601
else
 
20602
  cat >conftest.$ac_ext <<_ACEOF
 
20603
/* confdefs.h.  */
 
20604
_ACEOF
 
20605
cat confdefs.h >>conftest.$ac_ext
 
20606
cat >>conftest.$ac_ext <<_ACEOF
 
20607
/* end confdefs.h.  */
 
20608
int main(){exit(0);}
 
20609
_ACEOF
 
20610
rm -f conftest$ac_exeext
 
20611
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20612
  (eval $ac_link) 2>&5
 
20613
  ac_status=$?
 
20614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20615
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20617
  (eval $ac_try) 2>&5
 
20618
  ac_status=$?
 
20619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20620
  (exit $ac_status); }; }; then
 
20621
  mysql_cv_option_sco_belf_option=yes
 
20622
else
 
20623
  echo "$as_me: program exited with status $ac_status" >&5
 
20624
echo "$as_me: failed program was:" >&5
 
20625
sed 's/^/| /' conftest.$ac_ext >&5
 
20626
 
 
20627
( exit $ac_status )
 
20628
mysql_cv_option_sco_belf_option=no
 
20629
fi
 
20630
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20631
fi
 
20632
 
 
20633
fi
 
20634
 
 
20635
 
 
20636
  CFLAGS="$OLD_CFLAGS"
 
20637
 
 
20638
  if test x"$mysql_cv_option_sco_belf_option" = "xyes" ; then
 
20639
    CFLAGS="$CFLAGS -belf"
 
20640
    echo "$as_me:$LINENO: result: yes" >&5
 
20641
echo "${ECHO_T}yes" >&6
 
20642
 
 
20643
         case "$LDFLAGS" in
 
20644
           *-belf*) ;;
 
20645
           *)
 
20646
             { echo "$as_me:$LINENO: WARNING: Adding -belf option to ldflags." >&5
 
20647
echo "$as_me: WARNING: Adding -belf option to ldflags." >&2;}
 
20648
             LDFLAGS="$LDFLAGS -belf"
 
20649
           ;;
 
20650
         esac
 
20651
 
 
20652
  else
 
20653
    echo "$as_me:$LINENO: result: no" >&5
 
20654
echo "${ECHO_T}no" >&6
 
20655
 
 
20656
  fi
 
20657
 
 
20658
       ;;
 
20659
     esac
 
20660
  ;;
 
20661
  sysv5UnixWare* | sysv5OpenUNIX8*)
 
20662
    if test "$GCC" != "yes"; then
 
20663
      # Use the built-in alloca()
 
20664
      CFLAGS="$CFLAGS -Kalloca"
 
20665
    fi
 
20666
    CXXFLAGS="$CXXFLAGS -DNO_CPLUSPLUS_ALLOCA"
 
20667
  ;;
 
20668
  sysv5SCO_SV6.0.0*)
 
20669
    if test "$GCC" != "yes"; then
 
20670
      # Use the built-in alloca()
 
20671
      CFLAGS="$CFLAGS -Kalloca"
 
20672
      CXXFLAGS="$CFLAGS -Kalloca"
 
20673
      # Use no_implicit for templates
 
20674
      CXXFLAGS="$CXXFLAGS -Tno_implicit"
 
20675
 
 
20676
cat >>confdefs.h <<\_ACEOF
 
20677
#define HAVE_EXPLICIT_TEMPLATE_INSTANTIATION 1
 
20678
_ACEOF
 
20679
 
 
20680
    fi
 
20681
  ;;
 
20682
esac
 
20683
 
 
20684
 
 
20685
 
 
20686
 
 
20687
 
 
20688
 
 
20689
 
 
20690
export CC CXX CFLAGS LD LDFLAGS AR ARFLAGS
 
20691
 
 
20692
if test "$GCC" = "yes"
 
20693
then
 
20694
  # mysqld requires -fno-implicit-templates.
 
20695
  # Disable exceptions as they seams to create problems with gcc and threads.
 
20696
  # mysqld doesn't use run-time-type-checking, so we disable it.
 
20697
  # We should use -Wno-invalid-offsetof flag to disable some warnings from gcc
 
20698
  # regarding offset() usage in C++ which are done in a safe manner in the
 
20699
  # server
 
20700
  CXXFLAGS="$CXXFLAGS -fno-implicit-templates -fno-exceptions -fno-rtti"
 
20701
 
 
20702
cat >>confdefs.h <<\_ACEOF
 
20703
#define HAVE_EXPLICIT_TEMPLATE_INSTANTIATION 1
 
20704
_ACEOF
 
20705
 
 
20706
fi
 
20707
 
 
20708
 
 
20709
 
 
20710
case $CXX_VERSION in
 
20711
  MIPSpro*)
 
20712
    AR=$CXX
 
20713
    ARFLAGS="-ar -o"
 
20714
  ;;
 
20715
  *Forte*)
 
20716
    AR=$CXX
 
20717
    ARFLAGS="-xar -o"
 
20718
  ;;
 
20719
  *)
 
20720
    if test -z "$AR"
 
20721
    then
 
20722
      # Extract the first word of "ar", so it can be a program name with args.
 
20723
set dummy ar; ac_word=$2
 
20724
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20725
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20726
if test "${ac_cv_prog_AR+set}" = set; then
 
20727
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20728
else
 
20729
  if test -n "$AR"; then
 
20730
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
20731
else
 
20732
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20733
for as_dir in $PATH
 
20734
do
 
20735
  IFS=$as_save_IFS
 
20736
  test -z "$as_dir" && as_dir=.
 
20737
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20738
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20739
    ac_cv_prog_AR="ar"
 
20740
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20741
    break 2
 
20742
  fi
 
20743
done
 
20744
done
 
20745
 
 
20746
fi
 
20747
fi
 
20748
AR=$ac_cv_prog_AR
 
20749
if test -n "$AR"; then
 
20750
  echo "$as_me:$LINENO: result: $AR" >&5
 
20751
echo "${ECHO_T}$AR" >&6
 
20752
else
 
20753
  echo "$as_me:$LINENO: result: no" >&5
 
20754
echo "${ECHO_T}no" >&6
 
20755
fi
 
20756
 
 
20757
    fi
 
20758
    if test -z "$AR"
 
20759
    then
 
20760
      { { echo "$as_me:$LINENO: error: You need ar to build the library" >&5
 
20761
echo "$as_me: error: You need ar to build the library" >&2;}
 
20762
   { (exit 1); exit 1; }; }
 
20763
    fi
 
20764
    if test -z "$ARFLAGS"
 
20765
    then
 
20766
      ARFLAGS="cru"
 
20767
    fi
 
20768
esac
 
20769
 
 
20770
 
 
20771
 
 
20772
 
 
20773
# libmysqlclient versioning when linked with GNU ld.
 
20774
if $LD --version 2>/dev/null|grep -q GNU; then
 
20775
  LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_builddir)/libmysql/libmysql.ver"
 
20776
            ac_config_files="$ac_config_files libmysql/libmysql.ver"
 
20777
 
 
20778
fi
 
20779
 
 
20780
 
 
20781
# Avoid bug in fcntl on some versions of linux
 
20782
echo "$as_me:$LINENO: checking if we should use 'skip-external-locking' as default for $target_os" >&5
 
20783
echo $ECHO_N "checking if we should use 'skip-external-locking' as default for $target_os... $ECHO_C" >&6
 
20784
# Any variation of Linux
 
20785
if expr "$target_os" : "[Ll]inux.*" > /dev/null
 
20786
then
 
20787
  MYSQLD_DEFAULT_SWITCHES="--skip-external-locking"
 
20788
  TARGET_LINUX="true"
 
20789
  echo "$as_me:$LINENO: result: yes" >&5
 
20790
echo "${ECHO_T}yes" >&6
 
20791
 
 
20792
cat >>confdefs.h <<\_ACEOF
 
20793
#define TARGET_OS_LINUX 1
 
20794
_ACEOF
 
20795
 
 
20796
else
 
20797
  MYSQLD_DEFAULT_SWITCHES=""
 
20798
  TARGET_LINUX="false"
 
20799
  echo "$as_me:$LINENO: result: no" >&5
 
20800
echo "${ECHO_T}no" >&6
 
20801
fi
 
20802
 
 
20803
 
 
20804
 
 
20805
# Extract the first word of "ln", so it can be a program name with args.
 
20806
set dummy ln; ac_word=$2
 
20807
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20808
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20809
if test "${ac_cv_path_LN+set}" = set; then
 
20810
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20811
else
 
20812
  case $LN in
 
20813
  [\\/]* | ?:[\\/]*)
 
20814
  ac_cv_path_LN="$LN" # Let the user override the test with a path.
 
20815
  ;;
 
20816
  *)
 
20817
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20818
for as_dir in $PATH
 
20819
do
 
20820
  IFS=$as_save_IFS
 
20821
  test -z "$as_dir" && as_dir=.
 
20822
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20823
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20824
    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
 
20825
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20826
    break 2
 
20827
  fi
 
20828
done
 
20829
done
 
20830
 
 
20831
  test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
 
20832
  ;;
 
20833
esac
 
20834
fi
 
20835
LN=$ac_cv_path_LN
 
20836
 
 
20837
if test -n "$LN"; then
 
20838
  echo "$as_me:$LINENO: result: $LN" >&5
 
20839
echo "${ECHO_T}$LN" >&6
 
20840
else
 
20841
  echo "$as_me:$LINENO: result: no" >&5
 
20842
echo "${ECHO_T}no" >&6
 
20843
fi
 
20844
 
 
20845
# This must be able to take a -f flag like normal unix ln.
 
20846
# Extract the first word of "ln", so it can be a program name with args.
 
20847
set dummy ln; ac_word=$2
 
20848
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20849
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20850
if test "${ac_cv_path_LN_CP_F+set}" = set; then
 
20851
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20852
else
 
20853
  case $LN_CP_F in
 
20854
  [\\/]* | ?:[\\/]*)
 
20855
  ac_cv_path_LN_CP_F="$LN_CP_F" # Let the user override the test with a path.
 
20856
  ;;
 
20857
  *)
 
20858
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20859
for as_dir in $PATH
 
20860
do
 
20861
  IFS=$as_save_IFS
 
20862
  test -z "$as_dir" && as_dir=.
 
20863
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20864
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20865
    ac_cv_path_LN_CP_F="$as_dir/$ac_word$ac_exec_ext"
 
20866
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20867
    break 2
 
20868
  fi
 
20869
done
 
20870
done
 
20871
 
 
20872
  test -z "$ac_cv_path_LN_CP_F" && ac_cv_path_LN_CP_F="ln"
 
20873
  ;;
 
20874
esac
 
20875
fi
 
20876
LN_CP_F=$ac_cv_path_LN_CP_F
 
20877
 
 
20878
if test -n "$LN_CP_F"; then
 
20879
  echo "$as_me:$LINENO: result: $LN_CP_F" >&5
 
20880
echo "${ECHO_T}$LN_CP_F" >&6
 
20881
else
 
20882
  echo "$as_me:$LINENO: result: no" >&5
 
20883
echo "${ECHO_T}no" >&6
 
20884
fi
 
20885
 
 
20886
if ! ( expr "$SYSTEM_TYPE" : ".*netware.*" > /dev/null ); then
 
20887
# If ln -f does not exists use -s (AFS systems)
 
20888
if test -n "$LN_CP_F"; then
 
20889
  LN_CP_F="$LN_CP_F -s"
 
20890
fi
 
20891
fi
 
20892
 
 
20893
# Extract the first word of "mv", so it can be a program name with args.
 
20894
set dummy mv; ac_word=$2
 
20895
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20896
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20897
if test "${ac_cv_path_MV+set}" = set; then
 
20898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20899
else
 
20900
  case $MV in
 
20901
  [\\/]* | ?:[\\/]*)
 
20902
  ac_cv_path_MV="$MV" # Let the user override the test with a path.
 
20903
  ;;
 
20904
  *)
 
20905
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20906
for as_dir in $PATH
 
20907
do
 
20908
  IFS=$as_save_IFS
 
20909
  test -z "$as_dir" && as_dir=.
 
20910
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20911
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20912
    ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
 
20913
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20914
    break 2
 
20915
  fi
 
20916
done
 
20917
done
 
20918
 
 
20919
  test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
 
20920
  ;;
 
20921
esac
 
20922
fi
 
20923
MV=$ac_cv_path_MV
 
20924
 
 
20925
if test -n "$MV"; then
 
20926
  echo "$as_me:$LINENO: result: $MV" >&5
 
20927
echo "${ECHO_T}$MV" >&6
 
20928
else
 
20929
  echo "$as_me:$LINENO: result: no" >&5
 
20930
echo "${ECHO_T}no" >&6
 
20931
fi
 
20932
 
 
20933
# Extract the first word of "rm", so it can be a program name with args.
 
20934
set dummy rm; ac_word=$2
 
20935
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20936
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20937
if test "${ac_cv_path_RM+set}" = set; then
 
20938
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20939
else
 
20940
  case $RM in
 
20941
  [\\/]* | ?:[\\/]*)
 
20942
  ac_cv_path_RM="$RM" # Let the user override the test with a path.
 
20943
  ;;
 
20944
  *)
 
20945
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20946
for as_dir in $PATH
 
20947
do
 
20948
  IFS=$as_save_IFS
 
20949
  test -z "$as_dir" && as_dir=.
 
20950
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20951
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20952
    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
 
20953
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20954
    break 2
 
20955
  fi
 
20956
done
 
20957
done
 
20958
 
 
20959
  test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
 
20960
  ;;
 
20961
esac
 
20962
fi
 
20963
RM=$ac_cv_path_RM
 
20964
 
 
20965
if test -n "$RM"; then
 
20966
  echo "$as_me:$LINENO: result: $RM" >&5
 
20967
echo "${ECHO_T}$RM" >&6
 
20968
else
 
20969
  echo "$as_me:$LINENO: result: no" >&5
 
20970
echo "${ECHO_T}no" >&6
 
20971
fi
 
20972
 
 
20973
# Extract the first word of "cp", so it can be a program name with args.
 
20974
set dummy cp; ac_word=$2
 
20975
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20976
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20977
if test "${ac_cv_path_CP+set}" = set; then
 
20978
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20979
else
 
20980
  case $CP in
 
20981
  [\\/]* | ?:[\\/]*)
 
20982
  ac_cv_path_CP="$CP" # Let the user override the test with a path.
 
20983
  ;;
 
20984
  *)
 
20985
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20986
for as_dir in $PATH
 
20987
do
 
20988
  IFS=$as_save_IFS
 
20989
  test -z "$as_dir" && as_dir=.
 
20990
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20991
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20992
    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
 
20993
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20994
    break 2
 
20995
  fi
 
20996
done
 
20997
done
 
20998
 
 
20999
  test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
 
21000
  ;;
 
21001
esac
 
21002
fi
 
21003
CP=$ac_cv_path_CP
 
21004
 
 
21005
if test -n "$CP"; then
 
21006
  echo "$as_me:$LINENO: result: $CP" >&5
 
21007
echo "${ECHO_T}$CP" >&6
 
21008
else
 
21009
  echo "$as_me:$LINENO: result: no" >&5
 
21010
echo "${ECHO_T}no" >&6
 
21011
fi
 
21012
 
 
21013
# Extract the first word of "sed", so it can be a program name with args.
 
21014
set dummy sed; ac_word=$2
 
21015
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21016
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21017
if test "${ac_cv_path_SED+set}" = set; then
 
21018
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21019
else
 
21020
  case $SED in
 
21021
  [\\/]* | ?:[\\/]*)
 
21022
  ac_cv_path_SED="$SED" # Let the user override the test with a path.
 
21023
  ;;
 
21024
  *)
 
21025
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21026
for as_dir in $PATH
 
21027
do
 
21028
  IFS=$as_save_IFS
 
21029
  test -z "$as_dir" && as_dir=.
 
21030
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21031
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21032
    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
 
21033
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21034
    break 2
 
21035
  fi
 
21036
done
 
21037
done
 
21038
 
 
21039
  test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
 
21040
  ;;
 
21041
esac
 
21042
fi
 
21043
SED=$ac_cv_path_SED
 
21044
 
 
21045
if test -n "$SED"; then
 
21046
  echo "$as_me:$LINENO: result: $SED" >&5
 
21047
echo "${ECHO_T}$SED" >&6
 
21048
else
 
21049
  echo "$as_me:$LINENO: result: no" >&5
 
21050
echo "${ECHO_T}no" >&6
 
21051
fi
 
21052
 
 
21053
# Extract the first word of "cmp", so it can be a program name with args.
 
21054
set dummy cmp; ac_word=$2
 
21055
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21056
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21057
if test "${ac_cv_path_CMP+set}" = set; then
 
21058
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21059
else
 
21060
  case $CMP in
 
21061
  [\\/]* | ?:[\\/]*)
 
21062
  ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
 
21063
  ;;
 
21064
  *)
 
21065
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21066
for as_dir in $PATH
 
21067
do
 
21068
  IFS=$as_save_IFS
 
21069
  test -z "$as_dir" && as_dir=.
 
21070
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21071
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21072
    ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
 
21073
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21074
    break 2
 
21075
  fi
 
21076
done
 
21077
done
 
21078
 
 
21079
  test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
 
21080
  ;;
 
21081
esac
 
21082
fi
 
21083
CMP=$ac_cv_path_CMP
 
21084
 
 
21085
if test -n "$CMP"; then
 
21086
  echo "$as_me:$LINENO: result: $CMP" >&5
 
21087
echo "${ECHO_T}$CMP" >&6
 
21088
else
 
21089
  echo "$as_me:$LINENO: result: no" >&5
 
21090
echo "${ECHO_T}no" >&6
 
21091
fi
 
21092
 
 
21093
# Extract the first word of "chmod", so it can be a program name with args.
 
21094
set dummy chmod; ac_word=$2
 
21095
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21096
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21097
if test "${ac_cv_path_CHMOD+set}" = set; then
 
21098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21099
else
 
21100
  case $CHMOD in
 
21101
  [\\/]* | ?:[\\/]*)
 
21102
  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
 
21103
  ;;
 
21104
  *)
 
21105
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21106
for as_dir in $PATH
 
21107
do
 
21108
  IFS=$as_save_IFS
 
21109
  test -z "$as_dir" && as_dir=.
 
21110
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21111
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21112
    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
 
21113
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21114
    break 2
 
21115
  fi
 
21116
done
 
21117
done
 
21118
 
 
21119
  test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD="chmod"
 
21120
  ;;
 
21121
esac
 
21122
fi
 
21123
CHMOD=$ac_cv_path_CHMOD
 
21124
 
 
21125
if test -n "$CHMOD"; then
 
21126
  echo "$as_me:$LINENO: result: $CHMOD" >&5
 
21127
echo "${ECHO_T}$CHMOD" >&6
 
21128
else
 
21129
  echo "$as_me:$LINENO: result: no" >&5
 
21130
echo "${ECHO_T}no" >&6
 
21131
fi
 
21132
 
 
21133
# Extract the first word of "hostname", so it can be a program name with args.
 
21134
set dummy hostname; ac_word=$2
 
21135
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21136
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21137
if test "${ac_cv_path_HOSTNAME+set}" = set; then
 
21138
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21139
else
 
21140
  case $HOSTNAME in
 
21141
  [\\/]* | ?:[\\/]*)
 
21142
  ac_cv_path_HOSTNAME="$HOSTNAME" # Let the user override the test with a path.
 
21143
  ;;
 
21144
  *)
 
21145
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21146
for as_dir in $PATH
 
21147
do
 
21148
  IFS=$as_save_IFS
 
21149
  test -z "$as_dir" && as_dir=.
 
21150
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21151
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21152
    ac_cv_path_HOSTNAME="$as_dir/$ac_word$ac_exec_ext"
 
21153
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21154
    break 2
 
21155
  fi
 
21156
done
 
21157
done
 
21158
 
 
21159
  test -z "$ac_cv_path_HOSTNAME" && ac_cv_path_HOSTNAME="hostname"
 
21160
  ;;
 
21161
esac
 
21162
fi
 
21163
HOSTNAME=$ac_cv_path_HOSTNAME
 
21164
 
 
21165
if test -n "$HOSTNAME"; then
 
21166
  echo "$as_me:$LINENO: result: $HOSTNAME" >&5
 
21167
echo "${ECHO_T}$HOSTNAME" >&6
 
21168
else
 
21169
  echo "$as_me:$LINENO: result: no" >&5
 
21170
echo "${ECHO_T}no" >&6
 
21171
fi
 
21172
 
 
21173
# Check for a GNU tar named 'gtar', or 'gnutar' (MacOS X) and
 
21174
# fall back to 'tar' otherwise and hope that it's a GNU tar as well
 
21175
for ac_prog in gnutar gtar tar
 
21176
do
 
21177
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
21178
set dummy $ac_prog; ac_word=$2
 
21179
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21180
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21181
if test "${ac_cv_prog_TAR+set}" = set; then
 
21182
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21183
else
 
21184
  if test -n "$TAR"; then
 
21185
  ac_cv_prog_TAR="$TAR" # Let the user override the test.
 
21186
else
 
21187
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21188
for as_dir in $PATH
 
21189
do
 
21190
  IFS=$as_save_IFS
 
21191
  test -z "$as_dir" && as_dir=.
 
21192
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21193
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21194
    ac_cv_prog_TAR="$ac_prog"
 
21195
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21196
    break 2
 
21197
  fi
 
21198
done
 
21199
done
 
21200
 
 
21201
fi
 
21202
fi
 
21203
TAR=$ac_cv_prog_TAR
 
21204
if test -n "$TAR"; then
 
21205
  echo "$as_me:$LINENO: result: $TAR" >&5
 
21206
echo "${ECHO_T}$TAR" >&6
 
21207
else
 
21208
  echo "$as_me:$LINENO: result: no" >&5
 
21209
echo "${ECHO_T}no" >&6
 
21210
fi
 
21211
 
 
21212
  test -n "$TAR" && break
 
21213
done
 
21214
 
 
21215
 
 
21216
# Extract the first word of "perl", so it can be a program name with args.
 
21217
set dummy perl; ac_word=$2
 
21218
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21219
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21220
if test "${ac_cv_path_PERL+set}" = set; then
 
21221
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21222
else
 
21223
  case $PERL in
 
21224
  [\\/]* | ?:[\\/]*)
 
21225
  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 
21226
  ;;
 
21227
  *)
 
21228
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21229
for as_dir in $PATH
 
21230
do
 
21231
  IFS=$as_save_IFS
 
21232
  test -z "$as_dir" && as_dir=.
 
21233
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21234
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21235
    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 
21236
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21237
    break 2
 
21238
  fi
 
21239
done
 
21240
done
 
21241
 
 
21242
  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
 
21243
  ;;
 
21244
esac
 
21245
fi
 
21246
PERL=$ac_cv_path_PERL
 
21247
 
 
21248
if test -n "$PERL"; then
 
21249
  echo "$as_me:$LINENO: result: $PERL" >&5
 
21250
echo "${ECHO_T}$PERL" >&6
 
21251
else
 
21252
  echo "$as_me:$LINENO: result: no" >&5
 
21253
echo "${ECHO_T}no" >&6
 
21254
fi
 
21255
 
 
21256
if test "$PERL" != "no" && $PERL -e 'require 5' > /dev/null 2>&1
 
21257
then
 
21258
  PERL5=$PERL
 
21259
else
 
21260
  # Extract the first word of "perl5", so it can be a program name with args.
 
21261
set dummy perl5; ac_word=$2
 
21262
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21264
if test "${ac_cv_path_PERL5+set}" = set; then
 
21265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21266
else
 
21267
  case $PERL5 in
 
21268
  [\\/]* | ?:[\\/]*)
 
21269
  ac_cv_path_PERL5="$PERL5" # Let the user override the test with a path.
 
21270
  ;;
 
21271
  *)
 
21272
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21273
for as_dir in $PATH
 
21274
do
 
21275
  IFS=$as_save_IFS
 
21276
  test -z "$as_dir" && as_dir=.
 
21277
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21278
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21279
    ac_cv_path_PERL5="$as_dir/$ac_word$ac_exec_ext"
 
21280
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21281
    break 2
 
21282
  fi
 
21283
done
 
21284
done
 
21285
 
 
21286
  test -z "$ac_cv_path_PERL5" && ac_cv_path_PERL5="no"
 
21287
  ;;
 
21288
esac
 
21289
fi
 
21290
PERL5=$ac_cv_path_PERL5
 
21291
 
 
21292
if test -n "$PERL5"; then
 
21293
  echo "$as_me:$LINENO: result: $PERL5" >&5
 
21294
echo "${ECHO_T}$PERL5" >&6
 
21295
else
 
21296
  echo "$as_me:$LINENO: result: no" >&5
 
21297
echo "${ECHO_T}no" >&6
 
21298
fi
 
21299
 
 
21300
  if test "$PERL5" != no
 
21301
  then
 
21302
    PERL=$PERL5
 
21303
    ac_cv_path_PERL=$ac_cv_path_PERL5
 
21304
  fi
 
21305
fi
 
21306
 
 
21307
 
 
21308
 
 
21309
 
 
21310
 
 
21311
# for build ndb docs
 
21312
 
 
21313
# Extract the first word of "doxygen", so it can be a program name with args.
 
21314
set dummy doxygen; ac_word=$2
 
21315
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21317
if test "${ac_cv_path_DOXYGEN+set}" = set; then
 
21318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21319
else
 
21320
  case $DOXYGEN in
 
21321
  [\\/]* | ?:[\\/]*)
 
21322
  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
 
21323
  ;;
 
21324
  *)
 
21325
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21326
for as_dir in $PATH
 
21327
do
 
21328
  IFS=$as_save_IFS
 
21329
  test -z "$as_dir" && as_dir=.
 
21330
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21331
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21332
    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
 
21333
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21334
    break 2
 
21335
  fi
 
21336
done
 
21337
done
 
21338
 
 
21339
  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="no"
 
21340
  ;;
 
21341
esac
 
21342
fi
 
21343
DOXYGEN=$ac_cv_path_DOXYGEN
 
21344
 
 
21345
if test -n "$DOXYGEN"; then
 
21346
  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
 
21347
echo "${ECHO_T}$DOXYGEN" >&6
 
21348
else
 
21349
  echo "$as_me:$LINENO: result: no" >&5
 
21350
echo "${ECHO_T}no" >&6
 
21351
fi
 
21352
 
 
21353
# Extract the first word of "pdflatex", so it can be a program name with args.
 
21354
set dummy pdflatex; ac_word=$2
 
21355
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21356
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21357
if test "${ac_cv_path_PDFLATEX+set}" = set; then
 
21358
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21359
else
 
21360
  case $PDFLATEX in
 
21361
  [\\/]* | ?:[\\/]*)
 
21362
  ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
 
21363
  ;;
 
21364
  *)
 
21365
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21366
for as_dir in $PATH
 
21367
do
 
21368
  IFS=$as_save_IFS
 
21369
  test -z "$as_dir" && as_dir=.
 
21370
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21371
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21372
    ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
 
21373
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21374
    break 2
 
21375
  fi
 
21376
done
 
21377
done
 
21378
 
 
21379
  test -z "$ac_cv_path_PDFLATEX" && ac_cv_path_PDFLATEX="no"
 
21380
  ;;
 
21381
esac
 
21382
fi
 
21383
PDFLATEX=$ac_cv_path_PDFLATEX
 
21384
 
 
21385
if test -n "$PDFLATEX"; then
 
21386
  echo "$as_me:$LINENO: result: $PDFLATEX" >&5
 
21387
echo "${ECHO_T}$PDFLATEX" >&6
 
21388
else
 
21389
  echo "$as_me:$LINENO: result: no" >&5
 
21390
echo "${ECHO_T}no" >&6
 
21391
fi
 
21392
 
 
21393
# Extract the first word of "makeindex", so it can be a program name with args.
 
21394
set dummy makeindex; ac_word=$2
 
21395
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21396
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21397
if test "${ac_cv_path_MAKEINDEX+set}" = set; then
 
21398
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21399
else
 
21400
  case $MAKEINDEX in
 
21401
  [\\/]* | ?:[\\/]*)
 
21402
  ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path.
 
21403
  ;;
 
21404
  *)
 
21405
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21406
for as_dir in $PATH
 
21407
do
 
21408
  IFS=$as_save_IFS
 
21409
  test -z "$as_dir" && as_dir=.
 
21410
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21411
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21412
    ac_cv_path_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
 
21413
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21414
    break 2
 
21415
  fi
 
21416
done
 
21417
done
 
21418
 
 
21419
  test -z "$ac_cv_path_MAKEINDEX" && ac_cv_path_MAKEINDEX="no"
 
21420
  ;;
 
21421
esac
 
21422
fi
 
21423
MAKEINDEX=$ac_cv_path_MAKEINDEX
 
21424
 
 
21425
if test -n "$MAKEINDEX"; then
 
21426
  echo "$as_me:$LINENO: result: $MAKEINDEX" >&5
 
21427
echo "${ECHO_T}$MAKEINDEX" >&6
 
21428
else
 
21429
  echo "$as_me:$LINENO: result: no" >&5
 
21430
echo "${ECHO_T}no" >&6
 
21431
fi
 
21432
 
 
21433
 
 
21434
 
 
21435
 
 
21436
 
 
21437
# icheck, used for ABI check
 
21438
# Extract the first word of "icheck", so it can be a program name with args.
 
21439
set dummy icheck; ac_word=$2
 
21440
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21441
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21442
if test "${ac_cv_path_ICHECK+set}" = set; then
 
21443
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21444
else
 
21445
  case $ICHECK in
 
21446
  [\\/]* | ?:[\\/]*)
 
21447
  ac_cv_path_ICHECK="$ICHECK" # Let the user override the test with a path.
 
21448
  ;;
 
21449
  *)
 
21450
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21451
for as_dir in $PATH
 
21452
do
 
21453
  IFS=$as_save_IFS
 
21454
  test -z "$as_dir" && as_dir=.
 
21455
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21456
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21457
    ac_cv_path_ICHECK="$as_dir/$ac_word$ac_exec_ext"
 
21458
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21459
    break 2
 
21460
  fi
 
21461
done
 
21462
done
 
21463
 
 
21464
  test -z "$ac_cv_path_ICHECK" && ac_cv_path_ICHECK="no"
 
21465
  ;;
 
21466
esac
 
21467
fi
 
21468
ICHECK=$ac_cv_path_ICHECK
 
21469
 
 
21470
if test -n "$ICHECK"; then
 
21471
  echo "$as_me:$LINENO: result: $ICHECK" >&5
 
21472
echo "${ECHO_T}$ICHECK" >&6
 
21473
else
 
21474
  echo "$as_me:$LINENO: result: no" >&5
 
21475
echo "${ECHO_T}no" >&6
 
21476
fi
 
21477
 
 
21478
 
 
21479
 
 
21480
# Lock for PS
 
21481
# Extract the first word of "ps", so it can be a program name with args.
 
21482
set dummy ps; ac_word=$2
 
21483
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21484
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21485
if test "${ac_cv_path_PS+set}" = set; then
 
21486
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21487
else
 
21488
  case $PS in
 
21489
  [\\/]* | ?:[\\/]*)
 
21490
  ac_cv_path_PS="$PS" # Let the user override the test with a path.
 
21491
  ;;
 
21492
  *)
 
21493
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21494
for as_dir in $PATH
 
21495
do
 
21496
  IFS=$as_save_IFS
 
21497
  test -z "$as_dir" && as_dir=.
 
21498
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21499
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21500
    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
 
21501
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21502
    break 2
 
21503
  fi
 
21504
done
 
21505
done
 
21506
 
 
21507
  test -z "$ac_cv_path_PS" && ac_cv_path_PS="ps"
 
21508
  ;;
 
21509
esac
 
21510
fi
 
21511
PS=$ac_cv_path_PS
 
21512
 
 
21513
if test -n "$PS"; then
 
21514
  echo "$as_me:$LINENO: result: $PS" >&5
 
21515
echo "${ECHO_T}$PS" >&6
 
21516
else
 
21517
  echo "$as_me:$LINENO: result: no" >&5
 
21518
echo "${ECHO_T}no" >&6
 
21519
fi
 
21520
 
 
21521
echo "$as_me:$LINENO: checking \"how to check if pid exists\"" >&5
 
21522
echo $ECHO_N "checking \"how to check if pid exists\"... $ECHO_C" >&6
 
21523
PS=$ac_cv_path_PS
 
21524
# Linux style
 
21525
if $PS p $$ 2> /dev/null | grep `echo $0 | sed s/\-//` > /dev/null
 
21526
then
 
21527
  FIND_PROC="$PS p \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
 
21528
# Solaris
 
21529
elif $PS -fp $$ 2> /dev/null | grep $0 > /dev/null
 
21530
then
 
21531
  FIND_PROC="$PS -p \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
 
21532
# BSD style
 
21533
elif $PS -uaxww 2> /dev/null | grep $0 > /dev/null
 
21534
then
 
21535
  FIND_PROC="$PS -uaxww | grep -v grep | grep \$\$MYSQLD | grep \" \$\$PID \" > /dev/null"
 
21536
# SysV style
 
21537
elif $PS -ef 2> /dev/null | grep $0 > /dev/null
 
21538
then
 
21539
  FIND_PROC="$PS -ef | grep -v grep | grep \$\$MYSQLD | grep \" \$\$PID \" > /dev/null"
 
21540
# Do anybody use this?
 
21541
elif $PS $$ 2> /dev/null | grep $0 > /dev/null
 
21542
then
 
21543
  FIND_PROC="$PS \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
 
21544
else
 
21545
  case $SYSTEM_TYPE in
 
21546
    *freebsd*)
 
21547
      FIND_PROC="$PS p \$\$PID | grep -v grep | grep \$\$MYSQLD > /dev/null"
 
21548
      ;;
 
21549
    *darwin*)
 
21550
      FIND_PROC="$PS -uaxww | grep -v grep | grep \$\$MYSQLD | grep \" \$\$PID \" > /dev/null"
 
21551
      ;;
 
21552
    *cygwin*)
 
21553
      FIND_PROC="$PS -e | grep -v grep | grep \$\$MYSQLD | grep \" \$\$PID \" > /dev/null"
 
21554
      ;;
 
21555
    *netware*)
 
21556
      FIND_PROC=
 
21557
      ;;
 
21558
    *)
 
21559
      { { echo "$as_me:$LINENO: error: Could not find the right ps switches. Which OS is this ?. See the Installation chapter in the Reference Manual." >&5
 
21560
echo "$as_me: error: Could not find the right ps switches. Which OS is this ?. See the Installation chapter in the Reference Manual." >&2;}
 
21561
   { (exit 1); exit 1; }; }
 
21562
  esac
 
21563
fi
 
21564
 
 
21565
echo "$as_me:$LINENO: result: \"$FIND_PROC\"" >&5
 
21566
echo "${ECHO_T}\"$FIND_PROC\"" >&6
 
21567
 
 
21568
# Check if a pid is valid
 
21569
# Extract the first word of "kill", so it can be a program name with args.
 
21570
set dummy kill; ac_word=$2
 
21571
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21572
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21573
if test "${ac_cv_path_KILL+set}" = set; then
 
21574
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21575
else
 
21576
  case $KILL in
 
21577
  [\\/]* | ?:[\\/]*)
 
21578
  ac_cv_path_KILL="$KILL" # Let the user override the test with a path.
 
21579
  ;;
 
21580
  *)
 
21581
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21582
for as_dir in $PATH
 
21583
do
 
21584
  IFS=$as_save_IFS
 
21585
  test -z "$as_dir" && as_dir=.
 
21586
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21587
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21588
    ac_cv_path_KILL="$as_dir/$ac_word$ac_exec_ext"
 
21589
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21590
    break 2
 
21591
  fi
 
21592
done
 
21593
done
 
21594
 
 
21595
  test -z "$ac_cv_path_KILL" && ac_cv_path_KILL="kill"
 
21596
  ;;
 
21597
esac
 
21598
fi
 
21599
KILL=$ac_cv_path_KILL
 
21600
 
 
21601
if test -n "$KILL"; then
 
21602
  echo "$as_me:$LINENO: result: $KILL" >&5
 
21603
echo "${ECHO_T}$KILL" >&6
 
21604
else
 
21605
  echo "$as_me:$LINENO: result: no" >&5
 
21606
echo "${ECHO_T}no" >&6
 
21607
fi
 
21608
 
 
21609
echo "$as_me:$LINENO: checking \"for kill switches\"" >&5
 
21610
echo $ECHO_N "checking \"for kill switches\"... $ECHO_C" >&6
 
21611
if $ac_cv_path_KILL -0 $$
 
21612
then
 
21613
  CHECK_PID="$ac_cv_path_KILL -0 \$\$PID > /dev/null 2> /dev/null"
 
21614
elif kill -s 0 $$
 
21615
then
 
21616
  CHECK_PID="$ac_cv_path_KILL -s 0 \$\$PID > /dev/null 2> /dev/null"
 
21617
else
 
21618
  { echo "$as_me:$LINENO: WARNING: kill -0 to check for pid seems to fail" >&5
 
21619
echo "$as_me: WARNING: kill -0 to check for pid seems to fail" >&2;}
 
21620
    CHECK_PID="$ac_cv_path_KILL -s SIGCONT \$\$PID > /dev/null 2> /dev/null"
 
21621
fi
 
21622
 
 
21623
echo "$as_me:$LINENO: result: \"$CHECK_PID\"" >&5
 
21624
echo "${ECHO_T}\"$CHECK_PID\"" >&6
 
21625
 
 
21626
# We need an ANSI C compiler
 
21627
 
 
21628
echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
 
21629
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
 
21630
if test "${am_cv_prog_cc_stdc+set}" = set; then
 
21631
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21632
else
 
21633
  am_cv_prog_cc_stdc=no
 
21634
ac_save_CC="$CC"
 
21635
# Don't try gcc -ansi; that turns off useful extensions and
 
21636
# breaks some systems' header files.
 
21637
# AIX                   -qlanglvl=ansi
 
21638
# Ultrix and OSF/1      -std1
 
21639
# HP-UX                 -Aa -D_HPUX_SOURCE
 
21640
# SVR4                  -Xc -D__EXTENSIONS__
 
21641
# removed "-Xc -D__EXTENSIONS__" beacause sun c++ does not like it.
 
21642
for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE"
 
21643
do
 
21644
  CC="$ac_save_CC $ac_arg"
 
21645
  cat >conftest.$ac_ext <<_ACEOF
 
21646
/* confdefs.h.  */
 
21647
_ACEOF
 
21648
cat confdefs.h >>conftest.$ac_ext
 
21649
cat >>conftest.$ac_ext <<_ACEOF
 
21650
/* end confdefs.h.  */
 
21651
#if !defined(__STDC__)
 
21652
choke me
 
21653
#endif
 
21654
/* DYNIX/ptx V4.1.3 can't compile sys/stat.h with -Xc -D__EXTENSIONS__. */
 
21655
#ifdef _SEQUENT_
 
21656
# include <sys/types.h>
 
21657
# include <sys/stat.h>
 
21658
#endif
 
21659
 
 
21660
int
 
21661
main ()
 
21662
{
 
21663
 
 
21664
int test (int i, double x);
 
21665
struct s1 {int (*f) (int a);};
 
21666
struct s2 {int (*f) (double a);};
 
21667
  ;
 
21668
  return 0;
 
21669
}
 
21670
_ACEOF
 
21671
rm -f conftest.$ac_objext
 
21672
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21673
  (eval $ac_compile) 2>conftest.er1
 
21674
  ac_status=$?
 
21675
  grep -v '^ *+' conftest.er1 >conftest.err
 
21676
  rm -f conftest.er1
 
21677
  cat conftest.err >&5
 
21678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21679
  (exit $ac_status); } &&
 
21680
         { ac_try='test -z "$ac_c_werror_flag"
 
21681
                         || test ! -s conftest.err'
 
21682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21683
  (eval $ac_try) 2>&5
 
21684
  ac_status=$?
 
21685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21686
  (exit $ac_status); }; } &&
 
21687
         { ac_try='test -s conftest.$ac_objext'
 
21688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21689
  (eval $ac_try) 2>&5
 
21690
  ac_status=$?
 
21691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21692
  (exit $ac_status); }; }; then
 
21693
  am_cv_prog_cc_stdc="$ac_arg"; break
 
21694
else
 
21695
  echo "$as_me: failed program was:" >&5
 
21696
sed 's/^/| /' conftest.$ac_ext >&5
 
21697
 
 
21698
fi
 
21699
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21700
done
 
21701
CC="$ac_save_CC"
 
21702
 
 
21703
fi
 
21704
 
 
21705
echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
 
21706
echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
 
21707
case "x$am_cv_prog_cc_stdc" in
 
21708
  x|xno) ;;
 
21709
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
 
21710
esac
 
21711
 
 
21712
 
 
21713
# We need an assembler, too
 
21714
# By default we simply use the C compiler to build assembly code.
 
21715
 
 
21716
test "${CCAS+set}" = set || CCAS=$CC
 
21717
test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
 
21718
 
 
21719
 
 
21720
 
 
21721
CCASFLAGS="$CCASFLAGS $ASFLAGS"
 
21722
 
 
21723
# Check if we need noexec stack for assembler
 
21724
 
 
21725
 echo "$as_me:$LINENO: checking whether --noexecstack is desirable for .S files" >&5
 
21726
echo $ECHO_N "checking whether --noexecstack is desirable for .S files... $ECHO_C" >&6
 
21727
if test "${mysql_cv_as_noexecstack+set}" = set; then
 
21728
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21729
else
 
21730
    cat > conftest.c <<EOF
 
21731
void foo (void) { }
 
21732
EOF
 
21733
  if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS
 
21734
                     -S -o conftest.s conftest.c 1>&5'
 
21735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21736
  (eval $ac_try) 2>&5
 
21737
  ac_status=$?
 
21738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21739
  (exit $ac_status); }; } \
 
21740
     && grep .note.GNU-stack conftest.s >/dev/null \
 
21741
     && { ac_try='${CC-cc} $CCASFLAGS $CPPFLAGS -Wa,--noexecstack
 
21742
                       -c -o conftest.o conftest.s 1>&5'
 
21743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21744
  (eval $ac_try) 2>&5
 
21745
  ac_status=$?
 
21746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21747
  (exit $ac_status); }; }
 
21748
  then
 
21749
    mysql_cv_as_noexecstack=yes
 
21750
  else
 
21751
    mysql_cv_as_noexecstack=no
 
21752
  fi
 
21753
  rm -f conftest*
 
21754
fi
 
21755
echo "$as_me:$LINENO: result: $mysql_cv_as_noexecstack" >&5
 
21756
echo "${ECHO_T}$mysql_cv_as_noexecstack" >&6
 
21757
 if test $mysql_cv_as_noexecstack = yes; then
 
21758
   CCASFLAGS="$CCASFLAGS -Wa,--noexecstack"
 
21759
 fi
 
21760
 
 
21761
 
 
21762
if test "$am_cv_prog_cc_stdc" = "no"
 
21763
then
 
21764
  { { echo "$as_me:$LINENO: error: MySQL requires an ANSI C compiler (and a C++ compiler). Try gcc. See the Installation chapter in the Reference Manual." >&5
 
21765
echo "$as_me: error: MySQL requires an ANSI C compiler (and a C++ compiler). Try gcc. See the Installation chapter in the Reference Manual." >&2;}
 
21766
   { (exit 1); exit 1; }; }
 
21767
fi
 
21768
 
 
21769
NOINST_LDFLAGS="-static"
 
21770
 
 
21771
static_nss=""
 
21772
STATIC_NSS_FLAGS=""
 
21773
OTHER_LIBC_LIB=""
 
21774
 
 
21775
# Check whether --with-other-libc or --without-other-libc was given.
 
21776
if test "${with_other_libc+set}" = set; then
 
21777
  withval="$with_other_libc"
 
21778
 
 
21779
   other_libc_include="$withval/include"
 
21780
   other_libc_lib="$withval/lib"
 
21781
   with_other_libc="yes"
 
21782
   enable_shared="no"
 
21783
   all_is_static="yes"
 
21784
   CFLAGS="$CFLAGS -I$other_libc_include"
 
21785
   # There seems to be a feature in gcc that treats system and libc headers
 
21786
   # silently when they violatate ANSI C++ standard, but it is strict otherwise
 
21787
   # since gcc cannot now recognize that our headers are libc, we work around
 
21788
   # by telling it to be permissive. Note that this option only works with
 
21789
   # new versions of gcc (2.95.x and above)
 
21790
   CXXFLAGS="$CXXFLAGS -fpermissive -I$other_libc_include"
 
21791
   if test -f "$other_libc_lib/libnss_files.a"
 
21792
   then
 
21793
     # libc has been compiled with --enable-static-nss
 
21794
     # we need special flags, but we will have to add those later
 
21795
     STATIC_NSS_FLAGS="-lc -lnss_files -lnss_dns -lresolv"
 
21796
     STATIC_NSS_FLAGS="$STATIC_NSS_FLAGS $STATIC_NSS_FLAGS"
 
21797
     OTHER_LIBC_LIB="-static -L$other_libc_lib"
 
21798
     static_nss=1
 
21799
   else
 
21800
     # this is a dirty hack. We if we detect static nss glibc in the special
 
21801
     # location, we do not re-direct the linker to get libraries from there
 
21802
     # during check. The reason is that if we did, we would have to find a
 
21803
     # way to append the special static nss flags to LIBS every time we do
 
21804
     # any check - this is definitely feasible, but not worthwhile the risk
 
21805
     # of breaking other things. So for our purposes it would be sufficient
 
21806
     # to assume that whoever is using static NSS knows what he is doing and
 
21807
     # has sensible libraries in the regular location
 
21808
     LDFLAGS="$LDFLAGS -static -L$other_libc_lib "
 
21809
   fi
 
21810
 
 
21811
   # When linking against custom libc installed separately, we want to force
 
21812
   # all binary builds to be static, including the build done by configure
 
21813
   # itself to test for system features.
 
21814
   with_mysqld_ldflags="-all-static"
 
21815
   with_client_ldflags="-all-static"
 
21816
   NOINST_LDFLAGS="-all-static"
 
21817
 
 
21818
else
 
21819
 
 
21820
  other_libc_include=
 
21821
  other_libc_lib=
 
21822
  with_other_libc="no"
 
21823
 
 
21824
 
 
21825
fi;
 
21826
 
 
21827
 
 
21828
#
 
21829
# Check if we are using Linux and a glibc compiled with static nss
 
21830
# (this is true on the MySQL build machines to avoid NSS problems)
 
21831
#
 
21832
 
 
21833
if test "$TARGET_LINUX" = "true" -a "$static_nss" = ""
 
21834
then
 
21835
  tmp=`nm /usr/lib/libc.a  | grep _nss_files_getaliasent_r`
 
21836
  if test -n "$tmp"
 
21837
  then
 
21838
     STATIC_NSS_FLAGS="-lc -lnss_files -lnss_dns -lresolv"
 
21839
     STATIC_NSS_FLAGS="$STATIC_NSS_FLAGS $STATIC_NSS_FLAGS"
 
21840
     static_nss=1
 
21841
  fi
 
21842
fi
 
21843
 
 
21844
 
 
21845
 
 
21846
# Check whether --with-server-suffix or --without-server-suffix was given.
 
21847
if test "${with_server_suffix+set}" = set; then
 
21848
  withval="$with_server_suffix"
 
21849
   MYSQL_SERVER_SUFFIX=`echo "$withval" | sed -e  's/^\(...................................\)..*$/\1/'`
 
21850
else
 
21851
   MYSQL_SERVER_SUFFIX=
 
21852
 
 
21853
fi;
 
21854
 
 
21855
 
 
21856
# Set flags if we want to force to use pthreads
 
21857
 
 
21858
# Check whether --with-pthread or --without-pthread was given.
 
21859
if test "${with_pthread+set}" = set; then
 
21860
  withval="$with_pthread"
 
21861
   with_pthread=$withval
 
21862
else
 
21863
   with_pthread=no
 
21864
 
 
21865
fi;
 
21866
 
 
21867
# Force use of thread libs LIBS
 
21868
 
 
21869
# Check whether --with-named-thread-libs or --without-named-thread-libs was given.
 
21870
if test "${with_named_thread_libs+set}" = set; then
 
21871
  withval="$with_named_thread_libs"
 
21872
   with_named_thread=$withval
 
21873
else
 
21874
   with_named_thread=no
 
21875
 
 
21876
fi;
 
21877
 
 
21878
# Force use of a curses libs
 
21879
 
 
21880
# Check whether --with-named-curses-libs or --without-named-curses-libs was given.
 
21881
if test "${with_named_curses_libs+set}" = set; then
 
21882
  withval="$with_named_curses_libs"
 
21883
   with_named_curses=$withval
 
21884
else
 
21885
   with_named_curses=no
 
21886
 
 
21887
fi;
 
21888
 
 
21889
# Make thread safe client
 
21890
# Check whether --enable-thread-safe-client or --disable-thread-safe-client was given.
 
21891
if test "${enable_thread_safe_client+set}" = set; then
 
21892
  enableval="$enable_thread_safe_client"
 
21893
   THREAD_SAFE_CLIENT=$enableval
 
21894
else
 
21895
   THREAD_SAFE_CLIENT=no
 
21896
 
 
21897
fi;
 
21898
 
 
21899
# compile with strings functions in assembler
 
21900
# Check whether --enable-assembler or --disable-assembler was given.
 
21901
if test "${enable_assembler+set}" = set; then
 
21902
  enableval="$enable_assembler"
 
21903
   ENABLE_ASSEMBLER=$enableval
 
21904
else
 
21905
   ENABLE_ASSEMBLER=no
 
21906
 
 
21907
fi;
 
21908
 
 
21909
echo "$as_me:$LINENO: checking if we should use assembler functions" >&5
 
21910
echo $ECHO_N "checking if we should use assembler functions... $ECHO_C" >&6
 
21911
# For now we only support assembler on i386 and sparc systems
 
21912
 
 
21913
 
 
21914
if test "$ENABLE_ASSEMBLER" = "yes" -a "$BASE_MACHINE_TYPE" = "i386" && $AS strings/strings-x86.s -o checkassembler >/dev/null 2>&1 && test -f checkassembler && (rm -f checkassembler; exit 0;); then
 
21915
  ASSEMBLER_x86_TRUE=
 
21916
  ASSEMBLER_x86_FALSE='#'
 
21917
else
 
21918
  ASSEMBLER_x86_TRUE='#'
 
21919
  ASSEMBLER_x86_FALSE=
 
21920
fi
 
21921
 
 
21922
 
 
21923
 
 
21924
if test "$ENABLE_ASSEMBLER" = "yes" -a "$BASE_MACHINE_TYPE" = "sparc"; then
 
21925
  ASSEMBLER_sparc32_TRUE=
 
21926
  ASSEMBLER_sparc32_FALSE='#'
 
21927
else
 
21928
  ASSEMBLER_sparc32_TRUE='#'
 
21929
  ASSEMBLER_sparc32_FALSE=
 
21930
fi
 
21931
 
 
21932
 
 
21933
 
 
21934
if test "$ENABLE_ASSEMBLER" = "yes" -a "$BASE_MACHINE_TYPE" = "sparcv9"; then
 
21935
  ASSEMBLER_sparc64_TRUE=
 
21936
  ASSEMBLER_sparc64_FALSE='#'
 
21937
else
 
21938
  ASSEMBLER_sparc64_TRUE='#'
 
21939
  ASSEMBLER_sparc64_FALSE=
 
21940
fi
 
21941
 
 
21942
 
 
21943
 
 
21944
if test "$ASSEMBLER_x86_TRUE" = "" -o "$ASSEMBLER_sparc32_TRUE" = ""; then
 
21945
  ASSEMBLER_TRUE=
 
21946
  ASSEMBLER_FALSE='#'
 
21947
else
 
21948
  ASSEMBLER_TRUE='#'
 
21949
  ASSEMBLER_FALSE=
 
21950
fi
 
21951
 
 
21952
 
 
21953
if test "$ASSEMBLER_TRUE" = ""
 
21954
then
 
21955
  echo "$as_me:$LINENO: result: yes" >&5
 
21956
echo "${ECHO_T}yes" >&6
 
21957
else
 
21958
  echo "$as_me:$LINENO: result: no" >&5
 
21959
echo "${ECHO_T}no" >&6
 
21960
fi
 
21961
 
 
21962
 
 
21963
# Use this to set the place used for unix socket used to local communication.
 
21964
 
 
21965
# Check whether --with-unix-socket-path or --without-unix-socket-path was given.
 
21966
if test "${with_unix_socket_path+set}" = set; then
 
21967
  withval="$with_unix_socket_path"
 
21968
   MYSQL_UNIX_ADDR=$withval
 
21969
else
 
21970
   MYSQL_UNIX_ADDR=$MYSQL_UNIX_ADDR_DEFAULT
 
21971
 
 
21972
fi;
 
21973
 
 
21974
 
 
21975
 
 
21976
# Check whether --with-tcp-port or --without-tcp-port was given.
 
21977
if test "${with_tcp_port+set}" = set; then
 
21978
  withval="$with_tcp_port"
 
21979
   MYSQL_TCP_PORT=$withval
 
21980
else
 
21981
   MYSQL_TCP_PORT=$MYSQL_TCP_PORT_DEFAULT
 
21982
 
 
21983
fi;
 
21984
 
 
21985
# We might want to document the assigned port in the manual.
 
21986
 
 
21987
 
 
21988
# Use this to set the place used for unix socket used to local communication.
 
21989
 
 
21990
# Check whether --with-mysqld-user or --without-mysqld-user was given.
 
21991
if test "${with_mysqld_user+set}" = set; then
 
21992
  withval="$with_mysqld_user"
 
21993
   MYSQLD_USER=$withval
 
21994
else
 
21995
   MYSQLD_USER=mysql
 
21996
 
 
21997
fi;
 
21998
 
 
21999
 
 
22000
# If we should allow LOAD DATA LOCAL
 
22001
echo "$as_me:$LINENO: checking If we should should enable LOAD DATA LOCAL by default" >&5
 
22002
echo $ECHO_N "checking If we should should enable LOAD DATA LOCAL by default... $ECHO_C" >&6
 
22003
# Check whether --enable-local-infile or --disable-local-infile was given.
 
22004
if test "${enable_local_infile+set}" = set; then
 
22005
  enableval="$enable_local_infile"
 
22006
   ENABLED_LOCAL_INFILE=$enableval
 
22007
else
 
22008
   ENABLED_LOCAL_INFILE=no
 
22009
 
 
22010
fi;
 
22011
if test "$ENABLED_LOCAL_INFILE" = "yes"
 
22012
then
 
22013
  echo "$as_me:$LINENO: result: yes" >&5
 
22014
echo "${ECHO_T}yes" >&6
 
22015
 
 
22016
cat >>confdefs.h <<\_ACEOF
 
22017
#define ENABLED_LOCAL_INFILE 1
 
22018
_ACEOF
 
22019
 
 
22020
else
 
22021
  echo "$as_me:$LINENO: result: no" >&5
 
22022
echo "${ECHO_T}no" >&6
 
22023
fi
 
22024
 
 
22025
 
 
22026
  # Check whether --enable-largefile or --disable-largefile was given.
 
22027
if test "${enable_largefile+set}" = set; then
 
22028
  enableval="$enable_largefile"
 
22029
 
 
22030
fi;
 
22031
   if test "$enable_largefile" != no; then
 
22032
     if test -n "$ac_tool_prefix"; then
 
22033
  # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
 
22034
set dummy ${ac_tool_prefix}getconf; ac_word=$2
 
22035
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22036
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
22037
if test "${ac_cv_prog_GETCONF+set}" = set; then
 
22038
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22039
else
 
22040
  if test -n "$GETCONF"; then
 
22041
  ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
 
22042
else
 
22043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22044
for as_dir in $PATH
 
22045
do
 
22046
  IFS=$as_save_IFS
 
22047
  test -z "$as_dir" && as_dir=.
 
22048
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22049
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22050
    ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
 
22051
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22052
    break 2
 
22053
  fi
 
22054
done
 
22055
done
 
22056
 
 
22057
fi
 
22058
fi
 
22059
GETCONF=$ac_cv_prog_GETCONF
 
22060
if test -n "$GETCONF"; then
 
22061
  echo "$as_me:$LINENO: result: $GETCONF" >&5
 
22062
echo "${ECHO_T}$GETCONF" >&6
 
22063
else
 
22064
  echo "$as_me:$LINENO: result: no" >&5
 
22065
echo "${ECHO_T}no" >&6
 
22066
fi
 
22067
 
 
22068
fi
 
22069
if test -z "$ac_cv_prog_GETCONF"; then
 
22070
  ac_ct_GETCONF=$GETCONF
 
22071
  # Extract the first word of "getconf", so it can be a program name with args.
 
22072
set dummy getconf; ac_word=$2
 
22073
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22074
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
22075
if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
 
22076
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22077
else
 
22078
  if test -n "$ac_ct_GETCONF"; then
 
22079
  ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
 
22080
else
 
22081
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22082
for as_dir in $PATH
 
22083
do
 
22084
  IFS=$as_save_IFS
 
22085
  test -z "$as_dir" && as_dir=.
 
22086
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22087
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22088
    ac_cv_prog_ac_ct_GETCONF="getconf"
 
22089
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22090
    break 2
 
22091
  fi
 
22092
done
 
22093
done
 
22094
 
 
22095
fi
 
22096
fi
 
22097
ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
 
22098
if test -n "$ac_ct_GETCONF"; then
 
22099
  echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
 
22100
echo "${ECHO_T}$ac_ct_GETCONF" >&6
 
22101
else
 
22102
  echo "$as_me:$LINENO: result: no" >&5
 
22103
echo "${ECHO_T}no" >&6
 
22104
fi
 
22105
 
 
22106
  GETCONF=$ac_ct_GETCONF
 
22107
else
 
22108
  GETCONF="$ac_cv_prog_GETCONF"
 
22109
fi
 
22110
 
 
22111
     echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
 
22112
echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
 
22113
if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
 
22114
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22115
else
 
22116
  if ($GETCONF LFS_CFLAGS) >conftest.1 2>conftest.2 && test ! -s conftest.2
 
22117
      then
 
22118
        ac_cv_sys_largefile_CFLAGS=`cat conftest.1`
 
22119
      else
 
22120
        ac_cv_sys_largefile_CFLAGS=no
 
22121
        case "$host_os" in
 
22122
           # HP-UX 10.20 requires -D__STDC_EXT__ with gcc 2.95.1.
 
22123
           hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
 
22124
             if test "$GCC" = yes; then
 
22125
                case `$CC --version 2>/dev/null` in
 
22126
                  2.95.*) ac_cv_sys_largefile_CFLAGS=-D__STDC_EXT__ ;;
 
22127
                esac
 
22128
             fi
 
22129
             ;;
 
22130
           # IRIX 6.2 and later require cc -n32.
 
22131
           irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
 
22132
             if test "$GCC" != yes; then
 
22133
               ac_cv_sys_largefile_CFLAGS=-n32
 
22134
             fi
 
22135
           esac
 
22136
           if test "$ac_cv_sys_largefile_CFLAGS" != no; then
 
22137
             ac_save_CC="$CC"
 
22138
             CC="$CC $ac_cv_sys_largefile_CFLAGS"
 
22139
             cat >conftest.$ac_ext <<_ACEOF
 
22140
/* confdefs.h.  */
 
22141
_ACEOF
 
22142
cat confdefs.h >>conftest.$ac_ext
 
22143
cat >>conftest.$ac_ext <<_ACEOF
 
22144
/* end confdefs.h.  */
 
22145
 
 
22146
int
 
22147
main ()
 
22148
{
 
22149
 
 
22150
  ;
 
22151
  return 0;
 
22152
}
 
22153
_ACEOF
 
22154
rm -f conftest.$ac_objext conftest$ac_exeext
 
22155
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22156
  (eval $ac_link) 2>conftest.er1
 
22157
  ac_status=$?
 
22158
  grep -v '^ *+' conftest.er1 >conftest.err
 
22159
  rm -f conftest.er1
 
22160
  cat conftest.err >&5
 
22161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22162
  (exit $ac_status); } &&
 
22163
         { ac_try='test -z "$ac_c_werror_flag"
 
22164
                         || test ! -s conftest.err'
 
22165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22166
  (eval $ac_try) 2>&5
 
22167
  ac_status=$?
 
22168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22169
  (exit $ac_status); }; } &&
 
22170
         { ac_try='test -s conftest$ac_exeext'
 
22171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22172
  (eval $ac_try) 2>&5
 
22173
  ac_status=$?
 
22174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22175
  (exit $ac_status); }; }; then
 
22176
  :
 
22177
else
 
22178
  echo "$as_me: failed program was:" >&5
 
22179
sed 's/^/| /' conftest.$ac_ext >&5
 
22180
 
 
22181
ac_cv_sys_largefile_CFLAGS=no
 
22182
fi
 
22183
rm -f conftest.err conftest.$ac_objext \
 
22184
      conftest$ac_exeext conftest.$ac_ext
 
22185
             CC="$ac_save_CC"
 
22186
           fi
 
22187
      fi
 
22188
      rm -f conftest*
 
22189
fi
 
22190
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
 
22191
echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
 
22192
     echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
 
22193
echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
 
22194
if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
 
22195
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22196
else
 
22197
  if ($GETCONF LFS_LDFLAGS) >conftest.1 2>conftest.2 && test ! -s conftest.2
 
22198
      then
 
22199
        ac_cv_sys_largefile_LDFLAGS=`cat conftest.1`
 
22200
      else
 
22201
        ac_cv_sys_largefile_LDFLAGS=no
 
22202
 
 
22203
      fi
 
22204
      rm -f conftest*
 
22205
fi
 
22206
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
 
22207
echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
 
22208
     echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
 
22209
echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
 
22210
if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
 
22211
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22212
else
 
22213
  if ($GETCONF LFS_LIBS) >conftest.1 2>conftest.2 && test ! -s conftest.2
 
22214
      then
 
22215
        ac_cv_sys_largefile_LIBS=`cat conftest.1`
 
22216
      else
 
22217
        ac_cv_sys_largefile_LIBS=no
 
22218
 
 
22219
      fi
 
22220
      rm -f conftest*
 
22221
fi
 
22222
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
 
22223
echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
 
22224
 
 
22225
     for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
 
22226
       case "$ac_flag" in
 
22227
       no) ;;
 
22228
       -D_FILE_OFFSET_BITS=*) ;;
 
22229
       -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
 
22230
       -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
 
22231
       -D?* | -I?*)
 
22232
         case "$ac_flag" in
 
22233
   no) ;;
 
22234
   ?*)
 
22235
     case "$CPPFLAGS" in
 
22236
     '') CPPFLAGS="$ac_flag" ;;
 
22237
     *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
 
22238
     esac ;;
 
22239
   esac ;;
 
22240
       *)
 
22241
         case "$ac_flag" in
 
22242
   no) ;;
 
22243
   ?*)
 
22244
     case "$CFLAGS" in
 
22245
     '') CFLAGS="$ac_flag" ;;
 
22246
     *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
 
22247
     esac ;;
 
22248
   esac ;;
 
22249
       esac
 
22250
     done
 
22251
     case "$ac_cv_sys_largefile_LDFLAGS" in
 
22252
   no) ;;
 
22253
   ?*)
 
22254
     case "$LDFLAGS" in
 
22255
     '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
 
22256
     *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
 
22257
     esac ;;
 
22258
   esac
 
22259
     case "$ac_cv_sys_largefile_LIBS" in
 
22260
   no) ;;
 
22261
   ?*)
 
22262
     case "$LIBS" in
 
22263
     '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
 
22264
     *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
 
22265
     esac ;;
 
22266
   esac
 
22267
 
 
22268
     echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
 
22269
echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
 
22270
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
 
22271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22272
else
 
22273
  ac_cv_sys_file_offset_bits=no
 
22274
      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
 
22275
        case "$ac_flag" in
 
22276
        -D_FILE_OFFSET_BITS)
 
22277
          ac_cv_sys_file_offset_bits=1 ;;
 
22278
        -D_FILE_OFFSET_BITS=*)
 
22279
          ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
 
22280
        esac
 
22281
      done
 
22282
      case "$host_os" in
 
22283
        # HP-UX 10.20 and later
 
22284
        hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
 
22285
          ac_cv_sys_file_offset_bits=64 ;;
 
22286
        # We can't declare _FILE_OFFSET_BITS here as this will cause
 
22287
        # compile errors as AC_PROG_CC adds include files in confdefs.h
 
22288
        # We solve this (until autoconf is fixed) by instead declaring it
 
22289
        # as define instead
 
22290
        solaris2.[8,9])
 
22291
          CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64"
 
22292
          CXXFLAGS="$CXXFLAGS -D_FILE_OFFSET_BITS=64"
 
22293
          ac_cv_sys_file_offset_bits=no ;;
 
22294
        esac
 
22295
 
 
22296
fi
 
22297
echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
 
22298
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
 
22299
   if test "$ac_cv_sys_file_offset_bits" != no; then
 
22300
 
 
22301
cat >>confdefs.h <<_ACEOF
 
22302
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
22303
_ACEOF
 
22304
 
 
22305
   fi
 
22306
     echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
 
22307
echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
 
22308
if test "${ac_cv_sys_largefile_source+set}" = set; then
 
22309
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22310
else
 
22311
  ac_cv_sys_largefile_source=no
 
22312
      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
 
22313
        case "$ac_flag" in
 
22314
        -D_LARGEFILE_SOURCE)
 
22315
          ac_cv_sys_largefile_source=1 ;;
 
22316
        -D_LARGEFILE_SOURCE=*)
 
22317
          ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
 
22318
        esac
 
22319
      done
 
22320
      case "$host_os" in
 
22321
        # HP-UX 10.20 and later
 
22322
        hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
 
22323
          ac_cv_sys_largefile_source=1 ;;
 
22324
        esac
 
22325
 
 
22326
fi
 
22327
echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
 
22328
echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
 
22329
   if test "$ac_cv_sys_largefile_source" != no; then
 
22330
 
 
22331
cat >>confdefs.h <<_ACEOF
 
22332
#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
 
22333
_ACEOF
 
22334
 
 
22335
   fi
 
22336
     echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
 
22337
echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
 
22338
if test "${ac_cv_sys_large_files+set}" = set; then
 
22339
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22340
else
 
22341
  ac_cv_sys_large_files=no
 
22342
      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
 
22343
        case "$ac_flag" in
 
22344
        -D_LARGE_FILES)
 
22345
          ac_cv_sys_large_files=1 ;;
 
22346
        -D_LARGE_FILES=*)
 
22347
          ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
 
22348
        esac
 
22349
      done
 
22350
      case "$host_os" in
 
22351
        # AIX 4.2 and later
 
22352
        aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
 
22353
          ac_cv_sys_large_files=1 ;;
 
22354
        esac
 
22355
 
 
22356
fi
 
22357
echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
 
22358
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
 
22359
   if test "$ac_cv_sys_large_files" != no; then
 
22360
 
 
22361
cat >>confdefs.h <<_ACEOF
 
22362
#define _LARGE_FILES $ac_cv_sys_large_files
 
22363
_ACEOF
 
22364
 
 
22365
   fi
 
22366
   fi
 
22367
 
 
22368
 
 
22369
# Types that must be checked AFTER large file support is checked
 
22370
echo "$as_me:$LINENO: checking for size_t" >&5
 
22371
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
22372
if test "${ac_cv_type_size_t+set}" = set; then
 
22373
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22374
else
 
22375
  cat >conftest.$ac_ext <<_ACEOF
 
22376
/* confdefs.h.  */
 
22377
_ACEOF
 
22378
cat confdefs.h >>conftest.$ac_ext
 
22379
cat >>conftest.$ac_ext <<_ACEOF
 
22380
/* end confdefs.h.  */
 
22381
$ac_includes_default
 
22382
int
 
22383
main ()
 
22384
{
 
22385
if ((size_t *) 0)
 
22386
  return 0;
 
22387
if (sizeof (size_t))
 
22388
  return 0;
 
22389
  ;
 
22390
  return 0;
 
22391
}
 
22392
_ACEOF
 
22393
rm -f conftest.$ac_objext
 
22394
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22395
  (eval $ac_compile) 2>conftest.er1
 
22396
  ac_status=$?
 
22397
  grep -v '^ *+' conftest.er1 >conftest.err
 
22398
  rm -f conftest.er1
 
22399
  cat conftest.err >&5
 
22400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22401
  (exit $ac_status); } &&
 
22402
         { ac_try='test -z "$ac_c_werror_flag"
 
22403
                         || test ! -s conftest.err'
 
22404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22405
  (eval $ac_try) 2>&5
 
22406
  ac_status=$?
 
22407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22408
  (exit $ac_status); }; } &&
 
22409
         { ac_try='test -s conftest.$ac_objext'
 
22410
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22411
  (eval $ac_try) 2>&5
 
22412
  ac_status=$?
 
22413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22414
  (exit $ac_status); }; }; then
 
22415
  ac_cv_type_size_t=yes
 
22416
else
 
22417
  echo "$as_me: failed program was:" >&5
 
22418
sed 's/^/| /' conftest.$ac_ext >&5
 
22419
 
 
22420
ac_cv_type_size_t=no
 
22421
fi
 
22422
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22423
fi
 
22424
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
22425
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
22426
if test $ac_cv_type_size_t = yes; then
 
22427
  :
 
22428
else
 
22429
 
 
22430
cat >>confdefs.h <<_ACEOF
 
22431
#define size_t unsigned
 
22432
_ACEOF
 
22433
 
 
22434
fi
 
22435
 
 
22436
 
 
22437
#--------------------------------------------------------------------
 
22438
# Check for system header files
 
22439
#--------------------------------------------------------------------
 
22440
 
 
22441
 
 
22442
 
 
22443
 
 
22444
 
 
22445
 
 
22446
ac_header_dirent=no
 
22447
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
22448
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
22449
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
22450
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
 
22451
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22452
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22453
else
 
22454
  cat >conftest.$ac_ext <<_ACEOF
 
22455
/* confdefs.h.  */
 
22456
_ACEOF
 
22457
cat confdefs.h >>conftest.$ac_ext
 
22458
cat >>conftest.$ac_ext <<_ACEOF
 
22459
/* end confdefs.h.  */
 
22460
#include <sys/types.h>
 
22461
#include <$ac_hdr>
 
22462
 
 
22463
int
 
22464
main ()
 
22465
{
 
22466
if ((DIR *) 0)
 
22467
return 0;
 
22468
  ;
 
22469
  return 0;
 
22470
}
 
22471
_ACEOF
 
22472
rm -f conftest.$ac_objext
 
22473
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22474
  (eval $ac_compile) 2>conftest.er1
 
22475
  ac_status=$?
 
22476
  grep -v '^ *+' conftest.er1 >conftest.err
 
22477
  rm -f conftest.er1
 
22478
  cat conftest.err >&5
 
22479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22480
  (exit $ac_status); } &&
 
22481
         { ac_try='test -z "$ac_c_werror_flag"
 
22482
                         || test ! -s conftest.err'
 
22483
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22484
  (eval $ac_try) 2>&5
 
22485
  ac_status=$?
 
22486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22487
  (exit $ac_status); }; } &&
 
22488
         { ac_try='test -s conftest.$ac_objext'
 
22489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22490
  (eval $ac_try) 2>&5
 
22491
  ac_status=$?
 
22492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22493
  (exit $ac_status); }; }; then
 
22494
  eval "$as_ac_Header=yes"
 
22495
else
 
22496
  echo "$as_me: failed program was:" >&5
 
22497
sed 's/^/| /' conftest.$ac_ext >&5
 
22498
 
 
22499
eval "$as_ac_Header=no"
 
22500
fi
 
22501
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22502
fi
 
22503
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22504
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22505
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22506
  cat >>confdefs.h <<_ACEOF
 
22507
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
22508
_ACEOF
 
22509
 
 
22510
ac_header_dirent=$ac_hdr; break
 
22511
fi
 
22512
 
 
22513
done
 
22514
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
22515
if test $ac_header_dirent = dirent.h; then
 
22516
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
22517
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
22518
if test "${ac_cv_search_opendir+set}" = set; then
 
22519
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22520
else
 
22521
  ac_func_search_save_LIBS=$LIBS
 
22522
ac_cv_search_opendir=no
 
22523
cat >conftest.$ac_ext <<_ACEOF
 
22524
/* confdefs.h.  */
 
22525
_ACEOF
 
22526
cat confdefs.h >>conftest.$ac_ext
 
22527
cat >>conftest.$ac_ext <<_ACEOF
 
22528
/* end confdefs.h.  */
 
22529
 
 
22530
/* Override any gcc2 internal prototype to avoid an error.  */
 
22531
#ifdef __cplusplus
 
22532
extern "C"
 
22533
#endif
 
22534
/* We use char because int might match the return type of a gcc2
 
22535
   builtin and then its argument prototype would still apply.  */
 
22536
char opendir ();
 
22537
int
 
22538
main ()
 
22539
{
 
22540
opendir ();
 
22541
  ;
 
22542
  return 0;
 
22543
}
 
22544
_ACEOF
 
22545
rm -f conftest.$ac_objext conftest$ac_exeext
 
22546
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22547
  (eval $ac_link) 2>conftest.er1
 
22548
  ac_status=$?
 
22549
  grep -v '^ *+' conftest.er1 >conftest.err
 
22550
  rm -f conftest.er1
 
22551
  cat conftest.err >&5
 
22552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22553
  (exit $ac_status); } &&
 
22554
         { ac_try='test -z "$ac_c_werror_flag"
 
22555
                         || test ! -s conftest.err'
 
22556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22557
  (eval $ac_try) 2>&5
 
22558
  ac_status=$?
 
22559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22560
  (exit $ac_status); }; } &&
 
22561
         { ac_try='test -s conftest$ac_exeext'
 
22562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22563
  (eval $ac_try) 2>&5
 
22564
  ac_status=$?
 
22565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22566
  (exit $ac_status); }; }; then
 
22567
  ac_cv_search_opendir="none required"
 
22568
else
 
22569
  echo "$as_me: failed program was:" >&5
 
22570
sed 's/^/| /' conftest.$ac_ext >&5
 
22571
 
 
22572
fi
 
22573
rm -f conftest.err conftest.$ac_objext \
 
22574
      conftest$ac_exeext conftest.$ac_ext
 
22575
if test "$ac_cv_search_opendir" = no; then
 
22576
  for ac_lib in dir; do
 
22577
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
22578
    cat >conftest.$ac_ext <<_ACEOF
 
22579
/* confdefs.h.  */
 
22580
_ACEOF
 
22581
cat confdefs.h >>conftest.$ac_ext
 
22582
cat >>conftest.$ac_ext <<_ACEOF
 
22583
/* end confdefs.h.  */
 
22584
 
 
22585
/* Override any gcc2 internal prototype to avoid an error.  */
 
22586
#ifdef __cplusplus
 
22587
extern "C"
 
22588
#endif
 
22589
/* We use char because int might match the return type of a gcc2
 
22590
   builtin and then its argument prototype would still apply.  */
 
22591
char opendir ();
 
22592
int
 
22593
main ()
 
22594
{
 
22595
opendir ();
 
22596
  ;
 
22597
  return 0;
 
22598
}
 
22599
_ACEOF
 
22600
rm -f conftest.$ac_objext conftest$ac_exeext
 
22601
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22602
  (eval $ac_link) 2>conftest.er1
 
22603
  ac_status=$?
 
22604
  grep -v '^ *+' conftest.er1 >conftest.err
 
22605
  rm -f conftest.er1
 
22606
  cat conftest.err >&5
 
22607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22608
  (exit $ac_status); } &&
 
22609
         { ac_try='test -z "$ac_c_werror_flag"
 
22610
                         || test ! -s conftest.err'
 
22611
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22612
  (eval $ac_try) 2>&5
 
22613
  ac_status=$?
 
22614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22615
  (exit $ac_status); }; } &&
 
22616
         { ac_try='test -s conftest$ac_exeext'
 
22617
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22618
  (eval $ac_try) 2>&5
 
22619
  ac_status=$?
 
22620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22621
  (exit $ac_status); }; }; then
 
22622
  ac_cv_search_opendir="-l$ac_lib"
 
22623
break
 
22624
else
 
22625
  echo "$as_me: failed program was:" >&5
 
22626
sed 's/^/| /' conftest.$ac_ext >&5
 
22627
 
 
22628
fi
 
22629
rm -f conftest.err conftest.$ac_objext \
 
22630
      conftest$ac_exeext conftest.$ac_ext
 
22631
  done
 
22632
fi
 
22633
LIBS=$ac_func_search_save_LIBS
 
22634
fi
 
22635
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
22636
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
22637
if test "$ac_cv_search_opendir" != no; then
 
22638
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
22639
 
 
22640
fi
 
22641
 
 
22642
else
 
22643
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
22644
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
22645
if test "${ac_cv_search_opendir+set}" = set; then
 
22646
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22647
else
 
22648
  ac_func_search_save_LIBS=$LIBS
 
22649
ac_cv_search_opendir=no
 
22650
cat >conftest.$ac_ext <<_ACEOF
 
22651
/* confdefs.h.  */
 
22652
_ACEOF
 
22653
cat confdefs.h >>conftest.$ac_ext
 
22654
cat >>conftest.$ac_ext <<_ACEOF
 
22655
/* end confdefs.h.  */
 
22656
 
 
22657
/* Override any gcc2 internal prototype to avoid an error.  */
 
22658
#ifdef __cplusplus
 
22659
extern "C"
 
22660
#endif
 
22661
/* We use char because int might match the return type of a gcc2
 
22662
   builtin and then its argument prototype would still apply.  */
 
22663
char opendir ();
 
22664
int
 
22665
main ()
 
22666
{
 
22667
opendir ();
 
22668
  ;
 
22669
  return 0;
 
22670
}
 
22671
_ACEOF
 
22672
rm -f conftest.$ac_objext conftest$ac_exeext
 
22673
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22674
  (eval $ac_link) 2>conftest.er1
 
22675
  ac_status=$?
 
22676
  grep -v '^ *+' conftest.er1 >conftest.err
 
22677
  rm -f conftest.er1
 
22678
  cat conftest.err >&5
 
22679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22680
  (exit $ac_status); } &&
 
22681
         { ac_try='test -z "$ac_c_werror_flag"
 
22682
                         || test ! -s conftest.err'
 
22683
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22684
  (eval $ac_try) 2>&5
 
22685
  ac_status=$?
 
22686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22687
  (exit $ac_status); }; } &&
 
22688
         { ac_try='test -s conftest$ac_exeext'
 
22689
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22690
  (eval $ac_try) 2>&5
 
22691
  ac_status=$?
 
22692
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22693
  (exit $ac_status); }; }; then
 
22694
  ac_cv_search_opendir="none required"
 
22695
else
 
22696
  echo "$as_me: failed program was:" >&5
 
22697
sed 's/^/| /' conftest.$ac_ext >&5
 
22698
 
 
22699
fi
 
22700
rm -f conftest.err conftest.$ac_objext \
 
22701
      conftest$ac_exeext conftest.$ac_ext
 
22702
if test "$ac_cv_search_opendir" = no; then
 
22703
  for ac_lib in x; do
 
22704
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
22705
    cat >conftest.$ac_ext <<_ACEOF
 
22706
/* confdefs.h.  */
 
22707
_ACEOF
 
22708
cat confdefs.h >>conftest.$ac_ext
 
22709
cat >>conftest.$ac_ext <<_ACEOF
 
22710
/* end confdefs.h.  */
 
22711
 
 
22712
/* Override any gcc2 internal prototype to avoid an error.  */
 
22713
#ifdef __cplusplus
 
22714
extern "C"
 
22715
#endif
 
22716
/* We use char because int might match the return type of a gcc2
 
22717
   builtin and then its argument prototype would still apply.  */
 
22718
char opendir ();
 
22719
int
 
22720
main ()
 
22721
{
 
22722
opendir ();
 
22723
  ;
 
22724
  return 0;
 
22725
}
 
22726
_ACEOF
 
22727
rm -f conftest.$ac_objext conftest$ac_exeext
 
22728
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22729
  (eval $ac_link) 2>conftest.er1
 
22730
  ac_status=$?
 
22731
  grep -v '^ *+' conftest.er1 >conftest.err
 
22732
  rm -f conftest.er1
 
22733
  cat conftest.err >&5
 
22734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22735
  (exit $ac_status); } &&
 
22736
         { ac_try='test -z "$ac_c_werror_flag"
 
22737
                         || test ! -s conftest.err'
 
22738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22739
  (eval $ac_try) 2>&5
 
22740
  ac_status=$?
 
22741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22742
  (exit $ac_status); }; } &&
 
22743
         { ac_try='test -s conftest$ac_exeext'
 
22744
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22745
  (eval $ac_try) 2>&5
 
22746
  ac_status=$?
 
22747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22748
  (exit $ac_status); }; }; then
 
22749
  ac_cv_search_opendir="-l$ac_lib"
 
22750
break
 
22751
else
 
22752
  echo "$as_me: failed program was:" >&5
 
22753
sed 's/^/| /' conftest.$ac_ext >&5
 
22754
 
 
22755
fi
 
22756
rm -f conftest.err conftest.$ac_objext \
 
22757
      conftest$ac_exeext conftest.$ac_ext
 
22758
  done
 
22759
fi
 
22760
LIBS=$ac_func_search_save_LIBS
 
22761
fi
 
22762
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
22763
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
22764
if test "$ac_cv_search_opendir" != no; then
 
22765
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
22766
 
 
22767
fi
 
22768
 
 
22769
fi
 
22770
 
 
22771
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
22772
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
22773
if test "${ac_cv_header_stdc+set}" = set; then
 
22774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22775
else
 
22776
  cat >conftest.$ac_ext <<_ACEOF
 
22777
/* confdefs.h.  */
 
22778
_ACEOF
 
22779
cat confdefs.h >>conftest.$ac_ext
 
22780
cat >>conftest.$ac_ext <<_ACEOF
 
22781
/* end confdefs.h.  */
 
22782
#include <stdlib.h>
 
22783
#include <stdarg.h>
 
22784
#include <string.h>
 
22785
#include <float.h>
 
22786
 
 
22787
int
 
22788
main ()
 
22789
{
 
22790
 
 
22791
  ;
 
22792
  return 0;
 
22793
}
 
22794
_ACEOF
 
22795
rm -f conftest.$ac_objext
 
22796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22797
  (eval $ac_compile) 2>conftest.er1
 
22798
  ac_status=$?
 
22799
  grep -v '^ *+' conftest.er1 >conftest.err
 
22800
  rm -f conftest.er1
 
22801
  cat conftest.err >&5
 
22802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22803
  (exit $ac_status); } &&
 
22804
         { ac_try='test -z "$ac_c_werror_flag"
 
22805
                         || test ! -s conftest.err'
 
22806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22807
  (eval $ac_try) 2>&5
 
22808
  ac_status=$?
 
22809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22810
  (exit $ac_status); }; } &&
 
22811
         { ac_try='test -s conftest.$ac_objext'
 
22812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22813
  (eval $ac_try) 2>&5
 
22814
  ac_status=$?
 
22815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22816
  (exit $ac_status); }; }; then
 
22817
  ac_cv_header_stdc=yes
 
22818
else
 
22819
  echo "$as_me: failed program was:" >&5
 
22820
sed 's/^/| /' conftest.$ac_ext >&5
 
22821
 
 
22822
ac_cv_header_stdc=no
 
22823
fi
 
22824
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22825
 
 
22826
if test $ac_cv_header_stdc = yes; then
 
22827
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
22828
  cat >conftest.$ac_ext <<_ACEOF
 
22829
/* confdefs.h.  */
 
22830
_ACEOF
 
22831
cat confdefs.h >>conftest.$ac_ext
 
22832
cat >>conftest.$ac_ext <<_ACEOF
 
22833
/* end confdefs.h.  */
 
22834
#include <string.h>
 
22835
 
 
22836
_ACEOF
 
22837
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
22838
  $EGREP "memchr" >/dev/null 2>&1; then
 
22839
  :
 
22840
else
 
22841
  ac_cv_header_stdc=no
 
22842
fi
 
22843
rm -f conftest*
 
22844
 
 
22845
fi
 
22846
 
 
22847
if test $ac_cv_header_stdc = yes; then
 
22848
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
22849
  cat >conftest.$ac_ext <<_ACEOF
 
22850
/* confdefs.h.  */
 
22851
_ACEOF
 
22852
cat confdefs.h >>conftest.$ac_ext
 
22853
cat >>conftest.$ac_ext <<_ACEOF
 
22854
/* end confdefs.h.  */
 
22855
#include <stdlib.h>
 
22856
 
 
22857
_ACEOF
 
22858
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
22859
  $EGREP "free" >/dev/null 2>&1; then
 
22860
  :
 
22861
else
 
22862
  ac_cv_header_stdc=no
 
22863
fi
 
22864
rm -f conftest*
 
22865
 
 
22866
fi
 
22867
 
 
22868
if test $ac_cv_header_stdc = yes; then
 
22869
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
22870
  if test "$cross_compiling" = yes; then
 
22871
  :
 
22872
else
 
22873
  cat >conftest.$ac_ext <<_ACEOF
 
22874
/* confdefs.h.  */
 
22875
_ACEOF
 
22876
cat confdefs.h >>conftest.$ac_ext
 
22877
cat >>conftest.$ac_ext <<_ACEOF
 
22878
/* end confdefs.h.  */
 
22879
#include <ctype.h>
 
22880
#if ((' ' & 0x0FF) == 0x020)
 
22881
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
22882
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
22883
#else
 
22884
# define ISLOWER(c) \
 
22885
                   (('a' <= (c) && (c) <= 'i') \
 
22886
                     || ('j' <= (c) && (c) <= 'r') \
 
22887
                     || ('s' <= (c) && (c) <= 'z'))
 
22888
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
22889
#endif
 
22890
 
 
22891
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
22892
int
 
22893
main ()
 
22894
{
 
22895
  int i;
 
22896
  for (i = 0; i < 256; i++)
 
22897
    if (XOR (islower (i), ISLOWER (i))
 
22898
        || toupper (i) != TOUPPER (i))
 
22899
      exit(2);
 
22900
  exit (0);
 
22901
}
 
22902
_ACEOF
 
22903
rm -f conftest$ac_exeext
 
22904
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22905
  (eval $ac_link) 2>&5
 
22906
  ac_status=$?
 
22907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22908
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22910
  (eval $ac_try) 2>&5
 
22911
  ac_status=$?
 
22912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22913
  (exit $ac_status); }; }; then
 
22914
  :
 
22915
else
 
22916
  echo "$as_me: program exited with status $ac_status" >&5
 
22917
echo "$as_me: failed program was:" >&5
 
22918
sed 's/^/| /' conftest.$ac_ext >&5
 
22919
 
 
22920
( exit $ac_status )
 
22921
ac_cv_header_stdc=no
 
22922
fi
 
22923
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22924
fi
 
22925
fi
 
22926
fi
 
22927
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
22928
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
22929
if test $ac_cv_header_stdc = yes; then
 
22930
 
 
22931
cat >>confdefs.h <<\_ACEOF
 
22932
#define STDC_HEADERS 1
 
22933
_ACEOF
 
22934
 
 
22935
fi
 
22936
 
 
22937
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
22938
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
 
22939
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
22940
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22941
else
 
22942
  cat >conftest.$ac_ext <<_ACEOF
 
22943
/* confdefs.h.  */
 
22944
_ACEOF
 
22945
cat confdefs.h >>conftest.$ac_ext
 
22946
cat >>conftest.$ac_ext <<_ACEOF
 
22947
/* end confdefs.h.  */
 
22948
#include <sys/types.h>
 
22949
#include <sys/wait.h>
 
22950
#ifndef WEXITSTATUS
 
22951
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
 
22952
#endif
 
22953
#ifndef WIFEXITED
 
22954
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
22955
#endif
 
22956
 
 
22957
int
 
22958
main ()
 
22959
{
 
22960
  int s;
 
22961
  wait (&s);
 
22962
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
22963
  ;
 
22964
  return 0;
 
22965
}
 
22966
_ACEOF
 
22967
rm -f conftest.$ac_objext
 
22968
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22969
  (eval $ac_compile) 2>conftest.er1
 
22970
  ac_status=$?
 
22971
  grep -v '^ *+' conftest.er1 >conftest.err
 
22972
  rm -f conftest.er1
 
22973
  cat conftest.err >&5
 
22974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22975
  (exit $ac_status); } &&
 
22976
         { ac_try='test -z "$ac_c_werror_flag"
 
22977
                         || test ! -s conftest.err'
 
22978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22979
  (eval $ac_try) 2>&5
 
22980
  ac_status=$?
 
22981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22982
  (exit $ac_status); }; } &&
 
22983
         { ac_try='test -s conftest.$ac_objext'
 
22984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22985
  (eval $ac_try) 2>&5
 
22986
  ac_status=$?
 
22987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22988
  (exit $ac_status); }; }; then
 
22989
  ac_cv_header_sys_wait_h=yes
 
22990
else
 
22991
  echo "$as_me: failed program was:" >&5
 
22992
sed 's/^/| /' conftest.$ac_ext >&5
 
22993
 
 
22994
ac_cv_header_sys_wait_h=no
 
22995
fi
 
22996
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22997
fi
 
22998
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
22999
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
 
23000
if test $ac_cv_header_sys_wait_h = yes; then
 
23001
 
 
23002
cat >>confdefs.h <<\_ACEOF
 
23003
#define HAVE_SYS_WAIT_H 1
 
23004
_ACEOF
 
23005
 
 
23006
fi
 
23007
 
 
23008
 
 
23009
 
 
23010
 
 
23011
 
 
23012
 
 
23013
 
 
23014
 
 
23015
 
 
23016
 
 
23017
 
 
23018
 
 
23019
 
 
23020
 
 
23021
 
 
23022
 
 
23023
 
 
23024
 
 
23025
 
 
23026
 
 
23027
 
 
23028
 
 
23029
 
 
23030
 
 
23031
 
 
23032
 
 
23033
 
 
23034
 
 
23035
 
 
23036
 
 
23037
 
 
23038
 
 
23039
 
 
23040
 
 
23041
 
 
23042
 
 
23043
 
 
23044
 
 
23045
 
 
23046
 
 
23047
for ac_header in fcntl.h float.h floatingpoint.h ieeefp.h limits.h \
 
23048
 memory.h pwd.h select.h \
 
23049
 stdlib.h stddef.h \
 
23050
 strings.h string.h synch.h sys/mman.h sys/socket.h netinet/in.h arpa/inet.h \
 
23051
 sys/timeb.h sys/types.h sys/un.h sys/vadvise.h sys/wait.h term.h \
 
23052
 unistd.h utime.h sys/utime.h termio.h termios.h sched.h crypt.h alloca.h \
 
23053
 sys/ioctl.h malloc.h sys/malloc.h sys/ipc.h sys/shm.h linux/config.h \
 
23054
 sys/resource.h sys/param.h
 
23055
do
 
23056
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23057
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23058
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23059
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23060
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23062
fi
 
23063
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23064
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23065
else
 
23066
  # Is the header compilable?
 
23067
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23068
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
23069
cat >conftest.$ac_ext <<_ACEOF
 
23070
/* confdefs.h.  */
 
23071
_ACEOF
 
23072
cat confdefs.h >>conftest.$ac_ext
 
23073
cat >>conftest.$ac_ext <<_ACEOF
 
23074
/* end confdefs.h.  */
 
23075
$ac_includes_default
 
23076
#include <$ac_header>
 
23077
_ACEOF
 
23078
rm -f conftest.$ac_objext
 
23079
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23080
  (eval $ac_compile) 2>conftest.er1
 
23081
  ac_status=$?
 
23082
  grep -v '^ *+' conftest.er1 >conftest.err
 
23083
  rm -f conftest.er1
 
23084
  cat conftest.err >&5
 
23085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23086
  (exit $ac_status); } &&
 
23087
         { ac_try='test -z "$ac_c_werror_flag"
 
23088
                         || test ! -s conftest.err'
 
23089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23090
  (eval $ac_try) 2>&5
 
23091
  ac_status=$?
 
23092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23093
  (exit $ac_status); }; } &&
 
23094
         { ac_try='test -s conftest.$ac_objext'
 
23095
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23096
  (eval $ac_try) 2>&5
 
23097
  ac_status=$?
 
23098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23099
  (exit $ac_status); }; }; then
 
23100
  ac_header_compiler=yes
 
23101
else
 
23102
  echo "$as_me: failed program was:" >&5
 
23103
sed 's/^/| /' conftest.$ac_ext >&5
 
23104
 
 
23105
ac_header_compiler=no
 
23106
fi
 
23107
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23108
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23109
echo "${ECHO_T}$ac_header_compiler" >&6
 
23110
 
 
23111
# Is the header present?
 
23112
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23113
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
23114
cat >conftest.$ac_ext <<_ACEOF
 
23115
/* confdefs.h.  */
 
23116
_ACEOF
 
23117
cat confdefs.h >>conftest.$ac_ext
 
23118
cat >>conftest.$ac_ext <<_ACEOF
 
23119
/* end confdefs.h.  */
 
23120
#include <$ac_header>
 
23121
_ACEOF
 
23122
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23123
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23124
  ac_status=$?
 
23125
  grep -v '^ *+' conftest.er1 >conftest.err
 
23126
  rm -f conftest.er1
 
23127
  cat conftest.err >&5
 
23128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23129
  (exit $ac_status); } >/dev/null; then
 
23130
  if test -s conftest.err; then
 
23131
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23132
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23133
  else
 
23134
    ac_cpp_err=
 
23135
  fi
 
23136
else
 
23137
  ac_cpp_err=yes
 
23138
fi
 
23139
if test -z "$ac_cpp_err"; then
 
23140
  ac_header_preproc=yes
 
23141
else
 
23142
  echo "$as_me: failed program was:" >&5
 
23143
sed 's/^/| /' conftest.$ac_ext >&5
 
23144
 
 
23145
  ac_header_preproc=no
 
23146
fi
 
23147
rm -f conftest.err conftest.$ac_ext
 
23148
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23149
echo "${ECHO_T}$ac_header_preproc" >&6
 
23150
 
 
23151
# So?  What about this header?
 
23152
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23153
  yes:no: )
 
23154
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23155
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23156
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23157
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23158
    ac_header_preproc=yes
 
23159
    ;;
 
23160
  no:yes:* )
 
23161
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23162
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23163
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23164
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23165
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23166
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23167
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23168
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23169
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23170
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23171
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23172
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23173
    (
 
23174
      cat <<\_ASBOX
 
23175
## ------------------------------------------ ##
 
23176
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23177
## ------------------------------------------ ##
 
23178
_ASBOX
 
23179
    ) |
 
23180
      sed "s/^/$as_me: WARNING:     /" >&2
 
23181
    ;;
 
23182
esac
 
23183
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23184
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23185
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23186
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23187
else
 
23188
  eval "$as_ac_Header=\$ac_header_preproc"
 
23189
fi
 
23190
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23191
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23192
 
 
23193
fi
 
23194
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
23195
  cat >>confdefs.h <<_ACEOF
 
23196
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23197
_ACEOF
 
23198
 
 
23199
fi
 
23200
 
 
23201
done
 
23202
 
 
23203
 
 
23204
#--------------------------------------------------------------------
 
23205
# Check for system libraries. Adds the library to $LIBS
 
23206
# and defines HAVE_LIBM etc
 
23207
#--------------------------------------------------------------------
 
23208
 
 
23209
 
 
23210
echo "$as_me:$LINENO: checking for floor in -lm" >&5
 
23211
echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
 
23212
if test "${ac_cv_lib_m_floor+set}" = set; then
 
23213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23214
else
 
23215
  ac_check_lib_save_LIBS=$LIBS
 
23216
LIBS="-lm  $LIBS"
 
23217
cat >conftest.$ac_ext <<_ACEOF
 
23218
/* confdefs.h.  */
 
23219
_ACEOF
 
23220
cat confdefs.h >>conftest.$ac_ext
 
23221
cat >>conftest.$ac_ext <<_ACEOF
 
23222
/* end confdefs.h.  */
 
23223
 
 
23224
/* Override any gcc2 internal prototype to avoid an error.  */
 
23225
#ifdef __cplusplus
 
23226
extern "C"
 
23227
#endif
 
23228
/* We use char because int might match the return type of a gcc2
 
23229
   builtin and then its argument prototype would still apply.  */
 
23230
char floor ();
 
23231
int
 
23232
main ()
 
23233
{
 
23234
floor ();
 
23235
  ;
 
23236
  return 0;
 
23237
}
 
23238
_ACEOF
 
23239
rm -f conftest.$ac_objext conftest$ac_exeext
 
23240
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23241
  (eval $ac_link) 2>conftest.er1
 
23242
  ac_status=$?
 
23243
  grep -v '^ *+' conftest.er1 >conftest.err
 
23244
  rm -f conftest.er1
 
23245
  cat conftest.err >&5
 
23246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23247
  (exit $ac_status); } &&
 
23248
         { ac_try='test -z "$ac_c_werror_flag"
 
23249
                         || test ! -s conftest.err'
 
23250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23251
  (eval $ac_try) 2>&5
 
23252
  ac_status=$?
 
23253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23254
  (exit $ac_status); }; } &&
 
23255
         { ac_try='test -s conftest$ac_exeext'
 
23256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23257
  (eval $ac_try) 2>&5
 
23258
  ac_status=$?
 
23259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23260
  (exit $ac_status); }; }; then
 
23261
  ac_cv_lib_m_floor=yes
 
23262
else
 
23263
  echo "$as_me: failed program was:" >&5
 
23264
sed 's/^/| /' conftest.$ac_ext >&5
 
23265
 
 
23266
ac_cv_lib_m_floor=no
 
23267
fi
 
23268
rm -f conftest.err conftest.$ac_objext \
 
23269
      conftest$ac_exeext conftest.$ac_ext
 
23270
LIBS=$ac_check_lib_save_LIBS
 
23271
fi
 
23272
echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
 
23273
echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
 
23274
if test $ac_cv_lib_m_floor = yes; then
 
23275
  cat >>confdefs.h <<_ACEOF
 
23276
#define HAVE_LIBM 1
 
23277
_ACEOF
 
23278
 
 
23279
  LIBS="-lm $LIBS"
 
23280
 
 
23281
else
 
23282
 
 
23283
echo "$as_me:$LINENO: checking for __infinity in -lm" >&5
 
23284
echo $ECHO_N "checking for __infinity in -lm... $ECHO_C" >&6
 
23285
if test "${ac_cv_lib_m___infinity+set}" = set; then
 
23286
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23287
else
 
23288
  ac_check_lib_save_LIBS=$LIBS
 
23289
LIBS="-lm  $LIBS"
 
23290
cat >conftest.$ac_ext <<_ACEOF
 
23291
/* confdefs.h.  */
 
23292
_ACEOF
 
23293
cat confdefs.h >>conftest.$ac_ext
 
23294
cat >>conftest.$ac_ext <<_ACEOF
 
23295
/* end confdefs.h.  */
 
23296
 
 
23297
/* Override any gcc2 internal prototype to avoid an error.  */
 
23298
#ifdef __cplusplus
 
23299
extern "C"
 
23300
#endif
 
23301
/* We use char because int might match the return type of a gcc2
 
23302
   builtin and then its argument prototype would still apply.  */
 
23303
char __infinity ();
 
23304
int
 
23305
main ()
 
23306
{
 
23307
__infinity ();
 
23308
  ;
 
23309
  return 0;
 
23310
}
 
23311
_ACEOF
 
23312
rm -f conftest.$ac_objext conftest$ac_exeext
 
23313
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23314
  (eval $ac_link) 2>conftest.er1
 
23315
  ac_status=$?
 
23316
  grep -v '^ *+' conftest.er1 >conftest.err
 
23317
  rm -f conftest.er1
 
23318
  cat conftest.err >&5
 
23319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23320
  (exit $ac_status); } &&
 
23321
         { ac_try='test -z "$ac_c_werror_flag"
 
23322
                         || test ! -s conftest.err'
 
23323
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23324
  (eval $ac_try) 2>&5
 
23325
  ac_status=$?
 
23326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23327
  (exit $ac_status); }; } &&
 
23328
         { ac_try='test -s conftest$ac_exeext'
 
23329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23330
  (eval $ac_try) 2>&5
 
23331
  ac_status=$?
 
23332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23333
  (exit $ac_status); }; }; then
 
23334
  ac_cv_lib_m___infinity=yes
 
23335
else
 
23336
  echo "$as_me: failed program was:" >&5
 
23337
sed 's/^/| /' conftest.$ac_ext >&5
 
23338
 
 
23339
ac_cv_lib_m___infinity=no
 
23340
fi
 
23341
rm -f conftest.err conftest.$ac_objext \
 
23342
      conftest$ac_exeext conftest.$ac_ext
 
23343
LIBS=$ac_check_lib_save_LIBS
 
23344
fi
 
23345
echo "$as_me:$LINENO: result: $ac_cv_lib_m___infinity" >&5
 
23346
echo "${ECHO_T}$ac_cv_lib_m___infinity" >&6
 
23347
if test $ac_cv_lib_m___infinity = yes; then
 
23348
  cat >>confdefs.h <<_ACEOF
 
23349
#define HAVE_LIBM 1
 
23350
_ACEOF
 
23351
 
 
23352
  LIBS="-lm $LIBS"
 
23353
 
 
23354
fi
 
23355
 
 
23356
fi
 
23357
 
 
23358
 
 
23359
 
 
23360
echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl_r" >&5
 
23361
echo $ECHO_N "checking for gethostbyname_r in -lnsl_r... $ECHO_C" >&6
 
23362
if test "${ac_cv_lib_nsl_r_gethostbyname_r+set}" = set; then
 
23363
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23364
else
 
23365
  ac_check_lib_save_LIBS=$LIBS
 
23366
LIBS="-lnsl_r  $LIBS"
 
23367
cat >conftest.$ac_ext <<_ACEOF
 
23368
/* confdefs.h.  */
 
23369
_ACEOF
 
23370
cat confdefs.h >>conftest.$ac_ext
 
23371
cat >>conftest.$ac_ext <<_ACEOF
 
23372
/* end confdefs.h.  */
 
23373
 
 
23374
/* Override any gcc2 internal prototype to avoid an error.  */
 
23375
#ifdef __cplusplus
 
23376
extern "C"
 
23377
#endif
 
23378
/* We use char because int might match the return type of a gcc2
 
23379
   builtin and then its argument prototype would still apply.  */
 
23380
char gethostbyname_r ();
 
23381
int
 
23382
main ()
 
23383
{
 
23384
gethostbyname_r ();
 
23385
  ;
 
23386
  return 0;
 
23387
}
 
23388
_ACEOF
 
23389
rm -f conftest.$ac_objext conftest$ac_exeext
 
23390
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23391
  (eval $ac_link) 2>conftest.er1
 
23392
  ac_status=$?
 
23393
  grep -v '^ *+' conftest.er1 >conftest.err
 
23394
  rm -f conftest.er1
 
23395
  cat conftest.err >&5
 
23396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23397
  (exit $ac_status); } &&
 
23398
         { ac_try='test -z "$ac_c_werror_flag"
 
23399
                         || test ! -s conftest.err'
 
23400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23401
  (eval $ac_try) 2>&5
 
23402
  ac_status=$?
 
23403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23404
  (exit $ac_status); }; } &&
 
23405
         { ac_try='test -s conftest$ac_exeext'
 
23406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23407
  (eval $ac_try) 2>&5
 
23408
  ac_status=$?
 
23409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23410
  (exit $ac_status); }; }; then
 
23411
  ac_cv_lib_nsl_r_gethostbyname_r=yes
 
23412
else
 
23413
  echo "$as_me: failed program was:" >&5
 
23414
sed 's/^/| /' conftest.$ac_ext >&5
 
23415
 
 
23416
ac_cv_lib_nsl_r_gethostbyname_r=no
 
23417
fi
 
23418
rm -f conftest.err conftest.$ac_objext \
 
23419
      conftest$ac_exeext conftest.$ac_ext
 
23420
LIBS=$ac_check_lib_save_LIBS
 
23421
fi
 
23422
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_r_gethostbyname_r" >&5
 
23423
echo "${ECHO_T}$ac_cv_lib_nsl_r_gethostbyname_r" >&6
 
23424
if test $ac_cv_lib_nsl_r_gethostbyname_r = yes; then
 
23425
  cat >>confdefs.h <<_ACEOF
 
23426
#define HAVE_LIBNSL_R 1
 
23427
_ACEOF
 
23428
 
 
23429
  LIBS="-lnsl_r $LIBS"
 
23430
 
 
23431
else
 
23432
 
 
23433
echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
 
23434
echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
 
23435
if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
 
23436
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23437
else
 
23438
  ac_check_lib_save_LIBS=$LIBS
 
23439
LIBS="-lnsl  $LIBS"
 
23440
cat >conftest.$ac_ext <<_ACEOF
 
23441
/* confdefs.h.  */
 
23442
_ACEOF
 
23443
cat confdefs.h >>conftest.$ac_ext
 
23444
cat >>conftest.$ac_ext <<_ACEOF
 
23445
/* end confdefs.h.  */
 
23446
 
 
23447
/* Override any gcc2 internal prototype to avoid an error.  */
 
23448
#ifdef __cplusplus
 
23449
extern "C"
 
23450
#endif
 
23451
/* We use char because int might match the return type of a gcc2
 
23452
   builtin and then its argument prototype would still apply.  */
 
23453
char gethostbyname_r ();
 
23454
int
 
23455
main ()
 
23456
{
 
23457
gethostbyname_r ();
 
23458
  ;
 
23459
  return 0;
 
23460
}
 
23461
_ACEOF
 
23462
rm -f conftest.$ac_objext conftest$ac_exeext
 
23463
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23464
  (eval $ac_link) 2>conftest.er1
 
23465
  ac_status=$?
 
23466
  grep -v '^ *+' conftest.er1 >conftest.err
 
23467
  rm -f conftest.er1
 
23468
  cat conftest.err >&5
 
23469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23470
  (exit $ac_status); } &&
 
23471
         { ac_try='test -z "$ac_c_werror_flag"
 
23472
                         || test ! -s conftest.err'
 
23473
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23474
  (eval $ac_try) 2>&5
 
23475
  ac_status=$?
 
23476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23477
  (exit $ac_status); }; } &&
 
23478
         { ac_try='test -s conftest$ac_exeext'
 
23479
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23480
  (eval $ac_try) 2>&5
 
23481
  ac_status=$?
 
23482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23483
  (exit $ac_status); }; }; then
 
23484
  ac_cv_lib_nsl_gethostbyname_r=yes
 
23485
else
 
23486
  echo "$as_me: failed program was:" >&5
 
23487
sed 's/^/| /' conftest.$ac_ext >&5
 
23488
 
 
23489
ac_cv_lib_nsl_gethostbyname_r=no
 
23490
fi
 
23491
rm -f conftest.err conftest.$ac_objext \
 
23492
      conftest$ac_exeext conftest.$ac_ext
 
23493
LIBS=$ac_check_lib_save_LIBS
 
23494
fi
 
23495
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
 
23496
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
 
23497
if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
 
23498
  cat >>confdefs.h <<_ACEOF
 
23499
#define HAVE_LIBNSL 1
 
23500
_ACEOF
 
23501
 
 
23502
  LIBS="-lnsl $LIBS"
 
23503
 
 
23504
fi
 
23505
 
 
23506
fi
 
23507
 
 
23508
echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
 
23509
echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
 
23510
if test "${ac_cv_func_gethostbyname_r+set}" = set; then
 
23511
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23512
else
 
23513
  cat >conftest.$ac_ext <<_ACEOF
 
23514
/* confdefs.h.  */
 
23515
_ACEOF
 
23516
cat confdefs.h >>conftest.$ac_ext
 
23517
cat >>conftest.$ac_ext <<_ACEOF
 
23518
/* end confdefs.h.  */
 
23519
/* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
 
23520
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23521
#define gethostbyname_r innocuous_gethostbyname_r
 
23522
 
 
23523
/* System header to define __stub macros and hopefully few prototypes,
 
23524
    which can conflict with char gethostbyname_r (); below.
 
23525
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23526
    <limits.h> exists even on freestanding compilers.  */
 
23527
 
 
23528
#ifdef __STDC__
 
23529
# include <limits.h>
 
23530
#else
 
23531
# include <assert.h>
 
23532
#endif
 
23533
 
 
23534
#undef gethostbyname_r
 
23535
 
 
23536
/* Override any gcc2 internal prototype to avoid an error.  */
 
23537
#ifdef __cplusplus
 
23538
extern "C"
 
23539
{
 
23540
#endif
 
23541
/* We use char because int might match the return type of a gcc2
 
23542
   builtin and then its argument prototype would still apply.  */
 
23543
char gethostbyname_r ();
 
23544
/* The GNU C library defines this for functions which it implements
 
23545
    to always fail with ENOSYS.  Some functions are actually named
 
23546
    something starting with __ and the normal name is an alias.  */
 
23547
#if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
 
23548
choke me
 
23549
#else
 
23550
char (*f) () = gethostbyname_r;
 
23551
#endif
 
23552
#ifdef __cplusplus
 
23553
}
 
23554
#endif
 
23555
 
 
23556
int
 
23557
main ()
 
23558
{
 
23559
return f != gethostbyname_r;
 
23560
  ;
 
23561
  return 0;
 
23562
}
 
23563
_ACEOF
 
23564
rm -f conftest.$ac_objext conftest$ac_exeext
 
23565
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23566
  (eval $ac_link) 2>conftest.er1
 
23567
  ac_status=$?
 
23568
  grep -v '^ *+' conftest.er1 >conftest.err
 
23569
  rm -f conftest.er1
 
23570
  cat conftest.err >&5
 
23571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23572
  (exit $ac_status); } &&
 
23573
         { ac_try='test -z "$ac_c_werror_flag"
 
23574
                         || test ! -s conftest.err'
 
23575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23576
  (eval $ac_try) 2>&5
 
23577
  ac_status=$?
 
23578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23579
  (exit $ac_status); }; } &&
 
23580
         { ac_try='test -s conftest$ac_exeext'
 
23581
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23582
  (eval $ac_try) 2>&5
 
23583
  ac_status=$?
 
23584
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23585
  (exit $ac_status); }; }; then
 
23586
  ac_cv_func_gethostbyname_r=yes
 
23587
else
 
23588
  echo "$as_me: failed program was:" >&5
 
23589
sed 's/^/| /' conftest.$ac_ext >&5
 
23590
 
 
23591
ac_cv_func_gethostbyname_r=no
 
23592
fi
 
23593
rm -f conftest.err conftest.$ac_objext \
 
23594
      conftest$ac_exeext conftest.$ac_ext
 
23595
fi
 
23596
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
 
23597
echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
 
23598
 
 
23599
 
 
23600
echo "$as_me:$LINENO: checking for setsockopt" >&5
 
23601
echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
 
23602
if test "${ac_cv_func_setsockopt+set}" = set; then
 
23603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23604
else
 
23605
  cat >conftest.$ac_ext <<_ACEOF
 
23606
/* confdefs.h.  */
 
23607
_ACEOF
 
23608
cat confdefs.h >>conftest.$ac_ext
 
23609
cat >>conftest.$ac_ext <<_ACEOF
 
23610
/* end confdefs.h.  */
 
23611
/* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
 
23612
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23613
#define setsockopt innocuous_setsockopt
 
23614
 
 
23615
/* System header to define __stub macros and hopefully few prototypes,
 
23616
    which can conflict with char setsockopt (); below.
 
23617
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23618
    <limits.h> exists even on freestanding compilers.  */
 
23619
 
 
23620
#ifdef __STDC__
 
23621
# include <limits.h>
 
23622
#else
 
23623
# include <assert.h>
 
23624
#endif
 
23625
 
 
23626
#undef setsockopt
 
23627
 
 
23628
/* Override any gcc2 internal prototype to avoid an error.  */
 
23629
#ifdef __cplusplus
 
23630
extern "C"
 
23631
{
 
23632
#endif
 
23633
/* We use char because int might match the return type of a gcc2
 
23634
   builtin and then its argument prototype would still apply.  */
 
23635
char setsockopt ();
 
23636
/* The GNU C library defines this for functions which it implements
 
23637
    to always fail with ENOSYS.  Some functions are actually named
 
23638
    something starting with __ and the normal name is an alias.  */
 
23639
#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
 
23640
choke me
 
23641
#else
 
23642
char (*f) () = setsockopt;
 
23643
#endif
 
23644
#ifdef __cplusplus
 
23645
}
 
23646
#endif
 
23647
 
 
23648
int
 
23649
main ()
 
23650
{
 
23651
return f != setsockopt;
 
23652
  ;
 
23653
  return 0;
 
23654
}
 
23655
_ACEOF
 
23656
rm -f conftest.$ac_objext conftest$ac_exeext
 
23657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23658
  (eval $ac_link) 2>conftest.er1
 
23659
  ac_status=$?
 
23660
  grep -v '^ *+' conftest.er1 >conftest.err
 
23661
  rm -f conftest.er1
 
23662
  cat conftest.err >&5
 
23663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23664
  (exit $ac_status); } &&
 
23665
         { ac_try='test -z "$ac_c_werror_flag"
 
23666
                         || test ! -s conftest.err'
 
23667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23668
  (eval $ac_try) 2>&5
 
23669
  ac_status=$?
 
23670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23671
  (exit $ac_status); }; } &&
 
23672
         { ac_try='test -s conftest$ac_exeext'
 
23673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23674
  (eval $ac_try) 2>&5
 
23675
  ac_status=$?
 
23676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23677
  (exit $ac_status); }; }; then
 
23678
  ac_cv_func_setsockopt=yes
 
23679
else
 
23680
  echo "$as_me: failed program was:" >&5
 
23681
sed 's/^/| /' conftest.$ac_ext >&5
 
23682
 
 
23683
ac_cv_func_setsockopt=no
 
23684
fi
 
23685
rm -f conftest.err conftest.$ac_objext \
 
23686
      conftest$ac_exeext conftest.$ac_ext
 
23687
fi
 
23688
echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
 
23689
echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
 
23690
if test $ac_cv_func_setsockopt = yes; then
 
23691
  :
 
23692
else
 
23693
 
 
23694
echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
 
23695
echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
 
23696
if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
 
23697
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23698
else
 
23699
  ac_check_lib_save_LIBS=$LIBS
 
23700
LIBS="-lsocket  $LIBS"
 
23701
cat >conftest.$ac_ext <<_ACEOF
 
23702
/* confdefs.h.  */
 
23703
_ACEOF
 
23704
cat confdefs.h >>conftest.$ac_ext
 
23705
cat >>conftest.$ac_ext <<_ACEOF
 
23706
/* end confdefs.h.  */
 
23707
 
 
23708
/* Override any gcc2 internal prototype to avoid an error.  */
 
23709
#ifdef __cplusplus
 
23710
extern "C"
 
23711
#endif
 
23712
/* We use char because int might match the return type of a gcc2
 
23713
   builtin and then its argument prototype would still apply.  */
 
23714
char setsockopt ();
 
23715
int
 
23716
main ()
 
23717
{
 
23718
setsockopt ();
 
23719
  ;
 
23720
  return 0;
 
23721
}
 
23722
_ACEOF
 
23723
rm -f conftest.$ac_objext conftest$ac_exeext
 
23724
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23725
  (eval $ac_link) 2>conftest.er1
 
23726
  ac_status=$?
 
23727
  grep -v '^ *+' conftest.er1 >conftest.err
 
23728
  rm -f conftest.er1
 
23729
  cat conftest.err >&5
 
23730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23731
  (exit $ac_status); } &&
 
23732
         { ac_try='test -z "$ac_c_werror_flag"
 
23733
                         || test ! -s conftest.err'
 
23734
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23735
  (eval $ac_try) 2>&5
 
23736
  ac_status=$?
 
23737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23738
  (exit $ac_status); }; } &&
 
23739
         { ac_try='test -s conftest$ac_exeext'
 
23740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23741
  (eval $ac_try) 2>&5
 
23742
  ac_status=$?
 
23743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23744
  (exit $ac_status); }; }; then
 
23745
  ac_cv_lib_socket_setsockopt=yes
 
23746
else
 
23747
  echo "$as_me: failed program was:" >&5
 
23748
sed 's/^/| /' conftest.$ac_ext >&5
 
23749
 
 
23750
ac_cv_lib_socket_setsockopt=no
 
23751
fi
 
23752
rm -f conftest.err conftest.$ac_objext \
 
23753
      conftest$ac_exeext conftest.$ac_ext
 
23754
LIBS=$ac_check_lib_save_LIBS
 
23755
fi
 
23756
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
 
23757
echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
 
23758
if test $ac_cv_lib_socket_setsockopt = yes; then
 
23759
  cat >>confdefs.h <<_ACEOF
 
23760
#define HAVE_LIBSOCKET 1
 
23761
_ACEOF
 
23762
 
 
23763
  LIBS="-lsocket $LIBS"
 
23764
 
 
23765
fi
 
23766
 
 
23767
fi
 
23768
 
 
23769
echo "$as_me:$LINENO: checking for yp_get_default_domain" >&5
 
23770
echo $ECHO_N "checking for yp_get_default_domain... $ECHO_C" >&6
 
23771
if test "${ac_cv_func_yp_get_default_domain+set}" = set; then
 
23772
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23773
else
 
23774
  cat >conftest.$ac_ext <<_ACEOF
 
23775
/* confdefs.h.  */
 
23776
_ACEOF
 
23777
cat confdefs.h >>conftest.$ac_ext
 
23778
cat >>conftest.$ac_ext <<_ACEOF
 
23779
/* end confdefs.h.  */
 
23780
/* Define yp_get_default_domain to an innocuous variant, in case <limits.h> declares yp_get_default_domain.
 
23781
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23782
#define yp_get_default_domain innocuous_yp_get_default_domain
 
23783
 
 
23784
/* System header to define __stub macros and hopefully few prototypes,
 
23785
    which can conflict with char yp_get_default_domain (); below.
 
23786
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23787
    <limits.h> exists even on freestanding compilers.  */
 
23788
 
 
23789
#ifdef __STDC__
 
23790
# include <limits.h>
 
23791
#else
 
23792
# include <assert.h>
 
23793
#endif
 
23794
 
 
23795
#undef yp_get_default_domain
 
23796
 
 
23797
/* Override any gcc2 internal prototype to avoid an error.  */
 
23798
#ifdef __cplusplus
 
23799
extern "C"
 
23800
{
 
23801
#endif
 
23802
/* We use char because int might match the return type of a gcc2
 
23803
   builtin and then its argument prototype would still apply.  */
 
23804
char yp_get_default_domain ();
 
23805
/* The GNU C library defines this for functions which it implements
 
23806
    to always fail with ENOSYS.  Some functions are actually named
 
23807
    something starting with __ and the normal name is an alias.  */
 
23808
#if defined (__stub_yp_get_default_domain) || defined (__stub___yp_get_default_domain)
 
23809
choke me
 
23810
#else
 
23811
char (*f) () = yp_get_default_domain;
 
23812
#endif
 
23813
#ifdef __cplusplus
 
23814
}
 
23815
#endif
 
23816
 
 
23817
int
 
23818
main ()
 
23819
{
 
23820
return f != yp_get_default_domain;
 
23821
  ;
 
23822
  return 0;
 
23823
}
 
23824
_ACEOF
 
23825
rm -f conftest.$ac_objext conftest$ac_exeext
 
23826
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23827
  (eval $ac_link) 2>conftest.er1
 
23828
  ac_status=$?
 
23829
  grep -v '^ *+' conftest.er1 >conftest.err
 
23830
  rm -f conftest.er1
 
23831
  cat conftest.err >&5
 
23832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23833
  (exit $ac_status); } &&
 
23834
         { ac_try='test -z "$ac_c_werror_flag"
 
23835
                         || test ! -s conftest.err'
 
23836
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23837
  (eval $ac_try) 2>&5
 
23838
  ac_status=$?
 
23839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23840
  (exit $ac_status); }; } &&
 
23841
         { ac_try='test -s conftest$ac_exeext'
 
23842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23843
  (eval $ac_try) 2>&5
 
23844
  ac_status=$?
 
23845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23846
  (exit $ac_status); }; }; then
 
23847
  ac_cv_func_yp_get_default_domain=yes
 
23848
else
 
23849
  echo "$as_me: failed program was:" >&5
 
23850
sed 's/^/| /' conftest.$ac_ext >&5
 
23851
 
 
23852
ac_cv_func_yp_get_default_domain=no
 
23853
fi
 
23854
rm -f conftest.err conftest.$ac_objext \
 
23855
      conftest$ac_exeext conftest.$ac_ext
 
23856
fi
 
23857
echo "$as_me:$LINENO: result: $ac_cv_func_yp_get_default_domain" >&5
 
23858
echo "${ECHO_T}$ac_cv_func_yp_get_default_domain" >&6
 
23859
if test $ac_cv_func_yp_get_default_domain = yes; then
 
23860
  :
 
23861
else
 
23862
 
 
23863
echo "$as_me:$LINENO: checking for yp_get_default_domain in -lnsl" >&5
 
23864
echo $ECHO_N "checking for yp_get_default_domain in -lnsl... $ECHO_C" >&6
 
23865
if test "${ac_cv_lib_nsl_yp_get_default_domain+set}" = set; then
 
23866
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23867
else
 
23868
  ac_check_lib_save_LIBS=$LIBS
 
23869
LIBS="-lnsl  $LIBS"
 
23870
cat >conftest.$ac_ext <<_ACEOF
 
23871
/* confdefs.h.  */
 
23872
_ACEOF
 
23873
cat confdefs.h >>conftest.$ac_ext
 
23874
cat >>conftest.$ac_ext <<_ACEOF
 
23875
/* end confdefs.h.  */
 
23876
 
 
23877
/* Override any gcc2 internal prototype to avoid an error.  */
 
23878
#ifdef __cplusplus
 
23879
extern "C"
 
23880
#endif
 
23881
/* We use char because int might match the return type of a gcc2
 
23882
   builtin and then its argument prototype would still apply.  */
 
23883
char yp_get_default_domain ();
 
23884
int
 
23885
main ()
 
23886
{
 
23887
yp_get_default_domain ();
 
23888
  ;
 
23889
  return 0;
 
23890
}
 
23891
_ACEOF
 
23892
rm -f conftest.$ac_objext conftest$ac_exeext
 
23893
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23894
  (eval $ac_link) 2>conftest.er1
 
23895
  ac_status=$?
 
23896
  grep -v '^ *+' conftest.er1 >conftest.err
 
23897
  rm -f conftest.er1
 
23898
  cat conftest.err >&5
 
23899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23900
  (exit $ac_status); } &&
 
23901
         { ac_try='test -z "$ac_c_werror_flag"
 
23902
                         || test ! -s conftest.err'
 
23903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23904
  (eval $ac_try) 2>&5
 
23905
  ac_status=$?
 
23906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23907
  (exit $ac_status); }; } &&
 
23908
         { ac_try='test -s conftest$ac_exeext'
 
23909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23910
  (eval $ac_try) 2>&5
 
23911
  ac_status=$?
 
23912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23913
  (exit $ac_status); }; }; then
 
23914
  ac_cv_lib_nsl_yp_get_default_domain=yes
 
23915
else
 
23916
  echo "$as_me: failed program was:" >&5
 
23917
sed 's/^/| /' conftest.$ac_ext >&5
 
23918
 
 
23919
ac_cv_lib_nsl_yp_get_default_domain=no
 
23920
fi
 
23921
rm -f conftest.err conftest.$ac_objext \
 
23922
      conftest$ac_exeext conftest.$ac_ext
 
23923
LIBS=$ac_check_lib_save_LIBS
 
23924
fi
 
23925
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_yp_get_default_domain" >&5
 
23926
echo "${ECHO_T}$ac_cv_lib_nsl_yp_get_default_domain" >&6
 
23927
if test $ac_cv_lib_nsl_yp_get_default_domain = yes; then
 
23928
  cat >>confdefs.h <<_ACEOF
 
23929
#define HAVE_LIBNSL 1
 
23930
_ACEOF
 
23931
 
 
23932
  LIBS="-lnsl $LIBS"
 
23933
 
 
23934
fi
 
23935
 
 
23936
fi
 
23937
 
 
23938
echo "$as_me:$LINENO: checking for p2open" >&5
 
23939
echo $ECHO_N "checking for p2open... $ECHO_C" >&6
 
23940
if test "${ac_cv_func_p2open+set}" = set; then
 
23941
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23942
else
 
23943
  cat >conftest.$ac_ext <<_ACEOF
 
23944
/* confdefs.h.  */
 
23945
_ACEOF
 
23946
cat confdefs.h >>conftest.$ac_ext
 
23947
cat >>conftest.$ac_ext <<_ACEOF
 
23948
/* end confdefs.h.  */
 
23949
/* Define p2open to an innocuous variant, in case <limits.h> declares p2open.
 
23950
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23951
#define p2open innocuous_p2open
 
23952
 
 
23953
/* System header to define __stub macros and hopefully few prototypes,
 
23954
    which can conflict with char p2open (); below.
 
23955
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23956
    <limits.h> exists even on freestanding compilers.  */
 
23957
 
 
23958
#ifdef __STDC__
 
23959
# include <limits.h>
 
23960
#else
 
23961
# include <assert.h>
 
23962
#endif
 
23963
 
 
23964
#undef p2open
 
23965
 
 
23966
/* Override any gcc2 internal prototype to avoid an error.  */
 
23967
#ifdef __cplusplus
 
23968
extern "C"
 
23969
{
 
23970
#endif
 
23971
/* We use char because int might match the return type of a gcc2
 
23972
   builtin and then its argument prototype would still apply.  */
 
23973
char p2open ();
 
23974
/* The GNU C library defines this for functions which it implements
 
23975
    to always fail with ENOSYS.  Some functions are actually named
 
23976
    something starting with __ and the normal name is an alias.  */
 
23977
#if defined (__stub_p2open) || defined (__stub___p2open)
 
23978
choke me
 
23979
#else
 
23980
char (*f) () = p2open;
 
23981
#endif
 
23982
#ifdef __cplusplus
 
23983
}
 
23984
#endif
 
23985
 
 
23986
int
 
23987
main ()
 
23988
{
 
23989
return f != p2open;
 
23990
  ;
 
23991
  return 0;
 
23992
}
 
23993
_ACEOF
 
23994
rm -f conftest.$ac_objext conftest$ac_exeext
 
23995
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23996
  (eval $ac_link) 2>conftest.er1
 
23997
  ac_status=$?
 
23998
  grep -v '^ *+' conftest.er1 >conftest.err
 
23999
  rm -f conftest.er1
 
24000
  cat conftest.err >&5
 
24001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24002
  (exit $ac_status); } &&
 
24003
         { ac_try='test -z "$ac_c_werror_flag"
 
24004
                         || test ! -s conftest.err'
 
24005
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24006
  (eval $ac_try) 2>&5
 
24007
  ac_status=$?
 
24008
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24009
  (exit $ac_status); }; } &&
 
24010
         { ac_try='test -s conftest$ac_exeext'
 
24011
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24012
  (eval $ac_try) 2>&5
 
24013
  ac_status=$?
 
24014
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24015
  (exit $ac_status); }; }; then
 
24016
  ac_cv_func_p2open=yes
 
24017
else
 
24018
  echo "$as_me: failed program was:" >&5
 
24019
sed 's/^/| /' conftest.$ac_ext >&5
 
24020
 
 
24021
ac_cv_func_p2open=no
 
24022
fi
 
24023
rm -f conftest.err conftest.$ac_objext \
 
24024
      conftest$ac_exeext conftest.$ac_ext
 
24025
fi
 
24026
echo "$as_me:$LINENO: result: $ac_cv_func_p2open" >&5
 
24027
echo "${ECHO_T}$ac_cv_func_p2open" >&6
 
24028
if test $ac_cv_func_p2open = yes; then
 
24029
  :
 
24030
else
 
24031
 
 
24032
echo "$as_me:$LINENO: checking for p2open in -lgen" >&5
 
24033
echo $ECHO_N "checking for p2open in -lgen... $ECHO_C" >&6
 
24034
if test "${ac_cv_lib_gen_p2open+set}" = set; then
 
24035
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24036
else
 
24037
  ac_check_lib_save_LIBS=$LIBS
 
24038
LIBS="-lgen  $LIBS"
 
24039
cat >conftest.$ac_ext <<_ACEOF
 
24040
/* confdefs.h.  */
 
24041
_ACEOF
 
24042
cat confdefs.h >>conftest.$ac_ext
 
24043
cat >>conftest.$ac_ext <<_ACEOF
 
24044
/* end confdefs.h.  */
 
24045
 
 
24046
/* Override any gcc2 internal prototype to avoid an error.  */
 
24047
#ifdef __cplusplus
 
24048
extern "C"
 
24049
#endif
 
24050
/* We use char because int might match the return type of a gcc2
 
24051
   builtin and then its argument prototype would still apply.  */
 
24052
char p2open ();
 
24053
int
 
24054
main ()
 
24055
{
 
24056
p2open ();
 
24057
  ;
 
24058
  return 0;
 
24059
}
 
24060
_ACEOF
 
24061
rm -f conftest.$ac_objext conftest$ac_exeext
 
24062
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24063
  (eval $ac_link) 2>conftest.er1
 
24064
  ac_status=$?
 
24065
  grep -v '^ *+' conftest.er1 >conftest.err
 
24066
  rm -f conftest.er1
 
24067
  cat conftest.err >&5
 
24068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24069
  (exit $ac_status); } &&
 
24070
         { ac_try='test -z "$ac_c_werror_flag"
 
24071
                         || test ! -s conftest.err'
 
24072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24073
  (eval $ac_try) 2>&5
 
24074
  ac_status=$?
 
24075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24076
  (exit $ac_status); }; } &&
 
24077
         { ac_try='test -s conftest$ac_exeext'
 
24078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24079
  (eval $ac_try) 2>&5
 
24080
  ac_status=$?
 
24081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24082
  (exit $ac_status); }; }; then
 
24083
  ac_cv_lib_gen_p2open=yes
 
24084
else
 
24085
  echo "$as_me: failed program was:" >&5
 
24086
sed 's/^/| /' conftest.$ac_ext >&5
 
24087
 
 
24088
ac_cv_lib_gen_p2open=no
 
24089
fi
 
24090
rm -f conftest.err conftest.$ac_objext \
 
24091
      conftest$ac_exeext conftest.$ac_ext
 
24092
LIBS=$ac_check_lib_save_LIBS
 
24093
fi
 
24094
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_p2open" >&5
 
24095
echo "${ECHO_T}$ac_cv_lib_gen_p2open" >&6
 
24096
if test $ac_cv_lib_gen_p2open = yes; then
 
24097
  cat >>confdefs.h <<_ACEOF
 
24098
#define HAVE_LIBGEN 1
 
24099
_ACEOF
 
24100
 
 
24101
  LIBS="-lgen $LIBS"
 
24102
 
 
24103
fi
 
24104
 
 
24105
fi
 
24106
 
 
24107
# This may get things to compile even if bind-8 is installed
 
24108
echo "$as_me:$LINENO: checking for bind" >&5
 
24109
echo $ECHO_N "checking for bind... $ECHO_C" >&6
 
24110
if test "${ac_cv_func_bind+set}" = set; then
 
24111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24112
else
 
24113
  cat >conftest.$ac_ext <<_ACEOF
 
24114
/* confdefs.h.  */
 
24115
_ACEOF
 
24116
cat confdefs.h >>conftest.$ac_ext
 
24117
cat >>conftest.$ac_ext <<_ACEOF
 
24118
/* end confdefs.h.  */
 
24119
/* Define bind to an innocuous variant, in case <limits.h> declares bind.
 
24120
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24121
#define bind innocuous_bind
 
24122
 
 
24123
/* System header to define __stub macros and hopefully few prototypes,
 
24124
    which can conflict with char bind (); below.
 
24125
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24126
    <limits.h> exists even on freestanding compilers.  */
 
24127
 
 
24128
#ifdef __STDC__
 
24129
# include <limits.h>
 
24130
#else
 
24131
# include <assert.h>
 
24132
#endif
 
24133
 
 
24134
#undef bind
 
24135
 
 
24136
/* Override any gcc2 internal prototype to avoid an error.  */
 
24137
#ifdef __cplusplus
 
24138
extern "C"
 
24139
{
 
24140
#endif
 
24141
/* We use char because int might match the return type of a gcc2
 
24142
   builtin and then its argument prototype would still apply.  */
 
24143
char bind ();
 
24144
/* The GNU C library defines this for functions which it implements
 
24145
    to always fail with ENOSYS.  Some functions are actually named
 
24146
    something starting with __ and the normal name is an alias.  */
 
24147
#if defined (__stub_bind) || defined (__stub___bind)
 
24148
choke me
 
24149
#else
 
24150
char (*f) () = bind;
 
24151
#endif
 
24152
#ifdef __cplusplus
 
24153
}
 
24154
#endif
 
24155
 
 
24156
int
 
24157
main ()
 
24158
{
 
24159
return f != bind;
 
24160
  ;
 
24161
  return 0;
 
24162
}
 
24163
_ACEOF
 
24164
rm -f conftest.$ac_objext conftest$ac_exeext
 
24165
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24166
  (eval $ac_link) 2>conftest.er1
 
24167
  ac_status=$?
 
24168
  grep -v '^ *+' conftest.er1 >conftest.err
 
24169
  rm -f conftest.er1
 
24170
  cat conftest.err >&5
 
24171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24172
  (exit $ac_status); } &&
 
24173
         { ac_try='test -z "$ac_c_werror_flag"
 
24174
                         || test ! -s conftest.err'
 
24175
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24176
  (eval $ac_try) 2>&5
 
24177
  ac_status=$?
 
24178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24179
  (exit $ac_status); }; } &&
 
24180
         { ac_try='test -s conftest$ac_exeext'
 
24181
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24182
  (eval $ac_try) 2>&5
 
24183
  ac_status=$?
 
24184
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24185
  (exit $ac_status); }; }; then
 
24186
  ac_cv_func_bind=yes
 
24187
else
 
24188
  echo "$as_me: failed program was:" >&5
 
24189
sed 's/^/| /' conftest.$ac_ext >&5
 
24190
 
 
24191
ac_cv_func_bind=no
 
24192
fi
 
24193
rm -f conftest.err conftest.$ac_objext \
 
24194
      conftest$ac_exeext conftest.$ac_ext
 
24195
fi
 
24196
echo "$as_me:$LINENO: result: $ac_cv_func_bind" >&5
 
24197
echo "${ECHO_T}$ac_cv_func_bind" >&6
 
24198
if test $ac_cv_func_bind = yes; then
 
24199
  :
 
24200
else
 
24201
 
 
24202
echo "$as_me:$LINENO: checking for bind in -lbind" >&5
 
24203
echo $ECHO_N "checking for bind in -lbind... $ECHO_C" >&6
 
24204
if test "${ac_cv_lib_bind_bind+set}" = set; then
 
24205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24206
else
 
24207
  ac_check_lib_save_LIBS=$LIBS
 
24208
LIBS="-lbind  $LIBS"
 
24209
cat >conftest.$ac_ext <<_ACEOF
 
24210
/* confdefs.h.  */
 
24211
_ACEOF
 
24212
cat confdefs.h >>conftest.$ac_ext
 
24213
cat >>conftest.$ac_ext <<_ACEOF
 
24214
/* end confdefs.h.  */
 
24215
 
 
24216
/* Override any gcc2 internal prototype to avoid an error.  */
 
24217
#ifdef __cplusplus
 
24218
extern "C"
 
24219
#endif
 
24220
/* We use char because int might match the return type of a gcc2
 
24221
   builtin and then its argument prototype would still apply.  */
 
24222
char bind ();
 
24223
int
 
24224
main ()
 
24225
{
 
24226
bind ();
 
24227
  ;
 
24228
  return 0;
 
24229
}
 
24230
_ACEOF
 
24231
rm -f conftest.$ac_objext conftest$ac_exeext
 
24232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24233
  (eval $ac_link) 2>conftest.er1
 
24234
  ac_status=$?
 
24235
  grep -v '^ *+' conftest.er1 >conftest.err
 
24236
  rm -f conftest.er1
 
24237
  cat conftest.err >&5
 
24238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24239
  (exit $ac_status); } &&
 
24240
         { ac_try='test -z "$ac_c_werror_flag"
 
24241
                         || test ! -s conftest.err'
 
24242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24243
  (eval $ac_try) 2>&5
 
24244
  ac_status=$?
 
24245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24246
  (exit $ac_status); }; } &&
 
24247
         { ac_try='test -s conftest$ac_exeext'
 
24248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24249
  (eval $ac_try) 2>&5
 
24250
  ac_status=$?
 
24251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24252
  (exit $ac_status); }; }; then
 
24253
  ac_cv_lib_bind_bind=yes
 
24254
else
 
24255
  echo "$as_me: failed program was:" >&5
 
24256
sed 's/^/| /' conftest.$ac_ext >&5
 
24257
 
 
24258
ac_cv_lib_bind_bind=no
 
24259
fi
 
24260
rm -f conftest.err conftest.$ac_objext \
 
24261
      conftest$ac_exeext conftest.$ac_ext
 
24262
LIBS=$ac_check_lib_save_LIBS
 
24263
fi
 
24264
echo "$as_me:$LINENO: result: $ac_cv_lib_bind_bind" >&5
 
24265
echo "${ECHO_T}$ac_cv_lib_bind_bind" >&6
 
24266
if test $ac_cv_lib_bind_bind = yes; then
 
24267
  cat >>confdefs.h <<_ACEOF
 
24268
#define HAVE_LIBBIND 1
 
24269
_ACEOF
 
24270
 
 
24271
  LIBS="-lbind $LIBS"
 
24272
 
 
24273
fi
 
24274
 
 
24275
fi
 
24276
 
 
24277
# Check if crypt() exists in libc or libcrypt, sets LIBS if needed
 
24278
echo "$as_me:$LINENO: checking for library containing crypt" >&5
 
24279
echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6
 
24280
if test "${ac_cv_search_crypt+set}" = set; then
 
24281
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24282
else
 
24283
  ac_func_search_save_LIBS=$LIBS
 
24284
ac_cv_search_crypt=no
 
24285
cat >conftest.$ac_ext <<_ACEOF
 
24286
/* confdefs.h.  */
 
24287
_ACEOF
 
24288
cat confdefs.h >>conftest.$ac_ext
 
24289
cat >>conftest.$ac_ext <<_ACEOF
 
24290
/* end confdefs.h.  */
 
24291
 
 
24292
/* Override any gcc2 internal prototype to avoid an error.  */
 
24293
#ifdef __cplusplus
 
24294
extern "C"
 
24295
#endif
 
24296
/* We use char because int might match the return type of a gcc2
 
24297
   builtin and then its argument prototype would still apply.  */
 
24298
char crypt ();
 
24299
int
 
24300
main ()
 
24301
{
 
24302
crypt ();
 
24303
  ;
 
24304
  return 0;
 
24305
}
 
24306
_ACEOF
 
24307
rm -f conftest.$ac_objext conftest$ac_exeext
 
24308
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24309
  (eval $ac_link) 2>conftest.er1
 
24310
  ac_status=$?
 
24311
  grep -v '^ *+' conftest.er1 >conftest.err
 
24312
  rm -f conftest.er1
 
24313
  cat conftest.err >&5
 
24314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24315
  (exit $ac_status); } &&
 
24316
         { ac_try='test -z "$ac_c_werror_flag"
 
24317
                         || test ! -s conftest.err'
 
24318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24319
  (eval $ac_try) 2>&5
 
24320
  ac_status=$?
 
24321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24322
  (exit $ac_status); }; } &&
 
24323
         { ac_try='test -s conftest$ac_exeext'
 
24324
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24325
  (eval $ac_try) 2>&5
 
24326
  ac_status=$?
 
24327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24328
  (exit $ac_status); }; }; then
 
24329
  ac_cv_search_crypt="none required"
 
24330
else
 
24331
  echo "$as_me: failed program was:" >&5
 
24332
sed 's/^/| /' conftest.$ac_ext >&5
 
24333
 
 
24334
fi
 
24335
rm -f conftest.err conftest.$ac_objext \
 
24336
      conftest$ac_exeext conftest.$ac_ext
 
24337
if test "$ac_cv_search_crypt" = no; then
 
24338
  for ac_lib in crypt; do
 
24339
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
24340
    cat >conftest.$ac_ext <<_ACEOF
 
24341
/* confdefs.h.  */
 
24342
_ACEOF
 
24343
cat confdefs.h >>conftest.$ac_ext
 
24344
cat >>conftest.$ac_ext <<_ACEOF
 
24345
/* end confdefs.h.  */
 
24346
 
 
24347
/* Override any gcc2 internal prototype to avoid an error.  */
 
24348
#ifdef __cplusplus
 
24349
extern "C"
 
24350
#endif
 
24351
/* We use char because int might match the return type of a gcc2
 
24352
   builtin and then its argument prototype would still apply.  */
 
24353
char crypt ();
 
24354
int
 
24355
main ()
 
24356
{
 
24357
crypt ();
 
24358
  ;
 
24359
  return 0;
 
24360
}
 
24361
_ACEOF
 
24362
rm -f conftest.$ac_objext conftest$ac_exeext
 
24363
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24364
  (eval $ac_link) 2>conftest.er1
 
24365
  ac_status=$?
 
24366
  grep -v '^ *+' conftest.er1 >conftest.err
 
24367
  rm -f conftest.er1
 
24368
  cat conftest.err >&5
 
24369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24370
  (exit $ac_status); } &&
 
24371
         { ac_try='test -z "$ac_c_werror_flag"
 
24372
                         || test ! -s conftest.err'
 
24373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24374
  (eval $ac_try) 2>&5
 
24375
  ac_status=$?
 
24376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24377
  (exit $ac_status); }; } &&
 
24378
         { ac_try='test -s conftest$ac_exeext'
 
24379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24380
  (eval $ac_try) 2>&5
 
24381
  ac_status=$?
 
24382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24383
  (exit $ac_status); }; }; then
 
24384
  ac_cv_search_crypt="-l$ac_lib"
 
24385
break
 
24386
else
 
24387
  echo "$as_me: failed program was:" >&5
 
24388
sed 's/^/| /' conftest.$ac_ext >&5
 
24389
 
 
24390
fi
 
24391
rm -f conftest.err conftest.$ac_objext \
 
24392
      conftest$ac_exeext conftest.$ac_ext
 
24393
  done
 
24394
fi
 
24395
LIBS=$ac_func_search_save_LIBS
 
24396
fi
 
24397
echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
 
24398
echo "${ECHO_T}$ac_cv_search_crypt" >&6
 
24399
if test "$ac_cv_search_crypt" != no; then
 
24400
  test "$ac_cv_search_crypt" = "none required" || LIBS="$ac_cv_search_crypt $LIBS"
 
24401
 
 
24402
cat >>confdefs.h <<\_ACEOF
 
24403
#define HAVE_CRYPT 1
 
24404
_ACEOF
 
24405
 
 
24406
fi
 
24407
 
 
24408
 
 
24409
# For sem_xxx functions on Solaris 2.6
 
24410
echo "$as_me:$LINENO: checking for sem_init" >&5
 
24411
echo $ECHO_N "checking for sem_init... $ECHO_C" >&6
 
24412
if test "${ac_cv_func_sem_init+set}" = set; then
 
24413
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24414
else
 
24415
  cat >conftest.$ac_ext <<_ACEOF
 
24416
/* confdefs.h.  */
 
24417
_ACEOF
 
24418
cat confdefs.h >>conftest.$ac_ext
 
24419
cat >>conftest.$ac_ext <<_ACEOF
 
24420
/* end confdefs.h.  */
 
24421
/* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
 
24422
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
24423
#define sem_init innocuous_sem_init
 
24424
 
 
24425
/* System header to define __stub macros and hopefully few prototypes,
 
24426
    which can conflict with char sem_init (); below.
 
24427
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
24428
    <limits.h> exists even on freestanding compilers.  */
 
24429
 
 
24430
#ifdef __STDC__
 
24431
# include <limits.h>
 
24432
#else
 
24433
# include <assert.h>
 
24434
#endif
 
24435
 
 
24436
#undef sem_init
 
24437
 
 
24438
/* Override any gcc2 internal prototype to avoid an error.  */
 
24439
#ifdef __cplusplus
 
24440
extern "C"
 
24441
{
 
24442
#endif
 
24443
/* We use char because int might match the return type of a gcc2
 
24444
   builtin and then its argument prototype would still apply.  */
 
24445
char sem_init ();
 
24446
/* The GNU C library defines this for functions which it implements
 
24447
    to always fail with ENOSYS.  Some functions are actually named
 
24448
    something starting with __ and the normal name is an alias.  */
 
24449
#if defined (__stub_sem_init) || defined (__stub___sem_init)
 
24450
choke me
 
24451
#else
 
24452
char (*f) () = sem_init;
 
24453
#endif
 
24454
#ifdef __cplusplus
 
24455
}
 
24456
#endif
 
24457
 
 
24458
int
 
24459
main ()
 
24460
{
 
24461
return f != sem_init;
 
24462
  ;
 
24463
  return 0;
 
24464
}
 
24465
_ACEOF
 
24466
rm -f conftest.$ac_objext conftest$ac_exeext
 
24467
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24468
  (eval $ac_link) 2>conftest.er1
 
24469
  ac_status=$?
 
24470
  grep -v '^ *+' conftest.er1 >conftest.err
 
24471
  rm -f conftest.er1
 
24472
  cat conftest.err >&5
 
24473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24474
  (exit $ac_status); } &&
 
24475
         { ac_try='test -z "$ac_c_werror_flag"
 
24476
                         || test ! -s conftest.err'
 
24477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24478
  (eval $ac_try) 2>&5
 
24479
  ac_status=$?
 
24480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24481
  (exit $ac_status); }; } &&
 
24482
         { ac_try='test -s conftest$ac_exeext'
 
24483
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24484
  (eval $ac_try) 2>&5
 
24485
  ac_status=$?
 
24486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24487
  (exit $ac_status); }; }; then
 
24488
  ac_cv_func_sem_init=yes
 
24489
else
 
24490
  echo "$as_me: failed program was:" >&5
 
24491
sed 's/^/| /' conftest.$ac_ext >&5
 
24492
 
 
24493
ac_cv_func_sem_init=no
 
24494
fi
 
24495
rm -f conftest.err conftest.$ac_objext \
 
24496
      conftest$ac_exeext conftest.$ac_ext
 
24497
fi
 
24498
echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
 
24499
echo "${ECHO_T}$ac_cv_func_sem_init" >&6
 
24500
if test $ac_cv_func_sem_init = yes; then
 
24501
  :
 
24502
else
 
24503
 
 
24504
echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
 
24505
echo $ECHO_N "checking for sem_init in -lposix4... $ECHO_C" >&6
 
24506
if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
 
24507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24508
else
 
24509
  ac_check_lib_save_LIBS=$LIBS
 
24510
LIBS="-lposix4  $LIBS"
 
24511
cat >conftest.$ac_ext <<_ACEOF
 
24512
/* confdefs.h.  */
 
24513
_ACEOF
 
24514
cat confdefs.h >>conftest.$ac_ext
 
24515
cat >>conftest.$ac_ext <<_ACEOF
 
24516
/* end confdefs.h.  */
 
24517
 
 
24518
/* Override any gcc2 internal prototype to avoid an error.  */
 
24519
#ifdef __cplusplus
 
24520
extern "C"
 
24521
#endif
 
24522
/* We use char because int might match the return type of a gcc2
 
24523
   builtin and then its argument prototype would still apply.  */
 
24524
char sem_init ();
 
24525
int
 
24526
main ()
 
24527
{
 
24528
sem_init ();
 
24529
  ;
 
24530
  return 0;
 
24531
}
 
24532
_ACEOF
 
24533
rm -f conftest.$ac_objext conftest$ac_exeext
 
24534
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24535
  (eval $ac_link) 2>conftest.er1
 
24536
  ac_status=$?
 
24537
  grep -v '^ *+' conftest.er1 >conftest.err
 
24538
  rm -f conftest.er1
 
24539
  cat conftest.err >&5
 
24540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24541
  (exit $ac_status); } &&
 
24542
         { ac_try='test -z "$ac_c_werror_flag"
 
24543
                         || test ! -s conftest.err'
 
24544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24545
  (eval $ac_try) 2>&5
 
24546
  ac_status=$?
 
24547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24548
  (exit $ac_status); }; } &&
 
24549
         { ac_try='test -s conftest$ac_exeext'
 
24550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24551
  (eval $ac_try) 2>&5
 
24552
  ac_status=$?
 
24553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24554
  (exit $ac_status); }; }; then
 
24555
  ac_cv_lib_posix4_sem_init=yes
 
24556
else
 
24557
  echo "$as_me: failed program was:" >&5
 
24558
sed 's/^/| /' conftest.$ac_ext >&5
 
24559
 
 
24560
ac_cv_lib_posix4_sem_init=no
 
24561
fi
 
24562
rm -f conftest.err conftest.$ac_objext \
 
24563
      conftest$ac_exeext conftest.$ac_ext
 
24564
LIBS=$ac_check_lib_save_LIBS
 
24565
fi
 
24566
echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
 
24567
echo "${ECHO_T}$ac_cv_lib_posix4_sem_init" >&6
 
24568
if test $ac_cv_lib_posix4_sem_init = yes; then
 
24569
  cat >>confdefs.h <<_ACEOF
 
24570
#define HAVE_LIBPOSIX4 1
 
24571
_ACEOF
 
24572
 
 
24573
  LIBS="-lposix4 $LIBS"
 
24574
 
 
24575
fi
 
24576
 
 
24577
fi
 
24578
 
 
24579
 
 
24580
echo "$as_me:$LINENO: checking for zlib compression library" >&5
 
24581
echo $ECHO_N "checking for zlib compression library... $ECHO_C" >&6
 
24582
case $SYSTEM_TYPE in
 
24583
*netware* | *modesto*)
 
24584
     echo "$as_me:$LINENO: result: ok" >&5
 
24585
echo "${ECHO_T}ok" >&6
 
24586
 
 
24587
cat >>confdefs.h <<\_ACEOF
 
24588
#define HAVE_COMPRESS 1
 
24589
_ACEOF
 
24590
 
 
24591
    ;;
 
24592
  *)
 
24593
 
 
24594
# Check whether --with-zlib-dir or --without-zlib-dir was given.
 
24595
if test "${with_zlib_dir+set}" = set; then
 
24596
  withval="$with_zlib_dir"
 
24597
  mysql_zlib_dir=${withval}
 
24598
else
 
24599
  mysql_zlib_dir=""
 
24600
fi;
 
24601
    case "$mysql_zlib_dir" in
 
24602
      "no")
 
24603
        mysql_cv_compress="no"
 
24604
        echo "$as_me:$LINENO: result: disabled" >&5
 
24605
echo "${ECHO_T}disabled" >&6
 
24606
        ;;
 
24607
      "bundled")
 
24608
 
 
24609
ZLIB_INCLUDES="-I\$(top_srcdir)/zlib"
 
24610
ZLIB_LIBS="\$(top_builddir)/zlib/libz.la"
 
24611
ZLIB_DEPS="-lz"
 
24612
zlib_dir="zlib"
 
24613
 
 
24614
mysql_cv_compress="yes"
 
24615
 
 
24616
        echo "$as_me:$LINENO: result: using bundled zlib" >&5
 
24617
echo "${ECHO_T}using bundled zlib" >&6
 
24618
        ;;
 
24619
      "")
 
24620
        ZLIB_INCLUDES=""
 
24621
        ZLIB_LIBS="-lz"
 
24622
 
 
24623
save_CPPFLAGS="$CPPFLAGS"
 
24624
save_LIBS="$LIBS"
 
24625
CPPFLAGS="$ZLIB_INCLUDES $CPPFLAGS"
 
24626
LIBS="$LIBS $ZLIB_LIBS"
 
24627
if test "${mysql_cv_compress+set}" = set; then
 
24628
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24629
else
 
24630
  cat >conftest.$ac_ext <<_ACEOF
 
24631
/* confdefs.h.  */
 
24632
_ACEOF
 
24633
cat confdefs.h >>conftest.$ac_ext
 
24634
cat >>conftest.$ac_ext <<_ACEOF
 
24635
/* end confdefs.h.  */
 
24636
#include <zlib.h>
 
24637
int
 
24638
main ()
 
24639
{
 
24640
return zlibCompileFlags();
 
24641
  ;
 
24642
  return 0;
 
24643
}
 
24644
_ACEOF
 
24645
rm -f conftest.$ac_objext conftest$ac_exeext
 
24646
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24647
  (eval $ac_link) 2>conftest.er1
 
24648
  ac_status=$?
 
24649
  grep -v '^ *+' conftest.er1 >conftest.err
 
24650
  rm -f conftest.er1
 
24651
  cat conftest.err >&5
 
24652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24653
  (exit $ac_status); } &&
 
24654
         { ac_try='test -z "$ac_c_werror_flag"
 
24655
                         || test ! -s conftest.err'
 
24656
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24657
  (eval $ac_try) 2>&5
 
24658
  ac_status=$?
 
24659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24660
  (exit $ac_status); }; } &&
 
24661
         { ac_try='test -s conftest$ac_exeext'
 
24662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24663
  (eval $ac_try) 2>&5
 
24664
  ac_status=$?
 
24665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24666
  (exit $ac_status); }; }; then
 
24667
  mysql_cv_compress="yes"
 
24668
    echo "$as_me:$LINENO: result: ok" >&5
 
24669
echo "${ECHO_T}ok" >&6
 
24670
else
 
24671
  echo "$as_me: failed program was:" >&5
 
24672
sed 's/^/| /' conftest.$ac_ext >&5
 
24673
 
 
24674
mysql_cv_compress="no"
 
24675
fi
 
24676
rm -f conftest.err conftest.$ac_objext \
 
24677
      conftest$ac_exeext conftest.$ac_ext
 
24678
 
 
24679
fi
 
24680
 
 
24681
CPPFLAGS="$save_CPPFLAGS"
 
24682
LIBS="$save_LIBS"
 
24683
 
 
24684
        if test "$mysql_cv_compress" = "no"; then
 
24685
 
 
24686
ZLIB_INCLUDES="-I\$(top_srcdir)/zlib"
 
24687
ZLIB_LIBS="\$(top_builddir)/zlib/libz.la"
 
24688
ZLIB_DEPS="-lz"
 
24689
zlib_dir="zlib"
 
24690
 
 
24691
mysql_cv_compress="yes"
 
24692
 
 
24693
          echo "$as_me:$LINENO: result: system-wide zlib not found, using one bundled with MySQL" >&5
 
24694
echo "${ECHO_T}system-wide zlib not found, using one bundled with MySQL" >&6
 
24695
        fi
 
24696
        ;;
 
24697
      *)
 
24698
        # Test for libz using all known library file endings
 
24699
        if test \( -f "$mysql_zlib_dir/lib/libz.a"  -o \
 
24700
                   -f "$mysql_zlib_dir/lib/libz.so" -o \
 
24701
                   -f "$mysql_zlib_dir/lib/libz.sl" -o \
 
24702
                   -f "$mysql_zlib_dir/lib/libz.dylib" \) \
 
24703
                -a -f "$mysql_zlib_dir/include/zlib.h"; then
 
24704
          ZLIB_INCLUDES="-I$mysql_zlib_dir/include"
 
24705
          ZLIB_LIBS="-L$mysql_zlib_dir/lib -lz"
 
24706
 
 
24707
save_CPPFLAGS="$CPPFLAGS"
 
24708
save_LIBS="$LIBS"
 
24709
CPPFLAGS="$ZLIB_INCLUDES $CPPFLAGS"
 
24710
LIBS="$LIBS $ZLIB_LIBS"
 
24711
if test "${mysql_cv_compress+set}" = set; then
 
24712
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24713
else
 
24714
  cat >conftest.$ac_ext <<_ACEOF
 
24715
/* confdefs.h.  */
 
24716
_ACEOF
 
24717
cat confdefs.h >>conftest.$ac_ext
 
24718
cat >>conftest.$ac_ext <<_ACEOF
 
24719
/* end confdefs.h.  */
 
24720
#include <zlib.h>
 
24721
int
 
24722
main ()
 
24723
{
 
24724
return zlibCompileFlags();
 
24725
  ;
 
24726
  return 0;
 
24727
}
 
24728
_ACEOF
 
24729
rm -f conftest.$ac_objext conftest$ac_exeext
 
24730
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24731
  (eval $ac_link) 2>conftest.er1
 
24732
  ac_status=$?
 
24733
  grep -v '^ *+' conftest.er1 >conftest.err
 
24734
  rm -f conftest.er1
 
24735
  cat conftest.err >&5
 
24736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24737
  (exit $ac_status); } &&
 
24738
         { ac_try='test -z "$ac_c_werror_flag"
 
24739
                         || test ! -s conftest.err'
 
24740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24741
  (eval $ac_try) 2>&5
 
24742
  ac_status=$?
 
24743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24744
  (exit $ac_status); }; } &&
 
24745
         { ac_try='test -s conftest$ac_exeext'
 
24746
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24747
  (eval $ac_try) 2>&5
 
24748
  ac_status=$?
 
24749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24750
  (exit $ac_status); }; }; then
 
24751
  mysql_cv_compress="yes"
 
24752
    echo "$as_me:$LINENO: result: ok" >&5
 
24753
echo "${ECHO_T}ok" >&6
 
24754
else
 
24755
  echo "$as_me: failed program was:" >&5
 
24756
sed 's/^/| /' conftest.$ac_ext >&5
 
24757
 
 
24758
mysql_cv_compress="no"
 
24759
fi
 
24760
rm -f conftest.err conftest.$ac_objext \
 
24761
      conftest$ac_exeext conftest.$ac_ext
 
24762
 
 
24763
fi
 
24764
 
 
24765
CPPFLAGS="$save_CPPFLAGS"
 
24766
LIBS="$save_LIBS"
 
24767
 
 
24768
        fi
 
24769
        if test "x$mysql_cv_compress" != "xyes"; then
 
24770
          { { echo "$as_me:$LINENO: error: headers or binaries were not found in $mysql_zlib_dir/{include,lib}" >&5
 
24771
echo "$as_me: error: headers or binaries were not found in $mysql_zlib_dir/{include,lib}" >&2;}
 
24772
   { (exit 1); exit 1; }; }
 
24773
        fi
 
24774
        ;;
 
24775
    esac
 
24776
    if test "$mysql_cv_compress" = "yes"; then
 
24777
      if test "x$ZLIB_DEPS" = "x"; then
 
24778
        ZLIB_DEPS="$ZLIB_LIBS"
 
24779
      fi
 
24780
 
 
24781
 
 
24782
 
 
24783
 
 
24784
cat >>confdefs.h <<\_ACEOF
 
24785
#define HAVE_COMPRESS 1
 
24786
_ACEOF
 
24787
 
 
24788
    fi
 
24789
    ;;
 
24790
esac
 
24791
 
 
24792
 
 
24793
# For large pages support
 
24794
if test "$TARGET_LINUX" = "true"
 
24795
then
 
24796
  # For SHM_HUGETLB on Linux
 
24797
  echo "$as_me:$LINENO: checking whether SHM_HUGETLB is declared" >&5
 
24798
echo $ECHO_N "checking whether SHM_HUGETLB is declared... $ECHO_C" >&6
 
24799
if test "${ac_cv_have_decl_SHM_HUGETLB+set}" = set; then
 
24800
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24801
else
 
24802
  cat >conftest.$ac_ext <<_ACEOF
 
24803
/* confdefs.h.  */
 
24804
_ACEOF
 
24805
cat confdefs.h >>conftest.$ac_ext
 
24806
cat >>conftest.$ac_ext <<_ACEOF
 
24807
/* end confdefs.h.  */
 
24808
 
 
24809
#include <sys/shm.h>
 
24810
 
 
24811
 
 
24812
 
 
24813
int
 
24814
main ()
 
24815
{
 
24816
#ifndef SHM_HUGETLB
 
24817
  char *p = (char *) SHM_HUGETLB;
 
24818
#endif
 
24819
 
 
24820
  ;
 
24821
  return 0;
 
24822
}
 
24823
_ACEOF
 
24824
rm -f conftest.$ac_objext
 
24825
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24826
  (eval $ac_compile) 2>conftest.er1
 
24827
  ac_status=$?
 
24828
  grep -v '^ *+' conftest.er1 >conftest.err
 
24829
  rm -f conftest.er1
 
24830
  cat conftest.err >&5
 
24831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24832
  (exit $ac_status); } &&
 
24833
         { ac_try='test -z "$ac_c_werror_flag"
 
24834
                         || test ! -s conftest.err'
 
24835
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24836
  (eval $ac_try) 2>&5
 
24837
  ac_status=$?
 
24838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24839
  (exit $ac_status); }; } &&
 
24840
         { ac_try='test -s conftest.$ac_objext'
 
24841
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24842
  (eval $ac_try) 2>&5
 
24843
  ac_status=$?
 
24844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24845
  (exit $ac_status); }; }; then
 
24846
  ac_cv_have_decl_SHM_HUGETLB=yes
 
24847
else
 
24848
  echo "$as_me: failed program was:" >&5
 
24849
sed 's/^/| /' conftest.$ac_ext >&5
 
24850
 
 
24851
ac_cv_have_decl_SHM_HUGETLB=no
 
24852
fi
 
24853
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24854
fi
 
24855
echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHM_HUGETLB" >&5
 
24856
echo "${ECHO_T}$ac_cv_have_decl_SHM_HUGETLB" >&6
 
24857
if test $ac_cv_have_decl_SHM_HUGETLB = yes; then
 
24858
 
 
24859
cat >>confdefs.h <<_ACEOF
 
24860
#define HAVE_DECL_SHM_HUGETLB 1
 
24861
_ACEOF
 
24862
 
 
24863
 
 
24864
cat >>confdefs.h <<\_ACEOF
 
24865
#define HAVE_LARGE_PAGES 1
 
24866
_ACEOF
 
24867
 
 
24868
 
 
24869
cat >>confdefs.h <<\_ACEOF
 
24870
#define HUGETLB_USE_PROC_MEMINFO 1
 
24871
_ACEOF
 
24872
 
 
24873
 
 
24874
else
 
24875
  cat >>confdefs.h <<_ACEOF
 
24876
#define HAVE_DECL_SHM_HUGETLB 0
 
24877
_ACEOF
 
24878
 
 
24879
 
 
24880
fi
 
24881
 
 
24882
 
 
24883
fi
 
24884
 
 
24885
#--------------------------------------------------------------------
 
24886
# Check for TCP wrapper support
 
24887
#--------------------------------------------------------------------
 
24888
 
 
24889
 
 
24890
# Check whether --with-libwrap or --without-libwrap was given.
 
24891
if test "${with_libwrap+set}" = set; then
 
24892
  withval="$with_libwrap"
 
24893
 
 
24894
  case "$with_libwrap" in
 
24895
  no) : ;;
 
24896
  yes|*)
 
24897
    _cppflags=${CPPFLAGS}
 
24898
    _ldflags=${LDFLAGS}
 
24899
 
 
24900
    if test "$with_libwrap" != "yes"; then
 
24901
      CPPFLAGS="${CPPFLAGS} -I$with_libwrap/include"
 
24902
      LDFLAGS="${LDFLAGS} -L$with_libwrap/lib"
 
24903
    fi
 
24904
 
 
24905
    _libs=${LIBS}
 
24906
    if test "${ac_cv_header_tcpd_h+set}" = set; then
 
24907
  echo "$as_me:$LINENO: checking for tcpd.h" >&5
 
24908
echo $ECHO_N "checking for tcpd.h... $ECHO_C" >&6
 
24909
if test "${ac_cv_header_tcpd_h+set}" = set; then
 
24910
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24911
fi
 
24912
echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
 
24913
echo "${ECHO_T}$ac_cv_header_tcpd_h" >&6
 
24914
else
 
24915
  # Is the header compilable?
 
24916
echo "$as_me:$LINENO: checking tcpd.h usability" >&5
 
24917
echo $ECHO_N "checking tcpd.h usability... $ECHO_C" >&6
 
24918
cat >conftest.$ac_ext <<_ACEOF
 
24919
/* confdefs.h.  */
 
24920
_ACEOF
 
24921
cat confdefs.h >>conftest.$ac_ext
 
24922
cat >>conftest.$ac_ext <<_ACEOF
 
24923
/* end confdefs.h.  */
 
24924
$ac_includes_default
 
24925
#include <tcpd.h>
 
24926
_ACEOF
 
24927
rm -f conftest.$ac_objext
 
24928
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24929
  (eval $ac_compile) 2>conftest.er1
 
24930
  ac_status=$?
 
24931
  grep -v '^ *+' conftest.er1 >conftest.err
 
24932
  rm -f conftest.er1
 
24933
  cat conftest.err >&5
 
24934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24935
  (exit $ac_status); } &&
 
24936
         { ac_try='test -z "$ac_c_werror_flag"
 
24937
                         || test ! -s conftest.err'
 
24938
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24939
  (eval $ac_try) 2>&5
 
24940
  ac_status=$?
 
24941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24942
  (exit $ac_status); }; } &&
 
24943
         { ac_try='test -s conftest.$ac_objext'
 
24944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24945
  (eval $ac_try) 2>&5
 
24946
  ac_status=$?
 
24947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24948
  (exit $ac_status); }; }; then
 
24949
  ac_header_compiler=yes
 
24950
else
 
24951
  echo "$as_me: failed program was:" >&5
 
24952
sed 's/^/| /' conftest.$ac_ext >&5
 
24953
 
 
24954
ac_header_compiler=no
 
24955
fi
 
24956
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24957
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24958
echo "${ECHO_T}$ac_header_compiler" >&6
 
24959
 
 
24960
# Is the header present?
 
24961
echo "$as_me:$LINENO: checking tcpd.h presence" >&5
 
24962
echo $ECHO_N "checking tcpd.h presence... $ECHO_C" >&6
 
24963
cat >conftest.$ac_ext <<_ACEOF
 
24964
/* confdefs.h.  */
 
24965
_ACEOF
 
24966
cat confdefs.h >>conftest.$ac_ext
 
24967
cat >>conftest.$ac_ext <<_ACEOF
 
24968
/* end confdefs.h.  */
 
24969
#include <tcpd.h>
 
24970
_ACEOF
 
24971
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
24972
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
24973
  ac_status=$?
 
24974
  grep -v '^ *+' conftest.er1 >conftest.err
 
24975
  rm -f conftest.er1
 
24976
  cat conftest.err >&5
 
24977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24978
  (exit $ac_status); } >/dev/null; then
 
24979
  if test -s conftest.err; then
 
24980
    ac_cpp_err=$ac_c_preproc_warn_flag
 
24981
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
24982
  else
 
24983
    ac_cpp_err=
 
24984
  fi
 
24985
else
 
24986
  ac_cpp_err=yes
 
24987
fi
 
24988
if test -z "$ac_cpp_err"; then
 
24989
  ac_header_preproc=yes
 
24990
else
 
24991
  echo "$as_me: failed program was:" >&5
 
24992
sed 's/^/| /' conftest.$ac_ext >&5
 
24993
 
 
24994
  ac_header_preproc=no
 
24995
fi
 
24996
rm -f conftest.err conftest.$ac_ext
 
24997
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24998
echo "${ECHO_T}$ac_header_preproc" >&6
 
24999
 
 
25000
# So?  What about this header?
 
25001
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
25002
  yes:no: )
 
25003
    { echo "$as_me:$LINENO: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
25004
echo "$as_me: WARNING: tcpd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
25005
    { echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the compiler's result" >&5
 
25006
echo "$as_me: WARNING: tcpd.h: proceeding with the compiler's result" >&2;}
 
25007
    ac_header_preproc=yes
 
25008
    ;;
 
25009
  no:yes:* )
 
25010
    { echo "$as_me:$LINENO: WARNING: tcpd.h: present but cannot be compiled" >&5
 
25011
echo "$as_me: WARNING: tcpd.h: present but cannot be compiled" >&2;}
 
25012
    { echo "$as_me:$LINENO: WARNING: tcpd.h:     check for missing prerequisite headers?" >&5
 
25013
echo "$as_me: WARNING: tcpd.h:     check for missing prerequisite headers?" >&2;}
 
25014
    { echo "$as_me:$LINENO: WARNING: tcpd.h: see the Autoconf documentation" >&5
 
25015
echo "$as_me: WARNING: tcpd.h: see the Autoconf documentation" >&2;}
 
25016
    { echo "$as_me:$LINENO: WARNING: tcpd.h:     section \"Present But Cannot Be Compiled\"" >&5
 
25017
echo "$as_me: WARNING: tcpd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
25018
    { echo "$as_me:$LINENO: WARNING: tcpd.h: proceeding with the preprocessor's result" >&5
 
25019
echo "$as_me: WARNING: tcpd.h: proceeding with the preprocessor's result" >&2;}
 
25020
    { echo "$as_me:$LINENO: WARNING: tcpd.h: in the future, the compiler will take precedence" >&5
 
25021
echo "$as_me: WARNING: tcpd.h: in the future, the compiler will take precedence" >&2;}
 
25022
    (
 
25023
      cat <<\_ASBOX
 
25024
## ------------------------------------------ ##
 
25025
## Report this to the AC_PACKAGE_NAME lists.  ##
 
25026
## ------------------------------------------ ##
 
25027
_ASBOX
 
25028
    ) |
 
25029
      sed "s/^/$as_me: WARNING:     /" >&2
 
25030
    ;;
 
25031
esac
 
25032
echo "$as_me:$LINENO: checking for tcpd.h" >&5
 
25033
echo $ECHO_N "checking for tcpd.h... $ECHO_C" >&6
 
25034
if test "${ac_cv_header_tcpd_h+set}" = set; then
 
25035
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25036
else
 
25037
  ac_cv_header_tcpd_h=$ac_header_preproc
 
25038
fi
 
25039
echo "$as_me:$LINENO: result: $ac_cv_header_tcpd_h" >&5
 
25040
echo "${ECHO_T}$ac_cv_header_tcpd_h" >&6
 
25041
 
 
25042
fi
 
25043
if test $ac_cv_header_tcpd_h = yes; then
 
25044
  LIBS="-lwrap $LIBS"
 
25045
      echo "$as_me:$LINENO: checking for TCP wrappers library -lwrap" >&5
 
25046
echo $ECHO_N "checking for TCP wrappers library -lwrap... $ECHO_C" >&6
 
25047
      cat >conftest.$ac_ext <<_ACEOF
 
25048
/* confdefs.h.  */
 
25049
_ACEOF
 
25050
cat confdefs.h >>conftest.$ac_ext
 
25051
cat >>conftest.$ac_ext <<_ACEOF
 
25052
/* end confdefs.h.  */
 
25053
#include <tcpd.h>
 
25054
int allow_severity = 0;
 
25055
int deny_severity  = 0;
 
25056
 
 
25057
struct request_info *req;
 
25058
 
 
25059
int
 
25060
main ()
 
25061
{
 
25062
hosts_access (req)
 
25063
  ;
 
25064
  return 0;
 
25065
}
 
25066
_ACEOF
 
25067
rm -f conftest.$ac_objext conftest$ac_exeext
 
25068
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25069
  (eval $ac_link) 2>conftest.er1
 
25070
  ac_status=$?
 
25071
  grep -v '^ *+' conftest.er1 >conftest.err
 
25072
  rm -f conftest.er1
 
25073
  cat conftest.err >&5
 
25074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25075
  (exit $ac_status); } &&
 
25076
         { ac_try='test -z "$ac_c_werror_flag"
 
25077
                         || test ! -s conftest.err'
 
25078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25079
  (eval $ac_try) 2>&5
 
25080
  ac_status=$?
 
25081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25082
  (exit $ac_status); }; } &&
 
25083
         { ac_try='test -s conftest$ac_exeext'
 
25084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25085
  (eval $ac_try) 2>&5
 
25086
  ac_status=$?
 
25087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25088
  (exit $ac_status); }; }; then
 
25089
  echo "$as_me:$LINENO: result: yes" >&5
 
25090
echo "${ECHO_T}yes" >&6
 
25091
 
 
25092
cat >>confdefs.h <<\_ACEOF
 
25093
#define LIBWRAP 1
 
25094
_ACEOF
 
25095
 
 
25096
 
 
25097
cat >>confdefs.h <<\_ACEOF
 
25098
#define HAVE_LIBWRAP 1
 
25099
_ACEOF
 
25100
 
 
25101
        if test "$with_libwrap" != "yes"; then
 
25102
            WRAPLIBS="-L${with_libwrap}/lib"
 
25103
        fi
 
25104
        WRAPLIBS="${WRAPLIBS} -lwrap"
 
25105
else
 
25106
  echo "$as_me: failed program was:" >&5
 
25107
sed 's/^/| /' conftest.$ac_ext >&5
 
25108
 
 
25109
echo "$as_me:$LINENO: result: no" >&5
 
25110
echo "${ECHO_T}no" >&6
 
25111
        CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
 
25112
fi
 
25113
rm -f conftest.err conftest.$ac_objext \
 
25114
      conftest$ac_exeext conftest.$ac_ext
 
25115
else
 
25116
  CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
 
25117
fi
 
25118
 
 
25119
 
 
25120
    LDFLAGS=${_ldflags} LIBS=${_libs}
 
25121
    ;;
 
25122
  esac
 
25123
 
 
25124
fi;
 
25125
 
 
25126
 
 
25127
if test "$TARGET_LINUX" = "true"; then
 
25128
  echo "$as_me:$LINENO: checking for atomic operations" >&5
 
25129
echo $ECHO_N "checking for atomic operations... $ECHO_C" >&6
 
25130
 
 
25131
 
 
25132
 
 
25133
  ac_ext=cc
 
25134
ac_cpp='$CXXCPP $CPPFLAGS'
 
25135
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
25136
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
25137
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
25138
 
 
25139
 
 
25140
  atom_ops=
 
25141
  if test "$cross_compiling" = yes; then
 
25142
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
25143
See \`config.log' for more details." >&5
 
25144
echo "$as_me: error: cannot run test program while cross compiling
 
25145
See \`config.log' for more details." >&2;}
 
25146
   { (exit 1); exit 1; }; }
 
25147
else
 
25148
  cat >conftest.$ac_ext <<_ACEOF
 
25149
/* confdefs.h.  */
 
25150
_ACEOF
 
25151
cat confdefs.h >>conftest.$ac_ext
 
25152
cat >>conftest.$ac_ext <<_ACEOF
 
25153
/* end confdefs.h.  */
 
25154
 
 
25155
#include <asm/atomic.h>
 
25156
int main()
 
25157
{
 
25158
  atomic_t v;
 
25159
 
 
25160
  atomic_set(&v, 23);
 
25161
  atomic_add(5, &v);
 
25162
  return atomic_read(&v) == 28 ? 0 : -1;
 
25163
}
 
25164
 
 
25165
_ACEOF
 
25166
rm -f conftest$ac_exeext
 
25167
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25168
  (eval $ac_link) 2>&5
 
25169
  ac_status=$?
 
25170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25171
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25173
  (eval $ac_try) 2>&5
 
25174
  ac_status=$?
 
25175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25176
  (exit $ac_status); }; }; then
 
25177
 
 
25178
cat >>confdefs.h <<\_ACEOF
 
25179
#define HAVE_ATOMIC_ADD 1
 
25180
_ACEOF
 
25181
 
 
25182
   atom_ops="${atom_ops}atomic_add "
 
25183
else
 
25184
  echo "$as_me: program exited with status $ac_status" >&5
 
25185
echo "$as_me: failed program was:" >&5
 
25186
sed 's/^/| /' conftest.$ac_ext >&5
 
25187
 
 
25188
fi
 
25189
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25190
fi
 
25191
  if test "$cross_compiling" = yes; then
 
25192
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
25193
See \`config.log' for more details." >&5
 
25194
echo "$as_me: error: cannot run test program while cross compiling
 
25195
See \`config.log' for more details." >&2;}
 
25196
   { (exit 1); exit 1; }; }
 
25197
else
 
25198
  cat >conftest.$ac_ext <<_ACEOF
 
25199
/* confdefs.h.  */
 
25200
_ACEOF
 
25201
cat confdefs.h >>conftest.$ac_ext
 
25202
cat >>conftest.$ac_ext <<_ACEOF
 
25203
/* end confdefs.h.  */
 
25204
 
 
25205
#include <asm/atomic.h>
 
25206
int main()
 
25207
{
 
25208
  atomic_t v;
 
25209
 
 
25210
  atomic_set(&v, 23);
 
25211
  atomic_sub(5, &v);
 
25212
  return atomic_read(&v) == 18 ? 0 : -1;
 
25213
}
 
25214
 
 
25215
_ACEOF
 
25216
rm -f conftest$ac_exeext
 
25217
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25218
  (eval $ac_link) 2>&5
 
25219
  ac_status=$?
 
25220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25221
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25222
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25223
  (eval $ac_try) 2>&5
 
25224
  ac_status=$?
 
25225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25226
  (exit $ac_status); }; }; then
 
25227
 
 
25228
cat >>confdefs.h <<\_ACEOF
 
25229
#define HAVE_ATOMIC_SUB 1
 
25230
_ACEOF
 
25231
 
 
25232
   atom_ops="${atom_ops}atomic_sub "
 
25233
else
 
25234
  echo "$as_me: program exited with status $ac_status" >&5
 
25235
echo "$as_me: failed program was:" >&5
 
25236
sed 's/^/| /' conftest.$ac_ext >&5
 
25237
 
 
25238
fi
 
25239
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25240
fi
 
25241
 
 
25242
  if test -z "$atom_ops"; then atom_ops="no"; fi
 
25243
  echo "$as_me:$LINENO: result: $atom_ops" >&5
 
25244
echo "${ECHO_T}$atom_ops" >&6
 
25245
 
 
25246
  ac_ext=c
 
25247
ac_cpp='$CPP $CPPFLAGS'
 
25248
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
25249
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
25250
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
25251
 
 
25252
 
 
25253
 
 
25254
# Check whether --with-pstack or --without-pstack was given.
 
25255
if test "${with_pstack+set}" = set; then
 
25256
  withval="$with_pstack"
 
25257
   USE_PSTACK=$withval
 
25258
else
 
25259
   USE_PSTACK=no
 
25260
fi;
 
25261
  pstack_libs=
 
25262
  pstack_dirs=
 
25263
  if test "$USE_PSTACK" = yes -a "$TARGET_LINUX" = "true" -a "$BASE_MACHINE_TYPE" = "i386"
 
25264
  then
 
25265
    have_libiberty= have_libbfd=
 
25266
    my_save_LIBS="$LIBS"
 
25267
    echo "$as_me:$LINENO: checking for fdmatch in -liberty" >&5
 
25268
echo $ECHO_N "checking for fdmatch in -liberty... $ECHO_C" >&6
 
25269
if test "${ac_cv_lib_iberty_fdmatch+set}" = set; then
 
25270
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25271
else
 
25272
  ac_check_lib_save_LIBS=$LIBS
 
25273
LIBS="-liberty  $LIBS"
 
25274
cat >conftest.$ac_ext <<_ACEOF
 
25275
/* confdefs.h.  */
 
25276
_ACEOF
 
25277
cat confdefs.h >>conftest.$ac_ext
 
25278
cat >>conftest.$ac_ext <<_ACEOF
 
25279
/* end confdefs.h.  */
 
25280
 
 
25281
/* Override any gcc2 internal prototype to avoid an error.  */
 
25282
#ifdef __cplusplus
 
25283
extern "C"
 
25284
#endif
 
25285
/* We use char because int might match the return type of a gcc2
 
25286
   builtin and then its argument prototype would still apply.  */
 
25287
char fdmatch ();
 
25288
int
 
25289
main ()
 
25290
{
 
25291
fdmatch ();
 
25292
  ;
 
25293
  return 0;
 
25294
}
 
25295
_ACEOF
 
25296
rm -f conftest.$ac_objext conftest$ac_exeext
 
25297
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25298
  (eval $ac_link) 2>conftest.er1
 
25299
  ac_status=$?
 
25300
  grep -v '^ *+' conftest.er1 >conftest.err
 
25301
  rm -f conftest.er1
 
25302
  cat conftest.err >&5
 
25303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25304
  (exit $ac_status); } &&
 
25305
         { ac_try='test -z "$ac_c_werror_flag"
 
25306
                         || test ! -s conftest.err'
 
25307
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25308
  (eval $ac_try) 2>&5
 
25309
  ac_status=$?
 
25310
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25311
  (exit $ac_status); }; } &&
 
25312
         { ac_try='test -s conftest$ac_exeext'
 
25313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25314
  (eval $ac_try) 2>&5
 
25315
  ac_status=$?
 
25316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25317
  (exit $ac_status); }; }; then
 
25318
  ac_cv_lib_iberty_fdmatch=yes
 
25319
else
 
25320
  echo "$as_me: failed program was:" >&5
 
25321
sed 's/^/| /' conftest.$ac_ext >&5
 
25322
 
 
25323
ac_cv_lib_iberty_fdmatch=no
 
25324
fi
 
25325
rm -f conftest.err conftest.$ac_objext \
 
25326
      conftest$ac_exeext conftest.$ac_ext
 
25327
LIBS=$ac_check_lib_save_LIBS
 
25328
fi
 
25329
echo "$as_me:$LINENO: result: $ac_cv_lib_iberty_fdmatch" >&5
 
25330
echo "${ECHO_T}$ac_cv_lib_iberty_fdmatch" >&6
 
25331
if test $ac_cv_lib_iberty_fdmatch = yes; then
 
25332
  have_libiberty=yes
 
25333
       echo "$as_me:$LINENO: checking for bfd_openr in -lbfd" >&5
 
25334
echo $ECHO_N "checking for bfd_openr in -lbfd... $ECHO_C" >&6
 
25335
if test "${ac_cv_lib_bfd_bfd_openr+set}" = set; then
 
25336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25337
else
 
25338
  ac_check_lib_save_LIBS=$LIBS
 
25339
LIBS="-lbfd -liberty $LIBS"
 
25340
cat >conftest.$ac_ext <<_ACEOF
 
25341
/* confdefs.h.  */
 
25342
_ACEOF
 
25343
cat confdefs.h >>conftest.$ac_ext
 
25344
cat >>conftest.$ac_ext <<_ACEOF
 
25345
/* end confdefs.h.  */
 
25346
 
 
25347
/* Override any gcc2 internal prototype to avoid an error.  */
 
25348
#ifdef __cplusplus
 
25349
extern "C"
 
25350
#endif
 
25351
/* We use char because int might match the return type of a gcc2
 
25352
   builtin and then its argument prototype would still apply.  */
 
25353
char bfd_openr ();
 
25354
int
 
25355
main ()
 
25356
{
 
25357
bfd_openr ();
 
25358
  ;
 
25359
  return 0;
 
25360
}
 
25361
_ACEOF
 
25362
rm -f conftest.$ac_objext conftest$ac_exeext
 
25363
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25364
  (eval $ac_link) 2>conftest.er1
 
25365
  ac_status=$?
 
25366
  grep -v '^ *+' conftest.er1 >conftest.err
 
25367
  rm -f conftest.er1
 
25368
  cat conftest.err >&5
 
25369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25370
  (exit $ac_status); } &&
 
25371
         { ac_try='test -z "$ac_c_werror_flag"
 
25372
                         || test ! -s conftest.err'
 
25373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25374
  (eval $ac_try) 2>&5
 
25375
  ac_status=$?
 
25376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25377
  (exit $ac_status); }; } &&
 
25378
         { ac_try='test -s conftest$ac_exeext'
 
25379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25380
  (eval $ac_try) 2>&5
 
25381
  ac_status=$?
 
25382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25383
  (exit $ac_status); }; }; then
 
25384
  ac_cv_lib_bfd_bfd_openr=yes
 
25385
else
 
25386
  echo "$as_me: failed program was:" >&5
 
25387
sed 's/^/| /' conftest.$ac_ext >&5
 
25388
 
 
25389
ac_cv_lib_bfd_bfd_openr=no
 
25390
fi
 
25391
rm -f conftest.err conftest.$ac_objext \
 
25392
      conftest$ac_exeext conftest.$ac_ext
 
25393
LIBS=$ac_check_lib_save_LIBS
 
25394
fi
 
25395
echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_openr" >&5
 
25396
echo "${ECHO_T}$ac_cv_lib_bfd_bfd_openr" >&6
 
25397
if test $ac_cv_lib_bfd_bfd_openr = yes; then
 
25398
  have_libbfd=yes
 
25399
fi
 
25400
 
 
25401
fi
 
25402
 
 
25403
    LIBS="$my_save_LIBS"
 
25404
 
 
25405
    if test x"$have_libiberty" = xyes -a x"$have_libbfd" = xyes
 
25406
    then
 
25407
      pstack_dirs='$(top_srcdir)'/pstack
 
25408
      pstack_libs="../pstack/libpstack.a -lbfd -liberty"
 
25409
      # We must link staticly when using pstack
 
25410
      with_mysqld_ldflags="-all-static"
 
25411
 
 
25412
 
 
25413
 
 
25414
cat >>confdefs.h <<\_ACEOF
 
25415
#define USE_PSTACK 1
 
25416
_ACEOF
 
25417
 
 
25418
    else
 
25419
      USE_PSTACK="no"
 
25420
    fi
 
25421
  else
 
25422
    USE_PSTACK="no"
 
25423
  fi
 
25424
fi
 
25425
 
 
25426
 
 
25427
if test "$USE_PSTACK" = "yes"; then
 
25428
  COMPILE_PSTACK_TRUE=
 
25429
  COMPILE_PSTACK_FALSE='#'
 
25430
else
 
25431
  COMPILE_PSTACK_TRUE='#'
 
25432
  COMPILE_PSTACK_FALSE=
 
25433
fi
 
25434
 
 
25435
echo "$as_me:$LINENO: checking if we should use pstack" >&5
 
25436
echo $ECHO_N "checking if we should use pstack... $ECHO_C" >&6
 
25437
echo "$as_me:$LINENO: result: $USE_PSTACK" >&5
 
25438
echo "${ECHO_T}$USE_PSTACK" >&6
 
25439
 
 
25440
# Check for gtty if termio.h doesn't exists
 
25441
if test "$ac_cv_header_termio_h" = "no" -a "$ac_cv_header_termios_h" = "no"
 
25442
then
 
25443
  echo "$as_me:$LINENO: checking for gtty" >&5
 
25444
echo $ECHO_N "checking for gtty... $ECHO_C" >&6
 
25445
if test "${ac_cv_func_gtty+set}" = set; then
 
25446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25447
else
 
25448
  cat >conftest.$ac_ext <<_ACEOF
 
25449
/* confdefs.h.  */
 
25450
_ACEOF
 
25451
cat confdefs.h >>conftest.$ac_ext
 
25452
cat >>conftest.$ac_ext <<_ACEOF
 
25453
/* end confdefs.h.  */
 
25454
/* Define gtty to an innocuous variant, in case <limits.h> declares gtty.
 
25455
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
25456
#define gtty innocuous_gtty
 
25457
 
 
25458
/* System header to define __stub macros and hopefully few prototypes,
 
25459
    which can conflict with char gtty (); below.
 
25460
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
25461
    <limits.h> exists even on freestanding compilers.  */
 
25462
 
 
25463
#ifdef __STDC__
 
25464
# include <limits.h>
 
25465
#else
 
25466
# include <assert.h>
 
25467
#endif
 
25468
 
 
25469
#undef gtty
 
25470
 
 
25471
/* Override any gcc2 internal prototype to avoid an error.  */
 
25472
#ifdef __cplusplus
 
25473
extern "C"
 
25474
{
 
25475
#endif
 
25476
/* We use char because int might match the return type of a gcc2
 
25477
   builtin and then its argument prototype would still apply.  */
 
25478
char gtty ();
 
25479
/* The GNU C library defines this for functions which it implements
 
25480
    to always fail with ENOSYS.  Some functions are actually named
 
25481
    something starting with __ and the normal name is an alias.  */
 
25482
#if defined (__stub_gtty) || defined (__stub___gtty)
 
25483
choke me
 
25484
#else
 
25485
char (*f) () = gtty;
 
25486
#endif
 
25487
#ifdef __cplusplus
 
25488
}
 
25489
#endif
 
25490
 
 
25491
int
 
25492
main ()
 
25493
{
 
25494
return f != gtty;
 
25495
  ;
 
25496
  return 0;
 
25497
}
 
25498
_ACEOF
 
25499
rm -f conftest.$ac_objext conftest$ac_exeext
 
25500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25501
  (eval $ac_link) 2>conftest.er1
 
25502
  ac_status=$?
 
25503
  grep -v '^ *+' conftest.er1 >conftest.err
 
25504
  rm -f conftest.er1
 
25505
  cat conftest.err >&5
 
25506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25507
  (exit $ac_status); } &&
 
25508
         { ac_try='test -z "$ac_c_werror_flag"
 
25509
                         || test ! -s conftest.err'
 
25510
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25511
  (eval $ac_try) 2>&5
 
25512
  ac_status=$?
 
25513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25514
  (exit $ac_status); }; } &&
 
25515
         { ac_try='test -s conftest$ac_exeext'
 
25516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25517
  (eval $ac_try) 2>&5
 
25518
  ac_status=$?
 
25519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25520
  (exit $ac_status); }; }; then
 
25521
  ac_cv_func_gtty=yes
 
25522
else
 
25523
  echo "$as_me: failed program was:" >&5
 
25524
sed 's/^/| /' conftest.$ac_ext >&5
 
25525
 
 
25526
ac_cv_func_gtty=no
 
25527
fi
 
25528
rm -f conftest.err conftest.$ac_objext \
 
25529
      conftest$ac_exeext conftest.$ac_ext
 
25530
fi
 
25531
echo "$as_me:$LINENO: result: $ac_cv_func_gtty" >&5
 
25532
echo "${ECHO_T}$ac_cv_func_gtty" >&6
 
25533
if test $ac_cv_func_gtty = yes; then
 
25534
  :
 
25535
else
 
25536
 
 
25537
echo "$as_me:$LINENO: checking for gtty in -lcompat" >&5
 
25538
echo $ECHO_N "checking for gtty in -lcompat... $ECHO_C" >&6
 
25539
if test "${ac_cv_lib_compat_gtty+set}" = set; then
 
25540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
25541
else
 
25542
  ac_check_lib_save_LIBS=$LIBS
 
25543
LIBS="-lcompat  $LIBS"
 
25544
cat >conftest.$ac_ext <<_ACEOF
 
25545
/* confdefs.h.  */
 
25546
_ACEOF
 
25547
cat confdefs.h >>conftest.$ac_ext
 
25548
cat >>conftest.$ac_ext <<_ACEOF
 
25549
/* end confdefs.h.  */
 
25550
 
 
25551
/* Override any gcc2 internal prototype to avoid an error.  */
 
25552
#ifdef __cplusplus
 
25553
extern "C"
 
25554
#endif
 
25555
/* We use char because int might match the return type of a gcc2
 
25556
   builtin and then its argument prototype would still apply.  */
 
25557
char gtty ();
 
25558
int
 
25559
main ()
 
25560
{
 
25561
gtty ();
 
25562
  ;
 
25563
  return 0;
 
25564
}
 
25565
_ACEOF
 
25566
rm -f conftest.$ac_objext conftest$ac_exeext
 
25567
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25568
  (eval $ac_link) 2>conftest.er1
 
25569
  ac_status=$?
 
25570
  grep -v '^ *+' conftest.er1 >conftest.err
 
25571
  rm -f conftest.er1
 
25572
  cat conftest.err >&5
 
25573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25574
  (exit $ac_status); } &&
 
25575
         { ac_try='test -z "$ac_c_werror_flag"
 
25576
                         || test ! -s conftest.err'
 
25577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25578
  (eval $ac_try) 2>&5
 
25579
  ac_status=$?
 
25580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25581
  (exit $ac_status); }; } &&
 
25582
         { ac_try='test -s conftest$ac_exeext'
 
25583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25584
  (eval $ac_try) 2>&5
 
25585
  ac_status=$?
 
25586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25587
  (exit $ac_status); }; }; then
 
25588
  ac_cv_lib_compat_gtty=yes
 
25589
else
 
25590
  echo "$as_me: failed program was:" >&5
 
25591
sed 's/^/| /' conftest.$ac_ext >&5
 
25592
 
 
25593
ac_cv_lib_compat_gtty=no
 
25594
fi
 
25595
rm -f conftest.err conftest.$ac_objext \
 
25596
      conftest$ac_exeext conftest.$ac_ext
 
25597
LIBS=$ac_check_lib_save_LIBS
 
25598
fi
 
25599
echo "$as_me:$LINENO: result: $ac_cv_lib_compat_gtty" >&5
 
25600
echo "${ECHO_T}$ac_cv_lib_compat_gtty" >&6
 
25601
if test $ac_cv_lib_compat_gtty = yes; then
 
25602
  cat >>confdefs.h <<_ACEOF
 
25603
#define HAVE_LIBCOMPAT 1
 
25604
_ACEOF
 
25605
 
 
25606
  LIBS="-lcompat $LIBS"
 
25607
 
 
25608
fi
 
25609
 
 
25610
fi
 
25611
 
 
25612
fi
 
25613
 
 
25614
# We make a special variable for non-threaded version of LIBS to avoid
 
25615
# including thread libs into non-threaded version of MySQL client library.
 
25616
# Later in this script LIBS will be augmented with a threads library.
 
25617
NON_THREADED_LIBS="$LIBS"
 
25618
 
 
25619
echo "$as_me:$LINENO: checking for int8" >&5
 
25620
echo $ECHO_N "checking for int8... $ECHO_C" >&6
 
25621
case $SYSTEM_TYPE in
 
25622
  *netware)
 
25623
    echo "$as_me:$LINENO: result: no" >&5
 
25624
echo "${ECHO_T}no" >&6
 
25625
    ;;
 
25626
  *)
 
25627
if test "$cross_compiling" = yes; then
 
25628
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
25629
See \`config.log' for more details." >&5
 
25630
echo "$as_me: error: cannot run test program while cross compiling
 
25631
See \`config.log' for more details." >&2;}
 
25632
   { (exit 1); exit 1; }; }
 
25633
else
 
25634
  cat >conftest.$ac_ext <<_ACEOF
 
25635
/* confdefs.h.  */
 
25636
_ACEOF
 
25637
cat confdefs.h >>conftest.$ac_ext
 
25638
cat >>conftest.$ac_ext <<_ACEOF
 
25639
/* end confdefs.h.  */
 
25640
 
 
25641
#ifdef HAVE_STDLIB_H
 
25642
#include <stdlib.h>
 
25643
#endif
 
25644
 
 
25645
#ifdef HAVE_STDDEF_H
 
25646
#include <stddef.h>
 
25647
#endif
 
25648
 
 
25649
#ifdef HAVE_SYS_TYPES_H
 
25650
#include <sys/types.h>
 
25651
#endif
 
25652
 
 
25653
int main()
 
25654
{
 
25655
  int8 i;
 
25656
  return 0;
 
25657
}
 
25658
 
 
25659
_ACEOF
 
25660
rm -f conftest$ac_exeext
 
25661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
25662
  (eval $ac_link) 2>&5
 
25663
  ac_status=$?
 
25664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25665
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
25666
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
25667
  (eval $ac_try) 2>&5
 
25668
  ac_status=$?
 
25669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25670
  (exit $ac_status); }; }; then
 
25671
 
 
25672
cat >>confdefs.h <<\_ACEOF
 
25673
#define HAVE_INT_8_16_32 1
 
25674
_ACEOF
 
25675
 
 
25676
echo "$as_me:$LINENO: result: yes" >&5
 
25677
echo "${ECHO_T}yes" >&6
 
25678
else
 
25679
  echo "$as_me: program exited with status $ac_status" >&5
 
25680
echo "$as_me: failed program was:" >&5
 
25681
sed 's/^/| /' conftest.$ac_ext >&5
 
25682
 
 
25683
( exit $ac_status )
 
25684
echo "$as_me:$LINENO: result: no" >&5
 
25685
echo "${ECHO_T}no" >&6
 
25686
 
 
25687
fi
 
25688
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
25689
fi
 
25690
    ;;
 
25691
esac
 
25692
 
 
25693
#
 
25694
# Some system specific hacks
 
25695
#
 
25696
 
 
25697
MAX_C_OPTIMIZE="-O3"
 
25698
MAX_CXX_OPTIMIZE="-O3"
 
25699
 
 
25700
ndb_cxxflags_fix=
 
25701
case $SYSTEM_TYPE-$MACHINE_TYPE-$ac_cv_c_compiler_gnu in
 
25702
# workaround for Sun Forte/x86 see BUG#4681
 
25703
  *solaris*-i?86-no)
 
25704
    CFLAGS="$CFLAGS -DBIG_TABLES"
 
25705
    CXXFLAGS="$CXXFLAGS -DBIG_TABLES"
 
25706
    ;;
 
25707
  *) ;;
 
25708
esac
 
25709
case $SYSTEM_TYPE-$ac_cv_c_compiler_gnu in
 
25710
# workaround for Sun Forte compile problem for ndb
 
25711
  *solaris*-no)
 
25712
    ndb_cxxflags_fix="$ndb_cxxflags_fix -instances=static"
 
25713
    ;;
 
25714
  *) ;;
 
25715
esac
 
25716
 
 
25717
 
 
25718
case $SYSTEM_TYPE in
 
25719
  *solaris2.7*)
 
25720
    # Solaris 2.7 has a broken /usr/include/widec.h
 
25721
    # Make a fixed copy in ./include
 
25722
    { echo "$as_me:$LINENO: WARNING: Fixing broken include files for $SYSTEM_TYPE" >&5
 
25723
echo "$as_me: WARNING: Fixing broken include files for $SYSTEM_TYPE" >&2;}
 
25724
    echo "  - Creating local copy of widec.h"
 
25725
    if test ! -d include
 
25726
    then
 
25727
      mkdir ./include
 
25728
    fi
 
25729
    builddir=`pwd`
 
25730
    sed -e "s|^#if[     ]*!defined(lint) && !defined(__lint)|#if !defined\(lint\) \&\& !defined\(__lint\) \&\& !defined\(getwc\)|" < /usr/include/widec.h > include/widec.h
 
25731
    CFLAGS="$CFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
 
25732
    CXXFLAGS="$CXXFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
 
25733
    ;;
 
25734
  *solaris2.8*)
 
25735
    # Solaris 2.8 has a broken /usr/include/widec.h
 
25736
    # Make a fixed copy in ./include
 
25737
    { echo "$as_me:$LINENO: WARNING: Fixing broken include files for $SYSTEM_TYPE" >&5
 
25738
echo "$as_me: WARNING: Fixing broken include files for $SYSTEM_TYPE" >&2;}
 
25739
    echo "  - Creating local copy of widec.h"
 
25740
    if test ! -d include
 
25741
    then
 
25742
      mkdir ./include
 
25743
    fi
 
25744
    builddir=`pwd`
 
25745
    sed -e "s|^#if[     ]*!defined(__lint)|#if !defined\(__lint\) \&\& !defined\(getwc\)|" < /usr/include/widec.h > include/widec.h
 
25746
    CFLAGS="$CFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
 
25747
    CXXFLAGS="$CXXFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
 
25748
    ;;
 
25749
  *solaris2.5.1*)
 
25750
    { echo "$as_me:$LINENO: WARNING: Enabling getpass() workaround for Solaris 2.5.1" >&5
 
25751
echo "$as_me: WARNING: Enabling getpass() workaround for Solaris 2.5.1" >&2;}
 
25752
    CFLAGS="$CFLAGS -DHAVE_BROKEN_GETPASS -DSOLARIS -DHAVE_RWLOCK_T";
 
25753
    CXXFLAGS="$CXXFLAGS -DHAVE_RWLOCK_T -DSOLARIS"
 
25754
    ;;
 
25755
  *solaris*)
 
25756
    CFLAGS="$CFLAGS -DHAVE_RWLOCK_T"
 
25757
    CXXFLAGS="$CXXFLAGS -DHAVE_RWLOCK_T"
 
25758
    ;;
 
25759
  *SunOS*)
 
25760
    { echo "$as_me:$LINENO: WARNING: Enabling getpass() workaround for SunOS" >&5
 
25761
echo "$as_me: WARNING: Enabling getpass() workaround for SunOS" >&2;}
 
25762
    CFLAGS="$CFLAGS -DHAVE_BROKEN_GETPASS -DSOLARIS";
 
25763
    ;;
 
25764
  *hpux10.20*)
 
25765
    { echo "$as_me:$LINENO: WARNING: Enabling workarounds for hpux 10.20" >&5
 
25766
echo "$as_me: WARNING: Enabling workarounds for hpux 10.20" >&2;}
 
25767
    CFLAGS="$CFLAGS -DHAVE_BROKEN_SNPRINTF -DSIGNALS_DONT_BREAK_READ -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHPUX10 -DSIGNAL_WITH_VIO_CLOSE -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -DHAVE_POSIX1003_4a_MUTEX"
 
25768
    CXXFLAGS="$CXXFLAGS -DHAVE_BROKEN_SNPRINTF -D_INCLUDE_LONGLONG -DSIGNALS_DONT_BREAK_READ -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHPUX10 -DSIGNAL_WITH_VIO_CLOSE -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT -DHAVE_POSIX1003_4a_MUTEX"
 
25769
    if test "$with_named_thread" = "no"
 
25770
    then
 
25771
      { echo "$as_me:$LINENO: WARNING: Using --with-named-thread=-lpthread" >&5
 
25772
echo "$as_me: WARNING: Using --with-named-thread=-lpthread" >&2;}
 
25773
      with_named_thread="-lcma"
 
25774
    fi
 
25775
    ;;
 
25776
  *hpux11.*)
 
25777
    { echo "$as_me:$LINENO: WARNING: Enabling workarounds for hpux 11" >&5
 
25778
echo "$as_me: WARNING: Enabling workarounds for hpux 11" >&2;}
 
25779
    CFLAGS="$CFLAGS -DHPUX11  -DSNPRINTF_RETURN_TRUNC -DHAVE_BROKEN_PREAD -DDONT_USE_FINITE -DHAVE_BROKEN_GETPASS -DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT"
 
25780
    CXXFLAGS="$CXXFLAGS -DHPUX11  -DSNPRINTF_RETURN_TRUNC -DHAVE_BROKEN_PREAD -DDONT_USE_FINITE -D_INCLUDE_LONGLONG -DNO_FCNTL_NONBLOCK -DDO_NOT_REMOVE_THREAD_WRAPPERS -DHAVE_BROKEN_PTHREAD_COND_TIMEDWAIT"
 
25781
    if test "$with_named_thread" = "no"
 
25782
    then
 
25783
      { echo "$as_me:$LINENO: WARNING: Using --with-named-thread=-lpthread" >&5
 
25784
echo "$as_me: WARNING: Using --with-named-thread=-lpthread" >&2;}
 
25785
      with_named_thread="-lpthread"
 
25786
    fi
 
25787
    # Fixes for HPUX 11.0 compiler
 
25788
    if test "$ac_cv_c_compiler_gnu" = "no"
 
25789
    then
 
25790
      CFLAGS="$CFLAGS -DHAVE_BROKEN_INLINE"
 
25791
# set working flags first in line, letting override it (i. e. for debug):
 
25792
      CXXFLAGS="+O2 $CXXFLAGS"
 
25793
      MAX_C_OPTIMIZE=""
 
25794
      MAX_CXX_OPTIMIZE=""
 
25795
      ndb_cxxflags_fix="$ndb_cxxflags_fix -Aa"
 
25796
    fi
 
25797
    ;;
 
25798
  *rhapsody*)
 
25799
    if test "$ac_cv_c_compiler_gnu" = "yes"
 
25800
    then
 
25801
      CPPFLAGS="$CPPFLAGS -traditional-cpp "
 
25802
      CFLAGS="-DHAVE_CTHREADS_WRAPPER -DDO_NOT_REMOVE_THREAD_WRAPPERS"
 
25803
      CXXFLAGS="-DHAVE_CTHREADS_WRAPPER"
 
25804
      if test $with_named_curses = "no"
 
25805
      then
 
25806
        with_named_curses=""
 
25807
      fi
 
25808
    fi
 
25809
    ;;
 
25810
  *darwin5*)
 
25811
    if test "$ac_cv_c_compiler_gnu" = "yes"
 
25812
    then
 
25813
      FLAGS="-traditional-cpp -DHAVE_DARWIN5_THREADS -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DHAVE_BROKEN_REALPATH"
 
25814
      CFLAGS="$CFLAGS $FLAGS"
 
25815
      CXXFLAGS="$CXXFLAGS $FLAGS"
 
25816
      MAX_C_OPTIMIZE="-O"
 
25817
      with_named_curses=""
 
25818
    fi
 
25819
    ;;
 
25820
  *darwin6*)
 
25821
    if test "$ac_cv_c_compiler_gnu" = "yes"
 
25822
    then
 
25823
      FLAGS="-D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DHAVE_BROKEN_REALPATH"
 
25824
      CFLAGS="$CFLAGS $FLAGS"
 
25825
      CXXFLAGS="$CXXFLAGS $FLAGS"
 
25826
      MAX_C_OPTIMIZE="-O"
 
25827
    fi
 
25828
    ;;
 
25829
  *darwin*)
 
25830
    if test "$ac_cv_c_compiler_gnu" = "yes"
 
25831
    then
 
25832
      FLAGS="-D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT"
 
25833
      CFLAGS="$CFLAGS $FLAGS"
 
25834
      CXXFLAGS="$CXXFLAGS $FLAGS"
 
25835
      MAX_C_OPTIMIZE="-O"
 
25836
    fi
 
25837
    ;;
 
25838
  *freebsd*)
 
25839
    { echo "$as_me:$LINENO: WARNING: Adding fix for interrupted reads" >&5
 
25840
echo "$as_me: WARNING: Adding fix for interrupted reads" >&2;}
 
25841
    OSVERSION=`sysctl -a | grep osreldate | awk '{ print $2 }'`
 
25842
    if test "$OSVERSION" -gt "480100" && \
 
25843
       test "$OSVERSION" -lt "500000" || \
 
25844
       test "$OSVERSION" -gt "500109"
 
25845
    then
 
25846
       CXXFLAGS="$CXXFLAGS -DMYSQLD_NET_RETRY_COUNT=1000000"
 
25847
    else
 
25848
       CFLAGS="$CFLAGS -DHAVE_BROKEN_REALPATH"
 
25849
       CXXFLAGS="$CXXFLAGS -DMYSQLD_NET_RETRY_COUNT=1000000 -DHAVE_BROKEN_REALPATH"
 
25850
    fi
 
25851
    ;;
 
25852
  *netbsd*)
 
25853
    { echo "$as_me:$LINENO: WARNING: Adding flag -Dunix" >&5
 
25854
echo "$as_me: WARNING: Adding flag -Dunix" >&2;}
 
25855
    CFLAGS="$CFLAGS -Dunix"
 
25856
    CXXFLAGS="$CXXFLAGS -Dunix"
 
25857
    OVERRIDE_MT_LD_ADD="\$(top_srcdir)/mit-pthreads/obj/libpthread.a"
 
25858
    ;;
 
25859
  *bsdi*)
 
25860
    { echo "$as_me:$LINENO: WARNING: Adding fix for BSDI" >&5
 
25861
echo "$as_me: WARNING: Adding fix for BSDI" >&2;}
 
25862
    CFLAGS="$CFLAGS -D__BSD__ -DHAVE_BROKEN_REALPATH"
 
25863
 
 
25864
cat >>confdefs.h <<_ACEOF
 
25865
#define SOCKOPT_OPTLEN_TYPE size_t
 
25866
_ACEOF
 
25867
 
 
25868
    ;;
 
25869
   *sgi-irix6*)
 
25870
    if test "$with_named_thread" = "no"
 
25871
    then
 
25872
      { echo "$as_me:$LINENO: WARNING: Using --with-named-thread=-lpthread" >&5
 
25873
echo "$as_me: WARNING: Using --with-named-thread=-lpthread" >&2;}
 
25874
      with_named_thread="-lpthread"
 
25875
    fi
 
25876
    CXXFLAGS="$CXXFLAGS -D_BOOL"
 
25877
    ;;
 
25878
    *aix4.3*)
 
25879
      { echo "$as_me:$LINENO: WARNING: Adding defines for AIX" >&5
 
25880
echo "$as_me: WARNING: Adding defines for AIX" >&2;}
 
25881
      CFLAGS="$CFLAGS -Wa,-many -DUNDEF_HAVE_INITGROUPS -DSIGNALS_DONT_BREAK_READ"
 
25882
      CXXFLAGS="$CXXFLAGS -Wa,-many -DUNDEF_HAVE_INITGROUPS -DSIGNALS_DONT_BREAK_READ"
 
25883
    ;;
 
25884
    *dec-osf*)
 
25885
      if test "$ac_cv_c_compiler_gnu" = "yes" && test "$host_cpu" = "alpha"
 
25886
      then
 
25887
          { echo "$as_me:$LINENO: WARNING: Adding defines for DEC OSF on alpha" >&5
 
25888
echo "$as_me: WARNING: Adding defines for DEC OSF on alpha" >&2;}
 
25889
          CFLAGS="$CFLAGS -mieee"
 
25890
          CXXFLAGS="$CXXFLAGS -mieee"
 
25891
      fi
 
25892
      { echo "$as_me:$LINENO: WARNING: Adding defines for OSF1" >&5
 
25893
echo "$as_me: WARNING: Adding defines for OSF1" >&2;}
 
25894
      # gethostbyname_r is deprecated and doesn't work ok on OSF1
 
25895
      CFLAGS="$CFLAGS -DUNDEF_HAVE_GETHOSTBYNAME_R -DSNPRINTF_RETURN_TRUNC"
 
25896
      CXXFLAGS="$CXXFLAGS -DUNDEF_HAVE_GETHOSTBYNAME_R -DSNPRINTF_RETURN_TRUNC"
 
25897
      # fix to handle include of <stdint.h> correctly on OSF1 with cxx compiler
 
25898
      CXXFLAGS="$CXXFLAGS -I/usr/include/cxx -I/usr/include/cxx_cname -I/usr/include -I/usr/include.dtk"
 
25899
    ;;
 
25900
  *netware*)
 
25901
    # No need for curses library so set it to null
 
25902
    with_named_curses=""
 
25903
 
 
25904
    # No thread library - in LibC
 
25905
    with_named_thread=""
 
25906
 
 
25907
    #
 
25908
    # Edit Makefile.in files.
 
25909
    #
 
25910
    echo -n "configuring Makefile.in files for NetWare... "
 
25911
    for file in sql/Makefile.in libmysql/Makefile.in libmysql_r/Makefile.in extra/Makefile.in strings/Makefile.in client/Makefile.in
 
25912
    do
 
25913
    # echo "#### $file ####"
 
25914
      filedir="`dirname $file`"
 
25915
      filebase="`basename $file`"
 
25916
      filesed=$filedir/$filebase.sed
 
25917
      #
 
25918
      # Backup and always use original file
 
25919
      #
 
25920
      if test -f $file.bk
 
25921
      then
 
25922
        cp -fp $file.bk $file
 
25923
      else
 
25924
        cp -fp $file $file.bk
 
25925
      fi
 
25926
      case $file in
 
25927
        sql/Makefile.in)
 
25928
          # Use gen_lex_hash.linux instead of gen_lex_hash
 
25929
          # Add library dependencies to mysqld_DEPENDENCIES
 
25930
          lib_DEPENDENCIES="\$(bdb_libs_with_path) \$(innodb_libs) \$(ndbcluster_libs) \$(pstack_libs) \$(innodb_system_libs) \$(openssl_libs) \$(yassl_libs)"
 
25931
          cat > $filesed << EOF
 
25932
s,\(^.*\$(MAKE) gen_lex_hash\)\$(EXEEXT),#\1,
 
25933
s,\(\./gen_lex_hash\)\$(EXEEXT),\1.linux,
 
25934
s%\(mysqld_DEPENDENCIES = \) %\1$lib_DEPENDENCIES %
 
25935
EOF
 
25936
          ;;
 
25937
        extra/Makefile.in)
 
25938
          cat > $filesed << EOF
 
25939
s,\(extra/comp_err\)\$(EXEEXT),\1.linux,
 
25940
EOF
 
25941
          ;;
 
25942
        libmysql/Makefile.in)
 
25943
          cat > $filesed << EOF
 
25944
s,\(\./conf_to_src\)\( \$(top_srcdir)\),\1.linux\2,
 
25945
s,\(: conf_to_src\),\1.linux,
 
25946
s,libyassl.la,.libs/libyassl.a,
 
25947
s,libtaocrypt.la,.libs/libtaocrypt.a,
 
25948
EOF
 
25949
          ;;
 
25950
        libmysql_r/Makefile.in)
 
25951
          cat > $filesed << EOF
 
25952
s,\(\./conf_to_src\)\( \$(top_srcdir)\),\1.linux\2,
 
25953
s,\(: conf_to_src\),\1.linux,
 
25954
s,libyassl.la,.libs/libyassl.a,
 
25955
s,libtaocrypt.la,.libs/libtaocrypt.a,
 
25956
EOF
 
25957
          ;;
 
25958
        strings/Makefile.in)
 
25959
          cat > $filesed << EOF
 
25960
s,\(\./conf_to_src\)\( \$(top_srcdir)\),\1.linux\2,
 
25961
s,\(: conf_to_src\),\1.linux,
 
25962
EOF
 
25963
          ;;
 
25964
        client/Makefile.in)
 
25965
          #
 
25966
          cat > $filesed << EOF
 
25967
s,libmysqlclient.la,.libs/libmysqlclient.a,
 
25968
EOF
 
25969
          ;;
 
25970
      esac
 
25971
      if `sed -f $filesed $file > $file.nw`;\
 
25972
      then
 
25973
        mv -f $file.nw $file
 
25974
        rm -f $filesed
 
25975
      else
 
25976
        exit 1
 
25977
      fi
 
25978
      # wait for file system changes to complete
 
25979
      sleep 1
 
25980
    done
 
25981
    echo "done"
 
25982
 
 
25983
    #
 
25984
    # Make sure the following files are writable.
 
25985
    #
 
25986
    # When the files are retrieved from some source code control systems they are read-only.
 
25987
    #
 
25988
    echo -n "making sure specific build files are writable... "
 
25989
    for file in \
 
25990
        Docs/manual.chm \
 
25991
        Docs/mysql.info \
 
25992
        Docs/INSTALL-BINARY \
 
25993
        INSTALL-SOURCE \
 
25994
        COPYING
 
25995
    do
 
25996
      if test -e $file; then
 
25997
        chmod +w $file
 
25998
      fi
 
25999
    done
 
26000
    echo "done"
 
26001
 
 
26002
    ;;
 
26003
esac
 
26004
 
 
26005
 
 
26006
#---START: Used in for client configure
 
26007
# Check if we threads are in libc or if we should use
 
26008
# -lpthread, -lpthreads or mit-pthreads
 
26009
# We have to check libc last because else it fails on Solaris 2.6
 
26010
 
 
26011
with_posix_threads="no"
 
26012
# Search thread lib on Linux
 
26013
if test "$with_named_thread" = "no"
 
26014
then
 
26015
    echo "$as_me:$LINENO: checking \"Linux threads\"" >&5
 
26016
echo $ECHO_N "checking \"Linux threads\"... $ECHO_C" >&6
 
26017
    if test "$TARGET_LINUX" = "true"
 
26018
    then
 
26019
        echo "$as_me:$LINENO: result: \"starting\"" >&5
 
26020
echo "${ECHO_T}\"starting\"" >&6
 
26021
        # use getconf to check glibc contents
 
26022
        echo "$as_me:$LINENO: checking \"getconf GNU_LIBPTHREAD_VERSION\"" >&5
 
26023
echo $ECHO_N "checking \"getconf GNU_LIBPTHREAD_VERSION\"... $ECHO_C" >&6
 
26024
        case `getconf GNU_LIBPTHREAD_VERSION | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ` in
 
26025
        NPTL* )
 
26026
                echo "$as_me:$LINENO: result: \"NPTL\"" >&5
 
26027
echo "${ECHO_T}\"NPTL\"" >&6
 
26028
 
 
26029
cat >>confdefs.h <<\_ACEOF
 
26030
#define HAVE_NPTL 1
 
26031
_ACEOF
 
26032
 
 
26033
                with_named_thread="-lpthread"
 
26034
                ;;
 
26035
        LINUXTHREADS* )
 
26036
                echo "$as_me:$LINENO: result: \"Linuxthreads\"" >&5
 
26037
echo "${ECHO_T}\"Linuxthreads\"" >&6
 
26038
 
 
26039
cat >>confdefs.h <<\_ACEOF
 
26040
#define HAVE_LINUXTHREADS 1
 
26041
_ACEOF
 
26042
 
 
26043
                with_named_thread="-lpthread"
 
26044
                ;;
 
26045
        * )
 
26046
                echo "$as_me:$LINENO: result: \"unknown\"" >&5
 
26047
echo "${ECHO_T}\"unknown\"" >&6
 
26048
                ;;
 
26049
        esac
 
26050
        if test "$with_named_thread" = "no"
 
26051
        then
 
26052
          # old method, check headers
 
26053
          # Look for LinuxThreads.
 
26054
          echo "$as_me:$LINENO: checking \"LinuxThreads in header file comment\"" >&5
 
26055
echo $ECHO_N "checking \"LinuxThreads in header file comment\"... $ECHO_C" >&6
 
26056
          res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
 
26057
          if test "$res" -gt 0
 
26058
          then
 
26059
            echo "$as_me:$LINENO: result: \"Found\"" >&5
 
26060
echo "${ECHO_T}\"Found\"" >&6
 
26061
 
 
26062
cat >>confdefs.h <<\_ACEOF
 
26063
#define HAVE_LINUXTHREADS 1
 
26064
_ACEOF
 
26065
 
 
26066
            # Linux 2.0 sanity check
 
26067
            cat >conftest.$ac_ext <<_ACEOF
 
26068
/* confdefs.h.  */
 
26069
_ACEOF
 
26070
cat confdefs.h >>conftest.$ac_ext
 
26071
cat >>conftest.$ac_ext <<_ACEOF
 
26072
/* end confdefs.h.  */
 
26073
#include <sched.h>
 
26074
int
 
26075
main ()
 
26076
{
 
26077
int a = sched_get_priority_min(1);
 
26078
  ;
 
26079
  return 0;
 
26080
}
 
26081
_ACEOF
 
26082
rm -f conftest.$ac_objext
 
26083
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
26084
  (eval $ac_compile) 2>conftest.er1
 
26085
  ac_status=$?
 
26086
  grep -v '^ *+' conftest.er1 >conftest.err
 
26087
  rm -f conftest.er1
 
26088
  cat conftest.err >&5
 
26089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26090
  (exit $ac_status); } &&
 
26091
         { ac_try='test -z "$ac_c_werror_flag"
 
26092
                         || test ! -s conftest.err'
 
26093
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26094
  (eval $ac_try) 2>&5
 
26095
  ac_status=$?
 
26096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26097
  (exit $ac_status); }; } &&
 
26098
         { ac_try='test -s conftest.$ac_objext'
 
26099
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26100
  (eval $ac_try) 2>&5
 
26101
  ac_status=$?
 
26102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26103
  (exit $ac_status); }; }; then
 
26104
  :
 
26105
else
 
26106
  echo "$as_me: failed program was:" >&5
 
26107
sed 's/^/| /' conftest.$ac_ext >&5
 
26108
 
 
26109
{ { echo "$as_me:$LINENO: error: Syntax error in sched.h. Change _P to __P in the /usr/include/sched.h file. See the Installation chapter in the Reference Manual" >&5
 
26110
echo "$as_me: error: Syntax error in sched.h. Change _P to __P in the /usr/include/sched.h file. See the Installation chapter in the Reference Manual" >&2;}
 
26111
   { (exit 1); exit 1; }; }
 
26112
fi
 
26113
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
26114
            # RedHat 5.0 does not work with dynamic linking of this. -static also
 
26115
            # gives a speed increase in linux so it does not hurt on other systems.
 
26116
            with_named_thread="-lpthread"
 
26117
          else
 
26118
            echo "$as_me:$LINENO: result: \"Not found\"" >&5
 
26119
echo "${ECHO_T}\"Not found\"" >&6
 
26120
            # If this is a linux machine we should barf
 
26121
            { { echo "$as_me:$LINENO: error: This is a Linux system without a working getconf,
 
26122
and Linuxthreads was not found. Please install it (or a new glibc) and try again.
 
26123
See the Installation chapter in the Reference Manual for more information." >&5
 
26124
echo "$as_me: error: This is a Linux system without a working getconf,
 
26125
and Linuxthreads was not found. Please install it (or a new glibc) and try again.
 
26126
See the Installation chapter in the Reference Manual for more information." >&2;}
 
26127
   { (exit 1); exit 1; }; }
 
26128
          fi
 
26129
        else
 
26130
            echo "$as_me:$LINENO: result: \"no need to check headers\"" >&5
 
26131
echo "${ECHO_T}\"no need to check headers\"" >&6
 
26132
        fi
 
26133
 
 
26134
        echo "$as_me:$LINENO: checking \"for pthread_create in -lpthread\"" >&5
 
26135
echo $ECHO_N "checking \"for pthread_create in -lpthread\"... $ECHO_C" >&6;
 
26136
        ac_save_LIBS="$LIBS"
 
26137
        LIBS="$LIBS -lpthread"
 
26138
        cat >conftest.$ac_ext <<_ACEOF
 
26139
/* confdefs.h.  */
 
26140
_ACEOF
 
26141
cat confdefs.h >>conftest.$ac_ext
 
26142
cat >>conftest.$ac_ext <<_ACEOF
 
26143
/* end confdefs.h.  */
 
26144
#include <pthread.h>
 
26145
int
 
26146
main ()
 
26147
{
 
26148
 (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
 
26149
  ;
 
26150
  return 0;
 
26151
}
 
26152
_ACEOF
 
26153
rm -f conftest.$ac_objext conftest$ac_exeext
 
26154
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26155
  (eval $ac_link) 2>conftest.er1
 
26156
  ac_status=$?
 
26157
  grep -v '^ *+' conftest.er1 >conftest.err
 
26158
  rm -f conftest.er1
 
26159
  cat conftest.err >&5
 
26160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26161
  (exit $ac_status); } &&
 
26162
         { ac_try='test -z "$ac_c_werror_flag"
 
26163
                         || test ! -s conftest.err'
 
26164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26165
  (eval $ac_try) 2>&5
 
26166
  ac_status=$?
 
26167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26168
  (exit $ac_status); }; } &&
 
26169
         { ac_try='test -s conftest$ac_exeext'
 
26170
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26171
  (eval $ac_try) 2>&5
 
26172
  ac_status=$?
 
26173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26174
  (exit $ac_status); }; }; then
 
26175
  echo "$as_me:$LINENO: result: \"yes\"" >&5
 
26176
echo "${ECHO_T}\"yes\"" >&6
 
26177
else
 
26178
  echo "$as_me: failed program was:" >&5
 
26179
sed 's/^/| /' conftest.$ac_ext >&5
 
26180
 
 
26181
 echo "$as_me:$LINENO: result: \"no\"" >&5
 
26182
echo "${ECHO_T}\"no\"" >&6
 
26183
                { { echo "$as_me:$LINENO: error:
 
26184
This is a Linux system claiming to support threads, either Linuxthreads or NPTL, but linking a test program failed.
 
26185
Please install one of these (or a new glibc) and try again.
 
26186
See the Installation chapter in the Reference Manual for more information." >&5
 
26187
echo "$as_me: error:
 
26188
This is a Linux system claiming to support threads, either Linuxthreads or NPTL, but linking a test program failed.
 
26189
Please install one of these (or a new glibc) and try again.
 
26190
See the Installation chapter in the Reference Manual for more information." >&2;}
 
26191
   { (exit 1); exit 1; }; }
 
26192
 
 
26193
fi
 
26194
rm -f conftest.err conftest.$ac_objext \
 
26195
      conftest$ac_exeext conftest.$ac_ext
 
26196
        LIBS="$ac_save_LIBS"
 
26197
    else
 
26198
        echo "$as_me:$LINENO: result: \"no\"" >&5
 
26199
echo "${ECHO_T}\"no\"" >&6
 
26200
    fi  # "$TARGET_LINUX"
 
26201
fi  # "$with_named_thread" = "no" -a "$with_mit_threads" = "no"
 
26202
 
 
26203
 
 
26204
# Hack for DEC-UNIX (OSF1 -> Tru64)
 
26205
if test "$with_named_thread" = "no" -a "$with_mit_threads" = "no"
 
26206
then
 
26207
    echo "$as_me:$LINENO: checking \"DEC threads post OSF/1 3.2\"" >&5
 
26208
echo $ECHO_N "checking \"DEC threads post OSF/1 3.2\"... $ECHO_C" >&6
 
26209
    if test -f /usr/shlib/libpthread.so -a -f /usr/lib/libmach.a -a -f /usr/ccs/lib/cmplrs/cc/libexc.a
 
26210
    then
 
26211
      with_named_thread="-lpthread -lmach -lexc"
 
26212
      CFLAGS="$CFLAGS -D_REENTRANT"
 
26213
      CXXFLAGS="$CXXFLAGS -D_REENTRANT"
 
26214
 
 
26215
cat >>confdefs.h <<\_ACEOF
 
26216
#define HAVE_DEC_THREADS 1
 
26217
_ACEOF
 
26218
 
 
26219
      echo "$as_me:$LINENO: result: \"yes\"" >&5
 
26220
echo "${ECHO_T}\"yes\"" >&6
 
26221
    else
 
26222
      echo "$as_me:$LINENO: result: \"no\"" >&5
 
26223
echo "${ECHO_T}\"no\"" >&6
 
26224
    fi  # DEC threads
 
26225
fi  # "$with_named_thread" = "no" -a "$with_mit_threads" = "no"
 
26226
 
 
26227
 
 
26228
 
 
26229
# Hack for SCO UNIX
 
26230
if test "$with_named_thread" = "no"
 
26231
then
 
26232
  echo "$as_me:$LINENO: checking \"SCO threads\"" >&5
 
26233
echo $ECHO_N "checking \"SCO threads\"... $ECHO_C" >&6
 
26234
  if expr "$SYSTEM_TYPE" : ".*sco.*" > /dev/null
 
26235
  then
 
26236
    if test -f /usr/lib/libgthreads.a -o -f /usr/lib/libgthreads.so
 
26237
    then
 
26238
 
 
26239
  LIBS=`echo " $LIBS " | sed -e 's/ -lsocket / /g'`
 
26240
 
 
26241
      with_named_thread="-lgthreads -lsocket -lgthreads"
 
26242
      # sched.h conflicts with fsu-threads
 
26243
      touch ./include/sched.h
 
26244
      touch ./include/semaphore.h
 
26245
 
 
26246
      # We must have gcc
 
26247
      if expr "$CC" : ".*gcc.*"
 
26248
      then
 
26249
        echo "$as_me:$LINENO: result: \"yes\"" >&5
 
26250
echo "${ECHO_T}\"yes\"" >&6
 
26251
      else
 
26252
        { { echo "$as_me:$LINENO: error: On SCO UNIX MySQL must be compiled with gcc. See the Installation chapter in the Reference Manual." >&5
 
26253
echo "$as_me: error: On SCO UNIX MySQL must be compiled with gcc. See the Installation chapter in the Reference Manual." >&2;}
 
26254
   { (exit 1); exit 1; }; };
 
26255
      fi
 
26256
      echo "$as_me:$LINENO: result: \"yes\"" >&5
 
26257
echo "${ECHO_T}\"yes\"" >&6
 
26258
    elif test -f /usr/local/lib/libpthread.a -o -f /usr/local/lib/libpthread.so
 
26259
    then
 
26260
 
 
26261
  LIBS=`echo " $LIBS " | sed -e 's/ -lsocket / /g'`
 
26262
 
 
26263
      with_named_thread="-lpthread -lsocket"
 
26264
      # sched.h conflicts with fsu-threads
 
26265
      # touch ./include/sched.h
 
26266
 
 
26267
      echo "$as_me:$LINENO: checking \"for gcc\"" >&5
 
26268
echo $ECHO_N "checking \"for gcc\"... $ECHO_C" >&6
 
26269
      # We must have gcc
 
26270
      if expr "$CC" : ".*gcc.*"
 
26271
      then
 
26272
        echo "$as_me:$LINENO: result: \"yes\"" >&5
 
26273
echo "${ECHO_T}\"yes\"" >&6
 
26274
      else
 
26275
        { { echo "$as_me:$LINENO: error: On SCO UNIX MySQL must be compiled with gcc. See the Installation chapter in the Reference Manual." >&5
 
26276
echo "$as_me: error: On SCO UNIX MySQL must be compiled with gcc. See the Installation chapter in the Reference Manual." >&2;}
 
26277
   { (exit 1); exit 1; }; };
 
26278
      fi
 
26279
      echo "$as_me:$LINENO: result: \"yes\"" >&5
 
26280
echo "${ECHO_T}\"yes\"" >&6
 
26281
    # Hack for SCO UnixWare 7.1.x
 
26282
    #
 
26283
    elif test "$with_named_thread" = "no"
 
26284
    then
 
26285
      echo "$as_me:$LINENO: result: \"no\"" >&5
 
26286
echo "${ECHO_T}\"no\"" >&6
 
26287
      echo "$as_me:$LINENO: checking \"SCO UnixWare 7.1.x native threads\"" >&5
 
26288
echo $ECHO_N "checking \"SCO UnixWare 7.1.x native threads\"... $ECHO_C" >&6
 
26289
      if expr "$SYSTEM_TYPE" : ".*sco.*" > /dev/null
 
26290
      then
 
26291
        if test -f /usr/lib/libthread.so -o -f /usr/lib/libthreadT.so
 
26292
        then
 
26293
 
 
26294
  LIBS=`echo " $LIBS " | sed -e 's/ -lsocket / /g'`
 
26295
 
 
26296
          if expr "$CC" : ".*gcc.*"
 
26297
          then
 
26298
            with_named_thread="-pthread -lsocket -lnsl"
 
26299
          else
 
26300
            with_named_thread="-Kthread -lsocket -lnsl"
 
26301
          fi
 
26302
          if expr "$SYSTEM_TYPE" : ".*unixware7.0.0" > /dev/null
 
26303
          then
 
26304
            cat >>confdefs.h <<\_ACEOF
 
26305
#define HAVE_UNIXWARE7_THREADS 1
 
26306
_ACEOF
 
26307
 
 
26308
          fi
 
26309
          echo "$as_me:$LINENO: result: \"yes\"" >&5
 
26310
echo "${ECHO_T}\"yes\"" >&6
 
26311
          # We must have cc
 
26312
          echo "$as_me:$LINENO: checking \"for gcc\"" >&5
 
26313
echo $ECHO_N "checking \"for gcc\"... $ECHO_C" >&6
 
26314
          if expr "$CC" : ".*gcc.*"
 
26315
          then
 
26316
            CC="$CC -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK"
 
26317
            CXX="$CXX -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK"
 
26318
          else
 
26319
            CC="$CC -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK"
 
26320
            CXX="$CXX -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK"
 
26321
          fi
 
26322
        else
 
26323
          { { echo "$as_me:$LINENO: error: configure: error: Can't find thread libs on SCO UnixWare7. See the Installation chapter in the Reference Manual." >&5
 
26324
echo "$as_me: error: configure: error: Can't find thread libs on SCO UnixWare7. See the Installation chapter in the Reference Manual." >&2;}
 
26325
   { (exit 1); exit 1; }; }
 
26326
        fi
 
26327
      else
 
26328
        echo "$as_me:$LINENO: result: \"no\"" >&5
 
26329
echo "${ECHO_T}\"no\"" >&6
 
26330
      fi
 
26331
    else
 
26332
      { { echo "$as_me:$LINENO: error: On SCO UNIX MySQL requires that the FSUThreads package is installed. See the Installation chapter in the Reference Manual." >&5
 
26333
echo "$as_me: error: On SCO UNIX MySQL requires that the FSUThreads package is installed. See the Installation chapter in the Reference Manual." >&2;}
 
26334
   { (exit 1); exit 1; }; }
 
26335
    fi
 
26336
  else
 
26337
    echo "$as_me:$LINENO: result: \"no\"" >&5
 
26338
echo "${ECHO_T}\"no\"" >&6
 
26339
  fi
 
26340
fi
 
26341
 
 
26342
#
 
26343
# Check for SCO threading libraries
 
26344
#
 
26345
if test "$with_named_thread" = "no"
 
26346
then
 
26347
  echo "$as_me:$LINENO: checking SCO OpenServer 6, UnixWare 7 or OpenUNIX 8 native threads" >&5
 
26348
echo $ECHO_N "checking SCO OpenServer 6, UnixWare 7 or OpenUNIX 8 native threads... $ECHO_C" >&6
 
26349
  if expr "$SYSTEM_TYPE" : ".*UnixWare.*" > /dev/null || \
 
26350
     expr "$SYSTEM_TYPE" : ".*SCO_SV6.*" > /dev/null || \
 
26351
     expr "$SYSTEM_TYPE" : ".*OpenUNIX.*" > /dev/null
 
26352
  then
 
26353
    if test -f /usr/lib/libthread.so -o -f /usr/lib/libthreadT.so
 
26354
    then
 
26355
 
 
26356
  LIBS=`echo " $LIBS " | sed -e 's/ -lsocket / /g'`
 
26357
 
 
26358
      if expr "$CC" : ".*gcc.*" > /dev/null
 
26359
      then
 
26360
        with_named_thread="-pthread -lsocket -lnsl"
 
26361
        CC="$CC -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
 
26362
        CXX="$CXX -pthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
 
26363
      else
 
26364
        with_named_thread="-Kthread -lsocket -lnsl"
 
26365
        CC="$CC -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
 
26366
        CXX="$CXX -Kthread -DUNIXWARE_7 -DHAVE_BROKEN_RWLOCK";
 
26367
      fi
 
26368
      if expr "$SYSTEM_TYPE" : ".*unixware7.0.0" > /dev/null
 
26369
      then
 
26370
 
 
26371
cat >>confdefs.h <<\_ACEOF
 
26372
#define HAVE_UNIXWARE7_THREADS 1
 
26373
_ACEOF
 
26374
 
 
26375
      fi
 
26376
      echo "$as_me:$LINENO: result: yes" >&5
 
26377
echo "${ECHO_T}yes" >&6
 
26378
    else
 
26379
      { { echo "$as_me:$LINENO: error: configure: error: Can't find thread library on SCO/Caldera system. See the Installation chapter in the Reference Manual." >&5
 
26380
echo "$as_me: error: configure: error: Can't find thread library on SCO/Caldera system. See the Installation chapter in the Reference Manual." >&2;}
 
26381
   { (exit 1); exit 1; }; }
 
26382
    fi
 
26383
  else
 
26384
    echo "$as_me:$LINENO: result: no" >&5
 
26385
echo "${ECHO_T}no" >&6
 
26386
  fi
 
26387
fi
 
26388
 
 
26389
# Hack for Siemens UNIX
 
26390
if test "$with_named_thread" = "no"
 
26391
then
 
26392
  echo "$as_me:$LINENO: checking \"Siemens threads\"" >&5
 
26393
echo $ECHO_N "checking \"Siemens threads\"... $ECHO_C" >&6
 
26394
  if test -f /usr/lib/libxnet.so -a "$SYSTEM_TYPE" = "sni-sysv4"
 
26395
  then
 
26396
    LIBS="-lxnet $LIBS"
 
26397
    NON_THREADED_LIBS="-lxnet $NON_THREADED_LIBS"
 
26398
    with_named_thread="-Kthread $LDFLAGS -lxnet"
 
26399
    LD_FLAGS=""
 
26400
    CFLAGS="-Kthread $CFLAGS"
 
26401
    CXXFLAGS="-Kthread $CXXFLAGS"
 
26402
    echo "$as_me:$LINENO: result: \"yes\"" >&5
 
26403
echo "${ECHO_T}\"yes\"" >&6
 
26404
  else
 
26405
    echo "$as_me:$LINENO: result: \"no\"" >&5
 
26406
echo "${ECHO_T}\"no\"" >&6
 
26407
  fi
 
26408
fi
 
26409
 
 
26410
# Use library named -lpthread
 
26411
if test "$with_named_thread" = "no" -a "$with_pthread" = "yes"
 
26412
then
 
26413
    with_named_thread="-lpthread"
 
26414
fi
 
26415
 
 
26416
#---END:
 
26417
 
 
26418
# Hack for Solaris >= 2.5
 
26419
# We want both the new and the old interface
 
26420
 
 
26421
if test "$with_named_thread" = "no"
 
26422
then
 
26423
  echo "$as_me:$LINENO: checking \"Solaris threads\"" >&5
 
26424
echo $ECHO_N "checking \"Solaris threads\"... $ECHO_C" >&6
 
26425
  if test -f /usr/lib/libpthread.so -a -f /usr/lib/libthread.so
 
26426
  then
 
26427
    with_named_thread="-lpthread -lthread"
 
26428
    echo "$as_me:$LINENO: result: \"yes\"" >&5
 
26429
echo "${ECHO_T}\"yes\"" >&6
 
26430
  else
 
26431
    echo "$as_me:$LINENO: result: \"no\"" >&5
 
26432
echo "${ECHO_T}\"no\"" >&6
 
26433
  fi
 
26434
fi
 
26435
 
 
26436
# Should we use named pthread library ?
 
26437
echo "$as_me:$LINENO: checking \"named thread libs:\"" >&5
 
26438
echo $ECHO_N "checking \"named thread libs:\"... $ECHO_C" >&6
 
26439
if test "$with_named_thread" != "no"
 
26440
then
 
26441
  LIBS="$with_named_thread $LIBS $with_named_thread"
 
26442
  with_posix_threads="yes"
 
26443
  echo "$as_me:$LINENO: result: \"$with_named_thread\"" >&5
 
26444
echo "${ECHO_T}\"$with_named_thread\"" >&6
 
26445
else
 
26446
  echo "$as_me:$LINENO: result: \"no\"" >&5
 
26447
echo "${ECHO_T}\"no\"" >&6
 
26448
  # pthread_create is in standard libraries (As in BSDI 3.0)
 
26449
  echo "$as_me:$LINENO: checking \"for pthread_create in -libc\"" >&5
 
26450
echo $ECHO_N "checking \"for pthread_create in -libc\"... $ECHO_C" >&6;
 
26451
  cat >conftest.$ac_ext <<_ACEOF
 
26452
/* confdefs.h.  */
 
26453
_ACEOF
 
26454
cat confdefs.h >>conftest.$ac_ext
 
26455
cat >>conftest.$ac_ext <<_ACEOF
 
26456
/* end confdefs.h.  */
 
26457
#include <pthread.h>
 
26458
int
 
26459
main ()
 
26460
{
 
26461
 (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
 
26462
  ;
 
26463
  return 0;
 
26464
}
 
26465
_ACEOF
 
26466
rm -f conftest.$ac_objext conftest$ac_exeext
 
26467
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26468
  (eval $ac_link) 2>conftest.er1
 
26469
  ac_status=$?
 
26470
  grep -v '^ *+' conftest.er1 >conftest.err
 
26471
  rm -f conftest.er1
 
26472
  cat conftest.err >&5
 
26473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26474
  (exit $ac_status); } &&
 
26475
         { ac_try='test -z "$ac_c_werror_flag"
 
26476
                         || test ! -s conftest.err'
 
26477
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26478
  (eval $ac_try) 2>&5
 
26479
  ac_status=$?
 
26480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26481
  (exit $ac_status); }; } &&
 
26482
         { ac_try='test -s conftest$ac_exeext'
 
26483
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26484
  (eval $ac_try) 2>&5
 
26485
  ac_status=$?
 
26486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26487
  (exit $ac_status); }; }; then
 
26488
  with_posix_threads=yes
 
26489
else
 
26490
  echo "$as_me: failed program was:" >&5
 
26491
sed 's/^/| /' conftest.$ac_ext >&5
 
26492
 
 
26493
with_posix_threads=no
 
26494
fi
 
26495
rm -f conftest.err conftest.$ac_objext \
 
26496
      conftest$ac_exeext conftest.$ac_ext
 
26497
  echo "$as_me:$LINENO: result: \"$with_posix_threads\"" >&5
 
26498
echo "${ECHO_T}\"$with_posix_threads\"" >&6
 
26499
  if test "$with_posix_threads" = "no"
 
26500
  then
 
26501
    echo "$as_me:$LINENO: checking \"for pthread_create in -lpthread\"" >&5
 
26502
echo $ECHO_N "checking \"for pthread_create in -lpthread\"... $ECHO_C" >&6;
 
26503
    ac_save_LIBS="$LIBS"
 
26504
    LIBS="$LIBS -lpthread"
 
26505
    cat >conftest.$ac_ext <<_ACEOF
 
26506
/* confdefs.h.  */
 
26507
_ACEOF
 
26508
cat confdefs.h >>conftest.$ac_ext
 
26509
cat >>conftest.$ac_ext <<_ACEOF
 
26510
/* end confdefs.h.  */
 
26511
#include <pthread.h>
 
26512
int
 
26513
main ()
 
26514
{
 
26515
 (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
 
26516
  ;
 
26517
  return 0;
 
26518
}
 
26519
_ACEOF
 
26520
rm -f conftest.$ac_objext conftest$ac_exeext
 
26521
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26522
  (eval $ac_link) 2>conftest.er1
 
26523
  ac_status=$?
 
26524
  grep -v '^ *+' conftest.er1 >conftest.err
 
26525
  rm -f conftest.er1
 
26526
  cat conftest.err >&5
 
26527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26528
  (exit $ac_status); } &&
 
26529
         { ac_try='test -z "$ac_c_werror_flag"
 
26530
                         || test ! -s conftest.err'
 
26531
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26532
  (eval $ac_try) 2>&5
 
26533
  ac_status=$?
 
26534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26535
  (exit $ac_status); }; } &&
 
26536
         { ac_try='test -s conftest$ac_exeext'
 
26537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26538
  (eval $ac_try) 2>&5
 
26539
  ac_status=$?
 
26540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26541
  (exit $ac_status); }; }; then
 
26542
  with_posix_threads=yes
 
26543
else
 
26544
  echo "$as_me: failed program was:" >&5
 
26545
sed 's/^/| /' conftest.$ac_ext >&5
 
26546
 
 
26547
with_posix_threads=no
 
26548
fi
 
26549
rm -f conftest.err conftest.$ac_objext \
 
26550
      conftest$ac_exeext conftest.$ac_ext
 
26551
    echo "$as_me:$LINENO: result: \"$with_posix_threads\"" >&5
 
26552
echo "${ECHO_T}\"$with_posix_threads\"" >&6
 
26553
    if test "$with_posix_threads" = "no"
 
26554
    then
 
26555
      LIBS=" $ac_save_LIBS -lpthreads"
 
26556
      echo "$as_me:$LINENO: checking \"for pthread_create in -lpthreads\"" >&5
 
26557
echo $ECHO_N "checking \"for pthread_create in -lpthreads\"... $ECHO_C" >&6;
 
26558
      cat >conftest.$ac_ext <<_ACEOF
 
26559
/* confdefs.h.  */
 
26560
_ACEOF
 
26561
cat confdefs.h >>conftest.$ac_ext
 
26562
cat >>conftest.$ac_ext <<_ACEOF
 
26563
/* end confdefs.h.  */
 
26564
#include <pthread.h>
 
26565
int
 
26566
main ()
 
26567
{
 
26568
 pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
 
26569
  ;
 
26570
  return 0;
 
26571
}
 
26572
_ACEOF
 
26573
rm -f conftest.$ac_objext conftest$ac_exeext
 
26574
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26575
  (eval $ac_link) 2>conftest.er1
 
26576
  ac_status=$?
 
26577
  grep -v '^ *+' conftest.er1 >conftest.err
 
26578
  rm -f conftest.er1
 
26579
  cat conftest.err >&5
 
26580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26581
  (exit $ac_status); } &&
 
26582
         { ac_try='test -z "$ac_c_werror_flag"
 
26583
                         || test ! -s conftest.err'
 
26584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26585
  (eval $ac_try) 2>&5
 
26586
  ac_status=$?
 
26587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26588
  (exit $ac_status); }; } &&
 
26589
         { ac_try='test -s conftest$ac_exeext'
 
26590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26591
  (eval $ac_try) 2>&5
 
26592
  ac_status=$?
 
26593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26594
  (exit $ac_status); }; }; then
 
26595
  with_posix_threads=yes
 
26596
else
 
26597
  echo "$as_me: failed program was:" >&5
 
26598
sed 's/^/| /' conftest.$ac_ext >&5
 
26599
 
 
26600
with_posix_threads=no
 
26601
fi
 
26602
rm -f conftest.err conftest.$ac_objext \
 
26603
      conftest$ac_exeext conftest.$ac_ext
 
26604
      echo "$as_me:$LINENO: result: \"$with_posix_threads\"" >&5
 
26605
echo "${ECHO_T}\"$with_posix_threads\"" >&6
 
26606
      if test "$with_posix_threads" = "no"
 
26607
      then
 
26608
        # This is for FreeBSD
 
26609
        LIBS="$ac_save_LIBS -pthread"
 
26610
        echo "$as_me:$LINENO: checking \"for pthread_create in -pthread\"" >&5
 
26611
echo $ECHO_N "checking \"for pthread_create in -pthread\"... $ECHO_C" >&6;
 
26612
        cat >conftest.$ac_ext <<_ACEOF
 
26613
/* confdefs.h.  */
 
26614
_ACEOF
 
26615
cat confdefs.h >>conftest.$ac_ext
 
26616
cat >>conftest.$ac_ext <<_ACEOF
 
26617
/* end confdefs.h.  */
 
26618
#include <pthread.h>
 
26619
int
 
26620
main ()
 
26621
{
 
26622
 pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
 
26623
  ;
 
26624
  return 0;
 
26625
}
 
26626
_ACEOF
 
26627
rm -f conftest.$ac_objext conftest$ac_exeext
 
26628
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26629
  (eval $ac_link) 2>conftest.er1
 
26630
  ac_status=$?
 
26631
  grep -v '^ *+' conftest.er1 >conftest.err
 
26632
  rm -f conftest.er1
 
26633
  cat conftest.err >&5
 
26634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26635
  (exit $ac_status); } &&
 
26636
         { ac_try='test -z "$ac_c_werror_flag"
 
26637
                         || test ! -s conftest.err'
 
26638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26639
  (eval $ac_try) 2>&5
 
26640
  ac_status=$?
 
26641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26642
  (exit $ac_status); }; } &&
 
26643
         { ac_try='test -s conftest$ac_exeext'
 
26644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26645
  (eval $ac_try) 2>&5
 
26646
  ac_status=$?
 
26647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26648
  (exit $ac_status); }; }; then
 
26649
  with_posix_threads=yes
 
26650
else
 
26651
  echo "$as_me: failed program was:" >&5
 
26652
sed 's/^/| /' conftest.$ac_ext >&5
 
26653
 
 
26654
with_posix_threads=no
 
26655
fi
 
26656
rm -f conftest.err conftest.$ac_objext \
 
26657
      conftest$ac_exeext conftest.$ac_ext
 
26658
        echo "$as_me:$LINENO: result: \"$with_posix_threads\"" >&5
 
26659
echo "${ECHO_T}\"$with_posix_threads\"" >&6
 
26660
      fi
 
26661
    fi
 
26662
  fi
 
26663
fi
 
26664
 
 
26665
#---START: Used in for client configure
 
26666
# Must be checked after, because strtok_r may be in -lpthread
 
26667
# On AIX strtok_r is in libc_r
 
26668
 
 
26669
my_save_LIBS="$LIBS"
 
26670
 
 
26671
echo "$as_me:$LINENO: checking for strtok_r in -lpthread" >&5
 
26672
echo $ECHO_N "checking for strtok_r in -lpthread... $ECHO_C" >&6
 
26673
if test "${ac_cv_lib_pthread_strtok_r+set}" = set; then
 
26674
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26675
else
 
26676
  ac_check_lib_save_LIBS=$LIBS
 
26677
LIBS="-lpthread  $LIBS"
 
26678
cat >conftest.$ac_ext <<_ACEOF
 
26679
/* confdefs.h.  */
 
26680
_ACEOF
 
26681
cat confdefs.h >>conftest.$ac_ext
 
26682
cat >>conftest.$ac_ext <<_ACEOF
 
26683
/* end confdefs.h.  */
 
26684
 
 
26685
/* Override any gcc2 internal prototype to avoid an error.  */
 
26686
#ifdef __cplusplus
 
26687
extern "C"
 
26688
#endif
 
26689
/* We use char because int might match the return type of a gcc2
 
26690
   builtin and then its argument prototype would still apply.  */
 
26691
char strtok_r ();
 
26692
int
 
26693
main ()
 
26694
{
 
26695
strtok_r ();
 
26696
  ;
 
26697
  return 0;
 
26698
}
 
26699
_ACEOF
 
26700
rm -f conftest.$ac_objext conftest$ac_exeext
 
26701
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26702
  (eval $ac_link) 2>conftest.er1
 
26703
  ac_status=$?
 
26704
  grep -v '^ *+' conftest.er1 >conftest.err
 
26705
  rm -f conftest.er1
 
26706
  cat conftest.err >&5
 
26707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26708
  (exit $ac_status); } &&
 
26709
         { ac_try='test -z "$ac_c_werror_flag"
 
26710
                         || test ! -s conftest.err'
 
26711
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26712
  (eval $ac_try) 2>&5
 
26713
  ac_status=$?
 
26714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26715
  (exit $ac_status); }; } &&
 
26716
         { ac_try='test -s conftest$ac_exeext'
 
26717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26718
  (eval $ac_try) 2>&5
 
26719
  ac_status=$?
 
26720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26721
  (exit $ac_status); }; }; then
 
26722
  ac_cv_lib_pthread_strtok_r=yes
 
26723
else
 
26724
  echo "$as_me: failed program was:" >&5
 
26725
sed 's/^/| /' conftest.$ac_ext >&5
 
26726
 
 
26727
ac_cv_lib_pthread_strtok_r=no
 
26728
fi
 
26729
rm -f conftest.err conftest.$ac_objext \
 
26730
      conftest$ac_exeext conftest.$ac_ext
 
26731
LIBS=$ac_check_lib_save_LIBS
 
26732
fi
 
26733
echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_strtok_r" >&5
 
26734
echo "${ECHO_T}$ac_cv_lib_pthread_strtok_r" >&6
 
26735
if test $ac_cv_lib_pthread_strtok_r = yes; then
 
26736
  cat >>confdefs.h <<_ACEOF
 
26737
#define HAVE_LIBPTHREAD 1
 
26738
_ACEOF
 
26739
 
 
26740
  LIBS="-lpthread $LIBS"
 
26741
 
 
26742
fi
 
26743
 
 
26744
LIBS="$my_save_LIBS"
 
26745
if test "$ac_cv_lib_pthread_strtok_r" = "no"
 
26746
then
 
26747
 
 
26748
echo "$as_me:$LINENO: checking for strtok_r in -lc_r" >&5
 
26749
echo $ECHO_N "checking for strtok_r in -lc_r... $ECHO_C" >&6
 
26750
if test "${ac_cv_lib_c_r_strtok_r+set}" = set; then
 
26751
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26752
else
 
26753
  ac_check_lib_save_LIBS=$LIBS
 
26754
LIBS="-lc_r  $LIBS"
 
26755
cat >conftest.$ac_ext <<_ACEOF
 
26756
/* confdefs.h.  */
 
26757
_ACEOF
 
26758
cat confdefs.h >>conftest.$ac_ext
 
26759
cat >>conftest.$ac_ext <<_ACEOF
 
26760
/* end confdefs.h.  */
 
26761
 
 
26762
/* Override any gcc2 internal prototype to avoid an error.  */
 
26763
#ifdef __cplusplus
 
26764
extern "C"
 
26765
#endif
 
26766
/* We use char because int might match the return type of a gcc2
 
26767
   builtin and then its argument prototype would still apply.  */
 
26768
char strtok_r ();
 
26769
int
 
26770
main ()
 
26771
{
 
26772
strtok_r ();
 
26773
  ;
 
26774
  return 0;
 
26775
}
 
26776
_ACEOF
 
26777
rm -f conftest.$ac_objext conftest$ac_exeext
 
26778
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26779
  (eval $ac_link) 2>conftest.er1
 
26780
  ac_status=$?
 
26781
  grep -v '^ *+' conftest.er1 >conftest.err
 
26782
  rm -f conftest.er1
 
26783
  cat conftest.err >&5
 
26784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26785
  (exit $ac_status); } &&
 
26786
         { ac_try='test -z "$ac_c_werror_flag"
 
26787
                         || test ! -s conftest.err'
 
26788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26789
  (eval $ac_try) 2>&5
 
26790
  ac_status=$?
 
26791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26792
  (exit $ac_status); }; } &&
 
26793
         { ac_try='test -s conftest$ac_exeext'
 
26794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26795
  (eval $ac_try) 2>&5
 
26796
  ac_status=$?
 
26797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26798
  (exit $ac_status); }; }; then
 
26799
  ac_cv_lib_c_r_strtok_r=yes
 
26800
else
 
26801
  echo "$as_me: failed program was:" >&5
 
26802
sed 's/^/| /' conftest.$ac_ext >&5
 
26803
 
 
26804
ac_cv_lib_c_r_strtok_r=no
 
26805
fi
 
26806
rm -f conftest.err conftest.$ac_objext \
 
26807
      conftest$ac_exeext conftest.$ac_ext
 
26808
LIBS=$ac_check_lib_save_LIBS
 
26809
fi
 
26810
echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_strtok_r" >&5
 
26811
echo "${ECHO_T}$ac_cv_lib_c_r_strtok_r" >&6
 
26812
if test $ac_cv_lib_c_r_strtok_r = yes; then
 
26813
  cat >>confdefs.h <<_ACEOF
 
26814
#define HAVE_LIBC_R 1
 
26815
_ACEOF
 
26816
 
 
26817
  LIBS="-lc_r $LIBS"
 
26818
 
 
26819
fi
 
26820
 
 
26821
  case "$with_osf32_threads---$target_os" in
 
26822
    # Don't keep -lc_r in LIBS; -pthread handles it magically
 
26823
    yes---* | *---freebsd* | *---hpux*) LIBS="$my_save_LIBS" ;;
 
26824
 
 
26825
  esac
 
26826
 
 
26827
 
 
26828
for ac_func in strtok_r pthread_init
 
26829
do
 
26830
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
26831
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
26832
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
26833
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
26834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26835
else
 
26836
  cat >conftest.$ac_ext <<_ACEOF
 
26837
/* confdefs.h.  */
 
26838
_ACEOF
 
26839
cat confdefs.h >>conftest.$ac_ext
 
26840
cat >>conftest.$ac_ext <<_ACEOF
 
26841
/* end confdefs.h.  */
 
26842
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
26843
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
26844
#define $ac_func innocuous_$ac_func
 
26845
 
 
26846
/* System header to define __stub macros and hopefully few prototypes,
 
26847
    which can conflict with char $ac_func (); below.
 
26848
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
26849
    <limits.h> exists even on freestanding compilers.  */
 
26850
 
 
26851
#ifdef __STDC__
 
26852
# include <limits.h>
 
26853
#else
 
26854
# include <assert.h>
 
26855
#endif
 
26856
 
 
26857
#undef $ac_func
 
26858
 
 
26859
/* Override any gcc2 internal prototype to avoid an error.  */
 
26860
#ifdef __cplusplus
 
26861
extern "C"
 
26862
{
 
26863
#endif
 
26864
/* We use char because int might match the return type of a gcc2
 
26865
   builtin and then its argument prototype would still apply.  */
 
26866
char $ac_func ();
 
26867
/* The GNU C library defines this for functions which it implements
 
26868
    to always fail with ENOSYS.  Some functions are actually named
 
26869
    something starting with __ and the normal name is an alias.  */
 
26870
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
26871
choke me
 
26872
#else
 
26873
char (*f) () = $ac_func;
 
26874
#endif
 
26875
#ifdef __cplusplus
 
26876
}
 
26877
#endif
 
26878
 
 
26879
int
 
26880
main ()
 
26881
{
 
26882
return f != $ac_func;
 
26883
  ;
 
26884
  return 0;
 
26885
}
 
26886
_ACEOF
 
26887
rm -f conftest.$ac_objext conftest$ac_exeext
 
26888
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26889
  (eval $ac_link) 2>conftest.er1
 
26890
  ac_status=$?
 
26891
  grep -v '^ *+' conftest.er1 >conftest.err
 
26892
  rm -f conftest.er1
 
26893
  cat conftest.err >&5
 
26894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26895
  (exit $ac_status); } &&
 
26896
         { ac_try='test -z "$ac_c_werror_flag"
 
26897
                         || test ! -s conftest.err'
 
26898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26899
  (eval $ac_try) 2>&5
 
26900
  ac_status=$?
 
26901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26902
  (exit $ac_status); }; } &&
 
26903
         { ac_try='test -s conftest$ac_exeext'
 
26904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
26905
  (eval $ac_try) 2>&5
 
26906
  ac_status=$?
 
26907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26908
  (exit $ac_status); }; }; then
 
26909
  eval "$as_ac_var=yes"
 
26910
else
 
26911
  echo "$as_me: failed program was:" >&5
 
26912
sed 's/^/| /' conftest.$ac_ext >&5
 
26913
 
 
26914
eval "$as_ac_var=no"
 
26915
fi
 
26916
rm -f conftest.err conftest.$ac_objext \
 
26917
      conftest$ac_exeext conftest.$ac_ext
 
26918
fi
 
26919
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
26920
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
26921
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
26922
  cat >>confdefs.h <<_ACEOF
 
26923
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
26924
_ACEOF
 
26925
 
 
26926
fi
 
26927
done
 
26928
 
 
26929
else
 
26930
 
 
26931
for ac_func in strtok_r
 
26932
do
 
26933
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
26934
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
26935
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
26936
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
26937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
26938
else
 
26939
  cat >conftest.$ac_ext <<_ACEOF
 
26940
/* confdefs.h.  */
 
26941
_ACEOF
 
26942
cat confdefs.h >>conftest.$ac_ext
 
26943
cat >>conftest.$ac_ext <<_ACEOF
 
26944
/* end confdefs.h.  */
 
26945
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
26946
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
26947
#define $ac_func innocuous_$ac_func
 
26948
 
 
26949
/* System header to define __stub macros and hopefully few prototypes,
 
26950
    which can conflict with char $ac_func (); below.
 
26951
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
26952
    <limits.h> exists even on freestanding compilers.  */
 
26953
 
 
26954
#ifdef __STDC__
 
26955
# include <limits.h>
 
26956
#else
 
26957
# include <assert.h>
 
26958
#endif
 
26959
 
 
26960
#undef $ac_func
 
26961
 
 
26962
/* Override any gcc2 internal prototype to avoid an error.  */
 
26963
#ifdef __cplusplus
 
26964
extern "C"
 
26965
{
 
26966
#endif
 
26967
/* We use char because int might match the return type of a gcc2
 
26968
   builtin and then its argument prototype would still apply.  */
 
26969
char $ac_func ();
 
26970
/* The GNU C library defines this for functions which it implements
 
26971
    to always fail with ENOSYS.  Some functions are actually named
 
26972
    something starting with __ and the normal name is an alias.  */
 
26973
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
26974
choke me
 
26975
#else
 
26976
char (*f) () = $ac_func;
 
26977
#endif
 
26978
#ifdef __cplusplus
 
26979
}
 
26980
#endif
 
26981
 
 
26982
int
 
26983
main ()
 
26984
{
 
26985
return f != $ac_func;
 
26986
  ;
 
26987
  return 0;
 
26988
}
 
26989
_ACEOF
 
26990
rm -f conftest.$ac_objext conftest$ac_exeext
 
26991
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
26992
  (eval $ac_link) 2>conftest.er1
 
26993
  ac_status=$?
 
26994
  grep -v '^ *+' conftest.er1 >conftest.err
 
26995
  rm -f conftest.er1
 
26996
  cat conftest.err >&5
 
26997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
26998
  (exit $ac_status); } &&
 
26999
         { ac_try='test -z "$ac_c_werror_flag"
 
27000
                         || test ! -s conftest.err'
 
27001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27002
  (eval $ac_try) 2>&5
 
27003
  ac_status=$?
 
27004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27005
  (exit $ac_status); }; } &&
 
27006
         { ac_try='test -s conftest$ac_exeext'
 
27007
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27008
  (eval $ac_try) 2>&5
 
27009
  ac_status=$?
 
27010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27011
  (exit $ac_status); }; }; then
 
27012
  eval "$as_ac_var=yes"
 
27013
else
 
27014
  echo "$as_me: failed program was:" >&5
 
27015
sed 's/^/| /' conftest.$ac_ext >&5
 
27016
 
 
27017
eval "$as_ac_var=no"
 
27018
fi
 
27019
rm -f conftest.err conftest.$ac_objext \
 
27020
      conftest$ac_exeext conftest.$ac_ext
 
27021
fi
 
27022
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
27023
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
27024
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
27025
  cat >>confdefs.h <<_ACEOF
 
27026
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
27027
_ACEOF
 
27028
 
 
27029
fi
 
27030
done
 
27031
 
 
27032
fi
 
27033
#---END:
 
27034
 
 
27035
# dlopen, dlerror
 
27036
case "$with_mysqld_ldflags " in
 
27037
 
 
27038
  *"-static "*)
 
27039
    # No need to check for dlopen when mysqld is linked with
 
27040
    # -all-static or -static as it won't be able to load any functions.
 
27041
    # NOTE! It would be better if it was possible to test if dlopen
 
27042
    # can be used, but a good way to test it couldn't be found
 
27043
 
 
27044
    ;;
 
27045
 
 
27046
  *)
 
27047
    # Check for dlopen, needed for user definable functions
 
27048
    # This must be checked after threads on AIX
 
27049
    # We only need this for mysqld, not for the clients.
 
27050
 
 
27051
    my_save_LIBS="$LIBS"
 
27052
    LIBS=""
 
27053
 
 
27054
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
27055
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
27056
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
27057
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27058
else
 
27059
  ac_check_lib_save_LIBS=$LIBS
 
27060
LIBS="-ldl  $LIBS"
 
27061
cat >conftest.$ac_ext <<_ACEOF
 
27062
/* confdefs.h.  */
 
27063
_ACEOF
 
27064
cat confdefs.h >>conftest.$ac_ext
 
27065
cat >>conftest.$ac_ext <<_ACEOF
 
27066
/* end confdefs.h.  */
 
27067
 
 
27068
/* Override any gcc2 internal prototype to avoid an error.  */
 
27069
#ifdef __cplusplus
 
27070
extern "C"
 
27071
#endif
 
27072
/* We use char because int might match the return type of a gcc2
 
27073
   builtin and then its argument prototype would still apply.  */
 
27074
char dlopen ();
 
27075
int
 
27076
main ()
 
27077
{
 
27078
dlopen ();
 
27079
  ;
 
27080
  return 0;
 
27081
}
 
27082
_ACEOF
 
27083
rm -f conftest.$ac_objext conftest$ac_exeext
 
27084
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27085
  (eval $ac_link) 2>conftest.er1
 
27086
  ac_status=$?
 
27087
  grep -v '^ *+' conftest.er1 >conftest.err
 
27088
  rm -f conftest.er1
 
27089
  cat conftest.err >&5
 
27090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27091
  (exit $ac_status); } &&
 
27092
         { ac_try='test -z "$ac_c_werror_flag"
 
27093
                         || test ! -s conftest.err'
 
27094
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27095
  (eval $ac_try) 2>&5
 
27096
  ac_status=$?
 
27097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27098
  (exit $ac_status); }; } &&
 
27099
         { ac_try='test -s conftest$ac_exeext'
 
27100
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27101
  (eval $ac_try) 2>&5
 
27102
  ac_status=$?
 
27103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27104
  (exit $ac_status); }; }; then
 
27105
  ac_cv_lib_dl_dlopen=yes
 
27106
else
 
27107
  echo "$as_me: failed program was:" >&5
 
27108
sed 's/^/| /' conftest.$ac_ext >&5
 
27109
 
 
27110
ac_cv_lib_dl_dlopen=no
 
27111
fi
 
27112
rm -f conftest.err conftest.$ac_objext \
 
27113
      conftest$ac_exeext conftest.$ac_ext
 
27114
LIBS=$ac_check_lib_save_LIBS
 
27115
fi
 
27116
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
27117
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
27118
if test $ac_cv_lib_dl_dlopen = yes; then
 
27119
  cat >>confdefs.h <<_ACEOF
 
27120
#define HAVE_LIBDL 1
 
27121
_ACEOF
 
27122
 
 
27123
  LIBS="-ldl $LIBS"
 
27124
 
 
27125
fi
 
27126
 
 
27127
    LIBDL=$LIBS
 
27128
    LIBS="$my_save_LIBS"
 
27129
 
 
27130
 
 
27131
    my_save_LIBS="$LIBS"
 
27132
    LIBS="$LIBS $LIBDL"
 
27133
 
 
27134
 
 
27135
for ac_func in dlopen dlerror
 
27136
do
 
27137
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
27138
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
27139
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
27140
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
27141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27142
else
 
27143
  cat >conftest.$ac_ext <<_ACEOF
 
27144
/* confdefs.h.  */
 
27145
_ACEOF
 
27146
cat confdefs.h >>conftest.$ac_ext
 
27147
cat >>conftest.$ac_ext <<_ACEOF
 
27148
/* end confdefs.h.  */
 
27149
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
27150
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
27151
#define $ac_func innocuous_$ac_func
 
27152
 
 
27153
/* System header to define __stub macros and hopefully few prototypes,
 
27154
    which can conflict with char $ac_func (); below.
 
27155
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
27156
    <limits.h> exists even on freestanding compilers.  */
 
27157
 
 
27158
#ifdef __STDC__
 
27159
# include <limits.h>
 
27160
#else
 
27161
# include <assert.h>
 
27162
#endif
 
27163
 
 
27164
#undef $ac_func
 
27165
 
 
27166
/* Override any gcc2 internal prototype to avoid an error.  */
 
27167
#ifdef __cplusplus
 
27168
extern "C"
 
27169
{
 
27170
#endif
 
27171
/* We use char because int might match the return type of a gcc2
 
27172
   builtin and then its argument prototype would still apply.  */
 
27173
char $ac_func ();
 
27174
/* The GNU C library defines this for functions which it implements
 
27175
    to always fail with ENOSYS.  Some functions are actually named
 
27176
    something starting with __ and the normal name is an alias.  */
 
27177
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
27178
choke me
 
27179
#else
 
27180
char (*f) () = $ac_func;
 
27181
#endif
 
27182
#ifdef __cplusplus
 
27183
}
 
27184
#endif
 
27185
 
 
27186
int
 
27187
main ()
 
27188
{
 
27189
return f != $ac_func;
 
27190
  ;
 
27191
  return 0;
 
27192
}
 
27193
_ACEOF
 
27194
rm -f conftest.$ac_objext conftest$ac_exeext
 
27195
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27196
  (eval $ac_link) 2>conftest.er1
 
27197
  ac_status=$?
 
27198
  grep -v '^ *+' conftest.er1 >conftest.err
 
27199
  rm -f conftest.er1
 
27200
  cat conftest.err >&5
 
27201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27202
  (exit $ac_status); } &&
 
27203
         { ac_try='test -z "$ac_c_werror_flag"
 
27204
                         || test ! -s conftest.err'
 
27205
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27206
  (eval $ac_try) 2>&5
 
27207
  ac_status=$?
 
27208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27209
  (exit $ac_status); }; } &&
 
27210
         { ac_try='test -s conftest$ac_exeext'
 
27211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27212
  (eval $ac_try) 2>&5
 
27213
  ac_status=$?
 
27214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27215
  (exit $ac_status); }; }; then
 
27216
  eval "$as_ac_var=yes"
 
27217
else
 
27218
  echo "$as_me: failed program was:" >&5
 
27219
sed 's/^/| /' conftest.$ac_ext >&5
 
27220
 
 
27221
eval "$as_ac_var=no"
 
27222
fi
 
27223
rm -f conftest.err conftest.$ac_objext \
 
27224
      conftest$ac_exeext conftest.$ac_ext
 
27225
fi
 
27226
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
27227
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
27228
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
27229
  cat >>confdefs.h <<_ACEOF
 
27230
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
27231
_ACEOF
 
27232
 
 
27233
fi
 
27234
done
 
27235
 
 
27236
    LIBS="$my_save_LIBS"
 
27237
 
 
27238
    ;;
 
27239
esac
 
27240
 
 
27241
 
 
27242
# System characteristics
 
27243
case $SYSTEM_TYPE in
 
27244
  *netware*) ;;
 
27245
  *)
 
27246
 
 
27247
for ac_header in unistd.h
 
27248
do
 
27249
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
27250
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
27251
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
27252
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
27253
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
27254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27255
fi
 
27256
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
27257
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
27258
else
 
27259
  # Is the header compilable?
 
27260
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
27261
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
27262
cat >conftest.$ac_ext <<_ACEOF
 
27263
/* confdefs.h.  */
 
27264
_ACEOF
 
27265
cat confdefs.h >>conftest.$ac_ext
 
27266
cat >>conftest.$ac_ext <<_ACEOF
 
27267
/* end confdefs.h.  */
 
27268
$ac_includes_default
 
27269
#include <$ac_header>
 
27270
_ACEOF
 
27271
rm -f conftest.$ac_objext
 
27272
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27273
  (eval $ac_compile) 2>conftest.er1
 
27274
  ac_status=$?
 
27275
  grep -v '^ *+' conftest.er1 >conftest.err
 
27276
  rm -f conftest.er1
 
27277
  cat conftest.err >&5
 
27278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27279
  (exit $ac_status); } &&
 
27280
         { ac_try='test -z "$ac_c_werror_flag"
 
27281
                         || test ! -s conftest.err'
 
27282
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27283
  (eval $ac_try) 2>&5
 
27284
  ac_status=$?
 
27285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27286
  (exit $ac_status); }; } &&
 
27287
         { ac_try='test -s conftest.$ac_objext'
 
27288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27289
  (eval $ac_try) 2>&5
 
27290
  ac_status=$?
 
27291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27292
  (exit $ac_status); }; }; then
 
27293
  ac_header_compiler=yes
 
27294
else
 
27295
  echo "$as_me: failed program was:" >&5
 
27296
sed 's/^/| /' conftest.$ac_ext >&5
 
27297
 
 
27298
ac_header_compiler=no
 
27299
fi
 
27300
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27301
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
27302
echo "${ECHO_T}$ac_header_compiler" >&6
 
27303
 
 
27304
# Is the header present?
 
27305
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
27306
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
27307
cat >conftest.$ac_ext <<_ACEOF
 
27308
/* confdefs.h.  */
 
27309
_ACEOF
 
27310
cat confdefs.h >>conftest.$ac_ext
 
27311
cat >>conftest.$ac_ext <<_ACEOF
 
27312
/* end confdefs.h.  */
 
27313
#include <$ac_header>
 
27314
_ACEOF
 
27315
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
27316
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
27317
  ac_status=$?
 
27318
  grep -v '^ *+' conftest.er1 >conftest.err
 
27319
  rm -f conftest.er1
 
27320
  cat conftest.err >&5
 
27321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27322
  (exit $ac_status); } >/dev/null; then
 
27323
  if test -s conftest.err; then
 
27324
    ac_cpp_err=$ac_c_preproc_warn_flag
 
27325
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
27326
  else
 
27327
    ac_cpp_err=
 
27328
  fi
 
27329
else
 
27330
  ac_cpp_err=yes
 
27331
fi
 
27332
if test -z "$ac_cpp_err"; then
 
27333
  ac_header_preproc=yes
 
27334
else
 
27335
  echo "$as_me: failed program was:" >&5
 
27336
sed 's/^/| /' conftest.$ac_ext >&5
 
27337
 
 
27338
  ac_header_preproc=no
 
27339
fi
 
27340
rm -f conftest.err conftest.$ac_ext
 
27341
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
27342
echo "${ECHO_T}$ac_header_preproc" >&6
 
27343
 
 
27344
# So?  What about this header?
 
27345
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
27346
  yes:no: )
 
27347
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
27348
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
27349
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
27350
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
27351
    ac_header_preproc=yes
 
27352
    ;;
 
27353
  no:yes:* )
 
27354
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
27355
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
27356
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
27357
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
27358
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
27359
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
27360
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
27361
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
27362
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
27363
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
27364
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
27365
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
27366
    (
 
27367
      cat <<\_ASBOX
 
27368
## ------------------------------------------ ##
 
27369
## Report this to the AC_PACKAGE_NAME lists.  ##
 
27370
## ------------------------------------------ ##
 
27371
_ASBOX
 
27372
    ) |
 
27373
      sed "s/^/$as_me: WARNING:     /" >&2
 
27374
    ;;
 
27375
esac
 
27376
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
27377
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
27378
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
27379
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27380
else
 
27381
  eval "$as_ac_Header=\$ac_header_preproc"
 
27382
fi
 
27383
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
27384
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
27385
 
 
27386
fi
 
27387
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
27388
  cat >>confdefs.h <<_ACEOF
 
27389
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
27390
_ACEOF
 
27391
 
 
27392
fi
 
27393
 
 
27394
done
 
27395
 
 
27396
echo "$as_me:$LINENO: checking for restartable system calls" >&5
 
27397
echo $ECHO_N "checking for restartable system calls... $ECHO_C" >&6
 
27398
if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
 
27399
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27400
else
 
27401
  if test "$cross_compiling" = yes; then
 
27402
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
27403
See \`config.log' for more details." >&5
 
27404
echo "$as_me: error: cannot run test program while cross compiling
 
27405
See \`config.log' for more details." >&2;}
 
27406
   { (exit 1); exit 1; }; }
 
27407
else
 
27408
  cat >conftest.$ac_ext <<_ACEOF
 
27409
/* confdefs.h.  */
 
27410
_ACEOF
 
27411
cat confdefs.h >>conftest.$ac_ext
 
27412
cat >>conftest.$ac_ext <<_ACEOF
 
27413
/* end confdefs.h.  */
 
27414
/* Exit 0 (true) if wait returns something other than -1,
 
27415
   i.e. the pid of the child, which means that wait was restarted
 
27416
   after getting the signal.  */
 
27417
 
 
27418
#include <sys/types.h>
 
27419
#include <signal.h>
 
27420
#if HAVE_UNISTD_H
 
27421
# include <unistd.h>
 
27422
#endif
 
27423
#if HAVE_SYS_WAIT_H
 
27424
# include <sys/wait.h>
 
27425
#endif
 
27426
 
 
27427
/* Some platforms explicitly require an extern "C" signal handler
 
27428
   when using C++. */
 
27429
#ifdef __cplusplus
 
27430
extern "C" void ucatch (int dummy) { }
 
27431
#else
 
27432
void ucatch (dummy) int dummy; { }
 
27433
#endif
 
27434
 
 
27435
int
 
27436
main ()
 
27437
{
 
27438
  int i = fork (), status;
 
27439
 
 
27440
  if (i == 0)
 
27441
    {
 
27442
      sleep (3);
 
27443
      kill (getppid (), SIGINT);
 
27444
      sleep (3);
 
27445
      exit (0);
 
27446
    }
 
27447
 
 
27448
  signal (SIGINT, ucatch);
 
27449
 
 
27450
  status = wait (&i);
 
27451
  if (status == -1)
 
27452
    wait (&i);
 
27453
 
 
27454
  exit (status == -1);
 
27455
}
 
27456
_ACEOF
 
27457
rm -f conftest$ac_exeext
 
27458
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27459
  (eval $ac_link) 2>&5
 
27460
  ac_status=$?
 
27461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27462
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
27463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27464
  (eval $ac_try) 2>&5
 
27465
  ac_status=$?
 
27466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27467
  (exit $ac_status); }; }; then
 
27468
  ac_cv_sys_restartable_syscalls=yes
 
27469
else
 
27470
  echo "$as_me: program exited with status $ac_status" >&5
 
27471
echo "$as_me: failed program was:" >&5
 
27472
sed 's/^/| /' conftest.$ac_ext >&5
 
27473
 
 
27474
( exit $ac_status )
 
27475
ac_cv_sys_restartable_syscalls=no
 
27476
fi
 
27477
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
27478
fi
 
27479
fi
 
27480
echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
 
27481
echo "${ECHO_T}$ac_cv_sys_restartable_syscalls" >&6
 
27482
if test $ac_cv_sys_restartable_syscalls = yes; then
 
27483
 
 
27484
cat >>confdefs.h <<\_ACEOF
 
27485
#define HAVE_RESTARTABLE_SYSCALLS 1
 
27486
_ACEOF
 
27487
 
 
27488
fi
 
27489
 
 
27490
    ;;
 
27491
esac
 
27492
 
 
27493
# Build optimized or debug version ?
 
27494
# First check for gcc and g++
 
27495
if test "$ac_cv_c_compiler_gnu" = "yes"
 
27496
then
 
27497
  DEBUG_CFLAGS="-g"
 
27498
  DEBUG_OPTIMIZE_CC="-O"
 
27499
  OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE"
 
27500
else
 
27501
  DEBUG_CFLAGS="-g"
 
27502
  DEBUG_OPTIMIZE_CC=""
 
27503
  OPTIMIZE_CFLAGS="-O"
 
27504
fi
 
27505
if test "$ac_cv_prog_cxx_g" = "yes"
 
27506
then
 
27507
  DEBUG_CXXFLAGS="-g"
 
27508
  DEBUG_OPTIMIZE_CXX="-O"
 
27509
  OPTIMIZE_CXXFLAGS="$MAX_CXX_OPTIMIZE"
 
27510
else
 
27511
  DEBUG_CXXFLAGS="-g"
 
27512
  DEBUG_OPTIMIZE_CXX=""
 
27513
  OPTIMIZE_CXXFLAGS="-O"
 
27514
fi
 
27515
 
 
27516
if expr "$SYSTEM_TYPE" : ".*netware.*" > /dev/null; then
 
27517
  DEBUG_CFLAGS="-g -DDEBUG -sym internal,codeview4"
 
27518
  DEBUG_CXXFLAGS="-g -DDEBUG -sym internal,codeview4"
 
27519
  DEBUG_OPTIMIZE_CC="-DDEBUG"
 
27520
  DEBUG_OPTIMIZE_CXX="-DDEBUG"
 
27521
  OPTIMIZE_CFLAGS="-O3 -DNDEBUG"
 
27522
  OPTIMIZE_CXXFLAGS="-O3 -DNDEBUG"
 
27523
fi
 
27524
 
 
27525
# If the user specified CFLAGS, we won't add any optimizations
 
27526
if test -n "$SAVE_CFLAGS"
 
27527
then
 
27528
  OPTIMIZE_CFLAGS=""
 
27529
  DEBUG_OPTIMIZE_CC=""
 
27530
fi
 
27531
# Ditto for CXXFLAGS
 
27532
if test -n "$SAVE_CXXFLAGS"
 
27533
then
 
27534
  OPTIMIZE_CXXFLAGS=""
 
27535
  DEBUG_OPTIMIZE_CXX=""
 
27536
fi
 
27537
 
 
27538
 
 
27539
# Check whether --with-debug or --without-debug was given.
 
27540
if test "${with_debug+set}" = set; then
 
27541
  withval="$with_debug"
 
27542
  with_debug=$withval
 
27543
else
 
27544
  with_debug=no
 
27545
fi;
 
27546
if test "$with_debug" = "yes"
 
27547
then
 
27548
  # Medium debug.
 
27549
  CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC -DDBUG_ON -DSAFE_MUTEX $CFLAGS"
 
27550
  CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX -DDBUG_ON -DSAFE_MUTEX $CXXFLAGS"
 
27551
elif test "$with_debug" = "full"
 
27552
then
 
27553
  # Full debug. Very slow in some cases
 
27554
  CFLAGS="$DEBUG_CFLAGS -DDBUG_ON -DSAFE_MUTEX -DSAFEMALLOC $CFLAGS"
 
27555
  CXXFLAGS="$DEBUG_CXXFLAGS -DDBUG_ON -DSAFE_MUTEX -DSAFEMALLOC $CXXFLAGS"
 
27556
else
 
27557
  # Optimized version. No debug
 
27558
  CFLAGS="$OPTIMIZE_CFLAGS -DDBUG_OFF $CFLAGS"
 
27559
  CXXFLAGS="$OPTIMIZE_CXXFLAGS -DDBUG_OFF $CXXFLAGS"
 
27560
fi
 
27561
 
 
27562
# Force static compilation to avoid linking problems/get more speed
 
27563
 
 
27564
# Check whether --with-mysqld-ldflags or --without-mysqld-ldflags was given.
 
27565
if test "${with_mysqld_ldflags+set}" = set; then
 
27566
  withval="$with_mysqld_ldflags"
 
27567
  MYSQLD_EXTRA_LDFLAGS=$withval
 
27568
else
 
27569
  MYSQLD_EXTRA_LDFLAGS=
 
27570
fi;
 
27571
 
 
27572
 
 
27573
 
 
27574
# Check whether --with-client-ldflags or --without-client-ldflags was given.
 
27575
if test "${with_client_ldflags+set}" = set; then
 
27576
  withval="$with_client_ldflags"
 
27577
  CLIENT_EXTRA_LDFLAGS=$withval
 
27578
else
 
27579
  CLIENT_EXTRA_LDFLAGS=
 
27580
fi;
 
27581
 
 
27582
 
 
27583
 
 
27584
# Check whether --with-lib-ccflags or --without-lib-ccflags was given.
 
27585
if test "${with_lib_ccflags+set}" = set; then
 
27586
  withval="$with_lib_ccflags"
 
27587
  LIB_EXTRA_CCFLAGS=$withval
 
27588
else
 
27589
  LIB_EXTRA_CCFLAGS=
 
27590
fi;
 
27591
 
 
27592
 
 
27593
# Avoid stupid bug on some OS
 
27594
 
 
27595
# Check whether --with-low-memory or --without-low-memory was given.
 
27596
if test "${with_low_memory+set}" = set; then
 
27597
  withval="$with_low_memory"
 
27598
  with_lowmem=$withval
 
27599
else
 
27600
  with_lowmem=no
 
27601
fi;
 
27602
if test "$with_lowmem" = "yes"
 
27603
then
 
27604
  if test "$ac_cv_c_compiler_gnu" = "yes"
 
27605
  then
 
27606
    LM_CFLAGS="-fno-inline"
 
27607
  else
 
27608
    LM_CFLAGS="-O0"
 
27609
  fi
 
27610
else
 
27611
  LM_CFLAGS=""
 
27612
fi
 
27613
 
 
27614
 
 
27615
 
 
27616
# Check whether --with-comment or --without-comment was given.
 
27617
if test "${with_comment+set}" = set; then
 
27618
  withval="$with_comment"
 
27619
  with_comment=$withval
 
27620
else
 
27621
  with_comment=no
 
27622
fi;
 
27623
if test "$with_comment" != "no"
 
27624
then
 
27625
  COMPILATION_COMMENT=$with_comment
 
27626
else
 
27627
  COMPILATION_COMMENT="Source distribution"
 
27628
fi
 
27629
 
 
27630
 
 
27631
echo "$as_me:$LINENO: checking \"need of special linking flags\"" >&5
 
27632
echo $ECHO_N "checking \"need of special linking flags\"... $ECHO_C" >&6
 
27633
if test "$TARGET_LINUX" = "true" -a "$ac_cv_c_compiler_gnu" = "yes" -a "$all_is_static" != "yes"
 
27634
then
 
27635
  LDFLAGS="$LDFLAGS -rdynamic"
 
27636
  echo "$as_me:$LINENO: result: \"-rdynamic\"" >&5
 
27637
echo "${ECHO_T}\"-rdynamic\"" >&6
 
27638
else
 
27639
  echo "$as_me:$LINENO: result: \"none\"" >&5
 
27640
echo "${ECHO_T}\"none\"" >&6
 
27641
fi
 
27642
 
 
27643
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
27644
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
27645
if test "${ac_cv_c_const+set}" = set; then
 
27646
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27647
else
 
27648
  cat >conftest.$ac_ext <<_ACEOF
 
27649
/* confdefs.h.  */
 
27650
_ACEOF
 
27651
cat confdefs.h >>conftest.$ac_ext
 
27652
cat >>conftest.$ac_ext <<_ACEOF
 
27653
/* end confdefs.h.  */
 
27654
 
 
27655
int
 
27656
main ()
 
27657
{
 
27658
/* FIXME: Include the comments suggested by Paul. */
 
27659
#ifndef __cplusplus
 
27660
  /* Ultrix mips cc rejects this.  */
 
27661
  typedef int charset[2];
 
27662
  const charset x;
 
27663
  /* SunOS 4.1.1 cc rejects this.  */
 
27664
  char const *const *ccp;
 
27665
  char **p;
 
27666
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
27667
  struct point {int x, y;};
 
27668
  static struct point const zero = {0,0};
 
27669
  /* AIX XL C 1.02.0.0 rejects this.
 
27670
     It does not let you subtract one const X* pointer from another in
 
27671
     an arm of an if-expression whose if-part is not a constant
 
27672
     expression */
 
27673
  const char *g = "string";
 
27674
  ccp = &g + (g ? g-g : 0);
 
27675
  /* HPUX 7.0 cc rejects these. */
 
27676
  ++ccp;
 
27677
  p = (char**) ccp;
 
27678
  ccp = (char const *const *) p;
 
27679
  { /* SCO 3.2v4 cc rejects this.  */
 
27680
    char *t;
 
27681
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
27682
 
 
27683
    *t++ = 0;
 
27684
  }
 
27685
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
27686
    int x[] = {25, 17};
 
27687
    const int *foo = &x[0];
 
27688
    ++foo;
 
27689
  }
 
27690
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
27691
    typedef const int *iptr;
 
27692
    iptr p = 0;
 
27693
    ++p;
 
27694
  }
 
27695
  { /* AIX XL C 1.02.0.0 rejects this saying
 
27696
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
27697
    struct s { int j; const int *ap[3]; };
 
27698
    struct s *b; b->j = 5;
 
27699
  }
 
27700
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
27701
    const int foo = 10;
 
27702
  }
 
27703
#endif
 
27704
 
 
27705
  ;
 
27706
  return 0;
 
27707
}
 
27708
_ACEOF
 
27709
rm -f conftest.$ac_objext
 
27710
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27711
  (eval $ac_compile) 2>conftest.er1
 
27712
  ac_status=$?
 
27713
  grep -v '^ *+' conftest.er1 >conftest.err
 
27714
  rm -f conftest.er1
 
27715
  cat conftest.err >&5
 
27716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27717
  (exit $ac_status); } &&
 
27718
         { ac_try='test -z "$ac_c_werror_flag"
 
27719
                         || test ! -s conftest.err'
 
27720
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27721
  (eval $ac_try) 2>&5
 
27722
  ac_status=$?
 
27723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27724
  (exit $ac_status); }; } &&
 
27725
         { ac_try='test -s conftest.$ac_objext'
 
27726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27727
  (eval $ac_try) 2>&5
 
27728
  ac_status=$?
 
27729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27730
  (exit $ac_status); }; }; then
 
27731
  ac_cv_c_const=yes
 
27732
else
 
27733
  echo "$as_me: failed program was:" >&5
 
27734
sed 's/^/| /' conftest.$ac_ext >&5
 
27735
 
 
27736
ac_cv_c_const=no
 
27737
fi
 
27738
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27739
fi
 
27740
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
27741
echo "${ECHO_T}$ac_cv_c_const" >&6
 
27742
if test $ac_cv_c_const = no; then
 
27743
 
 
27744
cat >>confdefs.h <<\_ACEOF
 
27745
#define const
 
27746
_ACEOF
 
27747
 
 
27748
fi
 
27749
 
 
27750
echo "$as_me:$LINENO: checking for inline" >&5
 
27751
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
27752
if test "${ac_cv_c_inline+set}" = set; then
 
27753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27754
else
 
27755
  ac_cv_c_inline=no
 
27756
for ac_kw in inline __inline__ __inline; do
 
27757
  cat >conftest.$ac_ext <<_ACEOF
 
27758
/* confdefs.h.  */
 
27759
_ACEOF
 
27760
cat confdefs.h >>conftest.$ac_ext
 
27761
cat >>conftest.$ac_ext <<_ACEOF
 
27762
/* end confdefs.h.  */
 
27763
#ifndef __cplusplus
 
27764
typedef int foo_t;
 
27765
static $ac_kw foo_t static_foo () {return 0; }
 
27766
$ac_kw foo_t foo () {return 0; }
 
27767
#endif
 
27768
 
 
27769
_ACEOF
 
27770
rm -f conftest.$ac_objext
 
27771
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27772
  (eval $ac_compile) 2>conftest.er1
 
27773
  ac_status=$?
 
27774
  grep -v '^ *+' conftest.er1 >conftest.err
 
27775
  rm -f conftest.er1
 
27776
  cat conftest.err >&5
 
27777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27778
  (exit $ac_status); } &&
 
27779
         { ac_try='test -z "$ac_c_werror_flag"
 
27780
                         || test ! -s conftest.err'
 
27781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27782
  (eval $ac_try) 2>&5
 
27783
  ac_status=$?
 
27784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27785
  (exit $ac_status); }; } &&
 
27786
         { ac_try='test -s conftest.$ac_objext'
 
27787
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27788
  (eval $ac_try) 2>&5
 
27789
  ac_status=$?
 
27790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27791
  (exit $ac_status); }; }; then
 
27792
  ac_cv_c_inline=$ac_kw; break
 
27793
else
 
27794
  echo "$as_me: failed program was:" >&5
 
27795
sed 's/^/| /' conftest.$ac_ext >&5
 
27796
 
 
27797
fi
 
27798
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27799
done
 
27800
 
 
27801
fi
 
27802
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
27803
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
27804
 
 
27805
 
 
27806
case $ac_cv_c_inline in
 
27807
  inline | yes) ;;
 
27808
  *)
 
27809
    case $ac_cv_c_inline in
 
27810
      no) ac_val=;;
 
27811
      *) ac_val=$ac_cv_c_inline;;
 
27812
    esac
 
27813
    cat >>confdefs.h <<_ACEOF
 
27814
#ifndef __cplusplus
 
27815
#define inline $ac_val
 
27816
#endif
 
27817
_ACEOF
 
27818
    ;;
 
27819
esac
 
27820
 
 
27821
echo "$as_me:$LINENO: checking for off_t" >&5
 
27822
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
27823
if test "${ac_cv_type_off_t+set}" = set; then
 
27824
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27825
else
 
27826
  cat >conftest.$ac_ext <<_ACEOF
 
27827
/* confdefs.h.  */
 
27828
_ACEOF
 
27829
cat confdefs.h >>conftest.$ac_ext
 
27830
cat >>conftest.$ac_ext <<_ACEOF
 
27831
/* end confdefs.h.  */
 
27832
$ac_includes_default
 
27833
int
 
27834
main ()
 
27835
{
 
27836
if ((off_t *) 0)
 
27837
  return 0;
 
27838
if (sizeof (off_t))
 
27839
  return 0;
 
27840
  ;
 
27841
  return 0;
 
27842
}
 
27843
_ACEOF
 
27844
rm -f conftest.$ac_objext
 
27845
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27846
  (eval $ac_compile) 2>conftest.er1
 
27847
  ac_status=$?
 
27848
  grep -v '^ *+' conftest.er1 >conftest.err
 
27849
  rm -f conftest.er1
 
27850
  cat conftest.err >&5
 
27851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27852
  (exit $ac_status); } &&
 
27853
         { ac_try='test -z "$ac_c_werror_flag"
 
27854
                         || test ! -s conftest.err'
 
27855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27856
  (eval $ac_try) 2>&5
 
27857
  ac_status=$?
 
27858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27859
  (exit $ac_status); }; } &&
 
27860
         { ac_try='test -s conftest.$ac_objext'
 
27861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27862
  (eval $ac_try) 2>&5
 
27863
  ac_status=$?
 
27864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27865
  (exit $ac_status); }; }; then
 
27866
  ac_cv_type_off_t=yes
 
27867
else
 
27868
  echo "$as_me: failed program was:" >&5
 
27869
sed 's/^/| /' conftest.$ac_ext >&5
 
27870
 
 
27871
ac_cv_type_off_t=no
 
27872
fi
 
27873
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27874
fi
 
27875
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
27876
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
27877
if test $ac_cv_type_off_t = yes; then
 
27878
  :
 
27879
else
 
27880
 
 
27881
cat >>confdefs.h <<_ACEOF
 
27882
#define off_t long
 
27883
_ACEOF
 
27884
 
 
27885
fi
 
27886
 
 
27887
 
 
27888
echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
 
27889
echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
 
27890
if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
 
27891
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
27892
else
 
27893
  cat >conftest.$ac_ext <<_ACEOF
 
27894
/* confdefs.h.  */
 
27895
_ACEOF
 
27896
cat confdefs.h >>conftest.$ac_ext
 
27897
cat >>conftest.$ac_ext <<_ACEOF
 
27898
/* end confdefs.h.  */
 
27899
$ac_includes_default
 
27900
int
 
27901
main ()
 
27902
{
 
27903
static struct stat ac_aggr;
 
27904
if (ac_aggr.st_rdev)
 
27905
return 0;
 
27906
  ;
 
27907
  return 0;
 
27908
}
 
27909
_ACEOF
 
27910
rm -f conftest.$ac_objext
 
27911
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27912
  (eval $ac_compile) 2>conftest.er1
 
27913
  ac_status=$?
 
27914
  grep -v '^ *+' conftest.er1 >conftest.err
 
27915
  rm -f conftest.er1
 
27916
  cat conftest.err >&5
 
27917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27918
  (exit $ac_status); } &&
 
27919
         { ac_try='test -z "$ac_c_werror_flag"
 
27920
                         || test ! -s conftest.err'
 
27921
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27922
  (eval $ac_try) 2>&5
 
27923
  ac_status=$?
 
27924
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27925
  (exit $ac_status); }; } &&
 
27926
         { ac_try='test -s conftest.$ac_objext'
 
27927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27928
  (eval $ac_try) 2>&5
 
27929
  ac_status=$?
 
27930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27931
  (exit $ac_status); }; }; then
 
27932
  ac_cv_member_struct_stat_st_rdev=yes
 
27933
else
 
27934
  echo "$as_me: failed program was:" >&5
 
27935
sed 's/^/| /' conftest.$ac_ext >&5
 
27936
 
 
27937
cat >conftest.$ac_ext <<_ACEOF
 
27938
/* confdefs.h.  */
 
27939
_ACEOF
 
27940
cat confdefs.h >>conftest.$ac_ext
 
27941
cat >>conftest.$ac_ext <<_ACEOF
 
27942
/* end confdefs.h.  */
 
27943
$ac_includes_default
 
27944
int
 
27945
main ()
 
27946
{
 
27947
static struct stat ac_aggr;
 
27948
if (sizeof ac_aggr.st_rdev)
 
27949
return 0;
 
27950
  ;
 
27951
  return 0;
 
27952
}
 
27953
_ACEOF
 
27954
rm -f conftest.$ac_objext
 
27955
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
27956
  (eval $ac_compile) 2>conftest.er1
 
27957
  ac_status=$?
 
27958
  grep -v '^ *+' conftest.er1 >conftest.err
 
27959
  rm -f conftest.er1
 
27960
  cat conftest.err >&5
 
27961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27962
  (exit $ac_status); } &&
 
27963
         { ac_try='test -z "$ac_c_werror_flag"
 
27964
                         || test ! -s conftest.err'
 
27965
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27966
  (eval $ac_try) 2>&5
 
27967
  ac_status=$?
 
27968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27969
  (exit $ac_status); }; } &&
 
27970
         { ac_try='test -s conftest.$ac_objext'
 
27971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27972
  (eval $ac_try) 2>&5
 
27973
  ac_status=$?
 
27974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27975
  (exit $ac_status); }; }; then
 
27976
  ac_cv_member_struct_stat_st_rdev=yes
 
27977
else
 
27978
  echo "$as_me: failed program was:" >&5
 
27979
sed 's/^/| /' conftest.$ac_ext >&5
 
27980
 
 
27981
ac_cv_member_struct_stat_st_rdev=no
 
27982
fi
 
27983
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27984
fi
 
27985
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
27986
fi
 
27987
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
 
27988
echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
 
27989
if test $ac_cv_member_struct_stat_st_rdev = yes; then
 
27990
 
 
27991
cat >>confdefs.h <<_ACEOF
 
27992
#define HAVE_STRUCT_STAT_ST_RDEV 1
 
27993
_ACEOF
 
27994
 
 
27995
 
 
27996
cat >>confdefs.h <<\_ACEOF
 
27997
#define HAVE_ST_RDEV 1
 
27998
_ACEOF
 
27999
 
 
28000
fi
 
28001
 
 
28002
 
 
28003
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
28004
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
 
28005
if test "${ac_cv_header_time+set}" = set; then
 
28006
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28007
else
 
28008
  cat >conftest.$ac_ext <<_ACEOF
 
28009
/* confdefs.h.  */
 
28010
_ACEOF
 
28011
cat confdefs.h >>conftest.$ac_ext
 
28012
cat >>conftest.$ac_ext <<_ACEOF
 
28013
/* end confdefs.h.  */
 
28014
#include <sys/types.h>
 
28015
#include <sys/time.h>
 
28016
#include <time.h>
 
28017
 
 
28018
int
 
28019
main ()
 
28020
{
 
28021
if ((struct tm *) 0)
 
28022
return 0;
 
28023
  ;
 
28024
  return 0;
 
28025
}
 
28026
_ACEOF
 
28027
rm -f conftest.$ac_objext
 
28028
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28029
  (eval $ac_compile) 2>conftest.er1
 
28030
  ac_status=$?
 
28031
  grep -v '^ *+' conftest.er1 >conftest.err
 
28032
  rm -f conftest.er1
 
28033
  cat conftest.err >&5
 
28034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28035
  (exit $ac_status); } &&
 
28036
         { ac_try='test -z "$ac_c_werror_flag"
 
28037
                         || test ! -s conftest.err'
 
28038
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28039
  (eval $ac_try) 2>&5
 
28040
  ac_status=$?
 
28041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28042
  (exit $ac_status); }; } &&
 
28043
         { ac_try='test -s conftest.$ac_objext'
 
28044
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28045
  (eval $ac_try) 2>&5
 
28046
  ac_status=$?
 
28047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28048
  (exit $ac_status); }; }; then
 
28049
  ac_cv_header_time=yes
 
28050
else
 
28051
  echo "$as_me: failed program was:" >&5
 
28052
sed 's/^/| /' conftest.$ac_ext >&5
 
28053
 
 
28054
ac_cv_header_time=no
 
28055
fi
 
28056
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28057
fi
 
28058
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
28059
echo "${ECHO_T}$ac_cv_header_time" >&6
 
28060
if test $ac_cv_header_time = yes; then
 
28061
 
 
28062
cat >>confdefs.h <<\_ACEOF
 
28063
#define TIME_WITH_SYS_TIME 1
 
28064
_ACEOF
 
28065
 
 
28066
fi
 
28067
 
 
28068
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
28069
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
 
28070
if test "${ac_cv_struct_tm+set}" = set; then
 
28071
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28072
else
 
28073
  cat >conftest.$ac_ext <<_ACEOF
 
28074
/* confdefs.h.  */
 
28075
_ACEOF
 
28076
cat confdefs.h >>conftest.$ac_ext
 
28077
cat >>conftest.$ac_ext <<_ACEOF
 
28078
/* end confdefs.h.  */
 
28079
#include <sys/types.h>
 
28080
#include <time.h>
 
28081
 
 
28082
int
 
28083
main ()
 
28084
{
 
28085
struct tm *tp; tp->tm_sec;
 
28086
  ;
 
28087
  return 0;
 
28088
}
 
28089
_ACEOF
 
28090
rm -f conftest.$ac_objext
 
28091
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28092
  (eval $ac_compile) 2>conftest.er1
 
28093
  ac_status=$?
 
28094
  grep -v '^ *+' conftest.er1 >conftest.err
 
28095
  rm -f conftest.er1
 
28096
  cat conftest.err >&5
 
28097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28098
  (exit $ac_status); } &&
 
28099
         { ac_try='test -z "$ac_c_werror_flag"
 
28100
                         || test ! -s conftest.err'
 
28101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28102
  (eval $ac_try) 2>&5
 
28103
  ac_status=$?
 
28104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28105
  (exit $ac_status); }; } &&
 
28106
         { ac_try='test -s conftest.$ac_objext'
 
28107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28108
  (eval $ac_try) 2>&5
 
28109
  ac_status=$?
 
28110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28111
  (exit $ac_status); }; }; then
 
28112
  ac_cv_struct_tm=time.h
 
28113
else
 
28114
  echo "$as_me: failed program was:" >&5
 
28115
sed 's/^/| /' conftest.$ac_ext >&5
 
28116
 
 
28117
ac_cv_struct_tm=sys/time.h
 
28118
fi
 
28119
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28120
fi
 
28121
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
28122
echo "${ECHO_T}$ac_cv_struct_tm" >&6
 
28123
if test $ac_cv_struct_tm = sys/time.h; then
 
28124
 
 
28125
cat >>confdefs.h <<\_ACEOF
 
28126
#define TM_IN_SYS_TIME 1
 
28127
_ACEOF
 
28128
 
 
28129
fi
 
28130
 
 
28131
echo "$as_me:$LINENO: checking needs mysys_new helpers" >&5
 
28132
echo $ECHO_N "checking needs mysys_new helpers... $ECHO_C" >&6
 
28133
if test "${mysql_use_mysys_new+set}" = set; then
 
28134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28135
else
 
28136
 
 
28137
ac_ext=cc
 
28138
ac_cpp='$CXXCPP $CPPFLAGS'
 
28139
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
28140
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
28141
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
28142
 
 
28143
cat >conftest.$ac_ext <<_ACEOF
 
28144
/* confdefs.h.  */
 
28145
_ACEOF
 
28146
cat confdefs.h >>conftest.$ac_ext
 
28147
cat >>conftest.$ac_ext <<_ACEOF
 
28148
/* end confdefs.h.  */
 
28149
 
 
28150
int
 
28151
main ()
 
28152
{
 
28153
 
 
28154
class A { public: int b; }; A *a=new A; a->b=10; delete a;
 
28155
 
 
28156
  ;
 
28157
  return 0;
 
28158
}
 
28159
_ACEOF
 
28160
rm -f conftest.$ac_objext conftest$ac_exeext
 
28161
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28162
  (eval $ac_link) 2>conftest.er1
 
28163
  ac_status=$?
 
28164
  grep -v '^ *+' conftest.er1 >conftest.err
 
28165
  rm -f conftest.er1
 
28166
  cat conftest.err >&5
 
28167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28168
  (exit $ac_status); } &&
 
28169
         { ac_try='test -z "$ac_cxx_werror_flag"
 
28170
                         || test ! -s conftest.err'
 
28171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28172
  (eval $ac_try) 2>&5
 
28173
  ac_status=$?
 
28174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28175
  (exit $ac_status); }; } &&
 
28176
         { ac_try='test -s conftest$ac_exeext'
 
28177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28178
  (eval $ac_try) 2>&5
 
28179
  ac_status=$?
 
28180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28181
  (exit $ac_status); }; }; then
 
28182
  mysql_use_mysys_new=no
 
28183
else
 
28184
  echo "$as_me: failed program was:" >&5
 
28185
sed 's/^/| /' conftest.$ac_ext >&5
 
28186
 
 
28187
mysql_use_mysys_new=yes
 
28188
fi
 
28189
rm -f conftest.err conftest.$ac_objext \
 
28190
      conftest$ac_exeext conftest.$ac_ext
 
28191
ac_ext=c
 
28192
ac_cpp='$CPP $CPPFLAGS'
 
28193
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
28194
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
28195
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
28196
 
 
28197
 
 
28198
fi
 
28199
echo "$as_me:$LINENO: result: $mysql_use_mysys_new" >&5
 
28200
echo "${ECHO_T}$mysql_use_mysys_new" >&6
 
28201
if test "$mysql_use_mysys_new" = "yes"
 
28202
then
 
28203
 
 
28204
cat >>confdefs.h <<\_ACEOF
 
28205
#define USE_MYSYS_NEW 1
 
28206
_ACEOF
 
28207
 
 
28208
fi
 
28209
 
 
28210
# AC_CHECK_SIZEOF return 0 when it does not find the size of a
 
28211
# type. We want a error instead.
 
28212
echo "$as_me:$LINENO: checking for char" >&5
 
28213
echo $ECHO_N "checking for char... $ECHO_C" >&6
 
28214
if test "${ac_cv_type_char+set}" = set; then
 
28215
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28216
else
 
28217
  cat >conftest.$ac_ext <<_ACEOF
 
28218
/* confdefs.h.  */
 
28219
_ACEOF
 
28220
cat confdefs.h >>conftest.$ac_ext
 
28221
cat >>conftest.$ac_ext <<_ACEOF
 
28222
/* end confdefs.h.  */
 
28223
$ac_includes_default
 
28224
int
 
28225
main ()
 
28226
{
 
28227
if ((char *) 0)
 
28228
  return 0;
 
28229
if (sizeof (char))
 
28230
  return 0;
 
28231
  ;
 
28232
  return 0;
 
28233
}
 
28234
_ACEOF
 
28235
rm -f conftest.$ac_objext
 
28236
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28237
  (eval $ac_compile) 2>conftest.er1
 
28238
  ac_status=$?
 
28239
  grep -v '^ *+' conftest.er1 >conftest.err
 
28240
  rm -f conftest.er1
 
28241
  cat conftest.err >&5
 
28242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28243
  (exit $ac_status); } &&
 
28244
         { ac_try='test -z "$ac_c_werror_flag"
 
28245
                         || test ! -s conftest.err'
 
28246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28247
  (eval $ac_try) 2>&5
 
28248
  ac_status=$?
 
28249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28250
  (exit $ac_status); }; } &&
 
28251
         { ac_try='test -s conftest.$ac_objext'
 
28252
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28253
  (eval $ac_try) 2>&5
 
28254
  ac_status=$?
 
28255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28256
  (exit $ac_status); }; }; then
 
28257
  ac_cv_type_char=yes
 
28258
else
 
28259
  echo "$as_me: failed program was:" >&5
 
28260
sed 's/^/| /' conftest.$ac_ext >&5
 
28261
 
 
28262
ac_cv_type_char=no
 
28263
fi
 
28264
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28265
fi
 
28266
echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
 
28267
echo "${ECHO_T}$ac_cv_type_char" >&6
 
28268
 
 
28269
echo "$as_me:$LINENO: checking size of char" >&5
 
28270
echo $ECHO_N "checking size of char... $ECHO_C" >&6
 
28271
if test "${ac_cv_sizeof_char+set}" = set; then
 
28272
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28273
else
 
28274
  if test "$ac_cv_type_char" = yes; then
 
28275
  # The cast to unsigned long works around a bug in the HP C Compiler
 
28276
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
28277
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
28278
  # This bug is HP SR number 8606223364.
 
28279
  if test "$cross_compiling" = yes; then
 
28280
  # Depending upon the size, compute the lo and hi bounds.
 
28281
cat >conftest.$ac_ext <<_ACEOF
 
28282
/* confdefs.h.  */
 
28283
_ACEOF
 
28284
cat confdefs.h >>conftest.$ac_ext
 
28285
cat >>conftest.$ac_ext <<_ACEOF
 
28286
/* end confdefs.h.  */
 
28287
$ac_includes_default
 
28288
int
 
28289
main ()
 
28290
{
 
28291
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
 
28292
test_array [0] = 0
 
28293
 
 
28294
  ;
 
28295
  return 0;
 
28296
}
 
28297
_ACEOF
 
28298
rm -f conftest.$ac_objext
 
28299
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28300
  (eval $ac_compile) 2>conftest.er1
 
28301
  ac_status=$?
 
28302
  grep -v '^ *+' conftest.er1 >conftest.err
 
28303
  rm -f conftest.er1
 
28304
  cat conftest.err >&5
 
28305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28306
  (exit $ac_status); } &&
 
28307
         { ac_try='test -z "$ac_c_werror_flag"
 
28308
                         || test ! -s conftest.err'
 
28309
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28310
  (eval $ac_try) 2>&5
 
28311
  ac_status=$?
 
28312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28313
  (exit $ac_status); }; } &&
 
28314
         { ac_try='test -s conftest.$ac_objext'
 
28315
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28316
  (eval $ac_try) 2>&5
 
28317
  ac_status=$?
 
28318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28319
  (exit $ac_status); }; }; then
 
28320
  ac_lo=0 ac_mid=0
 
28321
  while :; do
 
28322
    cat >conftest.$ac_ext <<_ACEOF
 
28323
/* confdefs.h.  */
 
28324
_ACEOF
 
28325
cat confdefs.h >>conftest.$ac_ext
 
28326
cat >>conftest.$ac_ext <<_ACEOF
 
28327
/* end confdefs.h.  */
 
28328
$ac_includes_default
 
28329
int
 
28330
main ()
 
28331
{
 
28332
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
 
28333
test_array [0] = 0
 
28334
 
 
28335
  ;
 
28336
  return 0;
 
28337
}
 
28338
_ACEOF
 
28339
rm -f conftest.$ac_objext
 
28340
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28341
  (eval $ac_compile) 2>conftest.er1
 
28342
  ac_status=$?
 
28343
  grep -v '^ *+' conftest.er1 >conftest.err
 
28344
  rm -f conftest.er1
 
28345
  cat conftest.err >&5
 
28346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28347
  (exit $ac_status); } &&
 
28348
         { ac_try='test -z "$ac_c_werror_flag"
 
28349
                         || test ! -s conftest.err'
 
28350
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28351
  (eval $ac_try) 2>&5
 
28352
  ac_status=$?
 
28353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28354
  (exit $ac_status); }; } &&
 
28355
         { ac_try='test -s conftest.$ac_objext'
 
28356
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28357
  (eval $ac_try) 2>&5
 
28358
  ac_status=$?
 
28359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28360
  (exit $ac_status); }; }; then
 
28361
  ac_hi=$ac_mid; break
 
28362
else
 
28363
  echo "$as_me: failed program was:" >&5
 
28364
sed 's/^/| /' conftest.$ac_ext >&5
 
28365
 
 
28366
ac_lo=`expr $ac_mid + 1`
 
28367
                    if test $ac_lo -le $ac_mid; then
 
28368
                      ac_lo= ac_hi=
 
28369
                      break
 
28370
                    fi
 
28371
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
28372
fi
 
28373
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28374
  done
 
28375
else
 
28376
  echo "$as_me: failed program was:" >&5
 
28377
sed 's/^/| /' conftest.$ac_ext >&5
 
28378
 
 
28379
cat >conftest.$ac_ext <<_ACEOF
 
28380
/* confdefs.h.  */
 
28381
_ACEOF
 
28382
cat confdefs.h >>conftest.$ac_ext
 
28383
cat >>conftest.$ac_ext <<_ACEOF
 
28384
/* end confdefs.h.  */
 
28385
$ac_includes_default
 
28386
int
 
28387
main ()
 
28388
{
 
28389
static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
 
28390
test_array [0] = 0
 
28391
 
 
28392
  ;
 
28393
  return 0;
 
28394
}
 
28395
_ACEOF
 
28396
rm -f conftest.$ac_objext
 
28397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28398
  (eval $ac_compile) 2>conftest.er1
 
28399
  ac_status=$?
 
28400
  grep -v '^ *+' conftest.er1 >conftest.err
 
28401
  rm -f conftest.er1
 
28402
  cat conftest.err >&5
 
28403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28404
  (exit $ac_status); } &&
 
28405
         { ac_try='test -z "$ac_c_werror_flag"
 
28406
                         || test ! -s conftest.err'
 
28407
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28408
  (eval $ac_try) 2>&5
 
28409
  ac_status=$?
 
28410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28411
  (exit $ac_status); }; } &&
 
28412
         { ac_try='test -s conftest.$ac_objext'
 
28413
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28414
  (eval $ac_try) 2>&5
 
28415
  ac_status=$?
 
28416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28417
  (exit $ac_status); }; }; then
 
28418
  ac_hi=-1 ac_mid=-1
 
28419
  while :; do
 
28420
    cat >conftest.$ac_ext <<_ACEOF
 
28421
/* confdefs.h.  */
 
28422
_ACEOF
 
28423
cat confdefs.h >>conftest.$ac_ext
 
28424
cat >>conftest.$ac_ext <<_ACEOF
 
28425
/* end confdefs.h.  */
 
28426
$ac_includes_default
 
28427
int
 
28428
main ()
 
28429
{
 
28430
static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
 
28431
test_array [0] = 0
 
28432
 
 
28433
  ;
 
28434
  return 0;
 
28435
}
 
28436
_ACEOF
 
28437
rm -f conftest.$ac_objext
 
28438
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28439
  (eval $ac_compile) 2>conftest.er1
 
28440
  ac_status=$?
 
28441
  grep -v '^ *+' conftest.er1 >conftest.err
 
28442
  rm -f conftest.er1
 
28443
  cat conftest.err >&5
 
28444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28445
  (exit $ac_status); } &&
 
28446
         { ac_try='test -z "$ac_c_werror_flag"
 
28447
                         || test ! -s conftest.err'
 
28448
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28449
  (eval $ac_try) 2>&5
 
28450
  ac_status=$?
 
28451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28452
  (exit $ac_status); }; } &&
 
28453
         { ac_try='test -s conftest.$ac_objext'
 
28454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28455
  (eval $ac_try) 2>&5
 
28456
  ac_status=$?
 
28457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28458
  (exit $ac_status); }; }; then
 
28459
  ac_lo=$ac_mid; break
 
28460
else
 
28461
  echo "$as_me: failed program was:" >&5
 
28462
sed 's/^/| /' conftest.$ac_ext >&5
 
28463
 
 
28464
ac_hi=`expr '(' $ac_mid ')' - 1`
 
28465
                       if test $ac_mid -le $ac_hi; then
 
28466
                         ac_lo= ac_hi=
 
28467
                         break
 
28468
                       fi
 
28469
                       ac_mid=`expr 2 '*' $ac_mid`
 
28470
fi
 
28471
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28472
  done
 
28473
else
 
28474
  echo "$as_me: failed program was:" >&5
 
28475
sed 's/^/| /' conftest.$ac_ext >&5
 
28476
 
 
28477
ac_lo= ac_hi=
 
28478
fi
 
28479
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28480
fi
 
28481
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28482
# Binary search between lo and hi bounds.
 
28483
while test "x$ac_lo" != "x$ac_hi"; do
 
28484
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
28485
  cat >conftest.$ac_ext <<_ACEOF
 
28486
/* confdefs.h.  */
 
28487
_ACEOF
 
28488
cat confdefs.h >>conftest.$ac_ext
 
28489
cat >>conftest.$ac_ext <<_ACEOF
 
28490
/* end confdefs.h.  */
 
28491
$ac_includes_default
 
28492
int
 
28493
main ()
 
28494
{
 
28495
static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
 
28496
test_array [0] = 0
 
28497
 
 
28498
  ;
 
28499
  return 0;
 
28500
}
 
28501
_ACEOF
 
28502
rm -f conftest.$ac_objext
 
28503
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28504
  (eval $ac_compile) 2>conftest.er1
 
28505
  ac_status=$?
 
28506
  grep -v '^ *+' conftest.er1 >conftest.err
 
28507
  rm -f conftest.er1
 
28508
  cat conftest.err >&5
 
28509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28510
  (exit $ac_status); } &&
 
28511
         { ac_try='test -z "$ac_c_werror_flag"
 
28512
                         || test ! -s conftest.err'
 
28513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28514
  (eval $ac_try) 2>&5
 
28515
  ac_status=$?
 
28516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28517
  (exit $ac_status); }; } &&
 
28518
         { ac_try='test -s conftest.$ac_objext'
 
28519
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28520
  (eval $ac_try) 2>&5
 
28521
  ac_status=$?
 
28522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28523
  (exit $ac_status); }; }; then
 
28524
  ac_hi=$ac_mid
 
28525
else
 
28526
  echo "$as_me: failed program was:" >&5
 
28527
sed 's/^/| /' conftest.$ac_ext >&5
 
28528
 
 
28529
ac_lo=`expr '(' $ac_mid ')' + 1`
 
28530
fi
 
28531
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28532
done
 
28533
case $ac_lo in
 
28534
?*) ac_cv_sizeof_char=$ac_lo;;
 
28535
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
 
28536
See \`config.log' for more details." >&5
 
28537
echo "$as_me: error: cannot compute sizeof (char), 77
 
28538
See \`config.log' for more details." >&2;}
 
28539
   { (exit 1); exit 1; }; } ;;
 
28540
esac
 
28541
else
 
28542
  if test "$cross_compiling" = yes; then
 
28543
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
28544
See \`config.log' for more details." >&5
 
28545
echo "$as_me: error: cannot run test program while cross compiling
 
28546
See \`config.log' for more details." >&2;}
 
28547
   { (exit 1); exit 1; }; }
 
28548
else
 
28549
  cat >conftest.$ac_ext <<_ACEOF
 
28550
/* confdefs.h.  */
 
28551
_ACEOF
 
28552
cat confdefs.h >>conftest.$ac_ext
 
28553
cat >>conftest.$ac_ext <<_ACEOF
 
28554
/* end confdefs.h.  */
 
28555
$ac_includes_default
 
28556
long longval () { return (long) (sizeof (char)); }
 
28557
unsigned long ulongval () { return (long) (sizeof (char)); }
 
28558
#include <stdio.h>
 
28559
#include <stdlib.h>
 
28560
int
 
28561
main ()
 
28562
{
 
28563
 
 
28564
  FILE *f = fopen ("conftest.val", "w");
 
28565
  if (! f)
 
28566
    exit (1);
 
28567
  if (((long) (sizeof (char))) < 0)
 
28568
    {
 
28569
      long i = longval ();
 
28570
      if (i != ((long) (sizeof (char))))
 
28571
        exit (1);
 
28572
      fprintf (f, "%ld\n", i);
 
28573
    }
 
28574
  else
 
28575
    {
 
28576
      unsigned long i = ulongval ();
 
28577
      if (i != ((long) (sizeof (char))))
 
28578
        exit (1);
 
28579
      fprintf (f, "%lu\n", i);
 
28580
    }
 
28581
  exit (ferror (f) || fclose (f) != 0);
 
28582
 
 
28583
  ;
 
28584
  return 0;
 
28585
}
 
28586
_ACEOF
 
28587
rm -f conftest$ac_exeext
 
28588
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28589
  (eval $ac_link) 2>&5
 
28590
  ac_status=$?
 
28591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28592
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
28593
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28594
  (eval $ac_try) 2>&5
 
28595
  ac_status=$?
 
28596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28597
  (exit $ac_status); }; }; then
 
28598
  ac_cv_sizeof_char=`cat conftest.val`
 
28599
else
 
28600
  echo "$as_me: program exited with status $ac_status" >&5
 
28601
echo "$as_me: failed program was:" >&5
 
28602
sed 's/^/| /' conftest.$ac_ext >&5
 
28603
 
 
28604
( exit $ac_status )
 
28605
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
 
28606
See \`config.log' for more details." >&5
 
28607
echo "$as_me: error: cannot compute sizeof (char), 77
 
28608
See \`config.log' for more details." >&2;}
 
28609
   { (exit 1); exit 1; }; }
 
28610
fi
 
28611
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
28612
fi
 
28613
fi
 
28614
rm -f conftest.val
 
28615
else
 
28616
  ac_cv_sizeof_char=0
 
28617
fi
 
28618
fi
 
28619
echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
 
28620
echo "${ECHO_T}$ac_cv_sizeof_char" >&6
 
28621
cat >>confdefs.h <<_ACEOF
 
28622
#define SIZEOF_CHAR $ac_cv_sizeof_char
 
28623
_ACEOF
 
28624
 
 
28625
 
 
28626
if test "$ac_cv_sizeof_char" -eq 0
 
28627
then
 
28628
  { { echo "$as_me:$LINENO: error: No size for char type.
 
28629
A likely cause for this could be that there isn't any
 
28630
static libraries installed. You can verify this by checking if you have libm.a
 
28631
in /lib, /usr/lib or some other standard place.  If this is the problem,
 
28632
install the static libraries and try again.  If this isn't the problem,
 
28633
examine config.log for possible errors.  If you want to report this, use
 
28634
'scripts/mysqlbug' and include at least the last 20 rows from config.log!" >&5
 
28635
echo "$as_me: error: No size for char type.
 
28636
A likely cause for this could be that there isn't any
 
28637
static libraries installed. You can verify this by checking if you have libm.a
 
28638
in /lib, /usr/lib or some other standard place.  If this is the problem,
 
28639
install the static libraries and try again.  If this isn't the problem,
 
28640
examine config.log for possible errors.  If you want to report this, use
 
28641
'scripts/mysqlbug' and include at least the last 20 rows from config.log!" >&2;}
 
28642
   { (exit 1); exit 1; }; }
 
28643
fi
 
28644
echo "$as_me:$LINENO: checking for char*" >&5
 
28645
echo $ECHO_N "checking for char*... $ECHO_C" >&6
 
28646
if test "${ac_cv_type_charp+set}" = set; then
 
28647
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28648
else
 
28649
  cat >conftest.$ac_ext <<_ACEOF
 
28650
/* confdefs.h.  */
 
28651
_ACEOF
 
28652
cat confdefs.h >>conftest.$ac_ext
 
28653
cat >>conftest.$ac_ext <<_ACEOF
 
28654
/* end confdefs.h.  */
 
28655
$ac_includes_default
 
28656
int
 
28657
main ()
 
28658
{
 
28659
if ((char* *) 0)
 
28660
  return 0;
 
28661
if (sizeof (char*))
 
28662
  return 0;
 
28663
  ;
 
28664
  return 0;
 
28665
}
 
28666
_ACEOF
 
28667
rm -f conftest.$ac_objext
 
28668
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28669
  (eval $ac_compile) 2>conftest.er1
 
28670
  ac_status=$?
 
28671
  grep -v '^ *+' conftest.er1 >conftest.err
 
28672
  rm -f conftest.er1
 
28673
  cat conftest.err >&5
 
28674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28675
  (exit $ac_status); } &&
 
28676
         { ac_try='test -z "$ac_c_werror_flag"
 
28677
                         || test ! -s conftest.err'
 
28678
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28679
  (eval $ac_try) 2>&5
 
28680
  ac_status=$?
 
28681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28682
  (exit $ac_status); }; } &&
 
28683
         { ac_try='test -s conftest.$ac_objext'
 
28684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28685
  (eval $ac_try) 2>&5
 
28686
  ac_status=$?
 
28687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28688
  (exit $ac_status); }; }; then
 
28689
  ac_cv_type_charp=yes
 
28690
else
 
28691
  echo "$as_me: failed program was:" >&5
 
28692
sed 's/^/| /' conftest.$ac_ext >&5
 
28693
 
 
28694
ac_cv_type_charp=no
 
28695
fi
 
28696
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28697
fi
 
28698
echo "$as_me:$LINENO: result: $ac_cv_type_charp" >&5
 
28699
echo "${ECHO_T}$ac_cv_type_charp" >&6
 
28700
 
 
28701
echo "$as_me:$LINENO: checking size of char*" >&5
 
28702
echo $ECHO_N "checking size of char*... $ECHO_C" >&6
 
28703
if test "${ac_cv_sizeof_charp+set}" = set; then
 
28704
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28705
else
 
28706
  if test "$ac_cv_type_charp" = yes; then
 
28707
  # The cast to unsigned long works around a bug in the HP C Compiler
 
28708
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
28709
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
28710
  # This bug is HP SR number 8606223364.
 
28711
  if test "$cross_compiling" = yes; then
 
28712
  # Depending upon the size, compute the lo and hi bounds.
 
28713
cat >conftest.$ac_ext <<_ACEOF
 
28714
/* confdefs.h.  */
 
28715
_ACEOF
 
28716
cat confdefs.h >>conftest.$ac_ext
 
28717
cat >>conftest.$ac_ext <<_ACEOF
 
28718
/* end confdefs.h.  */
 
28719
$ac_includes_default
 
28720
int
 
28721
main ()
 
28722
{
 
28723
static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= 0)];
 
28724
test_array [0] = 0
 
28725
 
 
28726
  ;
 
28727
  return 0;
 
28728
}
 
28729
_ACEOF
 
28730
rm -f conftest.$ac_objext
 
28731
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28732
  (eval $ac_compile) 2>conftest.er1
 
28733
  ac_status=$?
 
28734
  grep -v '^ *+' conftest.er1 >conftest.err
 
28735
  rm -f conftest.er1
 
28736
  cat conftest.err >&5
 
28737
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28738
  (exit $ac_status); } &&
 
28739
         { ac_try='test -z "$ac_c_werror_flag"
 
28740
                         || test ! -s conftest.err'
 
28741
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28742
  (eval $ac_try) 2>&5
 
28743
  ac_status=$?
 
28744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28745
  (exit $ac_status); }; } &&
 
28746
         { ac_try='test -s conftest.$ac_objext'
 
28747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28748
  (eval $ac_try) 2>&5
 
28749
  ac_status=$?
 
28750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28751
  (exit $ac_status); }; }; then
 
28752
  ac_lo=0 ac_mid=0
 
28753
  while :; do
 
28754
    cat >conftest.$ac_ext <<_ACEOF
 
28755
/* confdefs.h.  */
 
28756
_ACEOF
 
28757
cat confdefs.h >>conftest.$ac_ext
 
28758
cat >>conftest.$ac_ext <<_ACEOF
 
28759
/* end confdefs.h.  */
 
28760
$ac_includes_default
 
28761
int
 
28762
main ()
 
28763
{
 
28764
static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
 
28765
test_array [0] = 0
 
28766
 
 
28767
  ;
 
28768
  return 0;
 
28769
}
 
28770
_ACEOF
 
28771
rm -f conftest.$ac_objext
 
28772
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28773
  (eval $ac_compile) 2>conftest.er1
 
28774
  ac_status=$?
 
28775
  grep -v '^ *+' conftest.er1 >conftest.err
 
28776
  rm -f conftest.er1
 
28777
  cat conftest.err >&5
 
28778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28779
  (exit $ac_status); } &&
 
28780
         { ac_try='test -z "$ac_c_werror_flag"
 
28781
                         || test ! -s conftest.err'
 
28782
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28783
  (eval $ac_try) 2>&5
 
28784
  ac_status=$?
 
28785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28786
  (exit $ac_status); }; } &&
 
28787
         { ac_try='test -s conftest.$ac_objext'
 
28788
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28789
  (eval $ac_try) 2>&5
 
28790
  ac_status=$?
 
28791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28792
  (exit $ac_status); }; }; then
 
28793
  ac_hi=$ac_mid; break
 
28794
else
 
28795
  echo "$as_me: failed program was:" >&5
 
28796
sed 's/^/| /' conftest.$ac_ext >&5
 
28797
 
 
28798
ac_lo=`expr $ac_mid + 1`
 
28799
                    if test $ac_lo -le $ac_mid; then
 
28800
                      ac_lo= ac_hi=
 
28801
                      break
 
28802
                    fi
 
28803
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
28804
fi
 
28805
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28806
  done
 
28807
else
 
28808
  echo "$as_me: failed program was:" >&5
 
28809
sed 's/^/| /' conftest.$ac_ext >&5
 
28810
 
 
28811
cat >conftest.$ac_ext <<_ACEOF
 
28812
/* confdefs.h.  */
 
28813
_ACEOF
 
28814
cat confdefs.h >>conftest.$ac_ext
 
28815
cat >>conftest.$ac_ext <<_ACEOF
 
28816
/* end confdefs.h.  */
 
28817
$ac_includes_default
 
28818
int
 
28819
main ()
 
28820
{
 
28821
static int test_array [1 - 2 * !(((long) (sizeof (char*))) < 0)];
 
28822
test_array [0] = 0
 
28823
 
 
28824
  ;
 
28825
  return 0;
 
28826
}
 
28827
_ACEOF
 
28828
rm -f conftest.$ac_objext
 
28829
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28830
  (eval $ac_compile) 2>conftest.er1
 
28831
  ac_status=$?
 
28832
  grep -v '^ *+' conftest.er1 >conftest.err
 
28833
  rm -f conftest.er1
 
28834
  cat conftest.err >&5
 
28835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28836
  (exit $ac_status); } &&
 
28837
         { ac_try='test -z "$ac_c_werror_flag"
 
28838
                         || test ! -s conftest.err'
 
28839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28840
  (eval $ac_try) 2>&5
 
28841
  ac_status=$?
 
28842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28843
  (exit $ac_status); }; } &&
 
28844
         { ac_try='test -s conftest.$ac_objext'
 
28845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28846
  (eval $ac_try) 2>&5
 
28847
  ac_status=$?
 
28848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28849
  (exit $ac_status); }; }; then
 
28850
  ac_hi=-1 ac_mid=-1
 
28851
  while :; do
 
28852
    cat >conftest.$ac_ext <<_ACEOF
 
28853
/* confdefs.h.  */
 
28854
_ACEOF
 
28855
cat confdefs.h >>conftest.$ac_ext
 
28856
cat >>conftest.$ac_ext <<_ACEOF
 
28857
/* end confdefs.h.  */
 
28858
$ac_includes_default
 
28859
int
 
28860
main ()
 
28861
{
 
28862
static int test_array [1 - 2 * !(((long) (sizeof (char*))) >= $ac_mid)];
 
28863
test_array [0] = 0
 
28864
 
 
28865
  ;
 
28866
  return 0;
 
28867
}
 
28868
_ACEOF
 
28869
rm -f conftest.$ac_objext
 
28870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28871
  (eval $ac_compile) 2>conftest.er1
 
28872
  ac_status=$?
 
28873
  grep -v '^ *+' conftest.er1 >conftest.err
 
28874
  rm -f conftest.er1
 
28875
  cat conftest.err >&5
 
28876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28877
  (exit $ac_status); } &&
 
28878
         { ac_try='test -z "$ac_c_werror_flag"
 
28879
                         || test ! -s conftest.err'
 
28880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28881
  (eval $ac_try) 2>&5
 
28882
  ac_status=$?
 
28883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28884
  (exit $ac_status); }; } &&
 
28885
         { ac_try='test -s conftest.$ac_objext'
 
28886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28887
  (eval $ac_try) 2>&5
 
28888
  ac_status=$?
 
28889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28890
  (exit $ac_status); }; }; then
 
28891
  ac_lo=$ac_mid; break
 
28892
else
 
28893
  echo "$as_me: failed program was:" >&5
 
28894
sed 's/^/| /' conftest.$ac_ext >&5
 
28895
 
 
28896
ac_hi=`expr '(' $ac_mid ')' - 1`
 
28897
                       if test $ac_mid -le $ac_hi; then
 
28898
                         ac_lo= ac_hi=
 
28899
                         break
 
28900
                       fi
 
28901
                       ac_mid=`expr 2 '*' $ac_mid`
 
28902
fi
 
28903
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28904
  done
 
28905
else
 
28906
  echo "$as_me: failed program was:" >&5
 
28907
sed 's/^/| /' conftest.$ac_ext >&5
 
28908
 
 
28909
ac_lo= ac_hi=
 
28910
fi
 
28911
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28912
fi
 
28913
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28914
# Binary search between lo and hi bounds.
 
28915
while test "x$ac_lo" != "x$ac_hi"; do
 
28916
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
28917
  cat >conftest.$ac_ext <<_ACEOF
 
28918
/* confdefs.h.  */
 
28919
_ACEOF
 
28920
cat confdefs.h >>conftest.$ac_ext
 
28921
cat >>conftest.$ac_ext <<_ACEOF
 
28922
/* end confdefs.h.  */
 
28923
$ac_includes_default
 
28924
int
 
28925
main ()
 
28926
{
 
28927
static int test_array [1 - 2 * !(((long) (sizeof (char*))) <= $ac_mid)];
 
28928
test_array [0] = 0
 
28929
 
 
28930
  ;
 
28931
  return 0;
 
28932
}
 
28933
_ACEOF
 
28934
rm -f conftest.$ac_objext
 
28935
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
28936
  (eval $ac_compile) 2>conftest.er1
 
28937
  ac_status=$?
 
28938
  grep -v '^ *+' conftest.er1 >conftest.err
 
28939
  rm -f conftest.er1
 
28940
  cat conftest.err >&5
 
28941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28942
  (exit $ac_status); } &&
 
28943
         { ac_try='test -z "$ac_c_werror_flag"
 
28944
                         || test ! -s conftest.err'
 
28945
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28946
  (eval $ac_try) 2>&5
 
28947
  ac_status=$?
 
28948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28949
  (exit $ac_status); }; } &&
 
28950
         { ac_try='test -s conftest.$ac_objext'
 
28951
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28952
  (eval $ac_try) 2>&5
 
28953
  ac_status=$?
 
28954
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28955
  (exit $ac_status); }; }; then
 
28956
  ac_hi=$ac_mid
 
28957
else
 
28958
  echo "$as_me: failed program was:" >&5
 
28959
sed 's/^/| /' conftest.$ac_ext >&5
 
28960
 
 
28961
ac_lo=`expr '(' $ac_mid ')' + 1`
 
28962
fi
 
28963
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
28964
done
 
28965
case $ac_lo in
 
28966
?*) ac_cv_sizeof_charp=$ac_lo;;
 
28967
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
 
28968
See \`config.log' for more details." >&5
 
28969
echo "$as_me: error: cannot compute sizeof (char*), 77
 
28970
See \`config.log' for more details." >&2;}
 
28971
   { (exit 1); exit 1; }; } ;;
 
28972
esac
 
28973
else
 
28974
  if test "$cross_compiling" = yes; then
 
28975
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
28976
See \`config.log' for more details." >&5
 
28977
echo "$as_me: error: cannot run test program while cross compiling
 
28978
See \`config.log' for more details." >&2;}
 
28979
   { (exit 1); exit 1; }; }
 
28980
else
 
28981
  cat >conftest.$ac_ext <<_ACEOF
 
28982
/* confdefs.h.  */
 
28983
_ACEOF
 
28984
cat confdefs.h >>conftest.$ac_ext
 
28985
cat >>conftest.$ac_ext <<_ACEOF
 
28986
/* end confdefs.h.  */
 
28987
$ac_includes_default
 
28988
long longval () { return (long) (sizeof (char*)); }
 
28989
unsigned long ulongval () { return (long) (sizeof (char*)); }
 
28990
#include <stdio.h>
 
28991
#include <stdlib.h>
 
28992
int
 
28993
main ()
 
28994
{
 
28995
 
 
28996
  FILE *f = fopen ("conftest.val", "w");
 
28997
  if (! f)
 
28998
    exit (1);
 
28999
  if (((long) (sizeof (char*))) < 0)
 
29000
    {
 
29001
      long i = longval ();
 
29002
      if (i != ((long) (sizeof (char*))))
 
29003
        exit (1);
 
29004
      fprintf (f, "%ld\n", i);
 
29005
    }
 
29006
  else
 
29007
    {
 
29008
      unsigned long i = ulongval ();
 
29009
      if (i != ((long) (sizeof (char*))))
 
29010
        exit (1);
 
29011
      fprintf (f, "%lu\n", i);
 
29012
    }
 
29013
  exit (ferror (f) || fclose (f) != 0);
 
29014
 
 
29015
  ;
 
29016
  return 0;
 
29017
}
 
29018
_ACEOF
 
29019
rm -f conftest$ac_exeext
 
29020
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29021
  (eval $ac_link) 2>&5
 
29022
  ac_status=$?
 
29023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29024
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
29025
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29026
  (eval $ac_try) 2>&5
 
29027
  ac_status=$?
 
29028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29029
  (exit $ac_status); }; }; then
 
29030
  ac_cv_sizeof_charp=`cat conftest.val`
 
29031
else
 
29032
  echo "$as_me: program exited with status $ac_status" >&5
 
29033
echo "$as_me: failed program was:" >&5
 
29034
sed 's/^/| /' conftest.$ac_ext >&5
 
29035
 
 
29036
( exit $ac_status )
 
29037
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char*), 77
 
29038
See \`config.log' for more details." >&5
 
29039
echo "$as_me: error: cannot compute sizeof (char*), 77
 
29040
See \`config.log' for more details." >&2;}
 
29041
   { (exit 1); exit 1; }; }
 
29042
fi
 
29043
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
29044
fi
 
29045
fi
 
29046
rm -f conftest.val
 
29047
else
 
29048
  ac_cv_sizeof_charp=0
 
29049
fi
 
29050
fi
 
29051
echo "$as_me:$LINENO: result: $ac_cv_sizeof_charp" >&5
 
29052
echo "${ECHO_T}$ac_cv_sizeof_charp" >&6
 
29053
cat >>confdefs.h <<_ACEOF
 
29054
#define SIZEOF_CHARP $ac_cv_sizeof_charp
 
29055
_ACEOF
 
29056
 
 
29057
 
 
29058
echo "$as_me:$LINENO: checking for short" >&5
 
29059
echo $ECHO_N "checking for short... $ECHO_C" >&6
 
29060
if test "${ac_cv_type_short+set}" = set; then
 
29061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29062
else
 
29063
  cat >conftest.$ac_ext <<_ACEOF
 
29064
/* confdefs.h.  */
 
29065
_ACEOF
 
29066
cat confdefs.h >>conftest.$ac_ext
 
29067
cat >>conftest.$ac_ext <<_ACEOF
 
29068
/* end confdefs.h.  */
 
29069
$ac_includes_default
 
29070
int
 
29071
main ()
 
29072
{
 
29073
if ((short *) 0)
 
29074
  return 0;
 
29075
if (sizeof (short))
 
29076
  return 0;
 
29077
  ;
 
29078
  return 0;
 
29079
}
 
29080
_ACEOF
 
29081
rm -f conftest.$ac_objext
 
29082
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29083
  (eval $ac_compile) 2>conftest.er1
 
29084
  ac_status=$?
 
29085
  grep -v '^ *+' conftest.er1 >conftest.err
 
29086
  rm -f conftest.er1
 
29087
  cat conftest.err >&5
 
29088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29089
  (exit $ac_status); } &&
 
29090
         { ac_try='test -z "$ac_c_werror_flag"
 
29091
                         || test ! -s conftest.err'
 
29092
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29093
  (eval $ac_try) 2>&5
 
29094
  ac_status=$?
 
29095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29096
  (exit $ac_status); }; } &&
 
29097
         { ac_try='test -s conftest.$ac_objext'
 
29098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29099
  (eval $ac_try) 2>&5
 
29100
  ac_status=$?
 
29101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29102
  (exit $ac_status); }; }; then
 
29103
  ac_cv_type_short=yes
 
29104
else
 
29105
  echo "$as_me: failed program was:" >&5
 
29106
sed 's/^/| /' conftest.$ac_ext >&5
 
29107
 
 
29108
ac_cv_type_short=no
 
29109
fi
 
29110
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29111
fi
 
29112
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
29113
echo "${ECHO_T}$ac_cv_type_short" >&6
 
29114
 
 
29115
echo "$as_me:$LINENO: checking size of short" >&5
 
29116
echo $ECHO_N "checking size of short... $ECHO_C" >&6
 
29117
if test "${ac_cv_sizeof_short+set}" = set; then
 
29118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29119
else
 
29120
  if test "$ac_cv_type_short" = yes; then
 
29121
  # The cast to unsigned long works around a bug in the HP C Compiler
 
29122
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
29123
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
29124
  # This bug is HP SR number 8606223364.
 
29125
  if test "$cross_compiling" = yes; then
 
29126
  # Depending upon the size, compute the lo and hi bounds.
 
29127
cat >conftest.$ac_ext <<_ACEOF
 
29128
/* confdefs.h.  */
 
29129
_ACEOF
 
29130
cat confdefs.h >>conftest.$ac_ext
 
29131
cat >>conftest.$ac_ext <<_ACEOF
 
29132
/* end confdefs.h.  */
 
29133
$ac_includes_default
 
29134
int
 
29135
main ()
 
29136
{
 
29137
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
 
29138
test_array [0] = 0
 
29139
 
 
29140
  ;
 
29141
  return 0;
 
29142
}
 
29143
_ACEOF
 
29144
rm -f conftest.$ac_objext
 
29145
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29146
  (eval $ac_compile) 2>conftest.er1
 
29147
  ac_status=$?
 
29148
  grep -v '^ *+' conftest.er1 >conftest.err
 
29149
  rm -f conftest.er1
 
29150
  cat conftest.err >&5
 
29151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29152
  (exit $ac_status); } &&
 
29153
         { ac_try='test -z "$ac_c_werror_flag"
 
29154
                         || test ! -s conftest.err'
 
29155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29156
  (eval $ac_try) 2>&5
 
29157
  ac_status=$?
 
29158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29159
  (exit $ac_status); }; } &&
 
29160
         { ac_try='test -s conftest.$ac_objext'
 
29161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29162
  (eval $ac_try) 2>&5
 
29163
  ac_status=$?
 
29164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29165
  (exit $ac_status); }; }; then
 
29166
  ac_lo=0 ac_mid=0
 
29167
  while :; do
 
29168
    cat >conftest.$ac_ext <<_ACEOF
 
29169
/* confdefs.h.  */
 
29170
_ACEOF
 
29171
cat confdefs.h >>conftest.$ac_ext
 
29172
cat >>conftest.$ac_ext <<_ACEOF
 
29173
/* end confdefs.h.  */
 
29174
$ac_includes_default
 
29175
int
 
29176
main ()
 
29177
{
 
29178
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
29179
test_array [0] = 0
 
29180
 
 
29181
  ;
 
29182
  return 0;
 
29183
}
 
29184
_ACEOF
 
29185
rm -f conftest.$ac_objext
 
29186
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29187
  (eval $ac_compile) 2>conftest.er1
 
29188
  ac_status=$?
 
29189
  grep -v '^ *+' conftest.er1 >conftest.err
 
29190
  rm -f conftest.er1
 
29191
  cat conftest.err >&5
 
29192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29193
  (exit $ac_status); } &&
 
29194
         { ac_try='test -z "$ac_c_werror_flag"
 
29195
                         || test ! -s conftest.err'
 
29196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29197
  (eval $ac_try) 2>&5
 
29198
  ac_status=$?
 
29199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29200
  (exit $ac_status); }; } &&
 
29201
         { ac_try='test -s conftest.$ac_objext'
 
29202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29203
  (eval $ac_try) 2>&5
 
29204
  ac_status=$?
 
29205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29206
  (exit $ac_status); }; }; then
 
29207
  ac_hi=$ac_mid; break
 
29208
else
 
29209
  echo "$as_me: failed program was:" >&5
 
29210
sed 's/^/| /' conftest.$ac_ext >&5
 
29211
 
 
29212
ac_lo=`expr $ac_mid + 1`
 
29213
                    if test $ac_lo -le $ac_mid; then
 
29214
                      ac_lo= ac_hi=
 
29215
                      break
 
29216
                    fi
 
29217
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
29218
fi
 
29219
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29220
  done
 
29221
else
 
29222
  echo "$as_me: failed program was:" >&5
 
29223
sed 's/^/| /' conftest.$ac_ext >&5
 
29224
 
 
29225
cat >conftest.$ac_ext <<_ACEOF
 
29226
/* confdefs.h.  */
 
29227
_ACEOF
 
29228
cat confdefs.h >>conftest.$ac_ext
 
29229
cat >>conftest.$ac_ext <<_ACEOF
 
29230
/* end confdefs.h.  */
 
29231
$ac_includes_default
 
29232
int
 
29233
main ()
 
29234
{
 
29235
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
 
29236
test_array [0] = 0
 
29237
 
 
29238
  ;
 
29239
  return 0;
 
29240
}
 
29241
_ACEOF
 
29242
rm -f conftest.$ac_objext
 
29243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29244
  (eval $ac_compile) 2>conftest.er1
 
29245
  ac_status=$?
 
29246
  grep -v '^ *+' conftest.er1 >conftest.err
 
29247
  rm -f conftest.er1
 
29248
  cat conftest.err >&5
 
29249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29250
  (exit $ac_status); } &&
 
29251
         { ac_try='test -z "$ac_c_werror_flag"
 
29252
                         || test ! -s conftest.err'
 
29253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29254
  (eval $ac_try) 2>&5
 
29255
  ac_status=$?
 
29256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29257
  (exit $ac_status); }; } &&
 
29258
         { ac_try='test -s conftest.$ac_objext'
 
29259
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29260
  (eval $ac_try) 2>&5
 
29261
  ac_status=$?
 
29262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29263
  (exit $ac_status); }; }; then
 
29264
  ac_hi=-1 ac_mid=-1
 
29265
  while :; do
 
29266
    cat >conftest.$ac_ext <<_ACEOF
 
29267
/* confdefs.h.  */
 
29268
_ACEOF
 
29269
cat confdefs.h >>conftest.$ac_ext
 
29270
cat >>conftest.$ac_ext <<_ACEOF
 
29271
/* end confdefs.h.  */
 
29272
$ac_includes_default
 
29273
int
 
29274
main ()
 
29275
{
 
29276
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
 
29277
test_array [0] = 0
 
29278
 
 
29279
  ;
 
29280
  return 0;
 
29281
}
 
29282
_ACEOF
 
29283
rm -f conftest.$ac_objext
 
29284
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29285
  (eval $ac_compile) 2>conftest.er1
 
29286
  ac_status=$?
 
29287
  grep -v '^ *+' conftest.er1 >conftest.err
 
29288
  rm -f conftest.er1
 
29289
  cat conftest.err >&5
 
29290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29291
  (exit $ac_status); } &&
 
29292
         { ac_try='test -z "$ac_c_werror_flag"
 
29293
                         || test ! -s conftest.err'
 
29294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29295
  (eval $ac_try) 2>&5
 
29296
  ac_status=$?
 
29297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29298
  (exit $ac_status); }; } &&
 
29299
         { ac_try='test -s conftest.$ac_objext'
 
29300
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29301
  (eval $ac_try) 2>&5
 
29302
  ac_status=$?
 
29303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29304
  (exit $ac_status); }; }; then
 
29305
  ac_lo=$ac_mid; break
 
29306
else
 
29307
  echo "$as_me: failed program was:" >&5
 
29308
sed 's/^/| /' conftest.$ac_ext >&5
 
29309
 
 
29310
ac_hi=`expr '(' $ac_mid ')' - 1`
 
29311
                       if test $ac_mid -le $ac_hi; then
 
29312
                         ac_lo= ac_hi=
 
29313
                         break
 
29314
                       fi
 
29315
                       ac_mid=`expr 2 '*' $ac_mid`
 
29316
fi
 
29317
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29318
  done
 
29319
else
 
29320
  echo "$as_me: failed program was:" >&5
 
29321
sed 's/^/| /' conftest.$ac_ext >&5
 
29322
 
 
29323
ac_lo= ac_hi=
 
29324
fi
 
29325
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29326
fi
 
29327
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29328
# Binary search between lo and hi bounds.
 
29329
while test "x$ac_lo" != "x$ac_hi"; do
 
29330
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
29331
  cat >conftest.$ac_ext <<_ACEOF
 
29332
/* confdefs.h.  */
 
29333
_ACEOF
 
29334
cat confdefs.h >>conftest.$ac_ext
 
29335
cat >>conftest.$ac_ext <<_ACEOF
 
29336
/* end confdefs.h.  */
 
29337
$ac_includes_default
 
29338
int
 
29339
main ()
 
29340
{
 
29341
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
 
29342
test_array [0] = 0
 
29343
 
 
29344
  ;
 
29345
  return 0;
 
29346
}
 
29347
_ACEOF
 
29348
rm -f conftest.$ac_objext
 
29349
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29350
  (eval $ac_compile) 2>conftest.er1
 
29351
  ac_status=$?
 
29352
  grep -v '^ *+' conftest.er1 >conftest.err
 
29353
  rm -f conftest.er1
 
29354
  cat conftest.err >&5
 
29355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29356
  (exit $ac_status); } &&
 
29357
         { ac_try='test -z "$ac_c_werror_flag"
 
29358
                         || test ! -s conftest.err'
 
29359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29360
  (eval $ac_try) 2>&5
 
29361
  ac_status=$?
 
29362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29363
  (exit $ac_status); }; } &&
 
29364
         { ac_try='test -s conftest.$ac_objext'
 
29365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29366
  (eval $ac_try) 2>&5
 
29367
  ac_status=$?
 
29368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29369
  (exit $ac_status); }; }; then
 
29370
  ac_hi=$ac_mid
 
29371
else
 
29372
  echo "$as_me: failed program was:" >&5
 
29373
sed 's/^/| /' conftest.$ac_ext >&5
 
29374
 
 
29375
ac_lo=`expr '(' $ac_mid ')' + 1`
 
29376
fi
 
29377
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29378
done
 
29379
case $ac_lo in
 
29380
?*) ac_cv_sizeof_short=$ac_lo;;
 
29381
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
29382
See \`config.log' for more details." >&5
 
29383
echo "$as_me: error: cannot compute sizeof (short), 77
 
29384
See \`config.log' for more details." >&2;}
 
29385
   { (exit 1); exit 1; }; } ;;
 
29386
esac
 
29387
else
 
29388
  if test "$cross_compiling" = yes; then
 
29389
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
29390
See \`config.log' for more details." >&5
 
29391
echo "$as_me: error: cannot run test program while cross compiling
 
29392
See \`config.log' for more details." >&2;}
 
29393
   { (exit 1); exit 1; }; }
 
29394
else
 
29395
  cat >conftest.$ac_ext <<_ACEOF
 
29396
/* confdefs.h.  */
 
29397
_ACEOF
 
29398
cat confdefs.h >>conftest.$ac_ext
 
29399
cat >>conftest.$ac_ext <<_ACEOF
 
29400
/* end confdefs.h.  */
 
29401
$ac_includes_default
 
29402
long longval () { return (long) (sizeof (short)); }
 
29403
unsigned long ulongval () { return (long) (sizeof (short)); }
 
29404
#include <stdio.h>
 
29405
#include <stdlib.h>
 
29406
int
 
29407
main ()
 
29408
{
 
29409
 
 
29410
  FILE *f = fopen ("conftest.val", "w");
 
29411
  if (! f)
 
29412
    exit (1);
 
29413
  if (((long) (sizeof (short))) < 0)
 
29414
    {
 
29415
      long i = longval ();
 
29416
      if (i != ((long) (sizeof (short))))
 
29417
        exit (1);
 
29418
      fprintf (f, "%ld\n", i);
 
29419
    }
 
29420
  else
 
29421
    {
 
29422
      unsigned long i = ulongval ();
 
29423
      if (i != ((long) (sizeof (short))))
 
29424
        exit (1);
 
29425
      fprintf (f, "%lu\n", i);
 
29426
    }
 
29427
  exit (ferror (f) || fclose (f) != 0);
 
29428
 
 
29429
  ;
 
29430
  return 0;
 
29431
}
 
29432
_ACEOF
 
29433
rm -f conftest$ac_exeext
 
29434
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29435
  (eval $ac_link) 2>&5
 
29436
  ac_status=$?
 
29437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29438
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
29439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29440
  (eval $ac_try) 2>&5
 
29441
  ac_status=$?
 
29442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29443
  (exit $ac_status); }; }; then
 
29444
  ac_cv_sizeof_short=`cat conftest.val`
 
29445
else
 
29446
  echo "$as_me: program exited with status $ac_status" >&5
 
29447
echo "$as_me: failed program was:" >&5
 
29448
sed 's/^/| /' conftest.$ac_ext >&5
 
29449
 
 
29450
( exit $ac_status )
 
29451
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
 
29452
See \`config.log' for more details." >&5
 
29453
echo "$as_me: error: cannot compute sizeof (short), 77
 
29454
See \`config.log' for more details." >&2;}
 
29455
   { (exit 1); exit 1; }; }
 
29456
fi
 
29457
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
29458
fi
 
29459
fi
 
29460
rm -f conftest.val
 
29461
else
 
29462
  ac_cv_sizeof_short=0
 
29463
fi
 
29464
fi
 
29465
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
29466
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
 
29467
cat >>confdefs.h <<_ACEOF
 
29468
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
29469
_ACEOF
 
29470
 
 
29471
 
 
29472
echo "$as_me:$LINENO: checking for int" >&5
 
29473
echo $ECHO_N "checking for int... $ECHO_C" >&6
 
29474
if test "${ac_cv_type_int+set}" = set; then
 
29475
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29476
else
 
29477
  cat >conftest.$ac_ext <<_ACEOF
 
29478
/* confdefs.h.  */
 
29479
_ACEOF
 
29480
cat confdefs.h >>conftest.$ac_ext
 
29481
cat >>conftest.$ac_ext <<_ACEOF
 
29482
/* end confdefs.h.  */
 
29483
$ac_includes_default
 
29484
int
 
29485
main ()
 
29486
{
 
29487
if ((int *) 0)
 
29488
  return 0;
 
29489
if (sizeof (int))
 
29490
  return 0;
 
29491
  ;
 
29492
  return 0;
 
29493
}
 
29494
_ACEOF
 
29495
rm -f conftest.$ac_objext
 
29496
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29497
  (eval $ac_compile) 2>conftest.er1
 
29498
  ac_status=$?
 
29499
  grep -v '^ *+' conftest.er1 >conftest.err
 
29500
  rm -f conftest.er1
 
29501
  cat conftest.err >&5
 
29502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29503
  (exit $ac_status); } &&
 
29504
         { ac_try='test -z "$ac_c_werror_flag"
 
29505
                         || test ! -s conftest.err'
 
29506
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29507
  (eval $ac_try) 2>&5
 
29508
  ac_status=$?
 
29509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29510
  (exit $ac_status); }; } &&
 
29511
         { ac_try='test -s conftest.$ac_objext'
 
29512
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29513
  (eval $ac_try) 2>&5
 
29514
  ac_status=$?
 
29515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29516
  (exit $ac_status); }; }; then
 
29517
  ac_cv_type_int=yes
 
29518
else
 
29519
  echo "$as_me: failed program was:" >&5
 
29520
sed 's/^/| /' conftest.$ac_ext >&5
 
29521
 
 
29522
ac_cv_type_int=no
 
29523
fi
 
29524
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29525
fi
 
29526
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
29527
echo "${ECHO_T}$ac_cv_type_int" >&6
 
29528
 
 
29529
echo "$as_me:$LINENO: checking size of int" >&5
 
29530
echo $ECHO_N "checking size of int... $ECHO_C" >&6
 
29531
if test "${ac_cv_sizeof_int+set}" = set; then
 
29532
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29533
else
 
29534
  if test "$ac_cv_type_int" = yes; then
 
29535
  # The cast to unsigned long works around a bug in the HP C Compiler
 
29536
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
29537
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
29538
  # This bug is HP SR number 8606223364.
 
29539
  if test "$cross_compiling" = yes; then
 
29540
  # Depending upon the size, compute the lo and hi bounds.
 
29541
cat >conftest.$ac_ext <<_ACEOF
 
29542
/* confdefs.h.  */
 
29543
_ACEOF
 
29544
cat confdefs.h >>conftest.$ac_ext
 
29545
cat >>conftest.$ac_ext <<_ACEOF
 
29546
/* end confdefs.h.  */
 
29547
$ac_includes_default
 
29548
int
 
29549
main ()
 
29550
{
 
29551
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
 
29552
test_array [0] = 0
 
29553
 
 
29554
  ;
 
29555
  return 0;
 
29556
}
 
29557
_ACEOF
 
29558
rm -f conftest.$ac_objext
 
29559
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29560
  (eval $ac_compile) 2>conftest.er1
 
29561
  ac_status=$?
 
29562
  grep -v '^ *+' conftest.er1 >conftest.err
 
29563
  rm -f conftest.er1
 
29564
  cat conftest.err >&5
 
29565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29566
  (exit $ac_status); } &&
 
29567
         { ac_try='test -z "$ac_c_werror_flag"
 
29568
                         || test ! -s conftest.err'
 
29569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29570
  (eval $ac_try) 2>&5
 
29571
  ac_status=$?
 
29572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29573
  (exit $ac_status); }; } &&
 
29574
         { ac_try='test -s conftest.$ac_objext'
 
29575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29576
  (eval $ac_try) 2>&5
 
29577
  ac_status=$?
 
29578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29579
  (exit $ac_status); }; }; then
 
29580
  ac_lo=0 ac_mid=0
 
29581
  while :; do
 
29582
    cat >conftest.$ac_ext <<_ACEOF
 
29583
/* confdefs.h.  */
 
29584
_ACEOF
 
29585
cat confdefs.h >>conftest.$ac_ext
 
29586
cat >>conftest.$ac_ext <<_ACEOF
 
29587
/* end confdefs.h.  */
 
29588
$ac_includes_default
 
29589
int
 
29590
main ()
 
29591
{
 
29592
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
29593
test_array [0] = 0
 
29594
 
 
29595
  ;
 
29596
  return 0;
 
29597
}
 
29598
_ACEOF
 
29599
rm -f conftest.$ac_objext
 
29600
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29601
  (eval $ac_compile) 2>conftest.er1
 
29602
  ac_status=$?
 
29603
  grep -v '^ *+' conftest.er1 >conftest.err
 
29604
  rm -f conftest.er1
 
29605
  cat conftest.err >&5
 
29606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29607
  (exit $ac_status); } &&
 
29608
         { ac_try='test -z "$ac_c_werror_flag"
 
29609
                         || test ! -s conftest.err'
 
29610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29611
  (eval $ac_try) 2>&5
 
29612
  ac_status=$?
 
29613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29614
  (exit $ac_status); }; } &&
 
29615
         { ac_try='test -s conftest.$ac_objext'
 
29616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29617
  (eval $ac_try) 2>&5
 
29618
  ac_status=$?
 
29619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29620
  (exit $ac_status); }; }; then
 
29621
  ac_hi=$ac_mid; break
 
29622
else
 
29623
  echo "$as_me: failed program was:" >&5
 
29624
sed 's/^/| /' conftest.$ac_ext >&5
 
29625
 
 
29626
ac_lo=`expr $ac_mid + 1`
 
29627
                    if test $ac_lo -le $ac_mid; then
 
29628
                      ac_lo= ac_hi=
 
29629
                      break
 
29630
                    fi
 
29631
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
29632
fi
 
29633
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29634
  done
 
29635
else
 
29636
  echo "$as_me: failed program was:" >&5
 
29637
sed 's/^/| /' conftest.$ac_ext >&5
 
29638
 
 
29639
cat >conftest.$ac_ext <<_ACEOF
 
29640
/* confdefs.h.  */
 
29641
_ACEOF
 
29642
cat confdefs.h >>conftest.$ac_ext
 
29643
cat >>conftest.$ac_ext <<_ACEOF
 
29644
/* end confdefs.h.  */
 
29645
$ac_includes_default
 
29646
int
 
29647
main ()
 
29648
{
 
29649
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
 
29650
test_array [0] = 0
 
29651
 
 
29652
  ;
 
29653
  return 0;
 
29654
}
 
29655
_ACEOF
 
29656
rm -f conftest.$ac_objext
 
29657
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29658
  (eval $ac_compile) 2>conftest.er1
 
29659
  ac_status=$?
 
29660
  grep -v '^ *+' conftest.er1 >conftest.err
 
29661
  rm -f conftest.er1
 
29662
  cat conftest.err >&5
 
29663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29664
  (exit $ac_status); } &&
 
29665
         { ac_try='test -z "$ac_c_werror_flag"
 
29666
                         || test ! -s conftest.err'
 
29667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29668
  (eval $ac_try) 2>&5
 
29669
  ac_status=$?
 
29670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29671
  (exit $ac_status); }; } &&
 
29672
         { ac_try='test -s conftest.$ac_objext'
 
29673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29674
  (eval $ac_try) 2>&5
 
29675
  ac_status=$?
 
29676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29677
  (exit $ac_status); }; }; then
 
29678
  ac_hi=-1 ac_mid=-1
 
29679
  while :; do
 
29680
    cat >conftest.$ac_ext <<_ACEOF
 
29681
/* confdefs.h.  */
 
29682
_ACEOF
 
29683
cat confdefs.h >>conftest.$ac_ext
 
29684
cat >>conftest.$ac_ext <<_ACEOF
 
29685
/* end confdefs.h.  */
 
29686
$ac_includes_default
 
29687
int
 
29688
main ()
 
29689
{
 
29690
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
 
29691
test_array [0] = 0
 
29692
 
 
29693
  ;
 
29694
  return 0;
 
29695
}
 
29696
_ACEOF
 
29697
rm -f conftest.$ac_objext
 
29698
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29699
  (eval $ac_compile) 2>conftest.er1
 
29700
  ac_status=$?
 
29701
  grep -v '^ *+' conftest.er1 >conftest.err
 
29702
  rm -f conftest.er1
 
29703
  cat conftest.err >&5
 
29704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29705
  (exit $ac_status); } &&
 
29706
         { ac_try='test -z "$ac_c_werror_flag"
 
29707
                         || test ! -s conftest.err'
 
29708
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29709
  (eval $ac_try) 2>&5
 
29710
  ac_status=$?
 
29711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29712
  (exit $ac_status); }; } &&
 
29713
         { ac_try='test -s conftest.$ac_objext'
 
29714
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29715
  (eval $ac_try) 2>&5
 
29716
  ac_status=$?
 
29717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29718
  (exit $ac_status); }; }; then
 
29719
  ac_lo=$ac_mid; break
 
29720
else
 
29721
  echo "$as_me: failed program was:" >&5
 
29722
sed 's/^/| /' conftest.$ac_ext >&5
 
29723
 
 
29724
ac_hi=`expr '(' $ac_mid ')' - 1`
 
29725
                       if test $ac_mid -le $ac_hi; then
 
29726
                         ac_lo= ac_hi=
 
29727
                         break
 
29728
                       fi
 
29729
                       ac_mid=`expr 2 '*' $ac_mid`
 
29730
fi
 
29731
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29732
  done
 
29733
else
 
29734
  echo "$as_me: failed program was:" >&5
 
29735
sed 's/^/| /' conftest.$ac_ext >&5
 
29736
 
 
29737
ac_lo= ac_hi=
 
29738
fi
 
29739
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29740
fi
 
29741
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29742
# Binary search between lo and hi bounds.
 
29743
while test "x$ac_lo" != "x$ac_hi"; do
 
29744
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
29745
  cat >conftest.$ac_ext <<_ACEOF
 
29746
/* confdefs.h.  */
 
29747
_ACEOF
 
29748
cat confdefs.h >>conftest.$ac_ext
 
29749
cat >>conftest.$ac_ext <<_ACEOF
 
29750
/* end confdefs.h.  */
 
29751
$ac_includes_default
 
29752
int
 
29753
main ()
 
29754
{
 
29755
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
 
29756
test_array [0] = 0
 
29757
 
 
29758
  ;
 
29759
  return 0;
 
29760
}
 
29761
_ACEOF
 
29762
rm -f conftest.$ac_objext
 
29763
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29764
  (eval $ac_compile) 2>conftest.er1
 
29765
  ac_status=$?
 
29766
  grep -v '^ *+' conftest.er1 >conftest.err
 
29767
  rm -f conftest.er1
 
29768
  cat conftest.err >&5
 
29769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29770
  (exit $ac_status); } &&
 
29771
         { ac_try='test -z "$ac_c_werror_flag"
 
29772
                         || test ! -s conftest.err'
 
29773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29774
  (eval $ac_try) 2>&5
 
29775
  ac_status=$?
 
29776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29777
  (exit $ac_status); }; } &&
 
29778
         { ac_try='test -s conftest.$ac_objext'
 
29779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29780
  (eval $ac_try) 2>&5
 
29781
  ac_status=$?
 
29782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29783
  (exit $ac_status); }; }; then
 
29784
  ac_hi=$ac_mid
 
29785
else
 
29786
  echo "$as_me: failed program was:" >&5
 
29787
sed 's/^/| /' conftest.$ac_ext >&5
 
29788
 
 
29789
ac_lo=`expr '(' $ac_mid ')' + 1`
 
29790
fi
 
29791
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29792
done
 
29793
case $ac_lo in
 
29794
?*) ac_cv_sizeof_int=$ac_lo;;
 
29795
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
29796
See \`config.log' for more details." >&5
 
29797
echo "$as_me: error: cannot compute sizeof (int), 77
 
29798
See \`config.log' for more details." >&2;}
 
29799
   { (exit 1); exit 1; }; } ;;
 
29800
esac
 
29801
else
 
29802
  if test "$cross_compiling" = yes; then
 
29803
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
29804
See \`config.log' for more details." >&5
 
29805
echo "$as_me: error: cannot run test program while cross compiling
 
29806
See \`config.log' for more details." >&2;}
 
29807
   { (exit 1); exit 1; }; }
 
29808
else
 
29809
  cat >conftest.$ac_ext <<_ACEOF
 
29810
/* confdefs.h.  */
 
29811
_ACEOF
 
29812
cat confdefs.h >>conftest.$ac_ext
 
29813
cat >>conftest.$ac_ext <<_ACEOF
 
29814
/* end confdefs.h.  */
 
29815
$ac_includes_default
 
29816
long longval () { return (long) (sizeof (int)); }
 
29817
unsigned long ulongval () { return (long) (sizeof (int)); }
 
29818
#include <stdio.h>
 
29819
#include <stdlib.h>
 
29820
int
 
29821
main ()
 
29822
{
 
29823
 
 
29824
  FILE *f = fopen ("conftest.val", "w");
 
29825
  if (! f)
 
29826
    exit (1);
 
29827
  if (((long) (sizeof (int))) < 0)
 
29828
    {
 
29829
      long i = longval ();
 
29830
      if (i != ((long) (sizeof (int))))
 
29831
        exit (1);
 
29832
      fprintf (f, "%ld\n", i);
 
29833
    }
 
29834
  else
 
29835
    {
 
29836
      unsigned long i = ulongval ();
 
29837
      if (i != ((long) (sizeof (int))))
 
29838
        exit (1);
 
29839
      fprintf (f, "%lu\n", i);
 
29840
    }
 
29841
  exit (ferror (f) || fclose (f) != 0);
 
29842
 
 
29843
  ;
 
29844
  return 0;
 
29845
}
 
29846
_ACEOF
 
29847
rm -f conftest$ac_exeext
 
29848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
29849
  (eval $ac_link) 2>&5
 
29850
  ac_status=$?
 
29851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29852
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
29853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29854
  (eval $ac_try) 2>&5
 
29855
  ac_status=$?
 
29856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29857
  (exit $ac_status); }; }; then
 
29858
  ac_cv_sizeof_int=`cat conftest.val`
 
29859
else
 
29860
  echo "$as_me: program exited with status $ac_status" >&5
 
29861
echo "$as_me: failed program was:" >&5
 
29862
sed 's/^/| /' conftest.$ac_ext >&5
 
29863
 
 
29864
( exit $ac_status )
 
29865
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
 
29866
See \`config.log' for more details." >&5
 
29867
echo "$as_me: error: cannot compute sizeof (int), 77
 
29868
See \`config.log' for more details." >&2;}
 
29869
   { (exit 1); exit 1; }; }
 
29870
fi
 
29871
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
29872
fi
 
29873
fi
 
29874
rm -f conftest.val
 
29875
else
 
29876
  ac_cv_sizeof_int=0
 
29877
fi
 
29878
fi
 
29879
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
29880
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
 
29881
cat >>confdefs.h <<_ACEOF
 
29882
#define SIZEOF_INT $ac_cv_sizeof_int
 
29883
_ACEOF
 
29884
 
 
29885
 
 
29886
if test "$ac_cv_sizeof_int" -eq 0
 
29887
then
 
29888
  { { echo "$as_me:$LINENO: error: \"No size for int type.\"" >&5
 
29889
echo "$as_me: error: \"No size for int type.\"" >&2;}
 
29890
   { (exit 1); exit 1; }; }
 
29891
fi
 
29892
echo "$as_me:$LINENO: checking for long" >&5
 
29893
echo $ECHO_N "checking for long... $ECHO_C" >&6
 
29894
if test "${ac_cv_type_long+set}" = set; then
 
29895
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29896
else
 
29897
  cat >conftest.$ac_ext <<_ACEOF
 
29898
/* confdefs.h.  */
 
29899
_ACEOF
 
29900
cat confdefs.h >>conftest.$ac_ext
 
29901
cat >>conftest.$ac_ext <<_ACEOF
 
29902
/* end confdefs.h.  */
 
29903
$ac_includes_default
 
29904
int
 
29905
main ()
 
29906
{
 
29907
if ((long *) 0)
 
29908
  return 0;
 
29909
if (sizeof (long))
 
29910
  return 0;
 
29911
  ;
 
29912
  return 0;
 
29913
}
 
29914
_ACEOF
 
29915
rm -f conftest.$ac_objext
 
29916
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29917
  (eval $ac_compile) 2>conftest.er1
 
29918
  ac_status=$?
 
29919
  grep -v '^ *+' conftest.er1 >conftest.err
 
29920
  rm -f conftest.er1
 
29921
  cat conftest.err >&5
 
29922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29923
  (exit $ac_status); } &&
 
29924
         { ac_try='test -z "$ac_c_werror_flag"
 
29925
                         || test ! -s conftest.err'
 
29926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29927
  (eval $ac_try) 2>&5
 
29928
  ac_status=$?
 
29929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29930
  (exit $ac_status); }; } &&
 
29931
         { ac_try='test -s conftest.$ac_objext'
 
29932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29933
  (eval $ac_try) 2>&5
 
29934
  ac_status=$?
 
29935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29936
  (exit $ac_status); }; }; then
 
29937
  ac_cv_type_long=yes
 
29938
else
 
29939
  echo "$as_me: failed program was:" >&5
 
29940
sed 's/^/| /' conftest.$ac_ext >&5
 
29941
 
 
29942
ac_cv_type_long=no
 
29943
fi
 
29944
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
29945
fi
 
29946
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
29947
echo "${ECHO_T}$ac_cv_type_long" >&6
 
29948
 
 
29949
echo "$as_me:$LINENO: checking size of long" >&5
 
29950
echo $ECHO_N "checking size of long... $ECHO_C" >&6
 
29951
if test "${ac_cv_sizeof_long+set}" = set; then
 
29952
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
29953
else
 
29954
  if test "$ac_cv_type_long" = yes; then
 
29955
  # The cast to unsigned long works around a bug in the HP C Compiler
 
29956
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
29957
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
29958
  # This bug is HP SR number 8606223364.
 
29959
  if test "$cross_compiling" = yes; then
 
29960
  # Depending upon the size, compute the lo and hi bounds.
 
29961
cat >conftest.$ac_ext <<_ACEOF
 
29962
/* confdefs.h.  */
 
29963
_ACEOF
 
29964
cat confdefs.h >>conftest.$ac_ext
 
29965
cat >>conftest.$ac_ext <<_ACEOF
 
29966
/* end confdefs.h.  */
 
29967
$ac_includes_default
 
29968
int
 
29969
main ()
 
29970
{
 
29971
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
 
29972
test_array [0] = 0
 
29973
 
 
29974
  ;
 
29975
  return 0;
 
29976
}
 
29977
_ACEOF
 
29978
rm -f conftest.$ac_objext
 
29979
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
29980
  (eval $ac_compile) 2>conftest.er1
 
29981
  ac_status=$?
 
29982
  grep -v '^ *+' conftest.er1 >conftest.err
 
29983
  rm -f conftest.er1
 
29984
  cat conftest.err >&5
 
29985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29986
  (exit $ac_status); } &&
 
29987
         { ac_try='test -z "$ac_c_werror_flag"
 
29988
                         || test ! -s conftest.err'
 
29989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29990
  (eval $ac_try) 2>&5
 
29991
  ac_status=$?
 
29992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29993
  (exit $ac_status); }; } &&
 
29994
         { ac_try='test -s conftest.$ac_objext'
 
29995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
29996
  (eval $ac_try) 2>&5
 
29997
  ac_status=$?
 
29998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
29999
  (exit $ac_status); }; }; then
 
30000
  ac_lo=0 ac_mid=0
 
30001
  while :; do
 
30002
    cat >conftest.$ac_ext <<_ACEOF
 
30003
/* confdefs.h.  */
 
30004
_ACEOF
 
30005
cat confdefs.h >>conftest.$ac_ext
 
30006
cat >>conftest.$ac_ext <<_ACEOF
 
30007
/* end confdefs.h.  */
 
30008
$ac_includes_default
 
30009
int
 
30010
main ()
 
30011
{
 
30012
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
30013
test_array [0] = 0
 
30014
 
 
30015
  ;
 
30016
  return 0;
 
30017
}
 
30018
_ACEOF
 
30019
rm -f conftest.$ac_objext
 
30020
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30021
  (eval $ac_compile) 2>conftest.er1
 
30022
  ac_status=$?
 
30023
  grep -v '^ *+' conftest.er1 >conftest.err
 
30024
  rm -f conftest.er1
 
30025
  cat conftest.err >&5
 
30026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30027
  (exit $ac_status); } &&
 
30028
         { ac_try='test -z "$ac_c_werror_flag"
 
30029
                         || test ! -s conftest.err'
 
30030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30031
  (eval $ac_try) 2>&5
 
30032
  ac_status=$?
 
30033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30034
  (exit $ac_status); }; } &&
 
30035
         { ac_try='test -s conftest.$ac_objext'
 
30036
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30037
  (eval $ac_try) 2>&5
 
30038
  ac_status=$?
 
30039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30040
  (exit $ac_status); }; }; then
 
30041
  ac_hi=$ac_mid; break
 
30042
else
 
30043
  echo "$as_me: failed program was:" >&5
 
30044
sed 's/^/| /' conftest.$ac_ext >&5
 
30045
 
 
30046
ac_lo=`expr $ac_mid + 1`
 
30047
                    if test $ac_lo -le $ac_mid; then
 
30048
                      ac_lo= ac_hi=
 
30049
                      break
 
30050
                    fi
 
30051
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
30052
fi
 
30053
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30054
  done
 
30055
else
 
30056
  echo "$as_me: failed program was:" >&5
 
30057
sed 's/^/| /' conftest.$ac_ext >&5
 
30058
 
 
30059
cat >conftest.$ac_ext <<_ACEOF
 
30060
/* confdefs.h.  */
 
30061
_ACEOF
 
30062
cat confdefs.h >>conftest.$ac_ext
 
30063
cat >>conftest.$ac_ext <<_ACEOF
 
30064
/* end confdefs.h.  */
 
30065
$ac_includes_default
 
30066
int
 
30067
main ()
 
30068
{
 
30069
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
 
30070
test_array [0] = 0
 
30071
 
 
30072
  ;
 
30073
  return 0;
 
30074
}
 
30075
_ACEOF
 
30076
rm -f conftest.$ac_objext
 
30077
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30078
  (eval $ac_compile) 2>conftest.er1
 
30079
  ac_status=$?
 
30080
  grep -v '^ *+' conftest.er1 >conftest.err
 
30081
  rm -f conftest.er1
 
30082
  cat conftest.err >&5
 
30083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30084
  (exit $ac_status); } &&
 
30085
         { ac_try='test -z "$ac_c_werror_flag"
 
30086
                         || test ! -s conftest.err'
 
30087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30088
  (eval $ac_try) 2>&5
 
30089
  ac_status=$?
 
30090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30091
  (exit $ac_status); }; } &&
 
30092
         { ac_try='test -s conftest.$ac_objext'
 
30093
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30094
  (eval $ac_try) 2>&5
 
30095
  ac_status=$?
 
30096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30097
  (exit $ac_status); }; }; then
 
30098
  ac_hi=-1 ac_mid=-1
 
30099
  while :; do
 
30100
    cat >conftest.$ac_ext <<_ACEOF
 
30101
/* confdefs.h.  */
 
30102
_ACEOF
 
30103
cat confdefs.h >>conftest.$ac_ext
 
30104
cat >>conftest.$ac_ext <<_ACEOF
 
30105
/* end confdefs.h.  */
 
30106
$ac_includes_default
 
30107
int
 
30108
main ()
 
30109
{
 
30110
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
 
30111
test_array [0] = 0
 
30112
 
 
30113
  ;
 
30114
  return 0;
 
30115
}
 
30116
_ACEOF
 
30117
rm -f conftest.$ac_objext
 
30118
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30119
  (eval $ac_compile) 2>conftest.er1
 
30120
  ac_status=$?
 
30121
  grep -v '^ *+' conftest.er1 >conftest.err
 
30122
  rm -f conftest.er1
 
30123
  cat conftest.err >&5
 
30124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30125
  (exit $ac_status); } &&
 
30126
         { ac_try='test -z "$ac_c_werror_flag"
 
30127
                         || test ! -s conftest.err'
 
30128
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30129
  (eval $ac_try) 2>&5
 
30130
  ac_status=$?
 
30131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30132
  (exit $ac_status); }; } &&
 
30133
         { ac_try='test -s conftest.$ac_objext'
 
30134
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30135
  (eval $ac_try) 2>&5
 
30136
  ac_status=$?
 
30137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30138
  (exit $ac_status); }; }; then
 
30139
  ac_lo=$ac_mid; break
 
30140
else
 
30141
  echo "$as_me: failed program was:" >&5
 
30142
sed 's/^/| /' conftest.$ac_ext >&5
 
30143
 
 
30144
ac_hi=`expr '(' $ac_mid ')' - 1`
 
30145
                       if test $ac_mid -le $ac_hi; then
 
30146
                         ac_lo= ac_hi=
 
30147
                         break
 
30148
                       fi
 
30149
                       ac_mid=`expr 2 '*' $ac_mid`
 
30150
fi
 
30151
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30152
  done
 
30153
else
 
30154
  echo "$as_me: failed program was:" >&5
 
30155
sed 's/^/| /' conftest.$ac_ext >&5
 
30156
 
 
30157
ac_lo= ac_hi=
 
30158
fi
 
30159
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30160
fi
 
30161
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30162
# Binary search between lo and hi bounds.
 
30163
while test "x$ac_lo" != "x$ac_hi"; do
 
30164
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
30165
  cat >conftest.$ac_ext <<_ACEOF
 
30166
/* confdefs.h.  */
 
30167
_ACEOF
 
30168
cat confdefs.h >>conftest.$ac_ext
 
30169
cat >>conftest.$ac_ext <<_ACEOF
 
30170
/* end confdefs.h.  */
 
30171
$ac_includes_default
 
30172
int
 
30173
main ()
 
30174
{
 
30175
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
 
30176
test_array [0] = 0
 
30177
 
 
30178
  ;
 
30179
  return 0;
 
30180
}
 
30181
_ACEOF
 
30182
rm -f conftest.$ac_objext
 
30183
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30184
  (eval $ac_compile) 2>conftest.er1
 
30185
  ac_status=$?
 
30186
  grep -v '^ *+' conftest.er1 >conftest.err
 
30187
  rm -f conftest.er1
 
30188
  cat conftest.err >&5
 
30189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30190
  (exit $ac_status); } &&
 
30191
         { ac_try='test -z "$ac_c_werror_flag"
 
30192
                         || test ! -s conftest.err'
 
30193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30194
  (eval $ac_try) 2>&5
 
30195
  ac_status=$?
 
30196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30197
  (exit $ac_status); }; } &&
 
30198
         { ac_try='test -s conftest.$ac_objext'
 
30199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30200
  (eval $ac_try) 2>&5
 
30201
  ac_status=$?
 
30202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30203
  (exit $ac_status); }; }; then
 
30204
  ac_hi=$ac_mid
 
30205
else
 
30206
  echo "$as_me: failed program was:" >&5
 
30207
sed 's/^/| /' conftest.$ac_ext >&5
 
30208
 
 
30209
ac_lo=`expr '(' $ac_mid ')' + 1`
 
30210
fi
 
30211
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30212
done
 
30213
case $ac_lo in
 
30214
?*) ac_cv_sizeof_long=$ac_lo;;
 
30215
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
30216
See \`config.log' for more details." >&5
 
30217
echo "$as_me: error: cannot compute sizeof (long), 77
 
30218
See \`config.log' for more details." >&2;}
 
30219
   { (exit 1); exit 1; }; } ;;
 
30220
esac
 
30221
else
 
30222
  if test "$cross_compiling" = yes; then
 
30223
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
30224
See \`config.log' for more details." >&5
 
30225
echo "$as_me: error: cannot run test program while cross compiling
 
30226
See \`config.log' for more details." >&2;}
 
30227
   { (exit 1); exit 1; }; }
 
30228
else
 
30229
  cat >conftest.$ac_ext <<_ACEOF
 
30230
/* confdefs.h.  */
 
30231
_ACEOF
 
30232
cat confdefs.h >>conftest.$ac_ext
 
30233
cat >>conftest.$ac_ext <<_ACEOF
 
30234
/* end confdefs.h.  */
 
30235
$ac_includes_default
 
30236
long longval () { return (long) (sizeof (long)); }
 
30237
unsigned long ulongval () { return (long) (sizeof (long)); }
 
30238
#include <stdio.h>
 
30239
#include <stdlib.h>
 
30240
int
 
30241
main ()
 
30242
{
 
30243
 
 
30244
  FILE *f = fopen ("conftest.val", "w");
 
30245
  if (! f)
 
30246
    exit (1);
 
30247
  if (((long) (sizeof (long))) < 0)
 
30248
    {
 
30249
      long i = longval ();
 
30250
      if (i != ((long) (sizeof (long))))
 
30251
        exit (1);
 
30252
      fprintf (f, "%ld\n", i);
 
30253
    }
 
30254
  else
 
30255
    {
 
30256
      unsigned long i = ulongval ();
 
30257
      if (i != ((long) (sizeof (long))))
 
30258
        exit (1);
 
30259
      fprintf (f, "%lu\n", i);
 
30260
    }
 
30261
  exit (ferror (f) || fclose (f) != 0);
 
30262
 
 
30263
  ;
 
30264
  return 0;
 
30265
}
 
30266
_ACEOF
 
30267
rm -f conftest$ac_exeext
 
30268
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30269
  (eval $ac_link) 2>&5
 
30270
  ac_status=$?
 
30271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30272
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
30273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30274
  (eval $ac_try) 2>&5
 
30275
  ac_status=$?
 
30276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30277
  (exit $ac_status); }; }; then
 
30278
  ac_cv_sizeof_long=`cat conftest.val`
 
30279
else
 
30280
  echo "$as_me: program exited with status $ac_status" >&5
 
30281
echo "$as_me: failed program was:" >&5
 
30282
sed 's/^/| /' conftest.$ac_ext >&5
 
30283
 
 
30284
( exit $ac_status )
 
30285
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
 
30286
See \`config.log' for more details." >&5
 
30287
echo "$as_me: error: cannot compute sizeof (long), 77
 
30288
See \`config.log' for more details." >&2;}
 
30289
   { (exit 1); exit 1; }; }
 
30290
fi
 
30291
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
30292
fi
 
30293
fi
 
30294
rm -f conftest.val
 
30295
else
 
30296
  ac_cv_sizeof_long=0
 
30297
fi
 
30298
fi
 
30299
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
30300
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
 
30301
cat >>confdefs.h <<_ACEOF
 
30302
#define SIZEOF_LONG $ac_cv_sizeof_long
 
30303
_ACEOF
 
30304
 
 
30305
 
 
30306
if test "$ac_cv_sizeof_long" -eq 0
 
30307
then
 
30308
  { { echo "$as_me:$LINENO: error: \"No size for long type.\"" >&5
 
30309
echo "$as_me: error: \"No size for long type.\"" >&2;}
 
30310
   { (exit 1); exit 1; }; }
 
30311
fi
 
30312
echo "$as_me:$LINENO: checking for long long" >&5
 
30313
echo $ECHO_N "checking for long long... $ECHO_C" >&6
 
30314
if test "${ac_cv_type_long_long+set}" = set; then
 
30315
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30316
else
 
30317
  cat >conftest.$ac_ext <<_ACEOF
 
30318
/* confdefs.h.  */
 
30319
_ACEOF
 
30320
cat confdefs.h >>conftest.$ac_ext
 
30321
cat >>conftest.$ac_ext <<_ACEOF
 
30322
/* end confdefs.h.  */
 
30323
$ac_includes_default
 
30324
int
 
30325
main ()
 
30326
{
 
30327
if ((long long *) 0)
 
30328
  return 0;
 
30329
if (sizeof (long long))
 
30330
  return 0;
 
30331
  ;
 
30332
  return 0;
 
30333
}
 
30334
_ACEOF
 
30335
rm -f conftest.$ac_objext
 
30336
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30337
  (eval $ac_compile) 2>conftest.er1
 
30338
  ac_status=$?
 
30339
  grep -v '^ *+' conftest.er1 >conftest.err
 
30340
  rm -f conftest.er1
 
30341
  cat conftest.err >&5
 
30342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30343
  (exit $ac_status); } &&
 
30344
         { ac_try='test -z "$ac_c_werror_flag"
 
30345
                         || test ! -s conftest.err'
 
30346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30347
  (eval $ac_try) 2>&5
 
30348
  ac_status=$?
 
30349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30350
  (exit $ac_status); }; } &&
 
30351
         { ac_try='test -s conftest.$ac_objext'
 
30352
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30353
  (eval $ac_try) 2>&5
 
30354
  ac_status=$?
 
30355
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30356
  (exit $ac_status); }; }; then
 
30357
  ac_cv_type_long_long=yes
 
30358
else
 
30359
  echo "$as_me: failed program was:" >&5
 
30360
sed 's/^/| /' conftest.$ac_ext >&5
 
30361
 
 
30362
ac_cv_type_long_long=no
 
30363
fi
 
30364
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30365
fi
 
30366
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
30367
echo "${ECHO_T}$ac_cv_type_long_long" >&6
 
30368
 
 
30369
echo "$as_me:$LINENO: checking size of long long" >&5
 
30370
echo $ECHO_N "checking size of long long... $ECHO_C" >&6
 
30371
if test "${ac_cv_sizeof_long_long+set}" = set; then
 
30372
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30373
else
 
30374
  if test "$ac_cv_type_long_long" = yes; then
 
30375
  # The cast to unsigned long works around a bug in the HP C Compiler
 
30376
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
30377
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
30378
  # This bug is HP SR number 8606223364.
 
30379
  if test "$cross_compiling" = yes; then
 
30380
  # Depending upon the size, compute the lo and hi bounds.
 
30381
cat >conftest.$ac_ext <<_ACEOF
 
30382
/* confdefs.h.  */
 
30383
_ACEOF
 
30384
cat confdefs.h >>conftest.$ac_ext
 
30385
cat >>conftest.$ac_ext <<_ACEOF
 
30386
/* end confdefs.h.  */
 
30387
$ac_includes_default
 
30388
int
 
30389
main ()
 
30390
{
 
30391
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
 
30392
test_array [0] = 0
 
30393
 
 
30394
  ;
 
30395
  return 0;
 
30396
}
 
30397
_ACEOF
 
30398
rm -f conftest.$ac_objext
 
30399
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30400
  (eval $ac_compile) 2>conftest.er1
 
30401
  ac_status=$?
 
30402
  grep -v '^ *+' conftest.er1 >conftest.err
 
30403
  rm -f conftest.er1
 
30404
  cat conftest.err >&5
 
30405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30406
  (exit $ac_status); } &&
 
30407
         { ac_try='test -z "$ac_c_werror_flag"
 
30408
                         || test ! -s conftest.err'
 
30409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30410
  (eval $ac_try) 2>&5
 
30411
  ac_status=$?
 
30412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30413
  (exit $ac_status); }; } &&
 
30414
         { ac_try='test -s conftest.$ac_objext'
 
30415
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30416
  (eval $ac_try) 2>&5
 
30417
  ac_status=$?
 
30418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30419
  (exit $ac_status); }; }; then
 
30420
  ac_lo=0 ac_mid=0
 
30421
  while :; do
 
30422
    cat >conftest.$ac_ext <<_ACEOF
 
30423
/* confdefs.h.  */
 
30424
_ACEOF
 
30425
cat confdefs.h >>conftest.$ac_ext
 
30426
cat >>conftest.$ac_ext <<_ACEOF
 
30427
/* end confdefs.h.  */
 
30428
$ac_includes_default
 
30429
int
 
30430
main ()
 
30431
{
 
30432
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
 
30433
test_array [0] = 0
 
30434
 
 
30435
  ;
 
30436
  return 0;
 
30437
}
 
30438
_ACEOF
 
30439
rm -f conftest.$ac_objext
 
30440
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30441
  (eval $ac_compile) 2>conftest.er1
 
30442
  ac_status=$?
 
30443
  grep -v '^ *+' conftest.er1 >conftest.err
 
30444
  rm -f conftest.er1
 
30445
  cat conftest.err >&5
 
30446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30447
  (exit $ac_status); } &&
 
30448
         { ac_try='test -z "$ac_c_werror_flag"
 
30449
                         || test ! -s conftest.err'
 
30450
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30451
  (eval $ac_try) 2>&5
 
30452
  ac_status=$?
 
30453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30454
  (exit $ac_status); }; } &&
 
30455
         { ac_try='test -s conftest.$ac_objext'
 
30456
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30457
  (eval $ac_try) 2>&5
 
30458
  ac_status=$?
 
30459
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30460
  (exit $ac_status); }; }; then
 
30461
  ac_hi=$ac_mid; break
 
30462
else
 
30463
  echo "$as_me: failed program was:" >&5
 
30464
sed 's/^/| /' conftest.$ac_ext >&5
 
30465
 
 
30466
ac_lo=`expr $ac_mid + 1`
 
30467
                    if test $ac_lo -le $ac_mid; then
 
30468
                      ac_lo= ac_hi=
 
30469
                      break
 
30470
                    fi
 
30471
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
30472
fi
 
30473
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30474
  done
 
30475
else
 
30476
  echo "$as_me: failed program was:" >&5
 
30477
sed 's/^/| /' conftest.$ac_ext >&5
 
30478
 
 
30479
cat >conftest.$ac_ext <<_ACEOF
 
30480
/* confdefs.h.  */
 
30481
_ACEOF
 
30482
cat confdefs.h >>conftest.$ac_ext
 
30483
cat >>conftest.$ac_ext <<_ACEOF
 
30484
/* end confdefs.h.  */
 
30485
$ac_includes_default
 
30486
int
 
30487
main ()
 
30488
{
 
30489
static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
 
30490
test_array [0] = 0
 
30491
 
 
30492
  ;
 
30493
  return 0;
 
30494
}
 
30495
_ACEOF
 
30496
rm -f conftest.$ac_objext
 
30497
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30498
  (eval $ac_compile) 2>conftest.er1
 
30499
  ac_status=$?
 
30500
  grep -v '^ *+' conftest.er1 >conftest.err
 
30501
  rm -f conftest.er1
 
30502
  cat conftest.err >&5
 
30503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30504
  (exit $ac_status); } &&
 
30505
         { ac_try='test -z "$ac_c_werror_flag"
 
30506
                         || test ! -s conftest.err'
 
30507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30508
  (eval $ac_try) 2>&5
 
30509
  ac_status=$?
 
30510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30511
  (exit $ac_status); }; } &&
 
30512
         { ac_try='test -s conftest.$ac_objext'
 
30513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30514
  (eval $ac_try) 2>&5
 
30515
  ac_status=$?
 
30516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30517
  (exit $ac_status); }; }; then
 
30518
  ac_hi=-1 ac_mid=-1
 
30519
  while :; do
 
30520
    cat >conftest.$ac_ext <<_ACEOF
 
30521
/* confdefs.h.  */
 
30522
_ACEOF
 
30523
cat confdefs.h >>conftest.$ac_ext
 
30524
cat >>conftest.$ac_ext <<_ACEOF
 
30525
/* end confdefs.h.  */
 
30526
$ac_includes_default
 
30527
int
 
30528
main ()
 
30529
{
 
30530
static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
 
30531
test_array [0] = 0
 
30532
 
 
30533
  ;
 
30534
  return 0;
 
30535
}
 
30536
_ACEOF
 
30537
rm -f conftest.$ac_objext
 
30538
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30539
  (eval $ac_compile) 2>conftest.er1
 
30540
  ac_status=$?
 
30541
  grep -v '^ *+' conftest.er1 >conftest.err
 
30542
  rm -f conftest.er1
 
30543
  cat conftest.err >&5
 
30544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30545
  (exit $ac_status); } &&
 
30546
         { ac_try='test -z "$ac_c_werror_flag"
 
30547
                         || test ! -s conftest.err'
 
30548
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30549
  (eval $ac_try) 2>&5
 
30550
  ac_status=$?
 
30551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30552
  (exit $ac_status); }; } &&
 
30553
         { ac_try='test -s conftest.$ac_objext'
 
30554
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30555
  (eval $ac_try) 2>&5
 
30556
  ac_status=$?
 
30557
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30558
  (exit $ac_status); }; }; then
 
30559
  ac_lo=$ac_mid; break
 
30560
else
 
30561
  echo "$as_me: failed program was:" >&5
 
30562
sed 's/^/| /' conftest.$ac_ext >&5
 
30563
 
 
30564
ac_hi=`expr '(' $ac_mid ')' - 1`
 
30565
                       if test $ac_mid -le $ac_hi; then
 
30566
                         ac_lo= ac_hi=
 
30567
                         break
 
30568
                       fi
 
30569
                       ac_mid=`expr 2 '*' $ac_mid`
 
30570
fi
 
30571
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30572
  done
 
30573
else
 
30574
  echo "$as_me: failed program was:" >&5
 
30575
sed 's/^/| /' conftest.$ac_ext >&5
 
30576
 
 
30577
ac_lo= ac_hi=
 
30578
fi
 
30579
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30580
fi
 
30581
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30582
# Binary search between lo and hi bounds.
 
30583
while test "x$ac_lo" != "x$ac_hi"; do
 
30584
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
30585
  cat >conftest.$ac_ext <<_ACEOF
 
30586
/* confdefs.h.  */
 
30587
_ACEOF
 
30588
cat confdefs.h >>conftest.$ac_ext
 
30589
cat >>conftest.$ac_ext <<_ACEOF
 
30590
/* end confdefs.h.  */
 
30591
$ac_includes_default
 
30592
int
 
30593
main ()
 
30594
{
 
30595
static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
 
30596
test_array [0] = 0
 
30597
 
 
30598
  ;
 
30599
  return 0;
 
30600
}
 
30601
_ACEOF
 
30602
rm -f conftest.$ac_objext
 
30603
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30604
  (eval $ac_compile) 2>conftest.er1
 
30605
  ac_status=$?
 
30606
  grep -v '^ *+' conftest.er1 >conftest.err
 
30607
  rm -f conftest.er1
 
30608
  cat conftest.err >&5
 
30609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30610
  (exit $ac_status); } &&
 
30611
         { ac_try='test -z "$ac_c_werror_flag"
 
30612
                         || test ! -s conftest.err'
 
30613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30614
  (eval $ac_try) 2>&5
 
30615
  ac_status=$?
 
30616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30617
  (exit $ac_status); }; } &&
 
30618
         { ac_try='test -s conftest.$ac_objext'
 
30619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30620
  (eval $ac_try) 2>&5
 
30621
  ac_status=$?
 
30622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30623
  (exit $ac_status); }; }; then
 
30624
  ac_hi=$ac_mid
 
30625
else
 
30626
  echo "$as_me: failed program was:" >&5
 
30627
sed 's/^/| /' conftest.$ac_ext >&5
 
30628
 
 
30629
ac_lo=`expr '(' $ac_mid ')' + 1`
 
30630
fi
 
30631
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30632
done
 
30633
case $ac_lo in
 
30634
?*) ac_cv_sizeof_long_long=$ac_lo;;
 
30635
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
 
30636
See \`config.log' for more details." >&5
 
30637
echo "$as_me: error: cannot compute sizeof (long long), 77
 
30638
See \`config.log' for more details." >&2;}
 
30639
   { (exit 1); exit 1; }; } ;;
 
30640
esac
 
30641
else
 
30642
  if test "$cross_compiling" = yes; then
 
30643
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
30644
See \`config.log' for more details." >&5
 
30645
echo "$as_me: error: cannot run test program while cross compiling
 
30646
See \`config.log' for more details." >&2;}
 
30647
   { (exit 1); exit 1; }; }
 
30648
else
 
30649
  cat >conftest.$ac_ext <<_ACEOF
 
30650
/* confdefs.h.  */
 
30651
_ACEOF
 
30652
cat confdefs.h >>conftest.$ac_ext
 
30653
cat >>conftest.$ac_ext <<_ACEOF
 
30654
/* end confdefs.h.  */
 
30655
$ac_includes_default
 
30656
long longval () { return (long) (sizeof (long long)); }
 
30657
unsigned long ulongval () { return (long) (sizeof (long long)); }
 
30658
#include <stdio.h>
 
30659
#include <stdlib.h>
 
30660
int
 
30661
main ()
 
30662
{
 
30663
 
 
30664
  FILE *f = fopen ("conftest.val", "w");
 
30665
  if (! f)
 
30666
    exit (1);
 
30667
  if (((long) (sizeof (long long))) < 0)
 
30668
    {
 
30669
      long i = longval ();
 
30670
      if (i != ((long) (sizeof (long long))))
 
30671
        exit (1);
 
30672
      fprintf (f, "%ld\n", i);
 
30673
    }
 
30674
  else
 
30675
    {
 
30676
      unsigned long i = ulongval ();
 
30677
      if (i != ((long) (sizeof (long long))))
 
30678
        exit (1);
 
30679
      fprintf (f, "%lu\n", i);
 
30680
    }
 
30681
  exit (ferror (f) || fclose (f) != 0);
 
30682
 
 
30683
  ;
 
30684
  return 0;
 
30685
}
 
30686
_ACEOF
 
30687
rm -f conftest$ac_exeext
 
30688
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30689
  (eval $ac_link) 2>&5
 
30690
  ac_status=$?
 
30691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30692
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
30693
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30694
  (eval $ac_try) 2>&5
 
30695
  ac_status=$?
 
30696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30697
  (exit $ac_status); }; }; then
 
30698
  ac_cv_sizeof_long_long=`cat conftest.val`
 
30699
else
 
30700
  echo "$as_me: program exited with status $ac_status" >&5
 
30701
echo "$as_me: failed program was:" >&5
 
30702
sed 's/^/| /' conftest.$ac_ext >&5
 
30703
 
 
30704
( exit $ac_status )
 
30705
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
 
30706
See \`config.log' for more details." >&5
 
30707
echo "$as_me: error: cannot compute sizeof (long long), 77
 
30708
See \`config.log' for more details." >&2;}
 
30709
   { (exit 1); exit 1; }; }
 
30710
fi
 
30711
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
30712
fi
 
30713
fi
 
30714
rm -f conftest.val
 
30715
else
 
30716
  ac_cv_sizeof_long_long=0
 
30717
fi
 
30718
fi
 
30719
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
 
30720
echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
 
30721
cat >>confdefs.h <<_ACEOF
 
30722
#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
 
30723
_ACEOF
 
30724
 
 
30725
 
 
30726
if test "$ac_cv_sizeof_long_long" -eq 0
 
30727
then
 
30728
  { { echo "$as_me:$LINENO: error: \"MySQL needs a long long type.\"" >&5
 
30729
echo "$as_me: error: \"MySQL needs a long long type.\"" >&2;}
 
30730
   { (exit 1); exit 1; }; }
 
30731
fi
 
30732
# off_t is not a builtin type
 
30733
echo "$as_me:$LINENO: checking size of off_t" >&5
 
30734
echo $ECHO_N "checking size of off_t... $ECHO_C" >&6
 
30735
if test "${ac_cv_sizeof_off_t+set}" = set; then
 
30736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30737
else
 
30738
  if test "$cross_compiling" = yes; then
 
30739
  ac_cv_sizeof_off_t=4
 
30740
else
 
30741
  cat >conftest.$ac_ext <<_ACEOF
 
30742
/* confdefs.h.  */
 
30743
_ACEOF
 
30744
cat confdefs.h >>conftest.$ac_ext
 
30745
cat >>conftest.$ac_ext <<_ACEOF
 
30746
/* end confdefs.h.  */
 
30747
#include <stdio.h>
 
30748
#include <sys/types.h>
 
30749
#if STDC_HEADERS
 
30750
#include <stdlib.h>
 
30751
#include <stddef.h>
 
30752
#endif
 
30753
main()
 
30754
{
 
30755
  FILE *f=fopen("conftestval", "w");
 
30756
  if (!f) exit(1);
 
30757
  fprintf(f, "%d\n", sizeof(off_t));
 
30758
  exit(0);
 
30759
}
 
30760
_ACEOF
 
30761
rm -f conftest$ac_exeext
 
30762
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
30763
  (eval $ac_link) 2>&5
 
30764
  ac_status=$?
 
30765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30766
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
30767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30768
  (eval $ac_try) 2>&5
 
30769
  ac_status=$?
 
30770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30771
  (exit $ac_status); }; }; then
 
30772
  ac_cv_sizeof_off_t=`cat conftestval`
 
30773
else
 
30774
  echo "$as_me: program exited with status $ac_status" >&5
 
30775
echo "$as_me: failed program was:" >&5
 
30776
sed 's/^/| /' conftest.$ac_ext >&5
 
30777
 
 
30778
( exit $ac_status )
 
30779
ac_cv_sizeof_off_t=0
 
30780
fi
 
30781
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
30782
fi
 
30783
fi
 
30784
echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
 
30785
echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6
 
30786
 
 
30787
cat >>confdefs.h <<_ACEOF
 
30788
#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
 
30789
_ACEOF
 
30790
 
 
30791
 
 
30792
if test "$ac_cv_sizeof_off_t" -eq 0
 
30793
then
 
30794
  { { echo "$as_me:$LINENO: error: \"MySQL needs a off_t type.\"" >&5
 
30795
echo "$as_me: error: \"MySQL needs a off_t type.\"" >&2;}
 
30796
   { (exit 1); exit 1; }; }
 
30797
fi
 
30798
 
 
30799
 
 
30800
MYSQL_CHECK_TIME_T
 
30801
 
 
30802
 
 
30803
# do we need #pragma interface/#pragma implementation ?
 
30804
# yes if it's gcc 2.x, and not icc pretending to be gcc, and not cygwin
 
30805
echo "$as_me:$LINENO: checking the need for #pragma interface/implementation" >&5
 
30806
echo $ECHO_N "checking the need for #pragma interface/implementation... $ECHO_C" >&6
 
30807
# instead of trying to match SYSTEM_TYPE and CC_VERSION (that doesn't
 
30808
# follow any standard), we'll use well-defined preprocessor macros:
 
30809
cat >conftest.$ac_ext <<_ACEOF
 
30810
/* confdefs.h.  */
 
30811
_ACEOF
 
30812
cat confdefs.h >>conftest.$ac_ext
 
30813
cat >>conftest.$ac_ext <<_ACEOF
 
30814
/* end confdefs.h.  */
 
30815
 
 
30816
#if !defined(__CYGWIN__) && !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ < 3)
 
30817
#error USE_PRAGMA_IMPLEMENTATION
 
30818
#endif
 
30819
 
 
30820
_ACEOF
 
30821
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
30822
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
30823
  ac_status=$?
 
30824
  grep -v '^ *+' conftest.er1 >conftest.err
 
30825
  rm -f conftest.er1
 
30826
  cat conftest.err >&5
 
30827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30828
  (exit $ac_status); } >/dev/null; then
 
30829
  if test -s conftest.err; then
 
30830
    ac_cpp_err=$ac_c_preproc_warn_flag
 
30831
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
30832
  else
 
30833
    ac_cpp_err=
 
30834
  fi
 
30835
else
 
30836
  ac_cpp_err=yes
 
30837
fi
 
30838
if test -z "$ac_cpp_err"; then
 
30839
  echo "$as_me:$LINENO: result: no" >&5
 
30840
echo "${ECHO_T}no" >&6
 
30841
else
 
30842
  echo "$as_me: failed program was:" >&5
 
30843
sed 's/^/| /' conftest.$ac_ext >&5
 
30844
 
 
30845
  echo "$as_me:$LINENO: result: yes" >&5
 
30846
echo "${ECHO_T}yes" >&6 ; CXXFLAGS="$CXXFLAGS -DUSE_PRAGMA_IMPLEMENTATION"
 
30847
fi
 
30848
rm -f conftest.err conftest.$ac_ext
 
30849
 
 
30850
# This always gives a warning. Ignore it unless you are cross compiling
 
30851
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
30852
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
30853
if test "${ac_cv_c_bigendian+set}" = set; then
 
30854
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
30855
else
 
30856
  # See if sys/param.h defines the BYTE_ORDER macro.
 
30857
cat >conftest.$ac_ext <<_ACEOF
 
30858
/* confdefs.h.  */
 
30859
_ACEOF
 
30860
cat confdefs.h >>conftest.$ac_ext
 
30861
cat >>conftest.$ac_ext <<_ACEOF
 
30862
/* end confdefs.h.  */
 
30863
#include <sys/types.h>
 
30864
#include <sys/param.h>
 
30865
 
 
30866
int
 
30867
main ()
 
30868
{
 
30869
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
30870
 bogus endian macros
 
30871
#endif
 
30872
 
 
30873
  ;
 
30874
  return 0;
 
30875
}
 
30876
_ACEOF
 
30877
rm -f conftest.$ac_objext
 
30878
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30879
  (eval $ac_compile) 2>conftest.er1
 
30880
  ac_status=$?
 
30881
  grep -v '^ *+' conftest.er1 >conftest.err
 
30882
  rm -f conftest.er1
 
30883
  cat conftest.err >&5
 
30884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30885
  (exit $ac_status); } &&
 
30886
         { ac_try='test -z "$ac_c_werror_flag"
 
30887
                         || test ! -s conftest.err'
 
30888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30889
  (eval $ac_try) 2>&5
 
30890
  ac_status=$?
 
30891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30892
  (exit $ac_status); }; } &&
 
30893
         { ac_try='test -s conftest.$ac_objext'
 
30894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30895
  (eval $ac_try) 2>&5
 
30896
  ac_status=$?
 
30897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30898
  (exit $ac_status); }; }; then
 
30899
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
30900
cat >conftest.$ac_ext <<_ACEOF
 
30901
/* confdefs.h.  */
 
30902
_ACEOF
 
30903
cat confdefs.h >>conftest.$ac_ext
 
30904
cat >>conftest.$ac_ext <<_ACEOF
 
30905
/* end confdefs.h.  */
 
30906
#include <sys/types.h>
 
30907
#include <sys/param.h>
 
30908
 
 
30909
int
 
30910
main ()
 
30911
{
 
30912
#if BYTE_ORDER != BIG_ENDIAN
 
30913
 not big endian
 
30914
#endif
 
30915
 
 
30916
  ;
 
30917
  return 0;
 
30918
}
 
30919
_ACEOF
 
30920
rm -f conftest.$ac_objext
 
30921
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30922
  (eval $ac_compile) 2>conftest.er1
 
30923
  ac_status=$?
 
30924
  grep -v '^ *+' conftest.er1 >conftest.err
 
30925
  rm -f conftest.er1
 
30926
  cat conftest.err >&5
 
30927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30928
  (exit $ac_status); } &&
 
30929
         { ac_try='test -z "$ac_c_werror_flag"
 
30930
                         || test ! -s conftest.err'
 
30931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30932
  (eval $ac_try) 2>&5
 
30933
  ac_status=$?
 
30934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30935
  (exit $ac_status); }; } &&
 
30936
         { ac_try='test -s conftest.$ac_objext'
 
30937
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30938
  (eval $ac_try) 2>&5
 
30939
  ac_status=$?
 
30940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30941
  (exit $ac_status); }; }; then
 
30942
  ac_cv_c_bigendian=yes
 
30943
else
 
30944
  echo "$as_me: failed program was:" >&5
 
30945
sed 's/^/| /' conftest.$ac_ext >&5
 
30946
 
 
30947
ac_cv_c_bigendian=no
 
30948
fi
 
30949
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
30950
else
 
30951
  echo "$as_me: failed program was:" >&5
 
30952
sed 's/^/| /' conftest.$ac_ext >&5
 
30953
 
 
30954
# It does not; compile a test program.
 
30955
if test "$cross_compiling" = yes; then
 
30956
  # try to guess the endianness by grepping values into an object file
 
30957
  ac_cv_c_bigendian=unknown
 
30958
  cat >conftest.$ac_ext <<_ACEOF
 
30959
/* confdefs.h.  */
 
30960
_ACEOF
 
30961
cat confdefs.h >>conftest.$ac_ext
 
30962
cat >>conftest.$ac_ext <<_ACEOF
 
30963
/* end confdefs.h.  */
 
30964
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
30965
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
30966
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
30967
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
30968
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
30969
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
30970
int
 
30971
main ()
 
30972
{
 
30973
 _ascii (); _ebcdic ();
 
30974
  ;
 
30975
  return 0;
 
30976
}
 
30977
_ACEOF
 
30978
rm -f conftest.$ac_objext
 
30979
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
30980
  (eval $ac_compile) 2>conftest.er1
 
30981
  ac_status=$?
 
30982
  grep -v '^ *+' conftest.er1 >conftest.err
 
30983
  rm -f conftest.er1
 
30984
  cat conftest.err >&5
 
30985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30986
  (exit $ac_status); } &&
 
30987
         { ac_try='test -z "$ac_c_werror_flag"
 
30988
                         || test ! -s conftest.err'
 
30989
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30990
  (eval $ac_try) 2>&5
 
30991
  ac_status=$?
 
30992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30993
  (exit $ac_status); }; } &&
 
30994
         { ac_try='test -s conftest.$ac_objext'
 
30995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
30996
  (eval $ac_try) 2>&5
 
30997
  ac_status=$?
 
30998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
30999
  (exit $ac_status); }; }; then
 
31000
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
31001
  ac_cv_c_bigendian=yes
 
31002
fi
 
31003
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
31004
  if test "$ac_cv_c_bigendian" = unknown; then
 
31005
    ac_cv_c_bigendian=no
 
31006
  else
 
31007
    # finding both strings is unlikely to happen, but who knows?
 
31008
    ac_cv_c_bigendian=unknown
 
31009
  fi
 
31010
fi
 
31011
else
 
31012
  echo "$as_me: failed program was:" >&5
 
31013
sed 's/^/| /' conftest.$ac_ext >&5
 
31014
 
 
31015
fi
 
31016
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31017
else
 
31018
  cat >conftest.$ac_ext <<_ACEOF
 
31019
/* confdefs.h.  */
 
31020
_ACEOF
 
31021
cat confdefs.h >>conftest.$ac_ext
 
31022
cat >>conftest.$ac_ext <<_ACEOF
 
31023
/* end confdefs.h.  */
 
31024
int
 
31025
main ()
 
31026
{
 
31027
  /* Are we little or big endian?  From Harbison&Steele.  */
 
31028
  union
 
31029
  {
 
31030
    long l;
 
31031
    char c[sizeof (long)];
 
31032
  } u;
 
31033
  u.l = 1;
 
31034
  exit (u.c[sizeof (long) - 1] == 1);
 
31035
}
 
31036
_ACEOF
 
31037
rm -f conftest$ac_exeext
 
31038
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31039
  (eval $ac_link) 2>&5
 
31040
  ac_status=$?
 
31041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31042
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
31043
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31044
  (eval $ac_try) 2>&5
 
31045
  ac_status=$?
 
31046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31047
  (exit $ac_status); }; }; then
 
31048
  ac_cv_c_bigendian=no
 
31049
else
 
31050
  echo "$as_me: program exited with status $ac_status" >&5
 
31051
echo "$as_me: failed program was:" >&5
 
31052
sed 's/^/| /' conftest.$ac_ext >&5
 
31053
 
 
31054
( exit $ac_status )
 
31055
ac_cv_c_bigendian=yes
 
31056
fi
 
31057
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
31058
fi
 
31059
fi
 
31060
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31061
fi
 
31062
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
31063
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
31064
case $ac_cv_c_bigendian in
 
31065
  yes)
 
31066
 
 
31067
cat >>confdefs.h <<\_ACEOF
 
31068
#define WORDS_BIGENDIAN 1
 
31069
_ACEOF
 
31070
 ;;
 
31071
  no)
 
31072
     ;;
 
31073
  *)
 
31074
    { { echo "$as_me:$LINENO: error: unknown endianness
 
31075
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
31076
echo "$as_me: error: unknown endianness
 
31077
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
31078
   { (exit 1); exit 1; }; } ;;
 
31079
esac
 
31080
 
 
31081
#---START: Used in for client configure
 
31082
# Check base type of last arg to accept
 
31083
ac_save_CXXFLAGS="$CXXFLAGS"
 
31084
echo "$as_me:$LINENO: checking base type of last arg to accept" >&5
 
31085
echo $ECHO_N "checking base type of last arg to accept... $ECHO_C" >&6
 
31086
if test "${mysql_cv_btype_last_arg_accept+set}" = set; then
 
31087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31088
else
 
31089
  ac_ext=cc
 
31090
ac_cpp='$CXXCPP $CPPFLAGS'
 
31091
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31092
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31093
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
31094
 
 
31095
if test "$ac_cv_cxx_compiler_gnu" = "yes"
 
31096
then
 
31097
  # Add -Werror, remove -fbranch-probabilities (Bug #268)
 
31098
  CXXFLAGS=`echo "$CXXFLAGS -Werror" | sed -e 's/-fbranch-probabilities//; s/-Wall//; s/-Wcheck//'`
 
31099
fi
 
31100
mysql_cv_btype_last_arg_accept=none
 
31101
cat >conftest.$ac_ext <<_ACEOF
 
31102
/* confdefs.h.  */
 
31103
_ACEOF
 
31104
cat confdefs.h >>conftest.$ac_ext
 
31105
cat >>conftest.$ac_ext <<_ACEOF
 
31106
/* end confdefs.h.  */
 
31107
#if defined(inline)
 
31108
#undef inline
 
31109
#endif
 
31110
#include <stdlib.h>
 
31111
#include <sys/types.h>
 
31112
#include <sys/socket.h>
 
31113
 
 
31114
int
 
31115
main ()
 
31116
{
 
31117
int a = accept(1, (struct sockaddr *) 0, (socklen_t *) 0); return (a != 0);
 
31118
  ;
 
31119
  return 0;
 
31120
}
 
31121
_ACEOF
 
31122
rm -f conftest.$ac_objext
 
31123
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31124
  (eval $ac_compile) 2>conftest.er1
 
31125
  ac_status=$?
 
31126
  grep -v '^ *+' conftest.er1 >conftest.err
 
31127
  rm -f conftest.er1
 
31128
  cat conftest.err >&5
 
31129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31130
  (exit $ac_status); } &&
 
31131
         { ac_try='test -z "$ac_cxx_werror_flag"
 
31132
                         || test ! -s conftest.err'
 
31133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31134
  (eval $ac_try) 2>&5
 
31135
  ac_status=$?
 
31136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31137
  (exit $ac_status); }; } &&
 
31138
         { ac_try='test -s conftest.$ac_objext'
 
31139
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31140
  (eval $ac_try) 2>&5
 
31141
  ac_status=$?
 
31142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31143
  (exit $ac_status); }; }; then
 
31144
  mysql_cv_btype_last_arg_accept=socklen_t
 
31145
else
 
31146
  echo "$as_me: failed program was:" >&5
 
31147
sed 's/^/| /' conftest.$ac_ext >&5
 
31148
 
 
31149
fi
 
31150
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31151
if test "$mysql_cv_btype_last_arg_accept" = "none"; then
 
31152
cat >conftest.$ac_ext <<_ACEOF
 
31153
/* confdefs.h.  */
 
31154
_ACEOF
 
31155
cat confdefs.h >>conftest.$ac_ext
 
31156
cat >>conftest.$ac_ext <<_ACEOF
 
31157
/* end confdefs.h.  */
 
31158
#if defined(inline)
 
31159
#undef inline
 
31160
#endif
 
31161
#include <stdlib.h>
 
31162
#include <sys/types.h>
 
31163
#include <sys/socket.h>
 
31164
 
 
31165
int
 
31166
main ()
 
31167
{
 
31168
int a = accept(1, (struct sockaddr *) 0, (size_t *) 0); return (a != 0);
 
31169
  ;
 
31170
  return 0;
 
31171
}
 
31172
_ACEOF
 
31173
rm -f conftest.$ac_objext
 
31174
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31175
  (eval $ac_compile) 2>conftest.er1
 
31176
  ac_status=$?
 
31177
  grep -v '^ *+' conftest.er1 >conftest.err
 
31178
  rm -f conftest.er1
 
31179
  cat conftest.err >&5
 
31180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31181
  (exit $ac_status); } &&
 
31182
         { ac_try='test -z "$ac_cxx_werror_flag"
 
31183
                         || test ! -s conftest.err'
 
31184
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31185
  (eval $ac_try) 2>&5
 
31186
  ac_status=$?
 
31187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31188
  (exit $ac_status); }; } &&
 
31189
         { ac_try='test -s conftest.$ac_objext'
 
31190
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31191
  (eval $ac_try) 2>&5
 
31192
  ac_status=$?
 
31193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31194
  (exit $ac_status); }; }; then
 
31195
  mysql_cv_btype_last_arg_accept=size_t
 
31196
else
 
31197
  echo "$as_me: failed program was:" >&5
 
31198
sed 's/^/| /' conftest.$ac_ext >&5
 
31199
 
 
31200
fi
 
31201
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31202
fi
 
31203
if test "$mysql_cv_btype_last_arg_accept" = "none"; then
 
31204
mysql_cv_btype_last_arg_accept=int
 
31205
fi
 
31206
fi
 
31207
echo "$as_me:$LINENO: result: $mysql_cv_btype_last_arg_accept" >&5
 
31208
echo "${ECHO_T}$mysql_cv_btype_last_arg_accept" >&6
 
31209
ac_ext=c
 
31210
ac_cpp='$CPP $CPPFLAGS'
 
31211
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31212
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31213
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
31214
 
 
31215
 
 
31216
cat >>confdefs.h <<_ACEOF
 
31217
#define SOCKET_SIZE_TYPE $mysql_cv_btype_last_arg_accept
 
31218
_ACEOF
 
31219
 
 
31220
CXXFLAGS="$ac_save_CXXFLAGS"
 
31221
 
 
31222
#---END:
 
31223
# Figure out what type of struct rlimit to use with setrlimit
 
31224
ac_save_CXXFLAGS="$CXXFLAGS"
 
31225
echo "$as_me:$LINENO: checking struct type to use with setrlimit" >&5
 
31226
echo $ECHO_N "checking struct type to use with setrlimit... $ECHO_C" >&6
 
31227
if test "${mysql_cv_btype_struct_rlimit+set}" = set; then
 
31228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31229
else
 
31230
  ac_ext=cc
 
31231
ac_cpp='$CXXCPP $CPPFLAGS'
 
31232
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31233
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31234
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
31235
 
 
31236
if test "$ac_cv_cxx_compiler_gnu" = "yes"
 
31237
then
 
31238
  # Add -Werror, remove -fbranch-probabilities (Bug #268)
 
31239
  CXXFLAGS=`echo "$CXXFLAGS -Werror" | sed -e 's/-fbranch-probabilities//; s/-Wall//; s/-Wcheck//'`
 
31240
fi
 
31241
mysql_cv_btype_struct_rlimit=none
 
31242
cat >conftest.$ac_ext <<_ACEOF
 
31243
/* confdefs.h.  */
 
31244
_ACEOF
 
31245
cat confdefs.h >>conftest.$ac_ext
 
31246
cat >>conftest.$ac_ext <<_ACEOF
 
31247
/* end confdefs.h.  */
 
31248
#if defined(inline)
 
31249
#undef inline
 
31250
#endif
 
31251
#include <stdlib.h>
 
31252
#include <sys/resource.h>
 
31253
 
 
31254
int
 
31255
main ()
 
31256
{
 
31257
struct rlimit64 rl; setrlimit(RLIMIT_CORE, &rl);
 
31258
  ;
 
31259
  return 0;
 
31260
}
 
31261
_ACEOF
 
31262
rm -f conftest.$ac_objext
 
31263
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31264
  (eval $ac_compile) 2>conftest.er1
 
31265
  ac_status=$?
 
31266
  grep -v '^ *+' conftest.er1 >conftest.err
 
31267
  rm -f conftest.er1
 
31268
  cat conftest.err >&5
 
31269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31270
  (exit $ac_status); } &&
 
31271
         { ac_try='test -z "$ac_cxx_werror_flag"
 
31272
                         || test ! -s conftest.err'
 
31273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31274
  (eval $ac_try) 2>&5
 
31275
  ac_status=$?
 
31276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31277
  (exit $ac_status); }; } &&
 
31278
         { ac_try='test -s conftest.$ac_objext'
 
31279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31280
  (eval $ac_try) 2>&5
 
31281
  ac_status=$?
 
31282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31283
  (exit $ac_status); }; }; then
 
31284
  mysql_cv_btype_struct_rlimit="struct rlimit64"
 
31285
else
 
31286
  echo "$as_me: failed program was:" >&5
 
31287
sed 's/^/| /' conftest.$ac_ext >&5
 
31288
 
 
31289
fi
 
31290
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31291
if test "$mysql_cv_btype_struct_rlimit" = "none"; then
 
31292
mysql_cv_btype_struct_rlimit="struct rlimit"
 
31293
fi
 
31294
fi
 
31295
echo "$as_me:$LINENO: result: $mysql_cv_btype_struct_rlimit" >&5
 
31296
echo "${ECHO_T}$mysql_cv_btype_struct_rlimit" >&6
 
31297
ac_ext=c
 
31298
ac_cpp='$CPP $CPPFLAGS'
 
31299
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
31300
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
31301
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
31302
 
 
31303
 
 
31304
cat >>confdefs.h <<_ACEOF
 
31305
#define STRUCT_RLIMIT $mysql_cv_btype_struct_rlimit
 
31306
_ACEOF
 
31307
 
 
31308
CXXFLAGS="$ac_save_CXXFLAGS"
 
31309
 
 
31310
# Find where the stack goes
 
31311
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
31312
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
 
31313
if test "${ac_cv_c_stack_direction+set}" = set; then
 
31314
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31315
else
 
31316
  if test "$cross_compiling" = yes; then
 
31317
  ac_cv_c_stack_direction=0
 
31318
else
 
31319
  cat >conftest.$ac_ext <<_ACEOF
 
31320
/* confdefs.h.  */
 
31321
_ACEOF
 
31322
cat confdefs.h >>conftest.$ac_ext
 
31323
cat >>conftest.$ac_ext <<_ACEOF
 
31324
/* end confdefs.h.  */
 
31325
#include <stdlib.h>
 
31326
 int find_stack_direction ()
 
31327
 {
 
31328
   static char *addr = 0;
 
31329
   auto char dummy;
 
31330
   if (addr == 0)
 
31331
     {
 
31332
       addr = &dummy;
 
31333
       return find_stack_direction ();
 
31334
     }
 
31335
   else
 
31336
     return (&dummy > addr) ? 1 : -1;
 
31337
 }
 
31338
 int main ()
 
31339
 {
 
31340
   exit (find_stack_direction() < 0);
 
31341
 }
 
31342
_ACEOF
 
31343
rm -f conftest$ac_exeext
 
31344
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31345
  (eval $ac_link) 2>&5
 
31346
  ac_status=$?
 
31347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31348
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
31349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31350
  (eval $ac_try) 2>&5
 
31351
  ac_status=$?
 
31352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31353
  (exit $ac_status); }; }; then
 
31354
  ac_cv_c_stack_direction=1
 
31355
else
 
31356
  echo "$as_me: program exited with status $ac_status" >&5
 
31357
echo "$as_me: failed program was:" >&5
 
31358
sed 's/^/| /' conftest.$ac_ext >&5
 
31359
 
 
31360
( exit $ac_status )
 
31361
ac_cv_c_stack_direction=-1
 
31362
fi
 
31363
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
31364
fi
 
31365
fi
 
31366
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
31367
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
 
31368
 cat >>confdefs.h <<_ACEOF
 
31369
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
31370
_ACEOF
 
31371
 
 
31372
 
 
31373
# We want to skip alloca on irix unconditionally. It may work on some version..
 
31374
 
 
31375
# Since we have heard that alloca fails on IRIX never define it on a
 
31376
# SGI machine
 
31377
if test ! "$host_vendor" = "sgi"
 
31378
then
 
31379
  # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
31380
 # for constant arguments.  Useless!
 
31381
 echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
31382
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
 
31383
if test "${ac_cv_header_alloca_h+set}" = set; then
 
31384
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31385
else
 
31386
  cat >conftest.$ac_ext <<_ACEOF
 
31387
/* confdefs.h.  */
 
31388
_ACEOF
 
31389
cat confdefs.h >>conftest.$ac_ext
 
31390
cat >>conftest.$ac_ext <<_ACEOF
 
31391
/* end confdefs.h.  */
 
31392
#include <alloca.h>
 
31393
int
 
31394
main ()
 
31395
{
 
31396
char *p = alloca(2 * sizeof(int));
 
31397
  ;
 
31398
  return 0;
 
31399
}
 
31400
_ACEOF
 
31401
rm -f conftest.$ac_objext conftest$ac_exeext
 
31402
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31403
  (eval $ac_link) 2>conftest.er1
 
31404
  ac_status=$?
 
31405
  grep -v '^ *+' conftest.er1 >conftest.err
 
31406
  rm -f conftest.er1
 
31407
  cat conftest.err >&5
 
31408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31409
  (exit $ac_status); } &&
 
31410
         { ac_try='test -z "$ac_c_werror_flag"
 
31411
                         || test ! -s conftest.err'
 
31412
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31413
  (eval $ac_try) 2>&5
 
31414
  ac_status=$?
 
31415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31416
  (exit $ac_status); }; } &&
 
31417
         { ac_try='test -s conftest$ac_exeext'
 
31418
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31419
  (eval $ac_try) 2>&5
 
31420
  ac_status=$?
 
31421
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31422
  (exit $ac_status); }; }; then
 
31423
  ac_cv_header_alloca_h=yes
 
31424
else
 
31425
  echo "$as_me: failed program was:" >&5
 
31426
sed 's/^/| /' conftest.$ac_ext >&5
 
31427
 
 
31428
ac_cv_header_alloca_h=no
 
31429
fi
 
31430
rm -f conftest.err conftest.$ac_objext \
 
31431
      conftest$ac_exeext conftest.$ac_ext
 
31432
fi
 
31433
echo "$as_me:$LINENO: result: $ac_cv_header_alloca_h" >&5
 
31434
echo "${ECHO_T}$ac_cv_header_alloca_h" >&6
 
31435
 if test "$ac_cv_header_alloca_h" = "yes"
 
31436
 then
 
31437
        cat >>confdefs.h <<\_ACEOF
 
31438
#define HAVE_ALLOCA 1
 
31439
_ACEOF
 
31440
 
 
31441
 fi
 
31442
 
 
31443
 echo "$as_me:$LINENO: checking for alloca" >&5
 
31444
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
 
31445
if test "${ac_cv_func_alloca_works+set}" = set; then
 
31446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31447
else
 
31448
  cat >conftest.$ac_ext <<_ACEOF
 
31449
/* confdefs.h.  */
 
31450
_ACEOF
 
31451
cat confdefs.h >>conftest.$ac_ext
 
31452
cat >>conftest.$ac_ext <<_ACEOF
 
31453
/* end confdefs.h.  */
 
31454
 
 
31455
 #ifdef __GNUC__
 
31456
 # define alloca __builtin_alloca
 
31457
 #else
 
31458
 # if HAVE_ALLOCA_H
 
31459
 #  include <alloca.h>
 
31460
 # else
 
31461
 #  ifdef _AIX
 
31462
  #pragma alloca
 
31463
 #  else
 
31464
 #   ifndef alloca /* predefined by HP cc +Olibcalls */
 
31465
 char *alloca ();
 
31466
 #   endif
 
31467
 #  endif
 
31468
 # endif
 
31469
 #endif
 
31470
 
 
31471
int
 
31472
main ()
 
31473
{
 
31474
char *p = (char *) alloca(1);
 
31475
  ;
 
31476
  return 0;
 
31477
}
 
31478
_ACEOF
 
31479
rm -f conftest.$ac_objext conftest$ac_exeext
 
31480
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31481
  (eval $ac_link) 2>conftest.er1
 
31482
  ac_status=$?
 
31483
  grep -v '^ *+' conftest.er1 >conftest.err
 
31484
  rm -f conftest.er1
 
31485
  cat conftest.err >&5
 
31486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31487
  (exit $ac_status); } &&
 
31488
         { ac_try='test -z "$ac_c_werror_flag"
 
31489
                         || test ! -s conftest.err'
 
31490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31491
  (eval $ac_try) 2>&5
 
31492
  ac_status=$?
 
31493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31494
  (exit $ac_status); }; } &&
 
31495
         { ac_try='test -s conftest$ac_exeext'
 
31496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31497
  (eval $ac_try) 2>&5
 
31498
  ac_status=$?
 
31499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31500
  (exit $ac_status); }; }; then
 
31501
  ac_cv_func_alloca_works=yes
 
31502
else
 
31503
  echo "$as_me: failed program was:" >&5
 
31504
sed 's/^/| /' conftest.$ac_ext >&5
 
31505
 
 
31506
ac_cv_func_alloca_works=no
 
31507
fi
 
31508
rm -f conftest.err conftest.$ac_objext \
 
31509
      conftest$ac_exeext conftest.$ac_ext
 
31510
fi
 
31511
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
31512
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
31513
 if test "$ac_cv_func_alloca_works" = "yes"; then
 
31514
 
 
31515
cat >>confdefs.h <<\_ACEOF
 
31516
#define HAVE_ALLOCA 1
 
31517
_ACEOF
 
31518
 
 
31519
 fi
 
31520
 
 
31521
 if test "$ac_cv_func_alloca_works" = "no"; then
 
31522
   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
31523
   # that cause trouble.  Some versions do not even contain alloca or
 
31524
   # contain a buggy version.  If you still want to use their alloca,
 
31525
   # use ar to extract alloca.o from them instead of compiling alloca.c.
 
31526
   ALLOCA=alloca.o
 
31527
   cat >>confdefs.h <<\_ACEOF
 
31528
#define C_ALLOCA 1
 
31529
_ACEOF
 
31530
 
 
31531
 
 
31532
 echo "$as_me:$LINENO: checking whether alloca needs Cray hooks" >&5
 
31533
echo $ECHO_N "checking whether alloca needs Cray hooks... $ECHO_C" >&6
 
31534
if test "${ac_cv_os_cray+set}" = set; then
 
31535
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31536
else
 
31537
  cat >conftest.$ac_ext <<_ACEOF
 
31538
/* confdefs.h.  */
 
31539
_ACEOF
 
31540
cat confdefs.h >>conftest.$ac_ext
 
31541
cat >>conftest.$ac_ext <<_ACEOF
 
31542
/* end confdefs.h.  */
 
31543
#if defined(CRAY) && ! defined(CRAY2)
 
31544
 webecray
 
31545
 #else
 
31546
 wenotbecray
 
31547
 #endif
 
31548
 
 
31549
_ACEOF
 
31550
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
31551
  $EGREP "webecray" >/dev/null 2>&1; then
 
31552
  ac_cv_os_cray=yes
 
31553
else
 
31554
  ac_cv_os_cray=no
 
31555
fi
 
31556
rm -f conftest*
 
31557
 
 
31558
fi
 
31559
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
31560
echo "${ECHO_T}$ac_cv_os_cray" >&6
 
31561
 if test "$ac_cv_os_cray" = "yes"; then
 
31562
 for ac_func in _getb67 GETB67 getb67; do
 
31563
   as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
31564
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
31565
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
31566
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
31567
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31568
else
 
31569
  cat >conftest.$ac_ext <<_ACEOF
 
31570
/* confdefs.h.  */
 
31571
_ACEOF
 
31572
cat confdefs.h >>conftest.$ac_ext
 
31573
cat >>conftest.$ac_ext <<_ACEOF
 
31574
/* end confdefs.h.  */
 
31575
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
31576
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
31577
#define $ac_func innocuous_$ac_func
 
31578
 
 
31579
/* System header to define __stub macros and hopefully few prototypes,
 
31580
    which can conflict with char $ac_func (); below.
 
31581
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
31582
    <limits.h> exists even on freestanding compilers.  */
 
31583
 
 
31584
#ifdef __STDC__
 
31585
# include <limits.h>
 
31586
#else
 
31587
# include <assert.h>
 
31588
#endif
 
31589
 
 
31590
#undef $ac_func
 
31591
 
 
31592
/* Override any gcc2 internal prototype to avoid an error.  */
 
31593
#ifdef __cplusplus
 
31594
extern "C"
 
31595
{
 
31596
#endif
 
31597
/* We use char because int might match the return type of a gcc2
 
31598
   builtin and then its argument prototype would still apply.  */
 
31599
char $ac_func ();
 
31600
/* The GNU C library defines this for functions which it implements
 
31601
    to always fail with ENOSYS.  Some functions are actually named
 
31602
    something starting with __ and the normal name is an alias.  */
 
31603
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
31604
choke me
 
31605
#else
 
31606
char (*f) () = $ac_func;
 
31607
#endif
 
31608
#ifdef __cplusplus
 
31609
}
 
31610
#endif
 
31611
 
 
31612
int
 
31613
main ()
 
31614
{
 
31615
return f != $ac_func;
 
31616
  ;
 
31617
  return 0;
 
31618
}
 
31619
_ACEOF
 
31620
rm -f conftest.$ac_objext conftest$ac_exeext
 
31621
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31622
  (eval $ac_link) 2>conftest.er1
 
31623
  ac_status=$?
 
31624
  grep -v '^ *+' conftest.er1 >conftest.err
 
31625
  rm -f conftest.er1
 
31626
  cat conftest.err >&5
 
31627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31628
  (exit $ac_status); } &&
 
31629
         { ac_try='test -z "$ac_c_werror_flag"
 
31630
                         || test ! -s conftest.err'
 
31631
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31632
  (eval $ac_try) 2>&5
 
31633
  ac_status=$?
 
31634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31635
  (exit $ac_status); }; } &&
 
31636
         { ac_try='test -s conftest$ac_exeext'
 
31637
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31638
  (eval $ac_try) 2>&5
 
31639
  ac_status=$?
 
31640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31641
  (exit $ac_status); }; }; then
 
31642
  eval "$as_ac_var=yes"
 
31643
else
 
31644
  echo "$as_me: failed program was:" >&5
 
31645
sed 's/^/| /' conftest.$ac_ext >&5
 
31646
 
 
31647
eval "$as_ac_var=no"
 
31648
fi
 
31649
rm -f conftest.err conftest.$ac_objext \
 
31650
      conftest$ac_exeext conftest.$ac_ext
 
31651
fi
 
31652
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
31653
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
31654
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
31655
  cat >>confdefs.h <<_ACEOF
 
31656
#define CRAY_STACKSEG_END $ac_func
 
31657
_ACEOF
 
31658
 
 
31659
   break
 
31660
fi
 
31661
 
 
31662
 done
 
31663
 fi
 
31664
 fi
 
31665
 else
 
31666
 echo "$as_me:$LINENO: result: \"Skipped alloca tests\"" >&5
 
31667
echo "${ECHO_T}\"Skipped alloca tests\"" >&6
 
31668
fi
 
31669
 
 
31670
# Do struct timespec have members tv_sec or ts_sec
 
31671
echo "$as_me:$LINENO: checking if struct timespec has a ts_sec member" >&5
 
31672
echo $ECHO_N "checking if struct timespec has a ts_sec member... $ECHO_C" >&6
 
31673
if test "${mysql_cv_timespec_ts+set}" = set; then
 
31674
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31675
else
 
31676
  cat >conftest.$ac_ext <<_ACEOF
 
31677
/* confdefs.h.  */
 
31678
_ACEOF
 
31679
cat confdefs.h >>conftest.$ac_ext
 
31680
cat >>conftest.$ac_ext <<_ACEOF
 
31681
/* end confdefs.h.  */
 
31682
#include <pthread.h>
 
31683
#ifdef __cplusplus
 
31684
extern "C"
 
31685
#endif
 
31686
 
 
31687
int
 
31688
main ()
 
31689
{
 
31690
struct timespec abstime;
 
31691
 
 
31692
abstime.ts_sec = time(NULL)+1;
 
31693
abstime.ts_nsec = 0;
 
31694
 
 
31695
  ;
 
31696
  return 0;
 
31697
}
 
31698
_ACEOF
 
31699
rm -f conftest.$ac_objext
 
31700
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31701
  (eval $ac_compile) 2>conftest.er1
 
31702
  ac_status=$?
 
31703
  grep -v '^ *+' conftest.er1 >conftest.err
 
31704
  rm -f conftest.er1
 
31705
  cat conftest.err >&5
 
31706
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31707
  (exit $ac_status); } &&
 
31708
         { ac_try='test -z "$ac_c_werror_flag"
 
31709
                         || test ! -s conftest.err'
 
31710
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31711
  (eval $ac_try) 2>&5
 
31712
  ac_status=$?
 
31713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31714
  (exit $ac_status); }; } &&
 
31715
         { ac_try='test -s conftest.$ac_objext'
 
31716
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31717
  (eval $ac_try) 2>&5
 
31718
  ac_status=$?
 
31719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31720
  (exit $ac_status); }; }; then
 
31721
  mysql_cv_timespec_ts=yes
 
31722
else
 
31723
  echo "$as_me: failed program was:" >&5
 
31724
sed 's/^/| /' conftest.$ac_ext >&5
 
31725
 
 
31726
mysql_cv_timespec_ts=no
 
31727
fi
 
31728
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31729
fi
 
31730
echo "$as_me:$LINENO: result: $mysql_cv_timespec_ts" >&5
 
31731
echo "${ECHO_T}$mysql_cv_timespec_ts" >&6
 
31732
if test "$mysql_cv_timespec_ts" = "yes"
 
31733
then
 
31734
 
 
31735
cat >>confdefs.h <<\_ACEOF
 
31736
#define HAVE_TIMESPEC_TS_SEC 1
 
31737
_ACEOF
 
31738
 
 
31739
fi
 
31740
 
 
31741
# Do we have the tzname variable
 
31742
echo "$as_me:$LINENO: checking if we have tzname variable" >&5
 
31743
echo $ECHO_N "checking if we have tzname variable... $ECHO_C" >&6
 
31744
if test "${mysql_cv_tzname+set}" = set; then
 
31745
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31746
else
 
31747
  cat >conftest.$ac_ext <<_ACEOF
 
31748
/* confdefs.h.  */
 
31749
_ACEOF
 
31750
cat confdefs.h >>conftest.$ac_ext
 
31751
cat >>conftest.$ac_ext <<_ACEOF
 
31752
/* end confdefs.h.  */
 
31753
#include <time.h>
 
31754
#ifdef __cplusplus
 
31755
extern "C"
 
31756
#endif
 
31757
 
 
31758
int
 
31759
main ()
 
31760
{
 
31761
 tzset();
 
31762
  return tzname[0] != 0;
 
31763
 
 
31764
  ;
 
31765
  return 0;
 
31766
}
 
31767
_ACEOF
 
31768
rm -f conftest.$ac_objext
 
31769
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
31770
  (eval $ac_compile) 2>conftest.er1
 
31771
  ac_status=$?
 
31772
  grep -v '^ *+' conftest.er1 >conftest.err
 
31773
  rm -f conftest.er1
 
31774
  cat conftest.err >&5
 
31775
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31776
  (exit $ac_status); } &&
 
31777
         { ac_try='test -z "$ac_c_werror_flag"
 
31778
                         || test ! -s conftest.err'
 
31779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31780
  (eval $ac_try) 2>&5
 
31781
  ac_status=$?
 
31782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31783
  (exit $ac_status); }; } &&
 
31784
         { ac_try='test -s conftest.$ac_objext'
 
31785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31786
  (eval $ac_try) 2>&5
 
31787
  ac_status=$?
 
31788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31789
  (exit $ac_status); }; }; then
 
31790
  mysql_cv_tzname=yes
 
31791
else
 
31792
  echo "$as_me: failed program was:" >&5
 
31793
sed 's/^/| /' conftest.$ac_ext >&5
 
31794
 
 
31795
mysql_cv_tzname=no
 
31796
fi
 
31797
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
31798
fi
 
31799
echo "$as_me:$LINENO: result: $mysql_cv_tzname" >&5
 
31800
echo "${ECHO_T}$mysql_cv_tzname" >&6
 
31801
if test "$mysql_cv_tzname" = "yes"
 
31802
then
 
31803
 
 
31804
cat >>confdefs.h <<\_ACEOF
 
31805
#define HAVE_TZNAME 1
 
31806
_ACEOF
 
31807
 
 
31808
fi
 
31809
 
 
31810
# Do the system files define ulong
 
31811
echo "$as_me:$LINENO: checking for type ulong" >&5
 
31812
echo $ECHO_N "checking for type ulong... $ECHO_C" >&6
 
31813
if test "${ac_cv_ulong+set}" = set; then
 
31814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31815
else
 
31816
  if test "$cross_compiling" = yes; then
 
31817
  ac_cv_ulong=no
 
31818
else
 
31819
  cat >conftest.$ac_ext <<_ACEOF
 
31820
/* confdefs.h.  */
 
31821
_ACEOF
 
31822
cat confdefs.h >>conftest.$ac_ext
 
31823
cat >>conftest.$ac_ext <<_ACEOF
 
31824
/* end confdefs.h.  */
 
31825
#include <stdio.h>
 
31826
#include <sys/types.h>
 
31827
main()
 
31828
{
 
31829
  ulong foo;
 
31830
  foo++;
 
31831
  exit(0);
 
31832
}
 
31833
_ACEOF
 
31834
rm -f conftest$ac_exeext
 
31835
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31836
  (eval $ac_link) 2>&5
 
31837
  ac_status=$?
 
31838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31839
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
31840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31841
  (eval $ac_try) 2>&5
 
31842
  ac_status=$?
 
31843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31844
  (exit $ac_status); }; }; then
 
31845
  ac_cv_ulong=yes
 
31846
else
 
31847
  echo "$as_me: program exited with status $ac_status" >&5
 
31848
echo "$as_me: failed program was:" >&5
 
31849
sed 's/^/| /' conftest.$ac_ext >&5
 
31850
 
 
31851
( exit $ac_status )
 
31852
ac_cv_ulong=no
 
31853
fi
 
31854
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
31855
fi
 
31856
fi
 
31857
 
 
31858
echo "$as_me:$LINENO: result: $ac_cv_ulong" >&5
 
31859
echo "${ECHO_T}$ac_cv_ulong" >&6
 
31860
if test "$ac_cv_ulong" = "yes"
 
31861
then
 
31862
 
 
31863
cat >>confdefs.h <<\_ACEOF
 
31864
#define HAVE_ULONG 1
 
31865
_ACEOF
 
31866
 
 
31867
fi
 
31868
 
 
31869
# Do the system files define uchar
 
31870
echo "$as_me:$LINENO: checking for type uchar" >&5
 
31871
echo $ECHO_N "checking for type uchar... $ECHO_C" >&6
 
31872
if test "${ac_cv_uchar+set}" = set; then
 
31873
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31874
else
 
31875
  if test "$cross_compiling" = yes; then
 
31876
  ac_cv_uchar=no
 
31877
else
 
31878
  cat >conftest.$ac_ext <<_ACEOF
 
31879
/* confdefs.h.  */
 
31880
_ACEOF
 
31881
cat confdefs.h >>conftest.$ac_ext
 
31882
cat >>conftest.$ac_ext <<_ACEOF
 
31883
/* end confdefs.h.  */
 
31884
#include <stdio.h>
 
31885
#include <sys/types.h>
 
31886
main()
 
31887
{
 
31888
  uchar foo;
 
31889
  foo++;
 
31890
  exit(0);
 
31891
}
 
31892
_ACEOF
 
31893
rm -f conftest$ac_exeext
 
31894
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31895
  (eval $ac_link) 2>&5
 
31896
  ac_status=$?
 
31897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31898
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
31899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31900
  (eval $ac_try) 2>&5
 
31901
  ac_status=$?
 
31902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31903
  (exit $ac_status); }; }; then
 
31904
  ac_cv_uchar=yes
 
31905
else
 
31906
  echo "$as_me: program exited with status $ac_status" >&5
 
31907
echo "$as_me: failed program was:" >&5
 
31908
sed 's/^/| /' conftest.$ac_ext >&5
 
31909
 
 
31910
( exit $ac_status )
 
31911
ac_cv_uchar=no
 
31912
fi
 
31913
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
31914
fi
 
31915
fi
 
31916
 
 
31917
echo "$as_me:$LINENO: result: $ac_cv_uchar" >&5
 
31918
echo "${ECHO_T}$ac_cv_uchar" >&6
 
31919
if test "$ac_cv_uchar" = "yes"
 
31920
then
 
31921
 
 
31922
cat >>confdefs.h <<\_ACEOF
 
31923
#define HAVE_UCHAR 1
 
31924
_ACEOF
 
31925
 
 
31926
fi
 
31927
 
 
31928
# Do the system files define uint
 
31929
echo "$as_me:$LINENO: checking for type uint" >&5
 
31930
echo $ECHO_N "checking for type uint... $ECHO_C" >&6
 
31931
if test "${ac_cv_uint+set}" = set; then
 
31932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31933
else
 
31934
  if test "$cross_compiling" = yes; then
 
31935
  ac_cv_uint=no
 
31936
else
 
31937
  cat >conftest.$ac_ext <<_ACEOF
 
31938
/* confdefs.h.  */
 
31939
_ACEOF
 
31940
cat confdefs.h >>conftest.$ac_ext
 
31941
cat >>conftest.$ac_ext <<_ACEOF
 
31942
/* end confdefs.h.  */
 
31943
#include <stdio.h>
 
31944
#include <sys/types.h>
 
31945
main()
 
31946
{
 
31947
  uint foo;
 
31948
  foo++;
 
31949
  exit(0);
 
31950
}
 
31951
_ACEOF
 
31952
rm -f conftest$ac_exeext
 
31953
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
31954
  (eval $ac_link) 2>&5
 
31955
  ac_status=$?
 
31956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31957
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
31958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
31959
  (eval $ac_try) 2>&5
 
31960
  ac_status=$?
 
31961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
31962
  (exit $ac_status); }; }; then
 
31963
  ac_cv_uint=yes
 
31964
else
 
31965
  echo "$as_me: program exited with status $ac_status" >&5
 
31966
echo "$as_me: failed program was:" >&5
 
31967
sed 's/^/| /' conftest.$ac_ext >&5
 
31968
 
 
31969
( exit $ac_status )
 
31970
ac_cv_uint=no
 
31971
fi
 
31972
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
31973
fi
 
31974
fi
 
31975
 
 
31976
echo "$as_me:$LINENO: result: $ac_cv_uint" >&5
 
31977
echo "${ECHO_T}$ac_cv_uint" >&6
 
31978
if test "$ac_cv_uint" = "yes"
 
31979
then
 
31980
 
 
31981
cat >>confdefs.h <<\_ACEOF
 
31982
#define HAVE_UINT 1
 
31983
_ACEOF
 
31984
 
 
31985
fi
 
31986
 
 
31987
# Check for fp_except in ieeefp.h
 
31988
echo "$as_me:$LINENO: checking for type fp_except" >&5
 
31989
echo $ECHO_N "checking for type fp_except... $ECHO_C" >&6
 
31990
if test "${ac_cv_fp_except+set}" = set; then
 
31991
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
31992
else
 
31993
  if test "$cross_compiling" = yes; then
 
31994
  ac_cv_fp_except=no
 
31995
else
 
31996
  cat >conftest.$ac_ext <<_ACEOF
 
31997
/* confdefs.h.  */
 
31998
_ACEOF
 
31999
cat confdefs.h >>conftest.$ac_ext
 
32000
cat >>conftest.$ac_ext <<_ACEOF
 
32001
/* end confdefs.h.  */
 
32002
#include <stdio.h>
 
32003
#include <sys/types.h>
 
32004
#include <ieeefp.h>
 
32005
main()
 
32006
{
 
32007
  fp_except foo;
 
32008
  foo++;
 
32009
  exit(0);
 
32010
}
 
32011
_ACEOF
 
32012
rm -f conftest$ac_exeext
 
32013
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32014
  (eval $ac_link) 2>&5
 
32015
  ac_status=$?
 
32016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32017
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
32018
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32019
  (eval $ac_try) 2>&5
 
32020
  ac_status=$?
 
32021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32022
  (exit $ac_status); }; }; then
 
32023
  ac_cv_fp_except=yes
 
32024
else
 
32025
  echo "$as_me: program exited with status $ac_status" >&5
 
32026
echo "$as_me: failed program was:" >&5
 
32027
sed 's/^/| /' conftest.$ac_ext >&5
 
32028
 
 
32029
( exit $ac_status )
 
32030
ac_cv_fp_except=no
 
32031
fi
 
32032
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32033
fi
 
32034
fi
 
32035
 
 
32036
echo "$as_me:$LINENO: result: $ac_cv_fp_except" >&5
 
32037
echo "${ECHO_T}$ac_cv_fp_except" >&6
 
32038
if test "$ac_cv_fp_except" = "yes"
 
32039
then
 
32040
 
 
32041
cat >>confdefs.h <<\_ACEOF
 
32042
#define HAVE_FP_EXCEPT 1
 
32043
_ACEOF
 
32044
 
 
32045
fi
 
32046
 
 
32047
# Check for IN_ADDR_T
 
32048
echo "$as_me:$LINENO: checking for type in_addr_t" >&5
 
32049
echo $ECHO_N "checking for type in_addr_t... $ECHO_C" >&6
 
32050
if test "${ac_cv_in_addr_t+set}" = set; then
 
32051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32052
else
 
32053
  if test "$cross_compiling" = yes; then
 
32054
  ac_cv_in_addr_t=no
 
32055
else
 
32056
  cat >conftest.$ac_ext <<_ACEOF
 
32057
/* confdefs.h.  */
 
32058
_ACEOF
 
32059
cat confdefs.h >>conftest.$ac_ext
 
32060
cat >>conftest.$ac_ext <<_ACEOF
 
32061
/* end confdefs.h.  */
 
32062
#include <stdio.h>
 
32063
#include <sys/types.h>
 
32064
#include <sys/socket.h>
 
32065
#include <netinet/in.h>
 
32066
#include <arpa/inet.h>
 
32067
 
 
32068
int main(int argc, char **argv)
 
32069
{
 
32070
  in_addr_t foo;
 
32071
  exit(0);
 
32072
}
 
32073
_ACEOF
 
32074
rm -f conftest$ac_exeext
 
32075
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32076
  (eval $ac_link) 2>&5
 
32077
  ac_status=$?
 
32078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32079
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
32080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32081
  (eval $ac_try) 2>&5
 
32082
  ac_status=$?
 
32083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32084
  (exit $ac_status); }; }; then
 
32085
  ac_cv_in_addr_t=yes
 
32086
else
 
32087
  echo "$as_me: program exited with status $ac_status" >&5
 
32088
echo "$as_me: failed program was:" >&5
 
32089
sed 's/^/| /' conftest.$ac_ext >&5
 
32090
 
 
32091
( exit $ac_status )
 
32092
ac_cv_in_addr_t=no
 
32093
fi
 
32094
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32095
fi
 
32096
fi
 
32097
 
 
32098
echo "$as_me:$LINENO: result: $ac_cv_in_addr_t" >&5
 
32099
echo "${ECHO_T}$ac_cv_in_addr_t" >&6
 
32100
if test "$ac_cv_in_addr_t" = "yes"
 
32101
then
 
32102
 
 
32103
cat >>confdefs.h <<\_ACEOF
 
32104
#define HAVE_IN_ADDR_T 1
 
32105
_ACEOF
 
32106
 
 
32107
fi
 
32108
 
 
32109
# Do the c++ compiler have a bool type
 
32110
 
 
32111
 
 
32112
echo "$as_me:$LINENO: checking if ${CXX} supports bool types" >&5
 
32113
echo $ECHO_N "checking if ${CXX} supports bool types... $ECHO_C" >&6
 
32114
if test "${mysql_cv_have_bool+set}" = set; then
 
32115
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32116
else
 
32117
 
 
32118
 
 
32119
 
 
32120
ac_ext=cc
 
32121
ac_cpp='$CXXCPP $CPPFLAGS'
 
32122
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
32123
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
32124
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
32125
 
 
32126
cat >conftest.$ac_ext <<_ACEOF
 
32127
/* confdefs.h.  */
 
32128
_ACEOF
 
32129
cat confdefs.h >>conftest.$ac_ext
 
32130
cat >>conftest.$ac_ext <<_ACEOF
 
32131
/* end confdefs.h.  */
 
32132
 
 
32133
int
 
32134
main ()
 
32135
{
 
32136
bool b = true;
 
32137
  ;
 
32138
  return 0;
 
32139
}
 
32140
_ACEOF
 
32141
rm -f conftest.$ac_objext
 
32142
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32143
  (eval $ac_compile) 2>conftest.er1
 
32144
  ac_status=$?
 
32145
  grep -v '^ *+' conftest.er1 >conftest.err
 
32146
  rm -f conftest.er1
 
32147
  cat conftest.err >&5
 
32148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32149
  (exit $ac_status); } &&
 
32150
         { ac_try='test -z "$ac_cxx_werror_flag"
 
32151
                         || test ! -s conftest.err'
 
32152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32153
  (eval $ac_try) 2>&5
 
32154
  ac_status=$?
 
32155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32156
  (exit $ac_status); }; } &&
 
32157
         { ac_try='test -s conftest.$ac_objext'
 
32158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32159
  (eval $ac_try) 2>&5
 
32160
  ac_status=$?
 
32161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32162
  (exit $ac_status); }; }; then
 
32163
  mysql_cv_have_bool=yes
 
32164
else
 
32165
  echo "$as_me: failed program was:" >&5
 
32166
sed 's/^/| /' conftest.$ac_ext >&5
 
32167
 
 
32168
mysql_cv_have_bool=no
 
32169
fi
 
32170
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32171
ac_ext=c
 
32172
ac_cpp='$CPP $CPPFLAGS'
 
32173
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
32174
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
32175
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
32176
 
 
32177
 
 
32178
fi
 
32179
 
 
32180
echo "$as_me:$LINENO: result: $mysql_cv_have_bool" >&5
 
32181
echo "${ECHO_T}$mysql_cv_have_bool" >&6
 
32182
if test "$mysql_cv_have_bool" = yes; then
 
32183
 
 
32184
cat >>confdefs.h <<\_ACEOF
 
32185
#define HAVE_BOOL 1
 
32186
_ACEOF
 
32187
 
 
32188
fi
 
32189
 
 
32190
# Check some common bugs with gcc 2.8.# on sparc
 
32191
if ! ( expr "$SYSTEM_TYPE" : ".*netware.*" > /dev/null ); then
 
32192
 
 
32193
echo "$as_me:$LINENO: checking if conversion of longlong to float works" >&5
 
32194
echo $ECHO_N "checking if conversion of longlong to float works... $ECHO_C" >&6
 
32195
if test "${ac_cv_conv_longlong_to_float+set}" = set; then
 
32196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32197
else
 
32198
  if test "$cross_compiling" = yes; then
 
32199
  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
 
32200
See \`config.log' for more details." >&5
 
32201
echo "$as_me: error: cannot run test program while cross compiling
 
32202
See \`config.log' for more details." >&2;}
 
32203
   { (exit 1); exit 1; }; }
 
32204
else
 
32205
  cat >conftest.$ac_ext <<_ACEOF
 
32206
/* confdefs.h.  */
 
32207
_ACEOF
 
32208
cat confdefs.h >>conftest.$ac_ext
 
32209
cat >>conftest.$ac_ext <<_ACEOF
 
32210
/* end confdefs.h.  */
 
32211
#include <stdio.h>
 
32212
typedef long long longlong;
 
32213
main()
 
32214
{
 
32215
  longlong ll=1;
 
32216
  float f;
 
32217
  FILE *file=fopen("conftestval", "w");
 
32218
  f = (float) ll;
 
32219
  fprintf(file,"%g\n",f);
 
32220
  fclose(file);
 
32221
  exit (0);
 
32222
}
 
32223
_ACEOF
 
32224
rm -f conftest$ac_exeext
 
32225
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32226
  (eval $ac_link) 2>&5
 
32227
  ac_status=$?
 
32228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32229
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
32230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32231
  (eval $ac_try) 2>&5
 
32232
  ac_status=$?
 
32233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32234
  (exit $ac_status); }; }; then
 
32235
  ac_cv_conv_longlong_to_float=`cat conftestval`
 
32236
else
 
32237
  echo "$as_me: program exited with status $ac_status" >&5
 
32238
echo "$as_me: failed program was:" >&5
 
32239
sed 's/^/| /' conftest.$ac_ext >&5
 
32240
 
 
32241
( exit $ac_status )
 
32242
ac_cv_conv_longlong_to_float=0
 
32243
fi
 
32244
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
32245
fi
 
32246
fi
 
32247
if test "$ac_cv_conv_longlong_to_float" = "1" -o "$ac_cv_conv_longlong_to_float" = "yes"
 
32248
then
 
32249
  ac_cv_conv_longlong_to_float=yes
 
32250
else
 
32251
  ac_cv_conv_longlong_to_float=no
 
32252
fi
 
32253
echo "$as_me:$LINENO: result: $ac_cv_conv_longlong_to_float" >&5
 
32254
echo "${ECHO_T}$ac_cv_conv_longlong_to_float" >&6
 
32255
 
 
32256
if test "$ac_cv_conv_longlong_to_float" != "yes"
 
32257
then
 
32258
  { { echo "$as_me:$LINENO: error: Your compiler cannot convert a longlong value to a float!
 
32259
If you are using gcc 2.8.# you should upgrade to egcs 1.0.3 or newer and try
 
32260
again" >&5
 
32261
echo "$as_me: error: Your compiler cannot convert a longlong value to a float!
 
32262
If you are using gcc 2.8.# you should upgrade to egcs 1.0.3 or newer and try
 
32263
again" >&2;}
 
32264
   { (exit 1); exit 1; }; };
 
32265
fi
 
32266
fi
 
32267
echo "$as_me:$LINENO: checking for sigset_t" >&5
 
32268
echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
 
32269
if test "${ac_cv_type_sigset_t+set}" = set; then
 
32270
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32271
else
 
32272
  cat >conftest.$ac_ext <<_ACEOF
 
32273
/* confdefs.h.  */
 
32274
_ACEOF
 
32275
cat confdefs.h >>conftest.$ac_ext
 
32276
cat >>conftest.$ac_ext <<_ACEOF
 
32277
/* end confdefs.h.  */
 
32278
#include <sys/types.h>
 
32279
 
 
32280
int
 
32281
main ()
 
32282
{
 
32283
if ((sigset_t *) 0)
 
32284
  return 0;
 
32285
if (sizeof (sigset_t))
 
32286
  return 0;
 
32287
  ;
 
32288
  return 0;
 
32289
}
 
32290
_ACEOF
 
32291
rm -f conftest.$ac_objext
 
32292
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32293
  (eval $ac_compile) 2>conftest.er1
 
32294
  ac_status=$?
 
32295
  grep -v '^ *+' conftest.er1 >conftest.err
 
32296
  rm -f conftest.er1
 
32297
  cat conftest.err >&5
 
32298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32299
  (exit $ac_status); } &&
 
32300
         { ac_try='test -z "$ac_c_werror_flag"
 
32301
                         || test ! -s conftest.err'
 
32302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32303
  (eval $ac_try) 2>&5
 
32304
  ac_status=$?
 
32305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32306
  (exit $ac_status); }; } &&
 
32307
         { ac_try='test -s conftest.$ac_objext'
 
32308
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32309
  (eval $ac_try) 2>&5
 
32310
  ac_status=$?
 
32311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32312
  (exit $ac_status); }; }; then
 
32313
  ac_cv_type_sigset_t=yes
 
32314
else
 
32315
  echo "$as_me: failed program was:" >&5
 
32316
sed 's/^/| /' conftest.$ac_ext >&5
 
32317
 
 
32318
ac_cv_type_sigset_t=no
 
32319
fi
 
32320
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32321
fi
 
32322
echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
 
32323
echo "${ECHO_T}$ac_cv_type_sigset_t" >&6
 
32324
if test $ac_cv_type_sigset_t = yes; then
 
32325
 
 
32326
cat >>confdefs.h <<_ACEOF
 
32327
#define HAVE_SIGSET_T 1
 
32328
_ACEOF
 
32329
 
 
32330
 
 
32331
fi
 
32332
echo "$as_me:$LINENO: checking for off_t" >&5
 
32333
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
32334
if test "${ac_cv_type_off_t+set}" = set; then
 
32335
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32336
else
 
32337
  cat >conftest.$ac_ext <<_ACEOF
 
32338
/* confdefs.h.  */
 
32339
_ACEOF
 
32340
cat confdefs.h >>conftest.$ac_ext
 
32341
cat >>conftest.$ac_ext <<_ACEOF
 
32342
/* end confdefs.h.  */
 
32343
#include <sys/types.h>
 
32344
 
 
32345
int
 
32346
main ()
 
32347
{
 
32348
if ((off_t *) 0)
 
32349
  return 0;
 
32350
if (sizeof (off_t))
 
32351
  return 0;
 
32352
  ;
 
32353
  return 0;
 
32354
}
 
32355
_ACEOF
 
32356
rm -f conftest.$ac_objext
 
32357
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32358
  (eval $ac_compile) 2>conftest.er1
 
32359
  ac_status=$?
 
32360
  grep -v '^ *+' conftest.er1 >conftest.err
 
32361
  rm -f conftest.er1
 
32362
  cat conftest.err >&5
 
32363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32364
  (exit $ac_status); } &&
 
32365
         { ac_try='test -z "$ac_c_werror_flag"
 
32366
                         || test ! -s conftest.err'
 
32367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32368
  (eval $ac_try) 2>&5
 
32369
  ac_status=$?
 
32370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32371
  (exit $ac_status); }; } &&
 
32372
         { ac_try='test -s conftest.$ac_objext'
 
32373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32374
  (eval $ac_try) 2>&5
 
32375
  ac_status=$?
 
32376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32377
  (exit $ac_status); }; }; then
 
32378
  ac_cv_type_off_t=yes
 
32379
else
 
32380
  echo "$as_me: failed program was:" >&5
 
32381
sed 's/^/| /' conftest.$ac_ext >&5
 
32382
 
 
32383
ac_cv_type_off_t=no
 
32384
fi
 
32385
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32386
fi
 
32387
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
32388
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
32389
if test $ac_cv_type_off_t = yes; then
 
32390
 
 
32391
cat >>confdefs.h <<_ACEOF
 
32392
#define HAVE_OFF_T 1
 
32393
_ACEOF
 
32394
 
 
32395
 
 
32396
fi
 
32397
 
 
32398
echo "$as_me:$LINENO: checking for size_t" >&5
 
32399
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
32400
if test "${ac_cv_type_size_t+set}" = set; then
 
32401
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32402
else
 
32403
  cat >conftest.$ac_ext <<_ACEOF
 
32404
/* confdefs.h.  */
 
32405
_ACEOF
 
32406
cat confdefs.h >>conftest.$ac_ext
 
32407
cat >>conftest.$ac_ext <<_ACEOF
 
32408
/* end confdefs.h.  */
 
32409
#include <stdio.h>
 
32410
 
 
32411
int
 
32412
main ()
 
32413
{
 
32414
if ((size_t *) 0)
 
32415
  return 0;
 
32416
if (sizeof (size_t))
 
32417
  return 0;
 
32418
  ;
 
32419
  return 0;
 
32420
}
 
32421
_ACEOF
 
32422
rm -f conftest.$ac_objext
 
32423
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32424
  (eval $ac_compile) 2>conftest.er1
 
32425
  ac_status=$?
 
32426
  grep -v '^ *+' conftest.er1 >conftest.err
 
32427
  rm -f conftest.er1
 
32428
  cat conftest.err >&5
 
32429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32430
  (exit $ac_status); } &&
 
32431
         { ac_try='test -z "$ac_c_werror_flag"
 
32432
                         || test ! -s conftest.err'
 
32433
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32434
  (eval $ac_try) 2>&5
 
32435
  ac_status=$?
 
32436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32437
  (exit $ac_status); }; } &&
 
32438
         { ac_try='test -s conftest.$ac_objext'
 
32439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32440
  (eval $ac_try) 2>&5
 
32441
  ac_status=$?
 
32442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32443
  (exit $ac_status); }; }; then
 
32444
  ac_cv_type_size_t=yes
 
32445
else
 
32446
  echo "$as_me: failed program was:" >&5
 
32447
sed 's/^/| /' conftest.$ac_ext >&5
 
32448
 
 
32449
ac_cv_type_size_t=no
 
32450
fi
 
32451
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32452
fi
 
32453
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
32454
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
32455
if test $ac_cv_type_size_t = yes; then
 
32456
 
 
32457
cat >>confdefs.h <<_ACEOF
 
32458
#define HAVE_SIZE_T 1
 
32459
_ACEOF
 
32460
 
 
32461
 
 
32462
fi
 
32463
 
 
32464
echo "$as_me:$LINENO: checking for u_int32_t" >&5
 
32465
echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
 
32466
if test "${ac_cv_type_u_int32_t+set}" = set; then
 
32467
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32468
else
 
32469
  cat >conftest.$ac_ext <<_ACEOF
 
32470
/* confdefs.h.  */
 
32471
_ACEOF
 
32472
cat confdefs.h >>conftest.$ac_ext
 
32473
cat >>conftest.$ac_ext <<_ACEOF
 
32474
/* end confdefs.h.  */
 
32475
$ac_includes_default
 
32476
int
 
32477
main ()
 
32478
{
 
32479
if ((u_int32_t *) 0)
 
32480
  return 0;
 
32481
if (sizeof (u_int32_t))
 
32482
  return 0;
 
32483
  ;
 
32484
  return 0;
 
32485
}
 
32486
_ACEOF
 
32487
rm -f conftest.$ac_objext
 
32488
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32489
  (eval $ac_compile) 2>conftest.er1
 
32490
  ac_status=$?
 
32491
  grep -v '^ *+' conftest.er1 >conftest.err
 
32492
  rm -f conftest.er1
 
32493
  cat conftest.err >&5
 
32494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32495
  (exit $ac_status); } &&
 
32496
         { ac_try='test -z "$ac_c_werror_flag"
 
32497
                         || test ! -s conftest.err'
 
32498
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32499
  (eval $ac_try) 2>&5
 
32500
  ac_status=$?
 
32501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32502
  (exit $ac_status); }; } &&
 
32503
         { ac_try='test -s conftest.$ac_objext'
 
32504
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32505
  (eval $ac_try) 2>&5
 
32506
  ac_status=$?
 
32507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32508
  (exit $ac_status); }; }; then
 
32509
  ac_cv_type_u_int32_t=yes
 
32510
else
 
32511
  echo "$as_me: failed program was:" >&5
 
32512
sed 's/^/| /' conftest.$ac_ext >&5
 
32513
 
 
32514
ac_cv_type_u_int32_t=no
 
32515
fi
 
32516
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32517
fi
 
32518
echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
 
32519
echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
 
32520
if test $ac_cv_type_u_int32_t = yes; then
 
32521
 
 
32522
cat >>confdefs.h <<_ACEOF
 
32523
#define HAVE_U_INT32_T 1
 
32524
_ACEOF
 
32525
 
 
32526
 
 
32527
fi
 
32528
 
 
32529
 
 
32530
echo "$as_me:$LINENO: checking if pthread_yield takes zero arguments" >&5
 
32531
echo $ECHO_N "checking if pthread_yield takes zero arguments... $ECHO_C" >&6
 
32532
if test "${ac_cv_pthread_yield_zero_arg+set}" = set; then
 
32533
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32534
else
 
32535
  cat >conftest.$ac_ext <<_ACEOF
 
32536
/* confdefs.h.  */
 
32537
_ACEOF
 
32538
cat confdefs.h >>conftest.$ac_ext
 
32539
cat >>conftest.$ac_ext <<_ACEOF
 
32540
/* end confdefs.h.  */
 
32541
#define _GNU_SOURCE
 
32542
#include <pthread.h>
 
32543
#ifdef __cplusplus
 
32544
extern "C"
 
32545
#endif
 
32546
 
 
32547
int
 
32548
main ()
 
32549
{
 
32550
 
 
32551
  pthread_yield();
 
32552
 
 
32553
  ;
 
32554
  return 0;
 
32555
}
 
32556
_ACEOF
 
32557
rm -f conftest.$ac_objext conftest$ac_exeext
 
32558
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32559
  (eval $ac_link) 2>conftest.er1
 
32560
  ac_status=$?
 
32561
  grep -v '^ *+' conftest.er1 >conftest.err
 
32562
  rm -f conftest.er1
 
32563
  cat conftest.err >&5
 
32564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32565
  (exit $ac_status); } &&
 
32566
         { ac_try='test -z "$ac_c_werror_flag"
 
32567
                         || test ! -s conftest.err'
 
32568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32569
  (eval $ac_try) 2>&5
 
32570
  ac_status=$?
 
32571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32572
  (exit $ac_status); }; } &&
 
32573
         { ac_try='test -s conftest$ac_exeext'
 
32574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32575
  (eval $ac_try) 2>&5
 
32576
  ac_status=$?
 
32577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32578
  (exit $ac_status); }; }; then
 
32579
  ac_cv_pthread_yield_zero_arg=yes
 
32580
else
 
32581
  echo "$as_me: failed program was:" >&5
 
32582
sed 's/^/| /' conftest.$ac_ext >&5
 
32583
 
 
32584
ac_cv_pthread_yield_zero_arg=yeso
 
32585
fi
 
32586
rm -f conftest.err conftest.$ac_objext \
 
32587
      conftest$ac_exeext conftest.$ac_ext
 
32588
fi
 
32589
echo "$as_me:$LINENO: result: $ac_cv_pthread_yield_zero_arg" >&5
 
32590
echo "${ECHO_T}$ac_cv_pthread_yield_zero_arg" >&6
 
32591
if test "$ac_cv_pthread_yield_zero_arg" = "yes"
 
32592
then
 
32593
 
 
32594
cat >>confdefs.h <<\_ACEOF
 
32595
#define HAVE_PTHREAD_YIELD_ZERO_ARG 1
 
32596
_ACEOF
 
32597
 
 
32598
fi
 
32599
 
 
32600
echo "$as_me:$LINENO: checking if pthread_yield takes 1 argument" >&5
 
32601
echo $ECHO_N "checking if pthread_yield takes 1 argument... $ECHO_C" >&6
 
32602
if test "${ac_cv_pthread_yield_one_arg+set}" = set; then
 
32603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32604
else
 
32605
  cat >conftest.$ac_ext <<_ACEOF
 
32606
/* confdefs.h.  */
 
32607
_ACEOF
 
32608
cat confdefs.h >>conftest.$ac_ext
 
32609
cat >>conftest.$ac_ext <<_ACEOF
 
32610
/* end confdefs.h.  */
 
32611
#define _GNU_SOURCE
 
32612
#include <pthread.h>
 
32613
#ifdef __cplusplus
 
32614
extern "C"
 
32615
#endif
 
32616
 
 
32617
int
 
32618
main ()
 
32619
{
 
32620
 
 
32621
  pthread_yield(0);
 
32622
 
 
32623
  ;
 
32624
  return 0;
 
32625
}
 
32626
_ACEOF
 
32627
rm -f conftest.$ac_objext conftest$ac_exeext
 
32628
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32629
  (eval $ac_link) 2>conftest.er1
 
32630
  ac_status=$?
 
32631
  grep -v '^ *+' conftest.er1 >conftest.err
 
32632
  rm -f conftest.er1
 
32633
  cat conftest.err >&5
 
32634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32635
  (exit $ac_status); } &&
 
32636
         { ac_try='test -z "$ac_c_werror_flag"
 
32637
                         || test ! -s conftest.err'
 
32638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32639
  (eval $ac_try) 2>&5
 
32640
  ac_status=$?
 
32641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32642
  (exit $ac_status); }; } &&
 
32643
         { ac_try='test -s conftest$ac_exeext'
 
32644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32645
  (eval $ac_try) 2>&5
 
32646
  ac_status=$?
 
32647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32648
  (exit $ac_status); }; }; then
 
32649
  ac_cv_pthread_yield_one_arg=yes
 
32650
else
 
32651
  echo "$as_me: failed program was:" >&5
 
32652
sed 's/^/| /' conftest.$ac_ext >&5
 
32653
 
 
32654
ac_cv_pthread_yield_one_arg=no
 
32655
fi
 
32656
rm -f conftest.err conftest.$ac_objext \
 
32657
      conftest$ac_exeext conftest.$ac_ext
 
32658
fi
 
32659
echo "$as_me:$LINENO: result: $ac_cv_pthread_yield_one_arg" >&5
 
32660
echo "${ECHO_T}$ac_cv_pthread_yield_one_arg" >&6
 
32661
if test "$ac_cv_pthread_yield_one_arg" = "yes"
 
32662
then
 
32663
 
 
32664
cat >>confdefs.h <<\_ACEOF
 
32665
#define HAVE_PTHREAD_YIELD_ONE_ARG 1
 
32666
_ACEOF
 
32667
 
 
32668
fi
 
32669
 
 
32670
 
 
32671
 
 
32672
######################################################################
 
32673
# For readline/libedit (We simply move the mimimum amount of stuff from
 
32674
# the readline/libedit configure.in here)
 
32675
 
 
32676
 
 
32677
 
 
32678
for ac_header in malloc.h sys/cdefs.h
 
32679
do
 
32680
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
32681
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
32682
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
32683
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
32684
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
32685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32686
fi
 
32687
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
32688
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
32689
else
 
32690
  # Is the header compilable?
 
32691
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
32692
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
32693
cat >conftest.$ac_ext <<_ACEOF
 
32694
/* confdefs.h.  */
 
32695
_ACEOF
 
32696
cat confdefs.h >>conftest.$ac_ext
 
32697
cat >>conftest.$ac_ext <<_ACEOF
 
32698
/* end confdefs.h.  */
 
32699
$ac_includes_default
 
32700
#include <$ac_header>
 
32701
_ACEOF
 
32702
rm -f conftest.$ac_objext
 
32703
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
32704
  (eval $ac_compile) 2>conftest.er1
 
32705
  ac_status=$?
 
32706
  grep -v '^ *+' conftest.er1 >conftest.err
 
32707
  rm -f conftest.er1
 
32708
  cat conftest.err >&5
 
32709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32710
  (exit $ac_status); } &&
 
32711
         { ac_try='test -z "$ac_c_werror_flag"
 
32712
                         || test ! -s conftest.err'
 
32713
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32714
  (eval $ac_try) 2>&5
 
32715
  ac_status=$?
 
32716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32717
  (exit $ac_status); }; } &&
 
32718
         { ac_try='test -s conftest.$ac_objext'
 
32719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32720
  (eval $ac_try) 2>&5
 
32721
  ac_status=$?
 
32722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32723
  (exit $ac_status); }; }; then
 
32724
  ac_header_compiler=yes
 
32725
else
 
32726
  echo "$as_me: failed program was:" >&5
 
32727
sed 's/^/| /' conftest.$ac_ext >&5
 
32728
 
 
32729
ac_header_compiler=no
 
32730
fi
 
32731
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
32732
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
32733
echo "${ECHO_T}$ac_header_compiler" >&6
 
32734
 
 
32735
# Is the header present?
 
32736
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
32737
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
32738
cat >conftest.$ac_ext <<_ACEOF
 
32739
/* confdefs.h.  */
 
32740
_ACEOF
 
32741
cat confdefs.h >>conftest.$ac_ext
 
32742
cat >>conftest.$ac_ext <<_ACEOF
 
32743
/* end confdefs.h.  */
 
32744
#include <$ac_header>
 
32745
_ACEOF
 
32746
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
32747
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
32748
  ac_status=$?
 
32749
  grep -v '^ *+' conftest.er1 >conftest.err
 
32750
  rm -f conftest.er1
 
32751
  cat conftest.err >&5
 
32752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32753
  (exit $ac_status); } >/dev/null; then
 
32754
  if test -s conftest.err; then
 
32755
    ac_cpp_err=$ac_c_preproc_warn_flag
 
32756
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
32757
  else
 
32758
    ac_cpp_err=
 
32759
  fi
 
32760
else
 
32761
  ac_cpp_err=yes
 
32762
fi
 
32763
if test -z "$ac_cpp_err"; then
 
32764
  ac_header_preproc=yes
 
32765
else
 
32766
  echo "$as_me: failed program was:" >&5
 
32767
sed 's/^/| /' conftest.$ac_ext >&5
 
32768
 
 
32769
  ac_header_preproc=no
 
32770
fi
 
32771
rm -f conftest.err conftest.$ac_ext
 
32772
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
32773
echo "${ECHO_T}$ac_header_preproc" >&6
 
32774
 
 
32775
# So?  What about this header?
 
32776
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
32777
  yes:no: )
 
32778
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
32779
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
32780
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
32781
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
32782
    ac_header_preproc=yes
 
32783
    ;;
 
32784
  no:yes:* )
 
32785
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
32786
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
32787
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
32788
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
32789
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
32790
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
32791
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
32792
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
32793
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
32794
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
32795
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
32796
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
32797
    (
 
32798
      cat <<\_ASBOX
 
32799
## ------------------------------------------ ##
 
32800
## Report this to the AC_PACKAGE_NAME lists.  ##
 
32801
## ------------------------------------------ ##
 
32802
_ASBOX
 
32803
    ) |
 
32804
      sed "s/^/$as_me: WARNING:     /" >&2
 
32805
    ;;
 
32806
esac
 
32807
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
32808
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
32809
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
32810
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32811
else
 
32812
  eval "$as_ac_Header=\$ac_header_preproc"
 
32813
fi
 
32814
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
32815
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
32816
 
 
32817
fi
 
32818
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
32819
  cat >>confdefs.h <<_ACEOF
 
32820
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
32821
_ACEOF
 
32822
 
 
32823
fi
 
32824
 
 
32825
done
 
32826
 
 
32827
 
 
32828
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
32829
# for constant arguments.  Useless!
 
32830
echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
32831
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
 
32832
if test "${ac_cv_working_alloca_h+set}" = set; then
 
32833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32834
else
 
32835
  cat >conftest.$ac_ext <<_ACEOF
 
32836
/* confdefs.h.  */
 
32837
_ACEOF
 
32838
cat confdefs.h >>conftest.$ac_ext
 
32839
cat >>conftest.$ac_ext <<_ACEOF
 
32840
/* end confdefs.h.  */
 
32841
#include <alloca.h>
 
32842
int
 
32843
main ()
 
32844
{
 
32845
char *p = (char *) alloca (2 * sizeof (int));
 
32846
  ;
 
32847
  return 0;
 
32848
}
 
32849
_ACEOF
 
32850
rm -f conftest.$ac_objext conftest$ac_exeext
 
32851
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32852
  (eval $ac_link) 2>conftest.er1
 
32853
  ac_status=$?
 
32854
  grep -v '^ *+' conftest.er1 >conftest.err
 
32855
  rm -f conftest.er1
 
32856
  cat conftest.err >&5
 
32857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32858
  (exit $ac_status); } &&
 
32859
         { ac_try='test -z "$ac_c_werror_flag"
 
32860
                         || test ! -s conftest.err'
 
32861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32862
  (eval $ac_try) 2>&5
 
32863
  ac_status=$?
 
32864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32865
  (exit $ac_status); }; } &&
 
32866
         { ac_try='test -s conftest$ac_exeext'
 
32867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32868
  (eval $ac_try) 2>&5
 
32869
  ac_status=$?
 
32870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32871
  (exit $ac_status); }; }; then
 
32872
  ac_cv_working_alloca_h=yes
 
32873
else
 
32874
  echo "$as_me: failed program was:" >&5
 
32875
sed 's/^/| /' conftest.$ac_ext >&5
 
32876
 
 
32877
ac_cv_working_alloca_h=no
 
32878
fi
 
32879
rm -f conftest.err conftest.$ac_objext \
 
32880
      conftest$ac_exeext conftest.$ac_ext
 
32881
fi
 
32882
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
32883
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
 
32884
if test $ac_cv_working_alloca_h = yes; then
 
32885
 
 
32886
cat >>confdefs.h <<\_ACEOF
 
32887
#define HAVE_ALLOCA_H 1
 
32888
_ACEOF
 
32889
 
 
32890
fi
 
32891
 
 
32892
echo "$as_me:$LINENO: checking for alloca" >&5
 
32893
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
 
32894
if test "${ac_cv_func_alloca_works+set}" = set; then
 
32895
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32896
else
 
32897
  cat >conftest.$ac_ext <<_ACEOF
 
32898
/* confdefs.h.  */
 
32899
_ACEOF
 
32900
cat confdefs.h >>conftest.$ac_ext
 
32901
cat >>conftest.$ac_ext <<_ACEOF
 
32902
/* end confdefs.h.  */
 
32903
#ifdef __GNUC__
 
32904
# define alloca __builtin_alloca
 
32905
#else
 
32906
# ifdef _MSC_VER
 
32907
#  include <malloc.h>
 
32908
#  define alloca _alloca
 
32909
# else
 
32910
#  if HAVE_ALLOCA_H
 
32911
#   include <alloca.h>
 
32912
#  else
 
32913
#   ifdef _AIX
 
32914
 #pragma alloca
 
32915
#   else
 
32916
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
32917
char *alloca ();
 
32918
#    endif
 
32919
#   endif
 
32920
#  endif
 
32921
# endif
 
32922
#endif
 
32923
 
 
32924
int
 
32925
main ()
 
32926
{
 
32927
char *p = (char *) alloca (1);
 
32928
  ;
 
32929
  return 0;
 
32930
}
 
32931
_ACEOF
 
32932
rm -f conftest.$ac_objext conftest$ac_exeext
 
32933
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
32934
  (eval $ac_link) 2>conftest.er1
 
32935
  ac_status=$?
 
32936
  grep -v '^ *+' conftest.er1 >conftest.err
 
32937
  rm -f conftest.er1
 
32938
  cat conftest.err >&5
 
32939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32940
  (exit $ac_status); } &&
 
32941
         { ac_try='test -z "$ac_c_werror_flag"
 
32942
                         || test ! -s conftest.err'
 
32943
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32944
  (eval $ac_try) 2>&5
 
32945
  ac_status=$?
 
32946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32947
  (exit $ac_status); }; } &&
 
32948
         { ac_try='test -s conftest$ac_exeext'
 
32949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
32950
  (eval $ac_try) 2>&5
 
32951
  ac_status=$?
 
32952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
32953
  (exit $ac_status); }; }; then
 
32954
  ac_cv_func_alloca_works=yes
 
32955
else
 
32956
  echo "$as_me: failed program was:" >&5
 
32957
sed 's/^/| /' conftest.$ac_ext >&5
 
32958
 
 
32959
ac_cv_func_alloca_works=no
 
32960
fi
 
32961
rm -f conftest.err conftest.$ac_objext \
 
32962
      conftest$ac_exeext conftest.$ac_ext
 
32963
fi
 
32964
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
32965
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
32966
 
 
32967
if test $ac_cv_func_alloca_works = yes; then
 
32968
 
 
32969
cat >>confdefs.h <<\_ACEOF
 
32970
#define HAVE_ALLOCA 1
 
32971
_ACEOF
 
32972
 
 
32973
else
 
32974
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
32975
# that cause trouble.  Some versions do not even contain alloca or
 
32976
# contain a buggy version.  If you still want to use their alloca,
 
32977
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
32978
 
 
32979
ALLOCA=alloca.$ac_objext
 
32980
 
 
32981
cat >>confdefs.h <<\_ACEOF
 
32982
#define C_ALLOCA 1
 
32983
_ACEOF
 
32984
 
 
32985
 
 
32986
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
32987
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
 
32988
if test "${ac_cv_os_cray+set}" = set; then
 
32989
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
32990
else
 
32991
  cat >conftest.$ac_ext <<_ACEOF
 
32992
/* confdefs.h.  */
 
32993
_ACEOF
 
32994
cat confdefs.h >>conftest.$ac_ext
 
32995
cat >>conftest.$ac_ext <<_ACEOF
 
32996
/* end confdefs.h.  */
 
32997
#if defined(CRAY) && ! defined(CRAY2)
 
32998
webecray
 
32999
#else
 
33000
wenotbecray
 
33001
#endif
 
33002
 
 
33003
_ACEOF
 
33004
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
33005
  $EGREP "webecray" >/dev/null 2>&1; then
 
33006
  ac_cv_os_cray=yes
 
33007
else
 
33008
  ac_cv_os_cray=no
 
33009
fi
 
33010
rm -f conftest*
 
33011
 
 
33012
fi
 
33013
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
33014
echo "${ECHO_T}$ac_cv_os_cray" >&6
 
33015
if test $ac_cv_os_cray = yes; then
 
33016
  for ac_func in _getb67 GETB67 getb67; do
 
33017
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
33018
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
33019
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
33020
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
33021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33022
else
 
33023
  cat >conftest.$ac_ext <<_ACEOF
 
33024
/* confdefs.h.  */
 
33025
_ACEOF
 
33026
cat confdefs.h >>conftest.$ac_ext
 
33027
cat >>conftest.$ac_ext <<_ACEOF
 
33028
/* end confdefs.h.  */
 
33029
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
33030
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
33031
#define $ac_func innocuous_$ac_func
 
33032
 
 
33033
/* System header to define __stub macros and hopefully few prototypes,
 
33034
    which can conflict with char $ac_func (); below.
 
33035
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
33036
    <limits.h> exists even on freestanding compilers.  */
 
33037
 
 
33038
#ifdef __STDC__
 
33039
# include <limits.h>
 
33040
#else
 
33041
# include <assert.h>
 
33042
#endif
 
33043
 
 
33044
#undef $ac_func
 
33045
 
 
33046
/* Override any gcc2 internal prototype to avoid an error.  */
 
33047
#ifdef __cplusplus
 
33048
extern "C"
 
33049
{
 
33050
#endif
 
33051
/* We use char because int might match the return type of a gcc2
 
33052
   builtin and then its argument prototype would still apply.  */
 
33053
char $ac_func ();
 
33054
/* The GNU C library defines this for functions which it implements
 
33055
    to always fail with ENOSYS.  Some functions are actually named
 
33056
    something starting with __ and the normal name is an alias.  */
 
33057
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
33058
choke me
 
33059
#else
 
33060
char (*f) () = $ac_func;
 
33061
#endif
 
33062
#ifdef __cplusplus
 
33063
}
 
33064
#endif
 
33065
 
 
33066
int
 
33067
main ()
 
33068
{
 
33069
return f != $ac_func;
 
33070
  ;
 
33071
  return 0;
 
33072
}
 
33073
_ACEOF
 
33074
rm -f conftest.$ac_objext conftest$ac_exeext
 
33075
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
33076
  (eval $ac_link) 2>conftest.er1
 
33077
  ac_status=$?
 
33078
  grep -v '^ *+' conftest.er1 >conftest.err
 
33079
  rm -f conftest.er1
 
33080
  cat conftest.err >&5
 
33081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33082
  (exit $ac_status); } &&
 
33083
         { ac_try='test -z "$ac_c_werror_flag"
 
33084
                         || test ! -s conftest.err'
 
33085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33086
  (eval $ac_try) 2>&5
 
33087
  ac_status=$?
 
33088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33089
  (exit $ac_status); }; } &&
 
33090
         { ac_try='test -s conftest$ac_exeext'
 
33091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33092
  (eval $ac_try) 2>&5
 
33093
  ac_status=$?
 
33094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33095
  (exit $ac_status); }; }; then
 
33096
  eval "$as_ac_var=yes"
 
33097
else
 
33098
  echo "$as_me: failed program was:" >&5
 
33099
sed 's/^/| /' conftest.$ac_ext >&5
 
33100
 
 
33101
eval "$as_ac_var=no"
 
33102
fi
 
33103
rm -f conftest.err conftest.$ac_objext \
 
33104
      conftest$ac_exeext conftest.$ac_ext
 
33105
fi
 
33106
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
33107
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
33108
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
33109
 
 
33110
cat >>confdefs.h <<_ACEOF
 
33111
#define CRAY_STACKSEG_END $ac_func
 
33112
_ACEOF
 
33113
 
 
33114
    break
 
33115
fi
 
33116
 
 
33117
  done
 
33118
fi
 
33119
 
 
33120
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
33121
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
 
33122
if test "${ac_cv_c_stack_direction+set}" = set; then
 
33123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33124
else
 
33125
  if test "$cross_compiling" = yes; then
 
33126
  ac_cv_c_stack_direction=0
 
33127
else
 
33128
  cat >conftest.$ac_ext <<_ACEOF
 
33129
/* confdefs.h.  */
 
33130
_ACEOF
 
33131
cat confdefs.h >>conftest.$ac_ext
 
33132
cat >>conftest.$ac_ext <<_ACEOF
 
33133
/* end confdefs.h.  */
 
33134
int
 
33135
find_stack_direction ()
 
33136
{
 
33137
  static char *addr = 0;
 
33138
  auto char dummy;
 
33139
  if (addr == 0)
 
33140
    {
 
33141
      addr = &dummy;
 
33142
      return find_stack_direction ();
 
33143
    }
 
33144
  else
 
33145
    return (&dummy > addr) ? 1 : -1;
 
33146
}
 
33147
 
 
33148
int
 
33149
main ()
 
33150
{
 
33151
  exit (find_stack_direction () < 0);
 
33152
}
 
33153
_ACEOF
 
33154
rm -f conftest$ac_exeext
 
33155
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
33156
  (eval $ac_link) 2>&5
 
33157
  ac_status=$?
 
33158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33159
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
33160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33161
  (eval $ac_try) 2>&5
 
33162
  ac_status=$?
 
33163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33164
  (exit $ac_status); }; }; then
 
33165
  ac_cv_c_stack_direction=1
 
33166
else
 
33167
  echo "$as_me: program exited with status $ac_status" >&5
 
33168
echo "$as_me: failed program was:" >&5
 
33169
sed 's/^/| /' conftest.$ac_ext >&5
 
33170
 
 
33171
( exit $ac_status )
 
33172
ac_cv_c_stack_direction=-1
 
33173
fi
 
33174
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
33175
fi
 
33176
fi
 
33177
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
33178
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
 
33179
 
 
33180
cat >>confdefs.h <<_ACEOF
 
33181
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
33182
_ACEOF
 
33183
 
 
33184
 
 
33185
fi
 
33186
 
 
33187
if test $ac_cv_c_compiler_gnu = yes; then
 
33188
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
33189
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
 
33190
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
33191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33192
else
 
33193
    ac_pattern="Autoconf.*'x'"
 
33194
  cat >conftest.$ac_ext <<_ACEOF
 
33195
/* confdefs.h.  */
 
33196
_ACEOF
 
33197
cat confdefs.h >>conftest.$ac_ext
 
33198
cat >>conftest.$ac_ext <<_ACEOF
 
33199
/* end confdefs.h.  */
 
33200
#include <sgtty.h>
 
33201
Autoconf TIOCGETP
 
33202
_ACEOF
 
33203
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
33204
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
33205
  ac_cv_prog_gcc_traditional=yes
 
33206
else
 
33207
  ac_cv_prog_gcc_traditional=no
 
33208
fi
 
33209
rm -f conftest*
 
33210
 
 
33211
 
 
33212
  if test $ac_cv_prog_gcc_traditional = no; then
 
33213
    cat >conftest.$ac_ext <<_ACEOF
 
33214
/* confdefs.h.  */
 
33215
_ACEOF
 
33216
cat confdefs.h >>conftest.$ac_ext
 
33217
cat >>conftest.$ac_ext <<_ACEOF
 
33218
/* end confdefs.h.  */
 
33219
#include <termio.h>
 
33220
Autoconf TCGETA
 
33221
_ACEOF
 
33222
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
33223
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
33224
  ac_cv_prog_gcc_traditional=yes
 
33225
fi
 
33226
rm -f conftest*
 
33227
 
 
33228
  fi
 
33229
fi
 
33230
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
33231
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
 
33232
  if test $ac_cv_prog_gcc_traditional = yes; then
 
33233
    CC="$CC -traditional"
 
33234
  fi
 
33235
fi
 
33236
 
 
33237
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
33238
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
33239
if test "${ac_cv_type_signal+set}" = set; then
 
33240
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33241
else
 
33242
  cat >conftest.$ac_ext <<_ACEOF
 
33243
/* confdefs.h.  */
 
33244
_ACEOF
 
33245
cat confdefs.h >>conftest.$ac_ext
 
33246
cat >>conftest.$ac_ext <<_ACEOF
 
33247
/* end confdefs.h.  */
 
33248
#include <sys/types.h>
 
33249
#include <signal.h>
 
33250
#ifdef signal
 
33251
# undef signal
 
33252
#endif
 
33253
#ifdef __cplusplus
 
33254
extern "C" void (*signal (int, void (*)(int)))(int);
 
33255
#else
 
33256
void (*signal ()) ();
 
33257
#endif
 
33258
 
 
33259
int
 
33260
main ()
 
33261
{
 
33262
int i;
 
33263
  ;
 
33264
  return 0;
 
33265
}
 
33266
_ACEOF
 
33267
rm -f conftest.$ac_objext
 
33268
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33269
  (eval $ac_compile) 2>conftest.er1
 
33270
  ac_status=$?
 
33271
  grep -v '^ *+' conftest.er1 >conftest.err
 
33272
  rm -f conftest.er1
 
33273
  cat conftest.err >&5
 
33274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33275
  (exit $ac_status); } &&
 
33276
         { ac_try='test -z "$ac_c_werror_flag"
 
33277
                         || test ! -s conftest.err'
 
33278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33279
  (eval $ac_try) 2>&5
 
33280
  ac_status=$?
 
33281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33282
  (exit $ac_status); }; } &&
 
33283
         { ac_try='test -s conftest.$ac_objext'
 
33284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33285
  (eval $ac_try) 2>&5
 
33286
  ac_status=$?
 
33287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33288
  (exit $ac_status); }; }; then
 
33289
  ac_cv_type_signal=void
 
33290
else
 
33291
  echo "$as_me: failed program was:" >&5
 
33292
sed 's/^/| /' conftest.$ac_ext >&5
 
33293
 
 
33294
ac_cv_type_signal=int
 
33295
fi
 
33296
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33297
fi
 
33298
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
33299
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
33300
 
 
33301
cat >>confdefs.h <<_ACEOF
 
33302
#define RETSIGTYPE $ac_cv_type_signal
 
33303
_ACEOF
 
33304
 
 
33305
 
 
33306
 
 
33307
 
 
33308
 
 
33309
for ac_func in re_comp regcomp strdup
 
33310
do
 
33311
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
33312
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
33313
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
33314
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
33315
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33316
else
 
33317
  cat >conftest.$ac_ext <<_ACEOF
 
33318
/* confdefs.h.  */
 
33319
_ACEOF
 
33320
cat confdefs.h >>conftest.$ac_ext
 
33321
cat >>conftest.$ac_ext <<_ACEOF
 
33322
/* end confdefs.h.  */
 
33323
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
33324
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
33325
#define $ac_func innocuous_$ac_func
 
33326
 
 
33327
/* System header to define __stub macros and hopefully few prototypes,
 
33328
    which can conflict with char $ac_func (); below.
 
33329
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
33330
    <limits.h> exists even on freestanding compilers.  */
 
33331
 
 
33332
#ifdef __STDC__
 
33333
# include <limits.h>
 
33334
#else
 
33335
# include <assert.h>
 
33336
#endif
 
33337
 
 
33338
#undef $ac_func
 
33339
 
 
33340
/* Override any gcc2 internal prototype to avoid an error.  */
 
33341
#ifdef __cplusplus
 
33342
extern "C"
 
33343
{
 
33344
#endif
 
33345
/* We use char because int might match the return type of a gcc2
 
33346
   builtin and then its argument prototype would still apply.  */
 
33347
char $ac_func ();
 
33348
/* The GNU C library defines this for functions which it implements
 
33349
    to always fail with ENOSYS.  Some functions are actually named
 
33350
    something starting with __ and the normal name is an alias.  */
 
33351
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
33352
choke me
 
33353
#else
 
33354
char (*f) () = $ac_func;
 
33355
#endif
 
33356
#ifdef __cplusplus
 
33357
}
 
33358
#endif
 
33359
 
 
33360
int
 
33361
main ()
 
33362
{
 
33363
return f != $ac_func;
 
33364
  ;
 
33365
  return 0;
 
33366
}
 
33367
_ACEOF
 
33368
rm -f conftest.$ac_objext conftest$ac_exeext
 
33369
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
33370
  (eval $ac_link) 2>conftest.er1
 
33371
  ac_status=$?
 
33372
  grep -v '^ *+' conftest.er1 >conftest.err
 
33373
  rm -f conftest.er1
 
33374
  cat conftest.err >&5
 
33375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33376
  (exit $ac_status); } &&
 
33377
         { ac_try='test -z "$ac_c_werror_flag"
 
33378
                         || test ! -s conftest.err'
 
33379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33380
  (eval $ac_try) 2>&5
 
33381
  ac_status=$?
 
33382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33383
  (exit $ac_status); }; } &&
 
33384
         { ac_try='test -s conftest$ac_exeext'
 
33385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33386
  (eval $ac_try) 2>&5
 
33387
  ac_status=$?
 
33388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33389
  (exit $ac_status); }; }; then
 
33390
  eval "$as_ac_var=yes"
 
33391
else
 
33392
  echo "$as_me: failed program was:" >&5
 
33393
sed 's/^/| /' conftest.$ac_ext >&5
 
33394
 
 
33395
eval "$as_ac_var=no"
 
33396
fi
 
33397
rm -f conftest.err conftest.$ac_objext \
 
33398
      conftest$ac_exeext conftest.$ac_ext
 
33399
fi
 
33400
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
33401
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
33402
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
33403
  cat >>confdefs.h <<_ACEOF
 
33404
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
33405
_ACEOF
 
33406
 
 
33407
fi
 
33408
done
 
33409
 
 
33410
 
 
33411
if test "${ac_cv_header_vis_h+set}" = set; then
 
33412
  echo "$as_me:$LINENO: checking for vis.h" >&5
 
33413
echo $ECHO_N "checking for vis.h... $ECHO_C" >&6
 
33414
if test "${ac_cv_header_vis_h+set}" = set; then
 
33415
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33416
fi
 
33417
echo "$as_me:$LINENO: result: $ac_cv_header_vis_h" >&5
 
33418
echo "${ECHO_T}$ac_cv_header_vis_h" >&6
 
33419
else
 
33420
  # Is the header compilable?
 
33421
echo "$as_me:$LINENO: checking vis.h usability" >&5
 
33422
echo $ECHO_N "checking vis.h usability... $ECHO_C" >&6
 
33423
cat >conftest.$ac_ext <<_ACEOF
 
33424
/* confdefs.h.  */
 
33425
_ACEOF
 
33426
cat confdefs.h >>conftest.$ac_ext
 
33427
cat >>conftest.$ac_ext <<_ACEOF
 
33428
/* end confdefs.h.  */
 
33429
$ac_includes_default
 
33430
#include <vis.h>
 
33431
_ACEOF
 
33432
rm -f conftest.$ac_objext
 
33433
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
33434
  (eval $ac_compile) 2>conftest.er1
 
33435
  ac_status=$?
 
33436
  grep -v '^ *+' conftest.er1 >conftest.err
 
33437
  rm -f conftest.er1
 
33438
  cat conftest.err >&5
 
33439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33440
  (exit $ac_status); } &&
 
33441
         { ac_try='test -z "$ac_c_werror_flag"
 
33442
                         || test ! -s conftest.err'
 
33443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33444
  (eval $ac_try) 2>&5
 
33445
  ac_status=$?
 
33446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33447
  (exit $ac_status); }; } &&
 
33448
         { ac_try='test -s conftest.$ac_objext'
 
33449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33450
  (eval $ac_try) 2>&5
 
33451
  ac_status=$?
 
33452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33453
  (exit $ac_status); }; }; then
 
33454
  ac_header_compiler=yes
 
33455
else
 
33456
  echo "$as_me: failed program was:" >&5
 
33457
sed 's/^/| /' conftest.$ac_ext >&5
 
33458
 
 
33459
ac_header_compiler=no
 
33460
fi
 
33461
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
33462
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
33463
echo "${ECHO_T}$ac_header_compiler" >&6
 
33464
 
 
33465
# Is the header present?
 
33466
echo "$as_me:$LINENO: checking vis.h presence" >&5
 
33467
echo $ECHO_N "checking vis.h presence... $ECHO_C" >&6
 
33468
cat >conftest.$ac_ext <<_ACEOF
 
33469
/* confdefs.h.  */
 
33470
_ACEOF
 
33471
cat confdefs.h >>conftest.$ac_ext
 
33472
cat >>conftest.$ac_ext <<_ACEOF
 
33473
/* end confdefs.h.  */
 
33474
#include <vis.h>
 
33475
_ACEOF
 
33476
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
33477
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
33478
  ac_status=$?
 
33479
  grep -v '^ *+' conftest.er1 >conftest.err
 
33480
  rm -f conftest.er1
 
33481
  cat conftest.err >&5
 
33482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33483
  (exit $ac_status); } >/dev/null; then
 
33484
  if test -s conftest.err; then
 
33485
    ac_cpp_err=$ac_c_preproc_warn_flag
 
33486
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
33487
  else
 
33488
    ac_cpp_err=
 
33489
  fi
 
33490
else
 
33491
  ac_cpp_err=yes
 
33492
fi
 
33493
if test -z "$ac_cpp_err"; then
 
33494
  ac_header_preproc=yes
 
33495
else
 
33496
  echo "$as_me: failed program was:" >&5
 
33497
sed 's/^/| /' conftest.$ac_ext >&5
 
33498
 
 
33499
  ac_header_preproc=no
 
33500
fi
 
33501
rm -f conftest.err conftest.$ac_ext
 
33502
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
33503
echo "${ECHO_T}$ac_header_preproc" >&6
 
33504
 
 
33505
# So?  What about this header?
 
33506
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
33507
  yes:no: )
 
33508
    { echo "$as_me:$LINENO: WARNING: vis.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
33509
echo "$as_me: WARNING: vis.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
33510
    { echo "$as_me:$LINENO: WARNING: vis.h: proceeding with the compiler's result" >&5
 
33511
echo "$as_me: WARNING: vis.h: proceeding with the compiler's result" >&2;}
 
33512
    ac_header_preproc=yes
 
33513
    ;;
 
33514
  no:yes:* )
 
33515
    { echo "$as_me:$LINENO: WARNING: vis.h: present but cannot be compiled" >&5
 
33516
echo "$as_me: WARNING: vis.h: present but cannot be compiled" >&2;}
 
33517
    { echo "$as_me:$LINENO: WARNING: vis.h:     check for missing prerequisite headers?" >&5
 
33518
echo "$as_me: WARNING: vis.h:     check for missing prerequisite headers?" >&2;}
 
33519
    { echo "$as_me:$LINENO: WARNING: vis.h: see the Autoconf documentation" >&5
 
33520
echo "$as_me: WARNING: vis.h: see the Autoconf documentation" >&2;}
 
33521
    { echo "$as_me:$LINENO: WARNING: vis.h:     section \"Present But Cannot Be Compiled\"" >&5
 
33522
echo "$as_me: WARNING: vis.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
33523
    { echo "$as_me:$LINENO: WARNING: vis.h: proceeding with the preprocessor's result" >&5
 
33524
echo "$as_me: WARNING: vis.h: proceeding with the preprocessor's result" >&2;}
 
33525
    { echo "$as_me:$LINENO: WARNING: vis.h: in the future, the compiler will take precedence" >&5
 
33526
echo "$as_me: WARNING: vis.h: in the future, the compiler will take precedence" >&2;}
 
33527
    (
 
33528
      cat <<\_ASBOX
 
33529
## ------------------------------------------ ##
 
33530
## Report this to the AC_PACKAGE_NAME lists.  ##
 
33531
## ------------------------------------------ ##
 
33532
_ASBOX
 
33533
    ) |
 
33534
      sed "s/^/$as_me: WARNING:     /" >&2
 
33535
    ;;
 
33536
esac
 
33537
echo "$as_me:$LINENO: checking for vis.h" >&5
 
33538
echo $ECHO_N "checking for vis.h... $ECHO_C" >&6
 
33539
if test "${ac_cv_header_vis_h+set}" = set; then
 
33540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33541
else
 
33542
  ac_cv_header_vis_h=$ac_header_preproc
 
33543
fi
 
33544
echo "$as_me:$LINENO: result: $ac_cv_header_vis_h" >&5
 
33545
echo "${ECHO_T}$ac_cv_header_vis_h" >&6
 
33546
 
 
33547
fi
 
33548
if test $ac_cv_header_vis_h = yes; then
 
33549
  echo "$as_me:$LINENO: checking for strvis" >&5
 
33550
echo $ECHO_N "checking for strvis... $ECHO_C" >&6
 
33551
if test "${ac_cv_func_strvis+set}" = set; then
 
33552
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33553
else
 
33554
  cat >conftest.$ac_ext <<_ACEOF
 
33555
/* confdefs.h.  */
 
33556
_ACEOF
 
33557
cat confdefs.h >>conftest.$ac_ext
 
33558
cat >>conftest.$ac_ext <<_ACEOF
 
33559
/* end confdefs.h.  */
 
33560
/* Define strvis to an innocuous variant, in case <limits.h> declares strvis.
 
33561
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
33562
#define strvis innocuous_strvis
 
33563
 
 
33564
/* System header to define __stub macros and hopefully few prototypes,
 
33565
    which can conflict with char strvis (); below.
 
33566
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
33567
    <limits.h> exists even on freestanding compilers.  */
 
33568
 
 
33569
#ifdef __STDC__
 
33570
# include <limits.h>
 
33571
#else
 
33572
# include <assert.h>
 
33573
#endif
 
33574
 
 
33575
#undef strvis
 
33576
 
 
33577
/* Override any gcc2 internal prototype to avoid an error.  */
 
33578
#ifdef __cplusplus
 
33579
extern "C"
 
33580
{
 
33581
#endif
 
33582
/* We use char because int might match the return type of a gcc2
 
33583
   builtin and then its argument prototype would still apply.  */
 
33584
char strvis ();
 
33585
/* The GNU C library defines this for functions which it implements
 
33586
    to always fail with ENOSYS.  Some functions are actually named
 
33587
    something starting with __ and the normal name is an alias.  */
 
33588
#if defined (__stub_strvis) || defined (__stub___strvis)
 
33589
choke me
 
33590
#else
 
33591
char (*f) () = strvis;
 
33592
#endif
 
33593
#ifdef __cplusplus
 
33594
}
 
33595
#endif
 
33596
 
 
33597
int
 
33598
main ()
 
33599
{
 
33600
return f != strvis;
 
33601
  ;
 
33602
  return 0;
 
33603
}
 
33604
_ACEOF
 
33605
rm -f conftest.$ac_objext conftest$ac_exeext
 
33606
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
33607
  (eval $ac_link) 2>conftest.er1
 
33608
  ac_status=$?
 
33609
  grep -v '^ *+' conftest.er1 >conftest.err
 
33610
  rm -f conftest.er1
 
33611
  cat conftest.err >&5
 
33612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33613
  (exit $ac_status); } &&
 
33614
         { ac_try='test -z "$ac_c_werror_flag"
 
33615
                         || test ! -s conftest.err'
 
33616
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33617
  (eval $ac_try) 2>&5
 
33618
  ac_status=$?
 
33619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33620
  (exit $ac_status); }; } &&
 
33621
         { ac_try='test -s conftest$ac_exeext'
 
33622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33623
  (eval $ac_try) 2>&5
 
33624
  ac_status=$?
 
33625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33626
  (exit $ac_status); }; }; then
 
33627
  ac_cv_func_strvis=yes
 
33628
else
 
33629
  echo "$as_me: failed program was:" >&5
 
33630
sed 's/^/| /' conftest.$ac_ext >&5
 
33631
 
 
33632
ac_cv_func_strvis=no
 
33633
fi
 
33634
rm -f conftest.err conftest.$ac_objext \
 
33635
      conftest$ac_exeext conftest.$ac_ext
 
33636
fi
 
33637
echo "$as_me:$LINENO: result: $ac_cv_func_strvis" >&5
 
33638
echo "${ECHO_T}$ac_cv_func_strvis" >&6
 
33639
if test $ac_cv_func_strvis = yes; then
 
33640
 
 
33641
cat >>confdefs.h <<\_ACEOF
 
33642
#define HAVE_VIS_H 1
 
33643
_ACEOF
 
33644
 
 
33645
fi
 
33646
 
 
33647
fi
 
33648
 
 
33649
 
 
33650
 
 
33651
 
 
33652
 
 
33653
for ac_func in strlcat strlcpy
 
33654
do
 
33655
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
33656
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
33657
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
33658
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
33659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33660
else
 
33661
  cat >conftest.$ac_ext <<_ACEOF
 
33662
/* confdefs.h.  */
 
33663
_ACEOF
 
33664
cat confdefs.h >>conftest.$ac_ext
 
33665
cat >>conftest.$ac_ext <<_ACEOF
 
33666
/* end confdefs.h.  */
 
33667
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
33668
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
33669
#define $ac_func innocuous_$ac_func
 
33670
 
 
33671
/* System header to define __stub macros and hopefully few prototypes,
 
33672
    which can conflict with char $ac_func (); below.
 
33673
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
33674
    <limits.h> exists even on freestanding compilers.  */
 
33675
 
 
33676
#ifdef __STDC__
 
33677
# include <limits.h>
 
33678
#else
 
33679
# include <assert.h>
 
33680
#endif
 
33681
 
 
33682
#undef $ac_func
 
33683
 
 
33684
/* Override any gcc2 internal prototype to avoid an error.  */
 
33685
#ifdef __cplusplus
 
33686
extern "C"
 
33687
{
 
33688
#endif
 
33689
/* We use char because int might match the return type of a gcc2
 
33690
   builtin and then its argument prototype would still apply.  */
 
33691
char $ac_func ();
 
33692
/* The GNU C library defines this for functions which it implements
 
33693
    to always fail with ENOSYS.  Some functions are actually named
 
33694
    something starting with __ and the normal name is an alias.  */
 
33695
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
33696
choke me
 
33697
#else
 
33698
char (*f) () = $ac_func;
 
33699
#endif
 
33700
#ifdef __cplusplus
 
33701
}
 
33702
#endif
 
33703
 
 
33704
int
 
33705
main ()
 
33706
{
 
33707
return f != $ac_func;
 
33708
  ;
 
33709
  return 0;
 
33710
}
 
33711
_ACEOF
 
33712
rm -f conftest.$ac_objext conftest$ac_exeext
 
33713
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
33714
  (eval $ac_link) 2>conftest.er1
 
33715
  ac_status=$?
 
33716
  grep -v '^ *+' conftest.er1 >conftest.err
 
33717
  rm -f conftest.er1
 
33718
  cat conftest.err >&5
 
33719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33720
  (exit $ac_status); } &&
 
33721
         { ac_try='test -z "$ac_c_werror_flag"
 
33722
                         || test ! -s conftest.err'
 
33723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33724
  (eval $ac_try) 2>&5
 
33725
  ac_status=$?
 
33726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33727
  (exit $ac_status); }; } &&
 
33728
         { ac_try='test -s conftest$ac_exeext'
 
33729
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33730
  (eval $ac_try) 2>&5
 
33731
  ac_status=$?
 
33732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33733
  (exit $ac_status); }; }; then
 
33734
  eval "$as_ac_var=yes"
 
33735
else
 
33736
  echo "$as_me: failed program was:" >&5
 
33737
sed 's/^/| /' conftest.$ac_ext >&5
 
33738
 
 
33739
eval "$as_ac_var=no"
 
33740
fi
 
33741
rm -f conftest.err conftest.$ac_objext \
 
33742
      conftest$ac_exeext conftest.$ac_ext
 
33743
fi
 
33744
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
33745
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
33746
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
33747
  cat >>confdefs.h <<_ACEOF
 
33748
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
33749
_ACEOF
 
33750
 
 
33751
fi
 
33752
done
 
33753
 
 
33754
 
 
33755
for ac_func in issetugid
 
33756
do
 
33757
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
33758
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
33759
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
33760
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
33761
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33762
else
 
33763
  cat >conftest.$ac_ext <<_ACEOF
 
33764
/* confdefs.h.  */
 
33765
_ACEOF
 
33766
cat confdefs.h >>conftest.$ac_ext
 
33767
cat >>conftest.$ac_ext <<_ACEOF
 
33768
/* end confdefs.h.  */
 
33769
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
33770
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
33771
#define $ac_func innocuous_$ac_func
 
33772
 
 
33773
/* System header to define __stub macros and hopefully few prototypes,
 
33774
    which can conflict with char $ac_func (); below.
 
33775
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
33776
    <limits.h> exists even on freestanding compilers.  */
 
33777
 
 
33778
#ifdef __STDC__
 
33779
# include <limits.h>
 
33780
#else
 
33781
# include <assert.h>
 
33782
#endif
 
33783
 
 
33784
#undef $ac_func
 
33785
 
 
33786
/* Override any gcc2 internal prototype to avoid an error.  */
 
33787
#ifdef __cplusplus
 
33788
extern "C"
 
33789
{
 
33790
#endif
 
33791
/* We use char because int might match the return type of a gcc2
 
33792
   builtin and then its argument prototype would still apply.  */
 
33793
char $ac_func ();
 
33794
/* The GNU C library defines this for functions which it implements
 
33795
    to always fail with ENOSYS.  Some functions are actually named
 
33796
    something starting with __ and the normal name is an alias.  */
 
33797
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
33798
choke me
 
33799
#else
 
33800
char (*f) () = $ac_func;
 
33801
#endif
 
33802
#ifdef __cplusplus
 
33803
}
 
33804
#endif
 
33805
 
 
33806
int
 
33807
main ()
 
33808
{
 
33809
return f != $ac_func;
 
33810
  ;
 
33811
  return 0;
 
33812
}
 
33813
_ACEOF
 
33814
rm -f conftest.$ac_objext conftest$ac_exeext
 
33815
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
33816
  (eval $ac_link) 2>conftest.er1
 
33817
  ac_status=$?
 
33818
  grep -v '^ *+' conftest.er1 >conftest.err
 
33819
  rm -f conftest.er1
 
33820
  cat conftest.err >&5
 
33821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33822
  (exit $ac_status); } &&
 
33823
         { ac_try='test -z "$ac_c_werror_flag"
 
33824
                         || test ! -s conftest.err'
 
33825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33826
  (eval $ac_try) 2>&5
 
33827
  ac_status=$?
 
33828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33829
  (exit $ac_status); }; } &&
 
33830
         { ac_try='test -s conftest$ac_exeext'
 
33831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33832
  (eval $ac_try) 2>&5
 
33833
  ac_status=$?
 
33834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33835
  (exit $ac_status); }; }; then
 
33836
  eval "$as_ac_var=yes"
 
33837
else
 
33838
  echo "$as_me: failed program was:" >&5
 
33839
sed 's/^/| /' conftest.$ac_ext >&5
 
33840
 
 
33841
eval "$as_ac_var=no"
 
33842
fi
 
33843
rm -f conftest.err conftest.$ac_objext \
 
33844
      conftest$ac_exeext conftest.$ac_ext
 
33845
fi
 
33846
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
33847
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
33848
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
33849
  cat >>confdefs.h <<_ACEOF
 
33850
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
33851
_ACEOF
 
33852
 
 
33853
fi
 
33854
done
 
33855
 
 
33856
 
 
33857
for ac_func in fgetln
 
33858
do
 
33859
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
33860
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
33861
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
33862
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
33863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33864
else
 
33865
  cat >conftest.$ac_ext <<_ACEOF
 
33866
/* confdefs.h.  */
 
33867
_ACEOF
 
33868
cat confdefs.h >>conftest.$ac_ext
 
33869
cat >>conftest.$ac_ext <<_ACEOF
 
33870
/* end confdefs.h.  */
 
33871
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
33872
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
33873
#define $ac_func innocuous_$ac_func
 
33874
 
 
33875
/* System header to define __stub macros and hopefully few prototypes,
 
33876
    which can conflict with char $ac_func (); below.
 
33877
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
33878
    <limits.h> exists even on freestanding compilers.  */
 
33879
 
 
33880
#ifdef __STDC__
 
33881
# include <limits.h>
 
33882
#else
 
33883
# include <assert.h>
 
33884
#endif
 
33885
 
 
33886
#undef $ac_func
 
33887
 
 
33888
/* Override any gcc2 internal prototype to avoid an error.  */
 
33889
#ifdef __cplusplus
 
33890
extern "C"
 
33891
{
 
33892
#endif
 
33893
/* We use char because int might match the return type of a gcc2
 
33894
   builtin and then its argument prototype would still apply.  */
 
33895
char $ac_func ();
 
33896
/* The GNU C library defines this for functions which it implements
 
33897
    to always fail with ENOSYS.  Some functions are actually named
 
33898
    something starting with __ and the normal name is an alias.  */
 
33899
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
33900
choke me
 
33901
#else
 
33902
char (*f) () = $ac_func;
 
33903
#endif
 
33904
#ifdef __cplusplus
 
33905
}
 
33906
#endif
 
33907
 
 
33908
int
 
33909
main ()
 
33910
{
 
33911
return f != $ac_func;
 
33912
  ;
 
33913
  return 0;
 
33914
}
 
33915
_ACEOF
 
33916
rm -f conftest.$ac_objext conftest$ac_exeext
 
33917
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
33918
  (eval $ac_link) 2>conftest.er1
 
33919
  ac_status=$?
 
33920
  grep -v '^ *+' conftest.er1 >conftest.err
 
33921
  rm -f conftest.er1
 
33922
  cat conftest.err >&5
 
33923
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33924
  (exit $ac_status); } &&
 
33925
         { ac_try='test -z "$ac_c_werror_flag"
 
33926
                         || test ! -s conftest.err'
 
33927
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33928
  (eval $ac_try) 2>&5
 
33929
  ac_status=$?
 
33930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33931
  (exit $ac_status); }; } &&
 
33932
         { ac_try='test -s conftest$ac_exeext'
 
33933
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
33934
  (eval $ac_try) 2>&5
 
33935
  ac_status=$?
 
33936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
33937
  (exit $ac_status); }; }; then
 
33938
  eval "$as_ac_var=yes"
 
33939
else
 
33940
  echo "$as_me: failed program was:" >&5
 
33941
sed 's/^/| /' conftest.$ac_ext >&5
 
33942
 
 
33943
eval "$as_ac_var=no"
 
33944
fi
 
33945
rm -f conftest.err conftest.$ac_objext \
 
33946
      conftest$ac_exeext conftest.$ac_ext
 
33947
fi
 
33948
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
33949
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
33950
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
33951
  cat >>confdefs.h <<_ACEOF
 
33952
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
33953
_ACEOF
 
33954
 
 
33955
fi
 
33956
done
 
33957
 
 
33958
 
 
33959
 
 
33960
for ac_func in getline flockfile
 
33961
do
 
33962
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
33963
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
33964
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
33965
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
33966
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
33967
else
 
33968
  cat >conftest.$ac_ext <<_ACEOF
 
33969
/* confdefs.h.  */
 
33970
_ACEOF
 
33971
cat confdefs.h >>conftest.$ac_ext
 
33972
cat >>conftest.$ac_ext <<_ACEOF
 
33973
/* end confdefs.h.  */
 
33974
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
33975
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
33976
#define $ac_func innocuous_$ac_func
 
33977
 
 
33978
/* System header to define __stub macros and hopefully few prototypes,
 
33979
    which can conflict with char $ac_func (); below.
 
33980
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
33981
    <limits.h> exists even on freestanding compilers.  */
 
33982
 
 
33983
#ifdef __STDC__
 
33984
# include <limits.h>
 
33985
#else
 
33986
# include <assert.h>
 
33987
#endif
 
33988
 
 
33989
#undef $ac_func
 
33990
 
 
33991
/* Override any gcc2 internal prototype to avoid an error.  */
 
33992
#ifdef __cplusplus
 
33993
extern "C"
 
33994
{
 
33995
#endif
 
33996
/* We use char because int might match the return type of a gcc2
 
33997
   builtin and then its argument prototype would still apply.  */
 
33998
char $ac_func ();
 
33999
/* The GNU C library defines this for functions which it implements
 
34000
    to always fail with ENOSYS.  Some functions are actually named
 
34001
    something starting with __ and the normal name is an alias.  */
 
34002
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
34003
choke me
 
34004
#else
 
34005
char (*f) () = $ac_func;
 
34006
#endif
 
34007
#ifdef __cplusplus
 
34008
}
 
34009
#endif
 
34010
 
 
34011
int
 
34012
main ()
 
34013
{
 
34014
return f != $ac_func;
 
34015
  ;
 
34016
  return 0;
 
34017
}
 
34018
_ACEOF
 
34019
rm -f conftest.$ac_objext conftest$ac_exeext
 
34020
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
34021
  (eval $ac_link) 2>conftest.er1
 
34022
  ac_status=$?
 
34023
  grep -v '^ *+' conftest.er1 >conftest.err
 
34024
  rm -f conftest.er1
 
34025
  cat conftest.err >&5
 
34026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34027
  (exit $ac_status); } &&
 
34028
         { ac_try='test -z "$ac_c_werror_flag"
 
34029
                         || test ! -s conftest.err'
 
34030
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34031
  (eval $ac_try) 2>&5
 
34032
  ac_status=$?
 
34033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34034
  (exit $ac_status); }; } &&
 
34035
         { ac_try='test -s conftest$ac_exeext'
 
34036
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34037
  (eval $ac_try) 2>&5
 
34038
  ac_status=$?
 
34039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34040
  (exit $ac_status); }; }; then
 
34041
  eval "$as_ac_var=yes"
 
34042
else
 
34043
  echo "$as_me: failed program was:" >&5
 
34044
sed 's/^/| /' conftest.$ac_ext >&5
 
34045
 
 
34046
eval "$as_ac_var=no"
 
34047
fi
 
34048
rm -f conftest.err conftest.$ac_objext \
 
34049
      conftest$ac_exeext conftest.$ac_ext
 
34050
fi
 
34051
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
34052
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
34053
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
34054
  cat >>confdefs.h <<_ACEOF
 
34055
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
34056
_ACEOF
 
34057
 
 
34058
fi
 
34059
done
 
34060
 
 
34061
 
 
34062
# from old readline settting:
 
34063
 
 
34064
MAKE_SHELL=/bin/sh
 
34065
 
 
34066
 
 
34067
# Already-done: stdlib.h string.h unistd.h termios.h
 
34068
 
 
34069
 
 
34070
 
 
34071
 
 
34072
 
 
34073
 
 
34074
 
 
34075
 
 
34076
 
 
34077
 
 
34078
 
 
34079
 
 
34080
 
 
34081
 
 
34082
 
 
34083
 
 
34084
 
 
34085
 
 
34086
 
 
34087
 
 
34088
 
 
34089
for ac_header in varargs.h stdarg.h dirent.h locale.h ndir.h sys/dir.h \
 
34090
 sys/file.h sys/ndir.h sys/ptem.h sys/pte.h sys/select.h sys/stream.h \
 
34091
 sys/mman.h curses.h termcap.h termio.h termbits.h asm/termbits.h grp.h \
 
34092
paths.h semaphore.h
 
34093
do
 
34094
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
34095
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
34096
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
34097
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
34098
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
34099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34100
fi
 
34101
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
34102
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
34103
else
 
34104
  # Is the header compilable?
 
34105
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
34106
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
34107
cat >conftest.$ac_ext <<_ACEOF
 
34108
/* confdefs.h.  */
 
34109
_ACEOF
 
34110
cat confdefs.h >>conftest.$ac_ext
 
34111
cat >>conftest.$ac_ext <<_ACEOF
 
34112
/* end confdefs.h.  */
 
34113
$ac_includes_default
 
34114
#include <$ac_header>
 
34115
_ACEOF
 
34116
rm -f conftest.$ac_objext
 
34117
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34118
  (eval $ac_compile) 2>conftest.er1
 
34119
  ac_status=$?
 
34120
  grep -v '^ *+' conftest.er1 >conftest.err
 
34121
  rm -f conftest.er1
 
34122
  cat conftest.err >&5
 
34123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34124
  (exit $ac_status); } &&
 
34125
         { ac_try='test -z "$ac_c_werror_flag"
 
34126
                         || test ! -s conftest.err'
 
34127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34128
  (eval $ac_try) 2>&5
 
34129
  ac_status=$?
 
34130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34131
  (exit $ac_status); }; } &&
 
34132
         { ac_try='test -s conftest.$ac_objext'
 
34133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34134
  (eval $ac_try) 2>&5
 
34135
  ac_status=$?
 
34136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34137
  (exit $ac_status); }; }; then
 
34138
  ac_header_compiler=yes
 
34139
else
 
34140
  echo "$as_me: failed program was:" >&5
 
34141
sed 's/^/| /' conftest.$ac_ext >&5
 
34142
 
 
34143
ac_header_compiler=no
 
34144
fi
 
34145
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34146
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
34147
echo "${ECHO_T}$ac_header_compiler" >&6
 
34148
 
 
34149
# Is the header present?
 
34150
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
34151
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
34152
cat >conftest.$ac_ext <<_ACEOF
 
34153
/* confdefs.h.  */
 
34154
_ACEOF
 
34155
cat confdefs.h >>conftest.$ac_ext
 
34156
cat >>conftest.$ac_ext <<_ACEOF
 
34157
/* end confdefs.h.  */
 
34158
#include <$ac_header>
 
34159
_ACEOF
 
34160
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
34161
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
34162
  ac_status=$?
 
34163
  grep -v '^ *+' conftest.er1 >conftest.err
 
34164
  rm -f conftest.er1
 
34165
  cat conftest.err >&5
 
34166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34167
  (exit $ac_status); } >/dev/null; then
 
34168
  if test -s conftest.err; then
 
34169
    ac_cpp_err=$ac_c_preproc_warn_flag
 
34170
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
34171
  else
 
34172
    ac_cpp_err=
 
34173
  fi
 
34174
else
 
34175
  ac_cpp_err=yes
 
34176
fi
 
34177
if test -z "$ac_cpp_err"; then
 
34178
  ac_header_preproc=yes
 
34179
else
 
34180
  echo "$as_me: failed program was:" >&5
 
34181
sed 's/^/| /' conftest.$ac_ext >&5
 
34182
 
 
34183
  ac_header_preproc=no
 
34184
fi
 
34185
rm -f conftest.err conftest.$ac_ext
 
34186
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
34187
echo "${ECHO_T}$ac_header_preproc" >&6
 
34188
 
 
34189
# So?  What about this header?
 
34190
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
34191
  yes:no: )
 
34192
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
34193
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
34194
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
34195
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
34196
    ac_header_preproc=yes
 
34197
    ;;
 
34198
  no:yes:* )
 
34199
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
34200
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
34201
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
34202
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
34203
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
34204
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
34205
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
34206
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
34207
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
34208
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
34209
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
34210
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
34211
    (
 
34212
      cat <<\_ASBOX
 
34213
## ------------------------------------------ ##
 
34214
## Report this to the AC_PACKAGE_NAME lists.  ##
 
34215
## ------------------------------------------ ##
 
34216
_ASBOX
 
34217
    ) |
 
34218
      sed "s/^/$as_me: WARNING:     /" >&2
 
34219
    ;;
 
34220
esac
 
34221
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
34222
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
34223
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
34224
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34225
else
 
34226
  eval "$as_ac_Header=\$ac_header_preproc"
 
34227
fi
 
34228
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
34229
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
34230
 
 
34231
fi
 
34232
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
34233
  cat >>confdefs.h <<_ACEOF
 
34234
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
34235
_ACEOF
 
34236
 
 
34237
fi
 
34238
 
 
34239
done
 
34240
 
 
34241
 
 
34242
# Already-done: strcasecmp
 
34243
 
 
34244
 
 
34245
 
 
34246
 
 
34247
 
 
34248
 
 
34249
 
 
34250
for ac_func in lstat putenv select setenv setlocale strcoll tcgetattr
 
34251
do
 
34252
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
34253
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
34254
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
34255
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
34256
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34257
else
 
34258
  cat >conftest.$ac_ext <<_ACEOF
 
34259
/* confdefs.h.  */
 
34260
_ACEOF
 
34261
cat confdefs.h >>conftest.$ac_ext
 
34262
cat >>conftest.$ac_ext <<_ACEOF
 
34263
/* end confdefs.h.  */
 
34264
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
34265
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
34266
#define $ac_func innocuous_$ac_func
 
34267
 
 
34268
/* System header to define __stub macros and hopefully few prototypes,
 
34269
    which can conflict with char $ac_func (); below.
 
34270
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
34271
    <limits.h> exists even on freestanding compilers.  */
 
34272
 
 
34273
#ifdef __STDC__
 
34274
# include <limits.h>
 
34275
#else
 
34276
# include <assert.h>
 
34277
#endif
 
34278
 
 
34279
#undef $ac_func
 
34280
 
 
34281
/* Override any gcc2 internal prototype to avoid an error.  */
 
34282
#ifdef __cplusplus
 
34283
extern "C"
 
34284
{
 
34285
#endif
 
34286
/* We use char because int might match the return type of a gcc2
 
34287
   builtin and then its argument prototype would still apply.  */
 
34288
char $ac_func ();
 
34289
/* The GNU C library defines this for functions which it implements
 
34290
    to always fail with ENOSYS.  Some functions are actually named
 
34291
    something starting with __ and the normal name is an alias.  */
 
34292
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
34293
choke me
 
34294
#else
 
34295
char (*f) () = $ac_func;
 
34296
#endif
 
34297
#ifdef __cplusplus
 
34298
}
 
34299
#endif
 
34300
 
 
34301
int
 
34302
main ()
 
34303
{
 
34304
return f != $ac_func;
 
34305
  ;
 
34306
  return 0;
 
34307
}
 
34308
_ACEOF
 
34309
rm -f conftest.$ac_objext conftest$ac_exeext
 
34310
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
34311
  (eval $ac_link) 2>conftest.er1
 
34312
  ac_status=$?
 
34313
  grep -v '^ *+' conftest.er1 >conftest.err
 
34314
  rm -f conftest.er1
 
34315
  cat conftest.err >&5
 
34316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34317
  (exit $ac_status); } &&
 
34318
         { ac_try='test -z "$ac_c_werror_flag"
 
34319
                         || test ! -s conftest.err'
 
34320
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34321
  (eval $ac_try) 2>&5
 
34322
  ac_status=$?
 
34323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34324
  (exit $ac_status); }; } &&
 
34325
         { ac_try='test -s conftest$ac_exeext'
 
34326
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34327
  (eval $ac_try) 2>&5
 
34328
  ac_status=$?
 
34329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34330
  (exit $ac_status); }; }; then
 
34331
  eval "$as_ac_var=yes"
 
34332
else
 
34333
  echo "$as_me: failed program was:" >&5
 
34334
sed 's/^/| /' conftest.$ac_ext >&5
 
34335
 
 
34336
eval "$as_ac_var=no"
 
34337
fi
 
34338
rm -f conftest.err conftest.$ac_objext \
 
34339
      conftest$ac_exeext conftest.$ac_ext
 
34340
fi
 
34341
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
34342
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
34343
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
34344
  cat >>confdefs.h <<_ACEOF
 
34345
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
34346
_ACEOF
 
34347
 
 
34348
fi
 
34349
done
 
34350
 
 
34351
 
 
34352
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
 
34353
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
 
34354
if test "${ac_cv_header_stat_broken+set}" = set; then
 
34355
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34356
else
 
34357
  cat >conftest.$ac_ext <<_ACEOF
 
34358
/* confdefs.h.  */
 
34359
_ACEOF
 
34360
cat confdefs.h >>conftest.$ac_ext
 
34361
cat >>conftest.$ac_ext <<_ACEOF
 
34362
/* end confdefs.h.  */
 
34363
#include <sys/types.h>
 
34364
#include <sys/stat.h>
 
34365
 
 
34366
#if defined(S_ISBLK) && defined(S_IFDIR)
 
34367
# if S_ISBLK (S_IFDIR)
 
34368
You lose.
 
34369
# endif
 
34370
#endif
 
34371
 
 
34372
#if defined(S_ISBLK) && defined(S_IFCHR)
 
34373
# if S_ISBLK (S_IFCHR)
 
34374
You lose.
 
34375
# endif
 
34376
#endif
 
34377
 
 
34378
#if defined(S_ISLNK) && defined(S_IFREG)
 
34379
# if S_ISLNK (S_IFREG)
 
34380
You lose.
 
34381
# endif
 
34382
#endif
 
34383
 
 
34384
#if defined(S_ISSOCK) && defined(S_IFREG)
 
34385
# if S_ISSOCK (S_IFREG)
 
34386
You lose.
 
34387
# endif
 
34388
#endif
 
34389
 
 
34390
_ACEOF
 
34391
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
34392
  $EGREP "You lose" >/dev/null 2>&1; then
 
34393
  ac_cv_header_stat_broken=yes
 
34394
else
 
34395
  ac_cv_header_stat_broken=no
 
34396
fi
 
34397
rm -f conftest*
 
34398
 
 
34399
fi
 
34400
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
 
34401
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
 
34402
if test $ac_cv_header_stat_broken = yes; then
 
34403
 
 
34404
cat >>confdefs.h <<\_ACEOF
 
34405
#define STAT_MACROS_BROKEN 1
 
34406
_ACEOF
 
34407
 
 
34408
fi
 
34409
 
 
34410
 
 
34411
echo "$as_me:$LINENO: checking for type of signal functions" >&5
 
34412
echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
 
34413
if test "${mysql_cv_signal_vintage+set}" = set; then
 
34414
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34415
else
 
34416
 
 
34417
  cat >conftest.$ac_ext <<_ACEOF
 
34418
/* confdefs.h.  */
 
34419
_ACEOF
 
34420
cat confdefs.h >>conftest.$ac_ext
 
34421
cat >>conftest.$ac_ext <<_ACEOF
 
34422
/* end confdefs.h.  */
 
34423
#include <signal.h>
 
34424
int
 
34425
main ()
 
34426
{
 
34427
 
 
34428
    sigset_t ss;
 
34429
    struct sigaction sa;
 
34430
    sigemptyset(&ss); sigsuspend(&ss);
 
34431
    sigaction(SIGINT, &sa, (struct sigaction *) 0);
 
34432
    sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
 
34433
 
 
34434
  ;
 
34435
  return 0;
 
34436
}
 
34437
_ACEOF
 
34438
rm -f conftest.$ac_objext conftest$ac_exeext
 
34439
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
34440
  (eval $ac_link) 2>conftest.er1
 
34441
  ac_status=$?
 
34442
  grep -v '^ *+' conftest.er1 >conftest.err
 
34443
  rm -f conftest.er1
 
34444
  cat conftest.err >&5
 
34445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34446
  (exit $ac_status); } &&
 
34447
         { ac_try='test -z "$ac_c_werror_flag"
 
34448
                         || test ! -s conftest.err'
 
34449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34450
  (eval $ac_try) 2>&5
 
34451
  ac_status=$?
 
34452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34453
  (exit $ac_status); }; } &&
 
34454
         { ac_try='test -s conftest$ac_exeext'
 
34455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34456
  (eval $ac_try) 2>&5
 
34457
  ac_status=$?
 
34458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34459
  (exit $ac_status); }; }; then
 
34460
  mysql_cv_signal_vintage=posix
 
34461
else
 
34462
  echo "$as_me: failed program was:" >&5
 
34463
sed 's/^/| /' conftest.$ac_ext >&5
 
34464
 
 
34465
 
 
34466
    cat >conftest.$ac_ext <<_ACEOF
 
34467
/* confdefs.h.  */
 
34468
_ACEOF
 
34469
cat confdefs.h >>conftest.$ac_ext
 
34470
cat >>conftest.$ac_ext <<_ACEOF
 
34471
/* end confdefs.h.  */
 
34472
#include <signal.h>
 
34473
int
 
34474
main ()
 
34475
{
 
34476
 
 
34477
        int mask = sigmask(SIGINT);
 
34478
        sigsetmask(mask); sigblock(mask); sigpause(mask);
 
34479
 
 
34480
  ;
 
34481
  return 0;
 
34482
}
 
34483
_ACEOF
 
34484
rm -f conftest.$ac_objext conftest$ac_exeext
 
34485
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
34486
  (eval $ac_link) 2>conftest.er1
 
34487
  ac_status=$?
 
34488
  grep -v '^ *+' conftest.er1 >conftest.err
 
34489
  rm -f conftest.er1
 
34490
  cat conftest.err >&5
 
34491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34492
  (exit $ac_status); } &&
 
34493
         { ac_try='test -z "$ac_c_werror_flag"
 
34494
                         || test ! -s conftest.err'
 
34495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34496
  (eval $ac_try) 2>&5
 
34497
  ac_status=$?
 
34498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34499
  (exit $ac_status); }; } &&
 
34500
         { ac_try='test -s conftest$ac_exeext'
 
34501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34502
  (eval $ac_try) 2>&5
 
34503
  ac_status=$?
 
34504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34505
  (exit $ac_status); }; }; then
 
34506
  mysql_cv_signal_vintage=4.2bsd
 
34507
else
 
34508
  echo "$as_me: failed program was:" >&5
 
34509
sed 's/^/| /' conftest.$ac_ext >&5
 
34510
 
 
34511
 
 
34512
      cat >conftest.$ac_ext <<_ACEOF
 
34513
/* confdefs.h.  */
 
34514
_ACEOF
 
34515
cat confdefs.h >>conftest.$ac_ext
 
34516
cat >>conftest.$ac_ext <<_ACEOF
 
34517
/* end confdefs.h.  */
 
34518
 
 
34519
        #include <signal.h>
 
34520
        RETSIGTYPE foo() { }
 
34521
int
 
34522
main ()
 
34523
{
 
34524
 
 
34525
                int mask = sigmask(SIGINT);
 
34526
                sigset(SIGINT, foo); sigrelse(SIGINT);
 
34527
                sighold(SIGINT); sigpause(SIGINT);
 
34528
 
 
34529
  ;
 
34530
  return 0;
 
34531
}
 
34532
_ACEOF
 
34533
rm -f conftest.$ac_objext conftest$ac_exeext
 
34534
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
34535
  (eval $ac_link) 2>conftest.er1
 
34536
  ac_status=$?
 
34537
  grep -v '^ *+' conftest.er1 >conftest.err
 
34538
  rm -f conftest.er1
 
34539
  cat conftest.err >&5
 
34540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34541
  (exit $ac_status); } &&
 
34542
         { ac_try='test -z "$ac_c_werror_flag"
 
34543
                         || test ! -s conftest.err'
 
34544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34545
  (eval $ac_try) 2>&5
 
34546
  ac_status=$?
 
34547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34548
  (exit $ac_status); }; } &&
 
34549
         { ac_try='test -s conftest$ac_exeext'
 
34550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34551
  (eval $ac_try) 2>&5
 
34552
  ac_status=$?
 
34553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34554
  (exit $ac_status); }; }; then
 
34555
  mysql_cv_signal_vintage=svr3
 
34556
else
 
34557
  echo "$as_me: failed program was:" >&5
 
34558
sed 's/^/| /' conftest.$ac_ext >&5
 
34559
 
 
34560
mysql_cv_signal_vintage=v7
 
34561
 
 
34562
fi
 
34563
rm -f conftest.err conftest.$ac_objext \
 
34564
      conftest$ac_exeext conftest.$ac_ext
 
34565
 
 
34566
fi
 
34567
rm -f conftest.err conftest.$ac_objext \
 
34568
      conftest$ac_exeext conftest.$ac_ext
 
34569
 
 
34570
fi
 
34571
rm -f conftest.err conftest.$ac_objext \
 
34572
      conftest$ac_exeext conftest.$ac_ext
 
34573
 
 
34574
fi
 
34575
 
 
34576
echo "$as_me:$LINENO: result: $mysql_cv_signal_vintage" >&5
 
34577
echo "${ECHO_T}$mysql_cv_signal_vintage" >&6
 
34578
if test "$mysql_cv_signal_vintage" = posix; then
 
34579
 
 
34580
cat >>confdefs.h <<\_ACEOF
 
34581
#define HAVE_POSIX_SIGNALS 1
 
34582
_ACEOF
 
34583
 
 
34584
elif test "$mysql_cv_signal_vintage" = "4.2bsd"; then
 
34585
 
 
34586
cat >>confdefs.h <<\_ACEOF
 
34587
#define HAVE_BSD_SIGNALS 1
 
34588
_ACEOF
 
34589
 
 
34590
elif test "$mysql_cv_signal_vintage" = svr3; then
 
34591
 
 
34592
cat >>confdefs.h <<\_ACEOF
 
34593
#define HAVE_USG_SIGHOLD 1
 
34594
_ACEOF
 
34595
 
 
34596
fi
 
34597
 
 
34598
echo "$as_me:$LINENO: checking whether programs are able to redeclare getpw functions" >&5
 
34599
echo $ECHO_N "checking whether programs are able to redeclare getpw functions... $ECHO_C" >&6
 
34600
if test "${mysql_cv_can_redecl_getpw+set}" = set; then
 
34601
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34602
else
 
34603
  cat >conftest.$ac_ext <<_ACEOF
 
34604
/* confdefs.h.  */
 
34605
_ACEOF
 
34606
cat confdefs.h >>conftest.$ac_ext
 
34607
cat >>conftest.$ac_ext <<_ACEOF
 
34608
/* end confdefs.h.  */
 
34609
#include <sys/types.h>
 
34610
#include <pwd.h>
 
34611
extern struct passwd *getpwent();
 
34612
int
 
34613
main ()
 
34614
{
 
34615
struct passwd *z; z = getpwent();
 
34616
  ;
 
34617
  return 0;
 
34618
}
 
34619
_ACEOF
 
34620
rm -f conftest.$ac_objext
 
34621
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34622
  (eval $ac_compile) 2>conftest.er1
 
34623
  ac_status=$?
 
34624
  grep -v '^ *+' conftest.er1 >conftest.err
 
34625
  rm -f conftest.er1
 
34626
  cat conftest.err >&5
 
34627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34628
  (exit $ac_status); } &&
 
34629
         { ac_try='test -z "$ac_c_werror_flag"
 
34630
                         || test ! -s conftest.err'
 
34631
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34632
  (eval $ac_try) 2>&5
 
34633
  ac_status=$?
 
34634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34635
  (exit $ac_status); }; } &&
 
34636
         { ac_try='test -s conftest.$ac_objext'
 
34637
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34638
  (eval $ac_try) 2>&5
 
34639
  ac_status=$?
 
34640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34641
  (exit $ac_status); }; }; then
 
34642
  mysql_cv_can_redecl_getpw=yes
 
34643
else
 
34644
  echo "$as_me: failed program was:" >&5
 
34645
sed 's/^/| /' conftest.$ac_ext >&5
 
34646
 
 
34647
mysql_cv_can_redecl_getpw=no
 
34648
fi
 
34649
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34650
fi
 
34651
 
 
34652
echo "$as_me:$LINENO: result: $mysql_cv_can_redecl_getpw" >&5
 
34653
echo "${ECHO_T}$mysql_cv_can_redecl_getpw" >&6
 
34654
if test "$mysql_cv_can_redecl_getpw" = "no"; then
 
34655
 
 
34656
cat >>confdefs.h <<\_ACEOF
 
34657
#define HAVE_GETPW_DECLS 1
 
34658
_ACEOF
 
34659
 
 
34660
fi
 
34661
 
 
34662
echo "$as_me:$LINENO: checking for TIOCGWINSZ in sys/ioctl.h" >&5
 
34663
echo $ECHO_N "checking for TIOCGWINSZ in sys/ioctl.h... $ECHO_C" >&6
 
34664
if test "${mysql_cv_tiocgwinsz_in_ioctl+set}" = set; then
 
34665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34666
else
 
34667
  cat >conftest.$ac_ext <<_ACEOF
 
34668
/* confdefs.h.  */
 
34669
_ACEOF
 
34670
cat confdefs.h >>conftest.$ac_ext
 
34671
cat >>conftest.$ac_ext <<_ACEOF
 
34672
/* end confdefs.h.  */
 
34673
#include <sys/types.h>
 
34674
#include <sys/ioctl.h>
 
34675
int
 
34676
main ()
 
34677
{
 
34678
int x = TIOCGWINSZ;
 
34679
  ;
 
34680
  return 0;
 
34681
}
 
34682
_ACEOF
 
34683
rm -f conftest.$ac_objext
 
34684
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34685
  (eval $ac_compile) 2>conftest.er1
 
34686
  ac_status=$?
 
34687
  grep -v '^ *+' conftest.er1 >conftest.err
 
34688
  rm -f conftest.er1
 
34689
  cat conftest.err >&5
 
34690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34691
  (exit $ac_status); } &&
 
34692
         { ac_try='test -z "$ac_c_werror_flag"
 
34693
                         || test ! -s conftest.err'
 
34694
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34695
  (eval $ac_try) 2>&5
 
34696
  ac_status=$?
 
34697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34698
  (exit $ac_status); }; } &&
 
34699
         { ac_try='test -s conftest.$ac_objext'
 
34700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34701
  (eval $ac_try) 2>&5
 
34702
  ac_status=$?
 
34703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34704
  (exit $ac_status); }; }; then
 
34705
  mysql_cv_tiocgwinsz_in_ioctl=yes
 
34706
else
 
34707
  echo "$as_me: failed program was:" >&5
 
34708
sed 's/^/| /' conftest.$ac_ext >&5
 
34709
 
 
34710
mysql_cv_tiocgwinsz_in_ioctl=no
 
34711
fi
 
34712
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34713
fi
 
34714
 
 
34715
echo "$as_me:$LINENO: result: $mysql_cv_tiocgwinsz_in_ioctl" >&5
 
34716
echo "${ECHO_T}$mysql_cv_tiocgwinsz_in_ioctl" >&6
 
34717
if test "$mysql_cv_tiocgwinsz_in_ioctl" = "yes"; then
 
34718
 
 
34719
cat >>confdefs.h <<\_ACEOF
 
34720
#define GWINSZ_IN_SYS_IOCTL 1
 
34721
_ACEOF
 
34722
 
 
34723
fi
 
34724
 
 
34725
echo "$as_me:$LINENO: checking for FIONREAD in sys/ioctl.h" >&5
 
34726
echo $ECHO_N "checking for FIONREAD in sys/ioctl.h... $ECHO_C" >&6
 
34727
if test "${mysql_cv_fionread_in_ioctl+set}" = set; then
 
34728
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34729
else
 
34730
  cat >conftest.$ac_ext <<_ACEOF
 
34731
/* confdefs.h.  */
 
34732
_ACEOF
 
34733
cat confdefs.h >>conftest.$ac_ext
 
34734
cat >>conftest.$ac_ext <<_ACEOF
 
34735
/* end confdefs.h.  */
 
34736
#include <sys/types.h>
 
34737
#include <sys/ioctl.h>
 
34738
int
 
34739
main ()
 
34740
{
 
34741
int x = FIONREAD;
 
34742
  ;
 
34743
  return 0;
 
34744
}
 
34745
_ACEOF
 
34746
rm -f conftest.$ac_objext
 
34747
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34748
  (eval $ac_compile) 2>conftest.er1
 
34749
  ac_status=$?
 
34750
  grep -v '^ *+' conftest.er1 >conftest.err
 
34751
  rm -f conftest.er1
 
34752
  cat conftest.err >&5
 
34753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34754
  (exit $ac_status); } &&
 
34755
         { ac_try='test -z "$ac_c_werror_flag"
 
34756
                         || test ! -s conftest.err'
 
34757
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34758
  (eval $ac_try) 2>&5
 
34759
  ac_status=$?
 
34760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34761
  (exit $ac_status); }; } &&
 
34762
         { ac_try='test -s conftest.$ac_objext'
 
34763
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34764
  (eval $ac_try) 2>&5
 
34765
  ac_status=$?
 
34766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34767
  (exit $ac_status); }; }; then
 
34768
  mysql_cv_fionread_in_ioctl=yes
 
34769
else
 
34770
  echo "$as_me: failed program was:" >&5
 
34771
sed 's/^/| /' conftest.$ac_ext >&5
 
34772
 
 
34773
mysql_cv_fionread_in_ioctl=no
 
34774
fi
 
34775
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34776
fi
 
34777
 
 
34778
echo "$as_me:$LINENO: result: $mysql_cv_fionread_in_ioctl" >&5
 
34779
echo "${ECHO_T}$mysql_cv_fionread_in_ioctl" >&6
 
34780
if test "$mysql_cv_fionread_in_ioctl" = "yes"; then
 
34781
 
 
34782
cat >>confdefs.h <<\_ACEOF
 
34783
#define FIONREAD_IN_SYS_IOCTL 1
 
34784
_ACEOF
 
34785
 
 
34786
fi
 
34787
 
 
34788
echo "$as_me:$LINENO: checking for TIOCSTAT in sys/ioctl.h" >&5
 
34789
echo $ECHO_N "checking for TIOCSTAT in sys/ioctl.h... $ECHO_C" >&6
 
34790
if test "${mysql_cv_tiocstat_in_ioctl+set}" = set; then
 
34791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34792
else
 
34793
  cat >conftest.$ac_ext <<_ACEOF
 
34794
/* confdefs.h.  */
 
34795
_ACEOF
 
34796
cat confdefs.h >>conftest.$ac_ext
 
34797
cat >>conftest.$ac_ext <<_ACEOF
 
34798
/* end confdefs.h.  */
 
34799
#include <sys/types.h>
 
34800
#include <sys/ioctl.h>
 
34801
int
 
34802
main ()
 
34803
{
 
34804
int x = TIOCSTAT;
 
34805
  ;
 
34806
  return 0;
 
34807
}
 
34808
_ACEOF
 
34809
rm -f conftest.$ac_objext
 
34810
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34811
  (eval $ac_compile) 2>conftest.er1
 
34812
  ac_status=$?
 
34813
  grep -v '^ *+' conftest.er1 >conftest.err
 
34814
  rm -f conftest.er1
 
34815
  cat conftest.err >&5
 
34816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34817
  (exit $ac_status); } &&
 
34818
         { ac_try='test -z "$ac_c_werror_flag"
 
34819
                         || test ! -s conftest.err'
 
34820
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34821
  (eval $ac_try) 2>&5
 
34822
  ac_status=$?
 
34823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34824
  (exit $ac_status); }; } &&
 
34825
         { ac_try='test -s conftest.$ac_objext'
 
34826
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34827
  (eval $ac_try) 2>&5
 
34828
  ac_status=$?
 
34829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34830
  (exit $ac_status); }; }; then
 
34831
  mysql_cv_tiocstat_in_ioctl=yes
 
34832
else
 
34833
  echo "$as_me: failed program was:" >&5
 
34834
sed 's/^/| /' conftest.$ac_ext >&5
 
34835
 
 
34836
mysql_cv_tiocstat_in_ioctl=no
 
34837
fi
 
34838
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34839
fi
 
34840
 
 
34841
echo "$as_me:$LINENO: result: $mysql_cv_tiocstat_in_ioctl" >&5
 
34842
echo "${ECHO_T}$mysql_cv_tiocstat_in_ioctl" >&6
 
34843
if test "$mysql_cv_tiocstat_in_ioctl" = "yes"; then
 
34844
 
 
34845
cat >>confdefs.h <<\_ACEOF
 
34846
#define TIOCSTAT_IN_SYS_IOCTL 1
 
34847
_ACEOF
 
34848
 
 
34849
fi
 
34850
 
 
34851
 
 
34852
echo "$as_me:$LINENO: checking if struct dirent has a d_ino member" >&5
 
34853
echo $ECHO_N "checking if struct dirent has a d_ino member... $ECHO_C" >&6
 
34854
if test "${mysql_cv_dirent_has_dino+set}" = set; then
 
34855
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34856
else
 
34857
  cat >conftest.$ac_ext <<_ACEOF
 
34858
/* confdefs.h.  */
 
34859
_ACEOF
 
34860
cat confdefs.h >>conftest.$ac_ext
 
34861
cat >>conftest.$ac_ext <<_ACEOF
 
34862
/* end confdefs.h.  */
 
34863
 
 
34864
#include <stdio.h>
 
34865
#include <sys/types.h>
 
34866
#ifdef HAVE_UNISTD_H
 
34867
# include <unistd.h>
 
34868
#endif /* HAVE_UNISTD_H */
 
34869
#if defined(HAVE_DIRENT_H)
 
34870
# include <dirent.h>
 
34871
#else
 
34872
# define dirent direct
 
34873
# ifdef HAVE_SYS_NDIR_H
 
34874
#  include <sys/ndir.h>
 
34875
# endif /* SYSNDIR */
 
34876
# ifdef HAVE_SYS_DIR_H
 
34877
#  include <sys/dir.h>
 
34878
# endif /* SYSDIR */
 
34879
# ifdef HAVE_NDIR_H
 
34880
#  include <ndir.h>
 
34881
# endif
 
34882
#endif /* HAVE_DIRENT_H */
 
34883
 
 
34884
int
 
34885
main ()
 
34886
{
 
34887
 
 
34888
struct dirent d; int z; z = d.d_ino;
 
34889
 
 
34890
  ;
 
34891
  return 0;
 
34892
}
 
34893
_ACEOF
 
34894
rm -f conftest.$ac_objext
 
34895
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34896
  (eval $ac_compile) 2>conftest.er1
 
34897
  ac_status=$?
 
34898
  grep -v '^ *+' conftest.er1 >conftest.err
 
34899
  rm -f conftest.er1
 
34900
  cat conftest.err >&5
 
34901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34902
  (exit $ac_status); } &&
 
34903
         { ac_try='test -z "$ac_c_werror_flag"
 
34904
                         || test ! -s conftest.err'
 
34905
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34906
  (eval $ac_try) 2>&5
 
34907
  ac_status=$?
 
34908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34909
  (exit $ac_status); }; } &&
 
34910
         { ac_try='test -s conftest.$ac_objext'
 
34911
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34912
  (eval $ac_try) 2>&5
 
34913
  ac_status=$?
 
34914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34915
  (exit $ac_status); }; }; then
 
34916
  mysql_cv_dirent_has_dino=yes
 
34917
else
 
34918
  echo "$as_me: failed program was:" >&5
 
34919
sed 's/^/| /' conftest.$ac_ext >&5
 
34920
 
 
34921
mysql_cv_dirent_has_dino=no
 
34922
fi
 
34923
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
34924
fi
 
34925
 
 
34926
echo "$as_me:$LINENO: result: $mysql_cv_dirent_has_dino" >&5
 
34927
echo "${ECHO_T}$mysql_cv_dirent_has_dino" >&6
 
34928
if test "$mysql_cv_dirent_has_dino" = "yes"; then
 
34929
 
 
34930
cat >>confdefs.h <<\_ACEOF
 
34931
#define STRUCT_DIRENT_HAS_D_INO 1
 
34932
_ACEOF
 
34933
 
 
34934
fi
 
34935
 
 
34936
 
 
34937
echo "$as_me:$LINENO: checking if struct dirent has a d_namlen member" >&5
 
34938
echo $ECHO_N "checking if struct dirent has a d_namlen member... $ECHO_C" >&6
 
34939
if test "${mysql_cv_dirent_has_dnamlen+set}" = set; then
 
34940
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
34941
else
 
34942
  cat >conftest.$ac_ext <<_ACEOF
 
34943
/* confdefs.h.  */
 
34944
_ACEOF
 
34945
cat confdefs.h >>conftest.$ac_ext
 
34946
cat >>conftest.$ac_ext <<_ACEOF
 
34947
/* end confdefs.h.  */
 
34948
 
 
34949
#include <stdio.h>
 
34950
#include <sys/types.h>
 
34951
#ifdef HAVE_UNISTD_H
 
34952
# include <unistd.h>
 
34953
#endif /* HAVE_UNISTD_H */
 
34954
#if defined(HAVE_DIRENT_H)
 
34955
# include <dirent.h>
 
34956
#else
 
34957
# define dirent direct
 
34958
# ifdef HAVE_SYS_NDIR_H
 
34959
#  include <sys/ndir.h>
 
34960
# endif /* SYSNDIR */
 
34961
# ifdef HAVE_SYS_DIR_H
 
34962
#  include <sys/dir.h>
 
34963
# endif /* SYSDIR */
 
34964
# ifdef HAVE_NDIR_H
 
34965
#  include <ndir.h>
 
34966
# endif
 
34967
#endif /* HAVE_DIRENT_H */
 
34968
 
 
34969
int
 
34970
main ()
 
34971
{
 
34972
 
 
34973
struct dirent d; int z; z = (int)d.d_namlen;
 
34974
 
 
34975
  ;
 
34976
  return 0;
 
34977
}
 
34978
_ACEOF
 
34979
rm -f conftest.$ac_objext
 
34980
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
34981
  (eval $ac_compile) 2>conftest.er1
 
34982
  ac_status=$?
 
34983
  grep -v '^ *+' conftest.er1 >conftest.err
 
34984
  rm -f conftest.er1
 
34985
  cat conftest.err >&5
 
34986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34987
  (exit $ac_status); } &&
 
34988
         { ac_try='test -z "$ac_c_werror_flag"
 
34989
                         || test ! -s conftest.err'
 
34990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34991
  (eval $ac_try) 2>&5
 
34992
  ac_status=$?
 
34993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
34994
  (exit $ac_status); }; } &&
 
34995
         { ac_try='test -s conftest.$ac_objext'
 
34996
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
34997
  (eval $ac_try) 2>&5
 
34998
  ac_status=$?
 
34999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35000
  (exit $ac_status); }; }; then
 
35001
  mysql_cv_dirent_has_dnamlen=yes
 
35002
else
 
35003
  echo "$as_me: failed program was:" >&5
 
35004
sed 's/^/| /' conftest.$ac_ext >&5
 
35005
 
 
35006
mysql_cv_dirent_has_dnamlen=no
 
35007
fi
 
35008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35009
fi
 
35010
 
 
35011
echo "$as_me:$LINENO: result: $mysql_cv_dirent_has_dnamlen" >&5
 
35012
echo "${ECHO_T}$mysql_cv_dirent_has_dnamlen" >&6
 
35013
if test "$mysql_cv_dirent_has_dnamlen" = "yes"; then
 
35014
 
 
35015
cat >>confdefs.h <<\_ACEOF
 
35016
#define STRUCT_DIRENT_HAS_D_NAMLEN 1
 
35017
_ACEOF
 
35018
 
 
35019
fi
 
35020
 
 
35021
echo "$as_me:$LINENO: checking whether signal handlers are of type void" >&5
 
35022
echo $ECHO_N "checking whether signal handlers are of type void... $ECHO_C" >&6
 
35023
if test "${mysql_cv_void_sighandler+set}" = set; then
 
35024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35025
else
 
35026
  cat >conftest.$ac_ext <<_ACEOF
 
35027
/* confdefs.h.  */
 
35028
_ACEOF
 
35029
cat confdefs.h >>conftest.$ac_ext
 
35030
cat >>conftest.$ac_ext <<_ACEOF
 
35031
/* end confdefs.h.  */
 
35032
#include <sys/types.h>
 
35033
#include <signal.h>
 
35034
#ifdef signal
 
35035
#undef signal
 
35036
#endif
 
35037
#ifdef __cplusplus
 
35038
extern "C"
 
35039
#endif
 
35040
void (*signal ()) ();
 
35041
int
 
35042
main ()
 
35043
{
 
35044
int i;
 
35045
  ;
 
35046
  return 0;
 
35047
}
 
35048
_ACEOF
 
35049
rm -f conftest.$ac_objext
 
35050
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35051
  (eval $ac_compile) 2>conftest.er1
 
35052
  ac_status=$?
 
35053
  grep -v '^ *+' conftest.er1 >conftest.err
 
35054
  rm -f conftest.er1
 
35055
  cat conftest.err >&5
 
35056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35057
  (exit $ac_status); } &&
 
35058
         { ac_try='test -z "$ac_c_werror_flag"
 
35059
                         || test ! -s conftest.err'
 
35060
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35061
  (eval $ac_try) 2>&5
 
35062
  ac_status=$?
 
35063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35064
  (exit $ac_status); }; } &&
 
35065
         { ac_try='test -s conftest.$ac_objext'
 
35066
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35067
  (eval $ac_try) 2>&5
 
35068
  ac_status=$?
 
35069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35070
  (exit $ac_status); }; }; then
 
35071
  mysql_cv_void_sighandler=yes
 
35072
else
 
35073
  echo "$as_me: failed program was:" >&5
 
35074
sed 's/^/| /' conftest.$ac_ext >&5
 
35075
 
 
35076
mysql_cv_void_sighandler=no
 
35077
fi
 
35078
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35079
fi
 
35080
echo "$as_me:$LINENO: result: $mysql_cv_void_sighandler" >&5
 
35081
echo "${ECHO_T}$mysql_cv_void_sighandler" >&6
 
35082
if test "$mysql_cv_void_sighandler" = "yes"; then
 
35083
 
 
35084
cat >>confdefs.h <<\_ACEOF
 
35085
#define VOID_SIGHANDLER 1
 
35086
_ACEOF
 
35087
 
 
35088
fi
 
35089
 
 
35090
 
 
35091
 
 
35092
for ac_header in wctype.h
 
35093
do
 
35094
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
35095
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
35096
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
35097
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
35098
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
35099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35100
fi
 
35101
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
35102
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
35103
else
 
35104
  # Is the header compilable?
 
35105
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
35106
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
35107
cat >conftest.$ac_ext <<_ACEOF
 
35108
/* confdefs.h.  */
 
35109
_ACEOF
 
35110
cat confdefs.h >>conftest.$ac_ext
 
35111
cat >>conftest.$ac_ext <<_ACEOF
 
35112
/* end confdefs.h.  */
 
35113
$ac_includes_default
 
35114
#include <$ac_header>
 
35115
_ACEOF
 
35116
rm -f conftest.$ac_objext
 
35117
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35118
  (eval $ac_compile) 2>conftest.er1
 
35119
  ac_status=$?
 
35120
  grep -v '^ *+' conftest.er1 >conftest.err
 
35121
  rm -f conftest.er1
 
35122
  cat conftest.err >&5
 
35123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35124
  (exit $ac_status); } &&
 
35125
         { ac_try='test -z "$ac_c_werror_flag"
 
35126
                         || test ! -s conftest.err'
 
35127
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35128
  (eval $ac_try) 2>&5
 
35129
  ac_status=$?
 
35130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35131
  (exit $ac_status); }; } &&
 
35132
         { ac_try='test -s conftest.$ac_objext'
 
35133
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35134
  (eval $ac_try) 2>&5
 
35135
  ac_status=$?
 
35136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35137
  (exit $ac_status); }; }; then
 
35138
  ac_header_compiler=yes
 
35139
else
 
35140
  echo "$as_me: failed program was:" >&5
 
35141
sed 's/^/| /' conftest.$ac_ext >&5
 
35142
 
 
35143
ac_header_compiler=no
 
35144
fi
 
35145
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35146
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
35147
echo "${ECHO_T}$ac_header_compiler" >&6
 
35148
 
 
35149
# Is the header present?
 
35150
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
35151
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
35152
cat >conftest.$ac_ext <<_ACEOF
 
35153
/* confdefs.h.  */
 
35154
_ACEOF
 
35155
cat confdefs.h >>conftest.$ac_ext
 
35156
cat >>conftest.$ac_ext <<_ACEOF
 
35157
/* end confdefs.h.  */
 
35158
#include <$ac_header>
 
35159
_ACEOF
 
35160
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
35161
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
35162
  ac_status=$?
 
35163
  grep -v '^ *+' conftest.er1 >conftest.err
 
35164
  rm -f conftest.er1
 
35165
  cat conftest.err >&5
 
35166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35167
  (exit $ac_status); } >/dev/null; then
 
35168
  if test -s conftest.err; then
 
35169
    ac_cpp_err=$ac_c_preproc_warn_flag
 
35170
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
35171
  else
 
35172
    ac_cpp_err=
 
35173
  fi
 
35174
else
 
35175
  ac_cpp_err=yes
 
35176
fi
 
35177
if test -z "$ac_cpp_err"; then
 
35178
  ac_header_preproc=yes
 
35179
else
 
35180
  echo "$as_me: failed program was:" >&5
 
35181
sed 's/^/| /' conftest.$ac_ext >&5
 
35182
 
 
35183
  ac_header_preproc=no
 
35184
fi
 
35185
rm -f conftest.err conftest.$ac_ext
 
35186
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
35187
echo "${ECHO_T}$ac_header_preproc" >&6
 
35188
 
 
35189
# So?  What about this header?
 
35190
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
35191
  yes:no: )
 
35192
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
35193
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
35194
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
35195
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
35196
    ac_header_preproc=yes
 
35197
    ;;
 
35198
  no:yes:* )
 
35199
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
35200
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
35201
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
35202
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
35203
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
35204
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
35205
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
35206
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
35207
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
35208
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
35209
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
35210
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
35211
    (
 
35212
      cat <<\_ASBOX
 
35213
## ------------------------------------------ ##
 
35214
## Report this to the AC_PACKAGE_NAME lists.  ##
 
35215
## ------------------------------------------ ##
 
35216
_ASBOX
 
35217
    ) |
 
35218
      sed "s/^/$as_me: WARNING:     /" >&2
 
35219
    ;;
 
35220
esac
 
35221
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
35222
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
35223
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
35224
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35225
else
 
35226
  eval "$as_ac_Header=\$ac_header_preproc"
 
35227
fi
 
35228
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
35229
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
35230
 
 
35231
fi
 
35232
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
35233
  cat >>confdefs.h <<_ACEOF
 
35234
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
35235
_ACEOF
 
35236
 
 
35237
fi
 
35238
 
 
35239
done
 
35240
 
 
35241
 
 
35242
for ac_header in wchar.h
 
35243
do
 
35244
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
35245
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
35246
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
35247
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
35248
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
35249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35250
fi
 
35251
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
35252
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
35253
else
 
35254
  # Is the header compilable?
 
35255
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
35256
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
35257
cat >conftest.$ac_ext <<_ACEOF
 
35258
/* confdefs.h.  */
 
35259
_ACEOF
 
35260
cat confdefs.h >>conftest.$ac_ext
 
35261
cat >>conftest.$ac_ext <<_ACEOF
 
35262
/* end confdefs.h.  */
 
35263
$ac_includes_default
 
35264
#include <$ac_header>
 
35265
_ACEOF
 
35266
rm -f conftest.$ac_objext
 
35267
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35268
  (eval $ac_compile) 2>conftest.er1
 
35269
  ac_status=$?
 
35270
  grep -v '^ *+' conftest.er1 >conftest.err
 
35271
  rm -f conftest.er1
 
35272
  cat conftest.err >&5
 
35273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35274
  (exit $ac_status); } &&
 
35275
         { ac_try='test -z "$ac_c_werror_flag"
 
35276
                         || test ! -s conftest.err'
 
35277
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35278
  (eval $ac_try) 2>&5
 
35279
  ac_status=$?
 
35280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35281
  (exit $ac_status); }; } &&
 
35282
         { ac_try='test -s conftest.$ac_objext'
 
35283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35284
  (eval $ac_try) 2>&5
 
35285
  ac_status=$?
 
35286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35287
  (exit $ac_status); }; }; then
 
35288
  ac_header_compiler=yes
 
35289
else
 
35290
  echo "$as_me: failed program was:" >&5
 
35291
sed 's/^/| /' conftest.$ac_ext >&5
 
35292
 
 
35293
ac_header_compiler=no
 
35294
fi
 
35295
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35296
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
35297
echo "${ECHO_T}$ac_header_compiler" >&6
 
35298
 
 
35299
# Is the header present?
 
35300
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
35301
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
35302
cat >conftest.$ac_ext <<_ACEOF
 
35303
/* confdefs.h.  */
 
35304
_ACEOF
 
35305
cat confdefs.h >>conftest.$ac_ext
 
35306
cat >>conftest.$ac_ext <<_ACEOF
 
35307
/* end confdefs.h.  */
 
35308
#include <$ac_header>
 
35309
_ACEOF
 
35310
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
35311
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
35312
  ac_status=$?
 
35313
  grep -v '^ *+' conftest.er1 >conftest.err
 
35314
  rm -f conftest.er1
 
35315
  cat conftest.err >&5
 
35316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35317
  (exit $ac_status); } >/dev/null; then
 
35318
  if test -s conftest.err; then
 
35319
    ac_cpp_err=$ac_c_preproc_warn_flag
 
35320
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
35321
  else
 
35322
    ac_cpp_err=
 
35323
  fi
 
35324
else
 
35325
  ac_cpp_err=yes
 
35326
fi
 
35327
if test -z "$ac_cpp_err"; then
 
35328
  ac_header_preproc=yes
 
35329
else
 
35330
  echo "$as_me: failed program was:" >&5
 
35331
sed 's/^/| /' conftest.$ac_ext >&5
 
35332
 
 
35333
  ac_header_preproc=no
 
35334
fi
 
35335
rm -f conftest.err conftest.$ac_ext
 
35336
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
35337
echo "${ECHO_T}$ac_header_preproc" >&6
 
35338
 
 
35339
# So?  What about this header?
 
35340
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
35341
  yes:no: )
 
35342
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
35343
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
35344
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
35345
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
35346
    ac_header_preproc=yes
 
35347
    ;;
 
35348
  no:yes:* )
 
35349
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
35350
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
35351
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
35352
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
35353
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
35354
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
35355
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
35356
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
35357
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
35358
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
35359
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
35360
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
35361
    (
 
35362
      cat <<\_ASBOX
 
35363
## ------------------------------------------ ##
 
35364
## Report this to the AC_PACKAGE_NAME lists.  ##
 
35365
## ------------------------------------------ ##
 
35366
_ASBOX
 
35367
    ) |
 
35368
      sed "s/^/$as_me: WARNING:     /" >&2
 
35369
    ;;
 
35370
esac
 
35371
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
35372
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
35373
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
35374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35375
else
 
35376
  eval "$as_ac_Header=\$ac_header_preproc"
 
35377
fi
 
35378
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
35379
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
35380
 
 
35381
fi
 
35382
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
35383
  cat >>confdefs.h <<_ACEOF
 
35384
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
35385
_ACEOF
 
35386
 
 
35387
fi
 
35388
 
 
35389
done
 
35390
 
 
35391
 
 
35392
for ac_header in langinfo.h
 
35393
do
 
35394
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
35395
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
35396
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
35397
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
35398
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
35399
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35400
fi
 
35401
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
35402
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
35403
else
 
35404
  # Is the header compilable?
 
35405
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
35406
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
35407
cat >conftest.$ac_ext <<_ACEOF
 
35408
/* confdefs.h.  */
 
35409
_ACEOF
 
35410
cat confdefs.h >>conftest.$ac_ext
 
35411
cat >>conftest.$ac_ext <<_ACEOF
 
35412
/* end confdefs.h.  */
 
35413
$ac_includes_default
 
35414
#include <$ac_header>
 
35415
_ACEOF
 
35416
rm -f conftest.$ac_objext
 
35417
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
35418
  (eval $ac_compile) 2>conftest.er1
 
35419
  ac_status=$?
 
35420
  grep -v '^ *+' conftest.er1 >conftest.err
 
35421
  rm -f conftest.er1
 
35422
  cat conftest.err >&5
 
35423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35424
  (exit $ac_status); } &&
 
35425
         { ac_try='test -z "$ac_c_werror_flag"
 
35426
                         || test ! -s conftest.err'
 
35427
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35428
  (eval $ac_try) 2>&5
 
35429
  ac_status=$?
 
35430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35431
  (exit $ac_status); }; } &&
 
35432
         { ac_try='test -s conftest.$ac_objext'
 
35433
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35434
  (eval $ac_try) 2>&5
 
35435
  ac_status=$?
 
35436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35437
  (exit $ac_status); }; }; then
 
35438
  ac_header_compiler=yes
 
35439
else
 
35440
  echo "$as_me: failed program was:" >&5
 
35441
sed 's/^/| /' conftest.$ac_ext >&5
 
35442
 
 
35443
ac_header_compiler=no
 
35444
fi
 
35445
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
35446
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
35447
echo "${ECHO_T}$ac_header_compiler" >&6
 
35448
 
 
35449
# Is the header present?
 
35450
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
35451
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
35452
cat >conftest.$ac_ext <<_ACEOF
 
35453
/* confdefs.h.  */
 
35454
_ACEOF
 
35455
cat confdefs.h >>conftest.$ac_ext
 
35456
cat >>conftest.$ac_ext <<_ACEOF
 
35457
/* end confdefs.h.  */
 
35458
#include <$ac_header>
 
35459
_ACEOF
 
35460
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
35461
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
35462
  ac_status=$?
 
35463
  grep -v '^ *+' conftest.er1 >conftest.err
 
35464
  rm -f conftest.er1
 
35465
  cat conftest.err >&5
 
35466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35467
  (exit $ac_status); } >/dev/null; then
 
35468
  if test -s conftest.err; then
 
35469
    ac_cpp_err=$ac_c_preproc_warn_flag
 
35470
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
35471
  else
 
35472
    ac_cpp_err=
 
35473
  fi
 
35474
else
 
35475
  ac_cpp_err=yes
 
35476
fi
 
35477
if test -z "$ac_cpp_err"; then
 
35478
  ac_header_preproc=yes
 
35479
else
 
35480
  echo "$as_me: failed program was:" >&5
 
35481
sed 's/^/| /' conftest.$ac_ext >&5
 
35482
 
 
35483
  ac_header_preproc=no
 
35484
fi
 
35485
rm -f conftest.err conftest.$ac_ext
 
35486
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
35487
echo "${ECHO_T}$ac_header_preproc" >&6
 
35488
 
 
35489
# So?  What about this header?
 
35490
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
35491
  yes:no: )
 
35492
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
35493
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
35494
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
35495
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
35496
    ac_header_preproc=yes
 
35497
    ;;
 
35498
  no:yes:* )
 
35499
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
35500
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
35501
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
35502
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
35503
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
35504
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
35505
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
35506
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
35507
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
35508
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
35509
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
35510
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
35511
    (
 
35512
      cat <<\_ASBOX
 
35513
## ------------------------------------------ ##
 
35514
## Report this to the AC_PACKAGE_NAME lists.  ##
 
35515
## ------------------------------------------ ##
 
35516
_ASBOX
 
35517
    ) |
 
35518
      sed "s/^/$as_me: WARNING:     /" >&2
 
35519
    ;;
 
35520
esac
 
35521
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
35522
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
35523
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
35524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35525
else
 
35526
  eval "$as_ac_Header=\$ac_header_preproc"
 
35527
fi
 
35528
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
35529
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
35530
 
 
35531
fi
 
35532
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
35533
  cat >>confdefs.h <<_ACEOF
 
35534
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
35535
_ACEOF
 
35536
 
 
35537
fi
 
35538
 
 
35539
done
 
35540
 
 
35541
 
 
35542
echo "$as_me:$LINENO: checking for mbsrtowcs" >&5
 
35543
echo $ECHO_N "checking for mbsrtowcs... $ECHO_C" >&6
 
35544
if test "${ac_cv_func_mbsrtowcs+set}" = set; then
 
35545
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35546
else
 
35547
  cat >conftest.$ac_ext <<_ACEOF
 
35548
/* confdefs.h.  */
 
35549
_ACEOF
 
35550
cat confdefs.h >>conftest.$ac_ext
 
35551
cat >>conftest.$ac_ext <<_ACEOF
 
35552
/* end confdefs.h.  */
 
35553
/* Define mbsrtowcs to an innocuous variant, in case <limits.h> declares mbsrtowcs.
 
35554
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
35555
#define mbsrtowcs innocuous_mbsrtowcs
 
35556
 
 
35557
/* System header to define __stub macros and hopefully few prototypes,
 
35558
    which can conflict with char mbsrtowcs (); below.
 
35559
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
35560
    <limits.h> exists even on freestanding compilers.  */
 
35561
 
 
35562
#ifdef __STDC__
 
35563
# include <limits.h>
 
35564
#else
 
35565
# include <assert.h>
 
35566
#endif
 
35567
 
 
35568
#undef mbsrtowcs
 
35569
 
 
35570
/* Override any gcc2 internal prototype to avoid an error.  */
 
35571
#ifdef __cplusplus
 
35572
extern "C"
 
35573
{
 
35574
#endif
 
35575
/* We use char because int might match the return type of a gcc2
 
35576
   builtin and then its argument prototype would still apply.  */
 
35577
char mbsrtowcs ();
 
35578
/* The GNU C library defines this for functions which it implements
 
35579
    to always fail with ENOSYS.  Some functions are actually named
 
35580
    something starting with __ and the normal name is an alias.  */
 
35581
#if defined (__stub_mbsrtowcs) || defined (__stub___mbsrtowcs)
 
35582
choke me
 
35583
#else
 
35584
char (*f) () = mbsrtowcs;
 
35585
#endif
 
35586
#ifdef __cplusplus
 
35587
}
 
35588
#endif
 
35589
 
 
35590
int
 
35591
main ()
 
35592
{
 
35593
return f != mbsrtowcs;
 
35594
  ;
 
35595
  return 0;
 
35596
}
 
35597
_ACEOF
 
35598
rm -f conftest.$ac_objext conftest$ac_exeext
 
35599
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
35600
  (eval $ac_link) 2>conftest.er1
 
35601
  ac_status=$?
 
35602
  grep -v '^ *+' conftest.er1 >conftest.err
 
35603
  rm -f conftest.er1
 
35604
  cat conftest.err >&5
 
35605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35606
  (exit $ac_status); } &&
 
35607
         { ac_try='test -z "$ac_c_werror_flag"
 
35608
                         || test ! -s conftest.err'
 
35609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35610
  (eval $ac_try) 2>&5
 
35611
  ac_status=$?
 
35612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35613
  (exit $ac_status); }; } &&
 
35614
         { ac_try='test -s conftest$ac_exeext'
 
35615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35616
  (eval $ac_try) 2>&5
 
35617
  ac_status=$?
 
35618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35619
  (exit $ac_status); }; }; then
 
35620
  ac_cv_func_mbsrtowcs=yes
 
35621
else
 
35622
  echo "$as_me: failed program was:" >&5
 
35623
sed 's/^/| /' conftest.$ac_ext >&5
 
35624
 
 
35625
ac_cv_func_mbsrtowcs=no
 
35626
fi
 
35627
rm -f conftest.err conftest.$ac_objext \
 
35628
      conftest$ac_exeext conftest.$ac_ext
 
35629
fi
 
35630
echo "$as_me:$LINENO: result: $ac_cv_func_mbsrtowcs" >&5
 
35631
echo "${ECHO_T}$ac_cv_func_mbsrtowcs" >&6
 
35632
if test $ac_cv_func_mbsrtowcs = yes; then
 
35633
 
 
35634
cat >>confdefs.h <<\_ACEOF
 
35635
#define HAVE_MBSRTOWCS
 
35636
_ACEOF
 
35637
 
 
35638
fi
 
35639
 
 
35640
echo "$as_me:$LINENO: checking for mbrtowc" >&5
 
35641
echo $ECHO_N "checking for mbrtowc... $ECHO_C" >&6
 
35642
if test "${ac_cv_func_mbrtowc+set}" = set; then
 
35643
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35644
else
 
35645
  cat >conftest.$ac_ext <<_ACEOF
 
35646
/* confdefs.h.  */
 
35647
_ACEOF
 
35648
cat confdefs.h >>conftest.$ac_ext
 
35649
cat >>conftest.$ac_ext <<_ACEOF
 
35650
/* end confdefs.h.  */
 
35651
/* Define mbrtowc to an innocuous variant, in case <limits.h> declares mbrtowc.
 
35652
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
35653
#define mbrtowc innocuous_mbrtowc
 
35654
 
 
35655
/* System header to define __stub macros and hopefully few prototypes,
 
35656
    which can conflict with char mbrtowc (); below.
 
35657
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
35658
    <limits.h> exists even on freestanding compilers.  */
 
35659
 
 
35660
#ifdef __STDC__
 
35661
# include <limits.h>
 
35662
#else
 
35663
# include <assert.h>
 
35664
#endif
 
35665
 
 
35666
#undef mbrtowc
 
35667
 
 
35668
/* Override any gcc2 internal prototype to avoid an error.  */
 
35669
#ifdef __cplusplus
 
35670
extern "C"
 
35671
{
 
35672
#endif
 
35673
/* We use char because int might match the return type of a gcc2
 
35674
   builtin and then its argument prototype would still apply.  */
 
35675
char mbrtowc ();
 
35676
/* The GNU C library defines this for functions which it implements
 
35677
    to always fail with ENOSYS.  Some functions are actually named
 
35678
    something starting with __ and the normal name is an alias.  */
 
35679
#if defined (__stub_mbrtowc) || defined (__stub___mbrtowc)
 
35680
choke me
 
35681
#else
 
35682
char (*f) () = mbrtowc;
 
35683
#endif
 
35684
#ifdef __cplusplus
 
35685
}
 
35686
#endif
 
35687
 
 
35688
int
 
35689
main ()
 
35690
{
 
35691
return f != mbrtowc;
 
35692
  ;
 
35693
  return 0;
 
35694
}
 
35695
_ACEOF
 
35696
rm -f conftest.$ac_objext conftest$ac_exeext
 
35697
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
35698
  (eval $ac_link) 2>conftest.er1
 
35699
  ac_status=$?
 
35700
  grep -v '^ *+' conftest.er1 >conftest.err
 
35701
  rm -f conftest.er1
 
35702
  cat conftest.err >&5
 
35703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35704
  (exit $ac_status); } &&
 
35705
         { ac_try='test -z "$ac_c_werror_flag"
 
35706
                         || test ! -s conftest.err'
 
35707
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35708
  (eval $ac_try) 2>&5
 
35709
  ac_status=$?
 
35710
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35711
  (exit $ac_status); }; } &&
 
35712
         { ac_try='test -s conftest$ac_exeext'
 
35713
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35714
  (eval $ac_try) 2>&5
 
35715
  ac_status=$?
 
35716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35717
  (exit $ac_status); }; }; then
 
35718
  ac_cv_func_mbrtowc=yes
 
35719
else
 
35720
  echo "$as_me: failed program was:" >&5
 
35721
sed 's/^/| /' conftest.$ac_ext >&5
 
35722
 
 
35723
ac_cv_func_mbrtowc=no
 
35724
fi
 
35725
rm -f conftest.err conftest.$ac_objext \
 
35726
      conftest$ac_exeext conftest.$ac_ext
 
35727
fi
 
35728
echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
 
35729
echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
 
35730
if test $ac_cv_func_mbrtowc = yes; then
 
35731
 
 
35732
cat >>confdefs.h <<\_ACEOF
 
35733
#define HAVE_MBRTOWC
 
35734
_ACEOF
 
35735
 
 
35736
fi
 
35737
 
 
35738
echo "$as_me:$LINENO: checking for mbrlen" >&5
 
35739
echo $ECHO_N "checking for mbrlen... $ECHO_C" >&6
 
35740
if test "${ac_cv_func_mbrlen+set}" = set; then
 
35741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35742
else
 
35743
  cat >conftest.$ac_ext <<_ACEOF
 
35744
/* confdefs.h.  */
 
35745
_ACEOF
 
35746
cat confdefs.h >>conftest.$ac_ext
 
35747
cat >>conftest.$ac_ext <<_ACEOF
 
35748
/* end confdefs.h.  */
 
35749
/* Define mbrlen to an innocuous variant, in case <limits.h> declares mbrlen.
 
35750
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
35751
#define mbrlen innocuous_mbrlen
 
35752
 
 
35753
/* System header to define __stub macros and hopefully few prototypes,
 
35754
    which can conflict with char mbrlen (); below.
 
35755
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
35756
    <limits.h> exists even on freestanding compilers.  */
 
35757
 
 
35758
#ifdef __STDC__
 
35759
# include <limits.h>
 
35760
#else
 
35761
# include <assert.h>
 
35762
#endif
 
35763
 
 
35764
#undef mbrlen
 
35765
 
 
35766
/* Override any gcc2 internal prototype to avoid an error.  */
 
35767
#ifdef __cplusplus
 
35768
extern "C"
 
35769
{
 
35770
#endif
 
35771
/* We use char because int might match the return type of a gcc2
 
35772
   builtin and then its argument prototype would still apply.  */
 
35773
char mbrlen ();
 
35774
/* The GNU C library defines this for functions which it implements
 
35775
    to always fail with ENOSYS.  Some functions are actually named
 
35776
    something starting with __ and the normal name is an alias.  */
 
35777
#if defined (__stub_mbrlen) || defined (__stub___mbrlen)
 
35778
choke me
 
35779
#else
 
35780
char (*f) () = mbrlen;
 
35781
#endif
 
35782
#ifdef __cplusplus
 
35783
}
 
35784
#endif
 
35785
 
 
35786
int
 
35787
main ()
 
35788
{
 
35789
return f != mbrlen;
 
35790
  ;
 
35791
  return 0;
 
35792
}
 
35793
_ACEOF
 
35794
rm -f conftest.$ac_objext conftest$ac_exeext
 
35795
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
35796
  (eval $ac_link) 2>conftest.er1
 
35797
  ac_status=$?
 
35798
  grep -v '^ *+' conftest.er1 >conftest.err
 
35799
  rm -f conftest.er1
 
35800
  cat conftest.err >&5
 
35801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35802
  (exit $ac_status); } &&
 
35803
         { ac_try='test -z "$ac_c_werror_flag"
 
35804
                         || test ! -s conftest.err'
 
35805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35806
  (eval $ac_try) 2>&5
 
35807
  ac_status=$?
 
35808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35809
  (exit $ac_status); }; } &&
 
35810
         { ac_try='test -s conftest$ac_exeext'
 
35811
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35812
  (eval $ac_try) 2>&5
 
35813
  ac_status=$?
 
35814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35815
  (exit $ac_status); }; }; then
 
35816
  ac_cv_func_mbrlen=yes
 
35817
else
 
35818
  echo "$as_me: failed program was:" >&5
 
35819
sed 's/^/| /' conftest.$ac_ext >&5
 
35820
 
 
35821
ac_cv_func_mbrlen=no
 
35822
fi
 
35823
rm -f conftest.err conftest.$ac_objext \
 
35824
      conftest$ac_exeext conftest.$ac_ext
 
35825
fi
 
35826
echo "$as_me:$LINENO: result: $ac_cv_func_mbrlen" >&5
 
35827
echo "${ECHO_T}$ac_cv_func_mbrlen" >&6
 
35828
if test $ac_cv_func_mbrlen = yes; then
 
35829
 
 
35830
cat >>confdefs.h <<\_ACEOF
 
35831
#define HAVE_MBRLEN
 
35832
_ACEOF
 
35833
 
 
35834
fi
 
35835
 
 
35836
echo "$as_me:$LINENO: checking for wctomb" >&5
 
35837
echo $ECHO_N "checking for wctomb... $ECHO_C" >&6
 
35838
if test "${ac_cv_func_wctomb+set}" = set; then
 
35839
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35840
else
 
35841
  cat >conftest.$ac_ext <<_ACEOF
 
35842
/* confdefs.h.  */
 
35843
_ACEOF
 
35844
cat confdefs.h >>conftest.$ac_ext
 
35845
cat >>conftest.$ac_ext <<_ACEOF
 
35846
/* end confdefs.h.  */
 
35847
/* Define wctomb to an innocuous variant, in case <limits.h> declares wctomb.
 
35848
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
35849
#define wctomb innocuous_wctomb
 
35850
 
 
35851
/* System header to define __stub macros and hopefully few prototypes,
 
35852
    which can conflict with char wctomb (); below.
 
35853
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
35854
    <limits.h> exists even on freestanding compilers.  */
 
35855
 
 
35856
#ifdef __STDC__
 
35857
# include <limits.h>
 
35858
#else
 
35859
# include <assert.h>
 
35860
#endif
 
35861
 
 
35862
#undef wctomb
 
35863
 
 
35864
/* Override any gcc2 internal prototype to avoid an error.  */
 
35865
#ifdef __cplusplus
 
35866
extern "C"
 
35867
{
 
35868
#endif
 
35869
/* We use char because int might match the return type of a gcc2
 
35870
   builtin and then its argument prototype would still apply.  */
 
35871
char wctomb ();
 
35872
/* The GNU C library defines this for functions which it implements
 
35873
    to always fail with ENOSYS.  Some functions are actually named
 
35874
    something starting with __ and the normal name is an alias.  */
 
35875
#if defined (__stub_wctomb) || defined (__stub___wctomb)
 
35876
choke me
 
35877
#else
 
35878
char (*f) () = wctomb;
 
35879
#endif
 
35880
#ifdef __cplusplus
 
35881
}
 
35882
#endif
 
35883
 
 
35884
int
 
35885
main ()
 
35886
{
 
35887
return f != wctomb;
 
35888
  ;
 
35889
  return 0;
 
35890
}
 
35891
_ACEOF
 
35892
rm -f conftest.$ac_objext conftest$ac_exeext
 
35893
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
35894
  (eval $ac_link) 2>conftest.er1
 
35895
  ac_status=$?
 
35896
  grep -v '^ *+' conftest.er1 >conftest.err
 
35897
  rm -f conftest.er1
 
35898
  cat conftest.err >&5
 
35899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35900
  (exit $ac_status); } &&
 
35901
         { ac_try='test -z "$ac_c_werror_flag"
 
35902
                         || test ! -s conftest.err'
 
35903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35904
  (eval $ac_try) 2>&5
 
35905
  ac_status=$?
 
35906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35907
  (exit $ac_status); }; } &&
 
35908
         { ac_try='test -s conftest$ac_exeext'
 
35909
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
35910
  (eval $ac_try) 2>&5
 
35911
  ac_status=$?
 
35912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35913
  (exit $ac_status); }; }; then
 
35914
  ac_cv_func_wctomb=yes
 
35915
else
 
35916
  echo "$as_me: failed program was:" >&5
 
35917
sed 's/^/| /' conftest.$ac_ext >&5
 
35918
 
 
35919
ac_cv_func_wctomb=no
 
35920
fi
 
35921
rm -f conftest.err conftest.$ac_objext \
 
35922
      conftest$ac_exeext conftest.$ac_ext
 
35923
fi
 
35924
echo "$as_me:$LINENO: result: $ac_cv_func_wctomb" >&5
 
35925
echo "${ECHO_T}$ac_cv_func_wctomb" >&6
 
35926
if test $ac_cv_func_wctomb = yes; then
 
35927
 
 
35928
cat >>confdefs.h <<\_ACEOF
 
35929
#define HAVE_WCTOMB
 
35930
_ACEOF
 
35931
 
 
35932
fi
 
35933
 
 
35934
echo "$as_me:$LINENO: checking for wcwidth" >&5
 
35935
echo $ECHO_N "checking for wcwidth... $ECHO_C" >&6
 
35936
if test "${ac_cv_func_wcwidth+set}" = set; then
 
35937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
35938
else
 
35939
  cat >conftest.$ac_ext <<_ACEOF
 
35940
/* confdefs.h.  */
 
35941
_ACEOF
 
35942
cat confdefs.h >>conftest.$ac_ext
 
35943
cat >>conftest.$ac_ext <<_ACEOF
 
35944
/* end confdefs.h.  */
 
35945
/* Define wcwidth to an innocuous variant, in case <limits.h> declares wcwidth.
 
35946
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
35947
#define wcwidth innocuous_wcwidth
 
35948
 
 
35949
/* System header to define __stub macros and hopefully few prototypes,
 
35950
    which can conflict with char wcwidth (); below.
 
35951
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
35952
    <limits.h> exists even on freestanding compilers.  */
 
35953
 
 
35954
#ifdef __STDC__
 
35955
# include <limits.h>
 
35956
#else
 
35957
# include <assert.h>
 
35958
#endif
 
35959
 
 
35960
#undef wcwidth
 
35961
 
 
35962
/* Override any gcc2 internal prototype to avoid an error.  */
 
35963
#ifdef __cplusplus
 
35964
extern "C"
 
35965
{
 
35966
#endif
 
35967
/* We use char because int might match the return type of a gcc2
 
35968
   builtin and then its argument prototype would still apply.  */
 
35969
char wcwidth ();
 
35970
/* The GNU C library defines this for functions which it implements
 
35971
    to always fail with ENOSYS.  Some functions are actually named
 
35972
    something starting with __ and the normal name is an alias.  */
 
35973
#if defined (__stub_wcwidth) || defined (__stub___wcwidth)
 
35974
choke me
 
35975
#else
 
35976
char (*f) () = wcwidth;
 
35977
#endif
 
35978
#ifdef __cplusplus
 
35979
}
 
35980
#endif
 
35981
 
 
35982
int
 
35983
main ()
 
35984
{
 
35985
return f != wcwidth;
 
35986
  ;
 
35987
  return 0;
 
35988
}
 
35989
_ACEOF
 
35990
rm -f conftest.$ac_objext conftest$ac_exeext
 
35991
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
35992
  (eval $ac_link) 2>conftest.er1
 
35993
  ac_status=$?
 
35994
  grep -v '^ *+' conftest.er1 >conftest.err
 
35995
  rm -f conftest.er1
 
35996
  cat conftest.err >&5
 
35997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
35998
  (exit $ac_status); } &&
 
35999
         { ac_try='test -z "$ac_c_werror_flag"
 
36000
                         || test ! -s conftest.err'
 
36001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36002
  (eval $ac_try) 2>&5
 
36003
  ac_status=$?
 
36004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36005
  (exit $ac_status); }; } &&
 
36006
         { ac_try='test -s conftest$ac_exeext'
 
36007
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36008
  (eval $ac_try) 2>&5
 
36009
  ac_status=$?
 
36010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36011
  (exit $ac_status); }; }; then
 
36012
  ac_cv_func_wcwidth=yes
 
36013
else
 
36014
  echo "$as_me: failed program was:" >&5
 
36015
sed 's/^/| /' conftest.$ac_ext >&5
 
36016
 
 
36017
ac_cv_func_wcwidth=no
 
36018
fi
 
36019
rm -f conftest.err conftest.$ac_objext \
 
36020
      conftest$ac_exeext conftest.$ac_ext
 
36021
fi
 
36022
echo "$as_me:$LINENO: result: $ac_cv_func_wcwidth" >&5
 
36023
echo "${ECHO_T}$ac_cv_func_wcwidth" >&6
 
36024
if test $ac_cv_func_wcwidth = yes; then
 
36025
 
 
36026
cat >>confdefs.h <<\_ACEOF
 
36027
#define HAVE_WCWIDTH
 
36028
_ACEOF
 
36029
 
 
36030
fi
 
36031
 
 
36032
echo "$as_me:$LINENO: checking for wcsdup" >&5
 
36033
echo $ECHO_N "checking for wcsdup... $ECHO_C" >&6
 
36034
if test "${ac_cv_func_wcsdup+set}" = set; then
 
36035
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36036
else
 
36037
  cat >conftest.$ac_ext <<_ACEOF
 
36038
/* confdefs.h.  */
 
36039
_ACEOF
 
36040
cat confdefs.h >>conftest.$ac_ext
 
36041
cat >>conftest.$ac_ext <<_ACEOF
 
36042
/* end confdefs.h.  */
 
36043
/* Define wcsdup to an innocuous variant, in case <limits.h> declares wcsdup.
 
36044
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
36045
#define wcsdup innocuous_wcsdup
 
36046
 
 
36047
/* System header to define __stub macros and hopefully few prototypes,
 
36048
    which can conflict with char wcsdup (); below.
 
36049
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
36050
    <limits.h> exists even on freestanding compilers.  */
 
36051
 
 
36052
#ifdef __STDC__
 
36053
# include <limits.h>
 
36054
#else
 
36055
# include <assert.h>
 
36056
#endif
 
36057
 
 
36058
#undef wcsdup
 
36059
 
 
36060
/* Override any gcc2 internal prototype to avoid an error.  */
 
36061
#ifdef __cplusplus
 
36062
extern "C"
 
36063
{
 
36064
#endif
 
36065
/* We use char because int might match the return type of a gcc2
 
36066
   builtin and then its argument prototype would still apply.  */
 
36067
char wcsdup ();
 
36068
/* The GNU C library defines this for functions which it implements
 
36069
    to always fail with ENOSYS.  Some functions are actually named
 
36070
    something starting with __ and the normal name is an alias.  */
 
36071
#if defined (__stub_wcsdup) || defined (__stub___wcsdup)
 
36072
choke me
 
36073
#else
 
36074
char (*f) () = wcsdup;
 
36075
#endif
 
36076
#ifdef __cplusplus
 
36077
}
 
36078
#endif
 
36079
 
 
36080
int
 
36081
main ()
 
36082
{
 
36083
return f != wcsdup;
 
36084
  ;
 
36085
  return 0;
 
36086
}
 
36087
_ACEOF
 
36088
rm -f conftest.$ac_objext conftest$ac_exeext
 
36089
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36090
  (eval $ac_link) 2>conftest.er1
 
36091
  ac_status=$?
 
36092
  grep -v '^ *+' conftest.er1 >conftest.err
 
36093
  rm -f conftest.er1
 
36094
  cat conftest.err >&5
 
36095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36096
  (exit $ac_status); } &&
 
36097
         { ac_try='test -z "$ac_c_werror_flag"
 
36098
                         || test ! -s conftest.err'
 
36099
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36100
  (eval $ac_try) 2>&5
 
36101
  ac_status=$?
 
36102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36103
  (exit $ac_status); }; } &&
 
36104
         { ac_try='test -s conftest$ac_exeext'
 
36105
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36106
  (eval $ac_try) 2>&5
 
36107
  ac_status=$?
 
36108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36109
  (exit $ac_status); }; }; then
 
36110
  ac_cv_func_wcsdup=yes
 
36111
else
 
36112
  echo "$as_me: failed program was:" >&5
 
36113
sed 's/^/| /' conftest.$ac_ext >&5
 
36114
 
 
36115
ac_cv_func_wcsdup=no
 
36116
fi
 
36117
rm -f conftest.err conftest.$ac_objext \
 
36118
      conftest$ac_exeext conftest.$ac_ext
 
36119
fi
 
36120
echo "$as_me:$LINENO: result: $ac_cv_func_wcsdup" >&5
 
36121
echo "${ECHO_T}$ac_cv_func_wcsdup" >&6
 
36122
if test $ac_cv_func_wcsdup = yes; then
 
36123
 
 
36124
cat >>confdefs.h <<\_ACEOF
 
36125
#define HAVE_WCSDUP
 
36126
_ACEOF
 
36127
 
 
36128
fi
 
36129
 
 
36130
 
 
36131
echo "$as_me:$LINENO: checking for mbstate_t" >&5
 
36132
echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
 
36133
if test "${mysql_cv_have_mbstate_t+set}" = set; then
 
36134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36135
else
 
36136
  cat >conftest.$ac_ext <<_ACEOF
 
36137
/* confdefs.h.  */
 
36138
_ACEOF
 
36139
cat confdefs.h >>conftest.$ac_ext
 
36140
cat >>conftest.$ac_ext <<_ACEOF
 
36141
/* end confdefs.h.  */
 
36142
 
 
36143
#include <wchar.h>
 
36144
int
 
36145
main ()
 
36146
{
 
36147
 
 
36148
  mbstate_t ps;
 
36149
  mbstate_t *psp;
 
36150
  psp = (mbstate_t *)0;
 
36151
 
 
36152
  ;
 
36153
  return 0;
 
36154
}
 
36155
_ACEOF
 
36156
rm -f conftest.$ac_objext
 
36157
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
36158
  (eval $ac_compile) 2>conftest.er1
 
36159
  ac_status=$?
 
36160
  grep -v '^ *+' conftest.er1 >conftest.err
 
36161
  rm -f conftest.er1
 
36162
  cat conftest.err >&5
 
36163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36164
  (exit $ac_status); } &&
 
36165
         { ac_try='test -z "$ac_c_werror_flag"
 
36166
                         || test ! -s conftest.err'
 
36167
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36168
  (eval $ac_try) 2>&5
 
36169
  ac_status=$?
 
36170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36171
  (exit $ac_status); }; } &&
 
36172
         { ac_try='test -s conftest.$ac_objext'
 
36173
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36174
  (eval $ac_try) 2>&5
 
36175
  ac_status=$?
 
36176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36177
  (exit $ac_status); }; }; then
 
36178
  mysql_cv_have_mbstate_t=yes
 
36179
else
 
36180
  echo "$as_me: failed program was:" >&5
 
36181
sed 's/^/| /' conftest.$ac_ext >&5
 
36182
 
 
36183
mysql_cv_have_mbstate_t=no
 
36184
fi
 
36185
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
36186
fi
 
36187
echo "$as_me:$LINENO: result: $mysql_cv_have_mbstate_t" >&5
 
36188
echo "${ECHO_T}$mysql_cv_have_mbstate_t" >&6
 
36189
if test $mysql_cv_have_mbstate_t = yes; then
 
36190
 
 
36191
cat >>confdefs.h <<\_ACEOF
 
36192
#define HAVE_MBSTATE_T
 
36193
_ACEOF
 
36194
 
 
36195
fi
 
36196
 
 
36197
echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
 
36198
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
 
36199
if test "${mysql_cv_langinfo_codeset+set}" = set; then
 
36200
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36201
else
 
36202
  cat >conftest.$ac_ext <<_ACEOF
 
36203
/* confdefs.h.  */
 
36204
_ACEOF
 
36205
cat confdefs.h >>conftest.$ac_ext
 
36206
cat >>conftest.$ac_ext <<_ACEOF
 
36207
/* end confdefs.h.  */
 
36208
#include <langinfo.h>
 
36209
int
 
36210
main ()
 
36211
{
 
36212
char* cs = nl_langinfo(CODESET);
 
36213
  ;
 
36214
  return 0;
 
36215
}
 
36216
_ACEOF
 
36217
rm -f conftest.$ac_objext conftest$ac_exeext
 
36218
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36219
  (eval $ac_link) 2>conftest.er1
 
36220
  ac_status=$?
 
36221
  grep -v '^ *+' conftest.er1 >conftest.err
 
36222
  rm -f conftest.er1
 
36223
  cat conftest.err >&5
 
36224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36225
  (exit $ac_status); } &&
 
36226
         { ac_try='test -z "$ac_c_werror_flag"
 
36227
                         || test ! -s conftest.err'
 
36228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36229
  (eval $ac_try) 2>&5
 
36230
  ac_status=$?
 
36231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36232
  (exit $ac_status); }; } &&
 
36233
         { ac_try='test -s conftest$ac_exeext'
 
36234
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36235
  (eval $ac_try) 2>&5
 
36236
  ac_status=$?
 
36237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36238
  (exit $ac_status); }; }; then
 
36239
  mysql_cv_langinfo_codeset=yes
 
36240
else
 
36241
  echo "$as_me: failed program was:" >&5
 
36242
sed 's/^/| /' conftest.$ac_ext >&5
 
36243
 
 
36244
mysql_cv_langinfo_codeset=no
 
36245
fi
 
36246
rm -f conftest.err conftest.$ac_objext \
 
36247
      conftest$ac_exeext conftest.$ac_ext
 
36248
fi
 
36249
echo "$as_me:$LINENO: result: $mysql_cv_langinfo_codeset" >&5
 
36250
echo "${ECHO_T}$mysql_cv_langinfo_codeset" >&6
 
36251
if test $mysql_cv_langinfo_codeset = yes; then
 
36252
 
 
36253
cat >>confdefs.h <<\_ACEOF
 
36254
#define HAVE_LANGINFO_CODESET
 
36255
_ACEOF
 
36256
 
 
36257
fi
 
36258
 
 
36259
 
 
36260
if test "$with_named_curses" = "no"
 
36261
then
 
36262
 
 
36263
if test "${mysql_cv_termcap_lib+set}" = set; then
 
36264
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36265
else
 
36266
  echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
 
36267
echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
 
36268
if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
 
36269
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36270
else
 
36271
  ac_check_lib_save_LIBS=$LIBS
 
36272
LIBS="-lncurses  $LIBS"
 
36273
cat >conftest.$ac_ext <<_ACEOF
 
36274
/* confdefs.h.  */
 
36275
_ACEOF
 
36276
cat confdefs.h >>conftest.$ac_ext
 
36277
cat >>conftest.$ac_ext <<_ACEOF
 
36278
/* end confdefs.h.  */
 
36279
 
 
36280
/* Override any gcc2 internal prototype to avoid an error.  */
 
36281
#ifdef __cplusplus
 
36282
extern "C"
 
36283
#endif
 
36284
/* We use char because int might match the return type of a gcc2
 
36285
   builtin and then its argument prototype would still apply.  */
 
36286
char tgetent ();
 
36287
int
 
36288
main ()
 
36289
{
 
36290
tgetent ();
 
36291
  ;
 
36292
  return 0;
 
36293
}
 
36294
_ACEOF
 
36295
rm -f conftest.$ac_objext conftest$ac_exeext
 
36296
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36297
  (eval $ac_link) 2>conftest.er1
 
36298
  ac_status=$?
 
36299
  grep -v '^ *+' conftest.er1 >conftest.err
 
36300
  rm -f conftest.er1
 
36301
  cat conftest.err >&5
 
36302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36303
  (exit $ac_status); } &&
 
36304
         { ac_try='test -z "$ac_c_werror_flag"
 
36305
                         || test ! -s conftest.err'
 
36306
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36307
  (eval $ac_try) 2>&5
 
36308
  ac_status=$?
 
36309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36310
  (exit $ac_status); }; } &&
 
36311
         { ac_try='test -s conftest$ac_exeext'
 
36312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36313
  (eval $ac_try) 2>&5
 
36314
  ac_status=$?
 
36315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36316
  (exit $ac_status); }; }; then
 
36317
  ac_cv_lib_ncurses_tgetent=yes
 
36318
else
 
36319
  echo "$as_me: failed program was:" >&5
 
36320
sed 's/^/| /' conftest.$ac_ext >&5
 
36321
 
 
36322
ac_cv_lib_ncurses_tgetent=no
 
36323
fi
 
36324
rm -f conftest.err conftest.$ac_objext \
 
36325
      conftest$ac_exeext conftest.$ac_ext
 
36326
LIBS=$ac_check_lib_save_LIBS
 
36327
fi
 
36328
echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
 
36329
echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
 
36330
if test $ac_cv_lib_ncurses_tgetent = yes; then
 
36331
  mysql_cv_termcap_lib=libncurses
 
36332
else
 
36333
  echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
 
36334
echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
 
36335
if test "${ac_cv_lib_curses_tgetent+set}" = set; then
 
36336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36337
else
 
36338
  ac_check_lib_save_LIBS=$LIBS
 
36339
LIBS="-lcurses  $LIBS"
 
36340
cat >conftest.$ac_ext <<_ACEOF
 
36341
/* confdefs.h.  */
 
36342
_ACEOF
 
36343
cat confdefs.h >>conftest.$ac_ext
 
36344
cat >>conftest.$ac_ext <<_ACEOF
 
36345
/* end confdefs.h.  */
 
36346
 
 
36347
/* Override any gcc2 internal prototype to avoid an error.  */
 
36348
#ifdef __cplusplus
 
36349
extern "C"
 
36350
#endif
 
36351
/* We use char because int might match the return type of a gcc2
 
36352
   builtin and then its argument prototype would still apply.  */
 
36353
char tgetent ();
 
36354
int
 
36355
main ()
 
36356
{
 
36357
tgetent ();
 
36358
  ;
 
36359
  return 0;
 
36360
}
 
36361
_ACEOF
 
36362
rm -f conftest.$ac_objext conftest$ac_exeext
 
36363
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36364
  (eval $ac_link) 2>conftest.er1
 
36365
  ac_status=$?
 
36366
  grep -v '^ *+' conftest.er1 >conftest.err
 
36367
  rm -f conftest.er1
 
36368
  cat conftest.err >&5
 
36369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36370
  (exit $ac_status); } &&
 
36371
         { ac_try='test -z "$ac_c_werror_flag"
 
36372
                         || test ! -s conftest.err'
 
36373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36374
  (eval $ac_try) 2>&5
 
36375
  ac_status=$?
 
36376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36377
  (exit $ac_status); }; } &&
 
36378
         { ac_try='test -s conftest$ac_exeext'
 
36379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36380
  (eval $ac_try) 2>&5
 
36381
  ac_status=$?
 
36382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36383
  (exit $ac_status); }; }; then
 
36384
  ac_cv_lib_curses_tgetent=yes
 
36385
else
 
36386
  echo "$as_me: failed program was:" >&5
 
36387
sed 's/^/| /' conftest.$ac_ext >&5
 
36388
 
 
36389
ac_cv_lib_curses_tgetent=no
 
36390
fi
 
36391
rm -f conftest.err conftest.$ac_objext \
 
36392
      conftest$ac_exeext conftest.$ac_ext
 
36393
LIBS=$ac_check_lib_save_LIBS
 
36394
fi
 
36395
echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
 
36396
echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
 
36397
if test $ac_cv_lib_curses_tgetent = yes; then
 
36398
  mysql_cv_termcap_lib=libcurses
 
36399
else
 
36400
  echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
 
36401
echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
 
36402
if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
 
36403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36404
else
 
36405
  ac_check_lib_save_LIBS=$LIBS
 
36406
LIBS="-ltermcap  $LIBS"
 
36407
cat >conftest.$ac_ext <<_ACEOF
 
36408
/* confdefs.h.  */
 
36409
_ACEOF
 
36410
cat confdefs.h >>conftest.$ac_ext
 
36411
cat >>conftest.$ac_ext <<_ACEOF
 
36412
/* end confdefs.h.  */
 
36413
 
 
36414
/* Override any gcc2 internal prototype to avoid an error.  */
 
36415
#ifdef __cplusplus
 
36416
extern "C"
 
36417
#endif
 
36418
/* We use char because int might match the return type of a gcc2
 
36419
   builtin and then its argument prototype would still apply.  */
 
36420
char tgetent ();
 
36421
int
 
36422
main ()
 
36423
{
 
36424
tgetent ();
 
36425
  ;
 
36426
  return 0;
 
36427
}
 
36428
_ACEOF
 
36429
rm -f conftest.$ac_objext conftest$ac_exeext
 
36430
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36431
  (eval $ac_link) 2>conftest.er1
 
36432
  ac_status=$?
 
36433
  grep -v '^ *+' conftest.er1 >conftest.err
 
36434
  rm -f conftest.er1
 
36435
  cat conftest.err >&5
 
36436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36437
  (exit $ac_status); } &&
 
36438
         { ac_try='test -z "$ac_c_werror_flag"
 
36439
                         || test ! -s conftest.err'
 
36440
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36441
  (eval $ac_try) 2>&5
 
36442
  ac_status=$?
 
36443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36444
  (exit $ac_status); }; } &&
 
36445
         { ac_try='test -s conftest$ac_exeext'
 
36446
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36447
  (eval $ac_try) 2>&5
 
36448
  ac_status=$?
 
36449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36450
  (exit $ac_status); }; }; then
 
36451
  ac_cv_lib_termcap_tgetent=yes
 
36452
else
 
36453
  echo "$as_me: failed program was:" >&5
 
36454
sed 's/^/| /' conftest.$ac_ext >&5
 
36455
 
 
36456
ac_cv_lib_termcap_tgetent=no
 
36457
fi
 
36458
rm -f conftest.err conftest.$ac_objext \
 
36459
      conftest$ac_exeext conftest.$ac_ext
 
36460
LIBS=$ac_check_lib_save_LIBS
 
36461
fi
 
36462
echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
 
36463
echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
 
36464
if test $ac_cv_lib_termcap_tgetent = yes; then
 
36465
  mysql_cv_termcap_lib=libtermcap
 
36466
else
 
36467
  echo "$as_me:$LINENO: checking for tgetent in -ltinfo" >&5
 
36468
echo $ECHO_N "checking for tgetent in -ltinfo... $ECHO_C" >&6
 
36469
if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then
 
36470
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36471
else
 
36472
  ac_check_lib_save_LIBS=$LIBS
 
36473
LIBS="-ltinfo  $LIBS"
 
36474
cat >conftest.$ac_ext <<_ACEOF
 
36475
/* confdefs.h.  */
 
36476
_ACEOF
 
36477
cat confdefs.h >>conftest.$ac_ext
 
36478
cat >>conftest.$ac_ext <<_ACEOF
 
36479
/* end confdefs.h.  */
 
36480
 
 
36481
/* Override any gcc2 internal prototype to avoid an error.  */
 
36482
#ifdef __cplusplus
 
36483
extern "C"
 
36484
#endif
 
36485
/* We use char because int might match the return type of a gcc2
 
36486
   builtin and then its argument prototype would still apply.  */
 
36487
char tgetent ();
 
36488
int
 
36489
main ()
 
36490
{
 
36491
tgetent ();
 
36492
  ;
 
36493
  return 0;
 
36494
}
 
36495
_ACEOF
 
36496
rm -f conftest.$ac_objext conftest$ac_exeext
 
36497
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36498
  (eval $ac_link) 2>conftest.er1
 
36499
  ac_status=$?
 
36500
  grep -v '^ *+' conftest.er1 >conftest.err
 
36501
  rm -f conftest.er1
 
36502
  cat conftest.err >&5
 
36503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36504
  (exit $ac_status); } &&
 
36505
         { ac_try='test -z "$ac_c_werror_flag"
 
36506
                         || test ! -s conftest.err'
 
36507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36508
  (eval $ac_try) 2>&5
 
36509
  ac_status=$?
 
36510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36511
  (exit $ac_status); }; } &&
 
36512
         { ac_try='test -s conftest$ac_exeext'
 
36513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36514
  (eval $ac_try) 2>&5
 
36515
  ac_status=$?
 
36516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36517
  (exit $ac_status); }; }; then
 
36518
  ac_cv_lib_tinfo_tgetent=yes
 
36519
else
 
36520
  echo "$as_me: failed program was:" >&5
 
36521
sed 's/^/| /' conftest.$ac_ext >&5
 
36522
 
 
36523
ac_cv_lib_tinfo_tgetent=no
 
36524
fi
 
36525
rm -f conftest.err conftest.$ac_objext \
 
36526
      conftest$ac_exeext conftest.$ac_ext
 
36527
LIBS=$ac_check_lib_save_LIBS
 
36528
fi
 
36529
echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tgetent" >&5
 
36530
echo "${ECHO_T}$ac_cv_lib_tinfo_tgetent" >&6
 
36531
if test $ac_cv_lib_tinfo_tgetent = yes; then
 
36532
  mysql_cv_termcap_lib=libtinfo
 
36533
else
 
36534
  mysql_cv_termcap_lib=NOT_FOUND
 
36535
fi
 
36536
 
 
36537
fi
 
36538
 
 
36539
fi
 
36540
 
 
36541
fi
 
36542
 
 
36543
fi
 
36544
 
 
36545
echo "$as_me:$LINENO: checking for termcap functions library" >&5
 
36546
echo $ECHO_N "checking for termcap functions library... $ECHO_C" >&6
 
36547
if test "$mysql_cv_termcap_lib" = "NOT_FOUND"; then
 
36548
{ { echo "$as_me:$LINENO: error: No curses/termcap library found" >&5
 
36549
echo "$as_me: error: No curses/termcap library found" >&2;}
 
36550
   { (exit 1); exit 1; }; }
 
36551
elif test "$mysql_cv_termcap_lib" = "libtermcap"; then
 
36552
TERMCAP_LIB=-ltermcap
 
36553
elif test "$mysql_cv_termcap_lib" = "libncurses"; then
 
36554
TERMCAP_LIB=-lncurses
 
36555
elif test "$mysql_cv_termcap_lib" = "libtinfo"; then
 
36556
TERMCAP_LIB=-ltinfo
 
36557
else
 
36558
TERMCAP_LIB=-lcurses
 
36559
fi
 
36560
echo "$as_me:$LINENO: result: $TERMCAP_LIB" >&5
 
36561
echo "${ECHO_T}$TERMCAP_LIB" >&6
 
36562
 
 
36563
else
 
36564
  TERMCAP_LIB="$with_named_curses"
 
36565
fi
 
36566
 
 
36567
 
 
36568
LIBEDIT_LOBJECTS=""
 
36569
echo "$as_me:$LINENO: checking for strunvis" >&5
 
36570
echo $ECHO_N "checking for strunvis... $ECHO_C" >&6
 
36571
if test "${ac_cv_func_strunvis+set}" = set; then
 
36572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36573
else
 
36574
  cat >conftest.$ac_ext <<_ACEOF
 
36575
/* confdefs.h.  */
 
36576
_ACEOF
 
36577
cat confdefs.h >>conftest.$ac_ext
 
36578
cat >>conftest.$ac_ext <<_ACEOF
 
36579
/* end confdefs.h.  */
 
36580
/* Define strunvis to an innocuous variant, in case <limits.h> declares strunvis.
 
36581
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
36582
#define strunvis innocuous_strunvis
 
36583
 
 
36584
/* System header to define __stub macros and hopefully few prototypes,
 
36585
    which can conflict with char strunvis (); below.
 
36586
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
36587
    <limits.h> exists even on freestanding compilers.  */
 
36588
 
 
36589
#ifdef __STDC__
 
36590
# include <limits.h>
 
36591
#else
 
36592
# include <assert.h>
 
36593
#endif
 
36594
 
 
36595
#undef strunvis
 
36596
 
 
36597
/* Override any gcc2 internal prototype to avoid an error.  */
 
36598
#ifdef __cplusplus
 
36599
extern "C"
 
36600
{
 
36601
#endif
 
36602
/* We use char because int might match the return type of a gcc2
 
36603
   builtin and then its argument prototype would still apply.  */
 
36604
char strunvis ();
 
36605
/* The GNU C library defines this for functions which it implements
 
36606
    to always fail with ENOSYS.  Some functions are actually named
 
36607
    something starting with __ and the normal name is an alias.  */
 
36608
#if defined (__stub_strunvis) || defined (__stub___strunvis)
 
36609
choke me
 
36610
#else
 
36611
char (*f) () = strunvis;
 
36612
#endif
 
36613
#ifdef __cplusplus
 
36614
}
 
36615
#endif
 
36616
 
 
36617
int
 
36618
main ()
 
36619
{
 
36620
return f != strunvis;
 
36621
  ;
 
36622
  return 0;
 
36623
}
 
36624
_ACEOF
 
36625
rm -f conftest.$ac_objext conftest$ac_exeext
 
36626
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36627
  (eval $ac_link) 2>conftest.er1
 
36628
  ac_status=$?
 
36629
  grep -v '^ *+' conftest.er1 >conftest.err
 
36630
  rm -f conftest.er1
 
36631
  cat conftest.err >&5
 
36632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36633
  (exit $ac_status); } &&
 
36634
         { ac_try='test -z "$ac_c_werror_flag"
 
36635
                         || test ! -s conftest.err'
 
36636
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36637
  (eval $ac_try) 2>&5
 
36638
  ac_status=$?
 
36639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36640
  (exit $ac_status); }; } &&
 
36641
         { ac_try='test -s conftest$ac_exeext'
 
36642
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36643
  (eval $ac_try) 2>&5
 
36644
  ac_status=$?
 
36645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36646
  (exit $ac_status); }; }; then
 
36647
  ac_cv_func_strunvis=yes
 
36648
else
 
36649
  echo "$as_me: failed program was:" >&5
 
36650
sed 's/^/| /' conftest.$ac_ext >&5
 
36651
 
 
36652
ac_cv_func_strunvis=no
 
36653
fi
 
36654
rm -f conftest.err conftest.$ac_objext \
 
36655
      conftest$ac_exeext conftest.$ac_ext
 
36656
fi
 
36657
echo "$as_me:$LINENO: result: $ac_cv_func_strunvis" >&5
 
36658
echo "${ECHO_T}$ac_cv_func_strunvis" >&6
 
36659
if test $ac_cv_func_strunvis = yes; then
 
36660
  :
 
36661
else
 
36662
  LIBEDIT_LOBJECTS="$LIBEDIT_LOBJECTS unvis.o"
 
36663
fi
 
36664
 
 
36665
echo "$as_me:$LINENO: checking for strvis" >&5
 
36666
echo $ECHO_N "checking for strvis... $ECHO_C" >&6
 
36667
if test "${ac_cv_func_strvis+set}" = set; then
 
36668
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36669
else
 
36670
  cat >conftest.$ac_ext <<_ACEOF
 
36671
/* confdefs.h.  */
 
36672
_ACEOF
 
36673
cat confdefs.h >>conftest.$ac_ext
 
36674
cat >>conftest.$ac_ext <<_ACEOF
 
36675
/* end confdefs.h.  */
 
36676
/* Define strvis to an innocuous variant, in case <limits.h> declares strvis.
 
36677
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
36678
#define strvis innocuous_strvis
 
36679
 
 
36680
/* System header to define __stub macros and hopefully few prototypes,
 
36681
    which can conflict with char strvis (); below.
 
36682
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
36683
    <limits.h> exists even on freestanding compilers.  */
 
36684
 
 
36685
#ifdef __STDC__
 
36686
# include <limits.h>
 
36687
#else
 
36688
# include <assert.h>
 
36689
#endif
 
36690
 
 
36691
#undef strvis
 
36692
 
 
36693
/* Override any gcc2 internal prototype to avoid an error.  */
 
36694
#ifdef __cplusplus
 
36695
extern "C"
 
36696
{
 
36697
#endif
 
36698
/* We use char because int might match the return type of a gcc2
 
36699
   builtin and then its argument prototype would still apply.  */
 
36700
char strvis ();
 
36701
/* The GNU C library defines this for functions which it implements
 
36702
    to always fail with ENOSYS.  Some functions are actually named
 
36703
    something starting with __ and the normal name is an alias.  */
 
36704
#if defined (__stub_strvis) || defined (__stub___strvis)
 
36705
choke me
 
36706
#else
 
36707
char (*f) () = strvis;
 
36708
#endif
 
36709
#ifdef __cplusplus
 
36710
}
 
36711
#endif
 
36712
 
 
36713
int
 
36714
main ()
 
36715
{
 
36716
return f != strvis;
 
36717
  ;
 
36718
  return 0;
 
36719
}
 
36720
_ACEOF
 
36721
rm -f conftest.$ac_objext conftest$ac_exeext
 
36722
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36723
  (eval $ac_link) 2>conftest.er1
 
36724
  ac_status=$?
 
36725
  grep -v '^ *+' conftest.er1 >conftest.err
 
36726
  rm -f conftest.er1
 
36727
  cat conftest.err >&5
 
36728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36729
  (exit $ac_status); } &&
 
36730
         { ac_try='test -z "$ac_c_werror_flag"
 
36731
                         || test ! -s conftest.err'
 
36732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36733
  (eval $ac_try) 2>&5
 
36734
  ac_status=$?
 
36735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36736
  (exit $ac_status); }; } &&
 
36737
         { ac_try='test -s conftest$ac_exeext'
 
36738
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36739
  (eval $ac_try) 2>&5
 
36740
  ac_status=$?
 
36741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36742
  (exit $ac_status); }; }; then
 
36743
  ac_cv_func_strvis=yes
 
36744
else
 
36745
  echo "$as_me: failed program was:" >&5
 
36746
sed 's/^/| /' conftest.$ac_ext >&5
 
36747
 
 
36748
ac_cv_func_strvis=no
 
36749
fi
 
36750
rm -f conftest.err conftest.$ac_objext \
 
36751
      conftest$ac_exeext conftest.$ac_ext
 
36752
fi
 
36753
echo "$as_me:$LINENO: result: $ac_cv_func_strvis" >&5
 
36754
echo "${ECHO_T}$ac_cv_func_strvis" >&6
 
36755
if test $ac_cv_func_strvis = yes; then
 
36756
  :
 
36757
else
 
36758
  LIBEDIT_LOBJECTS="$LIBEDIT_LOBJECTS vis.o"
 
36759
fi
 
36760
 
 
36761
echo "$as_me:$LINENO: checking for strlcpy" >&5
 
36762
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6
 
36763
if test "${ac_cv_func_strlcpy+set}" = set; then
 
36764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36765
else
 
36766
  cat >conftest.$ac_ext <<_ACEOF
 
36767
/* confdefs.h.  */
 
36768
_ACEOF
 
36769
cat confdefs.h >>conftest.$ac_ext
 
36770
cat >>conftest.$ac_ext <<_ACEOF
 
36771
/* end confdefs.h.  */
 
36772
/* Define strlcpy to an innocuous variant, in case <limits.h> declares strlcpy.
 
36773
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
36774
#define strlcpy innocuous_strlcpy
 
36775
 
 
36776
/* System header to define __stub macros and hopefully few prototypes,
 
36777
    which can conflict with char strlcpy (); below.
 
36778
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
36779
    <limits.h> exists even on freestanding compilers.  */
 
36780
 
 
36781
#ifdef __STDC__
 
36782
# include <limits.h>
 
36783
#else
 
36784
# include <assert.h>
 
36785
#endif
 
36786
 
 
36787
#undef strlcpy
 
36788
 
 
36789
/* Override any gcc2 internal prototype to avoid an error.  */
 
36790
#ifdef __cplusplus
 
36791
extern "C"
 
36792
{
 
36793
#endif
 
36794
/* We use char because int might match the return type of a gcc2
 
36795
   builtin and then its argument prototype would still apply.  */
 
36796
char strlcpy ();
 
36797
/* The GNU C library defines this for functions which it implements
 
36798
    to always fail with ENOSYS.  Some functions are actually named
 
36799
    something starting with __ and the normal name is an alias.  */
 
36800
#if defined (__stub_strlcpy) || defined (__stub___strlcpy)
 
36801
choke me
 
36802
#else
 
36803
char (*f) () = strlcpy;
 
36804
#endif
 
36805
#ifdef __cplusplus
 
36806
}
 
36807
#endif
 
36808
 
 
36809
int
 
36810
main ()
 
36811
{
 
36812
return f != strlcpy;
 
36813
  ;
 
36814
  return 0;
 
36815
}
 
36816
_ACEOF
 
36817
rm -f conftest.$ac_objext conftest$ac_exeext
 
36818
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36819
  (eval $ac_link) 2>conftest.er1
 
36820
  ac_status=$?
 
36821
  grep -v '^ *+' conftest.er1 >conftest.err
 
36822
  rm -f conftest.er1
 
36823
  cat conftest.err >&5
 
36824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36825
  (exit $ac_status); } &&
 
36826
         { ac_try='test -z "$ac_c_werror_flag"
 
36827
                         || test ! -s conftest.err'
 
36828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36829
  (eval $ac_try) 2>&5
 
36830
  ac_status=$?
 
36831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36832
  (exit $ac_status); }; } &&
 
36833
         { ac_try='test -s conftest$ac_exeext'
 
36834
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36835
  (eval $ac_try) 2>&5
 
36836
  ac_status=$?
 
36837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36838
  (exit $ac_status); }; }; then
 
36839
  ac_cv_func_strlcpy=yes
 
36840
else
 
36841
  echo "$as_me: failed program was:" >&5
 
36842
sed 's/^/| /' conftest.$ac_ext >&5
 
36843
 
 
36844
ac_cv_func_strlcpy=no
 
36845
fi
 
36846
rm -f conftest.err conftest.$ac_objext \
 
36847
      conftest$ac_exeext conftest.$ac_ext
 
36848
fi
 
36849
echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5
 
36850
echo "${ECHO_T}$ac_cv_func_strlcpy" >&6
 
36851
if test $ac_cv_func_strlcpy = yes; then
 
36852
  :
 
36853
else
 
36854
  LIBEDIT_LOBJECTS="$LIBEDIT_LOBJECTS strlcpy.o"
 
36855
fi
 
36856
 
 
36857
echo "$as_me:$LINENO: checking for strlcat" >&5
 
36858
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6
 
36859
if test "${ac_cv_func_strlcat+set}" = set; then
 
36860
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36861
else
 
36862
  cat >conftest.$ac_ext <<_ACEOF
 
36863
/* confdefs.h.  */
 
36864
_ACEOF
 
36865
cat confdefs.h >>conftest.$ac_ext
 
36866
cat >>conftest.$ac_ext <<_ACEOF
 
36867
/* end confdefs.h.  */
 
36868
/* Define strlcat to an innocuous variant, in case <limits.h> declares strlcat.
 
36869
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
36870
#define strlcat innocuous_strlcat
 
36871
 
 
36872
/* System header to define __stub macros and hopefully few prototypes,
 
36873
    which can conflict with char strlcat (); below.
 
36874
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
36875
    <limits.h> exists even on freestanding compilers.  */
 
36876
 
 
36877
#ifdef __STDC__
 
36878
# include <limits.h>
 
36879
#else
 
36880
# include <assert.h>
 
36881
#endif
 
36882
 
 
36883
#undef strlcat
 
36884
 
 
36885
/* Override any gcc2 internal prototype to avoid an error.  */
 
36886
#ifdef __cplusplus
 
36887
extern "C"
 
36888
{
 
36889
#endif
 
36890
/* We use char because int might match the return type of a gcc2
 
36891
   builtin and then its argument prototype would still apply.  */
 
36892
char strlcat ();
 
36893
/* The GNU C library defines this for functions which it implements
 
36894
    to always fail with ENOSYS.  Some functions are actually named
 
36895
    something starting with __ and the normal name is an alias.  */
 
36896
#if defined (__stub_strlcat) || defined (__stub___strlcat)
 
36897
choke me
 
36898
#else
 
36899
char (*f) () = strlcat;
 
36900
#endif
 
36901
#ifdef __cplusplus
 
36902
}
 
36903
#endif
 
36904
 
 
36905
int
 
36906
main ()
 
36907
{
 
36908
return f != strlcat;
 
36909
  ;
 
36910
  return 0;
 
36911
}
 
36912
_ACEOF
 
36913
rm -f conftest.$ac_objext conftest$ac_exeext
 
36914
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
36915
  (eval $ac_link) 2>conftest.er1
 
36916
  ac_status=$?
 
36917
  grep -v '^ *+' conftest.er1 >conftest.err
 
36918
  rm -f conftest.er1
 
36919
  cat conftest.err >&5
 
36920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36921
  (exit $ac_status); } &&
 
36922
         { ac_try='test -z "$ac_c_werror_flag"
 
36923
                         || test ! -s conftest.err'
 
36924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36925
  (eval $ac_try) 2>&5
 
36926
  ac_status=$?
 
36927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36928
  (exit $ac_status); }; } &&
 
36929
         { ac_try='test -s conftest$ac_exeext'
 
36930
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
36931
  (eval $ac_try) 2>&5
 
36932
  ac_status=$?
 
36933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
36934
  (exit $ac_status); }; }; then
 
36935
  ac_cv_func_strlcat=yes
 
36936
else
 
36937
  echo "$as_me: failed program was:" >&5
 
36938
sed 's/^/| /' conftest.$ac_ext >&5
 
36939
 
 
36940
ac_cv_func_strlcat=no
 
36941
fi
 
36942
rm -f conftest.err conftest.$ac_objext \
 
36943
      conftest$ac_exeext conftest.$ac_ext
 
36944
fi
 
36945
echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5
 
36946
echo "${ECHO_T}$ac_cv_func_strlcat" >&6
 
36947
if test $ac_cv_func_strlcat = yes; then
 
36948
  :
 
36949
else
 
36950
  LIBEDIT_LOBJECTS="$LIBEDIT_LOBJECTS strlcat.o"
 
36951
fi
 
36952
 
 
36953
echo "$as_me:$LINENO: checking for fgetln" >&5
 
36954
echo $ECHO_N "checking for fgetln... $ECHO_C" >&6
 
36955
if test "${ac_cv_func_fgetln+set}" = set; then
 
36956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
36957
else
 
36958
  cat >conftest.$ac_ext <<_ACEOF
 
36959
/* confdefs.h.  */
 
36960
_ACEOF
 
36961
cat confdefs.h >>conftest.$ac_ext
 
36962
cat >>conftest.$ac_ext <<_ACEOF
 
36963
/* end confdefs.h.  */
 
36964
/* Define fgetln to an innocuous variant, in case <limits.h> declares fgetln.
 
36965
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
36966
#define fgetln innocuous_fgetln
 
36967
 
 
36968
/* System header to define __stub macros and hopefully few prototypes,
 
36969
    which can conflict with char fgetln (); below.
 
36970
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
36971
    <limits.h> exists even on freestanding compilers.  */
 
36972
 
 
36973
#ifdef __STDC__
 
36974
# include <limits.h>
 
36975
#else
 
36976
# include <assert.h>
 
36977
#endif
 
36978
 
 
36979
#undef fgetln
 
36980
 
 
36981
/* Override any gcc2 internal prototype to avoid an error.  */
 
36982
#ifdef __cplusplus
 
36983
extern "C"
 
36984
{
 
36985
#endif
 
36986
/* We use char because int might match the return type of a gcc2
 
36987
   builtin and then its argument prototype would still apply.  */
 
36988
char fgetln ();
 
36989
/* The GNU C library defines this for functions which it implements
 
36990
    to always fail with ENOSYS.  Some functions are actually named
 
36991
    something starting with __ and the normal name is an alias.  */
 
36992
#if defined (__stub_fgetln) || defined (__stub___fgetln)
 
36993
choke me
 
36994
#else
 
36995
char (*f) () = fgetln;
 
36996
#endif
 
36997
#ifdef __cplusplus
 
36998
}
 
36999
#endif
 
37000
 
 
37001
int
 
37002
main ()
 
37003
{
 
37004
return f != fgetln;
 
37005
  ;
 
37006
  return 0;
 
37007
}
 
37008
_ACEOF
 
37009
rm -f conftest.$ac_objext conftest$ac_exeext
 
37010
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37011
  (eval $ac_link) 2>conftest.er1
 
37012
  ac_status=$?
 
37013
  grep -v '^ *+' conftest.er1 >conftest.err
 
37014
  rm -f conftest.er1
 
37015
  cat conftest.err >&5
 
37016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37017
  (exit $ac_status); } &&
 
37018
         { ac_try='test -z "$ac_c_werror_flag"
 
37019
                         || test ! -s conftest.err'
 
37020
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37021
  (eval $ac_try) 2>&5
 
37022
  ac_status=$?
 
37023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37024
  (exit $ac_status); }; } &&
 
37025
         { ac_try='test -s conftest$ac_exeext'
 
37026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37027
  (eval $ac_try) 2>&5
 
37028
  ac_status=$?
 
37029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37030
  (exit $ac_status); }; }; then
 
37031
  ac_cv_func_fgetln=yes
 
37032
else
 
37033
  echo "$as_me: failed program was:" >&5
 
37034
sed 's/^/| /' conftest.$ac_ext >&5
 
37035
 
 
37036
ac_cv_func_fgetln=no
 
37037
fi
 
37038
rm -f conftest.err conftest.$ac_objext \
 
37039
      conftest$ac_exeext conftest.$ac_ext
 
37040
fi
 
37041
echo "$as_me:$LINENO: result: $ac_cv_func_fgetln" >&5
 
37042
echo "${ECHO_T}$ac_cv_func_fgetln" >&6
 
37043
if test $ac_cv_func_fgetln = yes; then
 
37044
  :
 
37045
else
 
37046
  LIBEDIT_LOBJECTS="$LIBEDIT_LOBJECTS fgetln.o"
 
37047
fi
 
37048
 
 
37049
 
 
37050
enable_readline="yes"
 
37051
 
 
37052
# End of readline/libedit stuff
 
37053
#########################################################################
 
37054
 
 
37055
 
 
37056
#
 
37057
# The following code disables intrinsic function support while we test for
 
37058
# library functions.  This is to avoid configure problems with Intel ecc
 
37059
# compiler
 
37060
 
 
37061
ORG_CFLAGS="$CFLAGS"
 
37062
if test "$GCC" != "yes"; then
 
37063
 
 
37064
  echo "$as_me:$LINENO: checking -nolib_inline" >&5
 
37065
echo $ECHO_N "checking -nolib_inline... $ECHO_C" >&6
 
37066
  OLD_CFLAGS="$CFLAGS"
 
37067
  if test "${mysql_cv_option_nolib_inline+set}" = set; then
 
37068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37069
else
 
37070
 
 
37071
    CFLAGS="$OLD_CFLAGS -nolib_inline"
 
37072
    if test "$cross_compiling" = yes; then
 
37073
  mysql_cv_option_nolib_inline=no
 
37074
else
 
37075
  cat >conftest.$ac_ext <<_ACEOF
 
37076
/* confdefs.h.  */
 
37077
_ACEOF
 
37078
cat confdefs.h >>conftest.$ac_ext
 
37079
cat >>conftest.$ac_ext <<_ACEOF
 
37080
/* end confdefs.h.  */
 
37081
int main(){exit(0);}
 
37082
_ACEOF
 
37083
rm -f conftest$ac_exeext
 
37084
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37085
  (eval $ac_link) 2>&5
 
37086
  ac_status=$?
 
37087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37088
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
37089
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37090
  (eval $ac_try) 2>&5
 
37091
  ac_status=$?
 
37092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37093
  (exit $ac_status); }; }; then
 
37094
  mysql_cv_option_nolib_inline=yes
 
37095
else
 
37096
  echo "$as_me: program exited with status $ac_status" >&5
 
37097
echo "$as_me: failed program was:" >&5
 
37098
sed 's/^/| /' conftest.$ac_ext >&5
 
37099
 
 
37100
( exit $ac_status )
 
37101
mysql_cv_option_nolib_inline=no
 
37102
fi
 
37103
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
37104
fi
 
37105
 
 
37106
fi
 
37107
 
 
37108
 
 
37109
  CFLAGS="$OLD_CFLAGS"
 
37110
 
 
37111
  if test x"$mysql_cv_option_nolib_inline" = "xyes" ; then
 
37112
    CFLAGS="$CFLAGS -nolib_inline"
 
37113
    echo "$as_me:$LINENO: result: yes" >&5
 
37114
echo "${ECHO_T}yes" >&6
 
37115
 
 
37116
  else
 
37117
    echo "$as_me:$LINENO: result: no" >&5
 
37118
echo "${ECHO_T}no" >&6
 
37119
 
 
37120
  fi
 
37121
 
 
37122
fi
 
37123
 
 
37124
#AC_FUNC_MMAP
 
37125
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
37126
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
37127
if test "${ac_cv_type_signal+set}" = set; then
 
37128
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37129
else
 
37130
  cat >conftest.$ac_ext <<_ACEOF
 
37131
/* confdefs.h.  */
 
37132
_ACEOF
 
37133
cat confdefs.h >>conftest.$ac_ext
 
37134
cat >>conftest.$ac_ext <<_ACEOF
 
37135
/* end confdefs.h.  */
 
37136
#include <sys/types.h>
 
37137
#include <signal.h>
 
37138
#ifdef signal
 
37139
# undef signal
 
37140
#endif
 
37141
#ifdef __cplusplus
 
37142
extern "C" void (*signal (int, void (*)(int)))(int);
 
37143
#else
 
37144
void (*signal ()) ();
 
37145
#endif
 
37146
 
 
37147
int
 
37148
main ()
 
37149
{
 
37150
int i;
 
37151
  ;
 
37152
  return 0;
 
37153
}
 
37154
_ACEOF
 
37155
rm -f conftest.$ac_objext
 
37156
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
37157
  (eval $ac_compile) 2>conftest.er1
 
37158
  ac_status=$?
 
37159
  grep -v '^ *+' conftest.er1 >conftest.err
 
37160
  rm -f conftest.er1
 
37161
  cat conftest.err >&5
 
37162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37163
  (exit $ac_status); } &&
 
37164
         { ac_try='test -z "$ac_c_werror_flag"
 
37165
                         || test ! -s conftest.err'
 
37166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37167
  (eval $ac_try) 2>&5
 
37168
  ac_status=$?
 
37169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37170
  (exit $ac_status); }; } &&
 
37171
         { ac_try='test -s conftest.$ac_objext'
 
37172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37173
  (eval $ac_try) 2>&5
 
37174
  ac_status=$?
 
37175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37176
  (exit $ac_status); }; }; then
 
37177
  ac_cv_type_signal=void
 
37178
else
 
37179
  echo "$as_me: failed program was:" >&5
 
37180
sed 's/^/| /' conftest.$ac_ext >&5
 
37181
 
 
37182
ac_cv_type_signal=int
 
37183
fi
 
37184
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
37185
fi
 
37186
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
37187
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
37188
 
 
37189
cat >>confdefs.h <<_ACEOF
 
37190
#define RETSIGTYPE $ac_cv_type_signal
 
37191
_ACEOF
 
37192
 
 
37193
 
 
37194
echo "$as_me:$LINENO: checking return type of qsort" >&5
 
37195
echo $ECHO_N "checking return type of qsort... $ECHO_C" >&6
 
37196
if test "${mysql_cv_type_qsort+set}" = set; then
 
37197
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37198
else
 
37199
  cat >conftest.$ac_ext <<_ACEOF
 
37200
/* confdefs.h.  */
 
37201
_ACEOF
 
37202
cat confdefs.h >>conftest.$ac_ext
 
37203
cat >>conftest.$ac_ext <<_ACEOF
 
37204
/* end confdefs.h.  */
 
37205
#include <stdlib.h>
 
37206
#ifdef __cplusplus
 
37207
extern "C"
 
37208
#endif
 
37209
void qsort(void *base, size_t nel, size_t width,
 
37210
 int (*compar) (const void *, const void *));
 
37211
 
 
37212
int
 
37213
main ()
 
37214
{
 
37215
int i;
 
37216
  ;
 
37217
  return 0;
 
37218
}
 
37219
_ACEOF
 
37220
rm -f conftest.$ac_objext
 
37221
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
37222
  (eval $ac_compile) 2>conftest.er1
 
37223
  ac_status=$?
 
37224
  grep -v '^ *+' conftest.er1 >conftest.err
 
37225
  rm -f conftest.er1
 
37226
  cat conftest.err >&5
 
37227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37228
  (exit $ac_status); } &&
 
37229
         { ac_try='test -z "$ac_c_werror_flag"
 
37230
                         || test ! -s conftest.err'
 
37231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37232
  (eval $ac_try) 2>&5
 
37233
  ac_status=$?
 
37234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37235
  (exit $ac_status); }; } &&
 
37236
         { ac_try='test -s conftest.$ac_objext'
 
37237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37238
  (eval $ac_try) 2>&5
 
37239
  ac_status=$?
 
37240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37241
  (exit $ac_status); }; }; then
 
37242
  mysql_cv_type_qsort=void
 
37243
else
 
37244
  echo "$as_me: failed program was:" >&5
 
37245
sed 's/^/| /' conftest.$ac_ext >&5
 
37246
 
 
37247
mysql_cv_type_qsort=int
 
37248
fi
 
37249
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
37250
fi
 
37251
echo "$as_me:$LINENO: result: $mysql_cv_type_qsort" >&5
 
37252
echo "${ECHO_T}$mysql_cv_type_qsort" >&6
 
37253
 
 
37254
cat >>confdefs.h <<_ACEOF
 
37255
#define RETQSORTTYPE $mysql_cv_type_qsort
 
37256
_ACEOF
 
37257
 
 
37258
if test "$mysql_cv_type_qsort" = "void"
 
37259
then
 
37260
 
 
37261
cat >>confdefs.h <<_ACEOF
 
37262
#define QSORT_TYPE_IS_VOID 1
 
37263
_ACEOF
 
37264
 
 
37265
fi
 
37266
 
 
37267
echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
 
37268
echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
 
37269
if test "${ac_cv_func_utime_null+set}" = set; then
 
37270
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37271
else
 
37272
  rm -f conftest.data; >conftest.data
 
37273
# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
 
37274
if test "$cross_compiling" = yes; then
 
37275
  ac_cv_func_utime_null=no
 
37276
else
 
37277
  cat >conftest.$ac_ext <<_ACEOF
 
37278
/* confdefs.h.  */
 
37279
_ACEOF
 
37280
cat confdefs.h >>conftest.$ac_ext
 
37281
cat >>conftest.$ac_ext <<_ACEOF
 
37282
/* end confdefs.h.  */
 
37283
$ac_includes_default
 
37284
int
 
37285
main ()
 
37286
{
 
37287
struct stat s, t;
 
37288
  exit (!(stat ("conftest.data", &s) == 0
 
37289
          && utime ("conftest.data", (long *)0) == 0
 
37290
          && stat ("conftest.data", &t) == 0
 
37291
          && t.st_mtime >= s.st_mtime
 
37292
          && t.st_mtime - s.st_mtime < 120));
 
37293
  ;
 
37294
  return 0;
 
37295
}
 
37296
_ACEOF
 
37297
rm -f conftest$ac_exeext
 
37298
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37299
  (eval $ac_link) 2>&5
 
37300
  ac_status=$?
 
37301
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37302
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
37303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37304
  (eval $ac_try) 2>&5
 
37305
  ac_status=$?
 
37306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37307
  (exit $ac_status); }; }; then
 
37308
  ac_cv_func_utime_null=yes
 
37309
else
 
37310
  echo "$as_me: program exited with status $ac_status" >&5
 
37311
echo "$as_me: failed program was:" >&5
 
37312
sed 's/^/| /' conftest.$ac_ext >&5
 
37313
 
 
37314
( exit $ac_status )
 
37315
ac_cv_func_utime_null=no
 
37316
fi
 
37317
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
37318
fi
 
37319
rm -f core *.core
 
37320
fi
 
37321
echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
 
37322
echo "${ECHO_T}$ac_cv_func_utime_null" >&6
 
37323
if test $ac_cv_func_utime_null = yes; then
 
37324
 
 
37325
cat >>confdefs.h <<\_ACEOF
 
37326
#define HAVE_UTIME_NULL 1
 
37327
_ACEOF
 
37328
 
 
37329
fi
 
37330
rm -f conftest.data
 
37331
 
 
37332
 
 
37333
for ac_func in vprintf
 
37334
do
 
37335
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
37336
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
37337
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
37338
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
37339
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37340
else
 
37341
  cat >conftest.$ac_ext <<_ACEOF
 
37342
/* confdefs.h.  */
 
37343
_ACEOF
 
37344
cat confdefs.h >>conftest.$ac_ext
 
37345
cat >>conftest.$ac_ext <<_ACEOF
 
37346
/* end confdefs.h.  */
 
37347
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
37348
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
37349
#define $ac_func innocuous_$ac_func
 
37350
 
 
37351
/* System header to define __stub macros and hopefully few prototypes,
 
37352
    which can conflict with char $ac_func (); below.
 
37353
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
37354
    <limits.h> exists even on freestanding compilers.  */
 
37355
 
 
37356
#ifdef __STDC__
 
37357
# include <limits.h>
 
37358
#else
 
37359
# include <assert.h>
 
37360
#endif
 
37361
 
 
37362
#undef $ac_func
 
37363
 
 
37364
/* Override any gcc2 internal prototype to avoid an error.  */
 
37365
#ifdef __cplusplus
 
37366
extern "C"
 
37367
{
 
37368
#endif
 
37369
/* We use char because int might match the return type of a gcc2
 
37370
   builtin and then its argument prototype would still apply.  */
 
37371
char $ac_func ();
 
37372
/* The GNU C library defines this for functions which it implements
 
37373
    to always fail with ENOSYS.  Some functions are actually named
 
37374
    something starting with __ and the normal name is an alias.  */
 
37375
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
37376
choke me
 
37377
#else
 
37378
char (*f) () = $ac_func;
 
37379
#endif
 
37380
#ifdef __cplusplus
 
37381
}
 
37382
#endif
 
37383
 
 
37384
int
 
37385
main ()
 
37386
{
 
37387
return f != $ac_func;
 
37388
  ;
 
37389
  return 0;
 
37390
}
 
37391
_ACEOF
 
37392
rm -f conftest.$ac_objext conftest$ac_exeext
 
37393
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37394
  (eval $ac_link) 2>conftest.er1
 
37395
  ac_status=$?
 
37396
  grep -v '^ *+' conftest.er1 >conftest.err
 
37397
  rm -f conftest.er1
 
37398
  cat conftest.err >&5
 
37399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37400
  (exit $ac_status); } &&
 
37401
         { ac_try='test -z "$ac_c_werror_flag"
 
37402
                         || test ! -s conftest.err'
 
37403
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37404
  (eval $ac_try) 2>&5
 
37405
  ac_status=$?
 
37406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37407
  (exit $ac_status); }; } &&
 
37408
         { ac_try='test -s conftest$ac_exeext'
 
37409
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37410
  (eval $ac_try) 2>&5
 
37411
  ac_status=$?
 
37412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37413
  (exit $ac_status); }; }; then
 
37414
  eval "$as_ac_var=yes"
 
37415
else
 
37416
  echo "$as_me: failed program was:" >&5
 
37417
sed 's/^/| /' conftest.$ac_ext >&5
 
37418
 
 
37419
eval "$as_ac_var=no"
 
37420
fi
 
37421
rm -f conftest.err conftest.$ac_objext \
 
37422
      conftest$ac_exeext conftest.$ac_ext
 
37423
fi
 
37424
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
37425
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
37426
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
37427
  cat >>confdefs.h <<_ACEOF
 
37428
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
37429
_ACEOF
 
37430
 
 
37431
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
37432
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
37433
if test "${ac_cv_func__doprnt+set}" = set; then
 
37434
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37435
else
 
37436
  cat >conftest.$ac_ext <<_ACEOF
 
37437
/* confdefs.h.  */
 
37438
_ACEOF
 
37439
cat confdefs.h >>conftest.$ac_ext
 
37440
cat >>conftest.$ac_ext <<_ACEOF
 
37441
/* end confdefs.h.  */
 
37442
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
37443
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
37444
#define _doprnt innocuous__doprnt
 
37445
 
 
37446
/* System header to define __stub macros and hopefully few prototypes,
 
37447
    which can conflict with char _doprnt (); below.
 
37448
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
37449
    <limits.h> exists even on freestanding compilers.  */
 
37450
 
 
37451
#ifdef __STDC__
 
37452
# include <limits.h>
 
37453
#else
 
37454
# include <assert.h>
 
37455
#endif
 
37456
 
 
37457
#undef _doprnt
 
37458
 
 
37459
/* Override any gcc2 internal prototype to avoid an error.  */
 
37460
#ifdef __cplusplus
 
37461
extern "C"
 
37462
{
 
37463
#endif
 
37464
/* We use char because int might match the return type of a gcc2
 
37465
   builtin and then its argument prototype would still apply.  */
 
37466
char _doprnt ();
 
37467
/* The GNU C library defines this for functions which it implements
 
37468
    to always fail with ENOSYS.  Some functions are actually named
 
37469
    something starting with __ and the normal name is an alias.  */
 
37470
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
37471
choke me
 
37472
#else
 
37473
char (*f) () = _doprnt;
 
37474
#endif
 
37475
#ifdef __cplusplus
 
37476
}
 
37477
#endif
 
37478
 
 
37479
int
 
37480
main ()
 
37481
{
 
37482
return f != _doprnt;
 
37483
  ;
 
37484
  return 0;
 
37485
}
 
37486
_ACEOF
 
37487
rm -f conftest.$ac_objext conftest$ac_exeext
 
37488
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37489
  (eval $ac_link) 2>conftest.er1
 
37490
  ac_status=$?
 
37491
  grep -v '^ *+' conftest.er1 >conftest.err
 
37492
  rm -f conftest.er1
 
37493
  cat conftest.err >&5
 
37494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37495
  (exit $ac_status); } &&
 
37496
         { ac_try='test -z "$ac_c_werror_flag"
 
37497
                         || test ! -s conftest.err'
 
37498
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37499
  (eval $ac_try) 2>&5
 
37500
  ac_status=$?
 
37501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37502
  (exit $ac_status); }; } &&
 
37503
         { ac_try='test -s conftest$ac_exeext'
 
37504
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37505
  (eval $ac_try) 2>&5
 
37506
  ac_status=$?
 
37507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37508
  (exit $ac_status); }; }; then
 
37509
  ac_cv_func__doprnt=yes
 
37510
else
 
37511
  echo "$as_me: failed program was:" >&5
 
37512
sed 's/^/| /' conftest.$ac_ext >&5
 
37513
 
 
37514
ac_cv_func__doprnt=no
 
37515
fi
 
37516
rm -f conftest.err conftest.$ac_objext \
 
37517
      conftest$ac_exeext conftest.$ac_ext
 
37518
fi
 
37519
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
37520
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
37521
if test $ac_cv_func__doprnt = yes; then
 
37522
 
 
37523
cat >>confdefs.h <<\_ACEOF
 
37524
#define HAVE_DOPRNT 1
 
37525
_ACEOF
 
37526
 
 
37527
fi
 
37528
 
 
37529
fi
 
37530
done
 
37531
 
 
37532
 
 
37533
 
 
37534
 
 
37535
 
 
37536
 
 
37537
 
 
37538
 
 
37539
 
 
37540
 
 
37541
 
 
37542
 
 
37543
 
 
37544
 
 
37545
 
 
37546
 
 
37547
 
 
37548
 
 
37549
 
 
37550
 
 
37551
 
 
37552
 
 
37553
 
 
37554
 
 
37555
 
 
37556
 
 
37557
 
 
37558
 
 
37559
 
 
37560
 
 
37561
 
 
37562
 
 
37563
 
 
37564
 
 
37565
 
 
37566
 
 
37567
 
 
37568
 
 
37569
 
 
37570
 
 
37571
 
 
37572
 
 
37573
 
 
37574
 
 
37575
 
 
37576
 
 
37577
 
 
37578
 
 
37579
 
 
37580
 
 
37581
 
 
37582
 
 
37583
 
 
37584
 
 
37585
 
 
37586
 
 
37587
 
 
37588
 
 
37589
 
 
37590
 
 
37591
 
 
37592
 
 
37593
 
 
37594
 
 
37595
 
 
37596
 
 
37597
 
 
37598
 
 
37599
 
 
37600
 
 
37601
 
 
37602
 
 
37603
 
 
37604
 
 
37605
 
 
37606
 
 
37607
 
 
37608
 
 
37609
 
 
37610
 
 
37611
 
 
37612
 
 
37613
 
 
37614
 
 
37615
 
 
37616
 
 
37617
 
 
37618
 
 
37619
 
 
37620
 
 
37621
 
 
37622
 
 
37623
 
 
37624
 
 
37625
for ac_func in alarm bcmp bfill bmove bzero chsize cuserid fchmod fcntl \
 
37626
  fconvert fdatasync finite fpresetsticky fpsetmask fsync ftruncate \
 
37627
  getcwd gethostbyaddr_r gethostbyname_r getpass getpassphrase getpwnam \
 
37628
  getpwuid getrlimit getrusage getwd gmtime_r index initgroups isnan \
 
37629
  localtime_r locking longjmp lrand48 madvise mallinfo memcpy memmove \
 
37630
  mkstemp mlockall perror poll pread pthread_attr_create mmap getpagesize \
 
37631
  pthread_attr_getstacksize pthread_attr_setprio pthread_attr_setschedparam \
 
37632
  pthread_attr_setstacksize pthread_condattr_create pthread_getsequence_np \
 
37633
  pthread_key_delete pthread_rwlock_rdlock pthread_setprio \
 
37634
  pthread_setprio_np pthread_setschedparam pthread_sigmask readlink \
 
37635
  realpath rename rint rwlock_init setupterm \
 
37636
  shmget shmat shmdt shmctl sigaction sigemptyset sigaddset \
 
37637
  sighold sigset sigthreadmask \
 
37638
  snprintf socket stpcpy strcasecmp strerror strsignal strnlen strpbrk strstr strtol \
 
37639
  strtoll strtoul strtoull tell tempnam thr_setconcurrency vidattr
 
37640
do
 
37641
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
37642
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
37643
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
37644
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
37645
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37646
else
 
37647
  cat >conftest.$ac_ext <<_ACEOF
 
37648
/* confdefs.h.  */
 
37649
_ACEOF
 
37650
cat confdefs.h >>conftest.$ac_ext
 
37651
cat >>conftest.$ac_ext <<_ACEOF
 
37652
/* end confdefs.h.  */
 
37653
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
37654
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
37655
#define $ac_func innocuous_$ac_func
 
37656
 
 
37657
/* System header to define __stub macros and hopefully few prototypes,
 
37658
    which can conflict with char $ac_func (); below.
 
37659
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
37660
    <limits.h> exists even on freestanding compilers.  */
 
37661
 
 
37662
#ifdef __STDC__
 
37663
# include <limits.h>
 
37664
#else
 
37665
# include <assert.h>
 
37666
#endif
 
37667
 
 
37668
#undef $ac_func
 
37669
 
 
37670
/* Override any gcc2 internal prototype to avoid an error.  */
 
37671
#ifdef __cplusplus
 
37672
extern "C"
 
37673
{
 
37674
#endif
 
37675
/* We use char because int might match the return type of a gcc2
 
37676
   builtin and then its argument prototype would still apply.  */
 
37677
char $ac_func ();
 
37678
/* The GNU C library defines this for functions which it implements
 
37679
    to always fail with ENOSYS.  Some functions are actually named
 
37680
    something starting with __ and the normal name is an alias.  */
 
37681
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
37682
choke me
 
37683
#else
 
37684
char (*f) () = $ac_func;
 
37685
#endif
 
37686
#ifdef __cplusplus
 
37687
}
 
37688
#endif
 
37689
 
 
37690
int
 
37691
main ()
 
37692
{
 
37693
return f != $ac_func;
 
37694
  ;
 
37695
  return 0;
 
37696
}
 
37697
_ACEOF
 
37698
rm -f conftest.$ac_objext conftest$ac_exeext
 
37699
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37700
  (eval $ac_link) 2>conftest.er1
 
37701
  ac_status=$?
 
37702
  grep -v '^ *+' conftest.er1 >conftest.err
 
37703
  rm -f conftest.er1
 
37704
  cat conftest.err >&5
 
37705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37706
  (exit $ac_status); } &&
 
37707
         { ac_try='test -z "$ac_c_werror_flag"
 
37708
                         || test ! -s conftest.err'
 
37709
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37710
  (eval $ac_try) 2>&5
 
37711
  ac_status=$?
 
37712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37713
  (exit $ac_status); }; } &&
 
37714
         { ac_try='test -s conftest$ac_exeext'
 
37715
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37716
  (eval $ac_try) 2>&5
 
37717
  ac_status=$?
 
37718
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37719
  (exit $ac_status); }; }; then
 
37720
  eval "$as_ac_var=yes"
 
37721
else
 
37722
  echo "$as_me: failed program was:" >&5
 
37723
sed 's/^/| /' conftest.$ac_ext >&5
 
37724
 
 
37725
eval "$as_ac_var=no"
 
37726
fi
 
37727
rm -f conftest.err conftest.$ac_objext \
 
37728
      conftest$ac_exeext conftest.$ac_ext
 
37729
fi
 
37730
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
37731
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
37732
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
37733
  cat >>confdefs.h <<_ACEOF
 
37734
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
37735
_ACEOF
 
37736
 
 
37737
fi
 
37738
done
 
37739
 
 
37740
 
 
37741
#
 
37742
#
 
37743
#
 
37744
case "$target" in
 
37745
 *-*-aix4* | *-*-sco*)
 
37746
        # (grr) aix 4.3 has a stub for clock_gettime, (returning ENOSYS)
 
37747
        # and using AC_TRY_RUN is hard when cross-compiling
 
37748
        # We also disable for SCO for the time being, the headers for the
 
37749
        # thread library we use conflicts with other headers.
 
37750
    ;;
 
37751
 *)
 
37752
for ac_func in clock_gettime
 
37753
do
 
37754
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
37755
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
37756
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
37757
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
37758
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37759
else
 
37760
  cat >conftest.$ac_ext <<_ACEOF
 
37761
/* confdefs.h.  */
 
37762
_ACEOF
 
37763
cat confdefs.h >>conftest.$ac_ext
 
37764
cat >>conftest.$ac_ext <<_ACEOF
 
37765
/* end confdefs.h.  */
 
37766
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
37767
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
37768
#define $ac_func innocuous_$ac_func
 
37769
 
 
37770
/* System header to define __stub macros and hopefully few prototypes,
 
37771
    which can conflict with char $ac_func (); below.
 
37772
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
37773
    <limits.h> exists even on freestanding compilers.  */
 
37774
 
 
37775
#ifdef __STDC__
 
37776
# include <limits.h>
 
37777
#else
 
37778
# include <assert.h>
 
37779
#endif
 
37780
 
 
37781
#undef $ac_func
 
37782
 
 
37783
/* Override any gcc2 internal prototype to avoid an error.  */
 
37784
#ifdef __cplusplus
 
37785
extern "C"
 
37786
{
 
37787
#endif
 
37788
/* We use char because int might match the return type of a gcc2
 
37789
   builtin and then its argument prototype would still apply.  */
 
37790
char $ac_func ();
 
37791
/* The GNU C library defines this for functions which it implements
 
37792
    to always fail with ENOSYS.  Some functions are actually named
 
37793
    something starting with __ and the normal name is an alias.  */
 
37794
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
37795
choke me
 
37796
#else
 
37797
char (*f) () = $ac_func;
 
37798
#endif
 
37799
#ifdef __cplusplus
 
37800
}
 
37801
#endif
 
37802
 
 
37803
int
 
37804
main ()
 
37805
{
 
37806
return f != $ac_func;
 
37807
  ;
 
37808
  return 0;
 
37809
}
 
37810
_ACEOF
 
37811
rm -f conftest.$ac_objext conftest$ac_exeext
 
37812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37813
  (eval $ac_link) 2>conftest.er1
 
37814
  ac_status=$?
 
37815
  grep -v '^ *+' conftest.er1 >conftest.err
 
37816
  rm -f conftest.er1
 
37817
  cat conftest.err >&5
 
37818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37819
  (exit $ac_status); } &&
 
37820
         { ac_try='test -z "$ac_c_werror_flag"
 
37821
                         || test ! -s conftest.err'
 
37822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37823
  (eval $ac_try) 2>&5
 
37824
  ac_status=$?
 
37825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37826
  (exit $ac_status); }; } &&
 
37827
         { ac_try='test -s conftest$ac_exeext'
 
37828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37829
  (eval $ac_try) 2>&5
 
37830
  ac_status=$?
 
37831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37832
  (exit $ac_status); }; }; then
 
37833
  eval "$as_ac_var=yes"
 
37834
else
 
37835
  echo "$as_me: failed program was:" >&5
 
37836
sed 's/^/| /' conftest.$ac_ext >&5
 
37837
 
 
37838
eval "$as_ac_var=no"
 
37839
fi
 
37840
rm -f conftest.err conftest.$ac_objext \
 
37841
      conftest$ac_exeext conftest.$ac_ext
 
37842
fi
 
37843
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
37844
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
37845
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
37846
  cat >>confdefs.h <<_ACEOF
 
37847
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
37848
_ACEOF
 
37849
 
 
37850
fi
 
37851
done
 
37852
 
 
37853
    ;;
 
37854
esac
 
37855
 
 
37856
# isinf() could be a function or a macro (HPUX)
 
37857
echo "$as_me:$LINENO: checking for isinf with <math.h>" >&5
 
37858
echo $ECHO_N "checking for isinf with <math.h>... $ECHO_C" >&6
 
37859
cat >conftest.$ac_ext <<_ACEOF
 
37860
/* confdefs.h.  */
 
37861
_ACEOF
 
37862
cat confdefs.h >>conftest.$ac_ext
 
37863
cat >>conftest.$ac_ext <<_ACEOF
 
37864
/* end confdefs.h.  */
 
37865
#include <math.h>
 
37866
int
 
37867
main ()
 
37868
{
 
37869
float f = 0.0; int r = isinf(f); return r
 
37870
  ;
 
37871
  return 0;
 
37872
}
 
37873
_ACEOF
 
37874
rm -f conftest.$ac_objext conftest$ac_exeext
 
37875
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37876
  (eval $ac_link) 2>conftest.er1
 
37877
  ac_status=$?
 
37878
  grep -v '^ *+' conftest.er1 >conftest.err
 
37879
  rm -f conftest.er1
 
37880
  cat conftest.err >&5
 
37881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37882
  (exit $ac_status); } &&
 
37883
         { ac_try='test -z "$ac_c_werror_flag"
 
37884
                         || test ! -s conftest.err'
 
37885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37886
  (eval $ac_try) 2>&5
 
37887
  ac_status=$?
 
37888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37889
  (exit $ac_status); }; } &&
 
37890
         { ac_try='test -s conftest$ac_exeext'
 
37891
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37892
  (eval $ac_try) 2>&5
 
37893
  ac_status=$?
 
37894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37895
  (exit $ac_status); }; }; then
 
37896
  echo "$as_me:$LINENO: result: yes" >&5
 
37897
echo "${ECHO_T}yes" >&6
 
37898
 
 
37899
cat >>confdefs.h <<\_ACEOF
 
37900
#define HAVE_ISINF 1
 
37901
_ACEOF
 
37902
 
 
37903
else
 
37904
  echo "$as_me: failed program was:" >&5
 
37905
sed 's/^/| /' conftest.$ac_ext >&5
 
37906
 
 
37907
echo "$as_me:$LINENO: result: no" >&5
 
37908
echo "${ECHO_T}no" >&6
 
37909
fi
 
37910
rm -f conftest.err conftest.$ac_objext \
 
37911
      conftest$ac_exeext conftest.$ac_ext
 
37912
 
 
37913
CFLAGS="$ORG_CFLAGS"
 
37914
 
 
37915
# Sanity check: We chould not have any fseeko symbol unless
 
37916
# large_file_support=yes
 
37917
echo "$as_me:$LINENO: checking for fseeko" >&5
 
37918
echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
 
37919
if test "${ac_cv_func_fseeko+set}" = set; then
 
37920
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
37921
else
 
37922
  cat >conftest.$ac_ext <<_ACEOF
 
37923
/* confdefs.h.  */
 
37924
_ACEOF
 
37925
cat confdefs.h >>conftest.$ac_ext
 
37926
cat >>conftest.$ac_ext <<_ACEOF
 
37927
/* end confdefs.h.  */
 
37928
/* Define fseeko to an innocuous variant, in case <limits.h> declares fseeko.
 
37929
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
37930
#define fseeko innocuous_fseeko
 
37931
 
 
37932
/* System header to define __stub macros and hopefully few prototypes,
 
37933
    which can conflict with char fseeko (); below.
 
37934
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
37935
    <limits.h> exists even on freestanding compilers.  */
 
37936
 
 
37937
#ifdef __STDC__
 
37938
# include <limits.h>
 
37939
#else
 
37940
# include <assert.h>
 
37941
#endif
 
37942
 
 
37943
#undef fseeko
 
37944
 
 
37945
/* Override any gcc2 internal prototype to avoid an error.  */
 
37946
#ifdef __cplusplus
 
37947
extern "C"
 
37948
{
 
37949
#endif
 
37950
/* We use char because int might match the return type of a gcc2
 
37951
   builtin and then its argument prototype would still apply.  */
 
37952
char fseeko ();
 
37953
/* The GNU C library defines this for functions which it implements
 
37954
    to always fail with ENOSYS.  Some functions are actually named
 
37955
    something starting with __ and the normal name is an alias.  */
 
37956
#if defined (__stub_fseeko) || defined (__stub___fseeko)
 
37957
choke me
 
37958
#else
 
37959
char (*f) () = fseeko;
 
37960
#endif
 
37961
#ifdef __cplusplus
 
37962
}
 
37963
#endif
 
37964
 
 
37965
int
 
37966
main ()
 
37967
{
 
37968
return f != fseeko;
 
37969
  ;
 
37970
  return 0;
 
37971
}
 
37972
_ACEOF
 
37973
rm -f conftest.$ac_objext conftest$ac_exeext
 
37974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
37975
  (eval $ac_link) 2>conftest.er1
 
37976
  ac_status=$?
 
37977
  grep -v '^ *+' conftest.er1 >conftest.err
 
37978
  rm -f conftest.er1
 
37979
  cat conftest.err >&5
 
37980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37981
  (exit $ac_status); } &&
 
37982
         { ac_try='test -z "$ac_c_werror_flag"
 
37983
                         || test ! -s conftest.err'
 
37984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37985
  (eval $ac_try) 2>&5
 
37986
  ac_status=$?
 
37987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37988
  (exit $ac_status); }; } &&
 
37989
         { ac_try='test -s conftest$ac_exeext'
 
37990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
37991
  (eval $ac_try) 2>&5
 
37992
  ac_status=$?
 
37993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
37994
  (exit $ac_status); }; }; then
 
37995
  ac_cv_func_fseeko=yes
 
37996
else
 
37997
  echo "$as_me: failed program was:" >&5
 
37998
sed 's/^/| /' conftest.$ac_ext >&5
 
37999
 
 
38000
ac_cv_func_fseeko=no
 
38001
fi
 
38002
rm -f conftest.err conftest.$ac_objext \
 
38003
      conftest$ac_exeext conftest.$ac_ext
 
38004
fi
 
38005
echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
 
38006
echo "${ECHO_T}$ac_cv_func_fseeko" >&6
 
38007
if test $ac_cv_func_fseeko = yes; then
 
38008
  if test "$large_file_support" = no -a "$TARGET_LINUX" = "true";
 
38009
then
 
38010
  { { echo "$as_me:$LINENO: error: \"Found fseeko symbol but large_file_support is not enabled!\"" >&5
 
38011
echo "$as_me: error: \"Found fseeko symbol but large_file_support is not enabled!\"" >&2;}
 
38012
   { (exit 1); exit 1; }; };
 
38013
fi
 
38014
 
 
38015
fi
 
38016
 
 
38017
 
 
38018
# Check definition of gethostbyaddr_r (glibc2 defines this with 8 arguments)
 
38019
ac_save_CXXFLAGS="$CXXFLAGS"
 
38020
echo "$as_me:$LINENO: checking style of gethost* routines" >&5
 
38021
echo $ECHO_N "checking style of gethost* routines... $ECHO_C" >&6
 
38022
if test "${mysql_cv_gethost_style+set}" = set; then
 
38023
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38024
else
 
38025
 
 
38026
 
 
38027
ac_ext=cc
 
38028
ac_cpp='$CXXCPP $CPPFLAGS'
 
38029
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
38030
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
38031
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
38032
 
 
38033
 
 
38034
# Test whether madvise() is declared in C++ code -- it is not on some
 
38035
# systems, such as Solaris
 
38036
echo "$as_me:$LINENO: checking whether madvise is declared" >&5
 
38037
echo $ECHO_N "checking whether madvise is declared... $ECHO_C" >&6
 
38038
if test "${ac_cv_have_decl_madvise+set}" = set; then
 
38039
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38040
else
 
38041
  cat >conftest.$ac_ext <<_ACEOF
 
38042
/* confdefs.h.  */
 
38043
_ACEOF
 
38044
cat confdefs.h >>conftest.$ac_ext
 
38045
cat >>conftest.$ac_ext <<_ACEOF
 
38046
/* end confdefs.h.  */
 
38047
#if HAVE_SYS_MMAN_H
 
38048
#include <sys/types.h>
 
38049
#include <sys/mman.h>
 
38050
#endif
 
38051
 
 
38052
int
 
38053
main ()
 
38054
{
 
38055
#ifndef madvise
 
38056
  char *p = (char *) madvise;
 
38057
#endif
 
38058
 
 
38059
  ;
 
38060
  return 0;
 
38061
}
 
38062
_ACEOF
 
38063
rm -f conftest.$ac_objext
 
38064
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
38065
  (eval $ac_compile) 2>conftest.er1
 
38066
  ac_status=$?
 
38067
  grep -v '^ *+' conftest.er1 >conftest.err
 
38068
  rm -f conftest.er1
 
38069
  cat conftest.err >&5
 
38070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38071
  (exit $ac_status); } &&
 
38072
         { ac_try='test -z "$ac_cxx_werror_flag"
 
38073
                         || test ! -s conftest.err'
 
38074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38075
  (eval $ac_try) 2>&5
 
38076
  ac_status=$?
 
38077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38078
  (exit $ac_status); }; } &&
 
38079
         { ac_try='test -s conftest.$ac_objext'
 
38080
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38081
  (eval $ac_try) 2>&5
 
38082
  ac_status=$?
 
38083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38084
  (exit $ac_status); }; }; then
 
38085
  ac_cv_have_decl_madvise=yes
 
38086
else
 
38087
  echo "$as_me: failed program was:" >&5
 
38088
sed 's/^/| /' conftest.$ac_ext >&5
 
38089
 
 
38090
ac_cv_have_decl_madvise=no
 
38091
fi
 
38092
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
38093
fi
 
38094
echo "$as_me:$LINENO: result: $ac_cv_have_decl_madvise" >&5
 
38095
echo "${ECHO_T}$ac_cv_have_decl_madvise" >&6
 
38096
if test $ac_cv_have_decl_madvise = yes; then
 
38097
 
 
38098
cat >>confdefs.h <<_ACEOF
 
38099
#define HAVE_DECL_MADVISE 1
 
38100
_ACEOF
 
38101
 
 
38102
 
 
38103
else
 
38104
  cat >>confdefs.h <<_ACEOF
 
38105
#define HAVE_DECL_MADVISE 0
 
38106
_ACEOF
 
38107
 
 
38108
 
 
38109
fi
 
38110
 
 
38111
 
 
38112
 
 
38113
# Do not treat warnings as errors if we are linking against other libc
 
38114
# this is to work around gcc not being permissive on non-system includes
 
38115
# with respect to ANSI C++
 
38116
# We also remove the -fbranch-probabilities option as this will give warnings
 
38117
# about not profiled code, which confuses configure
 
38118
# We also must remove -W and -Wcheck which on icc produces warnings that
 
38119
# we don't want to catch with -Werror
 
38120
 
 
38121
if test "$ac_cv_cxx_compiler_gnu" = "yes" -a "$with_other_libc" = "no"
 
38122
then
 
38123
  CXXFLAGS=`echo "$CXXFLAGS -Werror" | sed -e 's/-fbranch-probabilities//; s/-Wall//; s/-ansi//; s/-pedantic//; s/-Wcheck//'`
 
38124
fi
 
38125
 
 
38126
cat >conftest.$ac_ext <<_ACEOF
 
38127
/* confdefs.h.  */
 
38128
_ACEOF
 
38129
cat confdefs.h >>conftest.$ac_ext
 
38130
cat >>conftest.$ac_ext <<_ACEOF
 
38131
/* end confdefs.h.  */
 
38132
#undef inline
 
38133
#if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT)
 
38134
#define _REENTRANT
 
38135
#endif
 
38136
#include <pthread.h>
 
38137
#include <sys/types.h>
 
38138
#include <sys/socket.h>
 
38139
#include <netinet/in.h>
 
38140
#include <arpa/inet.h>
 
38141
#include <netdb.h>
 
38142
int
 
38143
main ()
 
38144
{
 
38145
int skr;
 
38146
 struct hostent *foo = gethostbyaddr_r((const char *) 0,
 
38147
  0, 0, (struct hostent *) 0, (char *) NULL,  0, &skr); return (foo == 0);
 
38148
  ;
 
38149
  return 0;
 
38150
}
 
38151
_ACEOF
 
38152
rm -f conftest.$ac_objext
 
38153
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
38154
  (eval $ac_compile) 2>conftest.er1
 
38155
  ac_status=$?
 
38156
  grep -v '^ *+' conftest.er1 >conftest.err
 
38157
  rm -f conftest.er1
 
38158
  cat conftest.err >&5
 
38159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38160
  (exit $ac_status); } &&
 
38161
         { ac_try='test -z "$ac_cxx_werror_flag"
 
38162
                         || test ! -s conftest.err'
 
38163
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38164
  (eval $ac_try) 2>&5
 
38165
  ac_status=$?
 
38166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38167
  (exit $ac_status); }; } &&
 
38168
         { ac_try='test -s conftest.$ac_objext'
 
38169
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38170
  (eval $ac_try) 2>&5
 
38171
  ac_status=$?
 
38172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38173
  (exit $ac_status); }; }; then
 
38174
  mysql_cv_gethost_style=solaris
 
38175
else
 
38176
  echo "$as_me: failed program was:" >&5
 
38177
sed 's/^/| /' conftest.$ac_ext >&5
 
38178
 
 
38179
mysql_cv_gethost_style=other
 
38180
fi
 
38181
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
38182
fi
 
38183
echo "$as_me:$LINENO: result: $mysql_cv_gethost_style" >&5
 
38184
echo "${ECHO_T}$mysql_cv_gethost_style" >&6
 
38185
ac_ext=c
 
38186
ac_cpp='$CPP $CPPFLAGS'
 
38187
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
38188
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
38189
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
38190
 
 
38191
CXXFLAGS="$ac_save_CXXFLAGS"
 
38192
if test "$mysql_cv_gethost_style" = "solaris"
 
38193
then
 
38194
 
 
38195
cat >>confdefs.h <<\_ACEOF
 
38196
#define HAVE_SOLARIS_STYLE_GETHOST 1
 
38197
_ACEOF
 
38198
 
 
38199
fi
 
38200
 
 
38201
#---START: Used in for client configure
 
38202
 
 
38203
# Check definition of gethostbyname_r (glibc2.0.100 is different from Solaris)
 
38204
ac_save_CXXFLAGS="$CXXFLAGS"
 
38205
echo "$as_me:$LINENO: checking style of gethostname_r routines" >&5
 
38206
echo $ECHO_N "checking style of gethostname_r routines... $ECHO_C" >&6
 
38207
if test "${mysql_cv_gethostname_style+set}" = set; then
 
38208
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38209
else
 
38210
 
 
38211
 
 
38212
ac_ext=cc
 
38213
ac_cpp='$CXXCPP $CPPFLAGS'
 
38214
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
38215
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
38216
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
38217
 
 
38218
if test "$ac_cv_cxx_compiler_gnu" = "yes" -a "$with_other_libc" = "no"
 
38219
then
 
38220
  CXXFLAGS=`echo "$CXXFLAGS -Werror" | sed -e 's/-fbranch-probabilities//; s/-Wall//; s/-ansi//; s/-pedantic//; s/-Wcheck//'`
 
38221
fi
 
38222
cat >conftest.$ac_ext <<_ACEOF
 
38223
/* confdefs.h.  */
 
38224
_ACEOF
 
38225
cat confdefs.h >>conftest.$ac_ext
 
38226
cat >>conftest.$ac_ext <<_ACEOF
 
38227
/* end confdefs.h.  */
 
38228
#undef inline
 
38229
#if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT)
 
38230
#define _REENTRANT
 
38231
#endif
 
38232
#include <pthread.h>
 
38233
#include <sys/types.h>
 
38234
#include <sys/socket.h>
 
38235
#include <netinet/in.h>
 
38236
#include <arpa/inet.h>
 
38237
#include <netdb.h>
 
38238
int
 
38239
main ()
 
38240
{
 
38241
int skr;
 
38242
 
 
38243
 skr = gethostbyname_r((const char *) 0,
 
38244
  (struct hostent*) 0, (char*) 0, 0, (struct hostent **) 0, &skr);
 
38245
  ;
 
38246
  return 0;
 
38247
}
 
38248
_ACEOF
 
38249
rm -f conftest.$ac_objext
 
38250
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
38251
  (eval $ac_compile) 2>conftest.er1
 
38252
  ac_status=$?
 
38253
  grep -v '^ *+' conftest.er1 >conftest.err
 
38254
  rm -f conftest.er1
 
38255
  cat conftest.err >&5
 
38256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38257
  (exit $ac_status); } &&
 
38258
         { ac_try='test -z "$ac_cxx_werror_flag"
 
38259
                         || test ! -s conftest.err'
 
38260
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38261
  (eval $ac_try) 2>&5
 
38262
  ac_status=$?
 
38263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38264
  (exit $ac_status); }; } &&
 
38265
         { ac_try='test -s conftest.$ac_objext'
 
38266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38267
  (eval $ac_try) 2>&5
 
38268
  ac_status=$?
 
38269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38270
  (exit $ac_status); }; }; then
 
38271
  mysql_cv_gethostname_style=glibc2
 
38272
else
 
38273
  echo "$as_me: failed program was:" >&5
 
38274
sed 's/^/| /' conftest.$ac_ext >&5
 
38275
 
 
38276
mysql_cv_gethostname_style=other
 
38277
fi
 
38278
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
38279
fi
 
38280
echo "$as_me:$LINENO: result: $mysql_cv_gethostname_style" >&5
 
38281
echo "${ECHO_T}$mysql_cv_gethostname_style" >&6
 
38282
ac_ext=c
 
38283
ac_cpp='$CPP $CPPFLAGS'
 
38284
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
38285
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
38286
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
38287
 
 
38288
CXXFLAGS="$ac_save_CXXFLAGS"
 
38289
if test "$mysql_cv_gethostname_style" = "glibc2"
 
38290
then
 
38291
 
 
38292
cat >>confdefs.h <<\_ACEOF
 
38293
#define HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE 1
 
38294
_ACEOF
 
38295
 
 
38296
fi
 
38297
 
 
38298
# Check 3rd argument of getthostbyname_r
 
38299
ac_save_CXXFLAGS="$CXXFLAGS"
 
38300
echo "$as_me:$LINENO: checking 3 argument to gethostname_r routines" >&5
 
38301
echo $ECHO_N "checking 3 argument to gethostname_r routines... $ECHO_C" >&6
 
38302
if test "${mysql_cv_gethostname_arg+set}" = set; then
 
38303
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38304
else
 
38305
 
 
38306
 
 
38307
ac_ext=cc
 
38308
ac_cpp='$CXXCPP $CPPFLAGS'
 
38309
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
38310
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
38311
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
38312
 
 
38313
if test "$ac_cv_cxx_compiler_gnu" = "yes" -a "$with_other_libc" = "no"
 
38314
then
 
38315
  CXXFLAGS=`echo "$CXXFLAGS -Werror" | sed -e 's/-fbranch-probabilities//; s/-Wall//; s/-ansi//; s/-pedantic//; s/-Wcheck//'`
 
38316
fi
 
38317
cat >conftest.$ac_ext <<_ACEOF
 
38318
/* confdefs.h.  */
 
38319
_ACEOF
 
38320
cat confdefs.h >>conftest.$ac_ext
 
38321
cat >>conftest.$ac_ext <<_ACEOF
 
38322
/* end confdefs.h.  */
 
38323
#undef inline
 
38324
#if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT)
 
38325
#define _REENTRANT
 
38326
#endif
 
38327
#include <pthread.h>
 
38328
#include <sys/types.h>
 
38329
#include <sys/socket.h>
 
38330
#include <netinet/in.h>
 
38331
#include <arpa/inet.h>
 
38332
#include <netdb.h>
 
38333
int
 
38334
main ()
 
38335
{
 
38336
int skr;
 
38337
 
 
38338
 skr = gethostbyname_r((const char *) 0, (struct hostent*) 0, (struct hostent_data*) 0);
 
38339
  ;
 
38340
  return 0;
 
38341
}
 
38342
_ACEOF
 
38343
rm -f conftest.$ac_objext
 
38344
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
38345
  (eval $ac_compile) 2>conftest.er1
 
38346
  ac_status=$?
 
38347
  grep -v '^ *+' conftest.er1 >conftest.err
 
38348
  rm -f conftest.er1
 
38349
  cat conftest.err >&5
 
38350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38351
  (exit $ac_status); } &&
 
38352
         { ac_try='test -z "$ac_cxx_werror_flag"
 
38353
                         || test ! -s conftest.err'
 
38354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38355
  (eval $ac_try) 2>&5
 
38356
  ac_status=$?
 
38357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38358
  (exit $ac_status); }; } &&
 
38359
         { ac_try='test -s conftest.$ac_objext'
 
38360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38361
  (eval $ac_try) 2>&5
 
38362
  ac_status=$?
 
38363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38364
  (exit $ac_status); }; }; then
 
38365
  mysql_cv_gethostname_arg=hostent_data
 
38366
else
 
38367
  echo "$as_me: failed program was:" >&5
 
38368
sed 's/^/| /' conftest.$ac_ext >&5
 
38369
 
 
38370
mysql_cv_gethostname_arg=char
 
38371
fi
 
38372
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
38373
fi
 
38374
echo "$as_me:$LINENO: result: $mysql_cv_gethostname_arg" >&5
 
38375
echo "${ECHO_T}$mysql_cv_gethostname_arg" >&6
 
38376
ac_ext=c
 
38377
ac_cpp='$CPP $CPPFLAGS'
 
38378
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
38379
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
38380
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
38381
 
 
38382
CXXFLAGS="$ac_save_CXXFLAGS"
 
38383
if test "$mysql_cv_gethostname_arg" = "hostent_data"
 
38384
then
 
38385
 
 
38386
cat >>confdefs.h <<\_ACEOF
 
38387
#define HAVE_GETHOSTBYNAME_R_RETURN_INT 1
 
38388
_ACEOF
 
38389
 
 
38390
fi
 
38391
 
 
38392
 
 
38393
# Check definition of pthread_getspecific
 
38394
echo "$as_me:$LINENO: checking \"args to pthread_getspecific\"" >&5
 
38395
echo $ECHO_N "checking \"args to pthread_getspecific\"... $ECHO_C" >&6
 
38396
if test "${mysql_cv_getspecific_args+set}" = set; then
 
38397
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38398
else
 
38399
  cat >conftest.$ac_ext <<_ACEOF
 
38400
/* confdefs.h.  */
 
38401
_ACEOF
 
38402
cat confdefs.h >>conftest.$ac_ext
 
38403
cat >>conftest.$ac_ext <<_ACEOF
 
38404
/* end confdefs.h.  */
 
38405
#if !defined(SCO) && !defined(__osf__) && !defined(_REENTRANT)
 
38406
#define _REENTRANT
 
38407
#endif
 
38408
#define _POSIX_PTHREAD_SEMANTICS
 
38409
#include <pthread.h>
 
38410
int
 
38411
main ()
 
38412
{
 
38413
 void *pthread_getspecific(pthread_key_t key);
 
38414
pthread_getspecific((pthread_key_t) NULL);
 
38415
  ;
 
38416
  return 0;
 
38417
}
 
38418
_ACEOF
 
38419
rm -f conftest.$ac_objext
 
38420
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
38421
  (eval $ac_compile) 2>conftest.er1
 
38422
  ac_status=$?
 
38423
  grep -v '^ *+' conftest.er1 >conftest.err
 
38424
  rm -f conftest.er1
 
38425
  cat conftest.err >&5
 
38426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38427
  (exit $ac_status); } &&
 
38428
         { ac_try='test -z "$ac_c_werror_flag"
 
38429
                         || test ! -s conftest.err'
 
38430
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38431
  (eval $ac_try) 2>&5
 
38432
  ac_status=$?
 
38433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38434
  (exit $ac_status); }; } &&
 
38435
         { ac_try='test -s conftest.$ac_objext'
 
38436
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38437
  (eval $ac_try) 2>&5
 
38438
  ac_status=$?
 
38439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38440
  (exit $ac_status); }; }; then
 
38441
  mysql_cv_getspecific_args=POSIX
 
38442
else
 
38443
  echo "$as_me: failed program was:" >&5
 
38444
sed 's/^/| /' conftest.$ac_ext >&5
 
38445
 
 
38446
mysql_cv_getspecific_args=other
 
38447
fi
 
38448
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
38449
fi
 
38450
echo "$as_me:$LINENO: result: $mysql_cv_getspecific_args" >&5
 
38451
echo "${ECHO_T}$mysql_cv_getspecific_args" >&6
 
38452
  if test "$mysql_cv_getspecific_args" = "other"
 
38453
  then
 
38454
 
 
38455
cat >>confdefs.h <<\_ACEOF
 
38456
#define HAVE_NONPOSIX_PTHREAD_GETSPECIFIC 1
 
38457
_ACEOF
 
38458
 
 
38459
  fi
 
38460
 
 
38461
  # Check definition of pthread_mutex_init
 
38462
  echo "$as_me:$LINENO: checking \"args to pthread_mutex_init\"" >&5
 
38463
echo $ECHO_N "checking \"args to pthread_mutex_init\"... $ECHO_C" >&6
 
38464
if test "${mysql_cv_mutex_init_args+set}" = set; then
 
38465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38466
else
 
38467
  cat >conftest.$ac_ext <<_ACEOF
 
38468
/* confdefs.h.  */
 
38469
_ACEOF
 
38470
cat confdefs.h >>conftest.$ac_ext
 
38471
cat >>conftest.$ac_ext <<_ACEOF
 
38472
/* end confdefs.h.  */
 
38473
#if !defined(SCO) && !defined(__osf__)
 
38474
#define _REENTRANT
 
38475
#endif
 
38476
#define _POSIX_PTHREAD_SEMANTICS
 
38477
#include <pthread.h>
 
38478
int
 
38479
main ()
 
38480
{
 
38481
 
 
38482
  pthread_mutexattr_t attr;
 
38483
  pthread_mutex_t mp;
 
38484
  pthread_mutex_init(&mp,&attr);
 
38485
  ;
 
38486
  return 0;
 
38487
}
 
38488
_ACEOF
 
38489
rm -f conftest.$ac_objext
 
38490
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
38491
  (eval $ac_compile) 2>conftest.er1
 
38492
  ac_status=$?
 
38493
  grep -v '^ *+' conftest.er1 >conftest.err
 
38494
  rm -f conftest.er1
 
38495
  cat conftest.err >&5
 
38496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38497
  (exit $ac_status); } &&
 
38498
         { ac_try='test -z "$ac_c_werror_flag"
 
38499
                         || test ! -s conftest.err'
 
38500
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38501
  (eval $ac_try) 2>&5
 
38502
  ac_status=$?
 
38503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38504
  (exit $ac_status); }; } &&
 
38505
         { ac_try='test -s conftest.$ac_objext'
 
38506
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38507
  (eval $ac_try) 2>&5
 
38508
  ac_status=$?
 
38509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38510
  (exit $ac_status); }; }; then
 
38511
  mysql_cv_mutex_init_args=POSIX
 
38512
else
 
38513
  echo "$as_me: failed program was:" >&5
 
38514
sed 's/^/| /' conftest.$ac_ext >&5
 
38515
 
 
38516
mysql_cv_mutex_init_args=other
 
38517
fi
 
38518
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
38519
fi
 
38520
echo "$as_me:$LINENO: result: $mysql_cv_mutex_init_args" >&5
 
38521
echo "${ECHO_T}$mysql_cv_mutex_init_args" >&6
 
38522
  if test "$mysql_cv_mutex_init_args" = "other"
 
38523
  then
 
38524
 
 
38525
cat >>confdefs.h <<\_ACEOF
 
38526
#define HAVE_NONPOSIX_PTHREAD_MUTEX_INIT 1
 
38527
_ACEOF
 
38528
 
 
38529
  fi
 
38530
#---END:
 
38531
 
 
38532
#---START: Used in for client configure
 
38533
# Check definition of readdir_r
 
38534
echo "$as_me:$LINENO: checking \"args to readdir_r\"" >&5
 
38535
echo $ECHO_N "checking \"args to readdir_r\"... $ECHO_C" >&6
 
38536
if test "${mysql_cv_readdir_r+set}" = set; then
 
38537
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38538
else
 
38539
  cat >conftest.$ac_ext <<_ACEOF
 
38540
/* confdefs.h.  */
 
38541
_ACEOF
 
38542
cat confdefs.h >>conftest.$ac_ext
 
38543
cat >>conftest.$ac_ext <<_ACEOF
 
38544
/* end confdefs.h.  */
 
38545
#if !defined(SCO) && !defined(__osf__)
 
38546
#define _REENTRANT
 
38547
#endif
 
38548
#define _POSIX_PTHREAD_SEMANTICS
 
38549
#include <pthread.h>
 
38550
#include <dirent.h>
 
38551
int
 
38552
main ()
 
38553
{
 
38554
 int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result);
 
38555
readdir_r((DIR *) NULL, (struct dirent *) NULL, (struct dirent **) NULL);
 
38556
  ;
 
38557
  return 0;
 
38558
}
 
38559
_ACEOF
 
38560
rm -f conftest.$ac_objext conftest$ac_exeext
 
38561
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38562
  (eval $ac_link) 2>conftest.er1
 
38563
  ac_status=$?
 
38564
  grep -v '^ *+' conftest.er1 >conftest.err
 
38565
  rm -f conftest.er1
 
38566
  cat conftest.err >&5
 
38567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38568
  (exit $ac_status); } &&
 
38569
         { ac_try='test -z "$ac_c_werror_flag"
 
38570
                         || test ! -s conftest.err'
 
38571
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38572
  (eval $ac_try) 2>&5
 
38573
  ac_status=$?
 
38574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38575
  (exit $ac_status); }; } &&
 
38576
         { ac_try='test -s conftest$ac_exeext'
 
38577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38578
  (eval $ac_try) 2>&5
 
38579
  ac_status=$?
 
38580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38581
  (exit $ac_status); }; }; then
 
38582
  mysql_cv_readdir_r=POSIX
 
38583
else
 
38584
  echo "$as_me: failed program was:" >&5
 
38585
sed 's/^/| /' conftest.$ac_ext >&5
 
38586
 
 
38587
mysql_cv_readdir_r=other
 
38588
fi
 
38589
rm -f conftest.err conftest.$ac_objext \
 
38590
      conftest$ac_exeext conftest.$ac_ext
 
38591
fi
 
38592
echo "$as_me:$LINENO: result: $mysql_cv_readdir_r" >&5
 
38593
echo "${ECHO_T}$mysql_cv_readdir_r" >&6
 
38594
if test "$mysql_cv_readdir_r" = "POSIX"
 
38595
then
 
38596
 
 
38597
cat >>confdefs.h <<\_ACEOF
 
38598
#define HAVE_READDIR_R 1
 
38599
_ACEOF
 
38600
 
 
38601
fi
 
38602
 
 
38603
# Check definition of posix sigwait()
 
38604
echo "$as_me:$LINENO: checking \"style of sigwait\"" >&5
 
38605
echo $ECHO_N "checking \"style of sigwait\"... $ECHO_C" >&6
 
38606
if test "${mysql_cv_sigwait+set}" = set; then
 
38607
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38608
else
 
38609
  cat >conftest.$ac_ext <<_ACEOF
 
38610
/* confdefs.h.  */
 
38611
_ACEOF
 
38612
cat confdefs.h >>conftest.$ac_ext
 
38613
cat >>conftest.$ac_ext <<_ACEOF
 
38614
/* end confdefs.h.  */
 
38615
#if !defined(SCO) && !defined(__osf__)
 
38616
#define _REENTRANT
 
38617
#endif
 
38618
#define _POSIX_PTHREAD_SEMANTICS
 
38619
#include <pthread.h>
 
38620
#include <signal.h>
 
38621
int
 
38622
main ()
 
38623
{
 
38624
#ifndef _AIX
 
38625
sigset_t set;
 
38626
int sig;
 
38627
sigwait(&set,&sig);
 
38628
#endif
 
38629
  ;
 
38630
  return 0;
 
38631
}
 
38632
_ACEOF
 
38633
rm -f conftest.$ac_objext conftest$ac_exeext
 
38634
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38635
  (eval $ac_link) 2>conftest.er1
 
38636
  ac_status=$?
 
38637
  grep -v '^ *+' conftest.er1 >conftest.err
 
38638
  rm -f conftest.er1
 
38639
  cat conftest.err >&5
 
38640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38641
  (exit $ac_status); } &&
 
38642
         { ac_try='test -z "$ac_c_werror_flag"
 
38643
                         || test ! -s conftest.err'
 
38644
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38645
  (eval $ac_try) 2>&5
 
38646
  ac_status=$?
 
38647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38648
  (exit $ac_status); }; } &&
 
38649
         { ac_try='test -s conftest$ac_exeext'
 
38650
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38651
  (eval $ac_try) 2>&5
 
38652
  ac_status=$?
 
38653
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38654
  (exit $ac_status); }; }; then
 
38655
  mysql_cv_sigwait=POSIX
 
38656
else
 
38657
  echo "$as_me: failed program was:" >&5
 
38658
sed 's/^/| /' conftest.$ac_ext >&5
 
38659
 
 
38660
mysql_cv_sigwait=other
 
38661
fi
 
38662
rm -f conftest.err conftest.$ac_objext \
 
38663
      conftest$ac_exeext conftest.$ac_ext
 
38664
fi
 
38665
echo "$as_me:$LINENO: result: $mysql_cv_sigwait" >&5
 
38666
echo "${ECHO_T}$mysql_cv_sigwait" >&6
 
38667
if test "$mysql_cv_sigwait" = "POSIX"
 
38668
then
 
38669
 
 
38670
cat >>confdefs.h <<\_ACEOF
 
38671
#define HAVE_SIGWAIT 1
 
38672
_ACEOF
 
38673
 
 
38674
fi
 
38675
 
 
38676
if test "$mysql_cv_sigwait" != "POSIX"
 
38677
then
 
38678
unset mysql_cv_sigwait
 
38679
# Check definition of posix sigwait()
 
38680
echo "$as_me:$LINENO: checking \"style of sigwait\"" >&5
 
38681
echo $ECHO_N "checking \"style of sigwait\"... $ECHO_C" >&6
 
38682
if test "${mysql_cv_sigwait+set}" = set; then
 
38683
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38684
else
 
38685
  cat >conftest.$ac_ext <<_ACEOF
 
38686
/* confdefs.h.  */
 
38687
_ACEOF
 
38688
cat confdefs.h >>conftest.$ac_ext
 
38689
cat >>conftest.$ac_ext <<_ACEOF
 
38690
/* end confdefs.h.  */
 
38691
#if !defined(SCO) && !defined(__osf__)
 
38692
#define _REENTRANT
 
38693
#endif
 
38694
#define _POSIX_PTHREAD_SEMANTICS
 
38695
#include <pthread.h>
 
38696
#include <signal.h>
 
38697
int
 
38698
main ()
 
38699
{
 
38700
sigset_t set;
 
38701
int sig;
 
38702
sigwait(&set);
 
38703
  ;
 
38704
  return 0;
 
38705
}
 
38706
_ACEOF
 
38707
rm -f conftest.$ac_objext conftest$ac_exeext
 
38708
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38709
  (eval $ac_link) 2>conftest.er1
 
38710
  ac_status=$?
 
38711
  grep -v '^ *+' conftest.er1 >conftest.err
 
38712
  rm -f conftest.er1
 
38713
  cat conftest.err >&5
 
38714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38715
  (exit $ac_status); } &&
 
38716
         { ac_try='test -z "$ac_c_werror_flag"
 
38717
                         || test ! -s conftest.err'
 
38718
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38719
  (eval $ac_try) 2>&5
 
38720
  ac_status=$?
 
38721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38722
  (exit $ac_status); }; } &&
 
38723
         { ac_try='test -s conftest$ac_exeext'
 
38724
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38725
  (eval $ac_try) 2>&5
 
38726
  ac_status=$?
 
38727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38728
  (exit $ac_status); }; }; then
 
38729
  mysql_cv_sigwait=NONPOSIX
 
38730
else
 
38731
  echo "$as_me: failed program was:" >&5
 
38732
sed 's/^/| /' conftest.$ac_ext >&5
 
38733
 
 
38734
mysql_cv_sigwait=other
 
38735
fi
 
38736
rm -f conftest.err conftest.$ac_objext \
 
38737
      conftest$ac_exeext conftest.$ac_ext
 
38738
fi
 
38739
echo "$as_me:$LINENO: result: $mysql_cv_sigwait" >&5
 
38740
echo "${ECHO_T}$mysql_cv_sigwait" >&6
 
38741
if test "$mysql_cv_sigwait" = "NONPOSIX"
 
38742
then
 
38743
 
 
38744
cat >>confdefs.h <<\_ACEOF
 
38745
#define HAVE_NONPOSIX_SIGWAIT 1
 
38746
_ACEOF
 
38747
 
 
38748
fi
 
38749
fi
 
38750
#---END:
 
38751
 
 
38752
# Check if pthread_attr_setscope() exists
 
38753
echo "$as_me:$LINENO: checking \"for pthread_attr_setscope\"" >&5
 
38754
echo $ECHO_N "checking \"for pthread_attr_setscope\"... $ECHO_C" >&6
 
38755
if test "${mysql_cv_pthread_attr_setscope+set}" = set; then
 
38756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
38757
else
 
38758
  cat >conftest.$ac_ext <<_ACEOF
 
38759
/* confdefs.h.  */
 
38760
_ACEOF
 
38761
cat confdefs.h >>conftest.$ac_ext
 
38762
cat >>conftest.$ac_ext <<_ACEOF
 
38763
/* end confdefs.h.  */
 
38764
#if !defined(SCO) && !defined(__osf__)
 
38765
#define _REENTRANT
 
38766
#endif
 
38767
#define _POSIX_PTHREAD_SEMANTICS
 
38768
#include <pthread.h>
 
38769
int
 
38770
main ()
 
38771
{
 
38772
pthread_attr_t thr_attr;
 
38773
pthread_attr_setscope(&thr_attr,0);
 
38774
  ;
 
38775
  return 0;
 
38776
}
 
38777
_ACEOF
 
38778
rm -f conftest.$ac_objext conftest$ac_exeext
 
38779
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
38780
  (eval $ac_link) 2>conftest.er1
 
38781
  ac_status=$?
 
38782
  grep -v '^ *+' conftest.er1 >conftest.err
 
38783
  rm -f conftest.er1
 
38784
  cat conftest.err >&5
 
38785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38786
  (exit $ac_status); } &&
 
38787
         { ac_try='test -z "$ac_c_werror_flag"
 
38788
                         || test ! -s conftest.err'
 
38789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38790
  (eval $ac_try) 2>&5
 
38791
  ac_status=$?
 
38792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38793
  (exit $ac_status); }; } &&
 
38794
         { ac_try='test -s conftest$ac_exeext'
 
38795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38796
  (eval $ac_try) 2>&5
 
38797
  ac_status=$?
 
38798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38799
  (exit $ac_status); }; }; then
 
38800
  mysql_cv_pthread_attr_setscope=yes
 
38801
else
 
38802
  echo "$as_me: failed program was:" >&5
 
38803
sed 's/^/| /' conftest.$ac_ext >&5
 
38804
 
 
38805
mysql_cv_pthread_attr_setscope=no
 
38806
fi
 
38807
rm -f conftest.err conftest.$ac_objext \
 
38808
      conftest$ac_exeext conftest.$ac_ext
 
38809
fi
 
38810
echo "$as_me:$LINENO: result: $mysql_cv_pthread_attr_setscope" >&5
 
38811
echo "${ECHO_T}$mysql_cv_pthread_attr_setscope" >&6
 
38812
if test "$mysql_cv_pthread_attr_setscope" = "yes"
 
38813
then
 
38814
 
 
38815
cat >>confdefs.h <<\_ACEOF
 
38816
#define HAVE_PTHREAD_ATTR_SETSCOPE 1
 
38817
_ACEOF
 
38818
 
 
38819
fi
 
38820
 
 
38821
# Check for bad includes
 
38822
echo "$as_me:$LINENO: checking \"can netinet files be included\"" >&5
 
38823
echo $ECHO_N "checking \"can netinet files be included\"... $ECHO_C" >&6
 
38824
cat >conftest.$ac_ext <<_ACEOF
 
38825
/* confdefs.h.  */
 
38826
_ACEOF
 
38827
cat confdefs.h >>conftest.$ac_ext
 
38828
cat >>conftest.$ac_ext <<_ACEOF
 
38829
/* end confdefs.h.  */
 
38830
#include <sys/types.h>
 
38831
#include <sys/socket.h>
 
38832
#include <netinet/in_systm.h>
 
38833
#include <netinet/in.h>
 
38834
#include <netinet/ip.h>
 
38835
#include <netinet/tcp.h>
 
38836
int
 
38837
main ()
 
38838
{
 
38839
 printf("1\n");
 
38840
  ;
 
38841
  return 0;
 
38842
}
 
38843
_ACEOF
 
38844
rm -f conftest.$ac_objext
 
38845
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
38846
  (eval $ac_compile) 2>conftest.er1
 
38847
  ac_status=$?
 
38848
  grep -v '^ *+' conftest.er1 >conftest.err
 
38849
  rm -f conftest.er1
 
38850
  cat conftest.err >&5
 
38851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38852
  (exit $ac_status); } &&
 
38853
         { ac_try='test -z "$ac_c_werror_flag"
 
38854
                         || test ! -s conftest.err'
 
38855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38856
  (eval $ac_try) 2>&5
 
38857
  ac_status=$?
 
38858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38859
  (exit $ac_status); }; } &&
 
38860
         { ac_try='test -s conftest.$ac_objext'
 
38861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
38862
  (eval $ac_try) 2>&5
 
38863
  ac_status=$?
 
38864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
38865
  (exit $ac_status); }; }; then
 
38866
  netinet_inc=yes
 
38867
else
 
38868
  echo "$as_me: failed program was:" >&5
 
38869
sed 's/^/| /' conftest.$ac_ext >&5
 
38870
 
 
38871
netinet_inc=no
 
38872
fi
 
38873
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
38874
if test "$netinet_inc" = "no"
 
38875
then
 
38876
 
 
38877
cat >>confdefs.h <<\_ACEOF
 
38878
#define HAVE_BROKEN_NETINET_INCLUDES 1
 
38879
_ACEOF
 
38880
 
 
38881
fi
 
38882
echo "$as_me:$LINENO: result: \"$netinet_inc\"" >&5
 
38883
echo "${ECHO_T}\"$netinet_inc\"" >&6
 
38884
 
 
38885
# Only build client code?
 
38886
 
 
38887
# Check whether --with-server or --without-server was given.
 
38888
if test "${with_server+set}" = set; then
 
38889
  withval="$with_server"
 
38890
  with_server=$withval
 
38891
else
 
38892
  with_server=yes
 
38893
 
 
38894
fi;
 
38895
 
 
38896
 
 
38897
# Check whether --with-embedded-server or --without-embedded-server was given.
 
38898
if test "${with_embedded_server+set}" = set; then
 
38899
  withval="$with_embedded_server"
 
38900
  with_embedded_server=$withval
 
38901
else
 
38902
  with_embedded_server=no
 
38903
 
 
38904
fi;
 
38905
 
 
38906
 
 
38907
# Check whether --with-query_cache or --without-query_cache was given.
 
38908
if test "${with_query_cache+set}" = set; then
 
38909
  withval="$with_query_cache"
 
38910
  with_query_cache=$withval
 
38911
else
 
38912
  with_query_cache=yes
 
38913
 
 
38914
fi;
 
38915
 
 
38916
if test "$with_query_cache" = "yes"
 
38917
then
 
38918
 
 
38919
cat >>confdefs.h <<\_ACEOF
 
38920
#define HAVE_QUERY_CACHE 1
 
38921
_ACEOF
 
38922
 
 
38923
fi
 
38924
 
 
38925
 
 
38926
# Check whether --with-geometry or --without-geometry was given.
 
38927
if test "${with_geometry+set}" = set; then
 
38928
  withval="$with_geometry"
 
38929
  with_geometry=$withval
 
38930
else
 
38931
  with_geometry=yes
 
38932
 
 
38933
fi;
 
38934
 
 
38935
if test "$with_geometry" = "yes"
 
38936
then
 
38937
 
 
38938
cat >>confdefs.h <<\_ACEOF
 
38939
#define HAVE_SPATIAL 1
 
38940
_ACEOF
 
38941
 
 
38942
 
 
38943
cat >>confdefs.h <<\_ACEOF
 
38944
#define HAVE_RTREE_KEYS 1
 
38945
_ACEOF
 
38946
 
 
38947
fi
 
38948
 
 
38949
 
 
38950
# Check whether --with-embedded_privilege_control or --without-embedded_privilege_control was given.
 
38951
if test "${with_embedded_privilege_control+set}" = set; then
 
38952
  withval="$with_embedded_privilege_control"
 
38953
  with_embedded_privilege_control=$withval
 
38954
else
 
38955
  with_embedded_privilege_control=no
 
38956
 
 
38957
fi;
 
38958
 
 
38959
if test "$with_embedded_privilege_control" = "yes"
 
38960
then
 
38961
 
 
38962
cat >>confdefs.h <<\_ACEOF
 
38963
#define HAVE_EMBEDDED_PRIVILEGE_CONTROL 1
 
38964
_ACEOF
 
38965
 
 
38966
fi
 
38967
 
 
38968
 
 
38969
# Check whether --with-extra-tools or --without-extra-tools was given.
 
38970
if test "${with_extra_tools+set}" = set; then
 
38971
  withval="$with_extra_tools"
 
38972
  with_tools=$withval
 
38973
else
 
38974
  with_tools=yes
 
38975
 
 
38976
fi;
 
38977
 
 
38978
tools_dirs=""
 
38979
if test "$with_tools" = "yes"
 
38980
then
 
38981
  if test "$THREAD_SAFE_CLIENT" = "no"
 
38982
  then
 
38983
    { echo "$as_me:$LINENO: WARNING: extra-tools disabled because --enable-thread-safe-client wasn't used" >&5
 
38984
echo "$as_me: WARNING: extra-tools disabled because --enable-thread-safe-client wasn't used" >&2;}
 
38985
  else
 
38986
    tools_dirs="tools"
 
38987
              ac_config_files="$ac_config_files tools/Makefile"
 
38988
 
 
38989
  fi
 
38990
fi
 
38991
 
 
38992
 
 
38993
# Check whether --with-mysqlmanager or --without-mysqlmanager was given.
 
38994
if test "${with_mysqlmanager+set}" = set; then
 
38995
  withval="$with_mysqlmanager"
 
38996
  if test "x${withval}" != "xno"; then
 
38997
    tools_dirs="$tools_dirs server-tools"
 
38998
   fi
 
38999
else
 
39000
  if test "x${with_server}" = "xyes"; then
 
39001
     tools_dirs="$tools_dirs server-tools"
 
39002
   fi
 
39003
 
 
39004
fi;
 
39005
 
 
39006
 
 
39007
 
 
39008
#MYSQL_CHECK_CPU
 
39009
 
 
39010
 
 
39011
cat >>confdefs.h <<\_ACEOF
 
39012
#define HAVE_VIO_READ_BUFF 1
 
39013
_ACEOF
 
39014
 
 
39015
 
 
39016
 
 
39017
echo "$as_me:$LINENO: checking for OpenSSL" >&5
 
39018
echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
 
39019
 
 
39020
# Check whether --with-openssl or --without-openssl was given.
 
39021
if test "${with_openssl+set}" = set; then
 
39022
  withval="$with_openssl"
 
39023
  openssl="$withval"
 
39024
else
 
39025
  openssl=no
 
39026
fi;
 
39027
 
 
39028
 
 
39029
# Check whether --with-openssl-includes or --without-openssl-includes was given.
 
39030
if test "${with_openssl_includes+set}" = set; then
 
39031
  withval="$with_openssl_includes"
 
39032
  openssl_includes="$withval"
 
39033
else
 
39034
  openssl_includes=""
 
39035
fi;
 
39036
 
 
39037
 
 
39038
# Check whether --with-openssl-libs or --without-openssl-libs was given.
 
39039
if test "${with_openssl_libs+set}" = set; then
 
39040
  withval="$with_openssl_libs"
 
39041
  openssl_libs="$withval"
 
39042
else
 
39043
  openssl_libs=""
 
39044
fi;
 
39045
 
 
39046
  if test "$openssl" != "no"
 
39047
  then
 
39048
        if test "$openssl" != "yes"
 
39049
        then
 
39050
                if test -z "$openssl_includes"
 
39051
                then
 
39052
                        openssl_includes="$openssl/include"
 
39053
                fi
 
39054
                if test -z "$openssl_libs"
 
39055
                then
 
39056
                        openssl_libs="$openssl/lib"
 
39057
                fi
 
39058
        fi
 
39059
 
 
39060
  incs="$openssl_includes"
 
39061
  libs="$openssl_libs"
 
39062
  eval shrexts=\"$shrext_cmds\"
 
39063
  case "$incs---$libs" in
 
39064
    ---)
 
39065
      for d in /usr/ssl/include /usr/local/ssl/include /usr/include \
 
39066
/usr/include/ssl /opt/ssl/include /opt/openssl/include \
 
39067
/usr/local/ssl/include /usr/local/include /usr/freeware/include ; do
 
39068
       if test -f $d/openssl/ssl.h  ; then
 
39069
         OPENSSL_INCLUDE=-I$d
 
39070
       fi
 
39071
      done
 
39072
 
 
39073
      for d in /usr/ssl/lib /usr/local/ssl/lib /usr/lib/openssl \
 
39074
/usr/lib /usr/lib64 /opt/ssl/lib /opt/openssl/lib \
 
39075
/usr/freeware/lib32 /usr/local/lib/ ; do
 
39076
      # Test for libssl using all known library file endings
 
39077
      if test -f $d/libssl.a || test -f $d/libssl.so || \
 
39078
         test -f $d/libssl.sl || test -f $d/libssl.dylib ; then
 
39079
        OPENSSL_LIB=$d
 
39080
      fi
 
39081
      done
 
39082
      ;;
 
39083
    ---* | *---)
 
39084
      { { echo "$as_me:$LINENO: error: if either 'includes' or 'libs' is specified, both must be specified" >&5
 
39085
echo "$as_me: error: if either 'includes' or 'libs' is specified, both must be specified" >&2;}
 
39086
   { (exit 1); exit 1; }; }
 
39087
      ;;
 
39088
    * )
 
39089
      if test -f $incs/openssl/ssl.h  ; then
 
39090
        OPENSSL_INCLUDE=-I$incs
 
39091
      fi
 
39092
      # Test for libssl using all known library file endings
 
39093
      if test -f $libs/libssl.a || test -f $libs/libssl.so || \
 
39094
         test -f $libs/libssl.sl || test -f $libs/libssl.dylib ; then
 
39095
        OPENSSL_LIB=$libs
 
39096
      fi
 
39097
      ;;
 
39098
  esac
 
39099
 
 
39100
  # On RedHat 9 we need kerberos to compile openssl
 
39101
  for d in /usr/kerberos/include
 
39102
  do
 
39103
   if test -f $d/krb5.h  ; then
 
39104
     OPENSSL_KERBEROS_INCLUDE="$d"
 
39105
   fi
 
39106
  done
 
39107
 
 
39108
 
 
39109
 if test -z "$OPENSSL_LIB" -o -z "$OPENSSL_INCLUDE" ; then
 
39110
   echo "Could not find an installation of OpenSSL"
 
39111
   if test -n "$OPENSSL_LIB" ; then
 
39112
    if test "$TARGET_LINUX" = "true"; then
 
39113
      echo "Looks like you've forgotten to install OpenSSL development RPM"
 
39114
    fi
 
39115
   fi
 
39116
  exit 1
 
39117
 fi
 
39118
 
 
39119
 
 
39120
    #force VIO use
 
39121
    echo "$as_me:$LINENO: result: yes" >&5
 
39122
echo "${ECHO_T}yes" >&6
 
39123
    openssl_libs="-L$OPENSSL_LIB -lssl -lcrypto"
 
39124
    # Don't set openssl_includes to /usr/include as this gives us a lot of
 
39125
    # compiler warnings when using gcc 3.x
 
39126
    openssl_includes=""
 
39127
    if test "$OPENSSL_INCLUDE" != "-I/usr/include"
 
39128
    then
 
39129
        openssl_includes="$OPENSSL_INCLUDE"
 
39130
    fi
 
39131
    if test "$OPENSSL_KERBEROS_INCLUDE"
 
39132
    then
 
39133
        openssl_includes="$openssl_includes -I$OPENSSL_KERBEROS_INCLUDE"
 
39134
    fi
 
39135
 
 
39136
cat >>confdefs.h <<\_ACEOF
 
39137
#define HAVE_OPENSSL 1
 
39138
_ACEOF
 
39139
 
 
39140
 
 
39141
    # openssl-devel-0.9.6 requires dlopen() and we can't link staticly
 
39142
    # on many platforms (We should actually test this here, but it's quite
 
39143
    # hard) to do as we are doing libtool for linking.
 
39144
    using_static=""
 
39145
    case "$CLIENT_EXTRA_LDFLAGS $MYSQLD_EXTRA_LDFLAGS" in
 
39146
        *-all-static*) using_static="yes" ;;
 
39147
    esac
 
39148
    if test "$using_static" = "yes"
 
39149
    then
 
39150
      echo "You can't use the --all-static link option when using openssl."
 
39151
      exit 1
 
39152
    fi
 
39153
    NON_THREADED_CLIENT_LIBS="$NON_THREADED_CLIENT_LIBS $openssl_libs"
 
39154
  else
 
39155
    echo "$as_me:$LINENO: result: no" >&5
 
39156
echo "${ECHO_T}no" >&6
 
39157
        if test ! -z "$openssl_includes"
 
39158
        then
 
39159
                { { echo "$as_me:$LINENO: error: Can't have --with-openssl-includes without --with-openssl" >&5
 
39160
echo "$as_me: error: Can't have --with-openssl-includes without --with-openssl" >&2;}
 
39161
   { (exit 1); exit 1; }; };
 
39162
        fi
 
39163
        if test ! -z "$openssl_libs"
 
39164
        then
 
39165
                { { echo "$as_me:$LINENO: error: Can't have --with-openssl-libs without --with-openssl" >&5
 
39166
echo "$as_me: error: Can't have --with-openssl-libs without --with-openssl" >&2;}
 
39167
   { (exit 1); exit 1; }; };
 
39168
        fi
 
39169
  fi
 
39170
 
 
39171
 
 
39172
 
 
39173
 
 
39174
  echo "$as_me:$LINENO: checking for yaSSL" >&5
 
39175
echo $ECHO_N "checking for yaSSL... $ECHO_C" >&6
 
39176
 
 
39177
# Check whether --with-yassl or --without-yassl was given.
 
39178
if test "${with_yassl+set}" = set; then
 
39179
  withval="$with_yassl"
 
39180
 
 
39181
fi;
 
39182
 
 
39183
  if test "$with_yassl" = "yes"
 
39184
  then
 
39185
    if test "$openssl" != "no"
 
39186
    then
 
39187
      { { echo "$as_me:$LINENO: error: Cannot configure MySQL to use yaSSL and OpenSSL simultaneously." >&5
 
39188
echo "$as_me: error: Cannot configure MySQL to use yaSSL and OpenSSL simultaneously." >&2;}
 
39189
   { (exit 1); exit 1; }; }
 
39190
    fi
 
39191
    echo "$as_me:$LINENO: result: using bundled yaSSL" >&5
 
39192
echo "${ECHO_T}using bundled yaSSL" >&6
 
39193
    yassl_dir="extra/yassl"
 
39194
    yassl_libs="\$(top_builddir)/extra/yassl/src/libyassl.la \
 
39195
                \$(top_builddir)/extra/yassl/taocrypt/src/libtaocrypt.la"
 
39196
 
 
39197
cat >>confdefs.h <<\_ACEOF
 
39198
#define HAVE_OPENSSL 1
 
39199
_ACEOF
 
39200
 
 
39201
 
 
39202
cat >>confdefs.h <<\_ACEOF
 
39203
#define HAVE_YASSL 1
 
39204
_ACEOF
 
39205
 
 
39206
    # System specific checks
 
39207
    yassl_integer_extra_cxxflags=""
 
39208
    case $host_cpu--$CXX_VERSION in
 
39209
        sparc*--*Sun*C++*5.6*)
 
39210
        # Disable inlining when compiling taocrypt/src/
 
39211
        yassl_taocrypt_extra_cxxflags="+d"
 
39212
        { echo "$as_me:$LINENO: disabling inlining for yassl/taocrypt/src/" >&5
 
39213
echo "$as_me: disabling inlining for yassl/taocrypt/src/" >&6;}
 
39214
        ;;
 
39215
    esac
 
39216
 
 
39217
    # Link extra/yassl/include/openssl subdir to include/
 
39218
    yassl_h_ln_cmd="\$(LN) -s \$(top_srcdir)/extra/yassl/include/openssl openssl"
 
39219
 
 
39220
  else
 
39221
    yassl_dir=""
 
39222
    echo "$as_me:$LINENO: result: no" >&5
 
39223
echo "${ECHO_T}no" >&6
 
39224
  fi
 
39225
 
 
39226
 
 
39227
 
 
39228
 
 
39229
if  test "$with_yassl" = "yes" ; then
 
39230
  HAVE_YASSL_TRUE=
 
39231
  HAVE_YASSL_FALSE='#'
 
39232
else
 
39233
  HAVE_YASSL_TRUE='#'
 
39234
  HAVE_YASSL_FALSE=
 
39235
fi
 
39236
 
 
39237
 
 
39238
 
 
39239
libmysqld_dirs=
 
39240
linked_libmysqld_targets=
 
39241
if test "$with_embedded_server" = "yes"
 
39242
then
 
39243
  libmysqld_dirs=libmysqld
 
39244
  linked_libmysqld_targets="linked_libmysqld_sources linked_libmysqldex_sources"
 
39245
                      ac_config_files="$ac_config_files libmysqld/Makefile libmysqld/examples/Makefile"
 
39246
 
 
39247
  # We can't build embedded library without building the server, because
 
39248
  # we depend on libmysys, libmystrings, libmyisam, etc.
 
39249
  with_server=yes
 
39250
fi
 
39251
# XXX: We need to add @libmysqld_extra_libs@ (or whatever) so that
 
39252
# mysql_config --libmysqld-libs will print out something like
 
39253
# -L/path/to/lib/mysql -lmysqld -lmyisam -lmysys -lmystrings -ldbug ...
 
39254
 
 
39255
 
 
39256
 
 
39257
# Shall we build the docs?
 
39258
 
 
39259
# Check whether --with-docs or --without-docs was given.
 
39260
if test "${with_docs+set}" = set; then
 
39261
  withval="$with_docs"
 
39262
  with_docs=$withval
 
39263
else
 
39264
  with_docs=yes
 
39265
 
 
39266
fi;
 
39267
 
 
39268
if test "$with_docs" = "yes"
 
39269
then
 
39270
  docs_dirs="Docs"
 
39271
else
 
39272
  docs_dirs=""
 
39273
fi
 
39274
 
 
39275
 
 
39276
# Shall we build the man pages?
 
39277
 
 
39278
# Check whether --with-man or --without-man was given.
 
39279
if test "${with_man+set}" = set; then
 
39280
  withval="$with_man"
 
39281
  with_man=$withval
 
39282
else
 
39283
  with_man=yes
 
39284
 
 
39285
fi;
 
39286
 
 
39287
if test "$with_man" = "yes"
 
39288
then
 
39289
  man_dirs="man"
 
39290
  man1_files=`ls -1 $srcdir/man/*.1 | sed -e 's;^.*man/;;'`
 
39291
  man1_files=`echo $man1_files`
 
39292
  man8_files=`ls -1 $srcdir/man/*.8 | sed -e 's;^.*man/;;'`
 
39293
  man8_files=`echo $man8_files`
 
39294
else
 
39295
  man_dirs=""
 
39296
  man1_files=""
 
39297
  man8_files=""
 
39298
fi
 
39299
 
 
39300
 
 
39301
 
 
39302
 
 
39303
# Shall we build the bench code?
 
39304
 
 
39305
# Check whether --with-bench or --without-bench was given.
 
39306
if test "${with_bench+set}" = set; then
 
39307
  withval="$with_bench"
 
39308
  with_bench=$withval
 
39309
else
 
39310
  with_bench=yes
 
39311
 
 
39312
fi;
 
39313
 
 
39314
if test "$with_bench" = "yes"
 
39315
then
 
39316
  bench_dirs="sql-bench"
 
39317
else
 
39318
  bench_dirs=""
 
39319
fi
 
39320
bench_dirs="$bench_dirs mysql-test"
 
39321
 
 
39322
 
 
39323
# Don't build readline, i have it already
 
39324
 
 
39325
# Check whether --with-readline or --without-readline was given.
 
39326
if test "${with_readline+set}" = set; then
 
39327
  withval="$with_readline"
 
39328
   with_readline=$withval
 
39329
else
 
39330
   with_readline=undefined
 
39331
 
 
39332
fi;
 
39333
 
 
39334
 
 
39335
# Check whether --with-libedit or --without-libedit was given.
 
39336
if test "${with_libedit+set}" = set; then
 
39337
  withval="$with_libedit"
 
39338
   with_libedit=$withval
 
39339
else
 
39340
   with_libedit=undefined
 
39341
 
 
39342
fi;
 
39343
 
 
39344
#
 
39345
# We support next variants of compilation:
 
39346
#                              --with-readline
 
39347
#                |       yes      |  no  |               undefined
 
39348
# --with-libedit |                |      |
 
39349
# ---------------+----------------+------+----------------------------------
 
39350
#       yes      |      ERROR!    |   use libedit from mysql sources
 
39351
# ---------------+----------------+------+----------------------------------
 
39352
#       no       | use readline   | use system readline or external libedit
 
39353
#                | from mysql     | according to results of m4 tests
 
39354
# ---------------+ sources (if it +      +----------------------------------
 
39355
#    undefined   | is presented)  |      | use libedit from mysql sources
 
39356
 
 
39357
 
 
39358
compile_readline="no"
 
39359
compile_libedit="no"
 
39360
 
 
39361
if test "$with_libedit" = "yes" && test "$with_readline" = "yes"
 
39362
then
 
39363
    { { echo "$as_me:$LINENO: error: You can not use --with-readline and --with-libedit at the same time, please choose one of it" >&5
 
39364
echo "$as_me: error: You can not use --with-readline and --with-libedit at the same time, please choose one of it" >&2;}
 
39365
   { (exit 1); exit 1; }; }
 
39366
fi
 
39367
 
 
39368
readline_topdir=""
 
39369
readline_basedir=""
 
39370
readline_dir=""
 
39371
readline_h_ln_cmd=""
 
39372
readline_link=""
 
39373
 
 
39374
if expr "$SYSTEM_TYPE" : ".*netware.*" > /dev/null; then
 
39375
    # For NetWare, do not need readline
 
39376
    echo "Skipping readline"
 
39377
else
 
39378
 
 
39379
if test "$with_libedit" = "yes" || test "$with_libedit" = "undefined" && test "$with_readline" = "undefined"
 
39380
then
 
39381
    readline_topdir="cmd-line-utils"
 
39382
    readline_basedir="libedit"
 
39383
    readline_dir="$readline_topdir/$readline_basedir"
 
39384
    readline_link="\$(top_builddir)/cmd-line-utils/libedit/libedit.a"
 
39385
    readline_h_ln_cmd="\$(LN) -s \$(top_srcdir)/cmd-line-utils/libedit/readline readline"
 
39386
    compile_libedit=yes
 
39387
    cat >>confdefs.h <<_ACEOF
 
39388
#define HAVE_HIST_ENTRY 1
 
39389
_ACEOF
 
39390
 
 
39391
    cat >>confdefs.h <<_ACEOF
 
39392
#define USE_LIBEDIT_INTERFACE 1
 
39393
_ACEOF
 
39394
 
 
39395
elif test "$with_readline" = "yes"
 
39396
then
 
39397
    readline_topdir="cmd-line-utils"
 
39398
    readline_basedir="readline"
 
39399
    readline_dir="$readline_topdir/$readline_basedir"
 
39400
    readline_link="\$(top_builddir)/cmd-line-utils/readline/libreadline.a"
 
39401
    readline_h_ln_cmd="\$(LN) -s \$(top_srcdir)/cmd-line-utils/readline readline"
 
39402
    compile_readline=yes
 
39403
    cat >>confdefs.h <<_ACEOF
 
39404
#define USE_NEW_READLINE_INTERFACE 1
 
39405
_ACEOF
 
39406
 
 
39407
else
 
39408
    # Use system readline library
 
39409
 
 
39410
 
 
39411
    ac_ext=cc
 
39412
ac_cpp='$CXXCPP $CPPFLAGS'
 
39413
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
39414
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
39415
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
39416
 
 
39417
 
 
39418
    echo "$as_me:$LINENO: checking libedit variant of rl_completion_entry_function" >&5
 
39419
echo $ECHO_N "checking libedit variant of rl_completion_entry_function... $ECHO_C" >&6
 
39420
if test "${mysql_cv_libedit_interface+set}" = set; then
 
39421
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39422
else
 
39423
  cat >conftest.$ac_ext <<_ACEOF
 
39424
/* confdefs.h.  */
 
39425
_ACEOF
 
39426
cat confdefs.h >>conftest.$ac_ext
 
39427
cat >>conftest.$ac_ext <<_ACEOF
 
39428
/* end confdefs.h.  */
 
39429
 
 
39430
                #include "stdio.h"
 
39431
                #include "readline/readline.h"
 
39432
 
 
39433
int
 
39434
main ()
 
39435
{
 
39436
 
 
39437
                char res= *(*rl_completion_entry_function)(0,0);
 
39438
                completion_matches(0,0);
 
39439
 
 
39440
  ;
 
39441
  return 0;
 
39442
}
 
39443
_ACEOF
 
39444
rm -f conftest.$ac_objext
 
39445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
39446
  (eval $ac_compile) 2>conftest.er1
 
39447
  ac_status=$?
 
39448
  grep -v '^ *+' conftest.er1 >conftest.err
 
39449
  rm -f conftest.er1
 
39450
  cat conftest.err >&5
 
39451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39452
  (exit $ac_status); } &&
 
39453
         { ac_try='test -z "$ac_cxx_werror_flag"
 
39454
                         || test ! -s conftest.err'
 
39455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
39456
  (eval $ac_try) 2>&5
 
39457
  ac_status=$?
 
39458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39459
  (exit $ac_status); }; } &&
 
39460
         { ac_try='test -s conftest.$ac_objext'
 
39461
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
39462
  (eval $ac_try) 2>&5
 
39463
  ac_status=$?
 
39464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39465
  (exit $ac_status); }; }; then
 
39466
 
 
39467
                mysql_cv_libedit_interface=yes
 
39468
 
 
39469
cat >>confdefs.h <<_ACEOF
 
39470
#define USE_LIBEDIT_INTERFACE 1
 
39471
_ACEOF
 
39472
 
 
39473
 
 
39474
else
 
39475
  echo "$as_me: failed program was:" >&5
 
39476
sed 's/^/| /' conftest.$ac_ext >&5
 
39477
 
 
39478
mysql_cv_libedit_interface=no
 
39479
 
 
39480
fi
 
39481
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
39482
 
 
39483
fi
 
39484
echo "$as_me:$LINENO: result: $mysql_cv_libedit_interface" >&5
 
39485
echo "${ECHO_T}$mysql_cv_libedit_interface" >&6
 
39486
 
 
39487
 
 
39488
    echo "$as_me:$LINENO: checking defined rl_compentry_func_t and rl_completion_func_t" >&5
 
39489
echo $ECHO_N "checking defined rl_compentry_func_t and rl_completion_func_t... $ECHO_C" >&6
 
39490
if test "${mysql_cv_new_rl_interface+set}" = set; then
 
39491
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39492
else
 
39493
  cat >conftest.$ac_ext <<_ACEOF
 
39494
/* confdefs.h.  */
 
39495
_ACEOF
 
39496
cat confdefs.h >>conftest.$ac_ext
 
39497
cat >>conftest.$ac_ext <<_ACEOF
 
39498
/* end confdefs.h.  */
 
39499
 
 
39500
                #include "stdio.h"
 
39501
                #include "readline/readline.h"
 
39502
 
 
39503
int
 
39504
main ()
 
39505
{
 
39506
 
 
39507
                rl_completion_func_t *func1= (rl_completion_func_t*)0;
 
39508
                rl_compentry_func_t *func2= (rl_compentry_func_t*)0;
 
39509
 
 
39510
  ;
 
39511
  return 0;
 
39512
}
 
39513
_ACEOF
 
39514
rm -f conftest.$ac_objext
 
39515
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
39516
  (eval $ac_compile) 2>conftest.er1
 
39517
  ac_status=$?
 
39518
  grep -v '^ *+' conftest.er1 >conftest.err
 
39519
  rm -f conftest.er1
 
39520
  cat conftest.err >&5
 
39521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39522
  (exit $ac_status); } &&
 
39523
         { ac_try='test -z "$ac_cxx_werror_flag"
 
39524
                         || test ! -s conftest.err'
 
39525
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
39526
  (eval $ac_try) 2>&5
 
39527
  ac_status=$?
 
39528
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39529
  (exit $ac_status); }; } &&
 
39530
         { ac_try='test -s conftest.$ac_objext'
 
39531
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
39532
  (eval $ac_try) 2>&5
 
39533
  ac_status=$?
 
39534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39535
  (exit $ac_status); }; }; then
 
39536
 
 
39537
                mysql_cv_new_rl_interface=yes
 
39538
 
 
39539
cat >>confdefs.h <<_ACEOF
 
39540
#define USE_NEW_READLINE_INTERFACE 1
 
39541
_ACEOF
 
39542
 
 
39543
 
 
39544
else
 
39545
  echo "$as_me: failed program was:" >&5
 
39546
sed 's/^/| /' conftest.$ac_ext >&5
 
39547
 
 
39548
mysql_cv_new_rl_interface=no
 
39549
 
 
39550
fi
 
39551
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
39552
 
 
39553
fi
 
39554
echo "$as_me:$LINENO: result: $mysql_cv_new_rl_interface" >&5
 
39555
echo "${ECHO_T}$mysql_cv_new_rl_interface" >&6
 
39556
 
 
39557
 
 
39558
    echo "$as_me:$LINENO: checking HIST_ENTRY is declared in readline/readline.h" >&5
 
39559
echo $ECHO_N "checking HIST_ENTRY is declared in readline/readline.h... $ECHO_C" >&6
 
39560
if test "${mysql_cv_hist_entry_declared+set}" = set; then
 
39561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39562
else
 
39563
  cat >conftest.$ac_ext <<_ACEOF
 
39564
/* confdefs.h.  */
 
39565
_ACEOF
 
39566
cat confdefs.h >>conftest.$ac_ext
 
39567
cat >>conftest.$ac_ext <<_ACEOF
 
39568
/* end confdefs.h.  */
 
39569
 
 
39570
                #include "stdio.h"
 
39571
                #include "readline/readline.h"
 
39572
 
 
39573
int
 
39574
main ()
 
39575
{
 
39576
 
 
39577
                HIST_ENTRY entry;
 
39578
 
 
39579
  ;
 
39580
  return 0;
 
39581
}
 
39582
_ACEOF
 
39583
rm -f conftest.$ac_objext
 
39584
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
39585
  (eval $ac_compile) 2>conftest.er1
 
39586
  ac_status=$?
 
39587
  grep -v '^ *+' conftest.er1 >conftest.err
 
39588
  rm -f conftest.er1
 
39589
  cat conftest.err >&5
 
39590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39591
  (exit $ac_status); } &&
 
39592
         { ac_try='test -z "$ac_cxx_werror_flag"
 
39593
                         || test ! -s conftest.err'
 
39594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
39595
  (eval $ac_try) 2>&5
 
39596
  ac_status=$?
 
39597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39598
  (exit $ac_status); }; } &&
 
39599
         { ac_try='test -s conftest.$ac_objext'
 
39600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
39601
  (eval $ac_try) 2>&5
 
39602
  ac_status=$?
 
39603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39604
  (exit $ac_status); }; }; then
 
39605
 
 
39606
                mysql_cv_hist_entry_declared=yes
 
39607
 
 
39608
cat >>confdefs.h <<_ACEOF
 
39609
#define HAVE_HIST_ENTRY 1
 
39610
_ACEOF
 
39611
 
 
39612
 
 
39613
else
 
39614
  echo "$as_me: failed program was:" >&5
 
39615
sed 's/^/| /' conftest.$ac_ext >&5
 
39616
 
 
39617
mysql_cv_libedit_interface=no
 
39618
 
 
39619
fi
 
39620
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
39621
 
 
39622
fi
 
39623
echo "$as_me:$LINENO: result: $mysql_cv_hist_entry_declared" >&5
 
39624
echo "${ECHO_T}$mysql_cv_hist_entry_declared" >&6
 
39625
 
 
39626
    ac_ext=c
 
39627
ac_cpp='$CPP $CPPFLAGS'
 
39628
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
39629
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
39630
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
39631
 
 
39632
    if test "$mysql_cv_new_rl_interface" = "yes"
 
39633
    then
 
39634
        # Use the new readline interface
 
39635
        readline_link="-lreadline"
 
39636
    elif test "$mysql_cv_libedit_interface" = "yes"; then
 
39637
        # Use libedit
 
39638
        readline_link="-ledit"
 
39639
    else
 
39640
       { { echo "$as_me:$LINENO: error: Could not find system readline or libedit libraries
 
39641
          Use --with-readline or --with-libedit to use the bundled
 
39642
          versions of libedit or readline" >&5
 
39643
echo "$as_me: error: Could not find system readline or libedit libraries
 
39644
          Use --with-readline or --with-libedit to use the bundled
 
39645
          versions of libedit or readline" >&2;}
 
39646
   { (exit 1); exit 1; }; }
 
39647
    fi
 
39648
fi
 
39649
fi
 
39650
 
 
39651
 
 
39652
 
 
39653
 
 
39654
 
 
39655
 
 
39656
 
 
39657
 
 
39658
 
 
39659
# Check whether --with-big-tables or --without-big-tables was given.
 
39660
if test "${with_big_tables+set}" = set; then
 
39661
  withval="$with_big_tables"
 
39662
  bigtables="$withval"
 
39663
else
 
39664
  bigtables=no
 
39665
fi;
 
39666
  echo "$as_me:$LINENO: checking for big tables support" >&5
 
39667
echo $ECHO_N "checking for big tables support... $ECHO_C" >&6
 
39668
 
 
39669
  case "$bigtables" in
 
39670
    yes )
 
39671
 
 
39672
cat >>confdefs.h <<\_ACEOF
 
39673
#define BIG_TABLES 1
 
39674
_ACEOF
 
39675
 
 
39676
      echo "$as_me:$LINENO: result: yes" >&5
 
39677
echo "${ECHO_T}yes" >&6
 
39678
      ;;
 
39679
    * )
 
39680
      echo "$as_me:$LINENO: result: no" >&5
 
39681
echo "${ECHO_T}no" >&6
 
39682
      ;;
 
39683
  esac
 
39684
 
 
39685
 
 
39686
 
 
39687
 
 
39688
# Check whether --with-max-indexes or --without-max-indexes was given.
 
39689
if test "${with_max_indexes+set}" = set; then
 
39690
  withval="$with_max_indexes"
 
39691
  max_indexes="$withval"
 
39692
else
 
39693
  max_indexes=64
 
39694
fi;
 
39695
  echo "$as_me:$LINENO: checking max indexes per table" >&5
 
39696
echo $ECHO_N "checking max indexes per table... $ECHO_C" >&6
 
39697
 
 
39698
cat >>confdefs.h <<_ACEOF
 
39699
#define MAX_INDEXES $max_indexes
 
39700
_ACEOF
 
39701
 
 
39702
  echo "$as_me:$LINENO: result: $max_indexes" >&5
 
39703
echo "${ECHO_T}$max_indexes" >&6
 
39704
 
 
39705
 
 
39706
 
 
39707
# Check whether --with-berkeley-db or --without-berkeley-db was given.
 
39708
if test "${with_berkeley_db+set}" = set; then
 
39709
  withval="$with_berkeley_db"
 
39710
  bdb="$withval"
 
39711
else
 
39712
  bdb=no
 
39713
fi;
 
39714
 
 
39715
 
 
39716
# Check whether --with-berkeley-db-includes or --without-berkeley-db-includes was given.
 
39717
if test "${with_berkeley_db_includes+set}" = set; then
 
39718
  withval="$with_berkeley_db_includes"
 
39719
  bdb_includes="$withval"
 
39720
else
 
39721
  bdb_includes=default
 
39722
fi;
 
39723
 
 
39724
 
 
39725
# Check whether --with-berkeley-db-libs or --without-berkeley-db-libs was given.
 
39726
if test "${with_berkeley_db_libs+set}" = set; then
 
39727
  withval="$with_berkeley_db_libs"
 
39728
  bdb_libs="$withval"
 
39729
else
 
39730
  bdb_libs=default
 
39731
fi;
 
39732
 
 
39733
  echo "$as_me:$LINENO: checking for BerkeleyDB" >&5
 
39734
echo $ECHO_N "checking for BerkeleyDB... $ECHO_C" >&6
 
39735
 
 
39736
  have_berkeley_db=no
 
39737
  case "$bdb" in
 
39738
    no )
 
39739
      mode=no
 
39740
      echo "$as_me:$LINENO: result: no" >&5
 
39741
echo "${ECHO_T}no" >&6
 
39742
      ;;
 
39743
    yes | default )
 
39744
      case "$bdb_includes---$bdb_libs" in
 
39745
        default---default )
 
39746
          mode=search-$bdb
 
39747
          echo "$as_me:$LINENO: result: searching..." >&5
 
39748
echo "${ECHO_T}searching..." >&6
 
39749
          ;;
 
39750
        default---* | *---default | yes---* | *---yes )
 
39751
          { { echo "$as_me:$LINENO: error: if either 'includes' or 'libs' is specified, both must be specified" >&5
 
39752
echo "$as_me: error: if either 'includes' or 'libs' is specified, both must be specified" >&2;}
 
39753
   { (exit 1); exit 1; }; }
 
39754
          ;;
 
39755
        * )
 
39756
          mode=supplied-two
 
39757
          echo "$as_me:$LINENO: result: supplied" >&5
 
39758
echo "${ECHO_T}supplied" >&6
 
39759
          ;;
 
39760
      esac
 
39761
      ;;
 
39762
    * )
 
39763
      mode=supplied-one
 
39764
      echo "$as_me:$LINENO: result: supplied" >&5
 
39765
echo "${ECHO_T}supplied" >&6
 
39766
      ;;
 
39767
  esac
 
39768
 
 
39769
 
 
39770
  case $mode in
 
39771
    no )
 
39772
      bdb_includes=
 
39773
      bdb_libs=
 
39774
      bdb_libs_with_path=
 
39775
      ;;
 
39776
    supplied-two )
 
39777
 
 
39778
  inc="$bdb_includes"
 
39779
  lib="$bdb_libs"
 
39780
  if test -f "$inc/db.h"
 
39781
  then
 
39782
 
 
39783
  db_major=`sed -e '/^.*#define[        ]*DB_VERSION_MAJOR[     ][      ]*/ !d' -e 's///' $inc/db.h`
 
39784
  db_minor=`sed -e '/^.*#define[        ]*DB_VERSION_MINOR[     ][      ]*/ !d' -e 's///' $inc/db.h`
 
39785
  db_patch=`sed -e '/^.*#define[        ]*DB_VERSION_PATCH[     ][      ]*/ !d' -e 's///' $inc/db.h`
 
39786
  test -z "$db_major" && db_major=0
 
39787
  test -z "$db_minor" && db_minor=0
 
39788
  test -z "$db_patch" && db_patch=0
 
39789
 
 
39790
  # This is ugly, but about as good as it can get
 
39791
#  mysql_bdb=
 
39792
#  if test $db_major -eq 3 && test $db_minor -eq 2 && test $db_patch -eq 3
 
39793
#  then
 
39794
#    mysql_bdb=h
 
39795
#  elif test $db_major -eq 3 && test $db_minor -eq 2 && test $db_patch -eq 9
 
39796
#  then
 
39797
#    want_bdb_version="3.2.9a"  # hopefully this will stay up-to-date
 
39798
#    mysql_bdb=a
 
39799
#  fi
 
39800
 
 
39801
want_bdb_version="4.1.24"
 
39802
bdb_version_ok=yes
 
39803
 
 
39804
#  if test -n "$mysql_bdb" && \
 
39805
#       grep "DB_VERSION_STRING.*:.*$mysql_bdb: " [$inc/db.h] > /dev/null
 
39806
#  then
 
39807
#    bdb_version_ok=yes
 
39808
#  else
 
39809
#    bdb_version_ok="invalid version $db_major.$db_minor.$db_patch"
 
39810
#    bdb_version_ok="$bdb_version_ok (must be version 3.2.3h or $want_bdb_version)"
 
39811
#  fi
 
39812
 
 
39813
 
 
39814
    if test X"$bdb_version_ok" = Xyes; then
 
39815
      save_LDFLAGS="$LDFLAGS"
 
39816
      LDFLAGS="-L$lib $LDFLAGS"
 
39817
      echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
 
39818
echo $ECHO_N "checking for db_env_create in -ldb... $ECHO_C" >&6
 
39819
if test "${ac_cv_lib_db_db_env_create+set}" = set; then
 
39820
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39821
else
 
39822
  ac_check_lib_save_LIBS=$LIBS
 
39823
LIBS="-ldb  $LIBS"
 
39824
cat >conftest.$ac_ext <<_ACEOF
 
39825
/* confdefs.h.  */
 
39826
_ACEOF
 
39827
cat confdefs.h >>conftest.$ac_ext
 
39828
cat >>conftest.$ac_ext <<_ACEOF
 
39829
/* end confdefs.h.  */
 
39830
 
 
39831
/* Override any gcc2 internal prototype to avoid an error.  */
 
39832
#ifdef __cplusplus
 
39833
extern "C"
 
39834
#endif
 
39835
/* We use char because int might match the return type of a gcc2
 
39836
   builtin and then its argument prototype would still apply.  */
 
39837
char db_env_create ();
 
39838
int
 
39839
main ()
 
39840
{
 
39841
db_env_create ();
 
39842
  ;
 
39843
  return 0;
 
39844
}
 
39845
_ACEOF
 
39846
rm -f conftest.$ac_objext conftest$ac_exeext
 
39847
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
39848
  (eval $ac_link) 2>conftest.er1
 
39849
  ac_status=$?
 
39850
  grep -v '^ *+' conftest.er1 >conftest.err
 
39851
  rm -f conftest.er1
 
39852
  cat conftest.err >&5
 
39853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39854
  (exit $ac_status); } &&
 
39855
         { ac_try='test -z "$ac_c_werror_flag"
 
39856
                         || test ! -s conftest.err'
 
39857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
39858
  (eval $ac_try) 2>&5
 
39859
  ac_status=$?
 
39860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39861
  (exit $ac_status); }; } &&
 
39862
         { ac_try='test -s conftest$ac_exeext'
 
39863
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
39864
  (eval $ac_try) 2>&5
 
39865
  ac_status=$?
 
39866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
39867
  (exit $ac_status); }; }; then
 
39868
  ac_cv_lib_db_db_env_create=yes
 
39869
else
 
39870
  echo "$as_me: failed program was:" >&5
 
39871
sed 's/^/| /' conftest.$ac_ext >&5
 
39872
 
 
39873
ac_cv_lib_db_db_env_create=no
 
39874
fi
 
39875
rm -f conftest.err conftest.$ac_objext \
 
39876
      conftest$ac_exeext conftest.$ac_ext
 
39877
LIBS=$ac_check_lib_save_LIBS
 
39878
fi
 
39879
echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
 
39880
echo "${ECHO_T}$ac_cv_lib_db_db_env_create" >&6
 
39881
if test $ac_cv_lib_db_db_env_create = yes; then
 
39882
 
 
39883
        bdb_dir_ok=installed
 
39884
 
 
39885
  # Remove trailing "./" if any
 
39886
  inc=`echo $inc | sed -e 's,^\./,,'`
 
39887
  case "$inc" in
 
39888
    "bdb" | "$srcdir/bdb" | "$top_srcdir/bdb" | "$abs_top_srcdir/bdb" )
 
39889
      # If BDB is under the source directory, we need to look under the
 
39890
      # build directory for bdb/build_unix.
 
39891
      inc="\$(top_builddir)/bdb"
 
39892
      ;;
 
39893
    /* ) ;;  # Other absolute path is assume to be external BDB directory
 
39894
    * )
 
39895
      { { echo "$as_me:$LINENO: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$inc')" >&5
 
39896
echo "$as_me: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$inc')" >&2;}
 
39897
   { (exit 1); exit 1; }; }
 
39898
      ;;
 
39899
  esac
 
39900
  if test X"$inc" != X"/"
 
39901
  then
 
39902
    inc=`echo $inc | sed -e 's,/$,,'`
 
39903
  fi
 
39904
 
 
39905
 
 
39906
  # Remove trailing "./" if any
 
39907
  lib=`echo $lib | sed -e 's,^\./,,'`
 
39908
  case "$lib" in
 
39909
    "bdb" | "$srcdir/bdb" | "$top_srcdir/bdb" | "$abs_top_srcdir/bdb" )
 
39910
      # If BDB is under the source directory, we need to look under the
 
39911
      # build directory for bdb/build_unix.
 
39912
      lib="\$(top_builddir)/bdb"
 
39913
      ;;
 
39914
    /* ) ;;  # Other absolute path is assume to be external BDB directory
 
39915
    * )
 
39916
      { { echo "$as_me:$LINENO: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$lib')" >&5
 
39917
echo "$as_me: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$lib')" >&2;}
 
39918
   { (exit 1); exit 1; }; }
 
39919
      ;;
 
39920
  esac
 
39921
  if test X"$lib" != X"/"
 
39922
  then
 
39923
    lib=`echo $lib | sed -e 's,/$,,'`
 
39924
  fi
 
39925
 
 
39926
        bdb_includes="-I$inc"
 
39927
        bdb_libs="-L$lib -ldb"
 
39928
        bdb_libs_with_path="$lib/libdb.a"
 
39929
 
 
39930
fi
 
39931
 
 
39932
      LDFLAGS="$save_LDFLAGS"
 
39933
    else
 
39934
      bdb_dir_ok="$bdb_version_ok"
 
39935
    fi
 
39936
  else
 
39937
    bdb_dir_ok="no db.h file in '$inc'"
 
39938
  fi
 
39939
 
 
39940
      case $bdb_dir_ok in
 
39941
        installed ) mode=yes ;;
 
39942
        * ) { { echo "$as_me:$LINENO: error: didn't find valid BerkeleyDB: $bdb_dir_ok" >&5
 
39943
echo "$as_me: error: didn't find valid BerkeleyDB: $bdb_dir_ok" >&2;}
 
39944
   { (exit 1); exit 1; }; } ;;
 
39945
      esac
 
39946
      ;;
 
39947
    supplied-one )
 
39948
 
 
39949
  dir="$bdb"
 
39950
 
 
39951
 
 
39952
  inc="$dir/include"
 
39953
  lib="$dir/lib"
 
39954
  if test -f "$inc/db.h"
 
39955
  then
 
39956
 
 
39957
  db_major=`sed -e '/^.*#define[        ]*DB_VERSION_MAJOR[     ][      ]*/ !d' -e 's///' $inc/db.h`
 
39958
  db_minor=`sed -e '/^.*#define[        ]*DB_VERSION_MINOR[     ][      ]*/ !d' -e 's///' $inc/db.h`
 
39959
  db_patch=`sed -e '/^.*#define[        ]*DB_VERSION_PATCH[     ][      ]*/ !d' -e 's///' $inc/db.h`
 
39960
  test -z "$db_major" && db_major=0
 
39961
  test -z "$db_minor" && db_minor=0
 
39962
  test -z "$db_patch" && db_patch=0
 
39963
 
 
39964
  # This is ugly, but about as good as it can get
 
39965
#  mysql_bdb=
 
39966
#  if test $db_major -eq 3 && test $db_minor -eq 2 && test $db_patch -eq 3
 
39967
#  then
 
39968
#    mysql_bdb=h
 
39969
#  elif test $db_major -eq 3 && test $db_minor -eq 2 && test $db_patch -eq 9
 
39970
#  then
 
39971
#    want_bdb_version="3.2.9a"  # hopefully this will stay up-to-date
 
39972
#    mysql_bdb=a
 
39973
#  fi
 
39974
 
 
39975
want_bdb_version="4.1.24"
 
39976
bdb_version_ok=yes
 
39977
 
 
39978
#  if test -n "$mysql_bdb" && \
 
39979
#       grep "DB_VERSION_STRING.*:.*$mysql_bdb: " [$inc/db.h] > /dev/null
 
39980
#  then
 
39981
#    bdb_version_ok=yes
 
39982
#  else
 
39983
#    bdb_version_ok="invalid version $db_major.$db_minor.$db_patch"
 
39984
#    bdb_version_ok="$bdb_version_ok (must be version 3.2.3h or $want_bdb_version)"
 
39985
#  fi
 
39986
 
 
39987
 
 
39988
    if test X"$bdb_version_ok" = Xyes; then
 
39989
      save_LDFLAGS="$LDFLAGS"
 
39990
      LDFLAGS="-L$lib $LDFLAGS"
 
39991
      echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
 
39992
echo $ECHO_N "checking for db_env_create in -ldb... $ECHO_C" >&6
 
39993
if test "${ac_cv_lib_db_db_env_create+set}" = set; then
 
39994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
39995
else
 
39996
  ac_check_lib_save_LIBS=$LIBS
 
39997
LIBS="-ldb  $LIBS"
 
39998
cat >conftest.$ac_ext <<_ACEOF
 
39999
/* confdefs.h.  */
 
40000
_ACEOF
 
40001
cat confdefs.h >>conftest.$ac_ext
 
40002
cat >>conftest.$ac_ext <<_ACEOF
 
40003
/* end confdefs.h.  */
 
40004
 
 
40005
/* Override any gcc2 internal prototype to avoid an error.  */
 
40006
#ifdef __cplusplus
 
40007
extern "C"
 
40008
#endif
 
40009
/* We use char because int might match the return type of a gcc2
 
40010
   builtin and then its argument prototype would still apply.  */
 
40011
char db_env_create ();
 
40012
int
 
40013
main ()
 
40014
{
 
40015
db_env_create ();
 
40016
  ;
 
40017
  return 0;
 
40018
}
 
40019
_ACEOF
 
40020
rm -f conftest.$ac_objext conftest$ac_exeext
 
40021
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40022
  (eval $ac_link) 2>conftest.er1
 
40023
  ac_status=$?
 
40024
  grep -v '^ *+' conftest.er1 >conftest.err
 
40025
  rm -f conftest.er1
 
40026
  cat conftest.err >&5
 
40027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40028
  (exit $ac_status); } &&
 
40029
         { ac_try='test -z "$ac_c_werror_flag"
 
40030
                         || test ! -s conftest.err'
 
40031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40032
  (eval $ac_try) 2>&5
 
40033
  ac_status=$?
 
40034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40035
  (exit $ac_status); }; } &&
 
40036
         { ac_try='test -s conftest$ac_exeext'
 
40037
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40038
  (eval $ac_try) 2>&5
 
40039
  ac_status=$?
 
40040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40041
  (exit $ac_status); }; }; then
 
40042
  ac_cv_lib_db_db_env_create=yes
 
40043
else
 
40044
  echo "$as_me: failed program was:" >&5
 
40045
sed 's/^/| /' conftest.$ac_ext >&5
 
40046
 
 
40047
ac_cv_lib_db_db_env_create=no
 
40048
fi
 
40049
rm -f conftest.err conftest.$ac_objext \
 
40050
      conftest$ac_exeext conftest.$ac_ext
 
40051
LIBS=$ac_check_lib_save_LIBS
 
40052
fi
 
40053
echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
 
40054
echo "${ECHO_T}$ac_cv_lib_db_db_env_create" >&6
 
40055
if test $ac_cv_lib_db_db_env_create = yes; then
 
40056
 
 
40057
        bdb_dir_ok=installed
 
40058
 
 
40059
  # Remove trailing "./" if any
 
40060
  inc=`echo $inc | sed -e 's,^\./,,'`
 
40061
  case "$inc" in
 
40062
    "bdb" | "$srcdir/bdb" | "$top_srcdir/bdb" | "$abs_top_srcdir/bdb" )
 
40063
      # If BDB is under the source directory, we need to look under the
 
40064
      # build directory for bdb/build_unix.
 
40065
      inc="\$(top_builddir)/bdb"
 
40066
      ;;
 
40067
    /* ) ;;  # Other absolute path is assume to be external BDB directory
 
40068
    * )
 
40069
      { { echo "$as_me:$LINENO: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$inc')" >&5
 
40070
echo "$as_me: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$inc')" >&2;}
 
40071
   { (exit 1); exit 1; }; }
 
40072
      ;;
 
40073
  esac
 
40074
  if test X"$inc" != X"/"
 
40075
  then
 
40076
    inc=`echo $inc | sed -e 's,/$,,'`
 
40077
  fi
 
40078
 
 
40079
 
 
40080
  # Remove trailing "./" if any
 
40081
  lib=`echo $lib | sed -e 's,^\./,,'`
 
40082
  case "$lib" in
 
40083
    "bdb" | "$srcdir/bdb" | "$top_srcdir/bdb" | "$abs_top_srcdir/bdb" )
 
40084
      # If BDB is under the source directory, we need to look under the
 
40085
      # build directory for bdb/build_unix.
 
40086
      lib="\$(top_builddir)/bdb"
 
40087
      ;;
 
40088
    /* ) ;;  # Other absolute path is assume to be external BDB directory
 
40089
    * )
 
40090
      { { echo "$as_me:$LINENO: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$lib')" >&5
 
40091
echo "$as_me: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$lib')" >&2;}
 
40092
   { (exit 1); exit 1; }; }
 
40093
      ;;
 
40094
  esac
 
40095
  if test X"$lib" != X"/"
 
40096
  then
 
40097
    lib=`echo $lib | sed -e 's,/$,,'`
 
40098
  fi
 
40099
 
 
40100
        bdb_includes="-I$inc"
 
40101
        bdb_libs="-L$lib -ldb"
 
40102
        bdb_libs_with_path="$lib/libdb.a"
 
40103
 
 
40104
fi
 
40105
 
 
40106
      LDFLAGS="$save_LDFLAGS"
 
40107
    else
 
40108
      bdb_dir_ok="$bdb_version_ok"
 
40109
    fi
 
40110
  else
 
40111
    bdb_dir_ok="no db.h file in '$inc'"
 
40112
  fi
 
40113
 
 
40114
 
 
40115
  if test X"$bdb_dir_ok" != Xinstalled; then
 
40116
    # test to see if it's a source dir
 
40117
    rel="$dir/dist/RELEASE"
 
40118
    if test -f "$rel"; then
 
40119
 
 
40120
  db_major=`sed -e '/^DB_VERSION_MAJOR=/ !d' -e 's///' $rel`
 
40121
  db_minor=`sed -e '/^DB_VERSION_MINOR=/ !d' -e 's///' $rel`
 
40122
  db_patch=`sed -e '/^DB_VERSION_PATCH=/ !d' -e 's///' $rel`
 
40123
  test -z "$db_major" && db_major=0
 
40124
  test -z "$db_minor" && db_minor=0
 
40125
  test -z "$db_patch" && db_patch=0
 
40126
 
 
40127
  # This is ugly, but about as good as it can get
 
40128
#  mysql_bdb=
 
40129
#  if test $db_major -eq 3 && test $db_minor -eq 2 && test $db_patch -eq 3
 
40130
#  then
 
40131
#    mysql_bdb=h
 
40132
#  elif test $db_major -eq 3 && test $db_minor -eq 2 && test $db_patch -eq 9
 
40133
#  then
 
40134
#    want_bdb_version="3.2.9a"  # hopefully this will stay up-to-date
 
40135
#    mysql_bdb=a
 
40136
#  fi
 
40137
 
 
40138
want_bdb_version="4.1.24"
 
40139
bdb_version_ok=yes
 
40140
 
 
40141
#  if test -n "$mysql_bdb" && \
 
40142
#       grep "DB_VERSION_STRING.*:.*$mysql_bdb: " [$rel] > /dev/null
 
40143
#  then
 
40144
#    bdb_version_ok=yes
 
40145
#  else
 
40146
#    bdb_version_ok="invalid version $db_major.$db_minor.$db_patch"
 
40147
#    bdb_version_ok="$bdb_version_ok (must be version 3.2.3h or $want_bdb_version)"
 
40148
#  fi
 
40149
 
 
40150
      if test X"$bdb_version_ok" = Xyes; then
 
40151
        bdb_dir_ok=source
 
40152
        bdb="$dir"
 
40153
 
 
40154
  # Remove trailing "./" if any
 
40155
  dir=`echo $dir | sed -e 's,^\./,,'`
 
40156
  case "$dir" in
 
40157
    "bdb" | "$srcdir/bdb" | "$top_srcdir/bdb" | "$abs_top_srcdir/bdb" )
 
40158
      # If BDB is under the source directory, we need to look under the
 
40159
      # build directory for bdb/build_unix.
 
40160
      dir="\$(top_builddir)/bdb"
 
40161
      ;;
 
40162
    /* ) ;;  # Other absolute path is assume to be external BDB directory
 
40163
    * )
 
40164
      { { echo "$as_me:$LINENO: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$dir')" >&5
 
40165
echo "$as_me: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$dir')" >&2;}
 
40166
   { (exit 1); exit 1; }; }
 
40167
      ;;
 
40168
  esac
 
40169
  if test X"$dir" != X"/"
 
40170
  then
 
40171
    dir=`echo $dir | sed -e 's,/$,,'`
 
40172
  fi
 
40173
 
 
40174
        bdb_includes="-I$dir/build_unix"
 
40175
        bdb_libs="-L$dir/build_unix -ldb"
 
40176
        bdb_libs_with_path="$dir/build_unix/libdb.a"
 
40177
      else
 
40178
        bdb_dir_ok="$bdb_version_ok"
 
40179
      fi
 
40180
    else
 
40181
      bdb_dir_ok="'$dir' doesn't look like a BDB directory ($bdb_dir_ok)"
 
40182
    fi
 
40183
  fi
 
40184
 
 
40185
      case $bdb_dir_ok in
 
40186
        source ) mode=compile ;;
 
40187
        installed ) mode=yes ;;
 
40188
        * ) { { echo "$as_me:$LINENO: error: didn't find valid BerkeleyDB: $bdb_dir_ok" >&5
 
40189
echo "$as_me: error: didn't find valid BerkeleyDB: $bdb_dir_ok" >&2;}
 
40190
   { (exit 1); exit 1; }; } ;;
 
40191
      esac
 
40192
      ;;
 
40193
    search-* )
 
40194
 
 
40195
  bdb_dir_ok="no BerkeleyDB found"
 
40196
 
 
40197
  for test_dir in $srcdir/bdb $srcdir/db-*.*.* /usr/local/BerkeleyDB*; do
 
40198
 
 
40199
  dir="$test_dir"
 
40200
 
 
40201
 
 
40202
  inc="$dir/include"
 
40203
  lib="$dir/lib"
 
40204
  if test -f "$inc/db.h"
 
40205
  then
 
40206
 
 
40207
  db_major=`sed -e '/^.*#define[        ]*DB_VERSION_MAJOR[     ][      ]*/ !d' -e 's///' $inc/db.h`
 
40208
  db_minor=`sed -e '/^.*#define[        ]*DB_VERSION_MINOR[     ][      ]*/ !d' -e 's///' $inc/db.h`
 
40209
  db_patch=`sed -e '/^.*#define[        ]*DB_VERSION_PATCH[     ][      ]*/ !d' -e 's///' $inc/db.h`
 
40210
  test -z "$db_major" && db_major=0
 
40211
  test -z "$db_minor" && db_minor=0
 
40212
  test -z "$db_patch" && db_patch=0
 
40213
 
 
40214
  # This is ugly, but about as good as it can get
 
40215
#  mysql_bdb=
 
40216
#  if test $db_major -eq 3 && test $db_minor -eq 2 && test $db_patch -eq 3
 
40217
#  then
 
40218
#    mysql_bdb=h
 
40219
#  elif test $db_major -eq 3 && test $db_minor -eq 2 && test $db_patch -eq 9
 
40220
#  then
 
40221
#    want_bdb_version="3.2.9a"  # hopefully this will stay up-to-date
 
40222
#    mysql_bdb=a
 
40223
#  fi
 
40224
 
 
40225
want_bdb_version="4.1.24"
 
40226
bdb_version_ok=yes
 
40227
 
 
40228
#  if test -n "$mysql_bdb" && \
 
40229
#       grep "DB_VERSION_STRING.*:.*$mysql_bdb: " [$inc/db.h] > /dev/null
 
40230
#  then
 
40231
#    bdb_version_ok=yes
 
40232
#  else
 
40233
#    bdb_version_ok="invalid version $db_major.$db_minor.$db_patch"
 
40234
#    bdb_version_ok="$bdb_version_ok (must be version 3.2.3h or $want_bdb_version)"
 
40235
#  fi
 
40236
 
 
40237
 
 
40238
    if test X"$bdb_version_ok" = Xyes; then
 
40239
      save_LDFLAGS="$LDFLAGS"
 
40240
      LDFLAGS="-L$lib $LDFLAGS"
 
40241
      echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
 
40242
echo $ECHO_N "checking for db_env_create in -ldb... $ECHO_C" >&6
 
40243
if test "${ac_cv_lib_db_db_env_create+set}" = set; then
 
40244
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40245
else
 
40246
  ac_check_lib_save_LIBS=$LIBS
 
40247
LIBS="-ldb  $LIBS"
 
40248
cat >conftest.$ac_ext <<_ACEOF
 
40249
/* confdefs.h.  */
 
40250
_ACEOF
 
40251
cat confdefs.h >>conftest.$ac_ext
 
40252
cat >>conftest.$ac_ext <<_ACEOF
 
40253
/* end confdefs.h.  */
 
40254
 
 
40255
/* Override any gcc2 internal prototype to avoid an error.  */
 
40256
#ifdef __cplusplus
 
40257
extern "C"
 
40258
#endif
 
40259
/* We use char because int might match the return type of a gcc2
 
40260
   builtin and then its argument prototype would still apply.  */
 
40261
char db_env_create ();
 
40262
int
 
40263
main ()
 
40264
{
 
40265
db_env_create ();
 
40266
  ;
 
40267
  return 0;
 
40268
}
 
40269
_ACEOF
 
40270
rm -f conftest.$ac_objext conftest$ac_exeext
 
40271
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40272
  (eval $ac_link) 2>conftest.er1
 
40273
  ac_status=$?
 
40274
  grep -v '^ *+' conftest.er1 >conftest.err
 
40275
  rm -f conftest.er1
 
40276
  cat conftest.err >&5
 
40277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40278
  (exit $ac_status); } &&
 
40279
         { ac_try='test -z "$ac_c_werror_flag"
 
40280
                         || test ! -s conftest.err'
 
40281
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40282
  (eval $ac_try) 2>&5
 
40283
  ac_status=$?
 
40284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40285
  (exit $ac_status); }; } &&
 
40286
         { ac_try='test -s conftest$ac_exeext'
 
40287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40288
  (eval $ac_try) 2>&5
 
40289
  ac_status=$?
 
40290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40291
  (exit $ac_status); }; }; then
 
40292
  ac_cv_lib_db_db_env_create=yes
 
40293
else
 
40294
  echo "$as_me: failed program was:" >&5
 
40295
sed 's/^/| /' conftest.$ac_ext >&5
 
40296
 
 
40297
ac_cv_lib_db_db_env_create=no
 
40298
fi
 
40299
rm -f conftest.err conftest.$ac_objext \
 
40300
      conftest$ac_exeext conftest.$ac_ext
 
40301
LIBS=$ac_check_lib_save_LIBS
 
40302
fi
 
40303
echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
 
40304
echo "${ECHO_T}$ac_cv_lib_db_db_env_create" >&6
 
40305
if test $ac_cv_lib_db_db_env_create = yes; then
 
40306
 
 
40307
        bdb_dir_ok=installed
 
40308
 
 
40309
  # Remove trailing "./" if any
 
40310
  inc=`echo $inc | sed -e 's,^\./,,'`
 
40311
  case "$inc" in
 
40312
    "bdb" | "$srcdir/bdb" | "$top_srcdir/bdb" | "$abs_top_srcdir/bdb" )
 
40313
      # If BDB is under the source directory, we need to look under the
 
40314
      # build directory for bdb/build_unix.
 
40315
      inc="\$(top_builddir)/bdb"
 
40316
      ;;
 
40317
    /* ) ;;  # Other absolute path is assume to be external BDB directory
 
40318
    * )
 
40319
      { { echo "$as_me:$LINENO: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$inc')" >&5
 
40320
echo "$as_me: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$inc')" >&2;}
 
40321
   { (exit 1); exit 1; }; }
 
40322
      ;;
 
40323
  esac
 
40324
  if test X"$inc" != X"/"
 
40325
  then
 
40326
    inc=`echo $inc | sed -e 's,/$,,'`
 
40327
  fi
 
40328
 
 
40329
 
 
40330
  # Remove trailing "./" if any
 
40331
  lib=`echo $lib | sed -e 's,^\./,,'`
 
40332
  case "$lib" in
 
40333
    "bdb" | "$srcdir/bdb" | "$top_srcdir/bdb" | "$abs_top_srcdir/bdb" )
 
40334
      # If BDB is under the source directory, we need to look under the
 
40335
      # build directory for bdb/build_unix.
 
40336
      lib="\$(top_builddir)/bdb"
 
40337
      ;;
 
40338
    /* ) ;;  # Other absolute path is assume to be external BDB directory
 
40339
    * )
 
40340
      { { echo "$as_me:$LINENO: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$lib')" >&5
 
40341
echo "$as_me: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$lib')" >&2;}
 
40342
   { (exit 1); exit 1; }; }
 
40343
      ;;
 
40344
  esac
 
40345
  if test X"$lib" != X"/"
 
40346
  then
 
40347
    lib=`echo $lib | sed -e 's,/$,,'`
 
40348
  fi
 
40349
 
 
40350
        bdb_includes="-I$inc"
 
40351
        bdb_libs="-L$lib -ldb"
 
40352
        bdb_libs_with_path="$lib/libdb.a"
 
40353
 
 
40354
fi
 
40355
 
 
40356
      LDFLAGS="$save_LDFLAGS"
 
40357
    else
 
40358
      bdb_dir_ok="$bdb_version_ok"
 
40359
    fi
 
40360
  else
 
40361
    bdb_dir_ok="no db.h file in '$inc'"
 
40362
  fi
 
40363
 
 
40364
 
 
40365
  if test X"$bdb_dir_ok" != Xinstalled; then
 
40366
    # test to see if it's a source dir
 
40367
    rel="$dir/dist/RELEASE"
 
40368
    if test -f "$rel"; then
 
40369
 
 
40370
  db_major=`sed -e '/^DB_VERSION_MAJOR=/ !d' -e 's///' $rel`
 
40371
  db_minor=`sed -e '/^DB_VERSION_MINOR=/ !d' -e 's///' $rel`
 
40372
  db_patch=`sed -e '/^DB_VERSION_PATCH=/ !d' -e 's///' $rel`
 
40373
  test -z "$db_major" && db_major=0
 
40374
  test -z "$db_minor" && db_minor=0
 
40375
  test -z "$db_patch" && db_patch=0
 
40376
 
 
40377
  # This is ugly, but about as good as it can get
 
40378
#  mysql_bdb=
 
40379
#  if test $db_major -eq 3 && test $db_minor -eq 2 && test $db_patch -eq 3
 
40380
#  then
 
40381
#    mysql_bdb=h
 
40382
#  elif test $db_major -eq 3 && test $db_minor -eq 2 && test $db_patch -eq 9
 
40383
#  then
 
40384
#    want_bdb_version="3.2.9a"  # hopefully this will stay up-to-date
 
40385
#    mysql_bdb=a
 
40386
#  fi
 
40387
 
 
40388
want_bdb_version="4.1.24"
 
40389
bdb_version_ok=yes
 
40390
 
 
40391
#  if test -n "$mysql_bdb" && \
 
40392
#       grep "DB_VERSION_STRING.*:.*$mysql_bdb: " [$rel] > /dev/null
 
40393
#  then
 
40394
#    bdb_version_ok=yes
 
40395
#  else
 
40396
#    bdb_version_ok="invalid version $db_major.$db_minor.$db_patch"
 
40397
#    bdb_version_ok="$bdb_version_ok (must be version 3.2.3h or $want_bdb_version)"
 
40398
#  fi
 
40399
 
 
40400
      if test X"$bdb_version_ok" = Xyes; then
 
40401
        bdb_dir_ok=source
 
40402
        bdb="$dir"
 
40403
 
 
40404
  # Remove trailing "./" if any
 
40405
  dir=`echo $dir | sed -e 's,^\./,,'`
 
40406
  case "$dir" in
 
40407
    "bdb" | "$srcdir/bdb" | "$top_srcdir/bdb" | "$abs_top_srcdir/bdb" )
 
40408
      # If BDB is under the source directory, we need to look under the
 
40409
      # build directory for bdb/build_unix.
 
40410
      dir="\$(top_builddir)/bdb"
 
40411
      ;;
 
40412
    /* ) ;;  # Other absolute path is assume to be external BDB directory
 
40413
    * )
 
40414
      { { echo "$as_me:$LINENO: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$dir')" >&5
 
40415
echo "$as_me: error: The BDB directory must be directly under the MySQL source directory, or be specified using the full path. ('$srcdir'; '$dir')" >&2;}
 
40416
   { (exit 1); exit 1; }; }
 
40417
      ;;
 
40418
  esac
 
40419
  if test X"$dir" != X"/"
 
40420
  then
 
40421
    dir=`echo $dir | sed -e 's,/$,,'`
 
40422
  fi
 
40423
 
 
40424
        bdb_includes="-I$dir/build_unix"
 
40425
        bdb_libs="-L$dir/build_unix -ldb"
 
40426
        bdb_libs_with_path="$dir/build_unix/libdb.a"
 
40427
      else
 
40428
        bdb_dir_ok="$bdb_version_ok"
 
40429
      fi
 
40430
    else
 
40431
      bdb_dir_ok="'$dir' doesn't look like a BDB directory ($bdb_dir_ok)"
 
40432
    fi
 
40433
  fi
 
40434
 
 
40435
    if test X"$bdb_dir_ok" = Xsource || test X"$bdb_dir_ok" = Xinstalled; then
 
40436
        case "$bdb" in
 
40437
        "$srcdir/"* ) bdb=`echo "$bdb" | sed -e "s,^$srcdir/,,"` ;;
 
40438
        esac
 
40439
        break
 
40440
    fi
 
40441
  done
 
40442
 
 
40443
      case $bdb_dir_ok in
 
40444
        source ) mode=compile ;;
 
40445
        installed ) mode=yes ;;
 
40446
        * )
 
40447
          # not found
 
40448
          case $mode in
 
40449
            *-yes ) { { echo "$as_me:$LINENO: error: no suitable BerkeleyDB found" >&5
 
40450
echo "$as_me: error: no suitable BerkeleyDB found" >&2;}
 
40451
   { (exit 1); exit 1; }; } ;;
 
40452
            * ) mode=no ;;
 
40453
          esac
 
40454
         bdb_includes=
 
40455
         bdb_libs=
 
40456
         bdb_libs_with_path=
 
40457
          ;;
 
40458
      esac
 
40459
      ;;
 
40460
    *)
 
40461
      { { echo "$as_me:$LINENO: error: impossible case condition '$mode': please report this to bugs@lists.mysql.com" >&5
 
40462
echo "$as_me: error: impossible case condition '$mode': please report this to bugs@lists.mysql.com" >&2;}
 
40463
   { (exit 1); exit 1; }; }
 
40464
      ;;
 
40465
  esac
 
40466
 
 
40467
  case $mode in
 
40468
    no )
 
40469
      echo "$as_me:$LINENO: result: Not using Berkeley DB" >&5
 
40470
echo "${ECHO_T}Not using Berkeley DB" >&6
 
40471
      ;;
 
40472
    yes )
 
40473
      have_berkeley_db="yes"
 
40474
      echo "$as_me:$LINENO: result: Using Berkeley DB in '$bdb_includes'" >&5
 
40475
echo "${ECHO_T}Using Berkeley DB in '$bdb_includes'" >&6
 
40476
      ;;
 
40477
    compile )
 
40478
      have_berkeley_db="$bdb"
 
40479
      echo "$as_me:$LINENO: result: Compiling Berekeley DB in '$have_berkeley_db'" >&5
 
40480
echo "${ECHO_T}Compiling Berekeley DB in '$have_berkeley_db'" >&6
 
40481
      ;;
 
40482
    * )
 
40483
      { { echo "$as_me:$LINENO: error: impossible case condition '$mode': please report this to bugs@lists.mysql.com" >&5
 
40484
echo "$as_me: error: impossible case condition '$mode': please report this to bugs@lists.mysql.com" >&2;}
 
40485
   { (exit 1); exit 1; }; }
 
40486
      ;;
 
40487
  esac
 
40488
 
 
40489
 
 
40490
 
 
40491
 
 
40492
 
 
40493
 
 
40494
 
 
40495
# Check whether --with-innodb or --without-innodb was given.
 
40496
if test "${with_innodb+set}" = set; then
 
40497
  withval="$with_innodb"
 
40498
  innodb="$withval"
 
40499
else
 
40500
  innodb=yes
 
40501
fi;
 
40502
 
 
40503
  echo "$as_me:$LINENO: checking for Innodb" >&5
 
40504
echo $ECHO_N "checking for Innodb... $ECHO_C" >&6
 
40505
 
 
40506
  have_innodb=no
 
40507
  innodb_includes=
 
40508
  innodb_libs=
 
40509
  case "$innodb" in
 
40510
    yes )
 
40511
      echo "$as_me:$LINENO: result: Using Innodb" >&5
 
40512
echo "${ECHO_T}Using Innodb" >&6
 
40513
 
 
40514
cat >>confdefs.h <<\_ACEOF
 
40515
#define HAVE_INNOBASE_DB 1
 
40516
_ACEOF
 
40517
 
 
40518
      have_innodb="yes"
 
40519
      innodb_includes="-I\$(top_builddir)/innobase/include -I\$(top_srcdir)/innobase/include"
 
40520
      innodb_system_libs=""
 
40521
      innodb_libs="\
 
40522
 \$(top_builddir)/innobase/usr/libusr.a\
 
40523
 \$(top_builddir)/innobase/srv/libsrv.a\
 
40524
 \$(top_builddir)/innobase/dict/libdict.a\
 
40525
 \$(top_builddir)/innobase/que/libque.a\
 
40526
 \$(top_builddir)/innobase/srv/libsrv.a\
 
40527
 \$(top_builddir)/innobase/ibuf/libibuf.a\
 
40528
 \$(top_builddir)/innobase/row/librow.a\
 
40529
 \$(top_builddir)/innobase/pars/libpars.a\
 
40530
 \$(top_builddir)/innobase/btr/libbtr.a\
 
40531
 \$(top_builddir)/innobase/trx/libtrx.a\
 
40532
 \$(top_builddir)/innobase/read/libread.a\
 
40533
 \$(top_builddir)/innobase/usr/libusr.a\
 
40534
 \$(top_builddir)/innobase/buf/libbuf.a\
 
40535
 \$(top_builddir)/innobase/ibuf/libibuf.a\
 
40536
 \$(top_builddir)/innobase/eval/libeval.a\
 
40537
 \$(top_builddir)/innobase/log/liblog.a\
 
40538
 \$(top_builddir)/innobase/fsp/libfsp.a\
 
40539
 \$(top_builddir)/innobase/fut/libfut.a\
 
40540
 \$(top_builddir)/innobase/fil/libfil.a\
 
40541
 \$(top_builddir)/innobase/lock/liblock.a\
 
40542
 \$(top_builddir)/innobase/mtr/libmtr.a\
 
40543
 \$(top_builddir)/innobase/page/libpage.a\
 
40544
 \$(top_builddir)/innobase/rem/librem.a\
 
40545
 \$(top_builddir)/innobase/thr/libthr.a\
 
40546
 \$(top_builddir)/innobase/sync/libsync.a\
 
40547
 \$(top_builddir)/innobase/data/libdata.a\
 
40548
 \$(top_builddir)/innobase/mach/libmach.a\
 
40549
 \$(top_builddir)/innobase/ha/libha.a\
 
40550
 \$(top_builddir)/innobase/dyn/libdyn.a\
 
40551
 \$(top_builddir)/innobase/mem/libmem.a\
 
40552
 \$(top_builddir)/innobase/sync/libsync.a\
 
40553
 \$(top_builddir)/innobase/ut/libut.a\
 
40554
 \$(top_builddir)/innobase/os/libos.a\
 
40555
 \$(top_builddir)/innobase/ut/libut.a"
 
40556
 
 
40557
      echo "$as_me:$LINENO: checking for aio_read in -lrt" >&5
 
40558
echo $ECHO_N "checking for aio_read in -lrt... $ECHO_C" >&6
 
40559
if test "${ac_cv_lib_rt_aio_read+set}" = set; then
 
40560
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
40561
else
 
40562
  ac_check_lib_save_LIBS=$LIBS
 
40563
LIBS="-lrt  $LIBS"
 
40564
cat >conftest.$ac_ext <<_ACEOF
 
40565
/* confdefs.h.  */
 
40566
_ACEOF
 
40567
cat confdefs.h >>conftest.$ac_ext
 
40568
cat >>conftest.$ac_ext <<_ACEOF
 
40569
/* end confdefs.h.  */
 
40570
 
 
40571
/* Override any gcc2 internal prototype to avoid an error.  */
 
40572
#ifdef __cplusplus
 
40573
extern "C"
 
40574
#endif
 
40575
/* We use char because int might match the return type of a gcc2
 
40576
   builtin and then its argument prototype would still apply.  */
 
40577
char aio_read ();
 
40578
int
 
40579
main ()
 
40580
{
 
40581
aio_read ();
 
40582
  ;
 
40583
  return 0;
 
40584
}
 
40585
_ACEOF
 
40586
rm -f conftest.$ac_objext conftest$ac_exeext
 
40587
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
40588
  (eval $ac_link) 2>conftest.er1
 
40589
  ac_status=$?
 
40590
  grep -v '^ *+' conftest.er1 >conftest.err
 
40591
  rm -f conftest.er1
 
40592
  cat conftest.err >&5
 
40593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40594
  (exit $ac_status); } &&
 
40595
         { ac_try='test -z "$ac_c_werror_flag"
 
40596
                         || test ! -s conftest.err'
 
40597
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40598
  (eval $ac_try) 2>&5
 
40599
  ac_status=$?
 
40600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40601
  (exit $ac_status); }; } &&
 
40602
         { ac_try='test -s conftest$ac_exeext'
 
40603
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
40604
  (eval $ac_try) 2>&5
 
40605
  ac_status=$?
 
40606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
40607
  (exit $ac_status); }; }; then
 
40608
  ac_cv_lib_rt_aio_read=yes
 
40609
else
 
40610
  echo "$as_me: failed program was:" >&5
 
40611
sed 's/^/| /' conftest.$ac_ext >&5
 
40612
 
 
40613
ac_cv_lib_rt_aio_read=no
 
40614
fi
 
40615
rm -f conftest.err conftest.$ac_objext \
 
40616
      conftest$ac_exeext conftest.$ac_ext
 
40617
LIBS=$ac_check_lib_save_LIBS
 
40618
fi
 
40619
echo "$as_me:$LINENO: result: $ac_cv_lib_rt_aio_read" >&5
 
40620
echo "${ECHO_T}$ac_cv_lib_rt_aio_read" >&6
 
40621
if test $ac_cv_lib_rt_aio_read = yes; then
 
40622
  innodb_system_libs="-lrt"
 
40623
fi
 
40624
 
 
40625
      ;;
 
40626
    * )
 
40627
      echo "$as_me:$LINENO: result: Not using Innodb" >&5
 
40628
echo "${ECHO_T}Not using Innodb" >&6
 
40629
      ;;
 
40630
  esac
 
40631
 
 
40632
 
 
40633
 
 
40634
 
 
40635
 
 
40636
 
 
40637
 
 
40638
# Check whether --with-example-storage-engine or --without-example-storage-engine was given.
 
40639
if test "${with_example_storage_engine+set}" = set; then
 
40640
  withval="$with_example_storage_engine"
 
40641
  exampledb="$withval"
 
40642
else
 
40643
  exampledb=no
 
40644
fi;
 
40645
  echo "$as_me:$LINENO: checking for example storage engine" >&5
 
40646
echo $ECHO_N "checking for example storage engine... $ECHO_C" >&6
 
40647
 
 
40648
  case "$exampledb" in
 
40649
    yes )
 
40650
 
 
40651
cat >>confdefs.h <<\_ACEOF
 
40652
#define HAVE_EXAMPLE_DB 1
 
40653
_ACEOF
 
40654
 
 
40655
      echo "$as_me:$LINENO: result: yes" >&5
 
40656
echo "${ECHO_T}yes" >&6
 
40657
      exampledb=yes
 
40658
      ;;
 
40659
    * )
 
40660
      echo "$as_me:$LINENO: result: no" >&5
 
40661
echo "${ECHO_T}no" >&6
 
40662
      exampledb=no
 
40663
      ;;
 
40664
  esac
 
40665
 
 
40666
 
 
40667
 
 
40668
 
 
40669
# Check whether --with-archive-storage-engine or --without-archive-storage-engine was given.
 
40670
if test "${with_archive_storage_engine+set}" = set; then
 
40671
  withval="$with_archive_storage_engine"
 
40672
  archivedb="$withval"
 
40673
else
 
40674
  archivedb=no
 
40675
fi;
 
40676
  echo "$as_me:$LINENO: checking for archive storage engine" >&5
 
40677
echo $ECHO_N "checking for archive storage engine... $ECHO_C" >&6
 
40678
 
 
40679
  case "$archivedb" in
 
40680
    yes )
 
40681
 
 
40682
cat >>confdefs.h <<\_ACEOF
 
40683
#define HAVE_ARCHIVE_DB 1
 
40684
_ACEOF
 
40685
 
 
40686
      echo "$as_me:$LINENO: result: yes" >&5
 
40687
echo "${ECHO_T}yes" >&6
 
40688
      archivedb=yes
 
40689
      ;;
 
40690
    * )
 
40691
      echo "$as_me:$LINENO: result: no" >&5
 
40692
echo "${ECHO_T}no" >&6
 
40693
      archivedb=no
 
40694
      ;;
 
40695
  esac
 
40696
 
 
40697
 
 
40698
 
 
40699
 
 
40700
# Check whether --with-csv-storage-engine or --without-csv-storage-engine was given.
 
40701
if test "${with_csv_storage_engine+set}" = set; then
 
40702
  withval="$with_csv_storage_engine"
 
40703
  csvdb="$withval"
 
40704
else
 
40705
  csvdb=no
 
40706
fi;
 
40707
  echo "$as_me:$LINENO: checking for csv storage engine" >&5
 
40708
echo $ECHO_N "checking for csv storage engine... $ECHO_C" >&6
 
40709
 
 
40710
  case "$csvdb" in
 
40711
    yes )
 
40712
 
 
40713
cat >>confdefs.h <<\_ACEOF
 
40714
#define HAVE_CSV_DB 1
 
40715
_ACEOF
 
40716
 
 
40717
      echo "$as_me:$LINENO: result: yes" >&5
 
40718
echo "${ECHO_T}yes" >&6
 
40719
      csvdb=yes
 
40720
      ;;
 
40721
    * )
 
40722
      echo "$as_me:$LINENO: result: no" >&5
 
40723
echo "${ECHO_T}no" >&6
 
40724
      csvdb=no
 
40725
      ;;
 
40726
  esac
 
40727
 
 
40728
 
 
40729
 
 
40730
 
 
40731
# Check whether --with-blackhole-storage-engine or --without-blackhole-storage-engine was given.
 
40732
if test "${with_blackhole_storage_engine+set}" = set; then
 
40733
  withval="$with_blackhole_storage_engine"
 
40734
  blackholedb="$withval"
 
40735
else
 
40736
  blackholedb=no
 
40737
fi;
 
40738
  echo "$as_me:$LINENO: checking for blackhole storage engine" >&5
 
40739
echo $ECHO_N "checking for blackhole storage engine... $ECHO_C" >&6
 
40740
 
 
40741
  case "$blackholedb" in
 
40742
    yes )
 
40743
 
 
40744
cat >>confdefs.h <<\_ACEOF
 
40745
#define HAVE_BLACKHOLE_DB 1
 
40746
_ACEOF
 
40747
 
 
40748
      echo "$as_me:$LINENO: result: yes" >&5
 
40749
echo "${ECHO_T}yes" >&6
 
40750
      blackholedb=yes
 
40751
      ;;
 
40752
    * )
 
40753
      echo "$as_me:$LINENO: result: no" >&5
 
40754
echo "${ECHO_T}no" >&6
 
40755
      blackholedb=no
 
40756
      ;;
 
40757
  esac
 
40758
 
 
40759
 
 
40760
 
 
40761
 
 
40762
# Check whether --with-ndbcluster or --without-ndbcluster was given.
 
40763
if test "${with_ndbcluster+set}" = set; then
 
40764
  withval="$with_ndbcluster"
 
40765
  ndbcluster="$withval"
 
40766
else
 
40767
  ndbcluster=no
 
40768
fi;
 
40769
 
 
40770
  echo "$as_me:$LINENO: checking for NDB Cluster" >&5
 
40771
echo $ECHO_N "checking for NDB Cluster... $ECHO_C" >&6
 
40772
 
 
40773
  have_ndbcluster=no
 
40774
  ndbcluster_includes=
 
40775
  ndbcluster_libs=
 
40776
  ndb_mgmclient_libs=
 
40777
  case "$ndbcluster" in
 
40778
    yes )
 
40779
      echo "$as_me:$LINENO: result: Using NDB Cluster" >&5
 
40780
echo "${ECHO_T}Using NDB Cluster" >&6
 
40781
 
 
40782
cat >>confdefs.h <<\_ACEOF
 
40783
#define HAVE_NDBCLUSTER_DB 1
 
40784
_ACEOF
 
40785
 
 
40786
      have_ndbcluster="yes"
 
40787
      ndbcluster_includes="-I\$(top_builddir)/ndb/include -I\$(top_srcdir)/ndb/include -I\$(top_srcdir)/ndb/include/ndbapi -I\$(top_srcdir)/ndb/include/mgmapi"
 
40788
      ndbcluster_libs="\$(top_builddir)/ndb/src/.libs/libndbclient.a"
 
40789
      ndbcluster_system_libs=""
 
40790
      ndb_mgmclient_libs="\$(top_builddir)/ndb/src/mgmclient/libndbmgmclient.la"
 
40791
 
 
40792
 
 
40793
# Check whether --with-ndb-sci or --without-ndb-sci was given.
 
40794
if test "${with_ndb_sci+set}" = set; then
 
40795
  withval="$with_ndb_sci"
 
40796
  mysql_sci_dir=${withval}
 
40797
else
 
40798
  mysql_sci_dir=""
 
40799
fi;
 
40800
 
 
40801
  case "$mysql_sci_dir" in
 
40802
    "no" )
 
40803
      have_ndb_sci=no
 
40804
      echo "$as_me:$LINENO: result: -- not including sci transporter" >&5
 
40805
echo "${ECHO_T}-- not including sci transporter" >&6
 
40806
      ;;
 
40807
    * )
 
40808
      if test -f "$mysql_sci_dir/lib/libsisci.a" -a \
 
40809
              -f "$mysql_sci_dir/include/sisci_api.h"; then
 
40810
        NDB_SCI_INCLUDES="-I$mysql_sci_dir/include"
 
40811
        NDB_SCI_LIBS="-L$mysql_sci_dir/lib -lsisci"
 
40812
        echo "$as_me:$LINENO: result: -- including sci transporter" >&5
 
40813
echo "${ECHO_T}-- including sci transporter" >&6
 
40814
 
 
40815
cat >>confdefs.h <<\_ACEOF
 
40816
#define NDB_SCI_TRANSPORTER 1
 
40817
_ACEOF
 
40818
 
 
40819
 
 
40820
 
 
40821
        have_ndb_sci="yes"
 
40822
        echo "$as_me:$LINENO: result: found sci transporter in $mysql_sci_dir/{include, lib}" >&5
 
40823
echo "${ECHO_T}found sci transporter in $mysql_sci_dir/{include, lib}" >&6
 
40824
      else
 
40825
        echo "$as_me:$LINENO: result: could not find sci transporter in $mysql_sci_dir/{include, lib}" >&5
 
40826
echo "${ECHO_T}could not find sci transporter in $mysql_sci_dir/{include, lib}" >&6
 
40827
      fi
 
40828
      ;;
 
40829
  esac
 
40830
 
 
40831
 
 
40832
# Check whether --with-ndb-test or --without-ndb-test was given.
 
40833
if test "${with_ndb_test+set}" = set; then
 
40834
  withval="$with_ndb_test"
 
40835
  ndb_test="$withval"
 
40836
else
 
40837
  ndb_test=no
 
40838
fi;
 
40839
 
 
40840
# Check whether --with-ndb-docs or --without-ndb-docs was given.
 
40841
if test "${with_ndb_docs+set}" = set; then
 
40842
  withval="$with_ndb_docs"
 
40843
  ndb_docs="$withval"
 
40844
else
 
40845
  ndb_docs=no
 
40846
fi;
 
40847
 
 
40848
# Check whether --with-ndb-port or --without-ndb-port was given.
 
40849
if test "${with_ndb_port+set}" = set; then
 
40850
  withval="$with_ndb_port"
 
40851
  ndb_port="$withval"
 
40852
else
 
40853
  ndb_port="default"
 
40854
fi;
 
40855
 
 
40856
# Check whether --with-ndb-port-base or --without-ndb-port-base was given.
 
40857
if test "${with_ndb_port_base+set}" = set; then
 
40858
  withval="$with_ndb_port_base"
 
40859
  ndb_port_base="$withval"
 
40860
else
 
40861
  ndb_port_base="default"
 
40862
fi;
 
40863
 
 
40864
# Check whether --with-ndb-debug or --without-ndb-debug was given.
 
40865
if test "${with_ndb_debug+set}" = set; then
 
40866
  withval="$with_ndb_debug"
 
40867
  ndb_debug="$withval"
 
40868
else
 
40869
  ndb_debug="default"
 
40870
fi;
 
40871
 
 
40872
# Check whether --with-ndb-ccflags or --without-ndb-ccflags was given.
 
40873
if test "${with_ndb_ccflags+set}" = set; then
 
40874
  withval="$with_ndb_ccflags"
 
40875
  ndb_ccflags=${withval}
 
40876
else
 
40877
  ndb_ccflags=""
 
40878
fi;
 
40879
 
 
40880
    case "$ndb_ccflags" in
 
40881
    "yes")
 
40882
        echo "$as_me:$LINENO: result: The --ndb-ccflags option requires a parameter (passed to CC for ndb compilation)" >&5
 
40883
echo "${ECHO_T}The --ndb-ccflags option requires a parameter (passed to CC for ndb compilation)" >&6
 
40884
        ;;
 
40885
    *)
 
40886
        ndb_cxxflags_fix="$ndb_cxxflags_fix $ndb_ccflags"
 
40887
    ;;
 
40888
  esac
 
40889
 
 
40890
  echo "$as_me:$LINENO: checking for NDB Cluster options" >&5
 
40891
echo $ECHO_N "checking for NDB Cluster options... $ECHO_C" >&6
 
40892
  echo "$as_me:$LINENO: result: " >&5
 
40893
echo "${ECHO_T}" >&6
 
40894
 
 
40895
  have_ndb_test=no
 
40896
  case "$ndb_test" in
 
40897
    yes )
 
40898
      echo "$as_me:$LINENO: result: -- including ndbapi test programs" >&5
 
40899
echo "${ECHO_T}-- including ndbapi test programs" >&6
 
40900
      have_ndb_test="yes"
 
40901
      ;;
 
40902
    * )
 
40903
      echo "$as_me:$LINENO: result: -- not including ndbapi test programs" >&5
 
40904
echo "${ECHO_T}-- not including ndbapi test programs" >&6
 
40905
      ;;
 
40906
  esac
 
40907
 
 
40908
  have_ndb_docs=no
 
40909
  case "$ndb_docs" in
 
40910
    yes )
 
40911
      echo "$as_me:$LINENO: result: -- including ndbapi and mgmapi documentation" >&5
 
40912
echo "${ECHO_T}-- including ndbapi and mgmapi documentation" >&6
 
40913
      have_ndb_docs="yes"
 
40914
      ;;
 
40915
    * )
 
40916
      echo "$as_me:$LINENO: result: -- not including ndbapi and mgmapi documentation" >&5
 
40917
echo "${ECHO_T}-- not including ndbapi and mgmapi documentation" >&6
 
40918
      ;;
 
40919
  esac
 
40920
 
 
40921
  case "$ndb_debug" in
 
40922
    yes )
 
40923
      echo "$as_me:$LINENO: result: -- including ndb extra debug options" >&5
 
40924
echo "${ECHO_T}-- including ndb extra debug options" >&6
 
40925
      have_ndb_debug="yes"
 
40926
      ;;
 
40927
    full )
 
40928
      echo "$as_me:$LINENO: result: -- including ndb extra extra debug options" >&5
 
40929
echo "${ECHO_T}-- including ndb extra extra debug options" >&6
 
40930
      have_ndb_debug="full"
 
40931
      ;;
 
40932
    no )
 
40933
      echo "$as_me:$LINENO: result: -- not including ndb extra debug options" >&5
 
40934
echo "${ECHO_T}-- not including ndb extra debug options" >&6
 
40935
      have_ndb_debug="no"
 
40936
      ;;
 
40937
    * )
 
40938
      have_ndb_debug="default"
 
40939
      ;;
 
40940
  esac
 
40941
 
 
40942
  echo "$as_me:$LINENO: result: done." >&5
 
40943
echo "${ECHO_T}done." >&6
 
40944
 
 
40945
      ;;
 
40946
    * )
 
40947
      echo "$as_me:$LINENO: result: Not using NDB Cluster" >&5
 
40948
echo "${ECHO_T}Not using NDB Cluster" >&6
 
40949
      ;;
 
40950
  esac
 
40951
 
 
40952
 
 
40953
 
 
40954
if  test "$have_ndbcluster" = "yes" ; then
 
40955
  HAVE_NDBCLUSTER_DB_TRUE=
 
40956
  HAVE_NDBCLUSTER_DB_FALSE='#'
 
40957
else
 
40958
  HAVE_NDBCLUSTER_DB_TRUE='#'
 
40959
  HAVE_NDBCLUSTER_DB_FALSE=
 
40960
fi
 
40961
 
 
40962
 
 
40963
 
 
40964
 
 
40965
 
 
40966
 
 
40967
 
 
40968
 
 
40969
# Check whether --with-federated-storage-engine or --without-federated-storage-engine was given.
 
40970
if test "${with_federated_storage_engine+set}" = set; then
 
40971
  withval="$with_federated_storage_engine"
 
40972
  federateddb="$withval"
 
40973
else
 
40974
  federateddb=no
 
40975
fi;
 
40976
  echo "$as_me:$LINENO: checking for MySQL federated storage engine" >&5
 
40977
echo $ECHO_N "checking for MySQL federated storage engine... $ECHO_C" >&6
 
40978
 
 
40979
  case "$federateddb" in
 
40980
    yes )
 
40981
 
 
40982
cat >>confdefs.h <<\_ACEOF
 
40983
#define HAVE_FEDERATED_DB 1
 
40984
_ACEOF
 
40985
 
 
40986
      echo "$as_me:$LINENO: result: yes" >&5
 
40987
echo "${ECHO_T}yes" >&6
 
40988
      federateddb=yes
 
40989
      ;;
 
40990
    * )
 
40991
      echo "$as_me:$LINENO: result: no" >&5
 
40992
echo "${ECHO_T}no" >&6
 
40993
      federateddb=no
 
40994
      ;;
 
40995
  esac
 
40996
 
 
40997
 
 
40998
 
 
40999
# If we have threads generate some library functions and test programs
 
41000
sql_server_dirs=
 
41001
server_scripts=
 
41002
thread_dirs=
 
41003
 
 
41004
sql_client_dirs="strings regex mysys libmysql client"
 
41005
linked_client_targets="linked_libmysql_sources"
 
41006
 
 
41007
if test "$THREAD_SAFE_CLIENT" != "no"
 
41008
then
 
41009
  sql_client_dirs="libmysql_r $sql_client_dirs"
 
41010
  linked_client_targets="$linked_client_targets linked_libmysql_r_sources"
 
41011
            ac_config_files="$ac_config_files libmysql_r/Makefile"
 
41012
 
 
41013
 
 
41014
cat >>confdefs.h <<\_ACEOF
 
41015
#define THREAD_SAFE_CLIENT 1
 
41016
_ACEOF
 
41017
 
 
41018
fi
 
41019
 
 
41020
CLIENT_LIBS="$NON_THREADED_LIBS $openssl_libs $ZLIB_LIBS $STATIC_NSS_FLAGS"
 
41021
 
 
41022
 
 
41023
 
 
41024
 
 
41025
 
 
41026
 
 
41027
 
 
41028
# If configuring for NetWare, set up to link sources from and build the netware directory
 
41029
netware_dir=
 
41030
linked_netware_sources=
 
41031
if expr "$SYSTEM_TYPE" : ".*netware.*" > /dev/null; then
 
41032
  netware_dir="netware"
 
41033
  linked_netware_sources="linked_netware_sources"
 
41034
fi
 
41035
 
 
41036
 
 
41037
 
 
41038
 
 
41039
if test "$netware_dir" = "netware"; then
 
41040
  HAVE_NETWARE_TRUE=
 
41041
  HAVE_NETWARE_FALSE='#'
 
41042
else
 
41043
  HAVE_NETWARE_TRUE='#'
 
41044
  HAVE_NETWARE_FALSE=
 
41045
fi
 
41046
 
 
41047
 
 
41048
# Ensure that table handlers gets all modifications to CFLAGS/CXXFLAGS
 
41049
export CC CXX CFLAGS CXXFLAGS LD LDFLAGS AR
 
41050
ac_configure_args="$ac_configure_args CFLAGS='$CFLAGS' CXXFLAGS='$CXXFLAGS'"
 
41051
 
 
41052
if test "$with_server" = "yes" -o "$THREAD_SAFE_CLIENT" != "no"
 
41053
then
 
41054
 
 
41055
cat >>confdefs.h <<\_ACEOF
 
41056
#define THREAD 1
 
41057
_ACEOF
 
41058
 
 
41059
  # Avoid _PROGRAMS names
 
41060
  THREAD_LOBJECTS="thr_alarm.o thr_lock.o thr_mutex.o thr_rwlock.o my_pthread.o my_thr_init.o mf_keycache.o"
 
41061
 
 
41062
  server_scripts="mysqld_safe mysql_install_db"
 
41063
  sql_server_dirs="strings mysys dbug extra regex"
 
41064
 
 
41065
 
 
41066
  #
 
41067
  # Configuration for optional table handlers
 
41068
  #
 
41069
 
 
41070
  if test X"$have_berkeley_db" != Xno; then
 
41071
    if test X"$have_berkeley_db" != Xyes; then
 
41072
      # we must build berkeley db from source
 
41073
      sql_server_dirs="$sql_server_dirs $have_berkeley_db"
 
41074
                ac_config_files="$ac_config_files bdb/Makefile"
 
41075
 
 
41076
 
 
41077
      echo "CONFIGURING FOR BERKELEY DB"
 
41078
      bdb_conf_flags="--disable-shared --build=$build_alias"
 
41079
      if test $with_debug = "yes"
 
41080
      then
 
41081
        bdb_conf_flags="$bdb_conf_flags --enable-debug --enable-diagnostic"
 
41082
      fi
 
41083
      # NOTICE: if you're compiling BDB, it needs to be a SUBDIR
 
41084
      # of $srcdir (i.e., you can 'cd $srcdir/$bdb').  It won't
 
41085
      # work otherwise.
 
41086
      if test -d "$bdb"; then :
 
41087
      else
 
41088
        # This should only happen when doing a VPATH build
 
41089
        echo "NOTICE: I have to make the BDB directory: `pwd`:$bdb"
 
41090
        mkdir "$bdb" || exit 1
 
41091
      fi
 
41092
      if test -d "$bdb"/build_unix; then :
 
41093
      else
 
41094
        # This should only happen when doing a VPATH build
 
41095
        echo "NOTICE: I have to make the build_unix directory: `pwd`:$bdb/build_unix"
 
41096
        mkdir "$bdb/build_unix" || exit 1
 
41097
      fi
 
41098
      rel_srcdir=
 
41099
      case "$srcdir" in
 
41100
        /* ) rel_srcdir="$srcdir" ;;
 
41101
        * )  rel_srcdir="../../$srcdir" ;;
 
41102
      esac
 
41103
      (cd $bdb/build_unix && \
 
41104
       sh $rel_srcdir/$bdb/dist/configure $bdb_conf_flags) || \
 
41105
        { { echo "$as_me:$LINENO: error: could not configure Berkeley DB" >&5
 
41106
echo "$as_me: error: could not configure Berkeley DB" >&2;}
 
41107
   { (exit 1); exit 1; }; }
 
41108
 
 
41109
      echo "END OF BERKELEY DB CONFIGURATION"
 
41110
    fi
 
41111
 
 
41112
 
 
41113
cat >>confdefs.h <<\_ACEOF
 
41114
#define HAVE_BERKELEY_DB 1
 
41115
_ACEOF
 
41116
 
 
41117
  else
 
41118
    if test -d bdb; then :
 
41119
    else
 
41120
      mkdir bdb && mkdir bdb/build_unix
 
41121
    fi
 
41122
 
 
41123
    if test -r bdb/build_unix/db.h; then :
 
41124
    else
 
41125
      cat <<EOF > bdb/build_unix/db.h
 
41126
 
 
41127
This file is a placeholder to fool make.  The way that automake
 
41128
and GNU make work together causes some files to depend on this
 
41129
header, even if we're not building with Berkeley DB.
 
41130
 
 
41131
Obviously, if this file *is* used, it'll break and hopefully we can find
 
41132
out why this file was generated by ${top_srcdir}/configure instead of
 
41133
the real db.h.
 
41134
 
 
41135
If you run into some problems because of this file, please use mysql_bug
 
41136
to generate a bug report, and give the exact output of make and any
 
41137
details you can think of.  Send the message to bugs@lists.mysql.com.
 
41138
 
 
41139
Thank you!
 
41140
 
 
41141
EOF
 
41142
    fi
 
41143
  fi
 
41144
 
 
41145
  if test X"$have_innodb" = Xyes
 
41146
  then
 
41147
    innodb_conf_flags=""
 
41148
    sql_server_dirs="$sql_server_dirs innobase"
 
41149
 
 
41150
 
 
41151
subdirs="$subdirs innobase"
 
41152
 
 
41153
  fi
 
41154
 
 
41155
case $SYSTEM_TYPE-$MACHINE_TYPE-$ac_cv_c_compiler_gnu-$have_ndbcluster in
 
41156
  *solaris*-i?86-no-yes)
 
41157
  # ndb fail for whatever strange reason to link Sun Forte/x86
 
41158
  # unless using incremental linker
 
41159
  CXXFLAGS="$CXXFLAGS -xildon"
 
41160
  ;;
 
41161
  *) ;;
 
41162
esac
 
41163
 
 
41164
  if test X"$have_ndbcluster" = Xyes
 
41165
  then
 
41166
    if test X"$mysql_cv_compress" != Xyes
 
41167
    then
 
41168
      echo
 
41169
      echo "MySQL Cluster table handler ndbcluster requires compress/uncompress."
 
41170
      echo "Commonly available in libzlib.a.  Please install and rerun configure."
 
41171
      echo
 
41172
      exit 1
 
41173
    fi
 
41174
    sql_server_dirs="$sql_server_dirs ndb"
 
41175
  fi
 
41176
  #
 
41177
  # END of configuration for optional table handlers
 
41178
  #
 
41179
  sql_server_dirs="$sql_server_dirs myisam myisammrg heap vio sql"
 
41180
fi
 
41181
 
 
41182
# IMPORTANT - do not modify LIBS past this line - this hack is the only way
 
41183
# I know to add the static NSS magic if we have static NSS libraries with
 
41184
# glibc - Sasha
 
41185
 
 
41186
LDFLAGS="$LDFLAGS $OTHER_LIBC_LIB"
 
41187
LIBS="$LIBS $STATIC_NSS_FLAGS"
 
41188
 
 
41189
 
 
41190
 
 
41191
 
 
41192
 
 
41193
# Now that sql_client_dirs and sql_server_dirs are stable, determine the union.
 
41194
# Start with the (longer) server list, add each client item not yet present.
 
41195
sql_union_dirs=" $sql_server_dirs "
 
41196
for DIR in $sql_client_dirs
 
41197
do
 
41198
  if echo " $sql_union_dirs " | grep " $DIR " >/dev/null
 
41199
  then
 
41200
    :  # already present, skip
 
41201
  else
 
41202
    sql_union_dirs="$sql_union_dirs $DIR "
 
41203
  fi
 
41204
done
 
41205
 
 
41206
 
 
41207
# Some usefull subst
 
41208
 
 
41209
 
 
41210
 
 
41211
# Set configuration options for make_binary_distribution
 
41212
case $SYSTEM_TYPE in
 
41213
  *netware*)
 
41214
    MAKE_BINARY_DISTRIBUTION_OPTIONS=--no-strip
 
41215
    ;;
 
41216
  *)
 
41217
    MAKE_BINARY_DISTRIBUTION_OPTIONS=
 
41218
    ;;
 
41219
esac
 
41220
 
 
41221
 
 
41222
if test X"$have_ndbcluster" = Xyes
 
41223
then
 
41224
  MAKE_BINARY_DISTRIBUTION_OPTIONS="$MAKE_BINARY_DISTRIBUTION_OPTIONS --with-ndbcluster"
 
41225
 
 
41226
  CXXFLAGS="$CXXFLAGS \$(NDB_CXXFLAGS)"
 
41227
  if test "$have_ndb_debug" = "default"
 
41228
  then
 
41229
    have_ndb_debug=$with_debug
 
41230
  fi
 
41231
 
 
41232
  if test "$have_ndb_debug" = "yes"
 
41233
  then
 
41234
    # Medium debug.
 
41235
    NDB_DEFS="-DNDB_DEBUG -DVM_TRACE -DERROR_INSERT -DARRAY_GUARD"
 
41236
  elif test "$have_ndb_debug" = "full"
 
41237
  then
 
41238
    NDB_DEFS="-DNDB_DEBUG_FULL -DVM_TRACE -DERROR_INSERT -DARRAY_GUARD"
 
41239
  else
 
41240
    # no extra ndb debug but still do asserts if debug version
 
41241
    if test "$with_debug" = "yes" -o "$with_debug" = "full"
 
41242
    then
 
41243
      NDB_DEFS=""
 
41244
    else
 
41245
      NDB_DEFS="-DNDEBUG"
 
41246
    fi
 
41247
  fi
 
41248
 
 
41249
 
 
41250
 
 
41251
 
 
41252
 
 
41253
if test X"$ndb_port" = Xdefault
 
41254
then
 
41255
  ndb_port="1186"
 
41256
fi
 
41257
 
 
41258
 
 
41259
ndb_transporter_opt_objs=""
 
41260
if test "$ac_cv_func_shmget" = "yes" &&
 
41261
   test "$ac_cv_func_shmat" = "yes" &&
 
41262
   test "$ac_cv_func_shmdt" = "yes" &&
 
41263
   test "$ac_cv_func_shmctl" = "yes" &&
 
41264
   test "$ac_cv_func_sigaction" = "yes" &&
 
41265
   test "$ac_cv_func_sigemptyset" = "yes" &&
 
41266
   test "$ac_cv_func_sigaddset" = "yes" &&
 
41267
   test "$ac_cv_func_pthread_sigmask" = "yes"
 
41268
then
 
41269
 
 
41270
cat >>confdefs.h <<\_ACEOF
 
41271
#define NDB_SHM_TRANSPORTER 1
 
41272
_ACEOF
 
41273
 
 
41274
   echo "$as_me:$LINENO: result: Including ndb shared memory transporter" >&5
 
41275
echo "${ECHO_T}Including ndb shared memory transporter" >&6
 
41276
   ndb_transporter_opt_objs="$ndb_transporter_opt_objs SHM_Transporter.lo SHM_Transporter.unix.lo"
 
41277
else
 
41278
   echo "$as_me:$LINENO: result: Not including ndb shared memory transporter" >&5
 
41279
echo "${ECHO_T}Not including ndb shared memory transporter" >&6
 
41280
fi
 
41281
 
 
41282
if test X"$have_ndb_sci" = Xyes
 
41283
then
 
41284
  ndb_transporter_opt_objs="$ndb_transporter_opt_objs SCI_Transporter.lo"
 
41285
fi
 
41286
 
 
41287
 
 
41288
ndb_opt_subdirs=
 
41289
ndb_bin_am_ldflags="-static"
 
41290
if test X"$have_ndb_test" = Xyes
 
41291
then
 
41292
  ndb_opt_subdirs="test"
 
41293
  ndb_bin_am_ldflags=""
 
41294
fi
 
41295
if test X"$have_ndb_docs" = Xyes
 
41296
then
 
41297
  ndb_opt_subdirs="$ndb_opt_subdirs docs"
 
41298
  ndb_bin_am_ldflags=""
 
41299
fi
 
41300
 
 
41301
 
 
41302
 
 
41303
NDB_SIZEOF_CHARP="$ac_cv_sizeof_charp"
 
41304
NDB_SIZEOF_CHAR="$ac_cv_sizeof_char"
 
41305
NDB_SIZEOF_SHORT="$ac_cv_sizeof_short"
 
41306
NDB_SIZEOF_INT="$ac_cv_sizeof_int"
 
41307
NDB_SIZEOF_LONG="$ac_cv_sizeof_long"
 
41308
NDB_SIZEOF_LONG_LONG="$ac_cv_sizeof_long_long"
 
41309
 
 
41310
 
 
41311
 
 
41312
 
 
41313
 
 
41314
 
 
41315
 
 
41316
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ac_config_files="$ac_config_files ndb/Makefile ndb/include/Makefile ndb/src/Makefile ndb/src/common/Makefile ndb/docs/Makefile ndb/tools/Makefile ndb/src/common/debugger/Makefile ndb/src/common/debugger/signaldata/Makefile ndb/src/common/portlib/Makefile ndb/src/common/util/Makefile ndb/src/common/logger/Makefile ndb/src/common/transporter/Makefile ndb/src/common/mgmcommon/Makefile ndb/src/kernel/Makefile ndb/src/kernel/error/Makefile ndb/src/kernel/blocks/Makefile ndb/src/kernel/blocks/cmvmi/Makefile ndb/src/kernel/blocks/dbacc/Makefile ndb/src/kernel/blocks/dbdict/Makefile ndb/src/kernel/blocks/dbdih/Makefile ndb/src/kernel/blocks/dblqh/Makefile ndb/src/kernel/blocks/dbtc/Makefile ndb/src/kernel/blocks/dbtup/Makefile ndb/src/kernel/blocks/ndbfs/Makefile ndb/src/kernel/blocks/ndbcntr/Makefile ndb/src/kernel/blocks/qmgr/Makefile ndb/src/kernel/blocks/trix/Makefile ndb/src/kernel/blocks/backup/Makefile ndb/src/kernel/blocks/dbutil/Makefile ndb/src/kernel/blocks/suma/Makefile ndb/src/kernel/blocks/dbtux/Makefile ndb/src/kernel/vm/Makefile ndb/src/mgmapi/Makefile ndb/src/ndbapi/Makefile ndb/src/mgmsrv/Makefile ndb/src/mgmclient/Makefile ndb/src/cw/Makefile ndb/src/cw/cpcd/Makefile ndb/test/Makefile ndb/test/src/Makefile ndb/test/ndbapi/Makefile ndb/test/ndbapi/bank/Makefile ndb/test/tools/Makefile ndb/test/run-test/Makefile mysql-test/ndb/Makefile ndb/include/ndb_version.h ndb/include/ndb_global.h ndb/include/ndb_types.h"
 
41317
 
 
41318
fi
 
41319
 
 
41320
 
 
41321
 
 
41322
# Output results
 
41323
                                                                                                                                                                                                                                                                                                                                                                                                                ac_config_files="$ac_config_files Makefile extra/Makefile mysys/Makefile strings/Makefile regex/Makefile heap/Makefile myisam/Makefile myisammrg/Makefile os2/Makefile os2/include/Makefile os2/include/sys/Makefile man/Makefile BUILD/Makefile vio/Makefile libmysql/Makefile client/Makefile pstack/Makefile pstack/aout/Makefile sql/Makefile sql/share/Makefile sql-common/Makefile SSL/Makefile dbug/Makefile scripts/Makefile include/Makefile sql-bench/Makefile server-tools/Makefile server-tools/instance-manager/Makefile tests/Makefile Docs/Makefile support-files/Makefile support-files/MacOSX/Makefile mysql-test/Makefile netware/Makefile include/mysql_version.h cmd-line-utils/Makefile cmd-line-utils/libedit/Makefile win/Makefile zlib/Makefile cmd-line-utils/readline/Makefile"
 
41324
 
 
41325
           ac_config_commands="$ac_config_commands default"
 
41326
 
 
41327
 cat >confcache <<\_ACEOF
 
41328
# This file is a shell script that caches the results of configure
 
41329
# tests run on this system so they can be shared between configure
 
41330
# scripts and configure runs, see configure's option --config-cache.
 
41331
# It is not useful on other systems.  If it contains results you don't
 
41332
# want to keep, you may remove or edit it.
 
41333
#
 
41334
# config.status only pays attention to the cache file if you give it
 
41335
# the --recheck option to rerun configure.
 
41336
#
 
41337
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
41338
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
41339
# following values.
 
41340
 
 
41341
_ACEOF
 
41342
 
 
41343
# The following way of writing the cache mishandles newlines in values,
 
41344
# but we know of no workaround that is simple, portable, and efficient.
 
41345
# So, don't put newlines in cache variables' values.
 
41346
# Ultrix sh set writes to stderr and can't be redirected directly,
 
41347
# and sets the high bit in the cache file unless we assign to the vars.
 
41348
{
 
41349
  (set) 2>&1 |
 
41350
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
41351
    *ac_space=\ *)
 
41352
      # `set' does not quote correctly, so add quotes (double-quote
 
41353
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
41354
      sed -n \
 
41355
        "s/'/'\\\\''/g;
 
41356
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
41357
      ;;
 
41358
    *)
 
41359
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
41360
      sed -n \
 
41361
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
41362
      ;;
 
41363
    esac;
 
41364
} |
 
41365
  sed '
 
41366
     t clear
 
41367
     : clear
 
41368
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
41369
     t end
 
41370
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
41371
     : end' >>confcache
 
41372
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
41373
  if test -w $cache_file; then
 
41374
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
41375
    cat confcache >$cache_file
 
41376
  else
 
41377
    echo "not updating unwritable cache $cache_file"
 
41378
  fi
 
41379
fi
 
41380
rm -f confcache
 
41381
 
 
41382
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
41383
# Let make expand exec_prefix.
 
41384
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
41385
 
 
41386
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
41387
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
41388
# trailing colons and then remove the whole line if VPATH becomes empty
 
41389
# (actually we leave an empty line to preserve line numbers).
 
41390
if test "x$srcdir" = x.; then
 
41391
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
41392
s/:*\$(srcdir):*/:/;
 
41393
s/:*\${srcdir}:*/:/;
 
41394
s/:*@srcdir@:*/:/;
 
41395
s/^\([^=]*=[     ]*\):*/\1/;
 
41396
s/:*$//;
 
41397
s/^[^=]*=[       ]*$//;
 
41398
}'
 
41399
fi
 
41400
 
 
41401
DEFS=-DHAVE_CONFIG_H
 
41402
 
 
41403
ac_libobjs=
 
41404
ac_ltlibobjs=
 
41405
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
41406
  # 1. Remove the extension, and $U if already installed.
 
41407
  ac_i=`echo "$ac_i" |
 
41408
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
41409
  # 2. Add them.
 
41410
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
41411
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
41412
done
 
41413
LIBOBJS=$ac_libobjs
 
41414
 
 
41415
LTLIBOBJS=$ac_ltlibobjs
 
41416
 
 
41417
 
 
41418
if test -z "${DARWIN_MWCC_TRUE}" && test -z "${DARWIN_MWCC_FALSE}"; then
 
41419
  { { echo "$as_me:$LINENO: error: conditional \"DARWIN_MWCC\" was never defined.
 
41420
Usually this means the macro was only invoked conditionally." >&5
 
41421
echo "$as_me: error: conditional \"DARWIN_MWCC\" was never defined.
 
41422
Usually this means the macro was only invoked conditionally." >&2;}
 
41423
   { (exit 1); exit 1; }; }
 
41424
fi
 
41425
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
41426
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
41427
Usually this means the macro was only invoked conditionally." >&5
 
41428
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
41429
Usually this means the macro was only invoked conditionally." >&2;}
 
41430
   { (exit 1); exit 1; }; }
 
41431
fi
 
41432
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
41433
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
41434
Usually this means the macro was only invoked conditionally." >&5
 
41435
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
41436
Usually this means the macro was only invoked conditionally." >&2;}
 
41437
   { (exit 1); exit 1; }; }
 
41438
fi
 
41439
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
41440
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
41441
Usually this means the macro was only invoked conditionally." >&5
 
41442
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
41443
Usually this means the macro was only invoked conditionally." >&2;}
 
41444
   { (exit 1); exit 1; }; }
 
41445
fi
 
41446
if test -z "${ASSEMBLER_x86_TRUE}" && test -z "${ASSEMBLER_x86_FALSE}"; then
 
41447
  { { echo "$as_me:$LINENO: error: conditional \"ASSEMBLER_x86\" was never defined.
 
41448
Usually this means the macro was only invoked conditionally." >&5
 
41449
echo "$as_me: error: conditional \"ASSEMBLER_x86\" was never defined.
 
41450
Usually this means the macro was only invoked conditionally." >&2;}
 
41451
   { (exit 1); exit 1; }; }
 
41452
fi
 
41453
if test -z "${ASSEMBLER_sparc32_TRUE}" && test -z "${ASSEMBLER_sparc32_FALSE}"; then
 
41454
  { { echo "$as_me:$LINENO: error: conditional \"ASSEMBLER_sparc32\" was never defined.
 
41455
Usually this means the macro was only invoked conditionally." >&5
 
41456
echo "$as_me: error: conditional \"ASSEMBLER_sparc32\" was never defined.
 
41457
Usually this means the macro was only invoked conditionally." >&2;}
 
41458
   { (exit 1); exit 1; }; }
 
41459
fi
 
41460
if test -z "${ASSEMBLER_sparc64_TRUE}" && test -z "${ASSEMBLER_sparc64_FALSE}"; then
 
41461
  { { echo "$as_me:$LINENO: error: conditional \"ASSEMBLER_sparc64\" was never defined.
 
41462
Usually this means the macro was only invoked conditionally." >&5
 
41463
echo "$as_me: error: conditional \"ASSEMBLER_sparc64\" was never defined.
 
41464
Usually this means the macro was only invoked conditionally." >&2;}
 
41465
   { (exit 1); exit 1; }; }
 
41466
fi
 
41467
if test -z "${ASSEMBLER_TRUE}" && test -z "${ASSEMBLER_FALSE}"; then
 
41468
  { { echo "$as_me:$LINENO: error: conditional \"ASSEMBLER\" was never defined.
 
41469
Usually this means the macro was only invoked conditionally." >&5
 
41470
echo "$as_me: error: conditional \"ASSEMBLER\" was never defined.
 
41471
Usually this means the macro was only invoked conditionally." >&2;}
 
41472
   { (exit 1); exit 1; }; }
 
41473
fi
 
41474
if test -z "${COMPILE_PSTACK_TRUE}" && test -z "${COMPILE_PSTACK_FALSE}"; then
 
41475
  { { echo "$as_me:$LINENO: error: conditional \"COMPILE_PSTACK\" was never defined.
 
41476
Usually this means the macro was only invoked conditionally." >&5
 
41477
echo "$as_me: error: conditional \"COMPILE_PSTACK\" was never defined.
 
41478
Usually this means the macro was only invoked conditionally." >&2;}
 
41479
   { (exit 1); exit 1; }; }
 
41480
fi
 
41481
if test -z "${HAVE_YASSL_TRUE}" && test -z "${HAVE_YASSL_FALSE}"; then
 
41482
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_YASSL\" was never defined.
 
41483
Usually this means the macro was only invoked conditionally." >&5
 
41484
echo "$as_me: error: conditional \"HAVE_YASSL\" was never defined.
 
41485
Usually this means the macro was only invoked conditionally." >&2;}
 
41486
   { (exit 1); exit 1; }; }
 
41487
fi
 
41488
if test -z "${HAVE_NDBCLUSTER_DB_TRUE}" && test -z "${HAVE_NDBCLUSTER_DB_FALSE}"; then
 
41489
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBCLUSTER_DB\" was never defined.
 
41490
Usually this means the macro was only invoked conditionally." >&5
 
41491
echo "$as_me: error: conditional \"HAVE_NDBCLUSTER_DB\" was never defined.
 
41492
Usually this means the macro was only invoked conditionally." >&2;}
 
41493
   { (exit 1); exit 1; }; }
 
41494
fi
 
41495
if test -z "${HAVE_NETWARE_TRUE}" && test -z "${HAVE_NETWARE_FALSE}"; then
 
41496
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_NETWARE\" was never defined.
 
41497
Usually this means the macro was only invoked conditionally." >&5
 
41498
echo "$as_me: error: conditional \"HAVE_NETWARE\" was never defined.
 
41499
Usually this means the macro was only invoked conditionally." >&2;}
 
41500
   { (exit 1); exit 1; }; }
 
41501
fi
 
41502
 
 
41503
: ${CONFIG_STATUS=./config.status}
 
41504
ac_clean_files_save=$ac_clean_files
 
41505
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
41506
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
41507
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
41508
cat >$CONFIG_STATUS <<_ACEOF
 
41509
#! $SHELL
 
41510
# Generated by $as_me.
 
41511
# Run this file to recreate the current configuration.
 
41512
# Compiler output produced by configure, useful for debugging
 
41513
# configure, is in config.log if it exists.
 
41514
 
 
41515
debug=false
 
41516
ac_cs_recheck=false
 
41517
ac_cs_silent=false
 
41518
SHELL=\${CONFIG_SHELL-$SHELL}
 
41519
_ACEOF
 
41520
 
 
41521
cat >>$CONFIG_STATUS <<\_ACEOF
 
41522
## --------------------- ##
 
41523
## M4sh Initialization.  ##
 
41524
## --------------------- ##
 
41525
 
 
41526
# Be Bourne compatible
 
41527
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
41528
  emulate sh
 
41529
  NULLCMD=:
 
41530
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
41531
  # is contrary to our usage.  Disable this feature.
 
41532
  alias -g '${1+"$@"}'='"$@"'
 
41533
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
41534
  set -o posix
 
41535
fi
 
41536
DUALCASE=1; export DUALCASE # for MKS sh
 
41537
 
 
41538
# Support unset when possible.
 
41539
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
41540
  as_unset=unset
 
41541
else
 
41542
  as_unset=false
 
41543
fi
 
41544
 
 
41545
 
 
41546
# Work around bugs in pre-3.0 UWIN ksh.
 
41547
$as_unset ENV MAIL MAILPATH
 
41548
PS1='$ '
 
41549
PS2='> '
 
41550
PS4='+ '
 
41551
 
 
41552
# NLS nuisances.
 
41553
for as_var in \
 
41554
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41555
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
41556
  LC_TELEPHONE LC_TIME
 
41557
do
 
41558
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
41559
    eval $as_var=C; export $as_var
 
41560
  else
 
41561
    $as_unset $as_var
 
41562
  fi
 
41563
done
 
41564
 
 
41565
# Required to use basename.
 
41566
if expr a : '\(a\)' >/dev/null 2>&1; then
 
41567
  as_expr=expr
 
41568
else
 
41569
  as_expr=false
 
41570
fi
 
41571
 
 
41572
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
41573
  as_basename=basename
 
41574
else
 
41575
  as_basename=false
 
41576
fi
 
41577
 
 
41578
 
 
41579
# Name of the executable.
 
41580
as_me=`$as_basename "$0" ||
 
41581
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
41582
         X"$0" : 'X\(//\)$' \| \
 
41583
         X"$0" : 'X\(/\)$' \| \
 
41584
         .     : '\(.\)' 2>/dev/null ||
 
41585
echo X/"$0" |
 
41586
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
41587
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
41588
          /^X\/\(\/\).*/{ s//\1/; q; }
 
41589
          s/.*/./; q'`
 
41590
 
 
41591
 
 
41592
# PATH needs CR, and LINENO needs CR and PATH.
 
41593
# Avoid depending upon Character Ranges.
 
41594
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
41595
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
41596
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
41597
as_cr_digits='0123456789'
 
41598
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41599
 
 
41600
# The user is always right.
 
41601
if test "${PATH_SEPARATOR+set}" != set; then
 
41602
  echo "#! /bin/sh" >conf$$.sh
 
41603
  echo  "exit 0"   >>conf$$.sh
 
41604
  chmod +x conf$$.sh
 
41605
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
41606
    PATH_SEPARATOR=';'
 
41607
  else
 
41608
    PATH_SEPARATOR=:
 
41609
  fi
 
41610
  rm -f conf$$.sh
 
41611
fi
 
41612
 
 
41613
 
 
41614
  as_lineno_1=$LINENO
 
41615
  as_lineno_2=$LINENO
 
41616
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
41617
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
41618
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
41619
  # Find who we are.  Look in the path if we contain no path at all
 
41620
  # relative or not.
 
41621
  case $0 in
 
41622
    *[\\/]* ) as_myself=$0 ;;
 
41623
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
41624
for as_dir in $PATH
 
41625
do
 
41626
  IFS=$as_save_IFS
 
41627
  test -z "$as_dir" && as_dir=.
 
41628
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
41629
done
 
41630
 
 
41631
       ;;
 
41632
  esac
 
41633
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
41634
  # in which case we are not to be found in the path.
 
41635
  if test "x$as_myself" = x; then
 
41636
    as_myself=$0
 
41637
  fi
 
41638
  if test ! -f "$as_myself"; then
 
41639
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
41640
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
41641
   { (exit 1); exit 1; }; }
 
41642
  fi
 
41643
  case $CONFIG_SHELL in
 
41644
  '')
 
41645
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
41646
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
41647
do
 
41648
  IFS=$as_save_IFS
 
41649
  test -z "$as_dir" && as_dir=.
 
41650
  for as_base in sh bash ksh sh5; do
 
41651
         case $as_dir in
 
41652
         /*)
 
41653
           if ("$as_dir/$as_base" -c '
 
41654
  as_lineno_1=$LINENO
 
41655
  as_lineno_2=$LINENO
 
41656
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
41657
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
41658
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
41659
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
41660
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
41661
             CONFIG_SHELL=$as_dir/$as_base
 
41662
             export CONFIG_SHELL
 
41663
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
41664
           fi;;
 
41665
         esac
 
41666
       done
 
41667
done
 
41668
;;
 
41669
  esac
 
41670
 
 
41671
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
41672
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
41673
  # line-number line before each line; the second 'sed' does the real
 
41674
  # work.  The second script uses 'N' to pair each line-number line
 
41675
  # with the numbered line, and appends trailing '-' during
 
41676
  # substitution so that $LINENO is not a special case at line end.
 
41677
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
41678
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
41679
  sed '=' <$as_myself |
 
41680
    sed '
 
41681
      N
 
41682
      s,$,-,
 
41683
      : loop
 
41684
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
41685
      t loop
 
41686
      s,-$,,
 
41687
      s,^['$as_cr_digits']*\n,,
 
41688
    ' >$as_me.lineno &&
 
41689
  chmod +x $as_me.lineno ||
 
41690
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
41691
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
41692
   { (exit 1); exit 1; }; }
 
41693
 
 
41694
  # Don't try to exec as it changes $[0], causing all sort of problems
 
41695
  # (the dirname of $[0] is not the place where we might find the
 
41696
  # original and so on.  Autoconf is especially sensible to this).
 
41697
  . ./$as_me.lineno
 
41698
  # Exit status is that of the last command.
 
41699
  exit
 
41700
}
 
41701
 
 
41702
 
 
41703
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
41704
  *c*,-n*) ECHO_N= ECHO_C='
 
41705
' ECHO_T='      ' ;;
 
41706
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
41707
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
41708
esac
 
41709
 
 
41710
if expr a : '\(a\)' >/dev/null 2>&1; then
 
41711
  as_expr=expr
 
41712
else
 
41713
  as_expr=false
 
41714
fi
 
41715
 
 
41716
rm -f conf$$ conf$$.exe conf$$.file
 
41717
echo >conf$$.file
 
41718
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
41719
  # We could just check for DJGPP; but this test a) works b) is more generic
 
41720
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
41721
  if test -f conf$$.exe; then
 
41722
    # Don't use ln at all; we don't have any links
 
41723
    as_ln_s='cp -p'
 
41724
  else
 
41725
    as_ln_s='ln -s'
 
41726
  fi
 
41727
elif ln conf$$.file conf$$ 2>/dev/null; then
 
41728
  as_ln_s=ln
 
41729
else
 
41730
  as_ln_s='cp -p'
 
41731
fi
 
41732
rm -f conf$$ conf$$.exe conf$$.file
 
41733
 
 
41734
if mkdir -p . 2>/dev/null; then
 
41735
  as_mkdir_p=:
 
41736
else
 
41737
  test -d ./-p && rmdir ./-p
 
41738
  as_mkdir_p=false
 
41739
fi
 
41740
 
 
41741
as_executable_p="test -f"
 
41742
 
 
41743
# Sed expression to map a string onto a valid CPP name.
 
41744
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
41745
 
 
41746
# Sed expression to map a string onto a valid variable name.
 
41747
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
41748
 
 
41749
 
 
41750
# IFS
 
41751
# We need space, tab and new line, in precisely that order.
 
41752
as_nl='
 
41753
'
 
41754
IFS="   $as_nl"
 
41755
 
 
41756
# CDPATH.
 
41757
$as_unset CDPATH
 
41758
 
 
41759
exec 6>&1
 
41760
 
 
41761
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
41762
# report actual input values of CONFIG_FILES etc. instead of their
 
41763
# values after options handling.  Logging --version etc. is OK.
 
41764
exec 5>>config.log
 
41765
{
 
41766
  echo
 
41767
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
41768
## Running $as_me. ##
 
41769
_ASBOX
 
41770
} >&5
 
41771
cat >&5 <<_CSEOF
 
41772
 
 
41773
This file was extended by $as_me, which was
 
41774
generated by GNU Autoconf 2.59.  Invocation command line was
 
41775
 
 
41776
  CONFIG_FILES    = $CONFIG_FILES
 
41777
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
41778
  CONFIG_LINKS    = $CONFIG_LINKS
 
41779
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
41780
  $ $0 $@
 
41781
 
 
41782
_CSEOF
 
41783
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
41784
echo >&5
 
41785
_ACEOF
 
41786
 
 
41787
# Files that config.status was made for.
 
41788
if test -n "$ac_config_files"; then
 
41789
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
41790
fi
 
41791
 
 
41792
if test -n "$ac_config_headers"; then
 
41793
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
41794
fi
 
41795
 
 
41796
if test -n "$ac_config_links"; then
 
41797
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
41798
fi
 
41799
 
 
41800
if test -n "$ac_config_commands"; then
 
41801
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
41802
fi
 
41803
 
 
41804
cat >>$CONFIG_STATUS <<\_ACEOF
 
41805
 
 
41806
ac_cs_usage="\
 
41807
\`$as_me' instantiates files from templates according to the
 
41808
current configuration.
 
41809
 
 
41810
Usage: $0 [OPTIONS] [FILE]...
 
41811
 
 
41812
  -h, --help       print this help, then exit
 
41813
  -V, --version    print version number, then exit
 
41814
  -q, --quiet      do not print progress messages
 
41815
  -d, --debug      don't remove temporary files
 
41816
      --recheck    update $as_me by reconfiguring in the same conditions
 
41817
  --file=FILE[:TEMPLATE]
 
41818
                   instantiate the configuration file FILE
 
41819
  --header=FILE[:TEMPLATE]
 
41820
                   instantiate the configuration header FILE
 
41821
 
 
41822
Configuration files:
 
41823
$config_files
 
41824
 
 
41825
Configuration headers:
 
41826
$config_headers
 
41827
 
 
41828
Configuration commands:
 
41829
$config_commands
 
41830
 
 
41831
Report bugs to <bug-autoconf@gnu.org>."
 
41832
_ACEOF
 
41833
 
 
41834
cat >>$CONFIG_STATUS <<_ACEOF
 
41835
ac_cs_version="\\
 
41836
config.status
 
41837
configured by $0, generated by GNU Autoconf 2.59,
 
41838
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
41839
 
 
41840
Copyright (C) 2003 Free Software Foundation, Inc.
 
41841
This config.status script is free software; the Free Software Foundation
 
41842
gives unlimited permission to copy, distribute and modify it."
 
41843
srcdir=$srcdir
 
41844
INSTALL="$INSTALL"
 
41845
_ACEOF
 
41846
 
 
41847
cat >>$CONFIG_STATUS <<\_ACEOF
 
41848
# If no file are specified by the user, then we need to provide default
 
41849
# value.  By we need to know if files were specified by the user.
 
41850
ac_need_defaults=:
 
41851
while test $# != 0
 
41852
do
 
41853
  case $1 in
 
41854
  --*=*)
 
41855
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
41856
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
41857
    ac_shift=:
 
41858
    ;;
 
41859
  -*)
 
41860
    ac_option=$1
 
41861
    ac_optarg=$2
 
41862
    ac_shift=shift
 
41863
    ;;
 
41864
  *) # This is not an option, so the user has probably given explicit
 
41865
     # arguments.
 
41866
     ac_option=$1
 
41867
     ac_need_defaults=false;;
 
41868
  esac
 
41869
 
 
41870
  case $ac_option in
 
41871
  # Handling of the options.
 
41872
_ACEOF
 
41873
cat >>$CONFIG_STATUS <<\_ACEOF
 
41874
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
41875
    ac_cs_recheck=: ;;
 
41876
  --version | --vers* | -V )
 
41877
    echo "$ac_cs_version"; exit 0 ;;
 
41878
  --he | --h)
 
41879
    # Conflict between --help and --header
 
41880
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
41881
Try \`$0 --help' for more information." >&5
 
41882
echo "$as_me: error: ambiguous option: $1
 
41883
Try \`$0 --help' for more information." >&2;}
 
41884
   { (exit 1); exit 1; }; };;
 
41885
  --help | --hel | -h )
 
41886
    echo "$ac_cs_usage"; exit 0 ;;
 
41887
  --debug | --d* | -d )
 
41888
    debug=: ;;
 
41889
  --file | --fil | --fi | --f )
 
41890
    $ac_shift
 
41891
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
41892
    ac_need_defaults=false;;
 
41893
  --header | --heade | --head | --hea )
 
41894
    $ac_shift
 
41895
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
41896
    ac_need_defaults=false;;
 
41897
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
41898
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
41899
    ac_cs_silent=: ;;
 
41900
 
 
41901
  # This is an error.
 
41902
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
41903
Try \`$0 --help' for more information." >&5
 
41904
echo "$as_me: error: unrecognized option: $1
 
41905
Try \`$0 --help' for more information." >&2;}
 
41906
   { (exit 1); exit 1; }; } ;;
 
41907
 
 
41908
  *) ac_config_targets="$ac_config_targets $1" ;;
 
41909
 
 
41910
  esac
 
41911
  shift
 
41912
done
 
41913
 
 
41914
ac_configure_extra_args=
 
41915
 
 
41916
if $ac_cs_silent; then
 
41917
  exec 6>/dev/null
 
41918
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
41919
fi
 
41920
 
 
41921
_ACEOF
 
41922
cat >>$CONFIG_STATUS <<_ACEOF
 
41923
if \$ac_cs_recheck; then
 
41924
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
41925
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
41926
fi
 
41927
 
 
41928
_ACEOF
 
41929
 
 
41930
cat >>$CONFIG_STATUS <<_ACEOF
 
41931
#
 
41932
# INIT-COMMANDS section.
 
41933
#
 
41934
 
 
41935
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
41936
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
 
41937
 
 
41938
_ACEOF
 
41939
 
 
41940
 
 
41941
 
 
41942
cat >>$CONFIG_STATUS <<\_ACEOF
 
41943
for ac_config_target in $ac_config_targets
 
41944
do
 
41945
  case "$ac_config_target" in
 
41946
  # Handling of arguments.
 
41947
  "extra/yassl/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/yassl/Makefile" ;;
 
41948
  "extra/yassl/taocrypt/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/yassl/taocrypt/Makefile" ;;
 
41949
  "extra/yassl/taocrypt/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/yassl/taocrypt/src/Makefile" ;;
 
41950
  "extra/yassl/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/yassl/src/Makefile" ;;
 
41951
  "extra/yassl/testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/yassl/testsuite/Makefile" ;;
 
41952
  "extra/yassl/taocrypt/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/yassl/taocrypt/test/Makefile" ;;
 
41953
  "extra/yassl/taocrypt/benchmark/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/yassl/taocrypt/benchmark/Makefile" ;;
 
41954
  "libmysql/libmysql.ver" ) CONFIG_FILES="$CONFIG_FILES libmysql/libmysql.ver" ;;
 
41955
  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
 
41956
  "libmysqld/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmysqld/Makefile" ;;
 
41957
  "libmysqld/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmysqld/examples/Makefile" ;;
 
41958
  "libmysql_r/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmysql_r/Makefile" ;;
 
41959
  "bdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES bdb/Makefile" ;;
 
41960
  "ndb/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/Makefile" ;;
 
41961
  "ndb/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/include/Makefile" ;;
 
41962
  "ndb/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/Makefile" ;;
 
41963
  "ndb/src/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/common/Makefile" ;;
 
41964
  "ndb/docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/docs/Makefile" ;;
 
41965
  "ndb/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/tools/Makefile" ;;
 
41966
  "ndb/src/common/debugger/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/common/debugger/Makefile" ;;
 
41967
  "ndb/src/common/debugger/signaldata/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/common/debugger/signaldata/Makefile" ;;
 
41968
  "ndb/src/common/portlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/common/portlib/Makefile" ;;
 
41969
  "ndb/src/common/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/common/util/Makefile" ;;
 
41970
  "ndb/src/common/logger/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/common/logger/Makefile" ;;
 
41971
  "ndb/src/common/transporter/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/common/transporter/Makefile" ;;
 
41972
  "ndb/src/common/mgmcommon/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/common/mgmcommon/Makefile" ;;
 
41973
  "ndb/src/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/Makefile" ;;
 
41974
  "ndb/src/kernel/error/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/error/Makefile" ;;
 
41975
  "ndb/src/kernel/blocks/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/Makefile" ;;
 
41976
  "ndb/src/kernel/blocks/cmvmi/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/cmvmi/Makefile" ;;
 
41977
  "ndb/src/kernel/blocks/dbacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/dbacc/Makefile" ;;
 
41978
  "ndb/src/kernel/blocks/dbdict/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/dbdict/Makefile" ;;
 
41979
  "ndb/src/kernel/blocks/dbdih/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/dbdih/Makefile" ;;
 
41980
  "ndb/src/kernel/blocks/dblqh/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/dblqh/Makefile" ;;
 
41981
  "ndb/src/kernel/blocks/dbtc/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/dbtc/Makefile" ;;
 
41982
  "ndb/src/kernel/blocks/dbtup/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/dbtup/Makefile" ;;
 
41983
  "ndb/src/kernel/blocks/ndbfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/ndbfs/Makefile" ;;
 
41984
  "ndb/src/kernel/blocks/ndbcntr/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/ndbcntr/Makefile" ;;
 
41985
  "ndb/src/kernel/blocks/qmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/qmgr/Makefile" ;;
 
41986
  "ndb/src/kernel/blocks/trix/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/trix/Makefile" ;;
 
41987
  "ndb/src/kernel/blocks/backup/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/backup/Makefile" ;;
 
41988
  "ndb/src/kernel/blocks/dbutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/dbutil/Makefile" ;;
 
41989
  "ndb/src/kernel/blocks/suma/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/suma/Makefile" ;;
 
41990
  "ndb/src/kernel/blocks/dbtux/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/blocks/dbtux/Makefile" ;;
 
41991
  "ndb/src/kernel/vm/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/kernel/vm/Makefile" ;;
 
41992
  "ndb/src/mgmapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/mgmapi/Makefile" ;;
 
41993
  "ndb/src/ndbapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/ndbapi/Makefile" ;;
 
41994
  "ndb/src/mgmsrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/mgmsrv/Makefile" ;;
 
41995
  "ndb/src/mgmclient/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/mgmclient/Makefile" ;;
 
41996
  "ndb/src/cw/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/cw/Makefile" ;;
 
41997
  "ndb/src/cw/cpcd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/src/cw/cpcd/Makefile" ;;
 
41998
  "ndb/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/test/Makefile" ;;
 
41999
  "ndb/test/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/test/src/Makefile" ;;
 
42000
  "ndb/test/ndbapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/test/ndbapi/Makefile" ;;
 
42001
  "ndb/test/ndbapi/bank/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/test/ndbapi/bank/Makefile" ;;
 
42002
  "ndb/test/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/test/tools/Makefile" ;;
 
42003
  "ndb/test/run-test/Makefile" ) CONFIG_FILES="$CONFIG_FILES ndb/test/run-test/Makefile" ;;
 
42004
  "mysql-test/ndb/Makefile" ) CONFIG_FILES="$CONFIG_FILES mysql-test/ndb/Makefile" ;;
 
42005
  "ndb/include/ndb_version.h" ) CONFIG_FILES="$CONFIG_FILES ndb/include/ndb_version.h" ;;
 
42006
  "ndb/include/ndb_global.h" ) CONFIG_FILES="$CONFIG_FILES ndb/include/ndb_global.h" ;;
 
42007
  "ndb/include/ndb_types.h" ) CONFIG_FILES="$CONFIG_FILES ndb/include/ndb_types.h" ;;
 
42008
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
42009
  "extra/Makefile" ) CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
 
42010
  "mysys/Makefile" ) CONFIG_FILES="$CONFIG_FILES mysys/Makefile" ;;
 
42011
  "strings/Makefile" ) CONFIG_FILES="$CONFIG_FILES strings/Makefile" ;;
 
42012
  "regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES regex/Makefile" ;;
 
42013
  "heap/Makefile" ) CONFIG_FILES="$CONFIG_FILES heap/Makefile" ;;
 
42014
  "myisam/Makefile" ) CONFIG_FILES="$CONFIG_FILES myisam/Makefile" ;;
 
42015
  "myisammrg/Makefile" ) CONFIG_FILES="$CONFIG_FILES myisammrg/Makefile" ;;
 
42016
  "os2/Makefile" ) CONFIG_FILES="$CONFIG_FILES os2/Makefile" ;;
 
42017
  "os2/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES os2/include/Makefile" ;;
 
42018
  "os2/include/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES os2/include/sys/Makefile" ;;
 
42019
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
42020
  "BUILD/Makefile" ) CONFIG_FILES="$CONFIG_FILES BUILD/Makefile" ;;
 
42021
  "vio/Makefile" ) CONFIG_FILES="$CONFIG_FILES vio/Makefile" ;;
 
42022
  "libmysql/Makefile" ) CONFIG_FILES="$CONFIG_FILES libmysql/Makefile" ;;
 
42023
  "client/Makefile" ) CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
 
42024
  "pstack/Makefile" ) CONFIG_FILES="$CONFIG_FILES pstack/Makefile" ;;
 
42025
  "pstack/aout/Makefile" ) CONFIG_FILES="$CONFIG_FILES pstack/aout/Makefile" ;;
 
42026
  "sql/Makefile" ) CONFIG_FILES="$CONFIG_FILES sql/Makefile" ;;
 
42027
  "sql/share/Makefile" ) CONFIG_FILES="$CONFIG_FILES sql/share/Makefile" ;;
 
42028
  "sql-common/Makefile" ) CONFIG_FILES="$CONFIG_FILES sql-common/Makefile" ;;
 
42029
  "SSL/Makefile" ) CONFIG_FILES="$CONFIG_FILES SSL/Makefile" ;;
 
42030
  "dbug/Makefile" ) CONFIG_FILES="$CONFIG_FILES dbug/Makefile" ;;
 
42031
  "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
 
42032
  "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
42033
  "sql-bench/Makefile" ) CONFIG_FILES="$CONFIG_FILES sql-bench/Makefile" ;;
 
42034
  "server-tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-tools/Makefile" ;;
 
42035
  "server-tools/instance-manager/Makefile" ) CONFIG_FILES="$CONFIG_FILES server-tools/instance-manager/Makefile" ;;
 
42036
  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
42037
  "Docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES Docs/Makefile" ;;
 
42038
  "support-files/Makefile" ) CONFIG_FILES="$CONFIG_FILES support-files/Makefile" ;;
 
42039
  "support-files/MacOSX/Makefile" ) CONFIG_FILES="$CONFIG_FILES support-files/MacOSX/Makefile" ;;
 
42040
  "mysql-test/Makefile" ) CONFIG_FILES="$CONFIG_FILES mysql-test/Makefile" ;;
 
42041
  "netware/Makefile" ) CONFIG_FILES="$CONFIG_FILES netware/Makefile" ;;
 
42042
  "include/mysql_version.h" ) CONFIG_FILES="$CONFIG_FILES include/mysql_version.h" ;;
 
42043
  "cmd-line-utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd-line-utils/Makefile" ;;
 
42044
  "cmd-line-utils/libedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd-line-utils/libedit/Makefile" ;;
 
42045
  "win/Makefile" ) CONFIG_FILES="$CONFIG_FILES win/Makefile" ;;
 
42046
  "zlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
 
42047
  "cmd-line-utils/readline/Makefile" ) CONFIG_FILES="$CONFIG_FILES cmd-line-utils/readline/Makefile" ;;
 
42048
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
42049
  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
 
42050
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
42051
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
42052
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
42053
   { (exit 1); exit 1; }; };;
 
42054
  esac
 
42055
done
 
42056
 
 
42057
# If the user did not use the arguments to specify the items to instantiate,
 
42058
# then the envvar interface is used.  Set only those that are not.
 
42059
# We use the long form for the default assignment because of an extremely
 
42060
# bizarre bug on SunOS 4.1.3.
 
42061
if $ac_need_defaults; then
 
42062
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
42063
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
42064
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
42065
fi
 
42066
 
 
42067
# Have a temporary directory for convenience.  Make it in the build tree
 
42068
# simply because there is no reason to put it here, and in addition,
 
42069
# creating and moving files from /tmp can sometimes cause problems.
 
42070
# Create a temporary directory, and hook for its removal unless debugging.
 
42071
$debug ||
 
42072
{
 
42073
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
42074
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
42075
}
 
42076
 
 
42077
# Create a (secure) tmp directory for tmp files.
 
42078
 
 
42079
{
 
42080
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
42081
  test -n "$tmp" && test -d "$tmp"
 
42082
}  ||
 
42083
{
 
42084
  tmp=./confstat$$-$RANDOM
 
42085
  (umask 077 && mkdir $tmp)
 
42086
} ||
 
42087
{
 
42088
   echo "$me: cannot create a temporary directory in ." >&2
 
42089
   { (exit 1); exit 1; }
 
42090
}
 
42091
 
 
42092
_ACEOF
 
42093
 
 
42094
cat >>$CONFIG_STATUS <<_ACEOF
 
42095
 
 
42096
#
 
42097
# CONFIG_FILES section.
 
42098
#
 
42099
 
 
42100
# No need to generate the scripts if there are no CONFIG_FILES.
 
42101
# This happens for instance when ./config.status config.h
 
42102
if test -n "\$CONFIG_FILES"; then
 
42103
  # Protect against being on the right side of a sed subst in config.status.
 
42104
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
42105
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
42106
s,@SHELL@,$SHELL,;t t
 
42107
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
42108
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
42109
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
42110
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
42111
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
42112
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
42113
s,@exec_prefix@,$exec_prefix,;t t
 
42114
s,@prefix@,$prefix,;t t
 
42115
s,@program_transform_name@,$program_transform_name,;t t
 
42116
s,@bindir@,$bindir,;t t
 
42117
s,@sbindir@,$sbindir,;t t
 
42118
s,@libexecdir@,$libexecdir,;t t
 
42119
s,@datadir@,$datadir,;t t
 
42120
s,@sysconfdir@,$sysconfdir,;t t
 
42121
s,@sharedstatedir@,$sharedstatedir,;t t
 
42122
s,@localstatedir@,$localstatedir,;t t
 
42123
s,@libdir@,$libdir,;t t
 
42124
s,@includedir@,$includedir,;t t
 
42125
s,@oldincludedir@,$oldincludedir,;t t
 
42126
s,@infodir@,$infodir,;t t
 
42127
s,@mandir@,$mandir,;t t
 
42128
s,@build_alias@,$build_alias,;t t
 
42129
s,@host_alias@,$host_alias,;t t
 
42130
s,@target_alias@,$target_alias,;t t
 
42131
s,@DEFS@,$DEFS,;t t
 
42132
s,@ECHO_C@,$ECHO_C,;t t
 
42133
s,@ECHO_N@,$ECHO_N,;t t
 
42134
s,@ECHO_T@,$ECHO_T,;t t
 
42135
s,@LIBS@,$LIBS,;t t
 
42136
s,@build@,$build,;t t
 
42137
s,@build_cpu@,$build_cpu,;t t
 
42138
s,@build_vendor@,$build_vendor,;t t
 
42139
s,@build_os@,$build_os,;t t
 
42140
s,@host@,$host,;t t
 
42141
s,@host_cpu@,$host_cpu,;t t
 
42142
s,@host_vendor@,$host_vendor,;t t
 
42143
s,@host_os@,$host_os,;t t
 
42144
s,@target@,$target,;t t
 
42145
s,@target_cpu@,$target_cpu,;t t
 
42146
s,@target_vendor@,$target_vendor,;t t
 
42147
s,@target_os@,$target_os,;t t
 
42148
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
42149
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
42150
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
42151
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
42152
s,@PACKAGE@,$PACKAGE,;t t
 
42153
s,@VERSION@,$VERSION,;t t
 
42154
s,@ACLOCAL@,$ACLOCAL,;t t
 
42155
s,@AUTOCONF@,$AUTOCONF,;t t
 
42156
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
42157
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
42158
s,@MAKEINFO@,$MAKEINFO,;t t
 
42159
s,@install_sh@,$install_sh,;t t
 
42160
s,@STRIP@,$STRIP,;t t
 
42161
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
42162
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
42163
s,@mkdir_p@,$mkdir_p,;t t
 
42164
s,@AWK@,$AWK,;t t
 
42165
s,@SET_MAKE@,$SET_MAKE,;t t
 
42166
s,@am__leading_dot@,$am__leading_dot,;t t
 
42167
s,@AMTAR@,$AMTAR,;t t
 
42168
s,@am__tar@,$am__tar,;t t
 
42169
s,@am__untar@,$am__untar,;t t
 
42170
s,@MYSQL_NO_DASH_VERSION@,$MYSQL_NO_DASH_VERSION,;t t
 
42171
s,@MYSQL_BASE_VERSION@,$MYSQL_BASE_VERSION,;t t
 
42172
s,@MYSQL_VERSION_ID@,$MYSQL_VERSION_ID,;t t
 
42173
s,@PROTOCOL_VERSION@,$PROTOCOL_VERSION,;t t
 
42174
s,@DOT_FRM_VERSION@,$DOT_FRM_VERSION,;t t
 
42175
s,@SHARED_LIB_MAJOR_VERSION@,$SHARED_LIB_MAJOR_VERSION,;t t
 
42176
s,@SHARED_LIB_VERSION@,$SHARED_LIB_VERSION,;t t
 
42177
s,@AVAILABLE_LANGUAGES@,$AVAILABLE_LANGUAGES,;t t
 
42178
s,@NDB_VERSION_MAJOR@,$NDB_VERSION_MAJOR,;t t
 
42179
s,@NDB_VERSION_MINOR@,$NDB_VERSION_MINOR,;t t
 
42180
s,@NDB_VERSION_BUILD@,$NDB_VERSION_BUILD,;t t
 
42181
s,@NDB_VERSION_STATUS@,$NDB_VERSION_STATUS,;t t
 
42182
s,@SYSTEM_TYPE@,$SYSTEM_TYPE,;t t
 
42183
s,@MACHINE_TYPE@,$MACHINE_TYPE,;t t
 
42184
s,@CONF_COMMAND@,$CONF_COMMAND,;t t
 
42185
s,@SAVE_ASFLAGS@,$SAVE_ASFLAGS,;t t
 
42186
s,@SAVE_CFLAGS@,$SAVE_CFLAGS,;t t
 
42187
s,@SAVE_CXXFLAGS@,$SAVE_CXXFLAGS,;t t
 
42188
s,@SAVE_LDFLAGS@,$SAVE_LDFLAGS,;t t
 
42189
s,@SAVE_CXXLDFLAGS@,$SAVE_CXXLDFLAGS,;t t
 
42190
s,@CXXLDFLAGS@,$CXXLDFLAGS,;t t
 
42191
s,@AR@,$AR,;t t
 
42192
s,@RANLIB@,$RANLIB,;t t
 
42193
s,@DARWIN_MWCC_TRUE@,$DARWIN_MWCC_TRUE,;t t
 
42194
s,@DARWIN_MWCC_FALSE@,$DARWIN_MWCC_FALSE,;t t
 
42195
s,@CC@,$CC,;t t
 
42196
s,@CFLAGS@,$CFLAGS,;t t
 
42197
s,@LDFLAGS@,$LDFLAGS,;t t
 
42198
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
42199
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
42200
s,@EXEEXT@,$EXEEXT,;t t
 
42201
s,@OBJEXT@,$OBJEXT,;t t
 
42202
s,@DEPDIR@,$DEPDIR,;t t
 
42203
s,@am__include@,$am__include,;t t
 
42204
s,@am__quote@,$am__quote,;t t
 
42205
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
42206
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
42207
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
42208
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
42209
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
42210
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
42211
s,@CXX@,$CXX,;t t
 
42212
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
42213
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
42214
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
42215
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
42216
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
42217
s,@CPP@,$CPP,;t t
 
42218
s,@CC_VERSION@,$CC_VERSION,;t t
 
42219
s,@CXX_VERSION@,$CXX_VERSION,;t t
 
42220
s,@AS@,$AS,;t t
 
42221
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
42222
s,@EGREP@,$EGREP,;t t
 
42223
s,@LN_S@,$LN_S,;t t
 
42224
s,@ECHO@,$ECHO,;t t
 
42225
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
42226
s,@CXXCPP@,$CXXCPP,;t t
 
42227
s,@F77@,$F77,;t t
 
42228
s,@FFLAGS@,$FFLAGS,;t t
 
42229
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
42230
s,@LIBTOOL@,$LIBTOOL,;t t
 
42231
s,@NM@,$NM,;t t
 
42232
s,@YACC@,$YACC,;t t
 
42233
s,@PDFMANUAL@,$PDFMANUAL,;t t
 
42234
s,@DVIS@,$DVIS,;t t
 
42235
s,@uname_prog@,$uname_prog,;t t
 
42236
s,@LD@,$LD,;t t
 
42237
s,@ARFLAGS@,$ARFLAGS,;t t
 
42238
s,@LD_VERSION_SCRIPT@,$LD_VERSION_SCRIPT,;t t
 
42239
s,@MYSQLD_DEFAULT_SWITCHES@,$MYSQLD_DEFAULT_SWITCHES,;t t
 
42240
s,@TARGET_LINUX@,$TARGET_LINUX,;t t
 
42241
s,@LN@,$LN,;t t
 
42242
s,@LN_CP_F@,$LN_CP_F,;t t
 
42243
s,@MV@,$MV,;t t
 
42244
s,@RM@,$RM,;t t
 
42245
s,@CP@,$CP,;t t
 
42246
s,@SED@,$SED,;t t
 
42247
s,@CMP@,$CMP,;t t
 
42248
s,@CHMOD@,$CHMOD,;t t
 
42249
s,@HOSTNAME@,$HOSTNAME,;t t
 
42250
s,@TAR@,$TAR,;t t
 
42251
s,@PERL@,$PERL,;t t
 
42252
s,@PERL5@,$PERL5,;t t
 
42253
s,@DOXYGEN@,$DOXYGEN,;t t
 
42254
s,@PDFLATEX@,$PDFLATEX,;t t
 
42255
s,@MAKEINDEX@,$MAKEINDEX,;t t
 
42256
s,@ICHECK@,$ICHECK,;t t
 
42257
s,@PS@,$PS,;t t
 
42258
s,@FIND_PROC@,$FIND_PROC,;t t
 
42259
s,@KILL@,$KILL,;t t
 
42260
s,@CHECK_PID@,$CHECK_PID,;t t
 
42261
s,@CCAS@,$CCAS,;t t
 
42262
s,@CCASFLAGS@,$CCASFLAGS,;t t
 
42263
s,@NOINST_LDFLAGS@,$NOINST_LDFLAGS,;t t
 
42264
s,@MYSQL_SERVER_SUFFIX@,$MYSQL_SERVER_SUFFIX,;t t
 
42265
s,@ASSEMBLER_x86_TRUE@,$ASSEMBLER_x86_TRUE,;t t
 
42266
s,@ASSEMBLER_x86_FALSE@,$ASSEMBLER_x86_FALSE,;t t
 
42267
s,@ASSEMBLER_sparc32_TRUE@,$ASSEMBLER_sparc32_TRUE,;t t
 
42268
s,@ASSEMBLER_sparc32_FALSE@,$ASSEMBLER_sparc32_FALSE,;t t
 
42269
s,@ASSEMBLER_sparc64_TRUE@,$ASSEMBLER_sparc64_TRUE,;t t
 
42270
s,@ASSEMBLER_sparc64_FALSE@,$ASSEMBLER_sparc64_FALSE,;t t
 
42271
s,@ASSEMBLER_TRUE@,$ASSEMBLER_TRUE,;t t
 
42272
s,@ASSEMBLER_FALSE@,$ASSEMBLER_FALSE,;t t
 
42273
s,@MYSQL_UNIX_ADDR@,$MYSQL_UNIX_ADDR,;t t
 
42274
s,@MYSQL_TCP_PORT@,$MYSQL_TCP_PORT,;t t
 
42275
s,@MYSQL_TCP_PORT_DEFAULT@,$MYSQL_TCP_PORT_DEFAULT,;t t
 
42276
s,@MYSQLD_USER@,$MYSQLD_USER,;t t
 
42277
s,@GETCONF@,$GETCONF,;t t
 
42278
s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
 
42279
s,@zlib_dir@,$zlib_dir,;t t
 
42280
s,@ZLIB_LIBS@,$ZLIB_LIBS,;t t
 
42281
s,@ZLIB_DEPS@,$ZLIB_DEPS,;t t
 
42282
s,@ZLIB_INCLUDES@,$ZLIB_INCLUDES,;t t
 
42283
s,@WRAPLIBS@,$WRAPLIBS,;t t
 
42284
s,@pstack_dirs@,$pstack_dirs,;t t
 
42285
s,@pstack_libs@,$pstack_libs,;t t
 
42286
s,@COMPILE_PSTACK_TRUE@,$COMPILE_PSTACK_TRUE,;t t
 
42287
s,@COMPILE_PSTACK_FALSE@,$COMPILE_PSTACK_FALSE,;t t
 
42288
s,@LIBDL@,$LIBDL,;t t
 
42289
s,@MYSQLD_EXTRA_LDFLAGS@,$MYSQLD_EXTRA_LDFLAGS,;t t
 
42290
s,@CLIENT_EXTRA_LDFLAGS@,$CLIENT_EXTRA_LDFLAGS,;t t
 
42291
s,@LIB_EXTRA_CCFLAGS@,$LIB_EXTRA_CCFLAGS,;t t
 
42292
s,@LM_CFLAGS@,$LM_CFLAGS,;t t
 
42293
s,@COMPILATION_COMMENT@,$COMPILATION_COMMENT,;t t
 
42294
s,@ALLOCA@,$ALLOCA,;t t
 
42295
s,@MAKE_SHELL@,$MAKE_SHELL,;t t
 
42296
s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
 
42297
s,@LIBEDIT_LOBJECTS@,$LIBEDIT_LOBJECTS,;t t
 
42298
s,@tools_dirs@,$tools_dirs,;t t
 
42299
s,@openssl_libs@,$openssl_libs,;t t
 
42300
s,@openssl_includes@,$openssl_includes,;t t
 
42301
s,@yassl_taocrypt_extra_cxxflags@,$yassl_taocrypt_extra_cxxflags,;t t
 
42302
s,@yassl_h_ln_cmd@,$yassl_h_ln_cmd,;t t
 
42303
s,@yassl_libs@,$yassl_libs,;t t
 
42304
s,@yassl_dir@,$yassl_dir,;t t
 
42305
s,@HAVE_YASSL_TRUE@,$HAVE_YASSL_TRUE,;t t
 
42306
s,@HAVE_YASSL_FALSE@,$HAVE_YASSL_FALSE,;t t
 
42307
s,@libmysqld_dirs@,$libmysqld_dirs,;t t
 
42308
s,@linked_libmysqld_targets@,$linked_libmysqld_targets,;t t
 
42309
s,@docs_dirs@,$docs_dirs,;t t
 
42310
s,@man_dirs@,$man_dirs,;t t
 
42311
s,@man1_files@,$man1_files,;t t
 
42312
s,@man8_files@,$man8_files,;t t
 
42313
s,@bench_dirs@,$bench_dirs,;t t
 
42314
s,@readline_dir@,$readline_dir,;t t
 
42315
s,@readline_topdir@,$readline_topdir,;t t
 
42316
s,@readline_basedir@,$readline_basedir,;t t
 
42317
s,@readline_link@,$readline_link,;t t
 
42318
s,@readline_h_ln_cmd@,$readline_h_ln_cmd,;t t
 
42319
s,@bdb_includes@,$bdb_includes,;t t
 
42320
s,@bdb_libs@,$bdb_libs,;t t
 
42321
s,@bdb_libs_with_path@,$bdb_libs_with_path,;t t
 
42322
s,@innodb_includes@,$innodb_includes,;t t
 
42323
s,@innodb_libs@,$innodb_libs,;t t
 
42324
s,@innodb_system_libs@,$innodb_system_libs,;t t
 
42325
s,@NDB_SCI_INCLUDES@,$NDB_SCI_INCLUDES,;t t
 
42326
s,@NDB_SCI_LIBS@,$NDB_SCI_LIBS,;t t
 
42327
s,@HAVE_NDBCLUSTER_DB_TRUE@,$HAVE_NDBCLUSTER_DB_TRUE,;t t
 
42328
s,@HAVE_NDBCLUSTER_DB_FALSE@,$HAVE_NDBCLUSTER_DB_FALSE,;t t
 
42329
s,@ndbcluster_includes@,$ndbcluster_includes,;t t
 
42330
s,@ndbcluster_libs@,$ndbcluster_libs,;t t
 
42331
s,@ndbcluster_system_libs@,$ndbcluster_system_libs,;t t
 
42332
s,@ndb_mgmclient_libs@,$ndb_mgmclient_libs,;t t
 
42333
s,@CLIENT_LIBS@,$CLIENT_LIBS,;t t
 
42334
s,@NON_THREADED_LIBS@,$NON_THREADED_LIBS,;t t
 
42335
s,@STATIC_NSS_FLAGS@,$STATIC_NSS_FLAGS,;t t
 
42336
s,@sql_client_dirs@,$sql_client_dirs,;t t
 
42337
s,@linked_client_targets@,$linked_client_targets,;t t
 
42338
s,@netware_dir@,$netware_dir,;t t
 
42339
s,@linked_netware_sources@,$linked_netware_sources,;t t
 
42340
s,@HAVE_NETWARE_TRUE@,$HAVE_NETWARE_TRUE,;t t
 
42341
s,@HAVE_NETWARE_FALSE@,$HAVE_NETWARE_FALSE,;t t
 
42342
s,@THREAD_LOBJECTS@,$THREAD_LOBJECTS,;t t
 
42343
s,@subdirs@,$subdirs,;t t
 
42344
s,@sql_server_dirs@,$sql_server_dirs,;t t
 
42345
s,@thread_dirs@,$thread_dirs,;t t
 
42346
s,@server_scripts@,$server_scripts,;t t
 
42347
s,@sql_union_dirs@,$sql_union_dirs,;t t
 
42348
s,@GXX@,$GXX,;t t
 
42349
s,@NDB_DEFS@,$NDB_DEFS,;t t
 
42350
s,@ndb_cxxflags_fix@,$ndb_cxxflags_fix,;t t
 
42351
s,@ndb_port@,$ndb_port,;t t
 
42352
s,@ndb_transporter_opt_objs@,$ndb_transporter_opt_objs,;t t
 
42353
s,@ndb_bin_am_ldflags@,$ndb_bin_am_ldflags,;t t
 
42354
s,@ndb_opt_subdirs@,$ndb_opt_subdirs,;t t
 
42355
s,@NDB_SIZEOF_CHARP@,$NDB_SIZEOF_CHARP,;t t
 
42356
s,@NDB_SIZEOF_CHAR@,$NDB_SIZEOF_CHAR,;t t
 
42357
s,@NDB_SIZEOF_SHORT@,$NDB_SIZEOF_SHORT,;t t
 
42358
s,@NDB_SIZEOF_INT@,$NDB_SIZEOF_INT,;t t
 
42359
s,@NDB_SIZEOF_LONG@,$NDB_SIZEOF_LONG,;t t
 
42360
s,@NDB_SIZEOF_LONG_LONG@,$NDB_SIZEOF_LONG_LONG,;t t
 
42361
s,@MAKE_BINARY_DISTRIBUTION_OPTIONS@,$MAKE_BINARY_DISTRIBUTION_OPTIONS,;t t
 
42362
s,@LIBOBJS@,$LIBOBJS,;t t
 
42363
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
42364
CEOF
 
42365
 
 
42366
_ACEOF
 
42367
 
 
42368
  cat >>$CONFIG_STATUS <<\_ACEOF
 
42369
  # Split the substitutions into bite-sized pieces for seds with
 
42370
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
42371
  ac_max_sed_lines=48
 
42372
  ac_sed_frag=1 # Number of current file.
 
42373
  ac_beg=1 # First line for current file.
 
42374
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
42375
  ac_more_lines=:
 
42376
  ac_sed_cmds=
 
42377
  while $ac_more_lines; do
 
42378
    if test $ac_beg -gt 1; then
 
42379
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
42380
    else
 
42381
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
42382
    fi
 
42383
    if test ! -s $tmp/subs.frag; then
 
42384
      ac_more_lines=false
 
42385
    else
 
42386
      # The purpose of the label and of the branching condition is to
 
42387
      # speed up the sed processing (if there are no `@' at all, there
 
42388
      # is no need to browse any of the substitutions).
 
42389
      # These are the two extra sed commands mentioned above.
 
42390
      (echo ':t
 
42391
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
42392
      if test -z "$ac_sed_cmds"; then
 
42393
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
42394
      else
 
42395
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
42396
      fi
 
42397
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
42398
      ac_beg=$ac_end
 
42399
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
42400
    fi
 
42401
  done
 
42402
  if test -z "$ac_sed_cmds"; then
 
42403
    ac_sed_cmds=cat
 
42404
  fi
 
42405
fi # test -n "$CONFIG_FILES"
 
42406
 
 
42407
_ACEOF
 
42408
cat >>$CONFIG_STATUS <<\_ACEOF
 
42409
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
42410
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
42411
  case $ac_file in
 
42412
  - | *:- | *:-:* ) # input from stdin
 
42413
        cat >$tmp/stdin
 
42414
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
42415
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
42416
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
42417
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
42418
  * )   ac_file_in=$ac_file.in ;;
 
42419
  esac
 
42420
 
 
42421
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
42422
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
42423
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
42424
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
42425
         X"$ac_file" : 'X\(//\)$' \| \
 
42426
         X"$ac_file" : 'X\(/\)' \| \
 
42427
         .     : '\(.\)' 2>/dev/null ||
 
42428
echo X"$ac_file" |
 
42429
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
42430
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
42431
          /^X\(\/\/\)$/{ s//\1/; q; }
 
42432
          /^X\(\/\).*/{ s//\1/; q; }
 
42433
          s/.*/./; q'`
 
42434
  { if $as_mkdir_p; then
 
42435
    mkdir -p "$ac_dir"
 
42436
  else
 
42437
    as_dir="$ac_dir"
 
42438
    as_dirs=
 
42439
    while test ! -d "$as_dir"; do
 
42440
      as_dirs="$as_dir $as_dirs"
 
42441
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
42442
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
42443
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
42444
         X"$as_dir" : 'X\(//\)$' \| \
 
42445
         X"$as_dir" : 'X\(/\)' \| \
 
42446
         .     : '\(.\)' 2>/dev/null ||
 
42447
echo X"$as_dir" |
 
42448
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
42449
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
42450
          /^X\(\/\/\)$/{ s//\1/; q; }
 
42451
          /^X\(\/\).*/{ s//\1/; q; }
 
42452
          s/.*/./; q'`
 
42453
    done
 
42454
    test ! -n "$as_dirs" || mkdir $as_dirs
 
42455
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
42456
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
42457
   { (exit 1); exit 1; }; }; }
 
42458
 
 
42459
  ac_builddir=.
 
42460
 
 
42461
if test "$ac_dir" != .; then
 
42462
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
42463
  # A "../" for each directory in $ac_dir_suffix.
 
42464
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
42465
else
 
42466
  ac_dir_suffix= ac_top_builddir=
 
42467
fi
 
42468
 
 
42469
case $srcdir in
 
42470
  .)  # No --srcdir option.  We are building in place.
 
42471
    ac_srcdir=.
 
42472
    if test -z "$ac_top_builddir"; then
 
42473
       ac_top_srcdir=.
 
42474
    else
 
42475
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
42476
    fi ;;
 
42477
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
42478
    ac_srcdir=$srcdir$ac_dir_suffix;
 
42479
    ac_top_srcdir=$srcdir ;;
 
42480
  *) # Relative path.
 
42481
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
42482
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
42483
esac
 
42484
 
 
42485
# Do not use `cd foo && pwd` to compute absolute paths, because
 
42486
# the directories may not exist.
 
42487
case `pwd` in
 
42488
.) ac_abs_builddir="$ac_dir";;
 
42489
*)
 
42490
  case "$ac_dir" in
 
42491
  .) ac_abs_builddir=`pwd`;;
 
42492
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
42493
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
42494
  esac;;
 
42495
esac
 
42496
case $ac_abs_builddir in
 
42497
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
42498
*)
 
42499
  case ${ac_top_builddir}. in
 
42500
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
42501
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
42502
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
42503
  esac;;
 
42504
esac
 
42505
case $ac_abs_builddir in
 
42506
.) ac_abs_srcdir=$ac_srcdir;;
 
42507
*)
 
42508
  case $ac_srcdir in
 
42509
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
42510
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
42511
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
42512
  esac;;
 
42513
esac
 
42514
case $ac_abs_builddir in
 
42515
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
42516
*)
 
42517
  case $ac_top_srcdir in
 
42518
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
42519
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
42520
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
42521
  esac;;
 
42522
esac
 
42523
 
 
42524
 
 
42525
  case $INSTALL in
 
42526
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
42527
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
42528
  esac
 
42529
 
 
42530
  if test x"$ac_file" != x-; then
 
42531
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
42532
echo "$as_me: creating $ac_file" >&6;}
 
42533
    rm -f "$ac_file"
 
42534
  fi
 
42535
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
42536
  # use $as_me), people would be surprised to read:
 
42537
  #    /* config.h.  Generated by config.status.  */
 
42538
  if test x"$ac_file" = x-; then
 
42539
    configure_input=
 
42540
  else
 
42541
    configure_input="$ac_file.  "
 
42542
  fi
 
42543
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
42544
                                     sed 's,.*/,,'` by configure."
 
42545
 
 
42546
  # First look for the input files in the build tree, otherwise in the
 
42547
  # src tree.
 
42548
  ac_file_inputs=`IFS=:
 
42549
    for f in $ac_file_in; do
 
42550
      case $f in
 
42551
      -) echo $tmp/stdin ;;
 
42552
      [\\/$]*)
 
42553
         # Absolute (can't be DOS-style, as IFS=:)
 
42554
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
42555
echo "$as_me: error: cannot find input file: $f" >&2;}
 
42556
   { (exit 1); exit 1; }; }
 
42557
         echo "$f";;
 
42558
      *) # Relative
 
42559
         if test -f "$f"; then
 
42560
           # Build tree
 
42561
           echo "$f"
 
42562
         elif test -f "$srcdir/$f"; then
 
42563
           # Source tree
 
42564
           echo "$srcdir/$f"
 
42565
         else
 
42566
           # /dev/null tree
 
42567
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
42568
echo "$as_me: error: cannot find input file: $f" >&2;}
 
42569
   { (exit 1); exit 1; }; }
 
42570
         fi;;
 
42571
      esac
 
42572
    done` || { (exit 1); exit 1; }
 
42573
_ACEOF
 
42574
cat >>$CONFIG_STATUS <<_ACEOF
 
42575
  sed "$ac_vpsub
 
42576
$extrasub
 
42577
_ACEOF
 
42578
cat >>$CONFIG_STATUS <<\_ACEOF
 
42579
:t
 
42580
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
42581
s,@configure_input@,$configure_input,;t t
 
42582
s,@srcdir@,$ac_srcdir,;t t
 
42583
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
42584
s,@top_srcdir@,$ac_top_srcdir,;t t
 
42585
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
42586
s,@builddir@,$ac_builddir,;t t
 
42587
s,@abs_builddir@,$ac_abs_builddir,;t t
 
42588
s,@top_builddir@,$ac_top_builddir,;t t
 
42589
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
42590
s,@INSTALL@,$ac_INSTALL,;t t
 
42591
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
42592
  rm -f $tmp/stdin
 
42593
  if test x"$ac_file" != x-; then
 
42594
    mv $tmp/out $ac_file
 
42595
  else
 
42596
    cat $tmp/out
 
42597
    rm -f $tmp/out
 
42598
  fi
 
42599
 
 
42600
done
 
42601
_ACEOF
 
42602
cat >>$CONFIG_STATUS <<\_ACEOF
 
42603
 
 
42604
#
 
42605
# CONFIG_HEADER section.
 
42606
#
 
42607
 
 
42608
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
42609
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
42610
#
 
42611
# ac_d sets the value in "#define NAME VALUE" lines.
 
42612
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
42613
ac_dB='[         ].*$,\1#\2'
 
42614
ac_dC=' '
 
42615
ac_dD=',;t'
 
42616
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
42617
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
42618
ac_uB='$,\1#\2define\3'
 
42619
ac_uC=' '
 
42620
ac_uD=',;t'
 
42621
 
 
42622
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
42623
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
42624
  case $ac_file in
 
42625
  - | *:- | *:-:* ) # input from stdin
 
42626
        cat >$tmp/stdin
 
42627
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
42628
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
42629
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
42630
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
42631
  * )   ac_file_in=$ac_file.in ;;
 
42632
  esac
 
42633
 
 
42634
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
42635
echo "$as_me: creating $ac_file" >&6;}
 
42636
 
 
42637
  # First look for the input files in the build tree, otherwise in the
 
42638
  # src tree.
 
42639
  ac_file_inputs=`IFS=:
 
42640
    for f in $ac_file_in; do
 
42641
      case $f in
 
42642
      -) echo $tmp/stdin ;;
 
42643
      [\\/$]*)
 
42644
         # Absolute (can't be DOS-style, as IFS=:)
 
42645
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
42646
echo "$as_me: error: cannot find input file: $f" >&2;}
 
42647
   { (exit 1); exit 1; }; }
 
42648
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
42649
         echo "$f";;
 
42650
      *) # Relative
 
42651
         if test -f "$f"; then
 
42652
           # Build tree
 
42653
           echo "$f"
 
42654
         elif test -f "$srcdir/$f"; then
 
42655
           # Source tree
 
42656
           echo "$srcdir/$f"
 
42657
         else
 
42658
           # /dev/null tree
 
42659
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
42660
echo "$as_me: error: cannot find input file: $f" >&2;}
 
42661
   { (exit 1); exit 1; }; }
 
42662
         fi;;
 
42663
      esac
 
42664
    done` || { (exit 1); exit 1; }
 
42665
  # Remove the trailing spaces.
 
42666
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
42667
 
 
42668
_ACEOF
 
42669
 
 
42670
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
42671
# `conftest.undefs', that substitutes the proper values into
 
42672
# config.h.in to produce config.h.  The first handles `#define'
 
42673
# templates, and the second `#undef' templates.
 
42674
# And first: Protect against being on the right side of a sed subst in
 
42675
# config.status.  Protect against being in an unquoted here document
 
42676
# in config.status.
 
42677
rm -f conftest.defines conftest.undefs
 
42678
# Using a here document instead of a string reduces the quoting nightmare.
 
42679
# Putting comments in sed scripts is not portable.
 
42680
#
 
42681
# `end' is used to avoid that the second main sed command (meant for
 
42682
# 0-ary CPP macros) applies to n-ary macro definitions.
 
42683
# See the Autoconf documentation for `clear'.
 
42684
cat >confdef2sed.sed <<\_ACEOF
 
42685
s/[\\&,]/\\&/g
 
42686
s,[\\$`],\\&,g
 
42687
t clear
 
42688
: clear
 
42689
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
42690
t end
 
42691
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
42692
: end
 
42693
_ACEOF
 
42694
# If some macros were called several times there might be several times
 
42695
# the same #defines, which is useless.  Nevertheless, we may not want to
 
42696
# sort them, since we want the *last* AC-DEFINE to be honored.
 
42697
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
42698
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
42699
rm -f confdef2sed.sed
 
42700
 
 
42701
# This sed command replaces #undef with comments.  This is necessary, for
 
42702
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
42703
# on some systems where configure will not decide to define it.
 
42704
cat >>conftest.undefs <<\_ACEOF
 
42705
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
42706
_ACEOF
 
42707
 
 
42708
# Break up conftest.defines because some shells have a limit on the size
 
42709
# of here documents, and old seds have small limits too (100 cmds).
 
42710
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
42711
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
42712
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
42713
echo '  :' >>$CONFIG_STATUS
 
42714
rm -f conftest.tail
 
42715
while grep . conftest.defines >/dev/null
 
42716
do
 
42717
  # Write a limited-size here document to $tmp/defines.sed.
 
42718
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
42719
  # Speed up: don't consider the non `#define' lines.
 
42720
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
42721
  # Work around the forget-to-reset-the-flag bug.
 
42722
  echo 't clr' >>$CONFIG_STATUS
 
42723
  echo ': clr' >>$CONFIG_STATUS
 
42724
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
42725
  echo 'CEOF
 
42726
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
42727
  rm -f $tmp/in
 
42728
  mv $tmp/out $tmp/in
 
42729
' >>$CONFIG_STATUS
 
42730
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
42731
  rm -f conftest.defines
 
42732
  mv conftest.tail conftest.defines
 
42733
done
 
42734
rm -f conftest.defines
 
42735
echo '  fi # grep' >>$CONFIG_STATUS
 
42736
echo >>$CONFIG_STATUS
 
42737
 
 
42738
# Break up conftest.undefs because some shells have a limit on the size
 
42739
# of here documents, and old seds have small limits too (100 cmds).
 
42740
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
42741
rm -f conftest.tail
 
42742
while grep . conftest.undefs >/dev/null
 
42743
do
 
42744
  # Write a limited-size here document to $tmp/undefs.sed.
 
42745
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
42746
  # Speed up: don't consider the non `#undef'
 
42747
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
42748
  # Work around the forget-to-reset-the-flag bug.
 
42749
  echo 't clr' >>$CONFIG_STATUS
 
42750
  echo ': clr' >>$CONFIG_STATUS
 
42751
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
42752
  echo 'CEOF
 
42753
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
42754
  rm -f $tmp/in
 
42755
  mv $tmp/out $tmp/in
 
42756
' >>$CONFIG_STATUS
 
42757
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
42758
  rm -f conftest.undefs
 
42759
  mv conftest.tail conftest.undefs
 
42760
done
 
42761
rm -f conftest.undefs
 
42762
 
 
42763
cat >>$CONFIG_STATUS <<\_ACEOF
 
42764
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
42765
  # use $as_me), people would be surprised to read:
 
42766
  #    /* config.h.  Generated by config.status.  */
 
42767
  if test x"$ac_file" = x-; then
 
42768
    echo "/* Generated by configure.  */" >$tmp/config.h
 
42769
  else
 
42770
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
42771
  fi
 
42772
  cat $tmp/in >>$tmp/config.h
 
42773
  rm -f $tmp/in
 
42774
  if test x"$ac_file" != x-; then
 
42775
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
42776
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
42777
echo "$as_me: $ac_file is unchanged" >&6;}
 
42778
    else
 
42779
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
42780
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
42781
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
42782
         X"$ac_file" : 'X\(//\)$' \| \
 
42783
         X"$ac_file" : 'X\(/\)' \| \
 
42784
         .     : '\(.\)' 2>/dev/null ||
 
42785
echo X"$ac_file" |
 
42786
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
42787
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
42788
          /^X\(\/\/\)$/{ s//\1/; q; }
 
42789
          /^X\(\/\).*/{ s//\1/; q; }
 
42790
          s/.*/./; q'`
 
42791
      { if $as_mkdir_p; then
 
42792
    mkdir -p "$ac_dir"
 
42793
  else
 
42794
    as_dir="$ac_dir"
 
42795
    as_dirs=
 
42796
    while test ! -d "$as_dir"; do
 
42797
      as_dirs="$as_dir $as_dirs"
 
42798
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
42799
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
42800
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
42801
         X"$as_dir" : 'X\(//\)$' \| \
 
42802
         X"$as_dir" : 'X\(/\)' \| \
 
42803
         .     : '\(.\)' 2>/dev/null ||
 
42804
echo X"$as_dir" |
 
42805
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
42806
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
42807
          /^X\(\/\/\)$/{ s//\1/; q; }
 
42808
          /^X\(\/\).*/{ s//\1/; q; }
 
42809
          s/.*/./; q'`
 
42810
    done
 
42811
    test ! -n "$as_dirs" || mkdir $as_dirs
 
42812
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
42813
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
42814
   { (exit 1); exit 1; }; }; }
 
42815
 
 
42816
      rm -f $ac_file
 
42817
      mv $tmp/config.h $ac_file
 
42818
    fi
 
42819
  else
 
42820
    cat $tmp/config.h
 
42821
    rm -f $tmp/config.h
 
42822
  fi
 
42823
# Compute $ac_file's index in $config_headers.
 
42824
_am_stamp_count=1
 
42825
for _am_header in $config_headers :; do
 
42826
  case $_am_header in
 
42827
    $ac_file | $ac_file:* )
 
42828
      break ;;
 
42829
    * )
 
42830
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
42831
  esac
 
42832
done
 
42833
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
42834
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
42835
         X$ac_file : 'X\(//\)[^/]' \| \
 
42836
         X$ac_file : 'X\(//\)$' \| \
 
42837
         X$ac_file : 'X\(/\)' \| \
 
42838
         .     : '\(.\)' 2>/dev/null ||
 
42839
echo X$ac_file |
 
42840
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
42841
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
42842
          /^X\(\/\/\)$/{ s//\1/; q; }
 
42843
          /^X\(\/\).*/{ s//\1/; q; }
 
42844
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
42845
done
 
42846
_ACEOF
 
42847
cat >>$CONFIG_STATUS <<\_ACEOF
 
42848
 
 
42849
#
 
42850
# CONFIG_COMMANDS section.
 
42851
#
 
42852
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
42853
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
42854
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
42855
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
42856
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
42857
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
42858
         X"$ac_dest" : 'X\(//\)$' \| \
 
42859
         X"$ac_dest" : 'X\(/\)' \| \
 
42860
         .     : '\(.\)' 2>/dev/null ||
 
42861
echo X"$ac_dest" |
 
42862
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
42863
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
42864
          /^X\(\/\/\)$/{ s//\1/; q; }
 
42865
          /^X\(\/\).*/{ s//\1/; q; }
 
42866
          s/.*/./; q'`
 
42867
  { if $as_mkdir_p; then
 
42868
    mkdir -p "$ac_dir"
 
42869
  else
 
42870
    as_dir="$ac_dir"
 
42871
    as_dirs=
 
42872
    while test ! -d "$as_dir"; do
 
42873
      as_dirs="$as_dir $as_dirs"
 
42874
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
42875
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
42876
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
42877
         X"$as_dir" : 'X\(//\)$' \| \
 
42878
         X"$as_dir" : 'X\(/\)' \| \
 
42879
         .     : '\(.\)' 2>/dev/null ||
 
42880
echo X"$as_dir" |
 
42881
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
42882
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
42883
          /^X\(\/\/\)$/{ s//\1/; q; }
 
42884
          /^X\(\/\).*/{ s//\1/; q; }
 
42885
          s/.*/./; q'`
 
42886
    done
 
42887
    test ! -n "$as_dirs" || mkdir $as_dirs
 
42888
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
42889
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
42890
   { (exit 1); exit 1; }; }; }
 
42891
 
 
42892
  ac_builddir=.
 
42893
 
 
42894
if test "$ac_dir" != .; then
 
42895
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
42896
  # A "../" for each directory in $ac_dir_suffix.
 
42897
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
42898
else
 
42899
  ac_dir_suffix= ac_top_builddir=
 
42900
fi
 
42901
 
 
42902
case $srcdir in
 
42903
  .)  # No --srcdir option.  We are building in place.
 
42904
    ac_srcdir=.
 
42905
    if test -z "$ac_top_builddir"; then
 
42906
       ac_top_srcdir=.
 
42907
    else
 
42908
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
42909
    fi ;;
 
42910
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
42911
    ac_srcdir=$srcdir$ac_dir_suffix;
 
42912
    ac_top_srcdir=$srcdir ;;
 
42913
  *) # Relative path.
 
42914
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
42915
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
42916
esac
 
42917
 
 
42918
# Do not use `cd foo && pwd` to compute absolute paths, because
 
42919
# the directories may not exist.
 
42920
case `pwd` in
 
42921
.) ac_abs_builddir="$ac_dir";;
 
42922
*)
 
42923
  case "$ac_dir" in
 
42924
  .) ac_abs_builddir=`pwd`;;
 
42925
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
42926
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
42927
  esac;;
 
42928
esac
 
42929
case $ac_abs_builddir in
 
42930
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
42931
*)
 
42932
  case ${ac_top_builddir}. in
 
42933
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
42934
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
42935
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
42936
  esac;;
 
42937
esac
 
42938
case $ac_abs_builddir in
 
42939
.) ac_abs_srcdir=$ac_srcdir;;
 
42940
*)
 
42941
  case $ac_srcdir in
 
42942
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
42943
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
42944
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
42945
  esac;;
 
42946
esac
 
42947
case $ac_abs_builddir in
 
42948
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
42949
*)
 
42950
  case $ac_top_srcdir in
 
42951
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
42952
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
42953
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
42954
  esac;;
 
42955
esac
 
42956
 
 
42957
 
 
42958
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
42959
echo "$as_me: executing $ac_dest commands" >&6;}
 
42960
  case $ac_dest in
 
42961
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
42962
  # Strip MF so we end up with the name of the file.
 
42963
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
42964
  # Check whether this is an Automake generated Makefile or not.
 
42965
  # We used to match only the files named `Makefile.in', but
 
42966
  # some people rename them; so instead we look at the file content.
 
42967
  # Grep'ing the first line is not enough: some people post-process
 
42968
  # each Makefile.in and add a new line on top of each file to say so.
 
42969
  # So let's grep whole file.
 
42970
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
42971
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
42972
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
42973
         X"$mf" : 'X\(//\)[^/]' \| \
 
42974
         X"$mf" : 'X\(//\)$' \| \
 
42975
         X"$mf" : 'X\(/\)' \| \
 
42976
         .     : '\(.\)' 2>/dev/null ||
 
42977
echo X"$mf" |
 
42978
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
42979
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
42980
          /^X\(\/\/\)$/{ s//\1/; q; }
 
42981
          /^X\(\/\).*/{ s//\1/; q; }
 
42982
          s/.*/./; q'`
 
42983
  else
 
42984
    continue
 
42985
  fi
 
42986
  # Extract the definition of DEPDIR, am__include, and am__quote
 
42987
  # from the Makefile without running `make'.
 
42988
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
42989
  test -z "$DEPDIR" && continue
 
42990
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
42991
  test -z "am__include" && continue
 
42992
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
42993
  # When using ansi2knr, U may be empty or an underscore; expand it
 
42994
  U=`sed -n 's/^U = //p' < "$mf"`
 
42995
  # Find all dependency output files, they are included files with
 
42996
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
42997
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
42998
  # expansion.
 
42999
  for file in `sed -n "
 
43000
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
43001
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
43002
    # Make sure the directory exists.
 
43003
    test -f "$dirpart/$file" && continue
 
43004
    fdir=`(dirname "$file") 2>/dev/null ||
 
43005
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
43006
         X"$file" : 'X\(//\)[^/]' \| \
 
43007
         X"$file" : 'X\(//\)$' \| \
 
43008
         X"$file" : 'X\(/\)' \| \
 
43009
         .     : '\(.\)' 2>/dev/null ||
 
43010
echo X"$file" |
 
43011
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
43012
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
43013
          /^X\(\/\/\)$/{ s//\1/; q; }
 
43014
          /^X\(\/\).*/{ s//\1/; q; }
 
43015
          s/.*/./; q'`
 
43016
    { if $as_mkdir_p; then
 
43017
    mkdir -p $dirpart/$fdir
 
43018
  else
 
43019
    as_dir=$dirpart/$fdir
 
43020
    as_dirs=
 
43021
    while test ! -d "$as_dir"; do
 
43022
      as_dirs="$as_dir $as_dirs"
 
43023
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
43024
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
43025
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
43026
         X"$as_dir" : 'X\(//\)$' \| \
 
43027
         X"$as_dir" : 'X\(/\)' \| \
 
43028
         .     : '\(.\)' 2>/dev/null ||
 
43029
echo X"$as_dir" |
 
43030
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
43031
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
43032
          /^X\(\/\/\)$/{ s//\1/; q; }
 
43033
          /^X\(\/\).*/{ s//\1/; q; }
 
43034
          s/.*/./; q'`
 
43035
    done
 
43036
    test ! -n "$as_dirs" || mkdir $as_dirs
 
43037
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
43038
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
43039
   { (exit 1); exit 1; }; }; }
 
43040
 
 
43041
    # echo "creating $dirpart/$file"
 
43042
    echo '# dummy' > "$dirpart/$file"
 
43043
  done
 
43044
done
 
43045
 ;;
 
43046
  esac
 
43047
done
 
43048
_ACEOF
 
43049
 
 
43050
cat >>$CONFIG_STATUS <<\_ACEOF
 
43051
 
 
43052
{ (exit 0); exit 0; }
 
43053
_ACEOF
 
43054
chmod +x $CONFIG_STATUS
 
43055
ac_clean_files=$ac_clean_files_save
 
43056
 
 
43057
 
 
43058
# configure is writing to config.log, and then calls config.status.
 
43059
# config.status does its own redirection, appending to config.log.
 
43060
# Unfortunately, on DOS this fails, as config.log is still kept open
 
43061
# by configure, so config.status won't be able to write to it; its
 
43062
# output is simply discarded.  So we exec the FD to /dev/null,
 
43063
# effectively closing config.log, so it can be properly (re)opened and
 
43064
# appended to by config.status.  When coming back to configure, we
 
43065
# need to make the FD available again.
 
43066
if test "$no_create" != yes; then
 
43067
  ac_cs_success=:
 
43068
  ac_config_status_args=
 
43069
  test "$silent" = yes &&
 
43070
    ac_config_status_args="$ac_config_status_args --quiet"
 
43071
  exec 5>/dev/null
 
43072
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
43073
  exec 5>>config.log
 
43074
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
43075
  # would make configure fail if this is the last instruction.
 
43076
  $ac_cs_success || { (exit 1); exit 1; }
 
43077
fi
 
43078
 
 
43079
#
 
43080
# CONFIG_SUBDIRS section.
 
43081
#
 
43082
if test "$no_recursion" != yes; then
 
43083
 
 
43084
  # Remove --cache-file and --srcdir arguments so they do not pile up.
 
43085
  ac_sub_configure_args=
 
43086
  ac_prev=
 
43087
  for ac_arg in $ac_configure_args; do
 
43088
    if test -n "$ac_prev"; then
 
43089
      ac_prev=
 
43090
      continue
 
43091
    fi
 
43092
    case $ac_arg in
 
43093
    -cache-file | --cache-file | --cache-fil | --cache-fi \
 
43094
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
43095
      ac_prev=cache_file ;;
 
43096
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
43097
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
 
43098
    | --c=*)
 
43099
      ;;
 
43100
    --config-cache | -C)
 
43101
      ;;
 
43102
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
43103
      ac_prev=srcdir ;;
 
43104
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
43105
      ;;
 
43106
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
43107
      ac_prev=prefix ;;
 
43108
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
43109
      ;;
 
43110
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
 
43111
    esac
 
43112
  done
 
43113
 
 
43114
  # Always prepend --prefix to ensure using the same prefix
 
43115
  # in subdir configurations.
 
43116
  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
 
43117
 
 
43118
  ac_popdir=`pwd`
 
43119
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
 
43120
 
 
43121
    # Do not complain, so a configure script can configure whichever
 
43122
    # parts of a large source tree are present.
 
43123
    test -d $srcdir/$ac_dir || continue
 
43124
 
 
43125
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
 
43126
echo "$as_me: configuring in $ac_dir" >&6;}
 
43127
    { if $as_mkdir_p; then
 
43128
    mkdir -p "$ac_dir"
 
43129
  else
 
43130
    as_dir="$ac_dir"
 
43131
    as_dirs=
 
43132
    while test ! -d "$as_dir"; do
 
43133
      as_dirs="$as_dir $as_dirs"
 
43134
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
43135
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
43136
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
43137
         X"$as_dir" : 'X\(//\)$' \| \
 
43138
         X"$as_dir" : 'X\(/\)' \| \
 
43139
         .     : '\(.\)' 2>/dev/null ||
 
43140
echo X"$as_dir" |
 
43141
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
43142
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
43143
          /^X\(\/\/\)$/{ s//\1/; q; }
 
43144
          /^X\(\/\).*/{ s//\1/; q; }
 
43145
          s/.*/./; q'`
 
43146
    done
 
43147
    test ! -n "$as_dirs" || mkdir $as_dirs
 
43148
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
43149
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
43150
   { (exit 1); exit 1; }; }; }
 
43151
 
 
43152
    ac_builddir=.
 
43153
 
 
43154
if test "$ac_dir" != .; then
 
43155
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
43156
  # A "../" for each directory in $ac_dir_suffix.
 
43157
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
43158
else
 
43159
  ac_dir_suffix= ac_top_builddir=
 
43160
fi
 
43161
 
 
43162
case $srcdir in
 
43163
  .)  # No --srcdir option.  We are building in place.
 
43164
    ac_srcdir=.
 
43165
    if test -z "$ac_top_builddir"; then
 
43166
       ac_top_srcdir=.
 
43167
    else
 
43168
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
43169
    fi ;;
 
43170
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
43171
    ac_srcdir=$srcdir$ac_dir_suffix;
 
43172
    ac_top_srcdir=$srcdir ;;
 
43173
  *) # Relative path.
 
43174
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
43175
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
43176
esac
 
43177
 
 
43178
# Do not use `cd foo && pwd` to compute absolute paths, because
 
43179
# the directories may not exist.
 
43180
case `pwd` in
 
43181
.) ac_abs_builddir="$ac_dir";;
 
43182
*)
 
43183
  case "$ac_dir" in
 
43184
  .) ac_abs_builddir=`pwd`;;
 
43185
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
43186
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
43187
  esac;;
 
43188
esac
 
43189
case $ac_abs_builddir in
 
43190
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
43191
*)
 
43192
  case ${ac_top_builddir}. in
 
43193
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
43194
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
43195
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
43196
  esac;;
 
43197
esac
 
43198
case $ac_abs_builddir in
 
43199
.) ac_abs_srcdir=$ac_srcdir;;
 
43200
*)
 
43201
  case $ac_srcdir in
 
43202
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
43203
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
43204
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
43205
  esac;;
 
43206
esac
 
43207
case $ac_abs_builddir in
 
43208
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
43209
*)
 
43210
  case $ac_top_srcdir in
 
43211
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
43212
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
43213
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
43214
  esac;;
 
43215
esac
 
43216
 
 
43217
 
 
43218
    cd $ac_dir
 
43219
 
 
43220
    # Check for guested configure; otherwise get Cygnus style configure.
 
43221
    if test -f $ac_srcdir/configure.gnu; then
 
43222
      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
 
43223
    elif test -f $ac_srcdir/configure; then
 
43224
      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
 
43225
    elif test -f $ac_srcdir/configure.in; then
 
43226
      ac_sub_configure=$ac_configure
 
43227
    else
 
43228
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
 
43229
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
 
43230
      ac_sub_configure=
 
43231
    fi
 
43232
 
 
43233
    # The recursion is here.
 
43234
    if test -n "$ac_sub_configure"; then
 
43235
      # Make the cache file name correct relative to the subdirectory.
 
43236
      case $cache_file in
 
43237
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
 
43238
      *) # Relative path.
 
43239
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
 
43240
      esac
 
43241
 
 
43242
      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
 
43243
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
 
43244
      # The eval makes quoting arguments work.
 
43245
      eval $ac_sub_configure $ac_sub_configure_args \
 
43246
           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
 
43247
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
 
43248
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
 
43249
   { (exit 1); exit 1; }; }
 
43250
    fi
 
43251
 
 
43252
    cd $ac_popdir
 
43253
  done
 
43254
fi
 
43255
 
 
43256
 
 
43257
echo
 
43258
echo "MySQL has a Web site at http://www.mysql.com/ which carries details on the"
 
43259
echo "latest release, upcoming features, and other information to make your"
 
43260
echo "work or play with MySQL more productive. There you can also find"
 
43261
echo "information about mailing lists for MySQL discussion."
 
43262
echo
 
43263
echo "Remember to check the platform specific part of the reference manual for"
 
43264
echo "hints about installing MySQL on your platform. Also have a look at the"
 
43265
echo "files in the Docs directory."
 
43266
echo
 
43267
# The following text is checked in ./Do-compile to verify that configure
 
43268
# ended sucessfully - don't remove it.
 
43269
echo "Thank you for choosing MySQL!"
 
43270
echo