~ubuntu-branches/ubuntu/edgy/tilp/edgy

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Julien BLACHE
  • Date: 2004-05-22 21:12:03 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040522211203-awg2cuw03guyvyz9
Tags: 6.72-2
* debian/control
  + Build-Depends: libticables3 (>= 3.8.4-1).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by Autoconf 2.52.
 
3
# Generated by GNU Autoconf 2.59.
4
4
#
5
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6
 
# Free Software Foundation, Inc.
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Find the correct PATH separator.  Usually this is `:', but
11
 
# DJGPP uses `;' like DOS.
12
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
13
 
  UNAME=${UNAME-`uname 2>/dev/null`}
14
 
  case X$UNAME in
15
 
    *-DOS) PATH_SEPARATOR=';' ;;
16
 
    *)     PATH_SEPARATOR=':' ;;
17
 
  esac
18
 
fi
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
19
244
 
20
245
# Check that we are running under the correct shell.
21
246
SHELL=${CONFIG_SHELL-/bin/sh}
34
259
elif test "X$1" = X--fallback-echo; then
35
260
  # Avoid inline document here, it may be left over
36
261
  :
37
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
38
263
  # Yippee, $echo works!
39
264
  :
40
265
else
80
305
  #
81
306
  # So, first we look for a working echo in the user's PATH.
82
307
 
83
 
  IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
84
309
  for dir in $PATH /usr/ucb; do
85
310
    IFS="$lt_save_ifs"
86
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
163
388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
164
389
fi
165
390
 
166
 
# Avoid depending upon Character Ranges.
167
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
168
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
169
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
170
 
as_cr_digits='0123456789'
171
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
172
 
 
173
 
# Sed expression to map a string onto a valid variable name.
174
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
175
 
 
176
 
# Sed expression to map a string onto a valid CPP name.
177
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
178
 
 
179
 
# Be Bourne compatible
180
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
181
 
  emulate sh
182
 
  NULLCMD=:
183
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
184
 
  set -o posix
185
 
fi
186
 
 
187
 
# Name of the executable.
188
 
as_me=`echo "$0" |sed 's,.*[\\/],,'`
189
 
 
190
 
if expr a : '\(a\)' >/dev/null 2>&1; then
191
 
  as_expr=expr
192
 
else
193
 
  as_expr=false
194
 
fi
195
 
 
196
 
rm -f conf$$ conf$$.exe conf$$.file
197
 
echo >conf$$.file
198
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
199
 
  # We could just check for DJGPP; but this test a) works b) is more generic
200
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201
 
  if test -f conf$$.exe; then
202
 
    # Don't use ln at all; we don't have any links
203
 
    as_ln_s='cp -p'
204
 
  else
205
 
    as_ln_s='ln -s'
206
 
  fi
207
 
elif ln conf$$.file conf$$ 2>/dev/null; then
208
 
  as_ln_s=ln
209
 
else
210
 
  as_ln_s='cp -p'
211
 
fi
212
 
rm -f conf$$ conf$$.exe conf$$.file
213
 
 
214
 
as_executable_p="test -f"
215
 
 
216
 
# Support unset when possible.
217
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
218
 
  as_unset=unset
219
 
else
220
 
  as_unset=false
221
 
fi
222
 
 
223
 
# NLS nuisances.
224
 
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
225
 
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
226
 
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
227
 
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
228
 
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
229
 
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
230
 
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
231
 
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
232
 
 
233
 
# IFS
234
 
# We need space, tab and new line, in precisely that order.
235
 
as_nl='
236
 
'
237
 
IFS="   $as_nl"
238
 
 
239
 
# CDPATH.
240
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
391
 
 
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
241
397
 
242
398
# Name of the host.
243
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
250
406
# Initializations.
251
407
#
252
408
ac_default_prefix=/usr/local
 
409
ac_config_libobj_dir=.
253
410
cross_compiling=no
254
411
subdirs=
255
 
MFLAGS= MAKEFLAGS=
 
412
MFLAGS=
 
413
MAKEFLAGS=
256
414
SHELL=${CONFIG_SHELL-/bin/sh}
257
415
 
258
416
# Maximum number of lines to put in a shell here document.
260
418
# only ac_max_sed_lines should be used.
261
419
: ${ac_max_here_lines=38}
262
420
 
263
 
ac_unique_file="src/sub_main.c"
 
421
# Identity of this package.
 
422
PACKAGE_NAME=
 
423
PACKAGE_TARNAME=
 
424
PACKAGE_VERSION=
 
425
PACKAGE_STRING=
 
426
PACKAGE_BUGREPORT=
 
427
 
 
428
ac_unique_file="src/tilp_main.c"
264
429
ac_default_prefix='/usr'
265
430
# Factoring default headers for most tests.
266
431
ac_includes_default="\
299
464
# include <unistd.h>
300
465
#endif"
301
466
 
 
467
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 VERSION PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX LN_S AWK MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE RANLIB ac_ct_RANLIB CPP EGREP ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB PKG_CONFIG LIBOBJS OS_WIN32_TRUE OS_WIN32_FALSE TICABLES_CFLAGS TICABLES_LIBS TIFILES_CFLAGS TIFILES_LIBS TICALCS_CFLAGS TICALCS_LIBS GLIB_CFLAGS GLIB_LIBS GTK_CFLAGS GTK_LIBS ECHO AR ac_ct_AR STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL tilp_plugin_dir tilp_help_dir tilp_pixmap_dir tilp_icon_dir tilp_glade_dir ALLOW_EXIT_HOMEDIR locale_dir LTLIBOBJS'
 
468
ac_subst_files=''
 
469
 
302
470
# Initialize some variables set by options.
303
471
ac_init_help=
304
472
ac_init_version=false
337
505
infodir='${prefix}/info'
338
506
mandir='${prefix}/man'
339
507
 
340
 
# Identity of this package.
341
 
PACKAGE_NAME=
342
 
PACKAGE_TARNAME=
343
 
PACKAGE_VERSION=
344
 
PACKAGE_STRING=
345
 
PACKAGE_BUGREPORT=
346
 
 
347
508
ac_prev=
348
509
for ac_option
349
510
do
476
637
    with_fp=no ;;
477
638
 
478
639
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
479
 
  | --no-cr | --no-c)
 
640
  | --no-cr | --no-c | -n)
480
641
    no_create=yes ;;
481
642
 
482
643
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
655
816
  eval ac_val=$`echo $ac_var`
656
817
  case $ac_val in
657
818
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
658
 
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
819
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
659
820
   { (exit 1); exit 1; }; };;
660
821
  esac
661
822
done
662
823
 
663
824
# Be sure to have absolute paths.
664
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
665
 
              localstatedir libdir includedir oldincludedir infodir mandir
 
826
              localstatedir libdir includedir oldincludedir infodir mandir
666
827
do
667
828
  eval ac_val=$`echo $ac_var`
668
829
  case $ac_val in
669
830
    [\\/$]* | ?:[\\/]* ) ;;
670
 
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
831
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671
832
   { (exit 1); exit 1; }; };;
672
833
  esac
673
834
done
674
835
 
675
836
# There might be people who depend on the old broken behavior: `$host'
676
837
# used to hold the argument of --host etc.
 
838
# FIXME: To remove some day.
677
839
build=$build_alias
678
840
host=$host_alias
679
841
target=$target_alias
680
842
 
681
 
# FIXME: should be removed in autoconf 3.0.
 
843
# FIXME: To remove some day.
682
844
if test "x$host_alias" != x; then
683
845
  if test "x$build_alias" = x; then
684
846
    cross_compiling=maybe
694
856
 
695
857
test "$silent" = yes && exec 6>/dev/null
696
858
 
 
859
 
697
860
# Find the source files, if location was not specified.
698
861
if test -z "$srcdir"; then
699
862
  ac_srcdir_defaulted=yes
700
863
  # Try the directory containing this script, then its parent.
701
 
  ac_prog=$0
702
 
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
703
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
864
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
866
         X"$0" : 'X\(//\)[^/]' \| \
 
867
         X"$0" : 'X\(//\)$' \| \
 
868
         X"$0" : 'X\(/\)' \| \
 
869
         .     : '\(.\)' 2>/dev/null ||
 
870
echo X"$0" |
 
871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
872
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
873
          /^X\(\/\/\)$/{ s//\1/; q; }
 
874
          /^X\(\/\).*/{ s//\1/; q; }
 
875
          s/.*/./; q'`
704
876
  srcdir=$ac_confdir
705
877
  if test ! -r $srcdir/$ac_unique_file; then
706
878
    srcdir=..
710
882
fi
711
883
if test ! -r $srcdir/$ac_unique_file; then
712
884
  if test "$ac_srcdir_defaulted" = yes; then
713
 
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
 
885
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
714
886
   { (exit 1); exit 1; }; }
715
887
  else
716
 
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
 
888
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
717
889
   { (exit 1); exit 1; }; }
718
890
  fi
719
891
fi
 
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
893
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
894
   { (exit 1); exit 1; }; }
720
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
721
896
ac_env_build_alias_set=${build_alias+set}
722
897
ac_env_build_alias_value=$build_alias
746
921
ac_env_CPPFLAGS_value=$CPPFLAGS
747
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
748
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
749
 
ac_env_CPP_set=${CPP+set}
750
 
ac_env_CPP_value=$CPP
751
 
ac_cv_env_CPP_set=${CPP+set}
752
 
ac_cv_env_CPP_value=$CPP
753
924
ac_env_CXX_set=${CXX+set}
754
925
ac_env_CXX_value=$CXX
755
926
ac_cv_env_CXX_set=${CXX+set}
758
929
ac_env_CXXFLAGS_value=$CXXFLAGS
759
930
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
760
931
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
932
ac_env_CPP_set=${CPP+set}
 
933
ac_env_CPP_value=$CPP
 
934
ac_cv_env_CPP_set=${CPP+set}
 
935
ac_cv_env_CPP_value=$CPP
761
936
ac_env_CXXCPP_set=${CXXCPP+set}
762
937
ac_env_CXXCPP_value=$CXXCPP
763
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
764
939
ac_cv_env_CXXCPP_value=$CXXCPP
 
940
ac_env_F77_set=${F77+set}
 
941
ac_env_F77_value=$F77
 
942
ac_cv_env_F77_set=${F77+set}
 
943
ac_cv_env_F77_value=$F77
 
944
ac_env_FFLAGS_set=${FFLAGS+set}
 
945
ac_env_FFLAGS_value=$FFLAGS
 
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
947
ac_cv_env_FFLAGS_value=$FFLAGS
765
948
 
766
949
#
767
950
# Report the --help message.
769
952
if test "$ac_init_help" = "long"; then
770
953
  # Omit some internal or obsolete options to make the list less imposing.
771
954
  # This message is too long to be a string in the A/UX 3.1 sh.
772
 
  cat <<EOF
 
955
  cat <<_ACEOF
773
956
\`configure' configures this package to adapt to many kinds of systems.
774
957
 
775
958
Usage: $0 [OPTION]... [VAR=VALUE]...
790
973
  -n, --no-create         do not create output files
791
974
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
792
975
 
793
 
EOF
 
976
_ACEOF
794
977
 
795
 
  cat <<EOF
 
978
  cat <<_ACEOF
796
979
Installation directories:
797
980
  --prefix=PREFIX         install architecture-independent files in PREFIX
798
 
                          [$ac_default_prefix]
 
981
                          [$ac_default_prefix]
799
982
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
800
 
                          [PREFIX]
 
983
                          [PREFIX]
801
984
 
802
985
By default, \`make install' will install all the files in
803
986
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
819
1002
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
820
1003
  --infodir=DIR          info documentation [PREFIX/info]
821
1004
  --mandir=DIR           man documentation [PREFIX/man]
822
 
EOF
 
1005
_ACEOF
823
1006
 
824
 
  cat <<\EOF
 
1007
  cat <<\_ACEOF
825
1008
 
826
1009
Program names:
827
1010
  --program-prefix=PREFIX            prepend PREFIX to installed program names
834
1017
 
835
1018
System types:
836
1019
  --build=BUILD     configure for building on BUILD [guessed]
837
 
  --host=HOST       build programs to run on HOST [BUILD]
838
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
839
 
EOF
 
1020
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1021
_ACEOF
840
1022
fi
841
1023
 
842
1024
if test -n "$ac_init_help"; then
843
1025
 
844
 
  cat <<\EOF
 
1026
  cat <<\_ACEOF
845
1027
 
846
1028
Optional Features:
847
1029
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
848
1030
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1031
  --enable-maintainer-mode enable make rules and dependencies not useful
 
1032
                          (and sometimes confusing) to the casual installer
 
1033
  --disable-nls           do not use Native Language Support
 
1034
  --disable-rpath         do not hardcode runtime library paths
 
1035
  --enable-static[=PKGS]
 
1036
                          build static libraries [default=no]
849
1037
  --enable-shared[=PKGS]
850
1038
                          build shared libraries [default=yes]
851
 
  --enable-static[=PKGS]
852
 
                          build static libraries [default=yes]
853
1039
  --enable-fast-install[=PKGS]
854
1040
                          optimize for fast installation [default=yes]
855
1041
  --disable-libtool-lock  avoid locking (might break parallel builds)
856
 
  --disable-dependency-tracking Speeds up one-time builds
857
 
  --enable-dependency-tracking  Do not reject slow dependency extractors
858
 
  --disable-nls           do not use Native Language Support
859
 
  --enable-exit-homedir   allow user to exit home dir default=no
860
 
  --enable-tiffep   use the TIFFEP server default=no
 
1042
  --enable-exit-homedir        allow user to exit home dir default=yes
861
1043
 
862
1044
Optional Packages:
863
1045
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
864
1046
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1047
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1048
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1049
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1050
  --with-included-gettext use the GNU gettext library included here
 
1051
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
1052
  --without-libintl-prefix     don't search for libintl in includedir and libdir
 
1053
  --with-x                use the X Window System
865
1054
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
866
1055
  --with-pic              try to use only PIC/non-PIC objects [default=use
867
1056
                          both]
868
 
  --with-tags=TAGS        include additional configurations [CXX,GCJ]
869
 
  --with-x                use the X Window System
870
 
  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
871
 
  --with-included-gettext use the GNU gettext library included here
 
1057
  --with-tags[=TAGS]
 
1058
                          include additional configurations [automatic]
872
1059
 
873
1060
Some influential environment variables:
874
1061
  CC          C compiler command
877
1064
              nonstandard directory <lib dir>
878
1065
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
879
1066
              headers in a nonstandard directory <include dir>
880
 
  CPP         C preprocessor
881
1067
  CXX         C++ compiler command
882
1068
  CXXFLAGS    C++ compiler flags
 
1069
  CPP         C preprocessor
883
1070
  CXXCPP      C++ preprocessor
 
1071
  F77         Fortran 77 compiler command
 
1072
  FFLAGS      Fortran 77 compiler flags
884
1073
 
885
1074
Use these variables to override the choices made by `configure' or to help
886
1075
it to find libraries and programs with nonstandard names/locations.
887
1076
 
888
 
EOF
 
1077
_ACEOF
889
1078
fi
890
1079
 
891
1080
if test "$ac_init_help" = "recursive"; then
892
1081
  # If there are subdirs, report their specific --help.
893
1082
  ac_popdir=`pwd`
894
 
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
895
 
    cd $ac_subdir
896
 
    # A "../" for each directory in /$ac_subdir.
897
 
    ac_dots=`echo $ac_subdir |
898
 
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
899
 
 
900
 
    case $srcdir in
901
 
    .) # No --srcdir option.  We are building in place.
902
 
      ac_sub_srcdir=$srcdir ;;
903
 
    [\\/]* | ?:[\\/]* ) # Absolute path.
904
 
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
905
 
    *) # Relative path.
906
 
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
907
 
    esac
908
 
 
 
1083
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1084
    test -d $ac_dir || continue
 
1085
    ac_builddir=.
 
1086
 
 
1087
if test "$ac_dir" != .; then
 
1088
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1089
  # A "../" for each directory in $ac_dir_suffix.
 
1090
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1091
else
 
1092
  ac_dir_suffix= ac_top_builddir=
 
1093
fi
 
1094
 
 
1095
case $srcdir in
 
1096
  .)  # No --srcdir option.  We are building in place.
 
1097
    ac_srcdir=.
 
1098
    if test -z "$ac_top_builddir"; then
 
1099
       ac_top_srcdir=.
 
1100
    else
 
1101
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1102
    fi ;;
 
1103
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1104
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1105
    ac_top_srcdir=$srcdir ;;
 
1106
  *) # Relative path.
 
1107
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1108
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1109
esac
 
1110
 
 
1111
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1112
# the directories may not exist.
 
1113
case `pwd` in
 
1114
.) ac_abs_builddir="$ac_dir";;
 
1115
*)
 
1116
  case "$ac_dir" in
 
1117
  .) ac_abs_builddir=`pwd`;;
 
1118
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1119
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1120
  esac;;
 
1121
esac
 
1122
case $ac_abs_builddir in
 
1123
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1124
*)
 
1125
  case ${ac_top_builddir}. in
 
1126
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1127
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1128
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1129
  esac;;
 
1130
esac
 
1131
case $ac_abs_builddir in
 
1132
.) ac_abs_srcdir=$ac_srcdir;;
 
1133
*)
 
1134
  case $ac_srcdir in
 
1135
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1136
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1137
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1138
  esac;;
 
1139
esac
 
1140
case $ac_abs_builddir in
 
1141
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1142
*)
 
1143
  case $ac_top_srcdir in
 
1144
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1145
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1146
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1147
  esac;;
 
1148
esac
 
1149
 
 
1150
    cd $ac_dir
909
1151
    # Check for guested configure; otherwise get Cygnus style configure.
910
 
    if test -f $ac_sub_srcdir/configure.gnu; then
911
 
      echo
912
 
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
913
 
    elif test -f $ac_sub_srcdir/configure; then
914
 
      echo
915
 
      $SHELL $ac_sub_srcdir/configure  --help=recursive
916
 
    elif test -f $ac_sub_srcdir/configure.ac ||
917
 
           test -f $ac_sub_srcdir/configure.in; then
 
1152
    if test -f $ac_srcdir/configure.gnu; then
 
1153
      echo
 
1154
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1155
    elif test -f $ac_srcdir/configure; then
 
1156
      echo
 
1157
      $SHELL $ac_srcdir/configure  --help=recursive
 
1158
    elif test -f $ac_srcdir/configure.ac ||
 
1159
           test -f $ac_srcdir/configure.in; then
918
1160
      echo
919
1161
      $ac_configure --help
920
1162
    else
921
 
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
 
1163
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
922
1164
    fi
923
 
    cd $ac_popdir
 
1165
    cd "$ac_popdir"
924
1166
  done
925
1167
fi
926
1168
 
927
1169
test -n "$ac_init_help" && exit 0
928
1170
if $ac_init_version; then
929
 
  cat <<\EOF
 
1171
  cat <<\_ACEOF
930
1172
 
931
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
932
 
Free Software Foundation, Inc.
 
1173
Copyright (C) 2003 Free Software Foundation, Inc.
933
1174
This configure script is free software; the Free Software Foundation
934
1175
gives unlimited permission to copy, distribute and modify it.
935
 
EOF
 
1176
_ACEOF
936
1177
  exit 0
937
1178
fi
938
1179
exec 5>config.log
939
 
cat >&5 <<EOF
 
1180
cat >&5 <<_ACEOF
940
1181
This file contains any messages produced by compilers while
941
1182
running configure, to aid debugging if configure makes a mistake.
942
1183
 
943
1184
It was created by $as_me, which was
944
 
generated by GNU Autoconf 2.52.  Invocation command line was
 
1185
generated by GNU Autoconf 2.59.  Invocation command line was
945
1186
 
946
1187
  $ $0 $@
947
1188
 
948
 
EOF
 
1189
_ACEOF
949
1190
{
950
1191
cat <<_ASUNAME
951
 
## ---------- ##
952
 
## Platform.  ##
953
 
## ---------- ##
 
1192
## --------- ##
 
1193
## Platform. ##
 
1194
## --------- ##
954
1195
 
955
1196
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
956
1197
uname -m = `(uname -m) 2>/dev/null || echo unknown`
969
1210
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
970
1211
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
971
1212
 
972
 
PATH = $PATH
973
 
 
974
1213
_ASUNAME
 
1214
 
 
1215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1216
for as_dir in $PATH
 
1217
do
 
1218
  IFS=$as_save_IFS
 
1219
  test -z "$as_dir" && as_dir=.
 
1220
  echo "PATH: $as_dir"
 
1221
done
 
1222
 
975
1223
} >&5
976
1224
 
977
 
cat >&5 <<EOF
978
 
## ------------ ##
979
 
## Core tests.  ##
980
 
## ------------ ##
981
 
 
982
 
EOF
 
1225
cat >&5 <<_ACEOF
 
1226
 
 
1227
 
 
1228
## ----------- ##
 
1229
## Core tests. ##
 
1230
## ----------- ##
 
1231
 
 
1232
_ACEOF
 
1233
 
983
1234
 
984
1235
# Keep a trace of the command line.
985
1236
# Strip out --no-create and --no-recursion so they do not pile up.
 
1237
# Strip out --silent because we don't want to record it for future runs.
986
1238
# Also quote any args containing shell meta-characters.
 
1239
# Make two passes to allow for proper duplicate-argument suppression.
987
1240
ac_configure_args=
 
1241
ac_configure_args0=
 
1242
ac_configure_args1=
988
1243
ac_sep=
989
 
for ac_arg
 
1244
ac_must_keep_next=false
 
1245
for ac_pass in 1 2
990
1246
do
991
 
  case $ac_arg in
992
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993
 
  | --no-cr | --no-c) ;;
994
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
996
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
997
 
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
998
 
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
999
 
    ac_sep=" " ;;
1000
 
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
1001
 
     ac_sep=" " ;;
1002
 
  esac
1003
 
  # Get rid of the leading space.
 
1247
  for ac_arg
 
1248
  do
 
1249
    case $ac_arg in
 
1250
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1251
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1252
    | -silent | --silent | --silen | --sile | --sil)
 
1253
      continue ;;
 
1254
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1255
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1256
    esac
 
1257
    case $ac_pass in
 
1258
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1259
    2)
 
1260
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1261
      if test $ac_must_keep_next = true; then
 
1262
        ac_must_keep_next=false # Got value, back to normal.
 
1263
      else
 
1264
        case $ac_arg in
 
1265
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1266
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1267
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1268
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1269
            case "$ac_configure_args0 " in
 
1270
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1271
            esac
 
1272
            ;;
 
1273
          -* ) ac_must_keep_next=true ;;
 
1274
        esac
 
1275
      fi
 
1276
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1277
      # Get rid of the leading space.
 
1278
      ac_sep=" "
 
1279
      ;;
 
1280
    esac
 
1281
  done
1004
1282
done
 
1283
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1284
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1005
1285
 
1006
1286
# When interrupted or exit'd, cleanup temporary files, and complete
1007
1287
# config.log.  We remove comments because anyway the quotes in there
1008
1288
# would cause problems or look ugly.
 
1289
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1290
# such as our DU 5.0 friend, will then `close' the trap.
1009
1291
trap 'exit_status=$?
1010
1292
  # Save into config.log some information that might help in debugging.
1011
 
  echo >&5
1012
 
  echo "## ----------------- ##" >&5
1013
 
  echo "## Cache variables.  ##" >&5
1014
 
  echo "## ----------------- ##" >&5
1015
 
  echo >&5
1016
 
  # The following way of writing the cache mishandles newlines in values,
 
1293
  {
 
1294
    echo
 
1295
 
 
1296
    cat <<\_ASBOX
 
1297
## ---------------- ##
 
1298
## Cache variables. ##
 
1299
## ---------------- ##
 
1300
_ASBOX
 
1301
    echo
 
1302
    # The following way of writing the cache mishandles newlines in values,
1017
1303
{
1018
1304
  (set) 2>&1 |
1019
1305
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1020
1306
    *ac_space=\ *)
1021
1307
      sed -n \
1022
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1023
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1308
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1309
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1024
1310
      ;;
1025
1311
    *)
1026
1312
      sed -n \
1027
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1313
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1028
1314
      ;;
1029
1315
    esac;
1030
 
} >&5
1031
 
  sed "/^$/d" confdefs.h >conftest.log
1032
 
  if test -s conftest.log; then
1033
 
    echo >&5
1034
 
    echo "## ------------ ##" >&5
1035
 
    echo "## confdefs.h.  ##" >&5
1036
 
    echo "## ------------ ##" >&5
1037
 
    echo >&5
1038
 
    cat conftest.log >&5
1039
 
  fi
1040
 
  (echo; echo) >&5
1041
 
  test "$ac_signal" != 0 &&
1042
 
    echo "$as_me: caught signal $ac_signal" >&5
1043
 
  echo "$as_me: exit $exit_status" >&5
1044
 
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
 
1316
}
 
1317
    echo
 
1318
 
 
1319
    cat <<\_ASBOX
 
1320
## ----------------- ##
 
1321
## Output variables. ##
 
1322
## ----------------- ##
 
1323
_ASBOX
 
1324
    echo
 
1325
    for ac_var in $ac_subst_vars
 
1326
    do
 
1327
      eval ac_val=$`echo $ac_var`
 
1328
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1329
    done | sort
 
1330
    echo
 
1331
 
 
1332
    if test -n "$ac_subst_files"; then
 
1333
      cat <<\_ASBOX
 
1334
## ------------- ##
 
1335
## Output files. ##
 
1336
## ------------- ##
 
1337
_ASBOX
 
1338
      echo
 
1339
      for ac_var in $ac_subst_files
 
1340
      do
 
1341
        eval ac_val=$`echo $ac_var`
 
1342
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1343
      done | sort
 
1344
      echo
 
1345
    fi
 
1346
 
 
1347
    if test -s confdefs.h; then
 
1348
      cat <<\_ASBOX
 
1349
## ----------- ##
 
1350
## confdefs.h. ##
 
1351
## ----------- ##
 
1352
_ASBOX
 
1353
      echo
 
1354
      sed "/^$/d" confdefs.h | sort
 
1355
      echo
 
1356
    fi
 
1357
    test "$ac_signal" != 0 &&
 
1358
      echo "$as_me: caught signal $ac_signal"
 
1359
    echo "$as_me: exit $exit_status"
 
1360
  } >&5
 
1361
  rm -f core *.core &&
 
1362
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1045
1363
    exit $exit_status
1046
1364
     ' 0
1047
1365
for ac_signal in 1 2 13 15; do
1054
1372
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1055
1373
echo >confdefs.h
1056
1374
 
 
1375
# Predefined preprocessor variables.
 
1376
 
 
1377
cat >>confdefs.h <<_ACEOF
 
1378
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1379
_ACEOF
 
1380
 
 
1381
 
 
1382
cat >>confdefs.h <<_ACEOF
 
1383
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1384
_ACEOF
 
1385
 
 
1386
 
 
1387
cat >>confdefs.h <<_ACEOF
 
1388
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1389
_ACEOF
 
1390
 
 
1391
 
 
1392
cat >>confdefs.h <<_ACEOF
 
1393
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1394
_ACEOF
 
1395
 
 
1396
 
 
1397
cat >>confdefs.h <<_ACEOF
 
1398
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1399
_ACEOF
 
1400
 
 
1401
 
1057
1402
# Let the site file select an alternate cache file if it wants to.
1058
1403
# Prefer explicitly selected file to automatically selected ones.
1059
1404
if test -z "$CONFIG_SITE"; then
1065
1410
fi
1066
1411
for ac_site_file in $CONFIG_SITE; do
1067
1412
  if test -r "$ac_site_file"; then
1068
 
    { echo "$as_me:1068: loading site script $ac_site_file" >&5
 
1413
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1069
1414
echo "$as_me: loading site script $ac_site_file" >&6;}
1070
 
    cat "$ac_site_file" >&5
 
1415
    sed 's/^/| /' "$ac_site_file" >&5
1071
1416
    . "$ac_site_file"
1072
1417
  fi
1073
1418
done
1076
1421
  # Some versions of bash will fail to source /dev/null (special
1077
1422
  # files actually), so we avoid doing that.
1078
1423
  if test -f "$cache_file"; then
1079
 
    { echo "$as_me:1079: loading cache $cache_file" >&5
 
1424
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1080
1425
echo "$as_me: loading cache $cache_file" >&6;}
1081
1426
    case $cache_file in
1082
1427
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1084
1429
    esac
1085
1430
  fi
1086
1431
else
1087
 
  { echo "$as_me:1087: creating cache $cache_file" >&5
 
1432
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1088
1433
echo "$as_me: creating cache $cache_file" >&6;}
1089
1434
  >$cache_file
1090
1435
fi
1093
1438
# value.
1094
1439
ac_cache_corrupted=false
1095
1440
for ac_var in `(set) 2>&1 |
1096
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1441
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1097
1442
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1098
1443
  eval ac_new_set=\$ac_env_${ac_var}_set
1099
1444
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1100
1445
  eval ac_new_val="\$ac_env_${ac_var}_value"
1101
1446
  case $ac_old_set,$ac_new_set in
1102
1447
    set,)
1103
 
      { echo "$as_me:1103: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1448
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1104
1449
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1105
1450
      ac_cache_corrupted=: ;;
1106
1451
    ,set)
1107
 
      { echo "$as_me:1107: error: \`$ac_var' was not set in the previous run" >&5
 
1452
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1108
1453
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1109
1454
      ac_cache_corrupted=: ;;
1110
1455
    ,);;
1111
1456
    *)
1112
1457
      if test "x$ac_old_val" != "x$ac_new_val"; then
1113
 
        { echo "$as_me:1113: error: \`$ac_var' has changed since the previous run:" >&5
 
1458
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1114
1459
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1115
 
        { echo "$as_me:1115:   former value:  $ac_old_val" >&5
 
1460
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1116
1461
echo "$as_me:   former value:  $ac_old_val" >&2;}
1117
 
        { echo "$as_me:1117:   current value: $ac_new_val" >&5
 
1462
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1118
1463
echo "$as_me:   current value: $ac_new_val" >&2;}
1119
 
        ac_cache_corrupted=:
 
1464
        ac_cache_corrupted=:
1120
1465
      fi;;
1121
1466
  esac
1122
 
  # Pass precious variables to config.status.  It doesn't matter if
1123
 
  # we pass some twice (in addition to the command line arguments).
 
1467
  # Pass precious variables to config.status.
1124
1468
  if test "$ac_new_set" = set; then
1125
1469
    case $ac_new_val in
1126
1470
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1127
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1128
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
1129
 
      ;;
1130
 
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1131
 
       ;;
 
1471
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1472
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1473
    esac
 
1474
    case " $ac_configure_args " in
 
1475
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1476
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1132
1477
    esac
1133
1478
  fi
1134
1479
done
1135
1480
if $ac_cache_corrupted; then
1136
 
  { echo "$as_me:1136: error: changes in the environment can compromise the build" >&5
 
1481
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1137
1482
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1138
 
  { { echo "$as_me:1138: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1483
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1139
1484
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1140
1485
   { (exit 1); exit 1; }; }
1141
1486
fi
1146
1491
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1147
1492
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1148
1493
 
1149
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1150
 
  *c*,-n*) ECHO_N= ECHO_C='
1151
 
' ECHO_T='      ' ;;
1152
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1153
 
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1154
 
esac
1155
 
echo "#! $SHELL" >conftest.sh
1156
 
echo  "exit 0"   >>conftest.sh
1157
 
chmod +x conftest.sh
1158
 
if { (echo "$as_me:1158: PATH=\".;.\"; conftest.sh") >&5
1159
 
  (PATH=".;."; conftest.sh) 2>&5
1160
 
  ac_status=$?
1161
 
  echo "$as_me:1161: \$? = $ac_status" >&5
1162
 
  (exit $ac_status); }; then
1163
 
  ac_path_separator=';'
1164
 
else
1165
 
  ac_path_separator=:
1166
 
fi
1167
 
PATH_SEPARATOR="$ac_path_separator"
1168
 
rm -f conftest.sh
1169
 
 
1170
 
VERSION=5.03
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
# set program version number
 
1514
VERSION=6.72
1171
1515
PACKAGE=tilp
1172
1516
 
1173
 
MAJOR_VERSION=5
1174
 
MINOR_VERSION=0
1175
 
MICRO_VERSION=2
1176
 
 
1177
 
LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
1178
 
LT_CURRENT=`expr $MINOR_VERSION + $MAJOR_VERSION`
1179
 
LT_REVISION=$MICRO_VERSION
1180
 
LT_AGE=$MINOR_VERSION
1181
 
 
 
1517
 
 
1518
 
 
1519
# specify a config file
 
1520
am__api_version="1.4"
1182
1521
ac_aux_dir=
1183
1522
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1184
1523
  if test -f $ac_dir/install-sh; then
1196
1535
  fi
1197
1536
done
1198
1537
if test -z "$ac_aux_dir"; then
1199
 
  { { echo "$as_me:1199: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1538
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1200
1539
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1201
1540
   { (exit 1); exit 1; }; }
1202
1541
fi
1204
1543
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1205
1544
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1206
1545
 
 
1546
# Find a good install program.  We prefer a C program (faster),
 
1547
# so one script is as good as another.  But avoid the broken or
 
1548
# incompatible versions:
 
1549
# SysV /etc/install, /usr/sbin/install
 
1550
# SunOS /usr/etc/install
 
1551
# IRIX /sbin/install
 
1552
# AIX /bin/install
 
1553
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1554
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1555
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1556
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1557
# OS/2's system install, which has a completely different semantic
 
1558
# ./install, which can be erroneously created by make from ./install.sh.
 
1559
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1560
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1561
if test -z "$INSTALL"; then
 
1562
if test "${ac_cv_path_install+set}" = set; then
 
1563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1564
else
 
1565
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1566
for as_dir in $PATH
 
1567
do
 
1568
  IFS=$as_save_IFS
 
1569
  test -z "$as_dir" && as_dir=.
 
1570
  # Account for people who put trailing slashes in PATH elements.
 
1571
case $as_dir/ in
 
1572
  ./ | .// | /cC/* | \
 
1573
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1574
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1575
  /usr/ucb/* ) ;;
 
1576
  *)
 
1577
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1578
    # Don't use installbsd from OSF since it installs stuff as root
 
1579
    # by default.
 
1580
    for ac_prog in ginstall scoinst install; do
 
1581
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1582
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1583
          if test $ac_prog = install &&
 
1584
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1585
            # AIX install.  It has an incompatible calling convention.
 
1586
            :
 
1587
          elif test $ac_prog = install &&
 
1588
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1589
            # program-specific install script used by HP pwplus--don't use.
 
1590
            :
 
1591
          else
 
1592
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1593
            break 3
 
1594
          fi
 
1595
        fi
 
1596
      done
 
1597
    done
 
1598
    ;;
 
1599
esac
 
1600
done
 
1601
 
 
1602
 
 
1603
fi
 
1604
  if test "${ac_cv_path_install+set}" = set; then
 
1605
    INSTALL=$ac_cv_path_install
 
1606
  else
 
1607
    # As a last resort, use the slow shell script.  We don't cache a
 
1608
    # path for INSTALL within a source directory, because that will
 
1609
    # break other packages using the cache if that directory is
 
1610
    # removed, or if the path is relative.
 
1611
    INSTALL=$ac_install_sh
 
1612
  fi
 
1613
fi
 
1614
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1615
echo "${ECHO_T}$INSTALL" >&6
 
1616
 
 
1617
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1618
# It thinks the first close brace ends the variable substitution.
 
1619
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1620
 
 
1621
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1622
 
 
1623
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1624
 
 
1625
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1626
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1627
# Just in case
 
1628
sleep 1
 
1629
echo timestamp > conftestfile
 
1630
# Do `set' in a subshell so we don't clobber the current shell's
 
1631
# arguments.  Must try -L first in case configure is actually a
 
1632
# symlink; some systems play weird games with the mod time of symlinks
 
1633
# (eg FreeBSD returns the mod time of the symlink's containing
 
1634
# directory).
 
1635
if (
 
1636
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
1637
   if test "$*" = "X"; then
 
1638
      # -L didn't work.
 
1639
      set X `ls -t $srcdir/configure conftestfile`
 
1640
   fi
 
1641
   if test "$*" != "X $srcdir/configure conftestfile" \
 
1642
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
1643
 
 
1644
      # If neither matched, then we have a broken ls.  This can happen
 
1645
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1646
      # broken ls alias from the environment.  This has actually
 
1647
      # happened.  Such a system could not be considered "sane".
 
1648
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1649
alias in your environment" >&5
 
1650
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1651
alias in your environment" >&2;}
 
1652
   { (exit 1); exit 1; }; }
 
1653
   fi
 
1654
 
 
1655
   test "$2" = conftestfile
 
1656
   )
 
1657
then
 
1658
   # Ok.
 
1659
   :
 
1660
else
 
1661
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1662
Check your system clock" >&5
 
1663
echo "$as_me: error: newly created file is older than distributed files!
 
1664
Check your system clock" >&2;}
 
1665
   { (exit 1); exit 1; }; }
 
1666
fi
 
1667
rm -f conftest*
 
1668
echo "$as_me:$LINENO: result: yes" >&5
 
1669
echo "${ECHO_T}yes" >&6
 
1670
test "$program_prefix" != NONE &&
 
1671
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1672
# Use a double $ so make ignores it.
 
1673
test "$program_suffix" != NONE &&
 
1674
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1675
# Double any \ or $.  echo might interpret backslashes.
 
1676
# By default was `s,x,x', remove it if useless.
 
1677
cat <<\_ACEOF >conftest.sed
 
1678
s/[\\$]/&&/g;s/;s,x,x,$//
 
1679
_ACEOF
 
1680
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1681
rm conftest.sed
 
1682
 
 
1683
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1684
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1685
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1686
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1687
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1688
else
 
1689
  cat >conftest.make <<\_ACEOF
 
1690
all:
 
1691
        @echo 'ac_maketemp="$(MAKE)"'
 
1692
_ACEOF
 
1693
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1694
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1695
if test -n "$ac_maketemp"; then
 
1696
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1697
else
 
1698
  eval ac_cv_prog_make_${ac_make}_set=no
 
1699
fi
 
1700
rm -f conftest.make
 
1701
fi
 
1702
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1703
  echo "$as_me:$LINENO: result: yes" >&5
 
1704
echo "${ECHO_T}yes" >&6
 
1705
  SET_MAKE=
 
1706
else
 
1707
  echo "$as_me:$LINENO: result: no" >&5
 
1708
echo "${ECHO_T}no" >&6
 
1709
  SET_MAKE="MAKE=${MAKE-make}"
 
1710
fi
 
1711
 
 
1712
 
 
1713
PACKAGE=$PACKAGE
 
1714
 
 
1715
VERSION=$VERSION
 
1716
 
 
1717
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
 
1718
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1719
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1720
   { (exit 1); exit 1; }; }
 
1721
fi
 
1722
 
 
1723
cat >>confdefs.h <<_ACEOF
 
1724
#define PACKAGE "$PACKAGE"
 
1725
_ACEOF
 
1726
 
 
1727
 
 
1728
cat >>confdefs.h <<_ACEOF
 
1729
#define VERSION "$VERSION"
 
1730
_ACEOF
 
1731
 
 
1732
 
 
1733
 
 
1734
missing_dir=`cd $ac_aux_dir && pwd`
 
1735
echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
 
1736
echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
 
1737
# Run test in a subshell; some versions of sh will print an error if
 
1738
# an executable is not found, even if stderr is redirected.
 
1739
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1740
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
 
1741
   ACLOCAL=aclocal-${am__api_version}
 
1742
   echo "$as_me:$LINENO: result: found" >&5
 
1743
echo "${ECHO_T}found" >&6
 
1744
else
 
1745
   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
 
1746
   echo "$as_me:$LINENO: result: missing" >&5
 
1747
echo "${ECHO_T}missing" >&6
 
1748
fi
 
1749
 
 
1750
echo "$as_me:$LINENO: checking for working autoconf" >&5
 
1751
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
 
1752
# Run test in a subshell; some versions of sh will print an error if
 
1753
# an executable is not found, even if stderr is redirected.
 
1754
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1755
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
 
1756
   AUTOCONF=autoconf
 
1757
   echo "$as_me:$LINENO: result: found" >&5
 
1758
echo "${ECHO_T}found" >&6
 
1759
else
 
1760
   AUTOCONF="$missing_dir/missing autoconf"
 
1761
   echo "$as_me:$LINENO: result: missing" >&5
 
1762
echo "${ECHO_T}missing" >&6
 
1763
fi
 
1764
 
 
1765
echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
 
1766
echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
 
1767
# Run test in a subshell; some versions of sh will print an error if
 
1768
# an executable is not found, even if stderr is redirected.
 
1769
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1770
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
 
1771
   AUTOMAKE=automake-${am__api_version}
 
1772
   echo "$as_me:$LINENO: result: found" >&5
 
1773
echo "${ECHO_T}found" >&6
 
1774
else
 
1775
   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
 
1776
   echo "$as_me:$LINENO: result: missing" >&5
 
1777
echo "${ECHO_T}missing" >&6
 
1778
fi
 
1779
 
 
1780
echo "$as_me:$LINENO: checking for working autoheader" >&5
 
1781
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
 
1782
# Run test in a subshell; some versions of sh will print an error if
 
1783
# an executable is not found, even if stderr is redirected.
 
1784
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1785
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
 
1786
   AUTOHEADER=autoheader
 
1787
   echo "$as_me:$LINENO: result: found" >&5
 
1788
echo "${ECHO_T}found" >&6
 
1789
else
 
1790
   AUTOHEADER="$missing_dir/missing autoheader"
 
1791
   echo "$as_me:$LINENO: result: missing" >&5
 
1792
echo "${ECHO_T}missing" >&6
 
1793
fi
 
1794
 
 
1795
echo "$as_me:$LINENO: checking for working makeinfo" >&5
 
1796
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
 
1797
# Run test in a subshell; some versions of sh will print an error if
 
1798
# an executable is not found, even if stderr is redirected.
 
1799
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
1800
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
 
1801
   MAKEINFO=makeinfo
 
1802
   echo "$as_me:$LINENO: result: found" >&5
 
1803
echo "${ECHO_T}found" >&6
 
1804
else
 
1805
   MAKEINFO="$missing_dir/missing makeinfo"
 
1806
   echo "$as_me:$LINENO: result: missing" >&5
 
1807
echo "${ECHO_T}missing" >&6
 
1808
fi
 
1809
 
 
1810
 
 
1811
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1812
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
1813
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
1814
if test "${enable_maintainer_mode+set}" = set; then
 
1815
  enableval="$enable_maintainer_mode"
 
1816
  USE_MAINTAINER_MODE=$enableval
 
1817
else
 
1818
  USE_MAINTAINER_MODE=no
 
1819
fi;
 
1820
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
1821
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
1822
 
 
1823
 
 
1824
if test $USE_MAINTAINER_MODE = yes; then
 
1825
  MAINTAINER_MODE_TRUE=
 
1826
  MAINTAINER_MODE_FALSE='#'
 
1827
else
 
1828
  MAINTAINER_MODE_TRUE='#'
 
1829
  MAINTAINER_MODE_FALSE=
 
1830
fi
 
1831
  MAINT=$MAINTAINER_MODE_TRUE
 
1832
 
 
1833
 
 
1834
 
 
1835
 
 
1836
          ac_config_headers="$ac_config_headers config.h"
 
1837
 
 
1838
          ac_config_commands="$ac_config_commands default-1"
 
1839
 
 
1840
 
 
1841
# determine the system type
 
1842
# determine the host type
1207
1843
# Make sure we can run config.sub.
1208
1844
$ac_config_sub sun4 >/dev/null 2>&1 ||
1209
 
  { { echo "$as_me:1209: error: cannot run $ac_config_sub" >&5
 
1845
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1210
1846
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1211
1847
   { (exit 1); exit 1; }; }
1212
1848
 
1213
 
echo "$as_me:1213: checking build system type" >&5
 
1849
echo "$as_me:$LINENO: checking build system type" >&5
1214
1850
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1215
1851
if test "${ac_cv_build+set}" = set; then
1216
1852
  echo $ECHO_N "(cached) $ECHO_C" >&6
1219
1855
test -z "$ac_cv_build_alias" &&
1220
1856
  ac_cv_build_alias=`$ac_config_guess`
1221
1857
test -z "$ac_cv_build_alias" &&
1222
 
  { { echo "$as_me:1222: error: cannot guess build type; you must specify one" >&5
 
1858
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1223
1859
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1224
1860
   { (exit 1); exit 1; }; }
1225
1861
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1226
 
  { { echo "$as_me:1226: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1227
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
 
1862
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1863
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1228
1864
   { (exit 1); exit 1; }; }
1229
1865
 
1230
1866
fi
1231
 
echo "$as_me:1231: result: $ac_cv_build" >&5
 
1867
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1232
1868
echo "${ECHO_T}$ac_cv_build" >&6
1233
1869
build=$ac_cv_build
1234
1870
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1235
1871
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1236
1872
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1237
1873
 
1238
 
echo "$as_me:1238: checking host system type" >&5
 
1874
 
 
1875
echo "$as_me:$LINENO: checking host system type" >&5
1239
1876
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1240
1877
if test "${ac_cv_host+set}" = set; then
1241
1878
  echo $ECHO_N "(cached) $ECHO_C" >&6
1244
1881
test -z "$ac_cv_host_alias" &&
1245
1882
  ac_cv_host_alias=$ac_cv_build_alias
1246
1883
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1247
 
  { { echo "$as_me:1247: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1884
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1248
1885
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1249
1886
   { (exit 1); exit 1; }; }
1250
1887
 
1251
1888
fi
1252
 
echo "$as_me:1252: result: $ac_cv_host" >&5
 
1889
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1253
1890
echo "${ECHO_T}$ac_cv_host" >&6
1254
1891
host=$ac_cv_host
1255
1892
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1256
1893
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1257
1894
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1258
1895
 
1259
 
echo "$as_me:1259: checking target system type" >&5
1260
 
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1261
 
if test "${ac_cv_target+set}" = set; then
1262
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1263
 
else
1264
 
  ac_cv_target_alias=$target_alias
1265
 
test "x$ac_cv_target_alias" = "x" &&
1266
 
  ac_cv_target_alias=$ac_cv_host_alias
1267
 
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1268
 
  { { echo "$as_me:1268: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1269
 
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1270
 
   { (exit 1); exit 1; }; }
1271
 
 
1272
 
fi
1273
 
echo "$as_me:1273: result: $ac_cv_target" >&5
1274
 
echo "${ECHO_T}$ac_cv_target" >&6
1275
 
target=$ac_cv_target
1276
 
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1277
 
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1278
 
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1279
 
 
1280
 
# The aliases save the names the user supplied, while $host etc.
1281
 
# will get canonicalized.
1282
 
test -n "$target_alias" &&
1283
 
  test "$program_prefix$program_suffix$program_transform_name" = \
1284
 
    NONENONEs,x,x, &&
1285
 
  program_prefix=${target_alias}-
1286
 
 
1287
 
# Find the correct PATH separator.  Usually this is `:', but
1288
 
# DJGPP uses `;' like DOS.
1289
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
1290
 
  UNAME=${UNAME-`uname 2>/dev/null`}
1291
 
  case X$UNAME in
1292
 
    *-DOS) PATH_SEPARATOR=';' ;;
1293
 
    *)     PATH_SEPARATOR=':' ;;
1294
 
  esac
1295
 
fi
1296
 
 
1297
 
# Check whether --enable-shared or --disable-shared was given.
1298
 
if test "${enable_shared+set}" = set; then
1299
 
  enableval="$enable_shared"
1300
 
  p=${PACKAGE-default}
1301
 
    case $enableval in
1302
 
    yes) enable_shared=yes ;;
1303
 
    no) enable_shared=no ;;
1304
 
    *)
1305
 
      enable_shared=no
1306
 
      # Look at the argument we got.  We use all the common list separators.
1307
 
      IFS="${IFS=       }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
1308
 
      for pkg in $enableval; do
1309
 
        IFS="$lt_save_ifs"
1310
 
        if test "X$pkg" = "X$p"; then
1311
 
          enable_shared=yes
1312
 
        fi
1313
 
      done
1314
 
      IFS="$lt_save_ifs"
1315
 
      ;;
1316
 
    esac
1317
 
else
1318
 
  enable_shared=yes
1319
 
fi;
1320
 
 
1321
 
# Check whether --enable-static or --disable-static was given.
1322
 
if test "${enable_static+set}" = set; then
1323
 
  enableval="$enable_static"
1324
 
  p=${PACKAGE-default}
1325
 
    case $enableval in
1326
 
    yes) enable_static=yes ;;
1327
 
    no) enable_static=no ;;
1328
 
    *)
1329
 
     enable_static=no
1330
 
      # Look at the argument we got.  We use all the common list separators.
1331
 
      IFS="${IFS=       }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
1332
 
      for pkg in $enableval; do
1333
 
        IFS="$lt_save_ifs"
1334
 
        if test "X$pkg" = "X$p"; then
1335
 
          enable_static=yes
1336
 
        fi
1337
 
      done
1338
 
      IFS="$lt_save_ifs"
1339
 
      ;;
1340
 
    esac
1341
 
else
1342
 
  enable_static=yes
1343
 
fi;
1344
 
 
1345
 
# Check whether --enable-fast-install or --disable-fast-install was given.
1346
 
if test "${enable_fast_install+set}" = set; then
1347
 
  enableval="$enable_fast_install"
1348
 
  p=${PACKAGE-default}
1349
 
    case $enableval in
1350
 
    yes) enable_fast_install=yes ;;
1351
 
    no) enable_fast_install=no ;;
1352
 
    *)
1353
 
      enable_fast_install=no
1354
 
      # Look at the argument we got.  We use all the common list separators.
1355
 
      IFS="${IFS=       }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
1356
 
      for pkg in $enableval; do
1357
 
        IFS="$lt_save_ifs"
1358
 
        if test "X$pkg" = "X$p"; then
1359
 
          enable_fast_install=yes
1360
 
        fi
1361
 
      done
1362
 
      IFS="$lt_save_ifs"
1363
 
      ;;
1364
 
    esac
1365
 
else
1366
 
  enable_fast_install=yes
1367
 
fi;
1368
 
 
 
1896
 
 
1897
 
 
1898
# change the default prefix (/usr/local) to /usr
 
1899
 
 
1900
 
 
1901
# build time sanity check...
 
1902
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1903
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1904
# Just in case
 
1905
sleep 1
 
1906
echo timestamp > conftestfile
 
1907
# Do `set' in a subshell so we don't clobber the current shell's
 
1908
# arguments.  Must try -L first in case configure is actually a
 
1909
# symlink; some systems play weird games with the mod time of symlinks
 
1910
# (eg FreeBSD returns the mod time of the symlink's containing
 
1911
# directory).
 
1912
if (
 
1913
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
1914
   if test "$*" = "X"; then
 
1915
      # -L didn't work.
 
1916
      set X `ls -t $srcdir/configure conftestfile`
 
1917
   fi
 
1918
   if test "$*" != "X $srcdir/configure conftestfile" \
 
1919
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
1920
 
 
1921
      # If neither matched, then we have a broken ls.  This can happen
 
1922
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1923
      # broken ls alias from the environment.  This has actually
 
1924
      # happened.  Such a system could not be considered "sane".
 
1925
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1926
alias in your environment" >&5
 
1927
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1928
alias in your environment" >&2;}
 
1929
   { (exit 1); exit 1; }; }
 
1930
   fi
 
1931
 
 
1932
   test "$2" = conftestfile
 
1933
   )
 
1934
then
 
1935
   # Ok.
 
1936
   :
 
1937
else
 
1938
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1939
Check your system clock" >&5
 
1940
echo "$as_me: error: newly created file is older than distributed files!
 
1941
Check your system clock" >&2;}
 
1942
   { (exit 1); exit 1; }; }
 
1943
fi
 
1944
rm -f conftest*
 
1945
echo "$as_me:$LINENO: result: yes" >&5
 
1946
echo "${ECHO_T}yes" >&6
 
1947
 
 
1948
# Just for fun :)
 
1949
echo -n "checking for something to drink while compiling..."
 
1950
echo " err: no fridge found"
 
1951
 
 
1952
# Checks for programs.
1369
1953
ac_ext=c
1370
1954
ac_cpp='$CPP $CPPFLAGS'
1371
1955
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1374
1958
if test -n "$ac_tool_prefix"; then
1375
1959
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1376
1960
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1377
 
echo "$as_me:1377: checking for $ac_word" >&5
 
1961
echo "$as_me:$LINENO: checking for $ac_word" >&5
1378
1962
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1379
1963
if test "${ac_cv_prog_CC+set}" = set; then
1380
1964
  echo $ECHO_N "(cached) $ECHO_C" >&6
1382
1966
  if test -n "$CC"; then
1383
1967
  ac_cv_prog_CC="$CC" # Let the user override the test.
1384
1968
else
1385
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1386
 
ac_dummy="$PATH"
1387
 
for ac_dir in $ac_dummy; do
1388
 
  IFS=$ac_save_IFS
1389
 
  test -z "$ac_dir" && ac_dir=.
1390
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1391
 
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1392
 
echo "$as_me:1392: found $ac_dir/$ac_word" >&5
1393
 
break
 
1969
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1970
for as_dir in $PATH
 
1971
do
 
1972
  IFS=$as_save_IFS
 
1973
  test -z "$as_dir" && as_dir=.
 
1974
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1975
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1976
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1977
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1978
    break 2
 
1979
  fi
 
1980
done
1394
1981
done
1395
1982
 
1396
1983
fi
1397
1984
fi
1398
1985
CC=$ac_cv_prog_CC
1399
1986
if test -n "$CC"; then
1400
 
  echo "$as_me:1400: result: $CC" >&5
 
1987
  echo "$as_me:$LINENO: result: $CC" >&5
1401
1988
echo "${ECHO_T}$CC" >&6
1402
1989
else
1403
 
  echo "$as_me:1403: result: no" >&5
 
1990
  echo "$as_me:$LINENO: result: no" >&5
1404
1991
echo "${ECHO_T}no" >&6
1405
1992
fi
1406
1993
 
1409
1996
  ac_ct_CC=$CC
1410
1997
  # Extract the first word of "gcc", so it can be a program name with args.
1411
1998
set dummy gcc; ac_word=$2
1412
 
echo "$as_me:1412: checking for $ac_word" >&5
 
1999
echo "$as_me:$LINENO: checking for $ac_word" >&5
1413
2000
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1414
2001
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1415
2002
  echo $ECHO_N "(cached) $ECHO_C" >&6
1417
2004
  if test -n "$ac_ct_CC"; then
1418
2005
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1419
2006
else
1420
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1421
 
ac_dummy="$PATH"
1422
 
for ac_dir in $ac_dummy; do
1423
 
  IFS=$ac_save_IFS
1424
 
  test -z "$ac_dir" && ac_dir=.
1425
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1426
 
ac_cv_prog_ac_ct_CC="gcc"
1427
 
echo "$as_me:1427: found $ac_dir/$ac_word" >&5
1428
 
break
 
2007
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2008
for as_dir in $PATH
 
2009
do
 
2010
  IFS=$as_save_IFS
 
2011
  test -z "$as_dir" && as_dir=.
 
2012
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2013
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2014
    ac_cv_prog_ac_ct_CC="gcc"
 
2015
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2016
    break 2
 
2017
  fi
 
2018
done
1429
2019
done
1430
2020
 
1431
2021
fi
1432
2022
fi
1433
2023
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1434
2024
if test -n "$ac_ct_CC"; then
1435
 
  echo "$as_me:1435: result: $ac_ct_CC" >&5
 
2025
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1436
2026
echo "${ECHO_T}$ac_ct_CC" >&6
1437
2027
else
1438
 
  echo "$as_me:1438: result: no" >&5
 
2028
  echo "$as_me:$LINENO: result: no" >&5
1439
2029
echo "${ECHO_T}no" >&6
1440
2030
fi
1441
2031
 
1448
2038
  if test -n "$ac_tool_prefix"; then
1449
2039
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1450
2040
set dummy ${ac_tool_prefix}cc; ac_word=$2
1451
 
echo "$as_me:1451: checking for $ac_word" >&5
 
2041
echo "$as_me:$LINENO: checking for $ac_word" >&5
1452
2042
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453
2043
if test "${ac_cv_prog_CC+set}" = set; then
1454
2044
  echo $ECHO_N "(cached) $ECHO_C" >&6
1456
2046
  if test -n "$CC"; then
1457
2047
  ac_cv_prog_CC="$CC" # Let the user override the test.
1458
2048
else
1459
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1460
 
ac_dummy="$PATH"
1461
 
for ac_dir in $ac_dummy; do
1462
 
  IFS=$ac_save_IFS
1463
 
  test -z "$ac_dir" && ac_dir=.
1464
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1465
 
ac_cv_prog_CC="${ac_tool_prefix}cc"
1466
 
echo "$as_me:1466: found $ac_dir/$ac_word" >&5
1467
 
break
 
2049
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2050
for as_dir in $PATH
 
2051
do
 
2052
  IFS=$as_save_IFS
 
2053
  test -z "$as_dir" && as_dir=.
 
2054
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2055
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2056
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2057
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2058
    break 2
 
2059
  fi
 
2060
done
1468
2061
done
1469
2062
 
1470
2063
fi
1471
2064
fi
1472
2065
CC=$ac_cv_prog_CC
1473
2066
if test -n "$CC"; then
1474
 
  echo "$as_me:1474: result: $CC" >&5
 
2067
  echo "$as_me:$LINENO: result: $CC" >&5
1475
2068
echo "${ECHO_T}$CC" >&6
1476
2069
else
1477
 
  echo "$as_me:1477: result: no" >&5
 
2070
  echo "$as_me:$LINENO: result: no" >&5
1478
2071
echo "${ECHO_T}no" >&6
1479
2072
fi
1480
2073
 
1483
2076
  ac_ct_CC=$CC
1484
2077
  # Extract the first word of "cc", so it can be a program name with args.
1485
2078
set dummy cc; ac_word=$2
1486
 
echo "$as_me:1486: checking for $ac_word" >&5
 
2079
echo "$as_me:$LINENO: checking for $ac_word" >&5
1487
2080
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1488
2081
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1489
2082
  echo $ECHO_N "(cached) $ECHO_C" >&6
1491
2084
  if test -n "$ac_ct_CC"; then
1492
2085
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1493
2086
else
1494
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1495
 
ac_dummy="$PATH"
1496
 
for ac_dir in $ac_dummy; do
1497
 
  IFS=$ac_save_IFS
1498
 
  test -z "$ac_dir" && ac_dir=.
1499
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1500
 
ac_cv_prog_ac_ct_CC="cc"
1501
 
echo "$as_me:1501: found $ac_dir/$ac_word" >&5
1502
 
break
 
2087
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2088
for as_dir in $PATH
 
2089
do
 
2090
  IFS=$as_save_IFS
 
2091
  test -z "$as_dir" && as_dir=.
 
2092
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2093
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2094
    ac_cv_prog_ac_ct_CC="cc"
 
2095
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2096
    break 2
 
2097
  fi
 
2098
done
1503
2099
done
1504
2100
 
1505
2101
fi
1506
2102
fi
1507
2103
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1508
2104
if test -n "$ac_ct_CC"; then
1509
 
  echo "$as_me:1509: result: $ac_ct_CC" >&5
 
2105
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1510
2106
echo "${ECHO_T}$ac_ct_CC" >&6
1511
2107
else
1512
 
  echo "$as_me:1512: result: no" >&5
 
2108
  echo "$as_me:$LINENO: result: no" >&5
1513
2109
echo "${ECHO_T}no" >&6
1514
2110
fi
1515
2111
 
1522
2118
if test -z "$CC"; then
1523
2119
  # Extract the first word of "cc", so it can be a program name with args.
1524
2120
set dummy cc; ac_word=$2
1525
 
echo "$as_me:1525: checking for $ac_word" >&5
 
2121
echo "$as_me:$LINENO: checking for $ac_word" >&5
1526
2122
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1527
2123
if test "${ac_cv_prog_CC+set}" = set; then
1528
2124
  echo $ECHO_N "(cached) $ECHO_C" >&6
1531
2127
  ac_cv_prog_CC="$CC" # Let the user override the test.
1532
2128
else
1533
2129
  ac_prog_rejected=no
1534
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1535
 
ac_dummy="$PATH"
1536
 
for ac_dir in $ac_dummy; do
1537
 
  IFS=$ac_save_IFS
1538
 
  test -z "$ac_dir" && ac_dir=.
1539
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1540
 
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1541
 
  ac_prog_rejected=yes
1542
 
  continue
1543
 
fi
1544
 
ac_cv_prog_CC="cc"
1545
 
echo "$as_me:1545: found $ac_dir/$ac_word" >&5
1546
 
break
 
2130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2131
for as_dir in $PATH
 
2132
do
 
2133
  IFS=$as_save_IFS
 
2134
  test -z "$as_dir" && as_dir=.
 
2135
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2136
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2137
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2138
       ac_prog_rejected=yes
 
2139
       continue
 
2140
     fi
 
2141
    ac_cv_prog_CC="cc"
 
2142
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2143
    break 2
 
2144
  fi
 
2145
done
1547
2146
done
1548
2147
 
1549
2148
if test $ac_prog_rejected = yes; then
1555
2154
    # However, it has the same basename, so the bogon will be chosen
1556
2155
    # first if we set CC to just the basename; use the full file name.
1557
2156
    shift
1558
 
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1559
 
    shift
1560
 
    ac_cv_prog_CC="$@"
 
2157
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1561
2158
  fi
1562
2159
fi
1563
2160
fi
1564
2161
fi
1565
2162
CC=$ac_cv_prog_CC
1566
2163
if test -n "$CC"; then
1567
 
  echo "$as_me:1567: result: $CC" >&5
 
2164
  echo "$as_me:$LINENO: result: $CC" >&5
1568
2165
echo "${ECHO_T}$CC" >&6
1569
2166
else
1570
 
  echo "$as_me:1570: result: no" >&5
 
2167
  echo "$as_me:$LINENO: result: no" >&5
1571
2168
echo "${ECHO_T}no" >&6
1572
2169
fi
1573
2170
 
1578
2175
  do
1579
2176
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1580
2177
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1581
 
echo "$as_me:1581: checking for $ac_word" >&5
 
2178
echo "$as_me:$LINENO: checking for $ac_word" >&5
1582
2179
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1583
2180
if test "${ac_cv_prog_CC+set}" = set; then
1584
2181
  echo $ECHO_N "(cached) $ECHO_C" >&6
1586
2183
  if test -n "$CC"; then
1587
2184
  ac_cv_prog_CC="$CC" # Let the user override the test.
1588
2185
else
1589
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1590
 
ac_dummy="$PATH"
1591
 
for ac_dir in $ac_dummy; do
1592
 
  IFS=$ac_save_IFS
1593
 
  test -z "$ac_dir" && ac_dir=.
1594
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1595
 
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1596
 
echo "$as_me:1596: found $ac_dir/$ac_word" >&5
1597
 
break
 
2186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2187
for as_dir in $PATH
 
2188
do
 
2189
  IFS=$as_save_IFS
 
2190
  test -z "$as_dir" && as_dir=.
 
2191
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2192
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2193
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2194
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2195
    break 2
 
2196
  fi
 
2197
done
1598
2198
done
1599
2199
 
1600
2200
fi
1601
2201
fi
1602
2202
CC=$ac_cv_prog_CC
1603
2203
if test -n "$CC"; then
1604
 
  echo "$as_me:1604: result: $CC" >&5
 
2204
  echo "$as_me:$LINENO: result: $CC" >&5
1605
2205
echo "${ECHO_T}$CC" >&6
1606
2206
else
1607
 
  echo "$as_me:1607: result: no" >&5
 
2207
  echo "$as_me:$LINENO: result: no" >&5
1608
2208
echo "${ECHO_T}no" >&6
1609
2209
fi
1610
2210
 
1617
2217
do
1618
2218
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1619
2219
set dummy $ac_prog; ac_word=$2
1620
 
echo "$as_me:1620: checking for $ac_word" >&5
 
2220
echo "$as_me:$LINENO: checking for $ac_word" >&5
1621
2221
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622
2222
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1623
2223
  echo $ECHO_N "(cached) $ECHO_C" >&6
1625
2225
  if test -n "$ac_ct_CC"; then
1626
2226
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1627
2227
else
1628
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1629
 
ac_dummy="$PATH"
1630
 
for ac_dir in $ac_dummy; do
1631
 
  IFS=$ac_save_IFS
1632
 
  test -z "$ac_dir" && ac_dir=.
1633
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1634
 
ac_cv_prog_ac_ct_CC="$ac_prog"
1635
 
echo "$as_me:1635: found $ac_dir/$ac_word" >&5
1636
 
break
 
2228
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2229
for as_dir in $PATH
 
2230
do
 
2231
  IFS=$as_save_IFS
 
2232
  test -z "$as_dir" && as_dir=.
 
2233
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2234
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2235
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2236
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2237
    break 2
 
2238
  fi
 
2239
done
1637
2240
done
1638
2241
 
1639
2242
fi
1640
2243
fi
1641
2244
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1642
2245
if test -n "$ac_ct_CC"; then
1643
 
  echo "$as_me:1643: result: $ac_ct_CC" >&5
 
2246
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1644
2247
echo "${ECHO_T}$ac_ct_CC" >&6
1645
2248
else
1646
 
  echo "$as_me:1646: result: no" >&5
 
2249
  echo "$as_me:$LINENO: result: no" >&5
1647
2250
echo "${ECHO_T}no" >&6
1648
2251
fi
1649
2252
 
1655
2258
 
1656
2259
fi
1657
2260
 
1658
 
test -z "$CC" && { { echo "$as_me:1658: error: no acceptable cc found in \$PATH" >&5
1659
 
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 
2261
 
 
2262
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2263
See \`config.log' for more details." >&5
 
2264
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2265
See \`config.log' for more details." >&2;}
1660
2266
   { (exit 1); exit 1; }; }
1661
2267
 
1662
2268
# Provide some information about the compiler.
1663
 
echo "$as_me:1663:" \
 
2269
echo "$as_me:$LINENO:" \
1664
2270
     "checking for C compiler version" >&5
1665
2271
ac_compiler=`set X $ac_compile; echo $2`
1666
 
{ (eval echo "$as_me:1666: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2272
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1667
2273
  (eval $ac_compiler --version </dev/null >&5) 2>&5
1668
2274
  ac_status=$?
1669
 
  echo "$as_me:1669: \$? = $ac_status" >&5
 
2275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1670
2276
  (exit $ac_status); }
1671
 
{ (eval echo "$as_me:1671: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2277
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1672
2278
  (eval $ac_compiler -v </dev/null >&5) 2>&5
1673
2279
  ac_status=$?
1674
 
  echo "$as_me:1674: \$? = $ac_status" >&5
 
2280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1675
2281
  (exit $ac_status); }
1676
 
{ (eval echo "$as_me:1676: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2282
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1677
2283
  (eval $ac_compiler -V </dev/null >&5) 2>&5
1678
2284
  ac_status=$?
1679
 
  echo "$as_me:1679: \$? = $ac_status" >&5
 
2285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1680
2286
  (exit $ac_status); }
1681
2287
 
1682
2288
cat >conftest.$ac_ext <<_ACEOF
1683
 
#line 1683 "configure"
1684
 
#include "confdefs.h"
 
2289
/* confdefs.h.  */
 
2290
_ACEOF
 
2291
cat confdefs.h >>conftest.$ac_ext
 
2292
cat >>conftest.$ac_ext <<_ACEOF
 
2293
/* end confdefs.h.  */
1685
2294
 
1686
2295
int
1687
2296
main ()
1692
2301
}
1693
2302
_ACEOF
1694
2303
ac_clean_files_save=$ac_clean_files
1695
 
ac_clean_files="$ac_clean_files a.out a.exe"
 
2304
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1696
2305
# Try to create an executable without -o first, disregard a.out.
1697
2306
# It will help us diagnose broken compilers, and finding out an intuition
1698
2307
# of exeext.
1699
 
echo "$as_me:1699: checking for C compiler default output" >&5
1700
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2308
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2309
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1701
2310
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1702
 
if { (eval echo "$as_me:1702: \"$ac_link_default\"") >&5
 
2311
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1703
2312
  (eval $ac_link_default) 2>&5
1704
2313
  ac_status=$?
1705
 
  echo "$as_me:1705: \$? = $ac_status" >&5
 
2314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1706
2315
  (exit $ac_status); }; then
1707
2316
  # Find the output, starting from the most likely.  This scheme is
1708
2317
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1709
2318
# resort.
1710
 
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1711
 
                ls a.out conftest 2>/dev/null;
1712
 
                ls a.* conftest.* 2>/dev/null`; do
 
2319
 
 
2320
# Be careful to initialize this variable, since it used to be cached.
 
2321
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2322
ac_cv_exeext=
 
2323
# b.out is created by i960 compilers.
 
2324
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2325
do
 
2326
  test -f "$ac_file" || continue
1713
2327
  case $ac_file in
1714
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1715
 
    a.out ) # We found the default executable, but exeext='' is most
1716
 
            # certainly right.
1717
 
            break;;
1718
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1719
 
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1720
 
          export ac_cv_exeext
1721
 
          break;;
1722
 
    * ) break;;
 
2328
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2329
        ;;
 
2330
    conftest.$ac_ext )
 
2331
        # This is the source file.
 
2332
        ;;
 
2333
    [ab].out )
 
2334
        # We found the default executable, but exeext='' is most
 
2335
        # certainly right.
 
2336
        break;;
 
2337
    *.* )
 
2338
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2339
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2340
        # but it would be cool to find out if it's true.  Does anybody
 
2341
        # maintain Libtool? --akim.
 
2342
        export ac_cv_exeext
 
2343
        break;;
 
2344
    * )
 
2345
        break;;
1723
2346
  esac
1724
2347
done
1725
2348
else
1726
2349
  echo "$as_me: failed program was:" >&5
1727
 
cat conftest.$ac_ext >&5
1728
 
{ { echo "$as_me:1728: error: C compiler cannot create executables" >&5
1729
 
echo "$as_me: error: C compiler cannot create executables" >&2;}
 
2350
sed 's/^/| /' conftest.$ac_ext >&5
 
2351
 
 
2352
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2353
See \`config.log' for more details." >&5
 
2354
echo "$as_me: error: C compiler cannot create executables
 
2355
See \`config.log' for more details." >&2;}
1730
2356
   { (exit 77); exit 77; }; }
1731
2357
fi
1732
2358
 
1733
2359
ac_exeext=$ac_cv_exeext
1734
 
echo "$as_me:1734: result: $ac_file" >&5
 
2360
echo "$as_me:$LINENO: result: $ac_file" >&5
1735
2361
echo "${ECHO_T}$ac_file" >&6
1736
2362
 
1737
2363
# Check the compiler produces executables we can run.  If not, either
1738
2364
# the compiler is broken, or we cross compile.
1739
 
echo "$as_me:1739: checking whether the C compiler works" >&5
 
2365
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1740
2366
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1741
2367
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1742
2368
# If not cross compiling, check that we can run a simple program.
1743
2369
if test "$cross_compiling" != yes; then
1744
2370
  if { ac_try='./$ac_file'
1745
 
  { (eval echo "$as_me:1745: \"$ac_try\"") >&5
 
2371
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1746
2372
  (eval $ac_try) 2>&5
1747
2373
  ac_status=$?
1748
 
  echo "$as_me:1748: \$? = $ac_status" >&5
 
2374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1749
2375
  (exit $ac_status); }; }; then
1750
2376
    cross_compiling=no
1751
2377
  else
1752
2378
    if test "$cross_compiling" = maybe; then
1753
2379
        cross_compiling=yes
1754
2380
    else
1755
 
        { { echo "$as_me:1755: error: cannot run C compiled programs.
1756
 
If you meant to cross compile, use \`--host'." >&5
 
2381
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2382
If you meant to cross compile, use \`--host'.
 
2383
See \`config.log' for more details." >&5
1757
2384
echo "$as_me: error: cannot run C compiled programs.
1758
 
If you meant to cross compile, use \`--host'." >&2;}
 
2385
If you meant to cross compile, use \`--host'.
 
2386
See \`config.log' for more details." >&2;}
1759
2387
   { (exit 1); exit 1; }; }
1760
2388
    fi
1761
2389
  fi
1762
2390
fi
1763
 
echo "$as_me:1763: result: yes" >&5
 
2391
echo "$as_me:$LINENO: result: yes" >&5
1764
2392
echo "${ECHO_T}yes" >&6
1765
2393
 
1766
 
rm -f a.out a.exe conftest$ac_cv_exeext
 
2394
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1767
2395
ac_clean_files=$ac_clean_files_save
1768
2396
# Check the compiler produces executables we can run.  If not, either
1769
2397
# the compiler is broken, or we cross compile.
1770
 
echo "$as_me:1770: checking whether we are cross compiling" >&5
 
2398
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1771
2399
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1772
 
echo "$as_me:1772: result: $cross_compiling" >&5
 
2400
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1773
2401
echo "${ECHO_T}$cross_compiling" >&6
1774
2402
 
1775
 
echo "$as_me:1775: checking for executable suffix" >&5
1776
 
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1777
 
if { (eval echo "$as_me:1777: \"$ac_link\"") >&5
 
2403
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2404
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2405
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1778
2406
  (eval $ac_link) 2>&5
1779
2407
  ac_status=$?
1780
 
  echo "$as_me:1780: \$? = $ac_status" >&5
 
2408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1781
2409
  (exit $ac_status); }; then
1782
2410
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1783
2411
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1784
2412
# work properly (i.e., refer to `conftest.exe'), while it won't with
1785
2413
# `rm'.
1786
 
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
2414
for ac_file in conftest.exe conftest conftest.*; do
 
2415
  test -f "$ac_file" || continue
1787
2416
  case $ac_file in
1788
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2417
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1789
2418
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1790
 
          export ac_cv_exeext
1791
 
          break;;
 
2419
          export ac_cv_exeext
 
2420
          break;;
1792
2421
    * ) break;;
1793
2422
  esac
1794
2423
done
1795
2424
else
1796
 
  { { echo "$as_me:1796: error: cannot compute EXEEXT: cannot compile and link" >&5
1797
 
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
 
2425
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2426
See \`config.log' for more details." >&5
 
2427
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2428
See \`config.log' for more details." >&2;}
1798
2429
   { (exit 1); exit 1; }; }
1799
2430
fi
1800
2431
 
1801
2432
rm -f conftest$ac_cv_exeext
1802
 
echo "$as_me:1802: result: $ac_cv_exeext" >&5
 
2433
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1803
2434
echo "${ECHO_T}$ac_cv_exeext" >&6
1804
2435
 
1805
2436
rm -f conftest.$ac_ext
1806
2437
EXEEXT=$ac_cv_exeext
1807
2438
ac_exeext=$EXEEXT
1808
 
echo "$as_me:1808: checking for object suffix" >&5
1809
 
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
 
2439
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2440
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1810
2441
if test "${ac_cv_objext+set}" = set; then
1811
2442
  echo $ECHO_N "(cached) $ECHO_C" >&6
1812
2443
else
1813
2444
  cat >conftest.$ac_ext <<_ACEOF
1814
 
#line 1814 "configure"
1815
 
#include "confdefs.h"
 
2445
/* confdefs.h.  */
 
2446
_ACEOF
 
2447
cat confdefs.h >>conftest.$ac_ext
 
2448
cat >>conftest.$ac_ext <<_ACEOF
 
2449
/* end confdefs.h.  */
1816
2450
 
1817
2451
int
1818
2452
main ()
1823
2457
}
1824
2458
_ACEOF
1825
2459
rm -f conftest.o conftest.obj
1826
 
if { (eval echo "$as_me:1826: \"$ac_compile\"") >&5
 
2460
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1827
2461
  (eval $ac_compile) 2>&5
1828
2462
  ac_status=$?
1829
 
  echo "$as_me:1829: \$? = $ac_status" >&5
 
2463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830
2464
  (exit $ac_status); }; then
1831
2465
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1832
2466
  case $ac_file in
1833
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2467
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1834
2468
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1835
2469
       break;;
1836
2470
  esac
1837
2471
done
1838
2472
else
1839
2473
  echo "$as_me: failed program was:" >&5
1840
 
cat conftest.$ac_ext >&5
1841
 
{ { echo "$as_me:1841: error: cannot compute OBJEXT: cannot compile" >&5
1842
 
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
 
2474
sed 's/^/| /' conftest.$ac_ext >&5
 
2475
 
 
2476
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2477
See \`config.log' for more details." >&5
 
2478
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2479
See \`config.log' for more details." >&2;}
1843
2480
   { (exit 1); exit 1; }; }
1844
2481
fi
1845
2482
 
1846
2483
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1847
2484
fi
1848
 
echo "$as_me:1848: result: $ac_cv_objext" >&5
 
2485
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1849
2486
echo "${ECHO_T}$ac_cv_objext" >&6
1850
2487
OBJEXT=$ac_cv_objext
1851
2488
ac_objext=$OBJEXT
1852
 
echo "$as_me:1852: checking whether we are using the GNU C compiler" >&5
 
2489
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1853
2490
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1854
2491
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1855
2492
  echo $ECHO_N "(cached) $ECHO_C" >&6
1856
2493
else
1857
2494
  cat >conftest.$ac_ext <<_ACEOF
1858
 
#line 1858 "configure"
1859
 
#include "confdefs.h"
 
2495
/* confdefs.h.  */
 
2496
_ACEOF
 
2497
cat confdefs.h >>conftest.$ac_ext
 
2498
cat >>conftest.$ac_ext <<_ACEOF
 
2499
/* end confdefs.h.  */
1860
2500
 
1861
2501
int
1862
2502
main ()
1870
2510
}
1871
2511
_ACEOF
1872
2512
rm -f conftest.$ac_objext
1873
 
if { (eval echo "$as_me:1873: \"$ac_compile\"") >&5
1874
 
  (eval $ac_compile) 2>&5
 
2513
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2514
  (eval $ac_compile) 2>conftest.er1
1875
2515
  ac_status=$?
1876
 
  echo "$as_me:1876: \$? = $ac_status" >&5
 
2516
  grep -v '^ *+' conftest.er1 >conftest.err
 
2517
  rm -f conftest.er1
 
2518
  cat conftest.err >&5
 
2519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877
2520
  (exit $ac_status); } &&
1878
 
         { ac_try='test -s conftest.$ac_objext'
1879
 
  { (eval echo "$as_me:1879: \"$ac_try\"") >&5
1880
 
  (eval $ac_try) 2>&5
1881
 
  ac_status=$?
1882
 
  echo "$as_me:1882: \$? = $ac_status" >&5
 
2521
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2523
  (eval $ac_try) 2>&5
 
2524
  ac_status=$?
 
2525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2526
  (exit $ac_status); }; } &&
 
2527
         { ac_try='test -s conftest.$ac_objext'
 
2528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2529
  (eval $ac_try) 2>&5
 
2530
  ac_status=$?
 
2531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883
2532
  (exit $ac_status); }; }; then
1884
2533
  ac_compiler_gnu=yes
1885
2534
else
1886
2535
  echo "$as_me: failed program was:" >&5
1887
 
cat conftest.$ac_ext >&5
 
2536
sed 's/^/| /' conftest.$ac_ext >&5
 
2537
 
1888
2538
ac_compiler_gnu=no
1889
2539
fi
1890
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2540
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1891
2541
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1892
2542
 
1893
2543
fi
1894
 
echo "$as_me:1894: result: $ac_cv_c_compiler_gnu" >&5
 
2544
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1895
2545
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1896
2546
GCC=`test $ac_compiler_gnu = yes && echo yes`
1897
2547
ac_test_CFLAGS=${CFLAGS+set}
1898
2548
ac_save_CFLAGS=$CFLAGS
1899
2549
CFLAGS="-g"
1900
 
echo "$as_me:1900: checking whether $CC accepts -g" >&5
 
2550
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1901
2551
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1902
2552
if test "${ac_cv_prog_cc_g+set}" = set; then
1903
2553
  echo $ECHO_N "(cached) $ECHO_C" >&6
1904
2554
else
1905
2555
  cat >conftest.$ac_ext <<_ACEOF
1906
 
#line 1906 "configure"
1907
 
#include "confdefs.h"
 
2556
/* confdefs.h.  */
 
2557
_ACEOF
 
2558
cat confdefs.h >>conftest.$ac_ext
 
2559
cat >>conftest.$ac_ext <<_ACEOF
 
2560
/* end confdefs.h.  */
1908
2561
 
1909
2562
int
1910
2563
main ()
1915
2568
}
1916
2569
_ACEOF
1917
2570
rm -f conftest.$ac_objext
1918
 
if { (eval echo "$as_me:1918: \"$ac_compile\"") >&5
1919
 
  (eval $ac_compile) 2>&5
 
2571
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2572
  (eval $ac_compile) 2>conftest.er1
1920
2573
  ac_status=$?
1921
 
  echo "$as_me:1921: \$? = $ac_status" >&5
 
2574
  grep -v '^ *+' conftest.er1 >conftest.err
 
2575
  rm -f conftest.er1
 
2576
  cat conftest.err >&5
 
2577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1922
2578
  (exit $ac_status); } &&
1923
 
         { ac_try='test -s conftest.$ac_objext'
1924
 
  { (eval echo "$as_me:1924: \"$ac_try\"") >&5
1925
 
  (eval $ac_try) 2>&5
1926
 
  ac_status=$?
1927
 
  echo "$as_me:1927: \$? = $ac_status" >&5
 
2579
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2580
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2581
  (eval $ac_try) 2>&5
 
2582
  ac_status=$?
 
2583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2584
  (exit $ac_status); }; } &&
 
2585
         { ac_try='test -s conftest.$ac_objext'
 
2586
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2587
  (eval $ac_try) 2>&5
 
2588
  ac_status=$?
 
2589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928
2590
  (exit $ac_status); }; }; then
1929
2591
  ac_cv_prog_cc_g=yes
1930
2592
else
1931
2593
  echo "$as_me: failed program was:" >&5
1932
 
cat conftest.$ac_ext >&5
 
2594
sed 's/^/| /' conftest.$ac_ext >&5
 
2595
 
1933
2596
ac_cv_prog_cc_g=no
1934
2597
fi
1935
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2598
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1936
2599
fi
1937
 
echo "$as_me:1937: result: $ac_cv_prog_cc_g" >&5
 
2600
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1938
2601
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1939
2602
if test "$ac_test_CFLAGS" = set; then
1940
2603
  CFLAGS=$ac_save_CFLAGS
1951
2614
    CFLAGS=
1952
2615
  fi
1953
2616
fi
 
2617
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2618
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2619
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2620
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2621
else
 
2622
  ac_cv_prog_cc_stdc=no
 
2623
ac_save_CC=$CC
 
2624
cat >conftest.$ac_ext <<_ACEOF
 
2625
/* confdefs.h.  */
 
2626
_ACEOF
 
2627
cat confdefs.h >>conftest.$ac_ext
 
2628
cat >>conftest.$ac_ext <<_ACEOF
 
2629
/* end confdefs.h.  */
 
2630
#include <stdarg.h>
 
2631
#include <stdio.h>
 
2632
#include <sys/types.h>
 
2633
#include <sys/stat.h>
 
2634
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2635
struct buf { int x; };
 
2636
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2637
static char *e (p, i)
 
2638
     char **p;
 
2639
     int i;
 
2640
{
 
2641
  return p[i];
 
2642
}
 
2643
static char *f (char * (*g) (char **, int), char **p, ...)
 
2644
{
 
2645
  char *s;
 
2646
  va_list v;
 
2647
  va_start (v,p);
 
2648
  s = g (p, va_arg (v,int));
 
2649
  va_end (v);
 
2650
  return s;
 
2651
}
 
2652
 
 
2653
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2654
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2655
   These don't provoke an error unfortunately, instead are silently treated
 
2656
   as 'x'.  The following induces an error, until -std1 is added to get
 
2657
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2658
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2659
   that's true only with -std1.  */
 
2660
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2661
 
 
2662
int test (int i, double x);
 
2663
struct s1 {int (*f) (int a);};
 
2664
struct s2 {int (*f) (double a);};
 
2665
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2666
int argc;
 
2667
char **argv;
 
2668
int
 
2669
main ()
 
2670
{
 
2671
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2672
  ;
 
2673
  return 0;
 
2674
}
 
2675
_ACEOF
 
2676
# Don't try gcc -ansi; that turns off useful extensions and
 
2677
# breaks some systems' header files.
 
2678
# AIX                   -qlanglvl=ansi
 
2679
# Ultrix and OSF/1      -std1
 
2680
# HP-UX 10.20 and later -Ae
 
2681
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2682
# SVR4                  -Xc -D__EXTENSIONS__
 
2683
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2684
do
 
2685
  CC="$ac_save_CC $ac_arg"
 
2686
  rm -f conftest.$ac_objext
 
2687
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2688
  (eval $ac_compile) 2>conftest.er1
 
2689
  ac_status=$?
 
2690
  grep -v '^ *+' conftest.er1 >conftest.err
 
2691
  rm -f conftest.er1
 
2692
  cat conftest.err >&5
 
2693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2694
  (exit $ac_status); } &&
 
2695
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2696
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2697
  (eval $ac_try) 2>&5
 
2698
  ac_status=$?
 
2699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2700
  (exit $ac_status); }; } &&
 
2701
         { ac_try='test -s conftest.$ac_objext'
 
2702
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2703
  (eval $ac_try) 2>&5
 
2704
  ac_status=$?
 
2705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2706
  (exit $ac_status); }; }; then
 
2707
  ac_cv_prog_cc_stdc=$ac_arg
 
2708
break
 
2709
else
 
2710
  echo "$as_me: failed program was:" >&5
 
2711
sed 's/^/| /' conftest.$ac_ext >&5
 
2712
 
 
2713
fi
 
2714
rm -f conftest.err conftest.$ac_objext
 
2715
done
 
2716
rm -f conftest.$ac_ext conftest.$ac_objext
 
2717
CC=$ac_save_CC
 
2718
 
 
2719
fi
 
2720
 
 
2721
case "x$ac_cv_prog_cc_stdc" in
 
2722
  x|xno)
 
2723
    echo "$as_me:$LINENO: result: none needed" >&5
 
2724
echo "${ECHO_T}none needed" >&6 ;;
 
2725
  *)
 
2726
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2727
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2728
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2729
esac
 
2730
 
1954
2731
# Some people use a C++ compiler to compile C.  Since we use `exit',
1955
2732
# in C++ we need to declare it.  In case someone uses the same compiler
1956
2733
# for both compiling C and C++ we need to have the C++ compiler decide
1961
2738
#endif
1962
2739
_ACEOF
1963
2740
rm -f conftest.$ac_objext
1964
 
if { (eval echo "$as_me:1964: \"$ac_compile\"") >&5
1965
 
  (eval $ac_compile) 2>&5
 
2741
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2742
  (eval $ac_compile) 2>conftest.er1
1966
2743
  ac_status=$?
1967
 
  echo "$as_me:1967: \$? = $ac_status" >&5
 
2744
  grep -v '^ *+' conftest.er1 >conftest.err
 
2745
  rm -f conftest.er1
 
2746
  cat conftest.err >&5
 
2747
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968
2748
  (exit $ac_status); } &&
1969
 
         { ac_try='test -s conftest.$ac_objext'
1970
 
  { (eval echo "$as_me:1970: \"$ac_try\"") >&5
1971
 
  (eval $ac_try) 2>&5
1972
 
  ac_status=$?
1973
 
  echo "$as_me:1973: \$? = $ac_status" >&5
 
2749
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2750
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2751
  (eval $ac_try) 2>&5
 
2752
  ac_status=$?
 
2753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2754
  (exit $ac_status); }; } &&
 
2755
         { ac_try='test -s conftest.$ac_objext'
 
2756
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2757
  (eval $ac_try) 2>&5
 
2758
  ac_status=$?
 
2759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974
2760
  (exit $ac_status); }; }; then
1975
2761
  for ac_declaration in \
1976
 
   ''\
1977
 
   '#include <stdlib.h>' \
1978
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
1979
 
   'extern "C" void std::exit (int); using std::exit;' \
1980
 
   'extern "C" void exit (int) throw ();' \
1981
 
   'extern "C" void exit (int);' \
1982
 
   'void exit (int);'
1983
 
do
1984
 
  cat >conftest.$ac_ext <<_ACEOF
1985
 
#line 1985 "configure"
1986
 
#include "confdefs.h"
1987
 
#include <stdlib.h>
1988
 
$ac_declaration
1989
 
int
1990
 
main ()
1991
 
{
1992
 
exit (42);
1993
 
  ;
1994
 
  return 0;
1995
 
}
1996
 
_ACEOF
1997
 
rm -f conftest.$ac_objext
1998
 
if { (eval echo "$as_me:1998: \"$ac_compile\"") >&5
1999
 
  (eval $ac_compile) 2>&5
2000
 
  ac_status=$?
2001
 
  echo "$as_me:2001: \$? = $ac_status" >&5
2002
 
  (exit $ac_status); } &&
2003
 
         { ac_try='test -s conftest.$ac_objext'
2004
 
  { (eval echo "$as_me:2004: \"$ac_try\"") >&5
2005
 
  (eval $ac_try) 2>&5
2006
 
  ac_status=$?
2007
 
  echo "$as_me:2007: \$? = $ac_status" >&5
2008
 
  (exit $ac_status); }; }; then
2009
 
  :
2010
 
else
2011
 
  echo "$as_me: failed program was:" >&5
2012
 
cat conftest.$ac_ext >&5
2013
 
continue
2014
 
fi
2015
 
rm -f conftest.$ac_objext conftest.$ac_ext
2016
 
  cat >conftest.$ac_ext <<_ACEOF
2017
 
#line 2017 "configure"
2018
 
#include "confdefs.h"
2019
 
$ac_declaration
2020
 
int
2021
 
main ()
2022
 
{
2023
 
exit (42);
2024
 
  ;
2025
 
  return 0;
2026
 
}
2027
 
_ACEOF
2028
 
rm -f conftest.$ac_objext
2029
 
if { (eval echo "$as_me:2029: \"$ac_compile\"") >&5
2030
 
  (eval $ac_compile) 2>&5
2031
 
  ac_status=$?
2032
 
  echo "$as_me:2032: \$? = $ac_status" >&5
2033
 
  (exit $ac_status); } &&
2034
 
         { ac_try='test -s conftest.$ac_objext'
2035
 
  { (eval echo "$as_me:2035: \"$ac_try\"") >&5
2036
 
  (eval $ac_try) 2>&5
2037
 
  ac_status=$?
2038
 
  echo "$as_me:2038: \$? = $ac_status" >&5
2039
 
  (exit $ac_status); }; }; then
2040
 
  break
2041
 
else
2042
 
  echo "$as_me: failed program was:" >&5
2043
 
cat conftest.$ac_ext >&5
2044
 
fi
2045
 
rm -f conftest.$ac_objext conftest.$ac_ext
2046
 
done
2047
 
rm -f conftest*
2048
 
if test -n "$ac_declaration"; then
2049
 
  echo '#ifdef __cplusplus' >>confdefs.h
2050
 
  echo $ac_declaration      >>confdefs.h
2051
 
  echo '#endif'             >>confdefs.h
2052
 
fi
2053
 
 
2054
 
else
2055
 
  echo "$as_me: failed program was:" >&5
2056
 
cat conftest.$ac_ext >&5
2057
 
fi
2058
 
rm -f conftest.$ac_objext conftest.$ac_ext
2059
 
ac_ext=c
2060
 
ac_cpp='$CPP $CPPFLAGS'
2061
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2062
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2063
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2762
   '' \
 
2763
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2764
   'extern "C" void std::exit (int); using std::exit;' \
 
2765
   'extern "C" void exit (int) throw ();' \
 
2766
   'extern "C" void exit (int);' \
 
2767
   'void exit (int);'
 
2768
do
 
2769
  cat >conftest.$ac_ext <<_ACEOF
 
2770
/* confdefs.h.  */
 
2771
_ACEOF
 
2772
cat confdefs.h >>conftest.$ac_ext
 
2773
cat >>conftest.$ac_ext <<_ACEOF
 
2774
/* end confdefs.h.  */
 
2775
$ac_declaration
 
2776
#include <stdlib.h>
 
2777
int
 
2778
main ()
 
2779
{
 
2780
exit (42);
 
2781
  ;
 
2782
  return 0;
 
2783
}
 
2784
_ACEOF
 
2785
rm -f conftest.$ac_objext
 
2786
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2787
  (eval $ac_compile) 2>conftest.er1
 
2788
  ac_status=$?
 
2789
  grep -v '^ *+' conftest.er1 >conftest.err
 
2790
  rm -f conftest.er1
 
2791
  cat conftest.err >&5
 
2792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2793
  (exit $ac_status); } &&
 
2794
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2795
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2796
  (eval $ac_try) 2>&5
 
2797
  ac_status=$?
 
2798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2799
  (exit $ac_status); }; } &&
 
2800
         { ac_try='test -s conftest.$ac_objext'
 
2801
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2802
  (eval $ac_try) 2>&5
 
2803
  ac_status=$?
 
2804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2805
  (exit $ac_status); }; }; then
 
2806
  :
 
2807
else
 
2808
  echo "$as_me: failed program was:" >&5
 
2809
sed 's/^/| /' conftest.$ac_ext >&5
 
2810
 
 
2811
continue
 
2812
fi
 
2813
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2814
  cat >conftest.$ac_ext <<_ACEOF
 
2815
/* confdefs.h.  */
 
2816
_ACEOF
 
2817
cat confdefs.h >>conftest.$ac_ext
 
2818
cat >>conftest.$ac_ext <<_ACEOF
 
2819
/* end confdefs.h.  */
 
2820
$ac_declaration
 
2821
int
 
2822
main ()
 
2823
{
 
2824
exit (42);
 
2825
  ;
 
2826
  return 0;
 
2827
}
 
2828
_ACEOF
 
2829
rm -f conftest.$ac_objext
 
2830
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2831
  (eval $ac_compile) 2>conftest.er1
 
2832
  ac_status=$?
 
2833
  grep -v '^ *+' conftest.er1 >conftest.err
 
2834
  rm -f conftest.er1
 
2835
  cat conftest.err >&5
 
2836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2837
  (exit $ac_status); } &&
 
2838
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2839
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2840
  (eval $ac_try) 2>&5
 
2841
  ac_status=$?
 
2842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2843
  (exit $ac_status); }; } &&
 
2844
         { ac_try='test -s conftest.$ac_objext'
 
2845
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2846
  (eval $ac_try) 2>&5
 
2847
  ac_status=$?
 
2848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2849
  (exit $ac_status); }; }; then
 
2850
  break
 
2851
else
 
2852
  echo "$as_me: failed program was:" >&5
 
2853
sed 's/^/| /' conftest.$ac_ext >&5
 
2854
 
 
2855
fi
 
2856
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2857
done
 
2858
rm -f conftest*
 
2859
if test -n "$ac_declaration"; then
 
2860
  echo '#ifdef __cplusplus' >>confdefs.h
 
2861
  echo $ac_declaration      >>confdefs.h
 
2862
  echo '#endif'             >>confdefs.h
 
2863
fi
 
2864
 
 
2865
else
 
2866
  echo "$as_me: failed program was:" >&5
 
2867
sed 's/^/| /' conftest.$ac_ext >&5
 
2868
 
 
2869
fi
 
2870
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2871
ac_ext=c
 
2872
ac_cpp='$CPP $CPPFLAGS'
 
2873
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2874
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2875
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2876
 
 
2877
ac_ext=cc
 
2878
ac_cpp='$CXXCPP $CPPFLAGS'
 
2879
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2880
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2881
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2882
if test -n "$ac_tool_prefix"; then
 
2883
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2884
  do
 
2885
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2886
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2887
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2888
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2889
if test "${ac_cv_prog_CXX+set}" = set; then
 
2890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2891
else
 
2892
  if test -n "$CXX"; then
 
2893
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2894
else
 
2895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2896
for as_dir in $PATH
 
2897
do
 
2898
  IFS=$as_save_IFS
 
2899
  test -z "$as_dir" && as_dir=.
 
2900
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2901
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2902
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2903
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2904
    break 2
 
2905
  fi
 
2906
done
 
2907
done
 
2908
 
 
2909
fi
 
2910
fi
 
2911
CXX=$ac_cv_prog_CXX
 
2912
if test -n "$CXX"; then
 
2913
  echo "$as_me:$LINENO: result: $CXX" >&5
 
2914
echo "${ECHO_T}$CXX" >&6
 
2915
else
 
2916
  echo "$as_me:$LINENO: result: no" >&5
 
2917
echo "${ECHO_T}no" >&6
 
2918
fi
 
2919
 
 
2920
    test -n "$CXX" && break
 
2921
  done
 
2922
fi
 
2923
if test -z "$CXX"; then
 
2924
  ac_ct_CXX=$CXX
 
2925
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2926
do
 
2927
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2928
set dummy $ac_prog; ac_word=$2
 
2929
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2930
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2931
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2933
else
 
2934
  if test -n "$ac_ct_CXX"; then
 
2935
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2936
else
 
2937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2938
for as_dir in $PATH
 
2939
do
 
2940
  IFS=$as_save_IFS
 
2941
  test -z "$as_dir" && as_dir=.
 
2942
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2943
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2944
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2945
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2946
    break 2
 
2947
  fi
 
2948
done
 
2949
done
 
2950
 
 
2951
fi
 
2952
fi
 
2953
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2954
if test -n "$ac_ct_CXX"; then
 
2955
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2956
echo "${ECHO_T}$ac_ct_CXX" >&6
 
2957
else
 
2958
  echo "$as_me:$LINENO: result: no" >&5
 
2959
echo "${ECHO_T}no" >&6
 
2960
fi
 
2961
 
 
2962
  test -n "$ac_ct_CXX" && break
 
2963
done
 
2964
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
2965
 
 
2966
  CXX=$ac_ct_CXX
 
2967
fi
 
2968
 
 
2969
 
 
2970
# Provide some information about the compiler.
 
2971
echo "$as_me:$LINENO:" \
 
2972
     "checking for C++ compiler version" >&5
 
2973
ac_compiler=`set X $ac_compile; echo $2`
 
2974
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2975
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2976
  ac_status=$?
 
2977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2978
  (exit $ac_status); }
 
2979
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2980
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2981
  ac_status=$?
 
2982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2983
  (exit $ac_status); }
 
2984
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2985
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2986
  ac_status=$?
 
2987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2988
  (exit $ac_status); }
 
2989
 
 
2990
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
2991
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
2992
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
2993
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2994
else
 
2995
  cat >conftest.$ac_ext <<_ACEOF
 
2996
/* confdefs.h.  */
 
2997
_ACEOF
 
2998
cat confdefs.h >>conftest.$ac_ext
 
2999
cat >>conftest.$ac_ext <<_ACEOF
 
3000
/* end confdefs.h.  */
 
3001
 
 
3002
int
 
3003
main ()
 
3004
{
 
3005
#ifndef __GNUC__
 
3006
       choke me
 
3007
#endif
 
3008
 
 
3009
  ;
 
3010
  return 0;
 
3011
}
 
3012
_ACEOF
 
3013
rm -f conftest.$ac_objext
 
3014
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3015
  (eval $ac_compile) 2>conftest.er1
 
3016
  ac_status=$?
 
3017
  grep -v '^ *+' conftest.er1 >conftest.err
 
3018
  rm -f conftest.er1
 
3019
  cat conftest.err >&5
 
3020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3021
  (exit $ac_status); } &&
 
3022
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3024
  (eval $ac_try) 2>&5
 
3025
  ac_status=$?
 
3026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3027
  (exit $ac_status); }; } &&
 
3028
         { ac_try='test -s conftest.$ac_objext'
 
3029
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3030
  (eval $ac_try) 2>&5
 
3031
  ac_status=$?
 
3032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3033
  (exit $ac_status); }; }; then
 
3034
  ac_compiler_gnu=yes
 
3035
else
 
3036
  echo "$as_me: failed program was:" >&5
 
3037
sed 's/^/| /' conftest.$ac_ext >&5
 
3038
 
 
3039
ac_compiler_gnu=no
 
3040
fi
 
3041
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3042
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3043
 
 
3044
fi
 
3045
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
3046
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
3047
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3048
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3049
ac_save_CXXFLAGS=$CXXFLAGS
 
3050
CXXFLAGS="-g"
 
3051
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3052
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
3053
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3054
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3055
else
 
3056
  cat >conftest.$ac_ext <<_ACEOF
 
3057
/* confdefs.h.  */
 
3058
_ACEOF
 
3059
cat confdefs.h >>conftest.$ac_ext
 
3060
cat >>conftest.$ac_ext <<_ACEOF
 
3061
/* end confdefs.h.  */
 
3062
 
 
3063
int
 
3064
main ()
 
3065
{
 
3066
 
 
3067
  ;
 
3068
  return 0;
 
3069
}
 
3070
_ACEOF
 
3071
rm -f conftest.$ac_objext
 
3072
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3073
  (eval $ac_compile) 2>conftest.er1
 
3074
  ac_status=$?
 
3075
  grep -v '^ *+' conftest.er1 >conftest.err
 
3076
  rm -f conftest.er1
 
3077
  cat conftest.err >&5
 
3078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3079
  (exit $ac_status); } &&
 
3080
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3081
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3082
  (eval $ac_try) 2>&5
 
3083
  ac_status=$?
 
3084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3085
  (exit $ac_status); }; } &&
 
3086
         { ac_try='test -s conftest.$ac_objext'
 
3087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3088
  (eval $ac_try) 2>&5
 
3089
  ac_status=$?
 
3090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3091
  (exit $ac_status); }; }; then
 
3092
  ac_cv_prog_cxx_g=yes
 
3093
else
 
3094
  echo "$as_me: failed program was:" >&5
 
3095
sed 's/^/| /' conftest.$ac_ext >&5
 
3096
 
 
3097
ac_cv_prog_cxx_g=no
 
3098
fi
 
3099
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3100
fi
 
3101
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3102
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
3103
if test "$ac_test_CXXFLAGS" = set; then
 
3104
  CXXFLAGS=$ac_save_CXXFLAGS
 
3105
elif test $ac_cv_prog_cxx_g = yes; then
 
3106
  if test "$GXX" = yes; then
 
3107
    CXXFLAGS="-g -O2"
 
3108
  else
 
3109
    CXXFLAGS="-g"
 
3110
  fi
 
3111
else
 
3112
  if test "$GXX" = yes; then
 
3113
    CXXFLAGS="-O2"
 
3114
  else
 
3115
    CXXFLAGS=
 
3116
  fi
 
3117
fi
 
3118
for ac_declaration in \
 
3119
   '' \
 
3120
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3121
   'extern "C" void std::exit (int); using std::exit;' \
 
3122
   'extern "C" void exit (int) throw ();' \
 
3123
   'extern "C" void exit (int);' \
 
3124
   'void exit (int);'
 
3125
do
 
3126
  cat >conftest.$ac_ext <<_ACEOF
 
3127
/* confdefs.h.  */
 
3128
_ACEOF
 
3129
cat confdefs.h >>conftest.$ac_ext
 
3130
cat >>conftest.$ac_ext <<_ACEOF
 
3131
/* end confdefs.h.  */
 
3132
$ac_declaration
 
3133
#include <stdlib.h>
 
3134
int
 
3135
main ()
 
3136
{
 
3137
exit (42);
 
3138
  ;
 
3139
  return 0;
 
3140
}
 
3141
_ACEOF
 
3142
rm -f conftest.$ac_objext
 
3143
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3144
  (eval $ac_compile) 2>conftest.er1
 
3145
  ac_status=$?
 
3146
  grep -v '^ *+' conftest.er1 >conftest.err
 
3147
  rm -f conftest.er1
 
3148
  cat conftest.err >&5
 
3149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3150
  (exit $ac_status); } &&
 
3151
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3153
  (eval $ac_try) 2>&5
 
3154
  ac_status=$?
 
3155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3156
  (exit $ac_status); }; } &&
 
3157
         { ac_try='test -s conftest.$ac_objext'
 
3158
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3159
  (eval $ac_try) 2>&5
 
3160
  ac_status=$?
 
3161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3162
  (exit $ac_status); }; }; then
 
3163
  :
 
3164
else
 
3165
  echo "$as_me: failed program was:" >&5
 
3166
sed 's/^/| /' conftest.$ac_ext >&5
 
3167
 
 
3168
continue
 
3169
fi
 
3170
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3171
  cat >conftest.$ac_ext <<_ACEOF
 
3172
/* confdefs.h.  */
 
3173
_ACEOF
 
3174
cat confdefs.h >>conftest.$ac_ext
 
3175
cat >>conftest.$ac_ext <<_ACEOF
 
3176
/* end confdefs.h.  */
 
3177
$ac_declaration
 
3178
int
 
3179
main ()
 
3180
{
 
3181
exit (42);
 
3182
  ;
 
3183
  return 0;
 
3184
}
 
3185
_ACEOF
 
3186
rm -f conftest.$ac_objext
 
3187
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3188
  (eval $ac_compile) 2>conftest.er1
 
3189
  ac_status=$?
 
3190
  grep -v '^ *+' conftest.er1 >conftest.err
 
3191
  rm -f conftest.er1
 
3192
  cat conftest.err >&5
 
3193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3194
  (exit $ac_status); } &&
 
3195
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3197
  (eval $ac_try) 2>&5
 
3198
  ac_status=$?
 
3199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3200
  (exit $ac_status); }; } &&
 
3201
         { ac_try='test -s conftest.$ac_objext'
 
3202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3203
  (eval $ac_try) 2>&5
 
3204
  ac_status=$?
 
3205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3206
  (exit $ac_status); }; }; then
 
3207
  break
 
3208
else
 
3209
  echo "$as_me: failed program was:" >&5
 
3210
sed 's/^/| /' conftest.$ac_ext >&5
 
3211
 
 
3212
fi
 
3213
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3214
done
 
3215
rm -f conftest*
 
3216
if test -n "$ac_declaration"; then
 
3217
  echo '#ifdef __cplusplus' >>confdefs.h
 
3218
  echo $ac_declaration      >>confdefs.h
 
3219
  echo '#endif'             >>confdefs.h
 
3220
fi
 
3221
 
 
3222
ac_ext=c
 
3223
ac_cpp='$CPP $CPPFLAGS'
 
3224
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3225
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3226
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3227
 
 
3228
# Find a good install program.  We prefer a C program (faster),
 
3229
# so one script is as good as another.  But avoid the broken or
 
3230
# incompatible versions:
 
3231
# SysV /etc/install, /usr/sbin/install
 
3232
# SunOS /usr/etc/install
 
3233
# IRIX /sbin/install
 
3234
# AIX /bin/install
 
3235
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3236
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3237
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3238
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3239
# OS/2's system install, which has a completely different semantic
 
3240
# ./install, which can be erroneously created by make from ./install.sh.
 
3241
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3242
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
3243
if test -z "$INSTALL"; then
 
3244
if test "${ac_cv_path_install+set}" = set; then
 
3245
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3246
else
 
3247
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3248
for as_dir in $PATH
 
3249
do
 
3250
  IFS=$as_save_IFS
 
3251
  test -z "$as_dir" && as_dir=.
 
3252
  # Account for people who put trailing slashes in PATH elements.
 
3253
case $as_dir/ in
 
3254
  ./ | .// | /cC/* | \
 
3255
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3256
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3257
  /usr/ucb/* ) ;;
 
3258
  *)
 
3259
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3260
    # Don't use installbsd from OSF since it installs stuff as root
 
3261
    # by default.
 
3262
    for ac_prog in ginstall scoinst install; do
 
3263
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3264
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3265
          if test $ac_prog = install &&
 
3266
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3267
            # AIX install.  It has an incompatible calling convention.
 
3268
            :
 
3269
          elif test $ac_prog = install &&
 
3270
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3271
            # program-specific install script used by HP pwplus--don't use.
 
3272
            :
 
3273
          else
 
3274
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3275
            break 3
 
3276
          fi
 
3277
        fi
 
3278
      done
 
3279
    done
 
3280
    ;;
 
3281
esac
 
3282
done
 
3283
 
 
3284
 
 
3285
fi
 
3286
  if test "${ac_cv_path_install+set}" = set; then
 
3287
    INSTALL=$ac_cv_path_install
 
3288
  else
 
3289
    # As a last resort, use the slow shell script.  We don't cache a
 
3290
    # path for INSTALL within a source directory, because that will
 
3291
    # break other packages using the cache if that directory is
 
3292
    # removed, or if the path is relative.
 
3293
    INSTALL=$ac_install_sh
 
3294
  fi
 
3295
fi
 
3296
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3297
echo "${ECHO_T}$INSTALL" >&6
 
3298
 
 
3299
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3300
# It thinks the first close brace ends the variable substitution.
 
3301
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3302
 
 
3303
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3304
 
 
3305
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3306
 
 
3307
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3308
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
3309
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
3310
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
3311
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3312
else
 
3313
  cat >conftest.make <<\_ACEOF
 
3314
all:
 
3315
        @echo 'ac_maketemp="$(MAKE)"'
 
3316
_ACEOF
 
3317
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3318
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
3319
if test -n "$ac_maketemp"; then
 
3320
  eval ac_cv_prog_make_${ac_make}_set=yes
 
3321
else
 
3322
  eval ac_cv_prog_make_${ac_make}_set=no
 
3323
fi
 
3324
rm -f conftest.make
 
3325
fi
 
3326
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
3327
  echo "$as_me:$LINENO: result: yes" >&5
 
3328
echo "${ECHO_T}yes" >&6
 
3329
  SET_MAKE=
 
3330
else
 
3331
  echo "$as_me:$LINENO: result: no" >&5
 
3332
echo "${ECHO_T}no" >&6
 
3333
  SET_MAKE="MAKE=${MAKE-make}"
 
3334
fi
 
3335
 
 
3336
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3337
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
3338
LN_S=$as_ln_s
 
3339
if test "$LN_S" = "ln -s"; then
 
3340
  echo "$as_me:$LINENO: result: yes" >&5
 
3341
echo "${ECHO_T}yes" >&6
 
3342
else
 
3343
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3344
echo "${ECHO_T}no, using $LN_S" >&6
 
3345
fi
 
3346
 
 
3347
 
 
3348
 
 
3349
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
3350
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
 
3351
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
3352
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3353
else
 
3354
  ac_check_lib_save_LIBS=$LIBS
 
3355
LIBS="-lcposix  $LIBS"
 
3356
cat >conftest.$ac_ext <<_ACEOF
 
3357
/* confdefs.h.  */
 
3358
_ACEOF
 
3359
cat confdefs.h >>conftest.$ac_ext
 
3360
cat >>conftest.$ac_ext <<_ACEOF
 
3361
/* end confdefs.h.  */
 
3362
 
 
3363
/* Override any gcc2 internal prototype to avoid an error.  */
 
3364
#ifdef __cplusplus
 
3365
extern "C"
 
3366
#endif
 
3367
/* We use char because int might match the return type of a gcc2
 
3368
   builtin and then its argument prototype would still apply.  */
 
3369
char strerror ();
 
3370
int
 
3371
main ()
 
3372
{
 
3373
strerror ();
 
3374
  ;
 
3375
  return 0;
 
3376
}
 
3377
_ACEOF
 
3378
rm -f conftest.$ac_objext conftest$ac_exeext
 
3379
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3380
  (eval $ac_link) 2>conftest.er1
 
3381
  ac_status=$?
 
3382
  grep -v '^ *+' conftest.er1 >conftest.err
 
3383
  rm -f conftest.er1
 
3384
  cat conftest.err >&5
 
3385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3386
  (exit $ac_status); } &&
 
3387
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3388
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3389
  (eval $ac_try) 2>&5
 
3390
  ac_status=$?
 
3391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3392
  (exit $ac_status); }; } &&
 
3393
         { ac_try='test -s conftest$ac_exeext'
 
3394
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3395
  (eval $ac_try) 2>&5
 
3396
  ac_status=$?
 
3397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3398
  (exit $ac_status); }; }; then
 
3399
  ac_cv_lib_cposix_strerror=yes
 
3400
else
 
3401
  echo "$as_me: failed program was:" >&5
 
3402
sed 's/^/| /' conftest.$ac_ext >&5
 
3403
 
 
3404
ac_cv_lib_cposix_strerror=no
 
3405
fi
 
3406
rm -f conftest.err conftest.$ac_objext \
 
3407
      conftest$ac_exeext conftest.$ac_ext
 
3408
LIBS=$ac_check_lib_save_LIBS
 
3409
fi
 
3410
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
3411
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
 
3412
if test $ac_cv_lib_cposix_strerror = yes; then
 
3413
  LIBS="$LIBS -lcposix"
 
3414
fi
 
3415
 
 
3416
 
 
3417
 
 
3418
for ac_prog in gawk mawk nawk awk
 
3419
do
 
3420
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3421
set dummy $ac_prog; ac_word=$2
 
3422
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3423
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3424
if test "${ac_cv_prog_AWK+set}" = set; then
 
3425
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3426
else
 
3427
  if test -n "$AWK"; then
 
3428
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3429
else
 
3430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3431
for as_dir in $PATH
 
3432
do
 
3433
  IFS=$as_save_IFS
 
3434
  test -z "$as_dir" && as_dir=.
 
3435
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3436
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3437
    ac_cv_prog_AWK="$ac_prog"
 
3438
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3439
    break 2
 
3440
  fi
 
3441
done
 
3442
done
 
3443
 
 
3444
fi
 
3445
fi
 
3446
AWK=$ac_cv_prog_AWK
 
3447
if test -n "$AWK"; then
 
3448
  echo "$as_me:$LINENO: result: $AWK" >&5
 
3449
echo "${ECHO_T}$AWK" >&6
 
3450
else
 
3451
  echo "$as_me:$LINENO: result: no" >&5
 
3452
echo "${ECHO_T}no" >&6
 
3453
fi
 
3454
 
 
3455
  test -n "$AWK" && break
 
3456
done
 
3457
 
 
3458
 
 
3459
# gettext support (must be set here; before libti* dependancy checks)
 
3460
ALL_LINGUAS="fr de"
 
3461
 
 
3462
        MKINSTALLDIRS=
 
3463
  if test -n "$ac_aux_dir"; then
 
3464
    case "$ac_aux_dir" in
 
3465
      /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
 
3466
      *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
 
3467
    esac
 
3468
  fi
 
3469
  if test -z "$MKINSTALLDIRS"; then
 
3470
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
3471
  fi
 
3472
 
 
3473
 
 
3474
 
 
3475
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
3476
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
 
3477
    # Check whether --enable-nls or --disable-nls was given.
 
3478
if test "${enable_nls+set}" = set; then
 
3479
  enableval="$enable_nls"
 
3480
  USE_NLS=$enableval
 
3481
else
 
3482
  USE_NLS=yes
 
3483
fi;
 
3484
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
3485
echo "${ECHO_T}$USE_NLS" >&6
 
3486
 
 
3487
 
 
3488
 
 
3489
 
 
3490
 
 
3491
 
 
3492
# Prepare PATH_SEPARATOR.
 
3493
# The user is always right.
 
3494
if test "${PATH_SEPARATOR+set}" != set; then
 
3495
  echo "#! /bin/sh" >conf$$.sh
 
3496
  echo  "exit 0"   >>conf$$.sh
 
3497
  chmod +x conf$$.sh
 
3498
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
3499
    PATH_SEPARATOR=';'
 
3500
  else
 
3501
    PATH_SEPARATOR=:
 
3502
  fi
 
3503
  rm -f conf$$.sh
 
3504
fi
 
3505
 
 
3506
# Find out how to test for executable files. Don't use a zero-byte file,
 
3507
# as systems may use methods other than mode bits to determine executability.
 
3508
cat >conf$$.file <<_ASEOF
 
3509
#! /bin/sh
 
3510
exit 0
 
3511
_ASEOF
 
3512
chmod +x conf$$.file
 
3513
if test -x conf$$.file >/dev/null 2>&1; then
 
3514
  ac_executable_p="test -x"
 
3515
else
 
3516
  ac_executable_p="test -f"
 
3517
fi
 
3518
rm -f conf$$.file
 
3519
 
 
3520
# Extract the first word of "msgfmt", so it can be a program name with args.
 
3521
set dummy msgfmt; ac_word=$2
 
3522
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3523
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3524
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
3525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3526
else
 
3527
  case "$MSGFMT" in
 
3528
  [\\/]* | ?:[\\/]*)
 
3529
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
3530
    ;;
 
3531
  *)
 
3532
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
3533
    for ac_dir in $PATH; do
 
3534
      IFS="$ac_save_IFS"
 
3535
      test -z "$ac_dir" && ac_dir=.
 
3536
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3537
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
3538
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
 
3539
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
3540
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
3541
            break 2
 
3542
          fi
 
3543
        fi
 
3544
      done
 
3545
    done
 
3546
    IFS="$ac_save_IFS"
 
3547
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
3548
    ;;
 
3549
esac
 
3550
fi
 
3551
MSGFMT="$ac_cv_path_MSGFMT"
 
3552
if test "$MSGFMT" != ":"; then
 
3553
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
3554
echo "${ECHO_T}$MSGFMT" >&6
 
3555
else
 
3556
  echo "$as_me:$LINENO: result: no" >&5
 
3557
echo "${ECHO_T}no" >&6
 
3558
fi
 
3559
 
 
3560
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
3561
set dummy gmsgfmt; ac_word=$2
 
3562
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3563
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3564
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
3565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3566
else
 
3567
  case $GMSGFMT in
 
3568
  [\\/]* | ?:[\\/]*)
 
3569
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
3570
  ;;
 
3571
  *)
 
3572
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3573
for as_dir in $PATH
 
3574
do
 
3575
  IFS=$as_save_IFS
 
3576
  test -z "$as_dir" && as_dir=.
 
3577
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3578
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3579
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
3580
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3581
    break 2
 
3582
  fi
 
3583
done
 
3584
done
 
3585
 
 
3586
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
3587
  ;;
 
3588
esac
 
3589
fi
 
3590
GMSGFMT=$ac_cv_path_GMSGFMT
 
3591
 
 
3592
if test -n "$GMSGFMT"; then
 
3593
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
3594
echo "${ECHO_T}$GMSGFMT" >&6
 
3595
else
 
3596
  echo "$as_me:$LINENO: result: no" >&5
 
3597
echo "${ECHO_T}no" >&6
 
3598
fi
 
3599
 
 
3600
 
 
3601
 
 
3602
# Prepare PATH_SEPARATOR.
 
3603
# The user is always right.
 
3604
if test "${PATH_SEPARATOR+set}" != set; then
 
3605
  echo "#! /bin/sh" >conf$$.sh
 
3606
  echo  "exit 0"   >>conf$$.sh
 
3607
  chmod +x conf$$.sh
 
3608
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
3609
    PATH_SEPARATOR=';'
 
3610
  else
 
3611
    PATH_SEPARATOR=:
 
3612
  fi
 
3613
  rm -f conf$$.sh
 
3614
fi
 
3615
 
 
3616
# Find out how to test for executable files. Don't use a zero-byte file,
 
3617
# as systems may use methods other than mode bits to determine executability.
 
3618
cat >conf$$.file <<_ASEOF
 
3619
#! /bin/sh
 
3620
exit 0
 
3621
_ASEOF
 
3622
chmod +x conf$$.file
 
3623
if test -x conf$$.file >/dev/null 2>&1; then
 
3624
  ac_executable_p="test -x"
 
3625
else
 
3626
  ac_executable_p="test -f"
 
3627
fi
 
3628
rm -f conf$$.file
 
3629
 
 
3630
# Extract the first word of "xgettext", so it can be a program name with args.
 
3631
set dummy xgettext; ac_word=$2
 
3632
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3633
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3634
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
3635
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3636
else
 
3637
  case "$XGETTEXT" in
 
3638
  [\\/]* | ?:[\\/]*)
 
3639
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
3640
    ;;
 
3641
  *)
 
3642
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
3643
    for ac_dir in $PATH; do
 
3644
      IFS="$ac_save_IFS"
 
3645
      test -z "$ac_dir" && ac_dir=.
 
3646
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3647
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
3648
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
3649
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
3650
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
3651
            break 2
 
3652
          fi
 
3653
        fi
 
3654
      done
 
3655
    done
 
3656
    IFS="$ac_save_IFS"
 
3657
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
3658
    ;;
 
3659
esac
 
3660
fi
 
3661
XGETTEXT="$ac_cv_path_XGETTEXT"
 
3662
if test "$XGETTEXT" != ":"; then
 
3663
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
3664
echo "${ECHO_T}$XGETTEXT" >&6
 
3665
else
 
3666
  echo "$as_me:$LINENO: result: no" >&5
 
3667
echo "${ECHO_T}no" >&6
 
3668
fi
 
3669
 
 
3670
    rm -f messages.po
 
3671
 
 
3672
 
 
3673
# Prepare PATH_SEPARATOR.
 
3674
# The user is always right.
 
3675
if test "${PATH_SEPARATOR+set}" != set; then
 
3676
  echo "#! /bin/sh" >conf$$.sh
 
3677
  echo  "exit 0"   >>conf$$.sh
 
3678
  chmod +x conf$$.sh
 
3679
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
3680
    PATH_SEPARATOR=';'
 
3681
  else
 
3682
    PATH_SEPARATOR=:
 
3683
  fi
 
3684
  rm -f conf$$.sh
 
3685
fi
 
3686
 
 
3687
# Find out how to test for executable files. Don't use a zero-byte file,
 
3688
# as systems may use methods other than mode bits to determine executability.
 
3689
cat >conf$$.file <<_ASEOF
 
3690
#! /bin/sh
 
3691
exit 0
 
3692
_ASEOF
 
3693
chmod +x conf$$.file
 
3694
if test -x conf$$.file >/dev/null 2>&1; then
 
3695
  ac_executable_p="test -x"
 
3696
else
 
3697
  ac_executable_p="test -f"
 
3698
fi
 
3699
rm -f conf$$.file
 
3700
 
 
3701
# Extract the first word of "msgmerge", so it can be a program name with args.
 
3702
set dummy msgmerge; ac_word=$2
 
3703
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3704
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3705
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
3706
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3707
else
 
3708
  case "$MSGMERGE" in
 
3709
  [\\/]* | ?:[\\/]*)
 
3710
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
3711
    ;;
 
3712
  *)
 
3713
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
3714
    for ac_dir in $PATH; do
 
3715
      IFS="$ac_save_IFS"
 
3716
      test -z "$ac_dir" && ac_dir=.
 
3717
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3718
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
3719
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
 
3720
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
3721
            break 2
 
3722
          fi
 
3723
        fi
 
3724
      done
 
3725
    done
 
3726
    IFS="$ac_save_IFS"
 
3727
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
3728
    ;;
 
3729
esac
 
3730
fi
 
3731
MSGMERGE="$ac_cv_path_MSGMERGE"
 
3732
if test "$MSGMERGE" != ":"; then
 
3733
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
3734
echo "${ECHO_T}$MSGMERGE" >&6
 
3735
else
 
3736
  echo "$as_me:$LINENO: result: no" >&5
 
3737
echo "${ECHO_T}no" >&6
 
3738
fi
 
3739
 
 
3740
 
 
3741
      if test "$GMSGFMT" != ":"; then
 
3742
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
 
3743
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
3744
      : ;
 
3745
    else
 
3746
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
 
3747
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
 
3748
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
 
3749
      GMSGFMT=":"
 
3750
    fi
 
3751
  fi
 
3752
 
 
3753
      if test "$XGETTEXT" != ":"; then
 
3754
            if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
 
3755
       (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
3756
      : ;
 
3757
    else
 
3758
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
3759
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
 
3760
      XGETTEXT=":"
 
3761
    fi
 
3762
        rm -f messages.po
 
3763
  fi
 
3764
 
 
3765
            ac_config_commands="$ac_config_commands default-2"
 
3766
 
 
3767
 
 
3768
if test -n "$ac_tool_prefix"; then
 
3769
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3770
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3771
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3772
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3773
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3775
else
 
3776
  if test -n "$RANLIB"; then
 
3777
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3778
else
 
3779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3780
for as_dir in $PATH
 
3781
do
 
3782
  IFS=$as_save_IFS
 
3783
  test -z "$as_dir" && as_dir=.
 
3784
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3785
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3786
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3787
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3788
    break 2
 
3789
  fi
 
3790
done
 
3791
done
 
3792
 
 
3793
fi
 
3794
fi
 
3795
RANLIB=$ac_cv_prog_RANLIB
 
3796
if test -n "$RANLIB"; then
 
3797
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3798
echo "${ECHO_T}$RANLIB" >&6
 
3799
else
 
3800
  echo "$as_me:$LINENO: result: no" >&5
 
3801
echo "${ECHO_T}no" >&6
 
3802
fi
 
3803
 
 
3804
fi
 
3805
if test -z "$ac_cv_prog_RANLIB"; then
 
3806
  ac_ct_RANLIB=$RANLIB
 
3807
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3808
set dummy ranlib; ac_word=$2
 
3809
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3810
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3811
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3812
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3813
else
 
3814
  if test -n "$ac_ct_RANLIB"; then
 
3815
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3816
else
 
3817
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3818
for as_dir in $PATH
 
3819
do
 
3820
  IFS=$as_save_IFS
 
3821
  test -z "$as_dir" && as_dir=.
 
3822
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3823
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3824
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3825
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3826
    break 2
 
3827
  fi
 
3828
done
 
3829
done
 
3830
 
 
3831
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
3832
fi
 
3833
fi
 
3834
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3835
if test -n "$ac_ct_RANLIB"; then
 
3836
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3837
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
3838
else
 
3839
  echo "$as_me:$LINENO: result: no" >&5
 
3840
echo "${ECHO_T}no" >&6
 
3841
fi
 
3842
 
 
3843
  RANLIB=$ac_ct_RANLIB
 
3844
else
 
3845
  RANLIB="$ac_cv_prog_RANLIB"
 
3846
fi
 
3847
 
 
3848
ac_ext=c
 
3849
ac_cpp='$CPP $CPPFLAGS'
 
3850
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3851
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3852
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3853
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3854
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3855
# On Suns, sometimes $CPP names a directory.
 
3856
if test -n "$CPP" && test -d "$CPP"; then
 
3857
  CPP=
 
3858
fi
 
3859
if test -z "$CPP"; then
 
3860
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3861
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3862
else
 
3863
      # Double quotes because CPP needs to be expanded
 
3864
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3865
    do
 
3866
      ac_preproc_ok=false
 
3867
for ac_c_preproc_warn_flag in '' yes
 
3868
do
 
3869
  # Use a header file that comes with gcc, so configuring glibc
 
3870
  # with a fresh cross-compiler works.
 
3871
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3872
  # <limits.h> exists even on freestanding compilers.
 
3873
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3874
  # not just through cpp. "Syntax error" is here to catch this case.
 
3875
  cat >conftest.$ac_ext <<_ACEOF
 
3876
/* confdefs.h.  */
 
3877
_ACEOF
 
3878
cat confdefs.h >>conftest.$ac_ext
 
3879
cat >>conftest.$ac_ext <<_ACEOF
 
3880
/* end confdefs.h.  */
 
3881
#ifdef __STDC__
 
3882
# include <limits.h>
 
3883
#else
 
3884
# include <assert.h>
 
3885
#endif
 
3886
                     Syntax error
 
3887
_ACEOF
 
3888
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3889
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3890
  ac_status=$?
 
3891
  grep -v '^ *+' conftest.er1 >conftest.err
 
3892
  rm -f conftest.er1
 
3893
  cat conftest.err >&5
 
3894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3895
  (exit $ac_status); } >/dev/null; then
 
3896
  if test -s conftest.err; then
 
3897
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3898
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3899
  else
 
3900
    ac_cpp_err=
 
3901
  fi
 
3902
else
 
3903
  ac_cpp_err=yes
 
3904
fi
 
3905
if test -z "$ac_cpp_err"; then
 
3906
  :
 
3907
else
 
3908
  echo "$as_me: failed program was:" >&5
 
3909
sed 's/^/| /' conftest.$ac_ext >&5
 
3910
 
 
3911
  # Broken: fails on valid input.
 
3912
continue
 
3913
fi
 
3914
rm -f conftest.err conftest.$ac_ext
 
3915
 
 
3916
  # OK, works on sane cases.  Now check whether non-existent headers
 
3917
  # can be detected and how.
 
3918
  cat >conftest.$ac_ext <<_ACEOF
 
3919
/* confdefs.h.  */
 
3920
_ACEOF
 
3921
cat confdefs.h >>conftest.$ac_ext
 
3922
cat >>conftest.$ac_ext <<_ACEOF
 
3923
/* end confdefs.h.  */
 
3924
#include <ac_nonexistent.h>
 
3925
_ACEOF
 
3926
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3927
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3928
  ac_status=$?
 
3929
  grep -v '^ *+' conftest.er1 >conftest.err
 
3930
  rm -f conftest.er1
 
3931
  cat conftest.err >&5
 
3932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3933
  (exit $ac_status); } >/dev/null; then
 
3934
  if test -s conftest.err; then
 
3935
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3936
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3937
  else
 
3938
    ac_cpp_err=
 
3939
  fi
 
3940
else
 
3941
  ac_cpp_err=yes
 
3942
fi
 
3943
if test -z "$ac_cpp_err"; then
 
3944
  # Broken: success on invalid input.
 
3945
continue
 
3946
else
 
3947
  echo "$as_me: failed program was:" >&5
 
3948
sed 's/^/| /' conftest.$ac_ext >&5
 
3949
 
 
3950
  # Passes both tests.
 
3951
ac_preproc_ok=:
 
3952
break
 
3953
fi
 
3954
rm -f conftest.err conftest.$ac_ext
 
3955
 
 
3956
done
 
3957
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3958
rm -f conftest.err conftest.$ac_ext
 
3959
if $ac_preproc_ok; then
 
3960
  break
 
3961
fi
 
3962
 
 
3963
    done
 
3964
    ac_cv_prog_CPP=$CPP
 
3965
 
 
3966
fi
 
3967
  CPP=$ac_cv_prog_CPP
 
3968
else
 
3969
  ac_cv_prog_CPP=$CPP
 
3970
fi
 
3971
echo "$as_me:$LINENO: result: $CPP" >&5
 
3972
echo "${ECHO_T}$CPP" >&6
 
3973
ac_preproc_ok=false
 
3974
for ac_c_preproc_warn_flag in '' yes
 
3975
do
 
3976
  # Use a header file that comes with gcc, so configuring glibc
 
3977
  # with a fresh cross-compiler works.
 
3978
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3979
  # <limits.h> exists even on freestanding compilers.
 
3980
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3981
  # not just through cpp. "Syntax error" is here to catch this case.
 
3982
  cat >conftest.$ac_ext <<_ACEOF
 
3983
/* confdefs.h.  */
 
3984
_ACEOF
 
3985
cat confdefs.h >>conftest.$ac_ext
 
3986
cat >>conftest.$ac_ext <<_ACEOF
 
3987
/* end confdefs.h.  */
 
3988
#ifdef __STDC__
 
3989
# include <limits.h>
 
3990
#else
 
3991
# include <assert.h>
 
3992
#endif
 
3993
                     Syntax error
 
3994
_ACEOF
 
3995
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3996
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3997
  ac_status=$?
 
3998
  grep -v '^ *+' conftest.er1 >conftest.err
 
3999
  rm -f conftest.er1
 
4000
  cat conftest.err >&5
 
4001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4002
  (exit $ac_status); } >/dev/null; then
 
4003
  if test -s conftest.err; then
 
4004
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4005
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4006
  else
 
4007
    ac_cpp_err=
 
4008
  fi
 
4009
else
 
4010
  ac_cpp_err=yes
 
4011
fi
 
4012
if test -z "$ac_cpp_err"; then
 
4013
  :
 
4014
else
 
4015
  echo "$as_me: failed program was:" >&5
 
4016
sed 's/^/| /' conftest.$ac_ext >&5
 
4017
 
 
4018
  # Broken: fails on valid input.
 
4019
continue
 
4020
fi
 
4021
rm -f conftest.err conftest.$ac_ext
 
4022
 
 
4023
  # OK, works on sane cases.  Now check whether non-existent headers
 
4024
  # can be detected and how.
 
4025
  cat >conftest.$ac_ext <<_ACEOF
 
4026
/* confdefs.h.  */
 
4027
_ACEOF
 
4028
cat confdefs.h >>conftest.$ac_ext
 
4029
cat >>conftest.$ac_ext <<_ACEOF
 
4030
/* end confdefs.h.  */
 
4031
#include <ac_nonexistent.h>
 
4032
_ACEOF
 
4033
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4034
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4035
  ac_status=$?
 
4036
  grep -v '^ *+' conftest.er1 >conftest.err
 
4037
  rm -f conftest.er1
 
4038
  cat conftest.err >&5
 
4039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4040
  (exit $ac_status); } >/dev/null; then
 
4041
  if test -s conftest.err; then
 
4042
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4043
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4044
  else
 
4045
    ac_cpp_err=
 
4046
  fi
 
4047
else
 
4048
  ac_cpp_err=yes
 
4049
fi
 
4050
if test -z "$ac_cpp_err"; then
 
4051
  # Broken: success on invalid input.
 
4052
continue
 
4053
else
 
4054
  echo "$as_me: failed program was:" >&5
 
4055
sed 's/^/| /' conftest.$ac_ext >&5
 
4056
 
 
4057
  # Passes both tests.
 
4058
ac_preproc_ok=:
 
4059
break
 
4060
fi
 
4061
rm -f conftest.err conftest.$ac_ext
 
4062
 
 
4063
done
 
4064
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4065
rm -f conftest.err conftest.$ac_ext
 
4066
if $ac_preproc_ok; then
 
4067
  :
 
4068
else
 
4069
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4070
See \`config.log' for more details." >&5
 
4071
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4072
See \`config.log' for more details." >&2;}
 
4073
   { (exit 1); exit 1; }; }
 
4074
fi
 
4075
 
 
4076
ac_ext=c
 
4077
ac_cpp='$CPP $CPPFLAGS'
 
4078
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4079
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4080
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4081
 
 
4082
 
 
4083
echo "$as_me:$LINENO: checking for egrep" >&5
 
4084
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
4085
if test "${ac_cv_prog_egrep+set}" = set; then
 
4086
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4087
else
 
4088
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
4089
    then ac_cv_prog_egrep='grep -E'
 
4090
    else ac_cv_prog_egrep='egrep'
 
4091
    fi
 
4092
fi
 
4093
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
4094
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
4095
 EGREP=$ac_cv_prog_egrep
 
4096
 
 
4097
 
 
4098
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4099
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4100
if test "${ac_cv_header_stdc+set}" = set; then
 
4101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4102
else
 
4103
  cat >conftest.$ac_ext <<_ACEOF
 
4104
/* confdefs.h.  */
 
4105
_ACEOF
 
4106
cat confdefs.h >>conftest.$ac_ext
 
4107
cat >>conftest.$ac_ext <<_ACEOF
 
4108
/* end confdefs.h.  */
 
4109
#include <stdlib.h>
 
4110
#include <stdarg.h>
 
4111
#include <string.h>
 
4112
#include <float.h>
 
4113
 
 
4114
int
 
4115
main ()
 
4116
{
 
4117
 
 
4118
  ;
 
4119
  return 0;
 
4120
}
 
4121
_ACEOF
 
4122
rm -f conftest.$ac_objext
 
4123
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4124
  (eval $ac_compile) 2>conftest.er1
 
4125
  ac_status=$?
 
4126
  grep -v '^ *+' conftest.er1 >conftest.err
 
4127
  rm -f conftest.er1
 
4128
  cat conftest.err >&5
 
4129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4130
  (exit $ac_status); } &&
 
4131
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4132
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4133
  (eval $ac_try) 2>&5
 
4134
  ac_status=$?
 
4135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4136
  (exit $ac_status); }; } &&
 
4137
         { ac_try='test -s conftest.$ac_objext'
 
4138
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4139
  (eval $ac_try) 2>&5
 
4140
  ac_status=$?
 
4141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4142
  (exit $ac_status); }; }; then
 
4143
  ac_cv_header_stdc=yes
 
4144
else
 
4145
  echo "$as_me: failed program was:" >&5
 
4146
sed 's/^/| /' conftest.$ac_ext >&5
 
4147
 
 
4148
ac_cv_header_stdc=no
 
4149
fi
 
4150
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4151
 
 
4152
if test $ac_cv_header_stdc = yes; then
 
4153
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4154
  cat >conftest.$ac_ext <<_ACEOF
 
4155
/* confdefs.h.  */
 
4156
_ACEOF
 
4157
cat confdefs.h >>conftest.$ac_ext
 
4158
cat >>conftest.$ac_ext <<_ACEOF
 
4159
/* end confdefs.h.  */
 
4160
#include <string.h>
 
4161
 
 
4162
_ACEOF
 
4163
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4164
  $EGREP "memchr" >/dev/null 2>&1; then
 
4165
  :
 
4166
else
 
4167
  ac_cv_header_stdc=no
 
4168
fi
 
4169
rm -f conftest*
 
4170
 
 
4171
fi
 
4172
 
 
4173
if test $ac_cv_header_stdc = yes; then
 
4174
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4175
  cat >conftest.$ac_ext <<_ACEOF
 
4176
/* confdefs.h.  */
 
4177
_ACEOF
 
4178
cat confdefs.h >>conftest.$ac_ext
 
4179
cat >>conftest.$ac_ext <<_ACEOF
 
4180
/* end confdefs.h.  */
 
4181
#include <stdlib.h>
 
4182
 
 
4183
_ACEOF
 
4184
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4185
  $EGREP "free" >/dev/null 2>&1; then
 
4186
  :
 
4187
else
 
4188
  ac_cv_header_stdc=no
 
4189
fi
 
4190
rm -f conftest*
 
4191
 
 
4192
fi
 
4193
 
 
4194
if test $ac_cv_header_stdc = yes; then
 
4195
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4196
  if test "$cross_compiling" = yes; then
 
4197
  :
 
4198
else
 
4199
  cat >conftest.$ac_ext <<_ACEOF
 
4200
/* confdefs.h.  */
 
4201
_ACEOF
 
4202
cat confdefs.h >>conftest.$ac_ext
 
4203
cat >>conftest.$ac_ext <<_ACEOF
 
4204
/* end confdefs.h.  */
 
4205
#include <ctype.h>
 
4206
#if ((' ' & 0x0FF) == 0x020)
 
4207
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4208
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4209
#else
 
4210
# define ISLOWER(c) \
 
4211
                   (('a' <= (c) && (c) <= 'i') \
 
4212
                     || ('j' <= (c) && (c) <= 'r') \
 
4213
                     || ('s' <= (c) && (c) <= 'z'))
 
4214
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4215
#endif
 
4216
 
 
4217
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4218
int
 
4219
main ()
 
4220
{
 
4221
  int i;
 
4222
  for (i = 0; i < 256; i++)
 
4223
    if (XOR (islower (i), ISLOWER (i))
 
4224
        || toupper (i) != TOUPPER (i))
 
4225
      exit(2);
 
4226
  exit (0);
 
4227
}
 
4228
_ACEOF
 
4229
rm -f conftest$ac_exeext
 
4230
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4231
  (eval $ac_link) 2>&5
 
4232
  ac_status=$?
 
4233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4234
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4235
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4236
  (eval $ac_try) 2>&5
 
4237
  ac_status=$?
 
4238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4239
  (exit $ac_status); }; }; then
 
4240
  :
 
4241
else
 
4242
  echo "$as_me: program exited with status $ac_status" >&5
 
4243
echo "$as_me: failed program was:" >&5
 
4244
sed 's/^/| /' conftest.$ac_ext >&5
 
4245
 
 
4246
( exit $ac_status )
 
4247
ac_cv_header_stdc=no
 
4248
fi
 
4249
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4250
fi
 
4251
fi
 
4252
fi
 
4253
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4254
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4255
if test $ac_cv_header_stdc = yes; then
 
4256
 
 
4257
cat >>confdefs.h <<\_ACEOF
 
4258
#define STDC_HEADERS 1
 
4259
_ACEOF
 
4260
 
 
4261
fi
 
4262
 
 
4263
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
4264
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
4265
if test "${ac_cv_c_const+set}" = set; then
 
4266
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4267
else
 
4268
  cat >conftest.$ac_ext <<_ACEOF
 
4269
/* confdefs.h.  */
 
4270
_ACEOF
 
4271
cat confdefs.h >>conftest.$ac_ext
 
4272
cat >>conftest.$ac_ext <<_ACEOF
 
4273
/* end confdefs.h.  */
 
4274
 
 
4275
int
 
4276
main ()
 
4277
{
 
4278
/* FIXME: Include the comments suggested by Paul. */
 
4279
#ifndef __cplusplus
 
4280
  /* Ultrix mips cc rejects this.  */
 
4281
  typedef int charset[2];
 
4282
  const charset x;
 
4283
  /* SunOS 4.1.1 cc rejects this.  */
 
4284
  char const *const *ccp;
 
4285
  char **p;
 
4286
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
4287
  struct point {int x, y;};
 
4288
  static struct point const zero = {0,0};
 
4289
  /* AIX XL C 1.02.0.0 rejects this.
 
4290
     It does not let you subtract one const X* pointer from another in
 
4291
     an arm of an if-expression whose if-part is not a constant
 
4292
     expression */
 
4293
  const char *g = "string";
 
4294
  ccp = &g + (g ? g-g : 0);
 
4295
  /* HPUX 7.0 cc rejects these. */
 
4296
  ++ccp;
 
4297
  p = (char**) ccp;
 
4298
  ccp = (char const *const *) p;
 
4299
  { /* SCO 3.2v4 cc rejects this.  */
 
4300
    char *t;
 
4301
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
4302
 
 
4303
    *t++ = 0;
 
4304
  }
 
4305
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
4306
    int x[] = {25, 17};
 
4307
    const int *foo = &x[0];
 
4308
    ++foo;
 
4309
  }
 
4310
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4311
    typedef const int *iptr;
 
4312
    iptr p = 0;
 
4313
    ++p;
 
4314
  }
 
4315
  { /* AIX XL C 1.02.0.0 rejects this saying
 
4316
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
4317
    struct s { int j; const int *ap[3]; };
 
4318
    struct s *b; b->j = 5;
 
4319
  }
 
4320
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4321
    const int foo = 10;
 
4322
  }
 
4323
#endif
 
4324
 
 
4325
  ;
 
4326
  return 0;
 
4327
}
 
4328
_ACEOF
 
4329
rm -f conftest.$ac_objext
 
4330
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4331
  (eval $ac_compile) 2>conftest.er1
 
4332
  ac_status=$?
 
4333
  grep -v '^ *+' conftest.er1 >conftest.err
 
4334
  rm -f conftest.er1
 
4335
  cat conftest.err >&5
 
4336
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4337
  (exit $ac_status); } &&
 
4338
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4339
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4340
  (eval $ac_try) 2>&5
 
4341
  ac_status=$?
 
4342
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4343
  (exit $ac_status); }; } &&
 
4344
         { ac_try='test -s conftest.$ac_objext'
 
4345
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4346
  (eval $ac_try) 2>&5
 
4347
  ac_status=$?
 
4348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4349
  (exit $ac_status); }; }; then
 
4350
  ac_cv_c_const=yes
 
4351
else
 
4352
  echo "$as_me: failed program was:" >&5
 
4353
sed 's/^/| /' conftest.$ac_ext >&5
 
4354
 
 
4355
ac_cv_c_const=no
 
4356
fi
 
4357
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4358
fi
 
4359
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
4360
echo "${ECHO_T}$ac_cv_c_const" >&6
 
4361
if test $ac_cv_c_const = no; then
 
4362
 
 
4363
cat >>confdefs.h <<\_ACEOF
 
4364
#define const
 
4365
_ACEOF
 
4366
 
 
4367
fi
 
4368
 
 
4369
 
 
4370
  echo "$as_me:$LINENO: checking for signed" >&5
 
4371
echo $ECHO_N "checking for signed... $ECHO_C" >&6
 
4372
if test "${bh_cv_c_signed+set}" = set; then
 
4373
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4374
else
 
4375
  cat >conftest.$ac_ext <<_ACEOF
 
4376
/* confdefs.h.  */
 
4377
_ACEOF
 
4378
cat confdefs.h >>conftest.$ac_ext
 
4379
cat >>conftest.$ac_ext <<_ACEOF
 
4380
/* end confdefs.h.  */
 
4381
 
 
4382
int
 
4383
main ()
 
4384
{
 
4385
signed char x;
 
4386
  ;
 
4387
  return 0;
 
4388
}
 
4389
_ACEOF
 
4390
rm -f conftest.$ac_objext
 
4391
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4392
  (eval $ac_compile) 2>conftest.er1
 
4393
  ac_status=$?
 
4394
  grep -v '^ *+' conftest.er1 >conftest.err
 
4395
  rm -f conftest.er1
 
4396
  cat conftest.err >&5
 
4397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4398
  (exit $ac_status); } &&
 
4399
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4401
  (eval $ac_try) 2>&5
 
4402
  ac_status=$?
 
4403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4404
  (exit $ac_status); }; } &&
 
4405
         { ac_try='test -s conftest.$ac_objext'
 
4406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4407
  (eval $ac_try) 2>&5
 
4408
  ac_status=$?
 
4409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4410
  (exit $ac_status); }; }; then
 
4411
  bh_cv_c_signed=yes
 
4412
else
 
4413
  echo "$as_me: failed program was:" >&5
 
4414
sed 's/^/| /' conftest.$ac_ext >&5
 
4415
 
 
4416
bh_cv_c_signed=no
 
4417
fi
 
4418
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4419
fi
 
4420
echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
 
4421
echo "${ECHO_T}$bh_cv_c_signed" >&6
 
4422
  if test $bh_cv_c_signed = no; then
 
4423
 
 
4424
cat >>confdefs.h <<\_ACEOF
 
4425
#define signed
 
4426
_ACEOF
 
4427
 
 
4428
  fi
 
4429
 
 
4430
echo "$as_me:$LINENO: checking for inline" >&5
 
4431
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
4432
if test "${ac_cv_c_inline+set}" = set; then
 
4433
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4434
else
 
4435
  ac_cv_c_inline=no
 
4436
for ac_kw in inline __inline__ __inline; do
 
4437
  cat >conftest.$ac_ext <<_ACEOF
 
4438
/* confdefs.h.  */
 
4439
_ACEOF
 
4440
cat confdefs.h >>conftest.$ac_ext
 
4441
cat >>conftest.$ac_ext <<_ACEOF
 
4442
/* end confdefs.h.  */
 
4443
#ifndef __cplusplus
 
4444
typedef int foo_t;
 
4445
static $ac_kw foo_t static_foo () {return 0; }
 
4446
$ac_kw foo_t foo () {return 0; }
 
4447
#endif
 
4448
 
 
4449
_ACEOF
 
4450
rm -f conftest.$ac_objext
 
4451
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4452
  (eval $ac_compile) 2>conftest.er1
 
4453
  ac_status=$?
 
4454
  grep -v '^ *+' conftest.er1 >conftest.err
 
4455
  rm -f conftest.er1
 
4456
  cat conftest.err >&5
 
4457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4458
  (exit $ac_status); } &&
 
4459
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4461
  (eval $ac_try) 2>&5
 
4462
  ac_status=$?
 
4463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4464
  (exit $ac_status); }; } &&
 
4465
         { ac_try='test -s conftest.$ac_objext'
 
4466
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4467
  (eval $ac_try) 2>&5
 
4468
  ac_status=$?
 
4469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4470
  (exit $ac_status); }; }; then
 
4471
  ac_cv_c_inline=$ac_kw; break
 
4472
else
 
4473
  echo "$as_me: failed program was:" >&5
 
4474
sed 's/^/| /' conftest.$ac_ext >&5
 
4475
 
 
4476
fi
 
4477
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4478
done
 
4479
 
 
4480
fi
 
4481
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
4482
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
4483
 
 
4484
 
 
4485
case $ac_cv_c_inline in
 
4486
  inline | yes) ;;
 
4487
  *)
 
4488
    case $ac_cv_c_inline in
 
4489
      no) ac_val=;;
 
4490
      *) ac_val=$ac_cv_c_inline;;
 
4491
    esac
 
4492
    cat >>confdefs.h <<_ACEOF
 
4493
#ifndef __cplusplus
 
4494
#define inline $ac_val
 
4495
#endif
 
4496
_ACEOF
 
4497
    ;;
 
4498
esac
 
4499
 
 
4500
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4501
 
 
4502
 
 
4503
 
 
4504
 
 
4505
 
 
4506
 
 
4507
 
 
4508
 
 
4509
 
 
4510
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4511
                  inttypes.h stdint.h unistd.h
 
4512
do
 
4513
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4514
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4515
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4516
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4518
else
 
4519
  cat >conftest.$ac_ext <<_ACEOF
 
4520
/* confdefs.h.  */
 
4521
_ACEOF
 
4522
cat confdefs.h >>conftest.$ac_ext
 
4523
cat >>conftest.$ac_ext <<_ACEOF
 
4524
/* end confdefs.h.  */
 
4525
$ac_includes_default
 
4526
 
 
4527
#include <$ac_header>
 
4528
_ACEOF
 
4529
rm -f conftest.$ac_objext
 
4530
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4531
  (eval $ac_compile) 2>conftest.er1
 
4532
  ac_status=$?
 
4533
  grep -v '^ *+' conftest.er1 >conftest.err
 
4534
  rm -f conftest.er1
 
4535
  cat conftest.err >&5
 
4536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4537
  (exit $ac_status); } &&
 
4538
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4540
  (eval $ac_try) 2>&5
 
4541
  ac_status=$?
 
4542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4543
  (exit $ac_status); }; } &&
 
4544
         { ac_try='test -s conftest.$ac_objext'
 
4545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4546
  (eval $ac_try) 2>&5
 
4547
  ac_status=$?
 
4548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4549
  (exit $ac_status); }; }; then
 
4550
  eval "$as_ac_Header=yes"
 
4551
else
 
4552
  echo "$as_me: failed program was:" >&5
 
4553
sed 's/^/| /' conftest.$ac_ext >&5
 
4554
 
 
4555
eval "$as_ac_Header=no"
 
4556
fi
 
4557
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4558
fi
 
4559
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4560
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4561
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4562
  cat >>confdefs.h <<_ACEOF
 
4563
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4564
_ACEOF
 
4565
 
 
4566
fi
 
4567
 
 
4568
done
 
4569
 
 
4570
 
 
4571
echo "$as_me:$LINENO: checking for off_t" >&5
 
4572
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
4573
if test "${ac_cv_type_off_t+set}" = set; then
 
4574
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4575
else
 
4576
  cat >conftest.$ac_ext <<_ACEOF
 
4577
/* confdefs.h.  */
 
4578
_ACEOF
 
4579
cat confdefs.h >>conftest.$ac_ext
 
4580
cat >>conftest.$ac_ext <<_ACEOF
 
4581
/* end confdefs.h.  */
 
4582
$ac_includes_default
 
4583
int
 
4584
main ()
 
4585
{
 
4586
if ((off_t *) 0)
 
4587
  return 0;
 
4588
if (sizeof (off_t))
 
4589
  return 0;
 
4590
  ;
 
4591
  return 0;
 
4592
}
 
4593
_ACEOF
 
4594
rm -f conftest.$ac_objext
 
4595
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4596
  (eval $ac_compile) 2>conftest.er1
 
4597
  ac_status=$?
 
4598
  grep -v '^ *+' conftest.er1 >conftest.err
 
4599
  rm -f conftest.er1
 
4600
  cat conftest.err >&5
 
4601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4602
  (exit $ac_status); } &&
 
4603
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4604
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4605
  (eval $ac_try) 2>&5
 
4606
  ac_status=$?
 
4607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4608
  (exit $ac_status); }; } &&
 
4609
         { ac_try='test -s conftest.$ac_objext'
 
4610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4611
  (eval $ac_try) 2>&5
 
4612
  ac_status=$?
 
4613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4614
  (exit $ac_status); }; }; then
 
4615
  ac_cv_type_off_t=yes
 
4616
else
 
4617
  echo "$as_me: failed program was:" >&5
 
4618
sed 's/^/| /' conftest.$ac_ext >&5
 
4619
 
 
4620
ac_cv_type_off_t=no
 
4621
fi
 
4622
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4623
fi
 
4624
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
4625
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
4626
if test $ac_cv_type_off_t = yes; then
 
4627
  :
 
4628
else
 
4629
 
 
4630
cat >>confdefs.h <<_ACEOF
 
4631
#define off_t long
 
4632
_ACEOF
 
4633
 
 
4634
fi
 
4635
 
 
4636
echo "$as_me:$LINENO: checking for size_t" >&5
 
4637
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
4638
if test "${ac_cv_type_size_t+set}" = set; then
 
4639
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4640
else
 
4641
  cat >conftest.$ac_ext <<_ACEOF
 
4642
/* confdefs.h.  */
 
4643
_ACEOF
 
4644
cat confdefs.h >>conftest.$ac_ext
 
4645
cat >>conftest.$ac_ext <<_ACEOF
 
4646
/* end confdefs.h.  */
 
4647
$ac_includes_default
 
4648
int
 
4649
main ()
 
4650
{
 
4651
if ((size_t *) 0)
 
4652
  return 0;
 
4653
if (sizeof (size_t))
 
4654
  return 0;
 
4655
  ;
 
4656
  return 0;
 
4657
}
 
4658
_ACEOF
 
4659
rm -f conftest.$ac_objext
 
4660
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4661
  (eval $ac_compile) 2>conftest.er1
 
4662
  ac_status=$?
 
4663
  grep -v '^ *+' conftest.er1 >conftest.err
 
4664
  rm -f conftest.er1
 
4665
  cat conftest.err >&5
 
4666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4667
  (exit $ac_status); } &&
 
4668
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4670
  (eval $ac_try) 2>&5
 
4671
  ac_status=$?
 
4672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4673
  (exit $ac_status); }; } &&
 
4674
         { ac_try='test -s conftest.$ac_objext'
 
4675
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4676
  (eval $ac_try) 2>&5
 
4677
  ac_status=$?
 
4678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4679
  (exit $ac_status); }; }; then
 
4680
  ac_cv_type_size_t=yes
 
4681
else
 
4682
  echo "$as_me: failed program was:" >&5
 
4683
sed 's/^/| /' conftest.$ac_ext >&5
 
4684
 
 
4685
ac_cv_type_size_t=no
 
4686
fi
 
4687
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4688
fi
 
4689
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
4690
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
4691
if test $ac_cv_type_size_t = yes; then
 
4692
  :
 
4693
else
 
4694
 
 
4695
cat >>confdefs.h <<_ACEOF
 
4696
#define size_t unsigned
 
4697
_ACEOF
 
4698
 
 
4699
fi
 
4700
 
 
4701
 
 
4702
  echo "$as_me:$LINENO: checking for long long" >&5
 
4703
echo $ECHO_N "checking for long long... $ECHO_C" >&6
 
4704
if test "${ac_cv_type_long_long+set}" = set; then
 
4705
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4706
else
 
4707
  cat >conftest.$ac_ext <<_ACEOF
 
4708
/* confdefs.h.  */
 
4709
_ACEOF
 
4710
cat confdefs.h >>conftest.$ac_ext
 
4711
cat >>conftest.$ac_ext <<_ACEOF
 
4712
/* end confdefs.h.  */
 
4713
long long ll = 1LL; int i = 63;
 
4714
int
 
4715
main ()
 
4716
{
 
4717
long long llmax = (long long) -1;
 
4718
     return ll << i | ll >> i | llmax / ll | llmax % ll;
 
4719
  ;
 
4720
  return 0;
 
4721
}
 
4722
_ACEOF
 
4723
rm -f conftest.$ac_objext conftest$ac_exeext
 
4724
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4725
  (eval $ac_link) 2>conftest.er1
 
4726
  ac_status=$?
 
4727
  grep -v '^ *+' conftest.er1 >conftest.err
 
4728
  rm -f conftest.er1
 
4729
  cat conftest.err >&5
 
4730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4731
  (exit $ac_status); } &&
 
4732
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4734
  (eval $ac_try) 2>&5
 
4735
  ac_status=$?
 
4736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4737
  (exit $ac_status); }; } &&
 
4738
         { ac_try='test -s conftest$ac_exeext'
 
4739
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4740
  (eval $ac_try) 2>&5
 
4741
  ac_status=$?
 
4742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4743
  (exit $ac_status); }; }; then
 
4744
  ac_cv_type_long_long=yes
 
4745
else
 
4746
  echo "$as_me: failed program was:" >&5
 
4747
sed 's/^/| /' conftest.$ac_ext >&5
 
4748
 
 
4749
ac_cv_type_long_long=no
 
4750
fi
 
4751
rm -f conftest.err conftest.$ac_objext \
 
4752
      conftest$ac_exeext conftest.$ac_ext
 
4753
fi
 
4754
echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
 
4755
echo "${ECHO_T}$ac_cv_type_long_long" >&6
 
4756
  if test $ac_cv_type_long_long = yes; then
 
4757
 
 
4758
cat >>confdefs.h <<\_ACEOF
 
4759
#define HAVE_LONG_LONG 1
 
4760
_ACEOF
 
4761
 
 
4762
  fi
 
4763
 
 
4764
 
 
4765
  echo "$as_me:$LINENO: checking for long double" >&5
 
4766
echo $ECHO_N "checking for long double... $ECHO_C" >&6
 
4767
if test "${gt_cv_c_long_double+set}" = set; then
 
4768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4769
else
 
4770
  if test "$GCC" = yes; then
 
4771
       gt_cv_c_long_double=yes
 
4772
     else
 
4773
       cat >conftest.$ac_ext <<_ACEOF
 
4774
/* confdefs.h.  */
 
4775
_ACEOF
 
4776
cat confdefs.h >>conftest.$ac_ext
 
4777
cat >>conftest.$ac_ext <<_ACEOF
 
4778
/* end confdefs.h.  */
 
4779
 
 
4780
         /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
 
4781
         long double foo = 0.0;
 
4782
         /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
 
4783
         int array [2*(sizeof(long double) >= sizeof(double)) - 1];
 
4784
 
 
4785
int
 
4786
main ()
 
4787
{
 
4788
 
 
4789
  ;
 
4790
  return 0;
 
4791
}
 
4792
_ACEOF
 
4793
rm -f conftest.$ac_objext
 
4794
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4795
  (eval $ac_compile) 2>conftest.er1
 
4796
  ac_status=$?
 
4797
  grep -v '^ *+' conftest.er1 >conftest.err
 
4798
  rm -f conftest.er1
 
4799
  cat conftest.err >&5
 
4800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4801
  (exit $ac_status); } &&
 
4802
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4803
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4804
  (eval $ac_try) 2>&5
 
4805
  ac_status=$?
 
4806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4807
  (exit $ac_status); }; } &&
 
4808
         { ac_try='test -s conftest.$ac_objext'
 
4809
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4810
  (eval $ac_try) 2>&5
 
4811
  ac_status=$?
 
4812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4813
  (exit $ac_status); }; }; then
 
4814
  gt_cv_c_long_double=yes
 
4815
else
 
4816
  echo "$as_me: failed program was:" >&5
 
4817
sed 's/^/| /' conftest.$ac_ext >&5
 
4818
 
 
4819
gt_cv_c_long_double=no
 
4820
fi
 
4821
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4822
     fi
 
4823
fi
 
4824
echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
 
4825
echo "${ECHO_T}$gt_cv_c_long_double" >&6
 
4826
  if test $gt_cv_c_long_double = yes; then
 
4827
 
 
4828
cat >>confdefs.h <<\_ACEOF
 
4829
#define HAVE_LONG_DOUBLE 1
 
4830
_ACEOF
 
4831
 
 
4832
  fi
 
4833
 
 
4834
 
 
4835
  echo "$as_me:$LINENO: checking for wchar_t" >&5
 
4836
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
 
4837
if test "${gt_cv_c_wchar_t+set}" = set; then
 
4838
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4839
else
 
4840
  cat >conftest.$ac_ext <<_ACEOF
 
4841
/* confdefs.h.  */
 
4842
_ACEOF
 
4843
cat confdefs.h >>conftest.$ac_ext
 
4844
cat >>conftest.$ac_ext <<_ACEOF
 
4845
/* end confdefs.h.  */
 
4846
#include <stddef.h>
 
4847
       wchar_t foo = (wchar_t)'\0';
 
4848
int
 
4849
main ()
 
4850
{
 
4851
 
 
4852
  ;
 
4853
  return 0;
 
4854
}
 
4855
_ACEOF
 
4856
rm -f conftest.$ac_objext
 
4857
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4858
  (eval $ac_compile) 2>conftest.er1
 
4859
  ac_status=$?
 
4860
  grep -v '^ *+' conftest.er1 >conftest.err
 
4861
  rm -f conftest.er1
 
4862
  cat conftest.err >&5
 
4863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4864
  (exit $ac_status); } &&
 
4865
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4867
  (eval $ac_try) 2>&5
 
4868
  ac_status=$?
 
4869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4870
  (exit $ac_status); }; } &&
 
4871
         { ac_try='test -s conftest.$ac_objext'
 
4872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4873
  (eval $ac_try) 2>&5
 
4874
  ac_status=$?
 
4875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4876
  (exit $ac_status); }; }; then
 
4877
  gt_cv_c_wchar_t=yes
 
4878
else
 
4879
  echo "$as_me: failed program was:" >&5
 
4880
sed 's/^/| /' conftest.$ac_ext >&5
 
4881
 
 
4882
gt_cv_c_wchar_t=no
 
4883
fi
 
4884
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4885
fi
 
4886
echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
 
4887
echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
 
4888
  if test $gt_cv_c_wchar_t = yes; then
 
4889
 
 
4890
cat >>confdefs.h <<\_ACEOF
 
4891
#define HAVE_WCHAR_T 1
 
4892
_ACEOF
 
4893
 
 
4894
  fi
 
4895
 
 
4896
 
 
4897
  echo "$as_me:$LINENO: checking for wint_t" >&5
 
4898
echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
 
4899
if test "${gt_cv_c_wint_t+set}" = set; then
 
4900
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4901
else
 
4902
  cat >conftest.$ac_ext <<_ACEOF
 
4903
/* confdefs.h.  */
 
4904
_ACEOF
 
4905
cat confdefs.h >>conftest.$ac_ext
 
4906
cat >>conftest.$ac_ext <<_ACEOF
 
4907
/* end confdefs.h.  */
 
4908
#include <wchar.h>
 
4909
       wint_t foo = (wchar_t)'\0';
 
4910
int
 
4911
main ()
 
4912
{
 
4913
 
 
4914
  ;
 
4915
  return 0;
 
4916
}
 
4917
_ACEOF
 
4918
rm -f conftest.$ac_objext
 
4919
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4920
  (eval $ac_compile) 2>conftest.er1
 
4921
  ac_status=$?
 
4922
  grep -v '^ *+' conftest.er1 >conftest.err
 
4923
  rm -f conftest.er1
 
4924
  cat conftest.err >&5
 
4925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4926
  (exit $ac_status); } &&
 
4927
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4929
  (eval $ac_try) 2>&5
 
4930
  ac_status=$?
 
4931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4932
  (exit $ac_status); }; } &&
 
4933
         { ac_try='test -s conftest.$ac_objext'
 
4934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4935
  (eval $ac_try) 2>&5
 
4936
  ac_status=$?
 
4937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4938
  (exit $ac_status); }; }; then
 
4939
  gt_cv_c_wint_t=yes
 
4940
else
 
4941
  echo "$as_me: failed program was:" >&5
 
4942
sed 's/^/| /' conftest.$ac_ext >&5
 
4943
 
 
4944
gt_cv_c_wint_t=no
 
4945
fi
 
4946
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4947
fi
 
4948
echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
 
4949
echo "${ECHO_T}$gt_cv_c_wint_t" >&6
 
4950
  if test $gt_cv_c_wint_t = yes; then
 
4951
 
 
4952
cat >>confdefs.h <<\_ACEOF
 
4953
#define HAVE_WINT_T 1
 
4954
_ACEOF
 
4955
 
 
4956
  fi
 
4957
 
 
4958
 
 
4959
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
4960
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
 
4961
if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
 
4962
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4963
else
 
4964
  cat >conftest.$ac_ext <<_ACEOF
 
4965
/* confdefs.h.  */
 
4966
_ACEOF
 
4967
cat confdefs.h >>conftest.$ac_ext
 
4968
cat >>conftest.$ac_ext <<_ACEOF
 
4969
/* end confdefs.h.  */
 
4970
#include <sys/types.h>
 
4971
#include <inttypes.h>
 
4972
int
 
4973
main ()
 
4974
{
 
4975
uintmax_t i = (uintmax_t) -1;
 
4976
  ;
 
4977
  return 0;
 
4978
}
 
4979
_ACEOF
 
4980
rm -f conftest.$ac_objext
 
4981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4982
  (eval $ac_compile) 2>conftest.er1
 
4983
  ac_status=$?
 
4984
  grep -v '^ *+' conftest.er1 >conftest.err
 
4985
  rm -f conftest.er1
 
4986
  cat conftest.err >&5
 
4987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4988
  (exit $ac_status); } &&
 
4989
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4991
  (eval $ac_try) 2>&5
 
4992
  ac_status=$?
 
4993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4994
  (exit $ac_status); }; } &&
 
4995
         { ac_try='test -s conftest.$ac_objext'
 
4996
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4997
  (eval $ac_try) 2>&5
 
4998
  ac_status=$?
 
4999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5000
  (exit $ac_status); }; }; then
 
5001
  jm_ac_cv_header_inttypes_h=yes
 
5002
else
 
5003
  echo "$as_me: failed program was:" >&5
 
5004
sed 's/^/| /' conftest.$ac_ext >&5
 
5005
 
 
5006
jm_ac_cv_header_inttypes_h=no
 
5007
fi
 
5008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5009
fi
 
5010
echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
 
5011
echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
 
5012
  if test $jm_ac_cv_header_inttypes_h = yes; then
 
5013
 
 
5014
cat >>confdefs.h <<_ACEOF
 
5015
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
 
5016
_ACEOF
 
5017
 
 
5018
  fi
 
5019
 
 
5020
 
 
5021
  echo "$as_me:$LINENO: checking for stdint.h" >&5
 
5022
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
 
5023
if test "${jm_ac_cv_header_stdint_h+set}" = set; then
 
5024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5025
else
 
5026
  cat >conftest.$ac_ext <<_ACEOF
 
5027
/* confdefs.h.  */
 
5028
_ACEOF
 
5029
cat confdefs.h >>conftest.$ac_ext
 
5030
cat >>conftest.$ac_ext <<_ACEOF
 
5031
/* end confdefs.h.  */
 
5032
#include <sys/types.h>
 
5033
#include <stdint.h>
 
5034
int
 
5035
main ()
 
5036
{
 
5037
uintmax_t i = (uintmax_t) -1;
 
5038
  ;
 
5039
  return 0;
 
5040
}
 
5041
_ACEOF
 
5042
rm -f conftest.$ac_objext
 
5043
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5044
  (eval $ac_compile) 2>conftest.er1
 
5045
  ac_status=$?
 
5046
  grep -v '^ *+' conftest.er1 >conftest.err
 
5047
  rm -f conftest.er1
 
5048
  cat conftest.err >&5
 
5049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5050
  (exit $ac_status); } &&
 
5051
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5052
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5053
  (eval $ac_try) 2>&5
 
5054
  ac_status=$?
 
5055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5056
  (exit $ac_status); }; } &&
 
5057
         { ac_try='test -s conftest.$ac_objext'
 
5058
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5059
  (eval $ac_try) 2>&5
 
5060
  ac_status=$?
 
5061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5062
  (exit $ac_status); }; }; then
 
5063
  jm_ac_cv_header_stdint_h=yes
 
5064
else
 
5065
  echo "$as_me: failed program was:" >&5
 
5066
sed 's/^/| /' conftest.$ac_ext >&5
 
5067
 
 
5068
jm_ac_cv_header_stdint_h=no
 
5069
fi
 
5070
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5071
fi
 
5072
echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
 
5073
echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
 
5074
  if test $jm_ac_cv_header_stdint_h = yes; then
 
5075
 
 
5076
cat >>confdefs.h <<_ACEOF
 
5077
#define HAVE_STDINT_H_WITH_UINTMAX 1
 
5078
_ACEOF
 
5079
 
 
5080
  fi
 
5081
 
 
5082
 
 
5083
 
 
5084
 
 
5085
  echo "$as_me:$LINENO: checking for intmax_t" >&5
 
5086
echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
 
5087
if test "${gt_cv_c_intmax_t+set}" = set; then
 
5088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5089
else
 
5090
  cat >conftest.$ac_ext <<_ACEOF
 
5091
/* confdefs.h.  */
 
5092
_ACEOF
 
5093
cat confdefs.h >>conftest.$ac_ext
 
5094
cat >>conftest.$ac_ext <<_ACEOF
 
5095
/* end confdefs.h.  */
 
5096
 
 
5097
#include <stddef.h>
 
5098
#include <stdlib.h>
 
5099
#if HAVE_STDINT_H_WITH_UINTMAX
 
5100
#include <stdint.h>
 
5101
#endif
 
5102
#if HAVE_INTTYPES_H_WITH_UINTMAX
 
5103
#include <inttypes.h>
 
5104
#endif
 
5105
 
 
5106
int
 
5107
main ()
 
5108
{
 
5109
intmax_t x = -1;
 
5110
  ;
 
5111
  return 0;
 
5112
}
 
5113
_ACEOF
 
5114
rm -f conftest.$ac_objext
 
5115
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5116
  (eval $ac_compile) 2>conftest.er1
 
5117
  ac_status=$?
 
5118
  grep -v '^ *+' conftest.er1 >conftest.err
 
5119
  rm -f conftest.er1
 
5120
  cat conftest.err >&5
 
5121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5122
  (exit $ac_status); } &&
 
5123
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5124
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5125
  (eval $ac_try) 2>&5
 
5126
  ac_status=$?
 
5127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5128
  (exit $ac_status); }; } &&
 
5129
         { ac_try='test -s conftest.$ac_objext'
 
5130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5131
  (eval $ac_try) 2>&5
 
5132
  ac_status=$?
 
5133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5134
  (exit $ac_status); }; }; then
 
5135
  gt_cv_c_intmax_t=yes
 
5136
else
 
5137
  echo "$as_me: failed program was:" >&5
 
5138
sed 's/^/| /' conftest.$ac_ext >&5
 
5139
 
 
5140
gt_cv_c_intmax_t=no
 
5141
fi
 
5142
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5143
fi
 
5144
echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
 
5145
echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
 
5146
  if test $gt_cv_c_intmax_t = yes; then
 
5147
 
 
5148
cat >>confdefs.h <<\_ACEOF
 
5149
#define HAVE_INTMAX_T 1
 
5150
_ACEOF
 
5151
 
 
5152
  fi
 
5153
 
 
5154
 
 
5155
 
 
5156
  echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
 
5157
echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
 
5158
if test "${gt_cv_func_printf_posix+set}" = set; then
 
5159
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5160
else
 
5161
 
 
5162
      if test "$cross_compiling" = yes; then
 
5163
 
 
5164
        cat >conftest.$ac_ext <<_ACEOF
 
5165
/* confdefs.h.  */
 
5166
_ACEOF
 
5167
cat confdefs.h >>conftest.$ac_ext
 
5168
cat >>conftest.$ac_ext <<_ACEOF
 
5169
/* end confdefs.h.  */
 
5170
 
 
5171
#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
 
5172
  notposix
 
5173
#endif
 
5174
 
 
5175
_ACEOF
 
5176
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5177
  $EGREP "notposix" >/dev/null 2>&1; then
 
5178
  gt_cv_func_printf_posix="guessing no"
 
5179
else
 
5180
  gt_cv_func_printf_posix="guessing yes"
 
5181
fi
 
5182
rm -f conftest*
 
5183
 
 
5184
 
 
5185
else
 
5186
  cat >conftest.$ac_ext <<_ACEOF
 
5187
/* confdefs.h.  */
 
5188
_ACEOF
 
5189
cat confdefs.h >>conftest.$ac_ext
 
5190
cat >>conftest.$ac_ext <<_ACEOF
 
5191
/* end confdefs.h.  */
 
5192
 
 
5193
#include <stdio.h>
 
5194
#include <string.h>
 
5195
/* The string "%2$d %1$d", with dollar characters protected from the shell's
 
5196
   dollar expansion (possibly an autoconf bug).  */
 
5197
static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
 
5198
static char buf[100];
 
5199
int main ()
 
5200
{
 
5201
  sprintf (buf, format, 33, 55);
 
5202
  return (strcmp (buf, "55 33") != 0);
 
5203
}
 
5204
_ACEOF
 
5205
rm -f conftest$ac_exeext
 
5206
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5207
  (eval $ac_link) 2>&5
 
5208
  ac_status=$?
 
5209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5210
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5212
  (eval $ac_try) 2>&5
 
5213
  ac_status=$?
 
5214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5215
  (exit $ac_status); }; }; then
 
5216
  gt_cv_func_printf_posix=yes
 
5217
else
 
5218
  echo "$as_me: program exited with status $ac_status" >&5
 
5219
echo "$as_me: failed program was:" >&5
 
5220
sed 's/^/| /' conftest.$ac_ext >&5
 
5221
 
 
5222
( exit $ac_status )
 
5223
gt_cv_func_printf_posix=no
 
5224
fi
 
5225
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5226
fi
 
5227
 
 
5228
fi
 
5229
echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
 
5230
echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
 
5231
  case $gt_cv_func_printf_posix in
 
5232
    *yes)
 
5233
 
 
5234
cat >>confdefs.h <<\_ACEOF
 
5235
#define HAVE_POSIX_PRINTF 1
 
5236
_ACEOF
 
5237
 
 
5238
      ;;
 
5239
  esac
 
5240
 
 
5241
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
5242
# for constant arguments.  Useless!
 
5243
echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
5244
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
 
5245
if test "${ac_cv_working_alloca_h+set}" = set; then
 
5246
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5247
else
 
5248
  cat >conftest.$ac_ext <<_ACEOF
 
5249
/* confdefs.h.  */
 
5250
_ACEOF
 
5251
cat confdefs.h >>conftest.$ac_ext
 
5252
cat >>conftest.$ac_ext <<_ACEOF
 
5253
/* end confdefs.h.  */
 
5254
#include <alloca.h>
 
5255
int
 
5256
main ()
 
5257
{
 
5258
char *p = (char *) alloca (2 * sizeof (int));
 
5259
  ;
 
5260
  return 0;
 
5261
}
 
5262
_ACEOF
 
5263
rm -f conftest.$ac_objext conftest$ac_exeext
 
5264
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5265
  (eval $ac_link) 2>conftest.er1
 
5266
  ac_status=$?
 
5267
  grep -v '^ *+' conftest.er1 >conftest.err
 
5268
  rm -f conftest.er1
 
5269
  cat conftest.err >&5
 
5270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5271
  (exit $ac_status); } &&
 
5272
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5273
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5274
  (eval $ac_try) 2>&5
 
5275
  ac_status=$?
 
5276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5277
  (exit $ac_status); }; } &&
 
5278
         { ac_try='test -s conftest$ac_exeext'
 
5279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5280
  (eval $ac_try) 2>&5
 
5281
  ac_status=$?
 
5282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5283
  (exit $ac_status); }; }; then
 
5284
  ac_cv_working_alloca_h=yes
 
5285
else
 
5286
  echo "$as_me: failed program was:" >&5
 
5287
sed 's/^/| /' conftest.$ac_ext >&5
 
5288
 
 
5289
ac_cv_working_alloca_h=no
 
5290
fi
 
5291
rm -f conftest.err conftest.$ac_objext \
 
5292
      conftest$ac_exeext conftest.$ac_ext
 
5293
fi
 
5294
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
5295
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
 
5296
if test $ac_cv_working_alloca_h = yes; then
 
5297
 
 
5298
cat >>confdefs.h <<\_ACEOF
 
5299
#define HAVE_ALLOCA_H 1
 
5300
_ACEOF
 
5301
 
 
5302
fi
 
5303
 
 
5304
echo "$as_me:$LINENO: checking for alloca" >&5
 
5305
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
 
5306
if test "${ac_cv_func_alloca_works+set}" = set; then
 
5307
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5308
else
 
5309
  cat >conftest.$ac_ext <<_ACEOF
 
5310
/* confdefs.h.  */
 
5311
_ACEOF
 
5312
cat confdefs.h >>conftest.$ac_ext
 
5313
cat >>conftest.$ac_ext <<_ACEOF
 
5314
/* end confdefs.h.  */
 
5315
#ifdef __GNUC__
 
5316
# define alloca __builtin_alloca
 
5317
#else
 
5318
# ifdef _MSC_VER
 
5319
#  include <malloc.h>
 
5320
#  define alloca _alloca
 
5321
# else
 
5322
#  if HAVE_ALLOCA_H
 
5323
#   include <alloca.h>
 
5324
#  else
 
5325
#   ifdef _AIX
 
5326
 #pragma alloca
 
5327
#   else
 
5328
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
5329
char *alloca ();
 
5330
#    endif
 
5331
#   endif
 
5332
#  endif
 
5333
# endif
 
5334
#endif
 
5335
 
 
5336
int
 
5337
main ()
 
5338
{
 
5339
char *p = (char *) alloca (1);
 
5340
  ;
 
5341
  return 0;
 
5342
}
 
5343
_ACEOF
 
5344
rm -f conftest.$ac_objext conftest$ac_exeext
 
5345
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5346
  (eval $ac_link) 2>conftest.er1
 
5347
  ac_status=$?
 
5348
  grep -v '^ *+' conftest.er1 >conftest.err
 
5349
  rm -f conftest.er1
 
5350
  cat conftest.err >&5
 
5351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5352
  (exit $ac_status); } &&
 
5353
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5355
  (eval $ac_try) 2>&5
 
5356
  ac_status=$?
 
5357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5358
  (exit $ac_status); }; } &&
 
5359
         { ac_try='test -s conftest$ac_exeext'
 
5360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5361
  (eval $ac_try) 2>&5
 
5362
  ac_status=$?
 
5363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5364
  (exit $ac_status); }; }; then
 
5365
  ac_cv_func_alloca_works=yes
 
5366
else
 
5367
  echo "$as_me: failed program was:" >&5
 
5368
sed 's/^/| /' conftest.$ac_ext >&5
 
5369
 
 
5370
ac_cv_func_alloca_works=no
 
5371
fi
 
5372
rm -f conftest.err conftest.$ac_objext \
 
5373
      conftest$ac_exeext conftest.$ac_ext
 
5374
fi
 
5375
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
5376
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
5377
 
 
5378
if test $ac_cv_func_alloca_works = yes; then
 
5379
 
 
5380
cat >>confdefs.h <<\_ACEOF
 
5381
#define HAVE_ALLOCA 1
 
5382
_ACEOF
 
5383
 
 
5384
else
 
5385
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
5386
# that cause trouble.  Some versions do not even contain alloca or
 
5387
# contain a buggy version.  If you still want to use their alloca,
 
5388
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
5389
 
 
5390
ALLOCA=alloca.$ac_objext
 
5391
 
 
5392
cat >>confdefs.h <<\_ACEOF
 
5393
#define C_ALLOCA 1
 
5394
_ACEOF
 
5395
 
 
5396
 
 
5397
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
5398
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
 
5399
if test "${ac_cv_os_cray+set}" = set; then
 
5400
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5401
else
 
5402
  cat >conftest.$ac_ext <<_ACEOF
 
5403
/* confdefs.h.  */
 
5404
_ACEOF
 
5405
cat confdefs.h >>conftest.$ac_ext
 
5406
cat >>conftest.$ac_ext <<_ACEOF
 
5407
/* end confdefs.h.  */
 
5408
#if defined(CRAY) && ! defined(CRAY2)
 
5409
webecray
 
5410
#else
 
5411
wenotbecray
 
5412
#endif
 
5413
 
 
5414
_ACEOF
 
5415
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5416
  $EGREP "webecray" >/dev/null 2>&1; then
 
5417
  ac_cv_os_cray=yes
 
5418
else
 
5419
  ac_cv_os_cray=no
 
5420
fi
 
5421
rm -f conftest*
 
5422
 
 
5423
fi
 
5424
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
5425
echo "${ECHO_T}$ac_cv_os_cray" >&6
 
5426
if test $ac_cv_os_cray = yes; then
 
5427
  for ac_func in _getb67 GETB67 getb67; do
 
5428
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5429
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5430
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5431
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5433
else
 
5434
  cat >conftest.$ac_ext <<_ACEOF
 
5435
/* confdefs.h.  */
 
5436
_ACEOF
 
5437
cat confdefs.h >>conftest.$ac_ext
 
5438
cat >>conftest.$ac_ext <<_ACEOF
 
5439
/* end confdefs.h.  */
 
5440
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5441
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5442
#define $ac_func innocuous_$ac_func
 
5443
 
 
5444
/* System header to define __stub macros and hopefully few prototypes,
 
5445
    which can conflict with char $ac_func (); below.
 
5446
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5447
    <limits.h> exists even on freestanding compilers.  */
 
5448
 
 
5449
#ifdef __STDC__
 
5450
# include <limits.h>
 
5451
#else
 
5452
# include <assert.h>
 
5453
#endif
 
5454
 
 
5455
#undef $ac_func
 
5456
 
 
5457
/* Override any gcc2 internal prototype to avoid an error.  */
 
5458
#ifdef __cplusplus
 
5459
extern "C"
 
5460
{
 
5461
#endif
 
5462
/* We use char because int might match the return type of a gcc2
 
5463
   builtin and then its argument prototype would still apply.  */
 
5464
char $ac_func ();
 
5465
/* The GNU C library defines this for functions which it implements
 
5466
    to always fail with ENOSYS.  Some functions are actually named
 
5467
    something starting with __ and the normal name is an alias.  */
 
5468
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5469
choke me
 
5470
#else
 
5471
char (*f) () = $ac_func;
 
5472
#endif
 
5473
#ifdef __cplusplus
 
5474
}
 
5475
#endif
 
5476
 
 
5477
int
 
5478
main ()
 
5479
{
 
5480
return f != $ac_func;
 
5481
  ;
 
5482
  return 0;
 
5483
}
 
5484
_ACEOF
 
5485
rm -f conftest.$ac_objext conftest$ac_exeext
 
5486
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5487
  (eval $ac_link) 2>conftest.er1
 
5488
  ac_status=$?
 
5489
  grep -v '^ *+' conftest.er1 >conftest.err
 
5490
  rm -f conftest.er1
 
5491
  cat conftest.err >&5
 
5492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5493
  (exit $ac_status); } &&
 
5494
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5495
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5496
  (eval $ac_try) 2>&5
 
5497
  ac_status=$?
 
5498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5499
  (exit $ac_status); }; } &&
 
5500
         { ac_try='test -s conftest$ac_exeext'
 
5501
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5502
  (eval $ac_try) 2>&5
 
5503
  ac_status=$?
 
5504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5505
  (exit $ac_status); }; }; then
 
5506
  eval "$as_ac_var=yes"
 
5507
else
 
5508
  echo "$as_me: failed program was:" >&5
 
5509
sed 's/^/| /' conftest.$ac_ext >&5
 
5510
 
 
5511
eval "$as_ac_var=no"
 
5512
fi
 
5513
rm -f conftest.err conftest.$ac_objext \
 
5514
      conftest$ac_exeext conftest.$ac_ext
 
5515
fi
 
5516
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5517
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5518
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5519
 
 
5520
cat >>confdefs.h <<_ACEOF
 
5521
#define CRAY_STACKSEG_END $ac_func
 
5522
_ACEOF
 
5523
 
 
5524
    break
 
5525
fi
 
5526
 
 
5527
  done
 
5528
fi
 
5529
 
 
5530
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
5531
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
 
5532
if test "${ac_cv_c_stack_direction+set}" = set; then
 
5533
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5534
else
 
5535
  if test "$cross_compiling" = yes; then
 
5536
  ac_cv_c_stack_direction=0
 
5537
else
 
5538
  cat >conftest.$ac_ext <<_ACEOF
 
5539
/* confdefs.h.  */
 
5540
_ACEOF
 
5541
cat confdefs.h >>conftest.$ac_ext
 
5542
cat >>conftest.$ac_ext <<_ACEOF
 
5543
/* end confdefs.h.  */
 
5544
int
 
5545
find_stack_direction ()
 
5546
{
 
5547
  static char *addr = 0;
 
5548
  auto char dummy;
 
5549
  if (addr == 0)
 
5550
    {
 
5551
      addr = &dummy;
 
5552
      return find_stack_direction ();
 
5553
    }
 
5554
  else
 
5555
    return (&dummy > addr) ? 1 : -1;
 
5556
}
 
5557
 
 
5558
int
 
5559
main ()
 
5560
{
 
5561
  exit (find_stack_direction () < 0);
 
5562
}
 
5563
_ACEOF
 
5564
rm -f conftest$ac_exeext
 
5565
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5566
  (eval $ac_link) 2>&5
 
5567
  ac_status=$?
 
5568
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5569
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5571
  (eval $ac_try) 2>&5
 
5572
  ac_status=$?
 
5573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5574
  (exit $ac_status); }; }; then
 
5575
  ac_cv_c_stack_direction=1
 
5576
else
 
5577
  echo "$as_me: program exited with status $ac_status" >&5
 
5578
echo "$as_me: failed program was:" >&5
 
5579
sed 's/^/| /' conftest.$ac_ext >&5
 
5580
 
 
5581
( exit $ac_status )
 
5582
ac_cv_c_stack_direction=-1
 
5583
fi
 
5584
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5585
fi
 
5586
fi
 
5587
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
5588
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
 
5589
 
 
5590
cat >>confdefs.h <<_ACEOF
 
5591
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
5592
_ACEOF
 
5593
 
 
5594
 
 
5595
fi
 
5596
 
 
5597
 
 
5598
 
 
5599
for ac_header in stdlib.h unistd.h
 
5600
do
 
5601
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5602
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5603
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5604
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5605
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5607
fi
 
5608
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5609
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5610
else
 
5611
  # Is the header compilable?
 
5612
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5613
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5614
cat >conftest.$ac_ext <<_ACEOF
 
5615
/* confdefs.h.  */
 
5616
_ACEOF
 
5617
cat confdefs.h >>conftest.$ac_ext
 
5618
cat >>conftest.$ac_ext <<_ACEOF
 
5619
/* end confdefs.h.  */
 
5620
$ac_includes_default
 
5621
#include <$ac_header>
 
5622
_ACEOF
 
5623
rm -f conftest.$ac_objext
 
5624
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5625
  (eval $ac_compile) 2>conftest.er1
 
5626
  ac_status=$?
 
5627
  grep -v '^ *+' conftest.er1 >conftest.err
 
5628
  rm -f conftest.er1
 
5629
  cat conftest.err >&5
 
5630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5631
  (exit $ac_status); } &&
 
5632
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5633
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5634
  (eval $ac_try) 2>&5
 
5635
  ac_status=$?
 
5636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5637
  (exit $ac_status); }; } &&
 
5638
         { ac_try='test -s conftest.$ac_objext'
 
5639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5640
  (eval $ac_try) 2>&5
 
5641
  ac_status=$?
 
5642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5643
  (exit $ac_status); }; }; then
 
5644
  ac_header_compiler=yes
 
5645
else
 
5646
  echo "$as_me: failed program was:" >&5
 
5647
sed 's/^/| /' conftest.$ac_ext >&5
 
5648
 
 
5649
ac_header_compiler=no
 
5650
fi
 
5651
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5652
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5653
echo "${ECHO_T}$ac_header_compiler" >&6
 
5654
 
 
5655
# Is the header present?
 
5656
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5657
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5658
cat >conftest.$ac_ext <<_ACEOF
 
5659
/* confdefs.h.  */
 
5660
_ACEOF
 
5661
cat confdefs.h >>conftest.$ac_ext
 
5662
cat >>conftest.$ac_ext <<_ACEOF
 
5663
/* end confdefs.h.  */
 
5664
#include <$ac_header>
 
5665
_ACEOF
 
5666
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5667
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5668
  ac_status=$?
 
5669
  grep -v '^ *+' conftest.er1 >conftest.err
 
5670
  rm -f conftest.er1
 
5671
  cat conftest.err >&5
 
5672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5673
  (exit $ac_status); } >/dev/null; then
 
5674
  if test -s conftest.err; then
 
5675
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5676
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5677
  else
 
5678
    ac_cpp_err=
 
5679
  fi
 
5680
else
 
5681
  ac_cpp_err=yes
 
5682
fi
 
5683
if test -z "$ac_cpp_err"; then
 
5684
  ac_header_preproc=yes
 
5685
else
 
5686
  echo "$as_me: failed program was:" >&5
 
5687
sed 's/^/| /' conftest.$ac_ext >&5
 
5688
 
 
5689
  ac_header_preproc=no
 
5690
fi
 
5691
rm -f conftest.err conftest.$ac_ext
 
5692
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5693
echo "${ECHO_T}$ac_header_preproc" >&6
 
5694
 
 
5695
# So?  What about this header?
 
5696
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5697
  yes:no: )
 
5698
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5699
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5700
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5701
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5702
    ac_header_preproc=yes
 
5703
    ;;
 
5704
  no:yes:* )
 
5705
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5706
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5707
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5708
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5709
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5710
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5711
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5712
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5713
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5714
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5715
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5716
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5717
    (
 
5718
      cat <<\_ASBOX
 
5719
## ------------------------------------------ ##
 
5720
## Report this to the AC_PACKAGE_NAME lists.  ##
 
5721
## ------------------------------------------ ##
 
5722
_ASBOX
 
5723
    ) |
 
5724
      sed "s/^/$as_me: WARNING:     /" >&2
 
5725
    ;;
 
5726
esac
 
5727
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5728
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5729
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5730
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5731
else
 
5732
  eval "$as_ac_Header=\$ac_header_preproc"
 
5733
fi
 
5734
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5735
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5736
 
 
5737
fi
 
5738
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5739
  cat >>confdefs.h <<_ACEOF
 
5740
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5741
_ACEOF
 
5742
 
 
5743
fi
 
5744
 
 
5745
done
 
5746
 
 
5747
 
 
5748
for ac_func in getpagesize
 
5749
do
 
5750
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5751
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5752
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
5753
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
5754
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5755
else
 
5756
  cat >conftest.$ac_ext <<_ACEOF
 
5757
/* confdefs.h.  */
 
5758
_ACEOF
 
5759
cat confdefs.h >>conftest.$ac_ext
 
5760
cat >>conftest.$ac_ext <<_ACEOF
 
5761
/* end confdefs.h.  */
 
5762
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5763
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5764
#define $ac_func innocuous_$ac_func
 
5765
 
 
5766
/* System header to define __stub macros and hopefully few prototypes,
 
5767
    which can conflict with char $ac_func (); below.
 
5768
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5769
    <limits.h> exists even on freestanding compilers.  */
 
5770
 
 
5771
#ifdef __STDC__
 
5772
# include <limits.h>
 
5773
#else
 
5774
# include <assert.h>
 
5775
#endif
 
5776
 
 
5777
#undef $ac_func
 
5778
 
 
5779
/* Override any gcc2 internal prototype to avoid an error.  */
 
5780
#ifdef __cplusplus
 
5781
extern "C"
 
5782
{
 
5783
#endif
 
5784
/* We use char because int might match the return type of a gcc2
 
5785
   builtin and then its argument prototype would still apply.  */
 
5786
char $ac_func ();
 
5787
/* The GNU C library defines this for functions which it implements
 
5788
    to always fail with ENOSYS.  Some functions are actually named
 
5789
    something starting with __ and the normal name is an alias.  */
 
5790
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
5791
choke me
 
5792
#else
 
5793
char (*f) () = $ac_func;
 
5794
#endif
 
5795
#ifdef __cplusplus
 
5796
}
 
5797
#endif
 
5798
 
 
5799
int
 
5800
main ()
 
5801
{
 
5802
return f != $ac_func;
 
5803
  ;
 
5804
  return 0;
 
5805
}
 
5806
_ACEOF
 
5807
rm -f conftest.$ac_objext conftest$ac_exeext
 
5808
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5809
  (eval $ac_link) 2>conftest.er1
 
5810
  ac_status=$?
 
5811
  grep -v '^ *+' conftest.er1 >conftest.err
 
5812
  rm -f conftest.er1
 
5813
  cat conftest.err >&5
 
5814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5815
  (exit $ac_status); } &&
 
5816
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5818
  (eval $ac_try) 2>&5
 
5819
  ac_status=$?
 
5820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5821
  (exit $ac_status); }; } &&
 
5822
         { ac_try='test -s conftest$ac_exeext'
 
5823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5824
  (eval $ac_try) 2>&5
 
5825
  ac_status=$?
 
5826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5827
  (exit $ac_status); }; }; then
 
5828
  eval "$as_ac_var=yes"
 
5829
else
 
5830
  echo "$as_me: failed program was:" >&5
 
5831
sed 's/^/| /' conftest.$ac_ext >&5
 
5832
 
 
5833
eval "$as_ac_var=no"
 
5834
fi
 
5835
rm -f conftest.err conftest.$ac_objext \
 
5836
      conftest$ac_exeext conftest.$ac_ext
 
5837
fi
 
5838
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
5839
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
5840
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5841
  cat >>confdefs.h <<_ACEOF
 
5842
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5843
_ACEOF
 
5844
 
 
5845
fi
 
5846
done
 
5847
 
 
5848
echo "$as_me:$LINENO: checking for working mmap" >&5
 
5849
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
 
5850
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
 
5851
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5852
else
 
5853
  if test "$cross_compiling" = yes; then
 
5854
  ac_cv_func_mmap_fixed_mapped=no
 
5855
else
 
5856
  cat >conftest.$ac_ext <<_ACEOF
 
5857
/* confdefs.h.  */
 
5858
_ACEOF
 
5859
cat confdefs.h >>conftest.$ac_ext
 
5860
cat >>conftest.$ac_ext <<_ACEOF
 
5861
/* end confdefs.h.  */
 
5862
$ac_includes_default
 
5863
/* malloc might have been renamed as rpl_malloc. */
 
5864
#undef malloc
 
5865
 
 
5866
/* Thanks to Mike Haertel and Jim Avera for this test.
 
5867
   Here is a matrix of mmap possibilities:
 
5868
        mmap private not fixed
 
5869
        mmap private fixed at somewhere currently unmapped
 
5870
        mmap private fixed at somewhere already mapped
 
5871
        mmap shared not fixed
 
5872
        mmap shared fixed at somewhere currently unmapped
 
5873
        mmap shared fixed at somewhere already mapped
 
5874
   For private mappings, we should verify that changes cannot be read()
 
5875
   back from the file, nor mmap's back from the file at a different
 
5876
   address.  (There have been systems where private was not correctly
 
5877
   implemented like the infamous i386 svr4.0, and systems where the
 
5878
   VM page cache was not coherent with the file system buffer cache
 
5879
   like early versions of FreeBSD and possibly contemporary NetBSD.)
 
5880
   For shared mappings, we should conversely verify that changes get
 
5881
   propagated back to all the places they're supposed to be.
 
5882
 
 
5883
   Grep wants private fixed already mapped.
 
5884
   The main things grep needs to know about mmap are:
 
5885
   * does it exist and is it safe to write into the mmap'd area
 
5886
   * how to use it (BSD variants)  */
 
5887
 
 
5888
#include <fcntl.h>
 
5889
#include <sys/mman.h>
 
5890
 
 
5891
#if !STDC_HEADERS && !HAVE_STDLIB_H
 
5892
char *malloc ();
 
5893
#endif
 
5894
 
 
5895
/* This mess was copied from the GNU getpagesize.h.  */
 
5896
#if !HAVE_GETPAGESIZE
 
5897
/* Assume that all systems that can run configure have sys/param.h.  */
 
5898
# if !HAVE_SYS_PARAM_H
 
5899
#  define HAVE_SYS_PARAM_H 1
 
5900
# endif
 
5901
 
 
5902
# ifdef _SC_PAGESIZE
 
5903
#  define getpagesize() sysconf(_SC_PAGESIZE)
 
5904
# else /* no _SC_PAGESIZE */
 
5905
#  if HAVE_SYS_PARAM_H
 
5906
#   include <sys/param.h>
 
5907
#   ifdef EXEC_PAGESIZE
 
5908
#    define getpagesize() EXEC_PAGESIZE
 
5909
#   else /* no EXEC_PAGESIZE */
 
5910
#    ifdef NBPG
 
5911
#     define getpagesize() NBPG * CLSIZE
 
5912
#     ifndef CLSIZE
 
5913
#      define CLSIZE 1
 
5914
#     endif /* no CLSIZE */
 
5915
#    else /* no NBPG */
 
5916
#     ifdef NBPC
 
5917
#      define getpagesize() NBPC
 
5918
#     else /* no NBPC */
 
5919
#      ifdef PAGESIZE
 
5920
#       define getpagesize() PAGESIZE
 
5921
#      endif /* PAGESIZE */
 
5922
#     endif /* no NBPC */
 
5923
#    endif /* no NBPG */
 
5924
#   endif /* no EXEC_PAGESIZE */
 
5925
#  else /* no HAVE_SYS_PARAM_H */
 
5926
#   define getpagesize() 8192   /* punt totally */
 
5927
#  endif /* no HAVE_SYS_PARAM_H */
 
5928
# endif /* no _SC_PAGESIZE */
 
5929
 
 
5930
#endif /* no HAVE_GETPAGESIZE */
 
5931
 
 
5932
int
 
5933
main ()
 
5934
{
 
5935
  char *data, *data2, *data3;
 
5936
  int i, pagesize;
 
5937
  int fd;
 
5938
 
 
5939
  pagesize = getpagesize ();
 
5940
 
 
5941
  /* First, make a file with some known garbage in it. */
 
5942
  data = (char *) malloc (pagesize);
 
5943
  if (!data)
 
5944
    exit (1);
 
5945
  for (i = 0; i < pagesize; ++i)
 
5946
    *(data + i) = rand ();
 
5947
  umask (0);
 
5948
  fd = creat ("conftest.mmap", 0600);
 
5949
  if (fd < 0)
 
5950
    exit (1);
 
5951
  if (write (fd, data, pagesize) != pagesize)
 
5952
    exit (1);
 
5953
  close (fd);
 
5954
 
 
5955
  /* Next, try to mmap the file at a fixed address which already has
 
5956
     something else allocated at it.  If we can, also make sure that
 
5957
     we see the same garbage.  */
 
5958
  fd = open ("conftest.mmap", O_RDWR);
 
5959
  if (fd < 0)
 
5960
    exit (1);
 
5961
  data2 = (char *) malloc (2 * pagesize);
 
5962
  if (!data2)
 
5963
    exit (1);
 
5964
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
 
5965
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
 
5966
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
 
5967
    exit (1);
 
5968
  for (i = 0; i < pagesize; ++i)
 
5969
    if (*(data + i) != *(data2 + i))
 
5970
      exit (1);
 
5971
 
 
5972
  /* Finally, make sure that changes to the mapped area do not
 
5973
     percolate back to the file as seen by read().  (This is a bug on
 
5974
     some variants of i386 svr4.0.)  */
 
5975
  for (i = 0; i < pagesize; ++i)
 
5976
    *(data2 + i) = *(data2 + i) + 1;
 
5977
  data3 = (char *) malloc (pagesize);
 
5978
  if (!data3)
 
5979
    exit (1);
 
5980
  if (read (fd, data3, pagesize) != pagesize)
 
5981
    exit (1);
 
5982
  for (i = 0; i < pagesize; ++i)
 
5983
    if (*(data + i) != *(data3 + i))
 
5984
      exit (1);
 
5985
  close (fd);
 
5986
  exit (0);
 
5987
}
 
5988
_ACEOF
 
5989
rm -f conftest$ac_exeext
 
5990
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5991
  (eval $ac_link) 2>&5
 
5992
  ac_status=$?
 
5993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5994
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5995
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5996
  (eval $ac_try) 2>&5
 
5997
  ac_status=$?
 
5998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5999
  (exit $ac_status); }; }; then
 
6000
  ac_cv_func_mmap_fixed_mapped=yes
 
6001
else
 
6002
  echo "$as_me: program exited with status $ac_status" >&5
 
6003
echo "$as_me: failed program was:" >&5
 
6004
sed 's/^/| /' conftest.$ac_ext >&5
 
6005
 
 
6006
( exit $ac_status )
 
6007
ac_cv_func_mmap_fixed_mapped=no
 
6008
fi
 
6009
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6010
fi
 
6011
fi
 
6012
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
 
6013
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
 
6014
if test $ac_cv_func_mmap_fixed_mapped = yes; then
 
6015
 
 
6016
cat >>confdefs.h <<\_ACEOF
 
6017
#define HAVE_MMAP 1
 
6018
_ACEOF
 
6019
 
 
6020
fi
 
6021
rm -f conftest.mmap
 
6022
 
 
6023
 
 
6024
    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
 
6025
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
 
6026
if test "${ac_cv_gnu_library_2_1+set}" = set; then
 
6027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6028
else
 
6029
  cat >conftest.$ac_ext <<_ACEOF
 
6030
/* confdefs.h.  */
 
6031
_ACEOF
 
6032
cat confdefs.h >>conftest.$ac_ext
 
6033
cat >>conftest.$ac_ext <<_ACEOF
 
6034
/* end confdefs.h.  */
 
6035
 
 
6036
#include <features.h>
 
6037
#ifdef __GNU_LIBRARY__
 
6038
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
 
6039
  Lucky GNU user
 
6040
 #endif
 
6041
#endif
 
6042
 
 
6043
_ACEOF
 
6044
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6045
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
 
6046
  ac_cv_gnu_library_2_1=yes
 
6047
else
 
6048
  ac_cv_gnu_library_2_1=no
 
6049
fi
 
6050
rm -f conftest*
 
6051
 
 
6052
 
 
6053
 
 
6054
fi
 
6055
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
 
6056
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
 
6057
 
 
6058
    GLIBC21="$ac_cv_gnu_library_2_1"
 
6059
 
 
6060
 
 
6061
 
 
6062
 
 
6063
  echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
 
6064
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
 
6065
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
 
6066
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6067
else
 
6068
 
 
6069
      if test "$cross_compiling" = yes; then
 
6070
 
 
6071
          # Guess based on the CPU.
 
6072
          case "$host_cpu" in
 
6073
            alpha* | i3456786 | m68k | s390*)
 
6074
              gt_cv_int_divbyzero_sigfpe="guessing yes";;
 
6075
            *)
 
6076
              gt_cv_int_divbyzero_sigfpe="guessing no";;
 
6077
          esac
 
6078
 
 
6079
else
 
6080
  cat >conftest.$ac_ext <<_ACEOF
 
6081
/* confdefs.h.  */
 
6082
_ACEOF
 
6083
cat confdefs.h >>conftest.$ac_ext
 
6084
cat >>conftest.$ac_ext <<_ACEOF
 
6085
/* end confdefs.h.  */
 
6086
 
 
6087
#include <stdlib.h>
 
6088
#include <signal.h>
 
6089
 
 
6090
static void
 
6091
#ifdef __cplusplus
 
6092
sigfpe_handler (int sig)
 
6093
#else
 
6094
sigfpe_handler (sig) int sig;
 
6095
#endif
 
6096
{
 
6097
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
 
6098
  exit (sig != SIGFPE);
 
6099
}
 
6100
 
 
6101
int x = 1;
 
6102
int y = 0;
 
6103
int z;
 
6104
int nan;
 
6105
 
 
6106
int main ()
 
6107
{
 
6108
  signal (SIGFPE, sigfpe_handler);
 
6109
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
 
6110
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
 
6111
  signal (SIGTRAP, sigfpe_handler);
 
6112
#endif
 
6113
/* Linux/SPARC yields signal SIGILL.  */
 
6114
#if defined (__sparc__) && defined (__linux__)
 
6115
  signal (SIGILL, sigfpe_handler);
 
6116
#endif
 
6117
 
 
6118
  z = x / y;
 
6119
  nan = y / y;
 
6120
  exit (1);
 
6121
}
 
6122
 
 
6123
_ACEOF
 
6124
rm -f conftest$ac_exeext
 
6125
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6126
  (eval $ac_link) 2>&5
 
6127
  ac_status=$?
 
6128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6129
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6130
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6131
  (eval $ac_try) 2>&5
 
6132
  ac_status=$?
 
6133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6134
  (exit $ac_status); }; }; then
 
6135
  gt_cv_int_divbyzero_sigfpe=yes
 
6136
else
 
6137
  echo "$as_me: program exited with status $ac_status" >&5
 
6138
echo "$as_me: failed program was:" >&5
 
6139
sed 's/^/| /' conftest.$ac_ext >&5
 
6140
 
 
6141
( exit $ac_status )
 
6142
gt_cv_int_divbyzero_sigfpe=no
 
6143
fi
 
6144
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6145
fi
 
6146
 
 
6147
fi
 
6148
echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
 
6149
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
 
6150
  case "$gt_cv_int_divbyzero_sigfpe" in
 
6151
    *yes) value=1;;
 
6152
    *) value=0;;
 
6153
  esac
 
6154
 
 
6155
cat >>confdefs.h <<_ACEOF
 
6156
#define INTDIV0_RAISES_SIGFPE $value
 
6157
_ACEOF
 
6158
 
 
6159
 
 
6160
 
 
6161
  echo "$as_me:$LINENO: checking for unsigned long long" >&5
 
6162
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
 
6163
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
 
6164
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6165
else
 
6166
  cat >conftest.$ac_ext <<_ACEOF
 
6167
/* confdefs.h.  */
 
6168
_ACEOF
 
6169
cat confdefs.h >>conftest.$ac_ext
 
6170
cat >>conftest.$ac_ext <<_ACEOF
 
6171
/* end confdefs.h.  */
 
6172
unsigned long long ull = 1ULL; int i = 63;
 
6173
int
 
6174
main ()
 
6175
{
 
6176
unsigned long long ullmax = (unsigned long long) -1;
 
6177
     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
 
6178
  ;
 
6179
  return 0;
 
6180
}
 
6181
_ACEOF
 
6182
rm -f conftest.$ac_objext conftest$ac_exeext
 
6183
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6184
  (eval $ac_link) 2>conftest.er1
 
6185
  ac_status=$?
 
6186
  grep -v '^ *+' conftest.er1 >conftest.err
 
6187
  rm -f conftest.er1
 
6188
  cat conftest.err >&5
 
6189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6190
  (exit $ac_status); } &&
 
6191
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6192
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6193
  (eval $ac_try) 2>&5
 
6194
  ac_status=$?
 
6195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6196
  (exit $ac_status); }; } &&
 
6197
         { ac_try='test -s conftest$ac_exeext'
 
6198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6199
  (eval $ac_try) 2>&5
 
6200
  ac_status=$?
 
6201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6202
  (exit $ac_status); }; }; then
 
6203
  ac_cv_type_unsigned_long_long=yes
 
6204
else
 
6205
  echo "$as_me: failed program was:" >&5
 
6206
sed 's/^/| /' conftest.$ac_ext >&5
 
6207
 
 
6208
ac_cv_type_unsigned_long_long=no
 
6209
fi
 
6210
rm -f conftest.err conftest.$ac_objext \
 
6211
      conftest$ac_exeext conftest.$ac_ext
 
6212
fi
 
6213
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
 
6214
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
 
6215
  if test $ac_cv_type_unsigned_long_long = yes; then
 
6216
 
 
6217
cat >>confdefs.h <<\_ACEOF
 
6218
#define HAVE_UNSIGNED_LONG_LONG 1
 
6219
_ACEOF
 
6220
 
 
6221
  fi
 
6222
 
 
6223
 
 
6224
 
 
6225
 
 
6226
  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
 
6227
 
 
6228
    test $ac_cv_type_unsigned_long_long = yes \
 
6229
      && ac_type='unsigned long long' \
 
6230
      || ac_type='unsigned long'
 
6231
 
 
6232
cat >>confdefs.h <<_ACEOF
 
6233
#define uintmax_t $ac_type
 
6234
_ACEOF
 
6235
 
 
6236
  else
 
6237
 
 
6238
cat >>confdefs.h <<\_ACEOF
 
6239
#define HAVE_UINTMAX_T 1
 
6240
_ACEOF
 
6241
 
 
6242
  fi
 
6243
 
 
6244
 
 
6245
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
 
6246
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
 
6247
if test "${gt_cv_header_inttypes_h+set}" = set; then
 
6248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6249
else
 
6250
 
 
6251
    cat >conftest.$ac_ext <<_ACEOF
 
6252
/* confdefs.h.  */
 
6253
_ACEOF
 
6254
cat confdefs.h >>conftest.$ac_ext
 
6255
cat >>conftest.$ac_ext <<_ACEOF
 
6256
/* end confdefs.h.  */
 
6257
#include <sys/types.h>
 
6258
#include <inttypes.h>
 
6259
int
 
6260
main ()
 
6261
{
 
6262
 
 
6263
  ;
 
6264
  return 0;
 
6265
}
 
6266
_ACEOF
 
6267
rm -f conftest.$ac_objext
 
6268
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6269
  (eval $ac_compile) 2>conftest.er1
 
6270
  ac_status=$?
 
6271
  grep -v '^ *+' conftest.er1 >conftest.err
 
6272
  rm -f conftest.er1
 
6273
  cat conftest.err >&5
 
6274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6275
  (exit $ac_status); } &&
 
6276
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6277
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6278
  (eval $ac_try) 2>&5
 
6279
  ac_status=$?
 
6280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6281
  (exit $ac_status); }; } &&
 
6282
         { ac_try='test -s conftest.$ac_objext'
 
6283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6284
  (eval $ac_try) 2>&5
 
6285
  ac_status=$?
 
6286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6287
  (exit $ac_status); }; }; then
 
6288
  gt_cv_header_inttypes_h=yes
 
6289
else
 
6290
  echo "$as_me: failed program was:" >&5
 
6291
sed 's/^/| /' conftest.$ac_ext >&5
 
6292
 
 
6293
gt_cv_header_inttypes_h=no
 
6294
fi
 
6295
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6296
 
 
6297
fi
 
6298
echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
 
6299
echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
 
6300
  if test $gt_cv_header_inttypes_h = yes; then
 
6301
 
 
6302
cat >>confdefs.h <<_ACEOF
 
6303
#define HAVE_INTTYPES_H 1
 
6304
_ACEOF
 
6305
 
 
6306
  fi
 
6307
 
 
6308
 
 
6309
 
 
6310
  if test $gt_cv_header_inttypes_h = yes; then
 
6311
    echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
 
6312
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
 
6313
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
 
6314
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6315
else
 
6316
 
 
6317
        cat >conftest.$ac_ext <<_ACEOF
 
6318
/* confdefs.h.  */
 
6319
_ACEOF
 
6320
cat confdefs.h >>conftest.$ac_ext
 
6321
cat >>conftest.$ac_ext <<_ACEOF
 
6322
/* end confdefs.h.  */
 
6323
#include <inttypes.h>
 
6324
#ifdef PRId32
 
6325
char *p = PRId32;
 
6326
#endif
 
6327
 
 
6328
int
 
6329
main ()
 
6330
{
 
6331
 
 
6332
  ;
 
6333
  return 0;
 
6334
}
 
6335
_ACEOF
 
6336
rm -f conftest.$ac_objext
 
6337
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6338
  (eval $ac_compile) 2>conftest.er1
 
6339
  ac_status=$?
 
6340
  grep -v '^ *+' conftest.er1 >conftest.err
 
6341
  rm -f conftest.er1
 
6342
  cat conftest.err >&5
 
6343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6344
  (exit $ac_status); } &&
 
6345
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6346
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6347
  (eval $ac_try) 2>&5
 
6348
  ac_status=$?
 
6349
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6350
  (exit $ac_status); }; } &&
 
6351
         { ac_try='test -s conftest.$ac_objext'
 
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); }; }; then
 
6357
  gt_cv_inttypes_pri_broken=no
 
6358
else
 
6359
  echo "$as_me: failed program was:" >&5
 
6360
sed 's/^/| /' conftest.$ac_ext >&5
 
6361
 
 
6362
gt_cv_inttypes_pri_broken=yes
 
6363
fi
 
6364
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6365
 
 
6366
fi
 
6367
echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
 
6368
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
 
6369
  fi
 
6370
  if test "$gt_cv_inttypes_pri_broken" = yes; then
 
6371
 
 
6372
cat >>confdefs.h <<_ACEOF
 
6373
#define PRI_MACROS_BROKEN 1
 
6374
_ACEOF
 
6375
 
 
6376
  fi
 
6377
 
 
6378
 
 
6379
 
 
6380
for ac_header in stdint.h
 
6381
do
 
6382
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6383
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6384
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6385
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6386
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6387
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6388
fi
 
6389
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6390
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6391
else
 
6392
  # Is the header compilable?
 
6393
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6394
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6395
cat >conftest.$ac_ext <<_ACEOF
 
6396
/* confdefs.h.  */
 
6397
_ACEOF
 
6398
cat confdefs.h >>conftest.$ac_ext
 
6399
cat >>conftest.$ac_ext <<_ACEOF
 
6400
/* end confdefs.h.  */
 
6401
$ac_includes_default
 
6402
#include <$ac_header>
 
6403
_ACEOF
 
6404
rm -f conftest.$ac_objext
 
6405
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6406
  (eval $ac_compile) 2>conftest.er1
 
6407
  ac_status=$?
 
6408
  grep -v '^ *+' conftest.er1 >conftest.err
 
6409
  rm -f conftest.er1
 
6410
  cat conftest.err >&5
 
6411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6412
  (exit $ac_status); } &&
 
6413
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6415
  (eval $ac_try) 2>&5
 
6416
  ac_status=$?
 
6417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6418
  (exit $ac_status); }; } &&
 
6419
         { ac_try='test -s conftest.$ac_objext'
 
6420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6421
  (eval $ac_try) 2>&5
 
6422
  ac_status=$?
 
6423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6424
  (exit $ac_status); }; }; then
 
6425
  ac_header_compiler=yes
 
6426
else
 
6427
  echo "$as_me: failed program was:" >&5
 
6428
sed 's/^/| /' conftest.$ac_ext >&5
 
6429
 
 
6430
ac_header_compiler=no
 
6431
fi
 
6432
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6433
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6434
echo "${ECHO_T}$ac_header_compiler" >&6
 
6435
 
 
6436
# Is the header present?
 
6437
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6438
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6439
cat >conftest.$ac_ext <<_ACEOF
 
6440
/* confdefs.h.  */
 
6441
_ACEOF
 
6442
cat confdefs.h >>conftest.$ac_ext
 
6443
cat >>conftest.$ac_ext <<_ACEOF
 
6444
/* end confdefs.h.  */
 
6445
#include <$ac_header>
 
6446
_ACEOF
 
6447
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6448
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6449
  ac_status=$?
 
6450
  grep -v '^ *+' conftest.er1 >conftest.err
 
6451
  rm -f conftest.er1
 
6452
  cat conftest.err >&5
 
6453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6454
  (exit $ac_status); } >/dev/null; then
 
6455
  if test -s conftest.err; then
 
6456
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6457
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6458
  else
 
6459
    ac_cpp_err=
 
6460
  fi
 
6461
else
 
6462
  ac_cpp_err=yes
 
6463
fi
 
6464
if test -z "$ac_cpp_err"; then
 
6465
  ac_header_preproc=yes
 
6466
else
 
6467
  echo "$as_me: failed program was:" >&5
 
6468
sed 's/^/| /' conftest.$ac_ext >&5
 
6469
 
 
6470
  ac_header_preproc=no
 
6471
fi
 
6472
rm -f conftest.err conftest.$ac_ext
 
6473
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6474
echo "${ECHO_T}$ac_header_preproc" >&6
 
6475
 
 
6476
# So?  What about this header?
 
6477
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6478
  yes:no: )
 
6479
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6480
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6481
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6482
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6483
    ac_header_preproc=yes
 
6484
    ;;
 
6485
  no:yes:* )
 
6486
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6487
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6488
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6489
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6490
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6491
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6492
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6493
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6494
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6495
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6496
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6497
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6498
    (
 
6499
      cat <<\_ASBOX
 
6500
## ------------------------------------------ ##
 
6501
## Report this to the AC_PACKAGE_NAME lists.  ##
 
6502
## ------------------------------------------ ##
 
6503
_ASBOX
 
6504
    ) |
 
6505
      sed "s/^/$as_me: WARNING:     /" >&2
 
6506
    ;;
 
6507
esac
 
6508
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6509
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6510
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6511
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6512
else
 
6513
  eval "$as_ac_Header=\$ac_header_preproc"
 
6514
fi
 
6515
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6516
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6517
 
 
6518
fi
 
6519
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6520
  cat >>confdefs.h <<_ACEOF
 
6521
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6522
_ACEOF
 
6523
 
 
6524
fi
 
6525
 
 
6526
done
 
6527
 
 
6528
    echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
 
6529
echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
 
6530
  result=
 
6531
  cat >conftest.$ac_ext <<_ACEOF
 
6532
/* confdefs.h.  */
 
6533
_ACEOF
 
6534
cat confdefs.h >>conftest.$ac_ext
 
6535
cat >>conftest.$ac_ext <<_ACEOF
 
6536
/* end confdefs.h.  */
 
6537
 
 
6538
#include <limits.h>
 
6539
#if HAVE_STDINT_H
 
6540
#include <stdint.h>
 
6541
#endif
 
6542
#ifdef SIZE_MAX
 
6543
Found it
 
6544
#endif
 
6545
 
 
6546
_ACEOF
 
6547
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6548
  $EGREP "Found it" >/dev/null 2>&1; then
 
6549
  result=yes
 
6550
fi
 
6551
rm -f conftest*
 
6552
 
 
6553
  if test -z "$result"; then
 
6554
                    if test "$cross_compiling" = yes; then
 
6555
  # Depending upon the size, compute the lo and hi bounds.
 
6556
cat >conftest.$ac_ext <<_ACEOF
 
6557
/* confdefs.h.  */
 
6558
_ACEOF
 
6559
cat confdefs.h >>conftest.$ac_ext
 
6560
cat >>conftest.$ac_ext <<_ACEOF
 
6561
/* end confdefs.h.  */
 
6562
#include <stddef.h>
 
6563
int
 
6564
main ()
 
6565
{
 
6566
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
 
6567
test_array [0] = 0
 
6568
 
 
6569
  ;
 
6570
  return 0;
 
6571
}
 
6572
_ACEOF
 
6573
rm -f conftest.$ac_objext
 
6574
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6575
  (eval $ac_compile) 2>conftest.er1
 
6576
  ac_status=$?
 
6577
  grep -v '^ *+' conftest.er1 >conftest.err
 
6578
  rm -f conftest.er1
 
6579
  cat conftest.err >&5
 
6580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6581
  (exit $ac_status); } &&
 
6582
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6584
  (eval $ac_try) 2>&5
 
6585
  ac_status=$?
 
6586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6587
  (exit $ac_status); }; } &&
 
6588
         { ac_try='test -s conftest.$ac_objext'
 
6589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6590
  (eval $ac_try) 2>&5
 
6591
  ac_status=$?
 
6592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6593
  (exit $ac_status); }; }; then
 
6594
  ac_lo=0 ac_mid=0
 
6595
  while :; do
 
6596
    cat >conftest.$ac_ext <<_ACEOF
 
6597
/* confdefs.h.  */
 
6598
_ACEOF
 
6599
cat confdefs.h >>conftest.$ac_ext
 
6600
cat >>conftest.$ac_ext <<_ACEOF
 
6601
/* end confdefs.h.  */
 
6602
#include <stddef.h>
 
6603
int
 
6604
main ()
 
6605
{
 
6606
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
 
6607
test_array [0] = 0
 
6608
 
 
6609
  ;
 
6610
  return 0;
 
6611
}
 
6612
_ACEOF
 
6613
rm -f conftest.$ac_objext
 
6614
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6615
  (eval $ac_compile) 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); } &&
 
6622
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6624
  (eval $ac_try) 2>&5
 
6625
  ac_status=$?
 
6626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6627
  (exit $ac_status); }; } &&
 
6628
         { ac_try='test -s conftest.$ac_objext'
 
6629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6630
  (eval $ac_try) 2>&5
 
6631
  ac_status=$?
 
6632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6633
  (exit $ac_status); }; }; then
 
6634
  ac_hi=$ac_mid; break
 
6635
else
 
6636
  echo "$as_me: failed program was:" >&5
 
6637
sed 's/^/| /' conftest.$ac_ext >&5
 
6638
 
 
6639
ac_lo=`expr $ac_mid + 1`
 
6640
                    if test $ac_lo -le $ac_mid; then
 
6641
                      ac_lo= ac_hi=
 
6642
                      break
 
6643
                    fi
 
6644
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
6645
fi
 
6646
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6647
  done
 
6648
else
 
6649
  echo "$as_me: failed program was:" >&5
 
6650
sed 's/^/| /' conftest.$ac_ext >&5
 
6651
 
 
6652
cat >conftest.$ac_ext <<_ACEOF
 
6653
/* confdefs.h.  */
 
6654
_ACEOF
 
6655
cat confdefs.h >>conftest.$ac_ext
 
6656
cat >>conftest.$ac_ext <<_ACEOF
 
6657
/* end confdefs.h.  */
 
6658
#include <stddef.h>
 
6659
int
 
6660
main ()
 
6661
{
 
6662
static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
 
6663
test_array [0] = 0
 
6664
 
 
6665
  ;
 
6666
  return 0;
 
6667
}
 
6668
_ACEOF
 
6669
rm -f conftest.$ac_objext
 
6670
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6671
  (eval $ac_compile) 2>conftest.er1
 
6672
  ac_status=$?
 
6673
  grep -v '^ *+' conftest.er1 >conftest.err
 
6674
  rm -f conftest.er1
 
6675
  cat conftest.err >&5
 
6676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6677
  (exit $ac_status); } &&
 
6678
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6680
  (eval $ac_try) 2>&5
 
6681
  ac_status=$?
 
6682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6683
  (exit $ac_status); }; } &&
 
6684
         { ac_try='test -s conftest.$ac_objext'
 
6685
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6686
  (eval $ac_try) 2>&5
 
6687
  ac_status=$?
 
6688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6689
  (exit $ac_status); }; }; then
 
6690
  ac_hi=-1 ac_mid=-1
 
6691
  while :; do
 
6692
    cat >conftest.$ac_ext <<_ACEOF
 
6693
/* confdefs.h.  */
 
6694
_ACEOF
 
6695
cat confdefs.h >>conftest.$ac_ext
 
6696
cat >>conftest.$ac_ext <<_ACEOF
 
6697
/* end confdefs.h.  */
 
6698
#include <stddef.h>
 
6699
int
 
6700
main ()
 
6701
{
 
6702
static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
 
6703
test_array [0] = 0
 
6704
 
 
6705
  ;
 
6706
  return 0;
 
6707
}
 
6708
_ACEOF
 
6709
rm -f conftest.$ac_objext
 
6710
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6711
  (eval $ac_compile) 2>conftest.er1
 
6712
  ac_status=$?
 
6713
  grep -v '^ *+' conftest.er1 >conftest.err
 
6714
  rm -f conftest.er1
 
6715
  cat conftest.err >&5
 
6716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6717
  (exit $ac_status); } &&
 
6718
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6719
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6720
  (eval $ac_try) 2>&5
 
6721
  ac_status=$?
 
6722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6723
  (exit $ac_status); }; } &&
 
6724
         { ac_try='test -s conftest.$ac_objext'
 
6725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6726
  (eval $ac_try) 2>&5
 
6727
  ac_status=$?
 
6728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6729
  (exit $ac_status); }; }; then
 
6730
  ac_lo=$ac_mid; break
 
6731
else
 
6732
  echo "$as_me: failed program was:" >&5
 
6733
sed 's/^/| /' conftest.$ac_ext >&5
 
6734
 
 
6735
ac_hi=`expr '(' $ac_mid ')' - 1`
 
6736
                       if test $ac_mid -le $ac_hi; then
 
6737
                         ac_lo= ac_hi=
 
6738
                         break
 
6739
                       fi
 
6740
                       ac_mid=`expr 2 '*' $ac_mid`
 
6741
fi
 
6742
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6743
  done
 
6744
else
 
6745
  echo "$as_me: failed program was:" >&5
 
6746
sed 's/^/| /' conftest.$ac_ext >&5
 
6747
 
 
6748
ac_lo= ac_hi=
 
6749
fi
 
6750
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6751
fi
 
6752
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6753
# Binary search between lo and hi bounds.
 
6754
while test "x$ac_lo" != "x$ac_hi"; do
 
6755
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
6756
  cat >conftest.$ac_ext <<_ACEOF
 
6757
/* confdefs.h.  */
 
6758
_ACEOF
 
6759
cat confdefs.h >>conftest.$ac_ext
 
6760
cat >>conftest.$ac_ext <<_ACEOF
 
6761
/* end confdefs.h.  */
 
6762
#include <stddef.h>
 
6763
int
 
6764
main ()
 
6765
{
 
6766
static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
 
6767
test_array [0] = 0
 
6768
 
 
6769
  ;
 
6770
  return 0;
 
6771
}
 
6772
_ACEOF
 
6773
rm -f conftest.$ac_objext
 
6774
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6775
  (eval $ac_compile) 2>conftest.er1
 
6776
  ac_status=$?
 
6777
  grep -v '^ *+' conftest.er1 >conftest.err
 
6778
  rm -f conftest.er1
 
6779
  cat conftest.err >&5
 
6780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6781
  (exit $ac_status); } &&
 
6782
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6783
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6784
  (eval $ac_try) 2>&5
 
6785
  ac_status=$?
 
6786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6787
  (exit $ac_status); }; } &&
 
6788
         { ac_try='test -s conftest.$ac_objext'
 
6789
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6790
  (eval $ac_try) 2>&5
 
6791
  ac_status=$?
 
6792
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6793
  (exit $ac_status); }; }; then
 
6794
  ac_hi=$ac_mid
 
6795
else
 
6796
  echo "$as_me: failed program was:" >&5
 
6797
sed 's/^/| /' conftest.$ac_ext >&5
 
6798
 
 
6799
ac_lo=`expr '(' $ac_mid ')' + 1`
 
6800
fi
 
6801
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6802
done
 
6803
case $ac_lo in
 
6804
?*) res_hi=$ac_lo;;
 
6805
'') result=? ;;
 
6806
esac
 
6807
else
 
6808
  if test "$cross_compiling" = yes; then
 
6809
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
6810
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
6811
   { (exit 1); exit 1; }; }
 
6812
else
 
6813
  cat >conftest.$ac_ext <<_ACEOF
 
6814
/* confdefs.h.  */
 
6815
_ACEOF
 
6816
cat confdefs.h >>conftest.$ac_ext
 
6817
cat >>conftest.$ac_ext <<_ACEOF
 
6818
/* end confdefs.h.  */
 
6819
#include <stddef.h>
 
6820
long longval () { return ~(size_t)0 / 10; }
 
6821
unsigned long ulongval () { return ~(size_t)0 / 10; }
 
6822
#include <stdio.h>
 
6823
#include <stdlib.h>
 
6824
int
 
6825
main ()
 
6826
{
 
6827
 
 
6828
  FILE *f = fopen ("conftest.val", "w");
 
6829
  if (! f)
 
6830
    exit (1);
 
6831
  if ((~(size_t)0 / 10) < 0)
 
6832
    {
 
6833
      long i = longval ();
 
6834
      if (i != (~(size_t)0 / 10))
 
6835
        exit (1);
 
6836
      fprintf (f, "%ld\n", i);
 
6837
    }
 
6838
  else
 
6839
    {
 
6840
      unsigned long i = ulongval ();
 
6841
      if (i != (~(size_t)0 / 10))
 
6842
        exit (1);
 
6843
      fprintf (f, "%lu\n", i);
 
6844
    }
 
6845
  exit (ferror (f) || fclose (f) != 0);
 
6846
 
 
6847
  ;
 
6848
  return 0;
 
6849
}
 
6850
_ACEOF
 
6851
rm -f conftest$ac_exeext
 
6852
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6853
  (eval $ac_link) 2>&5
 
6854
  ac_status=$?
 
6855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6856
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6858
  (eval $ac_try) 2>&5
 
6859
  ac_status=$?
 
6860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6861
  (exit $ac_status); }; }; then
 
6862
  res_hi=`cat conftest.val`
 
6863
else
 
6864
  echo "$as_me: program exited with status $ac_status" >&5
 
6865
echo "$as_me: failed program was:" >&5
 
6866
sed 's/^/| /' conftest.$ac_ext >&5
 
6867
 
 
6868
( exit $ac_status )
 
6869
result=?
 
6870
fi
 
6871
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6872
fi
 
6873
fi
 
6874
rm -f conftest.val
 
6875
    if test "$cross_compiling" = yes; then
 
6876
  # Depending upon the size, compute the lo and hi bounds.
 
6877
cat >conftest.$ac_ext <<_ACEOF
 
6878
/* confdefs.h.  */
 
6879
_ACEOF
 
6880
cat confdefs.h >>conftest.$ac_ext
 
6881
cat >>conftest.$ac_ext <<_ACEOF
 
6882
/* end confdefs.h.  */
 
6883
#include <stddef.h>
 
6884
int
 
6885
main ()
 
6886
{
 
6887
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
 
6888
test_array [0] = 0
 
6889
 
 
6890
  ;
 
6891
  return 0;
 
6892
}
 
6893
_ACEOF
 
6894
rm -f conftest.$ac_objext
 
6895
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6896
  (eval $ac_compile) 2>conftest.er1
 
6897
  ac_status=$?
 
6898
  grep -v '^ *+' conftest.er1 >conftest.err
 
6899
  rm -f conftest.er1
 
6900
  cat conftest.err >&5
 
6901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6902
  (exit $ac_status); } &&
 
6903
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6905
  (eval $ac_try) 2>&5
 
6906
  ac_status=$?
 
6907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6908
  (exit $ac_status); }; } &&
 
6909
         { ac_try='test -s conftest.$ac_objext'
 
6910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6911
  (eval $ac_try) 2>&5
 
6912
  ac_status=$?
 
6913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6914
  (exit $ac_status); }; }; then
 
6915
  ac_lo=0 ac_mid=0
 
6916
  while :; do
 
6917
    cat >conftest.$ac_ext <<_ACEOF
 
6918
/* confdefs.h.  */
 
6919
_ACEOF
 
6920
cat confdefs.h >>conftest.$ac_ext
 
6921
cat >>conftest.$ac_ext <<_ACEOF
 
6922
/* end confdefs.h.  */
 
6923
#include <stddef.h>
 
6924
int
 
6925
main ()
 
6926
{
 
6927
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
 
6928
test_array [0] = 0
 
6929
 
 
6930
  ;
 
6931
  return 0;
 
6932
}
 
6933
_ACEOF
 
6934
rm -f conftest.$ac_objext
 
6935
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6936
  (eval $ac_compile) 2>conftest.er1
 
6937
  ac_status=$?
 
6938
  grep -v '^ *+' conftest.er1 >conftest.err
 
6939
  rm -f conftest.er1
 
6940
  cat conftest.err >&5
 
6941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6942
  (exit $ac_status); } &&
 
6943
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
6944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6945
  (eval $ac_try) 2>&5
 
6946
  ac_status=$?
 
6947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6948
  (exit $ac_status); }; } &&
 
6949
         { ac_try='test -s conftest.$ac_objext'
 
6950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6951
  (eval $ac_try) 2>&5
 
6952
  ac_status=$?
 
6953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6954
  (exit $ac_status); }; }; then
 
6955
  ac_hi=$ac_mid; break
 
6956
else
 
6957
  echo "$as_me: failed program was:" >&5
 
6958
sed 's/^/| /' conftest.$ac_ext >&5
 
6959
 
 
6960
ac_lo=`expr $ac_mid + 1`
 
6961
                    if test $ac_lo -le $ac_mid; then
 
6962
                      ac_lo= ac_hi=
 
6963
                      break
 
6964
                    fi
 
6965
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
6966
fi
 
6967
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6968
  done
 
6969
else
 
6970
  echo "$as_me: failed program was:" >&5
 
6971
sed 's/^/| /' conftest.$ac_ext >&5
 
6972
 
 
6973
cat >conftest.$ac_ext <<_ACEOF
 
6974
/* confdefs.h.  */
 
6975
_ACEOF
 
6976
cat confdefs.h >>conftest.$ac_ext
 
6977
cat >>conftest.$ac_ext <<_ACEOF
 
6978
/* end confdefs.h.  */
 
6979
#include <stddef.h>
 
6980
int
 
6981
main ()
 
6982
{
 
6983
static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
 
6984
test_array [0] = 0
 
6985
 
 
6986
  ;
 
6987
  return 0;
 
6988
}
 
6989
_ACEOF
 
6990
rm -f conftest.$ac_objext
 
6991
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6992
  (eval $ac_compile) 2>conftest.er1
 
6993
  ac_status=$?
 
6994
  grep -v '^ *+' conftest.er1 >conftest.err
 
6995
  rm -f conftest.er1
 
6996
  cat conftest.err >&5
 
6997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6998
  (exit $ac_status); } &&
 
6999
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7001
  (eval $ac_try) 2>&5
 
7002
  ac_status=$?
 
7003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7004
  (exit $ac_status); }; } &&
 
7005
         { ac_try='test -s conftest.$ac_objext'
 
7006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7007
  (eval $ac_try) 2>&5
 
7008
  ac_status=$?
 
7009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7010
  (exit $ac_status); }; }; then
 
7011
  ac_hi=-1 ac_mid=-1
 
7012
  while :; do
 
7013
    cat >conftest.$ac_ext <<_ACEOF
 
7014
/* confdefs.h.  */
 
7015
_ACEOF
 
7016
cat confdefs.h >>conftest.$ac_ext
 
7017
cat >>conftest.$ac_ext <<_ACEOF
 
7018
/* end confdefs.h.  */
 
7019
#include <stddef.h>
 
7020
int
 
7021
main ()
 
7022
{
 
7023
static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
 
7024
test_array [0] = 0
 
7025
 
 
7026
  ;
 
7027
  return 0;
 
7028
}
 
7029
_ACEOF
 
7030
rm -f conftest.$ac_objext
 
7031
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7032
  (eval $ac_compile) 2>conftest.er1
 
7033
  ac_status=$?
 
7034
  grep -v '^ *+' conftest.er1 >conftest.err
 
7035
  rm -f conftest.er1
 
7036
  cat conftest.err >&5
 
7037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7038
  (exit $ac_status); } &&
 
7039
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7041
  (eval $ac_try) 2>&5
 
7042
  ac_status=$?
 
7043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7044
  (exit $ac_status); }; } &&
 
7045
         { ac_try='test -s conftest.$ac_objext'
 
7046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7047
  (eval $ac_try) 2>&5
 
7048
  ac_status=$?
 
7049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7050
  (exit $ac_status); }; }; then
 
7051
  ac_lo=$ac_mid; break
 
7052
else
 
7053
  echo "$as_me: failed program was:" >&5
 
7054
sed 's/^/| /' conftest.$ac_ext >&5
 
7055
 
 
7056
ac_hi=`expr '(' $ac_mid ')' - 1`
 
7057
                       if test $ac_mid -le $ac_hi; then
 
7058
                         ac_lo= ac_hi=
 
7059
                         break
 
7060
                       fi
 
7061
                       ac_mid=`expr 2 '*' $ac_mid`
 
7062
fi
 
7063
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7064
  done
 
7065
else
 
7066
  echo "$as_me: failed program was:" >&5
 
7067
sed 's/^/| /' conftest.$ac_ext >&5
 
7068
 
 
7069
ac_lo= ac_hi=
 
7070
fi
 
7071
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7072
fi
 
7073
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7074
# Binary search between lo and hi bounds.
 
7075
while test "x$ac_lo" != "x$ac_hi"; do
 
7076
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
7077
  cat >conftest.$ac_ext <<_ACEOF
 
7078
/* confdefs.h.  */
 
7079
_ACEOF
 
7080
cat confdefs.h >>conftest.$ac_ext
 
7081
cat >>conftest.$ac_ext <<_ACEOF
 
7082
/* end confdefs.h.  */
 
7083
#include <stddef.h>
 
7084
int
 
7085
main ()
 
7086
{
 
7087
static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
 
7088
test_array [0] = 0
 
7089
 
 
7090
  ;
 
7091
  return 0;
 
7092
}
 
7093
_ACEOF
 
7094
rm -f conftest.$ac_objext
 
7095
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7096
  (eval $ac_compile) 2>conftest.er1
 
7097
  ac_status=$?
 
7098
  grep -v '^ *+' conftest.er1 >conftest.err
 
7099
  rm -f conftest.er1
 
7100
  cat conftest.err >&5
 
7101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7102
  (exit $ac_status); } &&
 
7103
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7105
  (eval $ac_try) 2>&5
 
7106
  ac_status=$?
 
7107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7108
  (exit $ac_status); }; } &&
 
7109
         { ac_try='test -s conftest.$ac_objext'
 
7110
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7111
  (eval $ac_try) 2>&5
 
7112
  ac_status=$?
 
7113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7114
  (exit $ac_status); }; }; then
 
7115
  ac_hi=$ac_mid
 
7116
else
 
7117
  echo "$as_me: failed program was:" >&5
 
7118
sed 's/^/| /' conftest.$ac_ext >&5
 
7119
 
 
7120
ac_lo=`expr '(' $ac_mid ')' + 1`
 
7121
fi
 
7122
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7123
done
 
7124
case $ac_lo in
 
7125
?*) res_lo=$ac_lo;;
 
7126
'') result=? ;;
 
7127
esac
 
7128
else
 
7129
  if test "$cross_compiling" = yes; then
 
7130
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
7131
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
7132
   { (exit 1); exit 1; }; }
 
7133
else
 
7134
  cat >conftest.$ac_ext <<_ACEOF
 
7135
/* confdefs.h.  */
 
7136
_ACEOF
 
7137
cat confdefs.h >>conftest.$ac_ext
 
7138
cat >>conftest.$ac_ext <<_ACEOF
 
7139
/* end confdefs.h.  */
 
7140
#include <stddef.h>
 
7141
long longval () { return ~(size_t)0 % 10; }
 
7142
unsigned long ulongval () { return ~(size_t)0 % 10; }
 
7143
#include <stdio.h>
 
7144
#include <stdlib.h>
 
7145
int
 
7146
main ()
 
7147
{
 
7148
 
 
7149
  FILE *f = fopen ("conftest.val", "w");
 
7150
  if (! f)
 
7151
    exit (1);
 
7152
  if ((~(size_t)0 % 10) < 0)
 
7153
    {
 
7154
      long i = longval ();
 
7155
      if (i != (~(size_t)0 % 10))
 
7156
        exit (1);
 
7157
      fprintf (f, "%ld\n", i);
 
7158
    }
 
7159
  else
 
7160
    {
 
7161
      unsigned long i = ulongval ();
 
7162
      if (i != (~(size_t)0 % 10))
 
7163
        exit (1);
 
7164
      fprintf (f, "%lu\n", i);
 
7165
    }
 
7166
  exit (ferror (f) || fclose (f) != 0);
 
7167
 
 
7168
  ;
 
7169
  return 0;
 
7170
}
 
7171
_ACEOF
 
7172
rm -f conftest$ac_exeext
 
7173
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7174
  (eval $ac_link) 2>&5
 
7175
  ac_status=$?
 
7176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7177
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7179
  (eval $ac_try) 2>&5
 
7180
  ac_status=$?
 
7181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7182
  (exit $ac_status); }; }; then
 
7183
  res_lo=`cat conftest.val`
 
7184
else
 
7185
  echo "$as_me: program exited with status $ac_status" >&5
 
7186
echo "$as_me: failed program was:" >&5
 
7187
sed 's/^/| /' conftest.$ac_ext >&5
 
7188
 
 
7189
( exit $ac_status )
 
7190
result=?
 
7191
fi
 
7192
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7193
fi
 
7194
fi
 
7195
rm -f conftest.val
 
7196
    if test "$cross_compiling" = yes; then
 
7197
  # Depending upon the size, compute the lo and hi bounds.
 
7198
cat >conftest.$ac_ext <<_ACEOF
 
7199
/* confdefs.h.  */
 
7200
_ACEOF
 
7201
cat confdefs.h >>conftest.$ac_ext
 
7202
cat >>conftest.$ac_ext <<_ACEOF
 
7203
/* end confdefs.h.  */
 
7204
#include <stddef.h>
 
7205
int
 
7206
main ()
 
7207
{
 
7208
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
 
7209
test_array [0] = 0
 
7210
 
 
7211
  ;
 
7212
  return 0;
 
7213
}
 
7214
_ACEOF
 
7215
rm -f conftest.$ac_objext
 
7216
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7217
  (eval $ac_compile) 2>conftest.er1
 
7218
  ac_status=$?
 
7219
  grep -v '^ *+' conftest.er1 >conftest.err
 
7220
  rm -f conftest.er1
 
7221
  cat conftest.err >&5
 
7222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7223
  (exit $ac_status); } &&
 
7224
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7226
  (eval $ac_try) 2>&5
 
7227
  ac_status=$?
 
7228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7229
  (exit $ac_status); }; } &&
 
7230
         { ac_try='test -s conftest.$ac_objext'
 
7231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7232
  (eval $ac_try) 2>&5
 
7233
  ac_status=$?
 
7234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7235
  (exit $ac_status); }; }; then
 
7236
  ac_lo=0 ac_mid=0
 
7237
  while :; do
 
7238
    cat >conftest.$ac_ext <<_ACEOF
 
7239
/* confdefs.h.  */
 
7240
_ACEOF
 
7241
cat confdefs.h >>conftest.$ac_ext
 
7242
cat >>conftest.$ac_ext <<_ACEOF
 
7243
/* end confdefs.h.  */
 
7244
#include <stddef.h>
 
7245
int
 
7246
main ()
 
7247
{
 
7248
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
7249
test_array [0] = 0
 
7250
 
 
7251
  ;
 
7252
  return 0;
 
7253
}
 
7254
_ACEOF
 
7255
rm -f conftest.$ac_objext
 
7256
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7257
  (eval $ac_compile) 2>conftest.er1
 
7258
  ac_status=$?
 
7259
  grep -v '^ *+' conftest.er1 >conftest.err
 
7260
  rm -f conftest.er1
 
7261
  cat conftest.err >&5
 
7262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7263
  (exit $ac_status); } &&
 
7264
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7265
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7266
  (eval $ac_try) 2>&5
 
7267
  ac_status=$?
 
7268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7269
  (exit $ac_status); }; } &&
 
7270
         { ac_try='test -s conftest.$ac_objext'
 
7271
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7272
  (eval $ac_try) 2>&5
 
7273
  ac_status=$?
 
7274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7275
  (exit $ac_status); }; }; then
 
7276
  ac_hi=$ac_mid; break
 
7277
else
 
7278
  echo "$as_me: failed program was:" >&5
 
7279
sed 's/^/| /' conftest.$ac_ext >&5
 
7280
 
 
7281
ac_lo=`expr $ac_mid + 1`
 
7282
                    if test $ac_lo -le $ac_mid; then
 
7283
                      ac_lo= ac_hi=
 
7284
                      break
 
7285
                    fi
 
7286
                    ac_mid=`expr 2 '*' $ac_mid + 1`
 
7287
fi
 
7288
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7289
  done
 
7290
else
 
7291
  echo "$as_me: failed program was:" >&5
 
7292
sed 's/^/| /' conftest.$ac_ext >&5
 
7293
 
 
7294
cat >conftest.$ac_ext <<_ACEOF
 
7295
/* confdefs.h.  */
 
7296
_ACEOF
 
7297
cat confdefs.h >>conftest.$ac_ext
 
7298
cat >>conftest.$ac_ext <<_ACEOF
 
7299
/* end confdefs.h.  */
 
7300
#include <stddef.h>
 
7301
int
 
7302
main ()
 
7303
{
 
7304
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
 
7305
test_array [0] = 0
 
7306
 
 
7307
  ;
 
7308
  return 0;
 
7309
}
 
7310
_ACEOF
 
7311
rm -f conftest.$ac_objext
 
7312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7313
  (eval $ac_compile) 2>conftest.er1
 
7314
  ac_status=$?
 
7315
  grep -v '^ *+' conftest.er1 >conftest.err
 
7316
  rm -f conftest.er1
 
7317
  cat conftest.err >&5
 
7318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7319
  (exit $ac_status); } &&
 
7320
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7322
  (eval $ac_try) 2>&5
 
7323
  ac_status=$?
 
7324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7325
  (exit $ac_status); }; } &&
 
7326
         { ac_try='test -s conftest.$ac_objext'
 
7327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7328
  (eval $ac_try) 2>&5
 
7329
  ac_status=$?
 
7330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7331
  (exit $ac_status); }; }; then
 
7332
  ac_hi=-1 ac_mid=-1
 
7333
  while :; do
 
7334
    cat >conftest.$ac_ext <<_ACEOF
 
7335
/* confdefs.h.  */
 
7336
_ACEOF
 
7337
cat confdefs.h >>conftest.$ac_ext
 
7338
cat >>conftest.$ac_ext <<_ACEOF
 
7339
/* end confdefs.h.  */
 
7340
#include <stddef.h>
 
7341
int
 
7342
main ()
 
7343
{
 
7344
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
 
7345
test_array [0] = 0
 
7346
 
 
7347
  ;
 
7348
  return 0;
 
7349
}
 
7350
_ACEOF
 
7351
rm -f conftest.$ac_objext
 
7352
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7353
  (eval $ac_compile) 2>conftest.er1
 
7354
  ac_status=$?
 
7355
  grep -v '^ *+' conftest.er1 >conftest.err
 
7356
  rm -f conftest.er1
 
7357
  cat conftest.err >&5
 
7358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7359
  (exit $ac_status); } &&
 
7360
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7362
  (eval $ac_try) 2>&5
 
7363
  ac_status=$?
 
7364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7365
  (exit $ac_status); }; } &&
 
7366
         { ac_try='test -s conftest.$ac_objext'
 
7367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7368
  (eval $ac_try) 2>&5
 
7369
  ac_status=$?
 
7370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7371
  (exit $ac_status); }; }; then
 
7372
  ac_lo=$ac_mid; break
 
7373
else
 
7374
  echo "$as_me: failed program was:" >&5
 
7375
sed 's/^/| /' conftest.$ac_ext >&5
 
7376
 
 
7377
ac_hi=`expr '(' $ac_mid ')' - 1`
 
7378
                       if test $ac_mid -le $ac_hi; then
 
7379
                         ac_lo= ac_hi=
 
7380
                         break
 
7381
                       fi
 
7382
                       ac_mid=`expr 2 '*' $ac_mid`
 
7383
fi
 
7384
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7385
  done
 
7386
else
 
7387
  echo "$as_me: failed program was:" >&5
 
7388
sed 's/^/| /' conftest.$ac_ext >&5
 
7389
 
 
7390
ac_lo= ac_hi=
 
7391
fi
 
7392
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7393
fi
 
7394
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7395
# Binary search between lo and hi bounds.
 
7396
while test "x$ac_lo" != "x$ac_hi"; do
 
7397
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
7398
  cat >conftest.$ac_ext <<_ACEOF
 
7399
/* confdefs.h.  */
 
7400
_ACEOF
 
7401
cat confdefs.h >>conftest.$ac_ext
 
7402
cat >>conftest.$ac_ext <<_ACEOF
 
7403
/* end confdefs.h.  */
 
7404
#include <stddef.h>
 
7405
int
 
7406
main ()
 
7407
{
 
7408
static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
 
7409
test_array [0] = 0
 
7410
 
 
7411
  ;
 
7412
  return 0;
 
7413
}
 
7414
_ACEOF
 
7415
rm -f conftest.$ac_objext
 
7416
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7417
  (eval $ac_compile) 2>conftest.er1
 
7418
  ac_status=$?
 
7419
  grep -v '^ *+' conftest.er1 >conftest.err
 
7420
  rm -f conftest.er1
 
7421
  cat conftest.err >&5
 
7422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7423
  (exit $ac_status); } &&
 
7424
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7426
  (eval $ac_try) 2>&5
 
7427
  ac_status=$?
 
7428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7429
  (exit $ac_status); }; } &&
 
7430
         { ac_try='test -s conftest.$ac_objext'
 
7431
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7432
  (eval $ac_try) 2>&5
 
7433
  ac_status=$?
 
7434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7435
  (exit $ac_status); }; }; then
 
7436
  ac_hi=$ac_mid
 
7437
else
 
7438
  echo "$as_me: failed program was:" >&5
 
7439
sed 's/^/| /' conftest.$ac_ext >&5
 
7440
 
 
7441
ac_lo=`expr '(' $ac_mid ')' + 1`
 
7442
fi
 
7443
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7444
done
 
7445
case $ac_lo in
 
7446
?*) fits_in_uint=$ac_lo;;
 
7447
'') result=? ;;
 
7448
esac
 
7449
else
 
7450
  if test "$cross_compiling" = yes; then
 
7451
  { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
 
7452
echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
 
7453
   { (exit 1); exit 1; }; }
 
7454
else
 
7455
  cat >conftest.$ac_ext <<_ACEOF
 
7456
/* confdefs.h.  */
 
7457
_ACEOF
 
7458
cat confdefs.h >>conftest.$ac_ext
 
7459
cat >>conftest.$ac_ext <<_ACEOF
 
7460
/* end confdefs.h.  */
 
7461
#include <stddef.h>
 
7462
long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
7463
unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
 
7464
#include <stdio.h>
 
7465
#include <stdlib.h>
 
7466
int
 
7467
main ()
 
7468
{
 
7469
 
 
7470
  FILE *f = fopen ("conftest.val", "w");
 
7471
  if (! f)
 
7472
    exit (1);
 
7473
  if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
 
7474
    {
 
7475
      long i = longval ();
 
7476
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
7477
        exit (1);
 
7478
      fprintf (f, "%ld\n", i);
 
7479
    }
 
7480
  else
 
7481
    {
 
7482
      unsigned long i = ulongval ();
 
7483
      if (i != (sizeof (size_t) <= sizeof (unsigned int)))
 
7484
        exit (1);
 
7485
      fprintf (f, "%lu\n", i);
 
7486
    }
 
7487
  exit (ferror (f) || fclose (f) != 0);
 
7488
 
 
7489
  ;
 
7490
  return 0;
 
7491
}
 
7492
_ACEOF
 
7493
rm -f conftest$ac_exeext
 
7494
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7495
  (eval $ac_link) 2>&5
 
7496
  ac_status=$?
 
7497
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7498
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7499
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7500
  (eval $ac_try) 2>&5
 
7501
  ac_status=$?
 
7502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7503
  (exit $ac_status); }; }; then
 
7504
  fits_in_uint=`cat conftest.val`
 
7505
else
 
7506
  echo "$as_me: program exited with status $ac_status" >&5
 
7507
echo "$as_me: failed program was:" >&5
 
7508
sed 's/^/| /' conftest.$ac_ext >&5
 
7509
 
 
7510
( exit $ac_status )
 
7511
result=?
 
7512
fi
 
7513
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7514
fi
 
7515
fi
 
7516
rm -f conftest.val
 
7517
    if test "$fits_in_uint" = 1; then
 
7518
                  cat >conftest.$ac_ext <<_ACEOF
 
7519
/* confdefs.h.  */
 
7520
_ACEOF
 
7521
cat confdefs.h >>conftest.$ac_ext
 
7522
cat >>conftest.$ac_ext <<_ACEOF
 
7523
/* end confdefs.h.  */
 
7524
#include <stddef.h>
 
7525
        extern size_t foo;
 
7526
        extern unsigned long foo;
 
7527
 
 
7528
int
 
7529
main ()
 
7530
{
 
7531
 
 
7532
  ;
 
7533
  return 0;
 
7534
}
 
7535
_ACEOF
 
7536
rm -f conftest.$ac_objext
 
7537
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7538
  (eval $ac_compile) 2>conftest.er1
 
7539
  ac_status=$?
 
7540
  grep -v '^ *+' conftest.er1 >conftest.err
 
7541
  rm -f conftest.er1
 
7542
  cat conftest.err >&5
 
7543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7544
  (exit $ac_status); } &&
 
7545
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7546
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7547
  (eval $ac_try) 2>&5
 
7548
  ac_status=$?
 
7549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7550
  (exit $ac_status); }; } &&
 
7551
         { ac_try='test -s conftest.$ac_objext'
 
7552
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7553
  (eval $ac_try) 2>&5
 
7554
  ac_status=$?
 
7555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7556
  (exit $ac_status); }; }; then
 
7557
  fits_in_uint=0
 
7558
else
 
7559
  echo "$as_me: failed program was:" >&5
 
7560
sed 's/^/| /' conftest.$ac_ext >&5
 
7561
 
 
7562
fi
 
7563
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7564
    fi
 
7565
    if test -z "$result"; then
 
7566
      if test "$fits_in_uint" = 1; then
 
7567
        result="$res_hi$res_lo"U
 
7568
      else
 
7569
        result="$res_hi$res_lo"UL
 
7570
      fi
 
7571
    else
 
7572
            result='~(size_t)0'
 
7573
    fi
 
7574
  fi
 
7575
  echo "$as_me:$LINENO: result: $result" >&5
 
7576
echo "${ECHO_T}$result" >&6
 
7577
  if test "$result" != yes; then
 
7578
 
 
7579
cat >>confdefs.h <<_ACEOF
 
7580
#define SIZE_MAX $result
 
7581
_ACEOF
 
7582
 
 
7583
  fi
 
7584
 
 
7585
 
 
7586
 
 
7587
 
 
7588
for ac_header in stdint.h
 
7589
do
 
7590
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7591
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7592
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7593
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7594
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7595
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7596
fi
 
7597
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7598
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7599
else
 
7600
  # Is the header compilable?
 
7601
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7602
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
7603
cat >conftest.$ac_ext <<_ACEOF
 
7604
/* confdefs.h.  */
 
7605
_ACEOF
 
7606
cat confdefs.h >>conftest.$ac_ext
 
7607
cat >>conftest.$ac_ext <<_ACEOF
 
7608
/* end confdefs.h.  */
 
7609
$ac_includes_default
 
7610
#include <$ac_header>
 
7611
_ACEOF
 
7612
rm -f conftest.$ac_objext
 
7613
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7614
  (eval $ac_compile) 2>conftest.er1
 
7615
  ac_status=$?
 
7616
  grep -v '^ *+' conftest.er1 >conftest.err
 
7617
  rm -f conftest.er1
 
7618
  cat conftest.err >&5
 
7619
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7620
  (exit $ac_status); } &&
 
7621
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7622
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7623
  (eval $ac_try) 2>&5
 
7624
  ac_status=$?
 
7625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7626
  (exit $ac_status); }; } &&
 
7627
         { ac_try='test -s conftest.$ac_objext'
 
7628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7629
  (eval $ac_try) 2>&5
 
7630
  ac_status=$?
 
7631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7632
  (exit $ac_status); }; }; then
 
7633
  ac_header_compiler=yes
 
7634
else
 
7635
  echo "$as_me: failed program was:" >&5
 
7636
sed 's/^/| /' conftest.$ac_ext >&5
 
7637
 
 
7638
ac_header_compiler=no
 
7639
fi
 
7640
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7641
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7642
echo "${ECHO_T}$ac_header_compiler" >&6
 
7643
 
 
7644
# Is the header present?
 
7645
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7646
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
7647
cat >conftest.$ac_ext <<_ACEOF
 
7648
/* confdefs.h.  */
 
7649
_ACEOF
 
7650
cat confdefs.h >>conftest.$ac_ext
 
7651
cat >>conftest.$ac_ext <<_ACEOF
 
7652
/* end confdefs.h.  */
 
7653
#include <$ac_header>
 
7654
_ACEOF
 
7655
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7656
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7657
  ac_status=$?
 
7658
  grep -v '^ *+' conftest.er1 >conftest.err
 
7659
  rm -f conftest.er1
 
7660
  cat conftest.err >&5
 
7661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7662
  (exit $ac_status); } >/dev/null; then
 
7663
  if test -s conftest.err; then
 
7664
    ac_cpp_err=$ac_c_preproc_warn_flag
 
7665
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
7666
  else
 
7667
    ac_cpp_err=
 
7668
  fi
 
7669
else
 
7670
  ac_cpp_err=yes
 
7671
fi
 
7672
if test -z "$ac_cpp_err"; then
 
7673
  ac_header_preproc=yes
 
7674
else
 
7675
  echo "$as_me: failed program was:" >&5
 
7676
sed 's/^/| /' conftest.$ac_ext >&5
 
7677
 
 
7678
  ac_header_preproc=no
 
7679
fi
 
7680
rm -f conftest.err conftest.$ac_ext
 
7681
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7682
echo "${ECHO_T}$ac_header_preproc" >&6
 
7683
 
 
7684
# So?  What about this header?
 
7685
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7686
  yes:no: )
 
7687
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7688
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7689
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7690
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7691
    ac_header_preproc=yes
 
7692
    ;;
 
7693
  no:yes:* )
 
7694
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7695
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7696
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7697
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7698
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7699
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7700
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7701
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7702
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7703
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7704
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7705
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7706
    (
 
7707
      cat <<\_ASBOX
 
7708
## ------------------------------------------ ##
 
7709
## Report this to the AC_PACKAGE_NAME lists.  ##
 
7710
## ------------------------------------------ ##
 
7711
_ASBOX
 
7712
    ) |
 
7713
      sed "s/^/$as_me: WARNING:     /" >&2
 
7714
    ;;
 
7715
esac
 
7716
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7717
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
7718
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
7719
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7720
else
 
7721
  eval "$as_ac_Header=\$ac_header_preproc"
 
7722
fi
 
7723
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
7724
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
7725
 
 
7726
fi
 
7727
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7728
  cat >>confdefs.h <<_ACEOF
 
7729
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7730
_ACEOF
 
7731
 
 
7732
fi
 
7733
 
 
7734
done
 
7735
 
 
7736
 
 
7737
 
 
7738
      if test "X$prefix" = "XNONE"; then
 
7739
    acl_final_prefix="$ac_default_prefix"
 
7740
  else
 
7741
    acl_final_prefix="$prefix"
 
7742
  fi
 
7743
  if test "X$exec_prefix" = "XNONE"; then
 
7744
    acl_final_exec_prefix='${prefix}'
 
7745
  else
 
7746
    acl_final_exec_prefix="$exec_prefix"
 
7747
  fi
 
7748
  acl_save_prefix="$prefix"
 
7749
  prefix="$acl_final_prefix"
 
7750
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
7751
  prefix="$acl_save_prefix"
 
7752
 
2064
7753
 
2065
7754
# Check whether --with-gnu-ld or --without-gnu-ld was given.
2066
7755
if test "${with_gnu_ld+set}" = set; then
2069
7758
else
2070
7759
  with_gnu_ld=no
2071
7760
fi;
 
7761
# Prepare PATH_SEPARATOR.
 
7762
# The user is always right.
 
7763
if test "${PATH_SEPARATOR+set}" != set; then
 
7764
  echo "#! /bin/sh" >conf$$.sh
 
7765
  echo  "exit 0"   >>conf$$.sh
 
7766
  chmod +x conf$$.sh
 
7767
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
7768
    PATH_SEPARATOR=';'
 
7769
  else
 
7770
    PATH_SEPARATOR=:
 
7771
  fi
 
7772
  rm -f conf$$.sh
 
7773
fi
2072
7774
ac_prog=ld
2073
7775
if test "$GCC" = yes; then
2074
7776
  # Check if gcc -print-prog-name=ld gives a path.
2075
 
  echo "$as_me:2075: checking for ld used by GCC" >&5
 
7777
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2076
7778
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2077
7779
  case $host in
2078
7780
  *-*-mingw*)
2083
7785
  esac
2084
7786
  case $ac_prog in
2085
7787
    # Accept absolute paths.
2086
 
    [\\/]* | ?:[\\/]*)
 
7788
    [\\/]* | [A-Za-z]:[\\/]*)
2087
7789
      re_direlt='/[^/][^/]*/\.\./'
2088
7790
      # Canonicalize the path of ld
2089
7791
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2102
7804
    ;;
2103
7805
  esac
2104
7806
elif test "$with_gnu_ld" = yes; then
2105
 
  echo "$as_me:2105: checking for GNU ld" >&5
2106
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2107
 
else
2108
 
  echo "$as_me:2108: checking for non-GNU ld" >&5
 
7807
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
7808
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
7809
else
 
7810
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
7811
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
7812
fi
 
7813
if test "${acl_cv_path_LD+set}" = set; then
 
7814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7815
else
 
7816
  if test -z "$LD"; then
 
7817
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
7818
  for ac_dir in $PATH; do
 
7819
    test -z "$ac_dir" && ac_dir=.
 
7820
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
7821
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
7822
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
7823
      # but apparently some GNU ld's only accept -v.
 
7824
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
7825
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
7826
      *GNU* | *'with BFD'*)
 
7827
        test "$with_gnu_ld" != no && break ;;
 
7828
      *)
 
7829
        test "$with_gnu_ld" != yes && break ;;
 
7830
      esac
 
7831
    fi
 
7832
  done
 
7833
  IFS="$ac_save_ifs"
 
7834
else
 
7835
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
7836
fi
 
7837
fi
 
7838
 
 
7839
LD="$acl_cv_path_LD"
 
7840
if test -n "$LD"; then
 
7841
  echo "$as_me:$LINENO: result: $LD" >&5
 
7842
echo "${ECHO_T}$LD" >&6
 
7843
else
 
7844
  echo "$as_me:$LINENO: result: no" >&5
 
7845
echo "${ECHO_T}no" >&6
 
7846
fi
 
7847
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
7848
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
7849
   { (exit 1); exit 1; }; }
 
7850
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
7851
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
7852
if test "${acl_cv_prog_gnu_ld+set}" = set; then
 
7853
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7854
else
 
7855
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
7856
case `$LD -v 2>&1 </dev/null` in
 
7857
*GNU* | *'with BFD'*)
 
7858
  acl_cv_prog_gnu_ld=yes ;;
 
7859
*)
 
7860
  acl_cv_prog_gnu_ld=no ;;
 
7861
esac
 
7862
fi
 
7863
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
7864
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
 
7865
with_gnu_ld=$acl_cv_prog_gnu_ld
 
7866
 
 
7867
 
 
7868
 
 
7869
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
7870
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
 
7871
if test "${acl_cv_rpath+set}" = set; then
 
7872
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7873
else
 
7874
 
 
7875
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
7876
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
7877
    . ./conftest.sh
 
7878
    rm -f ./conftest.sh
 
7879
    acl_cv_rpath=done
 
7880
 
 
7881
fi
 
7882
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
7883
echo "${ECHO_T}$acl_cv_rpath" >&6
 
7884
  wl="$acl_cv_wl"
 
7885
  libext="$acl_cv_libext"
 
7886
  shlibext="$acl_cv_shlibext"
 
7887
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
7888
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
7889
  hardcode_direct="$acl_cv_hardcode_direct"
 
7890
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
7891
    # Check whether --enable-rpath or --disable-rpath was given.
 
7892
if test "${enable_rpath+set}" = set; then
 
7893
  enableval="$enable_rpath"
 
7894
  :
 
7895
else
 
7896
  enable_rpath=yes
 
7897
fi;
 
7898
 
 
7899
 
 
7900
 
 
7901
 
 
7902
 
 
7903
 
 
7904
 
 
7905
    use_additional=yes
 
7906
 
 
7907
  acl_save_prefix="$prefix"
 
7908
  prefix="$acl_final_prefix"
 
7909
  acl_save_exec_prefix="$exec_prefix"
 
7910
  exec_prefix="$acl_final_exec_prefix"
 
7911
 
 
7912
    eval additional_includedir=\"$includedir\"
 
7913
    eval additional_libdir=\"$libdir\"
 
7914
 
 
7915
  exec_prefix="$acl_save_exec_prefix"
 
7916
  prefix="$acl_save_prefix"
 
7917
 
 
7918
 
 
7919
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
 
7920
if test "${with_libiconv_prefix+set}" = set; then
 
7921
  withval="$with_libiconv_prefix"
 
7922
 
 
7923
    if test "X$withval" = "Xno"; then
 
7924
      use_additional=no
 
7925
    else
 
7926
      if test "X$withval" = "X"; then
 
7927
 
 
7928
  acl_save_prefix="$prefix"
 
7929
  prefix="$acl_final_prefix"
 
7930
  acl_save_exec_prefix="$exec_prefix"
 
7931
  exec_prefix="$acl_final_exec_prefix"
 
7932
 
 
7933
          eval additional_includedir=\"$includedir\"
 
7934
          eval additional_libdir=\"$libdir\"
 
7935
 
 
7936
  exec_prefix="$acl_save_exec_prefix"
 
7937
  prefix="$acl_save_prefix"
 
7938
 
 
7939
      else
 
7940
        additional_includedir="$withval/include"
 
7941
        additional_libdir="$withval/lib"
 
7942
      fi
 
7943
    fi
 
7944
 
 
7945
fi;
 
7946
      LIBICONV=
 
7947
  LTLIBICONV=
 
7948
  INCICONV=
 
7949
  rpathdirs=
 
7950
  ltrpathdirs=
 
7951
  names_already_handled=
 
7952
  names_next_round='iconv '
 
7953
  while test -n "$names_next_round"; do
 
7954
    names_this_round="$names_next_round"
 
7955
    names_next_round=
 
7956
    for name in $names_this_round; do
 
7957
      already_handled=
 
7958
      for n in $names_already_handled; do
 
7959
        if test "$n" = "$name"; then
 
7960
          already_handled=yes
 
7961
          break
 
7962
        fi
 
7963
      done
 
7964
      if test -z "$already_handled"; then
 
7965
        names_already_handled="$names_already_handled $name"
 
7966
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
7967
        eval value=\"\$HAVE_LIB$uppername\"
 
7968
        if test -n "$value"; then
 
7969
          if test "$value" = yes; then
 
7970
            eval value=\"\$LIB$uppername\"
 
7971
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
7972
            eval value=\"\$LTLIB$uppername\"
 
7973
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
7974
          else
 
7975
                                    :
 
7976
          fi
 
7977
        else
 
7978
                              found_dir=
 
7979
          found_la=
 
7980
          found_so=
 
7981
          found_a=
 
7982
          if test $use_additional = yes; then
 
7983
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
7984
              found_dir="$additional_libdir"
 
7985
              found_so="$additional_libdir/lib$name.$shlibext"
 
7986
              if test -f "$additional_libdir/lib$name.la"; then
 
7987
                found_la="$additional_libdir/lib$name.la"
 
7988
              fi
 
7989
            else
 
7990
              if test -f "$additional_libdir/lib$name.$libext"; then
 
7991
                found_dir="$additional_libdir"
 
7992
                found_a="$additional_libdir/lib$name.$libext"
 
7993
                if test -f "$additional_libdir/lib$name.la"; then
 
7994
                  found_la="$additional_libdir/lib$name.la"
 
7995
                fi
 
7996
              fi
 
7997
            fi
 
7998
          fi
 
7999
          if test "X$found_dir" = "X"; then
 
8000
            for x in $LDFLAGS $LTLIBICONV; do
 
8001
 
 
8002
  acl_save_prefix="$prefix"
 
8003
  prefix="$acl_final_prefix"
 
8004
  acl_save_exec_prefix="$exec_prefix"
 
8005
  exec_prefix="$acl_final_exec_prefix"
 
8006
  eval x=\"$x\"
 
8007
  exec_prefix="$acl_save_exec_prefix"
 
8008
  prefix="$acl_save_prefix"
 
8009
 
 
8010
              case "$x" in
 
8011
                -L*)
 
8012
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
8013
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
8014
                    found_dir="$dir"
 
8015
                    found_so="$dir/lib$name.$shlibext"
 
8016
                    if test -f "$dir/lib$name.la"; then
 
8017
                      found_la="$dir/lib$name.la"
 
8018
                    fi
 
8019
                  else
 
8020
                    if test -f "$dir/lib$name.$libext"; then
 
8021
                      found_dir="$dir"
 
8022
                      found_a="$dir/lib$name.$libext"
 
8023
                      if test -f "$dir/lib$name.la"; then
 
8024
                        found_la="$dir/lib$name.la"
 
8025
                      fi
 
8026
                    fi
 
8027
                  fi
 
8028
                  ;;
 
8029
              esac
 
8030
              if test "X$found_dir" != "X"; then
 
8031
                break
 
8032
              fi
 
8033
            done
 
8034
          fi
 
8035
          if test "X$found_dir" != "X"; then
 
8036
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
8037
            if test "X$found_so" != "X"; then
 
8038
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
8039
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
8040
              else
 
8041
                                                                                haveit=
 
8042
                for x in $ltrpathdirs; do
 
8043
                  if test "X$x" = "X$found_dir"; then
 
8044
                    haveit=yes
 
8045
                    break
 
8046
                  fi
 
8047
                done
 
8048
                if test -z "$haveit"; then
 
8049
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
8050
                fi
 
8051
                                if test "$hardcode_direct" = yes; then
 
8052
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
8053
                else
 
8054
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
8055
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
8056
                                                            haveit=
 
8057
                    for x in $rpathdirs; do
 
8058
                      if test "X$x" = "X$found_dir"; then
 
8059
                        haveit=yes
 
8060
                        break
 
8061
                      fi
 
8062
                    done
 
8063
                    if test -z "$haveit"; then
 
8064
                      rpathdirs="$rpathdirs $found_dir"
 
8065
                    fi
 
8066
                  else
 
8067
                                                                                haveit=
 
8068
                    for x in $LDFLAGS $LIBICONV; do
 
8069
 
 
8070
  acl_save_prefix="$prefix"
 
8071
  prefix="$acl_final_prefix"
 
8072
  acl_save_exec_prefix="$exec_prefix"
 
8073
  exec_prefix="$acl_final_exec_prefix"
 
8074
  eval x=\"$x\"
 
8075
  exec_prefix="$acl_save_exec_prefix"
 
8076
  prefix="$acl_save_prefix"
 
8077
 
 
8078
                      if test "X$x" = "X-L$found_dir"; then
 
8079
                        haveit=yes
 
8080
                        break
 
8081
                      fi
 
8082
                    done
 
8083
                    if test -z "$haveit"; then
 
8084
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
8085
                    fi
 
8086
                    if test "$hardcode_minus_L" != no; then
 
8087
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
8088
                    else
 
8089
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
8090
                    fi
 
8091
                  fi
 
8092
                fi
 
8093
              fi
 
8094
            else
 
8095
              if test "X$found_a" != "X"; then
 
8096
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
8097
              else
 
8098
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
8099
              fi
 
8100
            fi
 
8101
                        additional_includedir=
 
8102
            case "$found_dir" in
 
8103
              */lib | */lib/)
 
8104
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
8105
                additional_includedir="$basedir/include"
 
8106
                ;;
 
8107
            esac
 
8108
            if test "X$additional_includedir" != "X"; then
 
8109
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
8110
                haveit=
 
8111
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
8112
                  if test -n "$GCC"; then
 
8113
                    case $host_os in
 
8114
                      linux*) haveit=yes;;
 
8115
                    esac
 
8116
                  fi
 
8117
                fi
 
8118
                if test -z "$haveit"; then
 
8119
                  for x in $CPPFLAGS $INCICONV; do
 
8120
 
 
8121
  acl_save_prefix="$prefix"
 
8122
  prefix="$acl_final_prefix"
 
8123
  acl_save_exec_prefix="$exec_prefix"
 
8124
  exec_prefix="$acl_final_exec_prefix"
 
8125
  eval x=\"$x\"
 
8126
  exec_prefix="$acl_save_exec_prefix"
 
8127
  prefix="$acl_save_prefix"
 
8128
 
 
8129
                    if test "X$x" = "X-I$additional_includedir"; then
 
8130
                      haveit=yes
 
8131
                      break
 
8132
                    fi
 
8133
                  done
 
8134
                  if test -z "$haveit"; then
 
8135
                    if test -d "$additional_includedir"; then
 
8136
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
8137
                    fi
 
8138
                  fi
 
8139
                fi
 
8140
              fi
 
8141
            fi
 
8142
                        if test -n "$found_la"; then
 
8143
                                                        save_libdir="$libdir"
 
8144
              case "$found_la" in
 
8145
                */* | *\\*) . "$found_la" ;;
 
8146
                *) . "./$found_la" ;;
 
8147
              esac
 
8148
              libdir="$save_libdir"
 
8149
                            for dep in $dependency_libs; do
 
8150
                case "$dep" in
 
8151
                  -L*)
 
8152
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
8153
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
8154
                      haveit=
 
8155
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
8156
                        if test -n "$GCC"; then
 
8157
                          case $host_os in
 
8158
                            linux*) haveit=yes;;
 
8159
                          esac
 
8160
                        fi
 
8161
                      fi
 
8162
                      if test -z "$haveit"; then
 
8163
                        haveit=
 
8164
                        for x in $LDFLAGS $LIBICONV; do
 
8165
 
 
8166
  acl_save_prefix="$prefix"
 
8167
  prefix="$acl_final_prefix"
 
8168
  acl_save_exec_prefix="$exec_prefix"
 
8169
  exec_prefix="$acl_final_exec_prefix"
 
8170
  eval x=\"$x\"
 
8171
  exec_prefix="$acl_save_exec_prefix"
 
8172
  prefix="$acl_save_prefix"
 
8173
 
 
8174
                          if test "X$x" = "X-L$additional_libdir"; then
 
8175
                            haveit=yes
 
8176
                            break
 
8177
                          fi
 
8178
                        done
 
8179
                        if test -z "$haveit"; then
 
8180
                          if test -d "$additional_libdir"; then
 
8181
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
8182
                          fi
 
8183
                        fi
 
8184
                        haveit=
 
8185
                        for x in $LDFLAGS $LTLIBICONV; do
 
8186
 
 
8187
  acl_save_prefix="$prefix"
 
8188
  prefix="$acl_final_prefix"
 
8189
  acl_save_exec_prefix="$exec_prefix"
 
8190
  exec_prefix="$acl_final_exec_prefix"
 
8191
  eval x=\"$x\"
 
8192
  exec_prefix="$acl_save_exec_prefix"
 
8193
  prefix="$acl_save_prefix"
 
8194
 
 
8195
                          if test "X$x" = "X-L$additional_libdir"; then
 
8196
                            haveit=yes
 
8197
                            break
 
8198
                          fi
 
8199
                        done
 
8200
                        if test -z "$haveit"; then
 
8201
                          if test -d "$additional_libdir"; then
 
8202
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
8203
                          fi
 
8204
                        fi
 
8205
                      fi
 
8206
                    fi
 
8207
                    ;;
 
8208
                  -R*)
 
8209
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
8210
                    if test "$enable_rpath" != no; then
 
8211
                                                                  haveit=
 
8212
                      for x in $rpathdirs; do
 
8213
                        if test "X$x" = "X$dir"; then
 
8214
                          haveit=yes
 
8215
                          break
 
8216
                        fi
 
8217
                      done
 
8218
                      if test -z "$haveit"; then
 
8219
                        rpathdirs="$rpathdirs $dir"
 
8220
                      fi
 
8221
                                                                  haveit=
 
8222
                      for x in $ltrpathdirs; do
 
8223
                        if test "X$x" = "X$dir"; then
 
8224
                          haveit=yes
 
8225
                          break
 
8226
                        fi
 
8227
                      done
 
8228
                      if test -z "$haveit"; then
 
8229
                        ltrpathdirs="$ltrpathdirs $dir"
 
8230
                      fi
 
8231
                    fi
 
8232
                    ;;
 
8233
                  -l*)
 
8234
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
8235
                    ;;
 
8236
                  *.la)
 
8237
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
8238
                    ;;
 
8239
                  *)
 
8240
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
8241
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
8242
                    ;;
 
8243
                esac
 
8244
              done
 
8245
            fi
 
8246
          else
 
8247
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
8248
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
8249
          fi
 
8250
        fi
 
8251
      fi
 
8252
    done
 
8253
  done
 
8254
  if test "X$rpathdirs" != "X"; then
 
8255
    if test -n "$hardcode_libdir_separator"; then
 
8256
                        alldirs=
 
8257
      for found_dir in $rpathdirs; do
 
8258
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
8259
      done
 
8260
            acl_save_libdir="$libdir"
 
8261
      libdir="$alldirs"
 
8262
      eval flag=\"$hardcode_libdir_flag_spec\"
 
8263
      libdir="$acl_save_libdir"
 
8264
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
8265
    else
 
8266
            for found_dir in $rpathdirs; do
 
8267
        acl_save_libdir="$libdir"
 
8268
        libdir="$found_dir"
 
8269
        eval flag=\"$hardcode_libdir_flag_spec\"
 
8270
        libdir="$acl_save_libdir"
 
8271
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
8272
      done
 
8273
    fi
 
8274
  fi
 
8275
  if test "X$ltrpathdirs" != "X"; then
 
8276
            for found_dir in $ltrpathdirs; do
 
8277
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
8278
    done
 
8279
  fi
 
8280
 
 
8281
 
 
8282
 
 
8283
 
 
8284
 
 
8285
 
 
8286
 
 
8287
 
 
8288
  echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
 
8289
echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
 
8290
if test "${ac_cv_type_ptrdiff_t+set}" = set; then
 
8291
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8292
else
 
8293
  cat >conftest.$ac_ext <<_ACEOF
 
8294
/* confdefs.h.  */
 
8295
_ACEOF
 
8296
cat confdefs.h >>conftest.$ac_ext
 
8297
cat >>conftest.$ac_ext <<_ACEOF
 
8298
/* end confdefs.h.  */
 
8299
$ac_includes_default
 
8300
int
 
8301
main ()
 
8302
{
 
8303
if ((ptrdiff_t *) 0)
 
8304
  return 0;
 
8305
if (sizeof (ptrdiff_t))
 
8306
  return 0;
 
8307
  ;
 
8308
  return 0;
 
8309
}
 
8310
_ACEOF
 
8311
rm -f conftest.$ac_objext
 
8312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8313
  (eval $ac_compile) 2>conftest.er1
 
8314
  ac_status=$?
 
8315
  grep -v '^ *+' conftest.er1 >conftest.err
 
8316
  rm -f conftest.er1
 
8317
  cat conftest.err >&5
 
8318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8319
  (exit $ac_status); } &&
 
8320
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8322
  (eval $ac_try) 2>&5
 
8323
  ac_status=$?
 
8324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8325
  (exit $ac_status); }; } &&
 
8326
         { ac_try='test -s conftest.$ac_objext'
 
8327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8328
  (eval $ac_try) 2>&5
 
8329
  ac_status=$?
 
8330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8331
  (exit $ac_status); }; }; then
 
8332
  ac_cv_type_ptrdiff_t=yes
 
8333
else
 
8334
  echo "$as_me: failed program was:" >&5
 
8335
sed 's/^/| /' conftest.$ac_ext >&5
 
8336
 
 
8337
ac_cv_type_ptrdiff_t=no
 
8338
fi
 
8339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8340
fi
 
8341
echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
 
8342
echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
 
8343
if test $ac_cv_type_ptrdiff_t = yes; then
 
8344
  :
 
8345
else
 
8346
 
 
8347
cat >>confdefs.h <<\_ACEOF
 
8348
#define ptrdiff_t long
 
8349
_ACEOF
 
8350
 
 
8351
 
 
8352
fi
 
8353
 
 
8354
 
 
8355
 
 
8356
 
 
8357
 
 
8358
 
 
8359
 
 
8360
 
 
8361
 
 
8362
 
 
8363
 
 
8364
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
 
8365
stdlib.h string.h unistd.h sys/param.h
 
8366
do
 
8367
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8368
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8369
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8370
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8371
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8372
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8373
fi
 
8374
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8375
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8376
else
 
8377
  # Is the header compilable?
 
8378
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
8379
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
8380
cat >conftest.$ac_ext <<_ACEOF
 
8381
/* confdefs.h.  */
 
8382
_ACEOF
 
8383
cat confdefs.h >>conftest.$ac_ext
 
8384
cat >>conftest.$ac_ext <<_ACEOF
 
8385
/* end confdefs.h.  */
 
8386
$ac_includes_default
 
8387
#include <$ac_header>
 
8388
_ACEOF
 
8389
rm -f conftest.$ac_objext
 
8390
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8391
  (eval $ac_compile) 2>conftest.er1
 
8392
  ac_status=$?
 
8393
  grep -v '^ *+' conftest.er1 >conftest.err
 
8394
  rm -f conftest.er1
 
8395
  cat conftest.err >&5
 
8396
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8397
  (exit $ac_status); } &&
 
8398
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8399
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8400
  (eval $ac_try) 2>&5
 
8401
  ac_status=$?
 
8402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8403
  (exit $ac_status); }; } &&
 
8404
         { ac_try='test -s conftest.$ac_objext'
 
8405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8406
  (eval $ac_try) 2>&5
 
8407
  ac_status=$?
 
8408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8409
  (exit $ac_status); }; }; then
 
8410
  ac_header_compiler=yes
 
8411
else
 
8412
  echo "$as_me: failed program was:" >&5
 
8413
sed 's/^/| /' conftest.$ac_ext >&5
 
8414
 
 
8415
ac_header_compiler=no
 
8416
fi
 
8417
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8418
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
8419
echo "${ECHO_T}$ac_header_compiler" >&6
 
8420
 
 
8421
# Is the header present?
 
8422
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
8423
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
8424
cat >conftest.$ac_ext <<_ACEOF
 
8425
/* confdefs.h.  */
 
8426
_ACEOF
 
8427
cat confdefs.h >>conftest.$ac_ext
 
8428
cat >>conftest.$ac_ext <<_ACEOF
 
8429
/* end confdefs.h.  */
 
8430
#include <$ac_header>
 
8431
_ACEOF
 
8432
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
8433
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
8434
  ac_status=$?
 
8435
  grep -v '^ *+' conftest.er1 >conftest.err
 
8436
  rm -f conftest.er1
 
8437
  cat conftest.err >&5
 
8438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8439
  (exit $ac_status); } >/dev/null; then
 
8440
  if test -s conftest.err; then
 
8441
    ac_cpp_err=$ac_c_preproc_warn_flag
 
8442
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
8443
  else
 
8444
    ac_cpp_err=
 
8445
  fi
 
8446
else
 
8447
  ac_cpp_err=yes
 
8448
fi
 
8449
if test -z "$ac_cpp_err"; then
 
8450
  ac_header_preproc=yes
 
8451
else
 
8452
  echo "$as_me: failed program was:" >&5
 
8453
sed 's/^/| /' conftest.$ac_ext >&5
 
8454
 
 
8455
  ac_header_preproc=no
 
8456
fi
 
8457
rm -f conftest.err conftest.$ac_ext
 
8458
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
8459
echo "${ECHO_T}$ac_header_preproc" >&6
 
8460
 
 
8461
# So?  What about this header?
 
8462
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
8463
  yes:no: )
 
8464
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
8465
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
8466
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
8467
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
8468
    ac_header_preproc=yes
 
8469
    ;;
 
8470
  no:yes:* )
 
8471
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
8472
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
8473
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
8474
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
8475
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
8476
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
8477
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
8478
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
8479
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
8480
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
8481
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
8482
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
8483
    (
 
8484
      cat <<\_ASBOX
 
8485
## ------------------------------------------ ##
 
8486
## Report this to the AC_PACKAGE_NAME lists.  ##
 
8487
## ------------------------------------------ ##
 
8488
_ASBOX
 
8489
    ) |
 
8490
      sed "s/^/$as_me: WARNING:     /" >&2
 
8491
    ;;
 
8492
esac
 
8493
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8494
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
8495
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
8496
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8497
else
 
8498
  eval "$as_ac_Header=\$ac_header_preproc"
 
8499
fi
 
8500
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
8501
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
8502
 
 
8503
fi
 
8504
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8505
  cat >>confdefs.h <<_ACEOF
 
8506
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8507
_ACEOF
 
8508
 
 
8509
fi
 
8510
 
 
8511
done
 
8512
 
 
8513
 
 
8514
 
 
8515
 
 
8516
 
 
8517
 
 
8518
 
 
8519
 
 
8520
 
 
8521
 
 
8522
 
 
8523
 
 
8524
 
 
8525
 
 
8526
 
 
8527
 
 
8528
 
 
8529
 
 
8530
 
 
8531
 
 
8532
 
 
8533
 
 
8534
 
 
8535
 
 
8536
for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
 
8537
mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
 
8538
strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
 
8539
__fsetlocking
 
8540
do
 
8541
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
8542
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
8543
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
8544
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
8545
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8546
else
 
8547
  cat >conftest.$ac_ext <<_ACEOF
 
8548
/* confdefs.h.  */
 
8549
_ACEOF
 
8550
cat confdefs.h >>conftest.$ac_ext
 
8551
cat >>conftest.$ac_ext <<_ACEOF
 
8552
/* end confdefs.h.  */
 
8553
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
8554
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8555
#define $ac_func innocuous_$ac_func
 
8556
 
 
8557
/* System header to define __stub macros and hopefully few prototypes,
 
8558
    which can conflict with char $ac_func (); below.
 
8559
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8560
    <limits.h> exists even on freestanding compilers.  */
 
8561
 
 
8562
#ifdef __STDC__
 
8563
# include <limits.h>
 
8564
#else
 
8565
# include <assert.h>
 
8566
#endif
 
8567
 
 
8568
#undef $ac_func
 
8569
 
 
8570
/* Override any gcc2 internal prototype to avoid an error.  */
 
8571
#ifdef __cplusplus
 
8572
extern "C"
 
8573
{
 
8574
#endif
 
8575
/* We use char because int might match the return type of a gcc2
 
8576
   builtin and then its argument prototype would still apply.  */
 
8577
char $ac_func ();
 
8578
/* The GNU C library defines this for functions which it implements
 
8579
    to always fail with ENOSYS.  Some functions are actually named
 
8580
    something starting with __ and the normal name is an alias.  */
 
8581
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
8582
choke me
 
8583
#else
 
8584
char (*f) () = $ac_func;
 
8585
#endif
 
8586
#ifdef __cplusplus
 
8587
}
 
8588
#endif
 
8589
 
 
8590
int
 
8591
main ()
 
8592
{
 
8593
return f != $ac_func;
 
8594
  ;
 
8595
  return 0;
 
8596
}
 
8597
_ACEOF
 
8598
rm -f conftest.$ac_objext conftest$ac_exeext
 
8599
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8600
  (eval $ac_link) 2>conftest.er1
 
8601
  ac_status=$?
 
8602
  grep -v '^ *+' conftest.er1 >conftest.err
 
8603
  rm -f conftest.er1
 
8604
  cat conftest.err >&5
 
8605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8606
  (exit $ac_status); } &&
 
8607
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8609
  (eval $ac_try) 2>&5
 
8610
  ac_status=$?
 
8611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8612
  (exit $ac_status); }; } &&
 
8613
         { ac_try='test -s conftest$ac_exeext'
 
8614
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8615
  (eval $ac_try) 2>&5
 
8616
  ac_status=$?
 
8617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8618
  (exit $ac_status); }; }; then
 
8619
  eval "$as_ac_var=yes"
 
8620
else
 
8621
  echo "$as_me: failed program was:" >&5
 
8622
sed 's/^/| /' conftest.$ac_ext >&5
 
8623
 
 
8624
eval "$as_ac_var=no"
 
8625
fi
 
8626
rm -f conftest.err conftest.$ac_objext \
 
8627
      conftest$ac_exeext conftest.$ac_ext
 
8628
fi
 
8629
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
8630
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
8631
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8632
  cat >>confdefs.h <<_ACEOF
 
8633
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8634
_ACEOF
 
8635
 
 
8636
fi
 
8637
done
 
8638
 
 
8639
 
 
8640
 
 
8641
  echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
 
8642
echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
 
8643
if test "${ac_cv_have_decl__snprintf+set}" = set; then
 
8644
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8645
else
 
8646
  cat >conftest.$ac_ext <<_ACEOF
 
8647
/* confdefs.h.  */
 
8648
_ACEOF
 
8649
cat confdefs.h >>conftest.$ac_ext
 
8650
cat >>conftest.$ac_ext <<_ACEOF
 
8651
/* end confdefs.h.  */
 
8652
#include <stdio.h>
 
8653
int
 
8654
main ()
 
8655
{
 
8656
 
 
8657
#ifndef _snprintf
 
8658
  char *p = (char *) _snprintf;
 
8659
#endif
 
8660
 
 
8661
  ;
 
8662
  return 0;
 
8663
}
 
8664
_ACEOF
 
8665
rm -f conftest.$ac_objext
 
8666
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8667
  (eval $ac_compile) 2>conftest.er1
 
8668
  ac_status=$?
 
8669
  grep -v '^ *+' conftest.er1 >conftest.err
 
8670
  rm -f conftest.er1
 
8671
  cat conftest.err >&5
 
8672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8673
  (exit $ac_status); } &&
 
8674
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8675
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8676
  (eval $ac_try) 2>&5
 
8677
  ac_status=$?
 
8678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8679
  (exit $ac_status); }; } &&
 
8680
         { ac_try='test -s conftest.$ac_objext'
 
8681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8682
  (eval $ac_try) 2>&5
 
8683
  ac_status=$?
 
8684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8685
  (exit $ac_status); }; }; then
 
8686
  ac_cv_have_decl__snprintf=yes
 
8687
else
 
8688
  echo "$as_me: failed program was:" >&5
 
8689
sed 's/^/| /' conftest.$ac_ext >&5
 
8690
 
 
8691
ac_cv_have_decl__snprintf=no
 
8692
fi
 
8693
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8694
fi
 
8695
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
 
8696
echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
 
8697
  if test $ac_cv_have_decl__snprintf = yes; then
 
8698
    gt_value=1
 
8699
  else
 
8700
    gt_value=0
 
8701
  fi
 
8702
 
 
8703
cat >>confdefs.h <<_ACEOF
 
8704
#define HAVE_DECL__SNPRINTF $gt_value
 
8705
_ACEOF
 
8706
 
 
8707
 
 
8708
 
 
8709
  echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
 
8710
echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
 
8711
if test "${ac_cv_have_decl__snwprintf+set}" = set; then
 
8712
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8713
else
 
8714
  cat >conftest.$ac_ext <<_ACEOF
 
8715
/* confdefs.h.  */
 
8716
_ACEOF
 
8717
cat confdefs.h >>conftest.$ac_ext
 
8718
cat >>conftest.$ac_ext <<_ACEOF
 
8719
/* end confdefs.h.  */
 
8720
#include <stdio.h>
 
8721
int
 
8722
main ()
 
8723
{
 
8724
 
 
8725
#ifndef _snwprintf
 
8726
  char *p = (char *) _snwprintf;
 
8727
#endif
 
8728
 
 
8729
  ;
 
8730
  return 0;
 
8731
}
 
8732
_ACEOF
 
8733
rm -f conftest.$ac_objext
 
8734
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8735
  (eval $ac_compile) 2>conftest.er1
 
8736
  ac_status=$?
 
8737
  grep -v '^ *+' conftest.er1 >conftest.err
 
8738
  rm -f conftest.er1
 
8739
  cat conftest.err >&5
 
8740
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8741
  (exit $ac_status); } &&
 
8742
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8743
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8744
  (eval $ac_try) 2>&5
 
8745
  ac_status=$?
 
8746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8747
  (exit $ac_status); }; } &&
 
8748
         { ac_try='test -s conftest.$ac_objext'
 
8749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8750
  (eval $ac_try) 2>&5
 
8751
  ac_status=$?
 
8752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8753
  (exit $ac_status); }; }; then
 
8754
  ac_cv_have_decl__snwprintf=yes
 
8755
else
 
8756
  echo "$as_me: failed program was:" >&5
 
8757
sed 's/^/| /' conftest.$ac_ext >&5
 
8758
 
 
8759
ac_cv_have_decl__snwprintf=no
 
8760
fi
 
8761
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8762
fi
 
8763
echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
 
8764
echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
 
8765
  if test $ac_cv_have_decl__snwprintf = yes; then
 
8766
    gt_value=1
 
8767
  else
 
8768
    gt_value=0
 
8769
  fi
 
8770
 
 
8771
cat >>confdefs.h <<_ACEOF
 
8772
#define HAVE_DECL__SNWPRINTF $gt_value
 
8773
_ACEOF
 
8774
 
 
8775
 
 
8776
 
 
8777
 
 
8778
  echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
 
8779
echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
 
8780
if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
 
8781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8782
else
 
8783
  cat >conftest.$ac_ext <<_ACEOF
 
8784
/* confdefs.h.  */
 
8785
_ACEOF
 
8786
cat confdefs.h >>conftest.$ac_ext
 
8787
cat >>conftest.$ac_ext <<_ACEOF
 
8788
/* end confdefs.h.  */
 
8789
#include <stdio.h>
 
8790
int
 
8791
main ()
 
8792
{
 
8793
 
 
8794
#ifndef feof_unlocked
 
8795
  char *p = (char *) feof_unlocked;
 
8796
#endif
 
8797
 
 
8798
  ;
 
8799
  return 0;
 
8800
}
 
8801
_ACEOF
 
8802
rm -f conftest.$ac_objext
 
8803
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8804
  (eval $ac_compile) 2>conftest.er1
 
8805
  ac_status=$?
 
8806
  grep -v '^ *+' conftest.er1 >conftest.err
 
8807
  rm -f conftest.er1
 
8808
  cat conftest.err >&5
 
8809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8810
  (exit $ac_status); } &&
 
8811
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8813
  (eval $ac_try) 2>&5
 
8814
  ac_status=$?
 
8815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8816
  (exit $ac_status); }; } &&
 
8817
         { ac_try='test -s conftest.$ac_objext'
 
8818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8819
  (eval $ac_try) 2>&5
 
8820
  ac_status=$?
 
8821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8822
  (exit $ac_status); }; }; then
 
8823
  ac_cv_have_decl_feof_unlocked=yes
 
8824
else
 
8825
  echo "$as_me: failed program was:" >&5
 
8826
sed 's/^/| /' conftest.$ac_ext >&5
 
8827
 
 
8828
ac_cv_have_decl_feof_unlocked=no
 
8829
fi
 
8830
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8831
fi
 
8832
echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
 
8833
echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
 
8834
  if test $ac_cv_have_decl_feof_unlocked = yes; then
 
8835
    gt_value=1
 
8836
  else
 
8837
    gt_value=0
 
8838
  fi
 
8839
 
 
8840
cat >>confdefs.h <<_ACEOF
 
8841
#define HAVE_DECL_FEOF_UNLOCKED $gt_value
 
8842
_ACEOF
 
8843
 
 
8844
 
 
8845
 
 
8846
  echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
 
8847
echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
 
8848
if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
 
8849
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8850
else
 
8851
  cat >conftest.$ac_ext <<_ACEOF
 
8852
/* confdefs.h.  */
 
8853
_ACEOF
 
8854
cat confdefs.h >>conftest.$ac_ext
 
8855
cat >>conftest.$ac_ext <<_ACEOF
 
8856
/* end confdefs.h.  */
 
8857
#include <stdio.h>
 
8858
int
 
8859
main ()
 
8860
{
 
8861
 
 
8862
#ifndef fgets_unlocked
 
8863
  char *p = (char *) fgets_unlocked;
 
8864
#endif
 
8865
 
 
8866
  ;
 
8867
  return 0;
 
8868
}
 
8869
_ACEOF
 
8870
rm -f conftest.$ac_objext
 
8871
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8872
  (eval $ac_compile) 2>conftest.er1
 
8873
  ac_status=$?
 
8874
  grep -v '^ *+' conftest.er1 >conftest.err
 
8875
  rm -f conftest.er1
 
8876
  cat conftest.err >&5
 
8877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8878
  (exit $ac_status); } &&
 
8879
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8880
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8881
  (eval $ac_try) 2>&5
 
8882
  ac_status=$?
 
8883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8884
  (exit $ac_status); }; } &&
 
8885
         { ac_try='test -s conftest.$ac_objext'
 
8886
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8887
  (eval $ac_try) 2>&5
 
8888
  ac_status=$?
 
8889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8890
  (exit $ac_status); }; }; then
 
8891
  ac_cv_have_decl_fgets_unlocked=yes
 
8892
else
 
8893
  echo "$as_me: failed program was:" >&5
 
8894
sed 's/^/| /' conftest.$ac_ext >&5
 
8895
 
 
8896
ac_cv_have_decl_fgets_unlocked=no
 
8897
fi
 
8898
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8899
fi
 
8900
echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
 
8901
echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
 
8902
  if test $ac_cv_have_decl_fgets_unlocked = yes; then
 
8903
    gt_value=1
 
8904
  else
 
8905
    gt_value=0
 
8906
  fi
 
8907
 
 
8908
cat >>confdefs.h <<_ACEOF
 
8909
#define HAVE_DECL_FGETS_UNLOCKED $gt_value
 
8910
_ACEOF
 
8911
 
 
8912
 
 
8913
 
 
8914
  echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
 
8915
echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
 
8916
if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
 
8917
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8918
else
 
8919
  cat >conftest.$ac_ext <<_ACEOF
 
8920
/* confdefs.h.  */
 
8921
_ACEOF
 
8922
cat confdefs.h >>conftest.$ac_ext
 
8923
cat >>conftest.$ac_ext <<_ACEOF
 
8924
/* end confdefs.h.  */
 
8925
#include <stdio.h>
 
8926
int
 
8927
main ()
 
8928
{
 
8929
 
 
8930
#ifndef getc_unlocked
 
8931
  char *p = (char *) getc_unlocked;
 
8932
#endif
 
8933
 
 
8934
  ;
 
8935
  return 0;
 
8936
}
 
8937
_ACEOF
 
8938
rm -f conftest.$ac_objext
 
8939
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8940
  (eval $ac_compile) 2>conftest.er1
 
8941
  ac_status=$?
 
8942
  grep -v '^ *+' conftest.er1 >conftest.err
 
8943
  rm -f conftest.er1
 
8944
  cat conftest.err >&5
 
8945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8946
  (exit $ac_status); } &&
 
8947
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8948
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8949
  (eval $ac_try) 2>&5
 
8950
  ac_status=$?
 
8951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8952
  (exit $ac_status); }; } &&
 
8953
         { ac_try='test -s conftest.$ac_objext'
 
8954
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8955
  (eval $ac_try) 2>&5
 
8956
  ac_status=$?
 
8957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8958
  (exit $ac_status); }; }; then
 
8959
  ac_cv_have_decl_getc_unlocked=yes
 
8960
else
 
8961
  echo "$as_me: failed program was:" >&5
 
8962
sed 's/^/| /' conftest.$ac_ext >&5
 
8963
 
 
8964
ac_cv_have_decl_getc_unlocked=no
 
8965
fi
 
8966
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
8967
fi
 
8968
echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
 
8969
echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
 
8970
  if test $ac_cv_have_decl_getc_unlocked = yes; then
 
8971
    gt_value=1
 
8972
  else
 
8973
    gt_value=0
 
8974
  fi
 
8975
 
 
8976
cat >>confdefs.h <<_ACEOF
 
8977
#define HAVE_DECL_GETC_UNLOCKED $gt_value
 
8978
_ACEOF
 
8979
 
 
8980
 
 
8981
 
 
8982
  case $gt_cv_func_printf_posix in
 
8983
    *yes) HAVE_POSIX_PRINTF=1 ;;
 
8984
    *) HAVE_POSIX_PRINTF=0 ;;
 
8985
  esac
 
8986
 
 
8987
  if test "$ac_cv_func_asprintf" = yes; then
 
8988
    HAVE_ASPRINTF=1
 
8989
  else
 
8990
    HAVE_ASPRINTF=0
 
8991
  fi
 
8992
 
 
8993
  if test "$ac_cv_func_snprintf" = yes; then
 
8994
    HAVE_SNPRINTF=1
 
8995
  else
 
8996
    HAVE_SNPRINTF=0
 
8997
  fi
 
8998
 
 
8999
  if test "$ac_cv_func_wprintf" = yes; then
 
9000
    HAVE_WPRINTF=1
 
9001
  else
 
9002
    HAVE_WPRINTF=0
 
9003
  fi
 
9004
 
 
9005
 
 
9006
 
 
9007
 
 
9008
 
 
9009
 
 
9010
 
 
9011
          am_save_CPPFLAGS="$CPPFLAGS"
 
9012
 
 
9013
  for element in $INCICONV; do
 
9014
    haveit=
 
9015
    for x in $CPPFLAGS; do
 
9016
 
 
9017
  acl_save_prefix="$prefix"
 
9018
  prefix="$acl_final_prefix"
 
9019
  acl_save_exec_prefix="$exec_prefix"
 
9020
  exec_prefix="$acl_final_exec_prefix"
 
9021
  eval x=\"$x\"
 
9022
  exec_prefix="$acl_save_exec_prefix"
 
9023
  prefix="$acl_save_prefix"
 
9024
 
 
9025
      if test "X$x" = "X$element"; then
 
9026
        haveit=yes
 
9027
        break
 
9028
      fi
 
9029
    done
 
9030
    if test -z "$haveit"; then
 
9031
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
9032
    fi
 
9033
  done
 
9034
 
 
9035
 
 
9036
  echo "$as_me:$LINENO: checking for iconv" >&5
 
9037
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
 
9038
if test "${am_cv_func_iconv+set}" = set; then
 
9039
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9040
else
 
9041
 
 
9042
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
9043
    am_cv_lib_iconv=no
 
9044
    cat >conftest.$ac_ext <<_ACEOF
 
9045
/* confdefs.h.  */
 
9046
_ACEOF
 
9047
cat confdefs.h >>conftest.$ac_ext
 
9048
cat >>conftest.$ac_ext <<_ACEOF
 
9049
/* end confdefs.h.  */
 
9050
#include <stdlib.h>
 
9051
#include <iconv.h>
 
9052
int
 
9053
main ()
 
9054
{
 
9055
iconv_t cd = iconv_open("","");
 
9056
       iconv(cd,NULL,NULL,NULL,NULL);
 
9057
       iconv_close(cd);
 
9058
  ;
 
9059
  return 0;
 
9060
}
 
9061
_ACEOF
 
9062
rm -f conftest.$ac_objext conftest$ac_exeext
 
9063
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9064
  (eval $ac_link) 2>conftest.er1
 
9065
  ac_status=$?
 
9066
  grep -v '^ *+' conftest.er1 >conftest.err
 
9067
  rm -f conftest.er1
 
9068
  cat conftest.err >&5
 
9069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9070
  (exit $ac_status); } &&
 
9071
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9073
  (eval $ac_try) 2>&5
 
9074
  ac_status=$?
 
9075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9076
  (exit $ac_status); }; } &&
 
9077
         { ac_try='test -s conftest$ac_exeext'
 
9078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9079
  (eval $ac_try) 2>&5
 
9080
  ac_status=$?
 
9081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9082
  (exit $ac_status); }; }; then
 
9083
  am_cv_func_iconv=yes
 
9084
else
 
9085
  echo "$as_me: failed program was:" >&5
 
9086
sed 's/^/| /' conftest.$ac_ext >&5
 
9087
 
 
9088
fi
 
9089
rm -f conftest.err conftest.$ac_objext \
 
9090
      conftest$ac_exeext conftest.$ac_ext
 
9091
    if test "$am_cv_func_iconv" != yes; then
 
9092
      am_save_LIBS="$LIBS"
 
9093
      LIBS="$LIBS $LIBICONV"
 
9094
      cat >conftest.$ac_ext <<_ACEOF
 
9095
/* confdefs.h.  */
 
9096
_ACEOF
 
9097
cat confdefs.h >>conftest.$ac_ext
 
9098
cat >>conftest.$ac_ext <<_ACEOF
 
9099
/* end confdefs.h.  */
 
9100
#include <stdlib.h>
 
9101
#include <iconv.h>
 
9102
int
 
9103
main ()
 
9104
{
 
9105
iconv_t cd = iconv_open("","");
 
9106
         iconv(cd,NULL,NULL,NULL,NULL);
 
9107
         iconv_close(cd);
 
9108
  ;
 
9109
  return 0;
 
9110
}
 
9111
_ACEOF
 
9112
rm -f conftest.$ac_objext conftest$ac_exeext
 
9113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9114
  (eval $ac_link) 2>conftest.er1
 
9115
  ac_status=$?
 
9116
  grep -v '^ *+' conftest.er1 >conftest.err
 
9117
  rm -f conftest.er1
 
9118
  cat conftest.err >&5
 
9119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9120
  (exit $ac_status); } &&
 
9121
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9122
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9123
  (eval $ac_try) 2>&5
 
9124
  ac_status=$?
 
9125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9126
  (exit $ac_status); }; } &&
 
9127
         { ac_try='test -s conftest$ac_exeext'
 
9128
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9129
  (eval $ac_try) 2>&5
 
9130
  ac_status=$?
 
9131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9132
  (exit $ac_status); }; }; then
 
9133
  am_cv_lib_iconv=yes
 
9134
        am_cv_func_iconv=yes
 
9135
else
 
9136
  echo "$as_me: failed program was:" >&5
 
9137
sed 's/^/| /' conftest.$ac_ext >&5
 
9138
 
 
9139
fi
 
9140
rm -f conftest.err conftest.$ac_objext \
 
9141
      conftest$ac_exeext conftest.$ac_ext
 
9142
      LIBS="$am_save_LIBS"
 
9143
    fi
 
9144
 
 
9145
fi
 
9146
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
9147
echo "${ECHO_T}$am_cv_func_iconv" >&6
 
9148
  if test "$am_cv_func_iconv" = yes; then
 
9149
 
 
9150
cat >>confdefs.h <<\_ACEOF
 
9151
#define HAVE_ICONV 1
 
9152
_ACEOF
 
9153
 
 
9154
  fi
 
9155
  if test "$am_cv_lib_iconv" = yes; then
 
9156
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
9157
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
 
9158
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
9159
echo "${ECHO_T}$LIBICONV" >&6
 
9160
  else
 
9161
            CPPFLAGS="$am_save_CPPFLAGS"
 
9162
    LIBICONV=
 
9163
    LTLIBICONV=
 
9164
  fi
 
9165
 
 
9166
 
 
9167
 
 
9168
  if test "$am_cv_func_iconv" = yes; then
 
9169
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
 
9170
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
 
9171
    if test "${am_cv_proto_iconv+set}" = set; then
 
9172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9173
else
 
9174
 
 
9175
      cat >conftest.$ac_ext <<_ACEOF
 
9176
/* confdefs.h.  */
 
9177
_ACEOF
 
9178
cat confdefs.h >>conftest.$ac_ext
 
9179
cat >>conftest.$ac_ext <<_ACEOF
 
9180
/* end confdefs.h.  */
 
9181
 
 
9182
#include <stdlib.h>
 
9183
#include <iconv.h>
 
9184
extern
 
9185
#ifdef __cplusplus
 
9186
"C"
 
9187
#endif
 
9188
#if defined(__STDC__) || defined(__cplusplus)
 
9189
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
 
9190
#else
 
9191
size_t iconv();
 
9192
#endif
 
9193
 
 
9194
int
 
9195
main ()
 
9196
{
 
9197
 
 
9198
  ;
 
9199
  return 0;
 
9200
}
 
9201
_ACEOF
 
9202
rm -f conftest.$ac_objext
 
9203
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9204
  (eval $ac_compile) 2>conftest.er1
 
9205
  ac_status=$?
 
9206
  grep -v '^ *+' conftest.er1 >conftest.err
 
9207
  rm -f conftest.er1
 
9208
  cat conftest.err >&5
 
9209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9210
  (exit $ac_status); } &&
 
9211
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9212
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9213
  (eval $ac_try) 2>&5
 
9214
  ac_status=$?
 
9215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9216
  (exit $ac_status); }; } &&
 
9217
         { ac_try='test -s conftest.$ac_objext'
 
9218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9219
  (eval $ac_try) 2>&5
 
9220
  ac_status=$?
 
9221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9222
  (exit $ac_status); }; }; then
 
9223
  am_cv_proto_iconv_arg1=""
 
9224
else
 
9225
  echo "$as_me: failed program was:" >&5
 
9226
sed 's/^/| /' conftest.$ac_ext >&5
 
9227
 
 
9228
am_cv_proto_iconv_arg1="const"
 
9229
fi
 
9230
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
9231
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
 
9232
fi
 
9233
 
 
9234
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
 
9235
    echo "$as_me:$LINENO: result: ${ac_t:-
 
9236
         }$am_cv_proto_iconv" >&5
 
9237
echo "${ECHO_T}${ac_t:-
 
9238
         }$am_cv_proto_iconv" >&6
 
9239
 
 
9240
cat >>confdefs.h <<_ACEOF
 
9241
#define ICONV_CONST $am_cv_proto_iconv_arg1
 
9242
_ACEOF
 
9243
 
 
9244
  fi
 
9245
 
 
9246
 
 
9247
  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
 
9248
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
 
9249
if test "${am_cv_langinfo_codeset+set}" = set; then
 
9250
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9251
else
 
9252
  cat >conftest.$ac_ext <<_ACEOF
 
9253
/* confdefs.h.  */
 
9254
_ACEOF
 
9255
cat confdefs.h >>conftest.$ac_ext
 
9256
cat >>conftest.$ac_ext <<_ACEOF
 
9257
/* end confdefs.h.  */
 
9258
#include <langinfo.h>
 
9259
int
 
9260
main ()
 
9261
{
 
9262
char* cs = nl_langinfo(CODESET);
 
9263
  ;
 
9264
  return 0;
 
9265
}
 
9266
_ACEOF
 
9267
rm -f conftest.$ac_objext conftest$ac_exeext
 
9268
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9269
  (eval $ac_link) 2>conftest.er1
 
9270
  ac_status=$?
 
9271
  grep -v '^ *+' conftest.er1 >conftest.err
 
9272
  rm -f conftest.er1
 
9273
  cat conftest.err >&5
 
9274
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9275
  (exit $ac_status); } &&
 
9276
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9277
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9278
  (eval $ac_try) 2>&5
 
9279
  ac_status=$?
 
9280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9281
  (exit $ac_status); }; } &&
 
9282
         { ac_try='test -s conftest$ac_exeext'
 
9283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9284
  (eval $ac_try) 2>&5
 
9285
  ac_status=$?
 
9286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9287
  (exit $ac_status); }; }; then
 
9288
  am_cv_langinfo_codeset=yes
 
9289
else
 
9290
  echo "$as_me: failed program was:" >&5
 
9291
sed 's/^/| /' conftest.$ac_ext >&5
 
9292
 
 
9293
am_cv_langinfo_codeset=no
 
9294
fi
 
9295
rm -f conftest.err conftest.$ac_objext \
 
9296
      conftest$ac_exeext conftest.$ac_ext
 
9297
 
 
9298
fi
 
9299
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
 
9300
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
 
9301
  if test $am_cv_langinfo_codeset = yes; then
 
9302
 
 
9303
cat >>confdefs.h <<\_ACEOF
 
9304
#define HAVE_LANGINFO_CODESET 1
 
9305
_ACEOF
 
9306
 
 
9307
  fi
 
9308
 
 
9309
  if test $ac_cv_header_locale_h = yes; then
 
9310
 
 
9311
  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
9312
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
 
9313
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 
9314
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9315
else
 
9316
  cat >conftest.$ac_ext <<_ACEOF
 
9317
/* confdefs.h.  */
 
9318
_ACEOF
 
9319
cat confdefs.h >>conftest.$ac_ext
 
9320
cat >>conftest.$ac_ext <<_ACEOF
 
9321
/* end confdefs.h.  */
 
9322
#include <locale.h>
 
9323
int
 
9324
main ()
 
9325
{
 
9326
return LC_MESSAGES
 
9327
  ;
 
9328
  return 0;
 
9329
}
 
9330
_ACEOF
 
9331
rm -f conftest.$ac_objext conftest$ac_exeext
 
9332
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9333
  (eval $ac_link) 2>conftest.er1
 
9334
  ac_status=$?
 
9335
  grep -v '^ *+' conftest.er1 >conftest.err
 
9336
  rm -f conftest.er1
 
9337
  cat conftest.err >&5
 
9338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9339
  (exit $ac_status); } &&
 
9340
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9342
  (eval $ac_try) 2>&5
 
9343
  ac_status=$?
 
9344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9345
  (exit $ac_status); }; } &&
 
9346
         { ac_try='test -s conftest$ac_exeext'
 
9347
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9348
  (eval $ac_try) 2>&5
 
9349
  ac_status=$?
 
9350
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9351
  (exit $ac_status); }; }; then
 
9352
  am_cv_val_LC_MESSAGES=yes
 
9353
else
 
9354
  echo "$as_me: failed program was:" >&5
 
9355
sed 's/^/| /' conftest.$ac_ext >&5
 
9356
 
 
9357
am_cv_val_LC_MESSAGES=no
 
9358
fi
 
9359
rm -f conftest.err conftest.$ac_objext \
 
9360
      conftest$ac_exeext conftest.$ac_ext
 
9361
fi
 
9362
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 
9363
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
 
9364
  if test $am_cv_val_LC_MESSAGES = yes; then
 
9365
 
 
9366
cat >>confdefs.h <<\_ACEOF
 
9367
#define HAVE_LC_MESSAGES 1
 
9368
_ACEOF
 
9369
 
 
9370
  fi
 
9371
 
 
9372
  fi
 
9373
 
 
9374
                      for ac_prog in bison
 
9375
do
 
9376
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
9377
set dummy $ac_prog; ac_word=$2
 
9378
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
9379
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
9380
if test "${ac_cv_prog_INTLBISON+set}" = set; then
 
9381
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9382
else
 
9383
  if test -n "$INTLBISON"; then
 
9384
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
 
9385
else
 
9386
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
9387
for as_dir in $PATH
 
9388
do
 
9389
  IFS=$as_save_IFS
 
9390
  test -z "$as_dir" && as_dir=.
 
9391
  for ac_exec_ext in '' $ac_executable_extensions; do
 
9392
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
9393
    ac_cv_prog_INTLBISON="$ac_prog"
 
9394
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
9395
    break 2
 
9396
  fi
 
9397
done
 
9398
done
 
9399
 
 
9400
fi
 
9401
fi
 
9402
INTLBISON=$ac_cv_prog_INTLBISON
 
9403
if test -n "$INTLBISON"; then
 
9404
  echo "$as_me:$LINENO: result: $INTLBISON" >&5
 
9405
echo "${ECHO_T}$INTLBISON" >&6
 
9406
else
 
9407
  echo "$as_me:$LINENO: result: no" >&5
 
9408
echo "${ECHO_T}no" >&6
 
9409
fi
 
9410
 
 
9411
  test -n "$INTLBISON" && break
 
9412
done
 
9413
 
 
9414
  if test -z "$INTLBISON"; then
 
9415
    ac_verc_fail=yes
 
9416
  else
 
9417
        echo "$as_me:$LINENO: checking version of bison" >&5
 
9418
echo $ECHO_N "checking version of bison... $ECHO_C" >&6
 
9419
    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
 
9420
    case $ac_prog_version in
 
9421
      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
 
9422
      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
 
9423
         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
 
9424
      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
 
9425
    esac
 
9426
    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
 
9427
echo "${ECHO_T}$ac_prog_version" >&6
 
9428
  fi
 
9429
  if test $ac_verc_fail = yes; then
 
9430
    INTLBISON=:
 
9431
  fi
 
9432
 
 
9433
 
 
9434
 
 
9435
 
 
9436
 
 
9437
 
 
9438
 
 
9439
 
 
9440
 
 
9441
 
 
9442
 
 
9443
 
 
9444
 
 
9445
 
 
9446
 
 
9447
 
 
9448
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
9449
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
 
9450
    # Check whether --enable-nls or --disable-nls was given.
 
9451
if test "${enable_nls+set}" = set; then
 
9452
  enableval="$enable_nls"
 
9453
  USE_NLS=$enableval
 
9454
else
 
9455
  USE_NLS=yes
 
9456
fi;
 
9457
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
9458
echo "${ECHO_T}$USE_NLS" >&6
 
9459
 
 
9460
 
 
9461
 
 
9462
 
 
9463
    BUILD_INCLUDED_LIBINTL=no
 
9464
    USE_INCLUDED_LIBINTL=no
 
9465
 
 
9466
  LIBINTL=
 
9467
  LTLIBINTL=
 
9468
  POSUB=
 
9469
 
 
9470
    if test "$USE_NLS" = "yes"; then
 
9471
    gt_use_preinstalled_gnugettext=no
 
9472
 
 
9473
      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
 
9474
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
 
9475
 
 
9476
# Check whether --with-included-gettext or --without-included-gettext was given.
 
9477
if test "${with_included_gettext+set}" = set; then
 
9478
  withval="$with_included_gettext"
 
9479
  nls_cv_force_use_gnu_gettext=$withval
 
9480
else
 
9481
  nls_cv_force_use_gnu_gettext=no
 
9482
fi;
 
9483
      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
 
9484
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
 
9485
 
 
9486
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
 
9487
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
 
9488
 
 
9489
 
 
9490
 
 
9491
 
 
9492
 
 
9493
 
 
9494
        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
9495
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
 
9496
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
 
9497
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9498
else
 
9499
  cat >conftest.$ac_ext <<_ACEOF
 
9500
/* confdefs.h.  */
 
9501
_ACEOF
 
9502
cat confdefs.h >>conftest.$ac_ext
 
9503
cat >>conftest.$ac_ext <<_ACEOF
 
9504
/* end confdefs.h.  */
 
9505
#include <libintl.h>
 
9506
extern int _nl_msg_cat_cntr;
 
9507
extern int *_nl_domain_bindings;
 
9508
int
 
9509
main ()
 
9510
{
 
9511
bindtextdomain ("", "");
 
9512
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
 
9513
  ;
 
9514
  return 0;
 
9515
}
 
9516
_ACEOF
 
9517
rm -f conftest.$ac_objext conftest$ac_exeext
 
9518
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9519
  (eval $ac_link) 2>conftest.er1
 
9520
  ac_status=$?
 
9521
  grep -v '^ *+' conftest.er1 >conftest.err
 
9522
  rm -f conftest.er1
 
9523
  cat conftest.err >&5
 
9524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9525
  (exit $ac_status); } &&
 
9526
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9528
  (eval $ac_try) 2>&5
 
9529
  ac_status=$?
 
9530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9531
  (exit $ac_status); }; } &&
 
9532
         { ac_try='test -s conftest$ac_exeext'
 
9533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9534
  (eval $ac_try) 2>&5
 
9535
  ac_status=$?
 
9536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9537
  (exit $ac_status); }; }; then
 
9538
  gt_cv_func_gnugettext1_libc=yes
 
9539
else
 
9540
  echo "$as_me: failed program was:" >&5
 
9541
sed 's/^/| /' conftest.$ac_ext >&5
 
9542
 
 
9543
gt_cv_func_gnugettext1_libc=no
 
9544
fi
 
9545
rm -f conftest.err conftest.$ac_objext \
 
9546
      conftest$ac_exeext conftest.$ac_ext
 
9547
fi
 
9548
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
 
9549
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
 
9550
 
 
9551
        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
 
9552
 
 
9553
 
 
9554
 
 
9555
    use_additional=yes
 
9556
 
 
9557
  acl_save_prefix="$prefix"
 
9558
  prefix="$acl_final_prefix"
 
9559
  acl_save_exec_prefix="$exec_prefix"
 
9560
  exec_prefix="$acl_final_exec_prefix"
 
9561
 
 
9562
    eval additional_includedir=\"$includedir\"
 
9563
    eval additional_libdir=\"$libdir\"
 
9564
 
 
9565
  exec_prefix="$acl_save_exec_prefix"
 
9566
  prefix="$acl_save_prefix"
 
9567
 
 
9568
 
 
9569
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
 
9570
if test "${with_libintl_prefix+set}" = set; then
 
9571
  withval="$with_libintl_prefix"
 
9572
 
 
9573
    if test "X$withval" = "Xno"; then
 
9574
      use_additional=no
 
9575
    else
 
9576
      if test "X$withval" = "X"; then
 
9577
 
 
9578
  acl_save_prefix="$prefix"
 
9579
  prefix="$acl_final_prefix"
 
9580
  acl_save_exec_prefix="$exec_prefix"
 
9581
  exec_prefix="$acl_final_exec_prefix"
 
9582
 
 
9583
          eval additional_includedir=\"$includedir\"
 
9584
          eval additional_libdir=\"$libdir\"
 
9585
 
 
9586
  exec_prefix="$acl_save_exec_prefix"
 
9587
  prefix="$acl_save_prefix"
 
9588
 
 
9589
      else
 
9590
        additional_includedir="$withval/include"
 
9591
        additional_libdir="$withval/lib"
 
9592
      fi
 
9593
    fi
 
9594
 
 
9595
fi;
 
9596
      LIBINTL=
 
9597
  LTLIBINTL=
 
9598
  INCINTL=
 
9599
  rpathdirs=
 
9600
  ltrpathdirs=
 
9601
  names_already_handled=
 
9602
  names_next_round='intl '
 
9603
  while test -n "$names_next_round"; do
 
9604
    names_this_round="$names_next_round"
 
9605
    names_next_round=
 
9606
    for name in $names_this_round; do
 
9607
      already_handled=
 
9608
      for n in $names_already_handled; do
 
9609
        if test "$n" = "$name"; then
 
9610
          already_handled=yes
 
9611
          break
 
9612
        fi
 
9613
      done
 
9614
      if test -z "$already_handled"; then
 
9615
        names_already_handled="$names_already_handled $name"
 
9616
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
9617
        eval value=\"\$HAVE_LIB$uppername\"
 
9618
        if test -n "$value"; then
 
9619
          if test "$value" = yes; then
 
9620
            eval value=\"\$LIB$uppername\"
 
9621
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
9622
            eval value=\"\$LTLIB$uppername\"
 
9623
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
9624
          else
 
9625
                                    :
 
9626
          fi
 
9627
        else
 
9628
                              found_dir=
 
9629
          found_la=
 
9630
          found_so=
 
9631
          found_a=
 
9632
          if test $use_additional = yes; then
 
9633
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
9634
              found_dir="$additional_libdir"
 
9635
              found_so="$additional_libdir/lib$name.$shlibext"
 
9636
              if test -f "$additional_libdir/lib$name.la"; then
 
9637
                found_la="$additional_libdir/lib$name.la"
 
9638
              fi
 
9639
            else
 
9640
              if test -f "$additional_libdir/lib$name.$libext"; then
 
9641
                found_dir="$additional_libdir"
 
9642
                found_a="$additional_libdir/lib$name.$libext"
 
9643
                if test -f "$additional_libdir/lib$name.la"; then
 
9644
                  found_la="$additional_libdir/lib$name.la"
 
9645
                fi
 
9646
              fi
 
9647
            fi
 
9648
          fi
 
9649
          if test "X$found_dir" = "X"; then
 
9650
            for x in $LDFLAGS $LTLIBINTL; do
 
9651
 
 
9652
  acl_save_prefix="$prefix"
 
9653
  prefix="$acl_final_prefix"
 
9654
  acl_save_exec_prefix="$exec_prefix"
 
9655
  exec_prefix="$acl_final_exec_prefix"
 
9656
  eval x=\"$x\"
 
9657
  exec_prefix="$acl_save_exec_prefix"
 
9658
  prefix="$acl_save_prefix"
 
9659
 
 
9660
              case "$x" in
 
9661
                -L*)
 
9662
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
9663
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
9664
                    found_dir="$dir"
 
9665
                    found_so="$dir/lib$name.$shlibext"
 
9666
                    if test -f "$dir/lib$name.la"; then
 
9667
                      found_la="$dir/lib$name.la"
 
9668
                    fi
 
9669
                  else
 
9670
                    if test -f "$dir/lib$name.$libext"; then
 
9671
                      found_dir="$dir"
 
9672
                      found_a="$dir/lib$name.$libext"
 
9673
                      if test -f "$dir/lib$name.la"; then
 
9674
                        found_la="$dir/lib$name.la"
 
9675
                      fi
 
9676
                    fi
 
9677
                  fi
 
9678
                  ;;
 
9679
              esac
 
9680
              if test "X$found_dir" != "X"; then
 
9681
                break
 
9682
              fi
 
9683
            done
 
9684
          fi
 
9685
          if test "X$found_dir" != "X"; then
 
9686
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
9687
            if test "X$found_so" != "X"; then
 
9688
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
 
9689
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
9690
              else
 
9691
                                                                                haveit=
 
9692
                for x in $ltrpathdirs; do
 
9693
                  if test "X$x" = "X$found_dir"; then
 
9694
                    haveit=yes
 
9695
                    break
 
9696
                  fi
 
9697
                done
 
9698
                if test -z "$haveit"; then
 
9699
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
9700
                fi
 
9701
                                if test "$hardcode_direct" = yes; then
 
9702
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
9703
                else
 
9704
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
9705
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
9706
                                                            haveit=
 
9707
                    for x in $rpathdirs; do
 
9708
                      if test "X$x" = "X$found_dir"; then
 
9709
                        haveit=yes
 
9710
                        break
 
9711
                      fi
 
9712
                    done
 
9713
                    if test -z "$haveit"; then
 
9714
                      rpathdirs="$rpathdirs $found_dir"
 
9715
                    fi
 
9716
                  else
 
9717
                                                                                haveit=
 
9718
                    for x in $LDFLAGS $LIBINTL; do
 
9719
 
 
9720
  acl_save_prefix="$prefix"
 
9721
  prefix="$acl_final_prefix"
 
9722
  acl_save_exec_prefix="$exec_prefix"
 
9723
  exec_prefix="$acl_final_exec_prefix"
 
9724
  eval x=\"$x\"
 
9725
  exec_prefix="$acl_save_exec_prefix"
 
9726
  prefix="$acl_save_prefix"
 
9727
 
 
9728
                      if test "X$x" = "X-L$found_dir"; then
 
9729
                        haveit=yes
 
9730
                        break
 
9731
                      fi
 
9732
                    done
 
9733
                    if test -z "$haveit"; then
 
9734
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
9735
                    fi
 
9736
                    if test "$hardcode_minus_L" != no; then
 
9737
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
9738
                    else
 
9739
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
9740
                    fi
 
9741
                  fi
 
9742
                fi
 
9743
              fi
 
9744
            else
 
9745
              if test "X$found_a" != "X"; then
 
9746
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
9747
              else
 
9748
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
9749
              fi
 
9750
            fi
 
9751
                        additional_includedir=
 
9752
            case "$found_dir" in
 
9753
              */lib | */lib/)
 
9754
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
 
9755
                additional_includedir="$basedir/include"
 
9756
                ;;
 
9757
            esac
 
9758
            if test "X$additional_includedir" != "X"; then
 
9759
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
9760
                haveit=
 
9761
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
9762
                  if test -n "$GCC"; then
 
9763
                    case $host_os in
 
9764
                      linux*) haveit=yes;;
 
9765
                    esac
 
9766
                  fi
 
9767
                fi
 
9768
                if test -z "$haveit"; then
 
9769
                  for x in $CPPFLAGS $INCINTL; do
 
9770
 
 
9771
  acl_save_prefix="$prefix"
 
9772
  prefix="$acl_final_prefix"
 
9773
  acl_save_exec_prefix="$exec_prefix"
 
9774
  exec_prefix="$acl_final_exec_prefix"
 
9775
  eval x=\"$x\"
 
9776
  exec_prefix="$acl_save_exec_prefix"
 
9777
  prefix="$acl_save_prefix"
 
9778
 
 
9779
                    if test "X$x" = "X-I$additional_includedir"; then
 
9780
                      haveit=yes
 
9781
                      break
 
9782
                    fi
 
9783
                  done
 
9784
                  if test -z "$haveit"; then
 
9785
                    if test -d "$additional_includedir"; then
 
9786
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
9787
                    fi
 
9788
                  fi
 
9789
                fi
 
9790
              fi
 
9791
            fi
 
9792
                        if test -n "$found_la"; then
 
9793
                                                        save_libdir="$libdir"
 
9794
              case "$found_la" in
 
9795
                */* | *\\*) . "$found_la" ;;
 
9796
                *) . "./$found_la" ;;
 
9797
              esac
 
9798
              libdir="$save_libdir"
 
9799
                            for dep in $dependency_libs; do
 
9800
                case "$dep" in
 
9801
                  -L*)
 
9802
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
9803
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
 
9804
                      haveit=
 
9805
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
 
9806
                        if test -n "$GCC"; then
 
9807
                          case $host_os in
 
9808
                            linux*) haveit=yes;;
 
9809
                          esac
 
9810
                        fi
 
9811
                      fi
 
9812
                      if test -z "$haveit"; then
 
9813
                        haveit=
 
9814
                        for x in $LDFLAGS $LIBINTL; do
 
9815
 
 
9816
  acl_save_prefix="$prefix"
 
9817
  prefix="$acl_final_prefix"
 
9818
  acl_save_exec_prefix="$exec_prefix"
 
9819
  exec_prefix="$acl_final_exec_prefix"
 
9820
  eval x=\"$x\"
 
9821
  exec_prefix="$acl_save_exec_prefix"
 
9822
  prefix="$acl_save_prefix"
 
9823
 
 
9824
                          if test "X$x" = "X-L$additional_libdir"; then
 
9825
                            haveit=yes
 
9826
                            break
 
9827
                          fi
 
9828
                        done
 
9829
                        if test -z "$haveit"; then
 
9830
                          if test -d "$additional_libdir"; then
 
9831
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
9832
                          fi
 
9833
                        fi
 
9834
                        haveit=
 
9835
                        for x in $LDFLAGS $LTLIBINTL; do
 
9836
 
 
9837
  acl_save_prefix="$prefix"
 
9838
  prefix="$acl_final_prefix"
 
9839
  acl_save_exec_prefix="$exec_prefix"
 
9840
  exec_prefix="$acl_final_exec_prefix"
 
9841
  eval x=\"$x\"
 
9842
  exec_prefix="$acl_save_exec_prefix"
 
9843
  prefix="$acl_save_prefix"
 
9844
 
 
9845
                          if test "X$x" = "X-L$additional_libdir"; then
 
9846
                            haveit=yes
 
9847
                            break
 
9848
                          fi
 
9849
                        done
 
9850
                        if test -z "$haveit"; then
 
9851
                          if test -d "$additional_libdir"; then
 
9852
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
9853
                          fi
 
9854
                        fi
 
9855
                      fi
 
9856
                    fi
 
9857
                    ;;
 
9858
                  -R*)
 
9859
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
9860
                    if test "$enable_rpath" != no; then
 
9861
                                                                  haveit=
 
9862
                      for x in $rpathdirs; do
 
9863
                        if test "X$x" = "X$dir"; then
 
9864
                          haveit=yes
 
9865
                          break
 
9866
                        fi
 
9867
                      done
 
9868
                      if test -z "$haveit"; then
 
9869
                        rpathdirs="$rpathdirs $dir"
 
9870
                      fi
 
9871
                                                                  haveit=
 
9872
                      for x in $ltrpathdirs; do
 
9873
                        if test "X$x" = "X$dir"; then
 
9874
                          haveit=yes
 
9875
                          break
 
9876
                        fi
 
9877
                      done
 
9878
                      if test -z "$haveit"; then
 
9879
                        ltrpathdirs="$ltrpathdirs $dir"
 
9880
                      fi
 
9881
                    fi
 
9882
                    ;;
 
9883
                  -l*)
 
9884
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
9885
                    ;;
 
9886
                  *.la)
 
9887
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
9888
                    ;;
 
9889
                  *)
 
9890
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
9891
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
9892
                    ;;
 
9893
                esac
 
9894
              done
 
9895
            fi
 
9896
          else
 
9897
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
9898
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
9899
          fi
 
9900
        fi
 
9901
      fi
 
9902
    done
 
9903
  done
 
9904
  if test "X$rpathdirs" != "X"; then
 
9905
    if test -n "$hardcode_libdir_separator"; then
 
9906
                        alldirs=
 
9907
      for found_dir in $rpathdirs; do
 
9908
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
9909
      done
 
9910
            acl_save_libdir="$libdir"
 
9911
      libdir="$alldirs"
 
9912
      eval flag=\"$hardcode_libdir_flag_spec\"
 
9913
      libdir="$acl_save_libdir"
 
9914
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
9915
    else
 
9916
            for found_dir in $rpathdirs; do
 
9917
        acl_save_libdir="$libdir"
 
9918
        libdir="$found_dir"
 
9919
        eval flag=\"$hardcode_libdir_flag_spec\"
 
9920
        libdir="$acl_save_libdir"
 
9921
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
9922
      done
 
9923
    fi
 
9924
  fi
 
9925
  if test "X$ltrpathdirs" != "X"; then
 
9926
            for found_dir in $ltrpathdirs; do
 
9927
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
9928
    done
 
9929
  fi
 
9930
 
 
9931
          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
 
9932
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
 
9933
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
 
9934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9935
else
 
9936
  gt_save_CPPFLAGS="$CPPFLAGS"
 
9937
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
9938
            gt_save_LIBS="$LIBS"
 
9939
            LIBS="$LIBS $LIBINTL"
 
9940
                        cat >conftest.$ac_ext <<_ACEOF
 
9941
/* confdefs.h.  */
 
9942
_ACEOF
 
9943
cat confdefs.h >>conftest.$ac_ext
 
9944
cat >>conftest.$ac_ext <<_ACEOF
 
9945
/* end confdefs.h.  */
 
9946
#include <libintl.h>
 
9947
extern int _nl_msg_cat_cntr;
 
9948
extern
 
9949
#ifdef __cplusplus
 
9950
"C"
 
9951
#endif
 
9952
const char *_nl_expand_alias ();
 
9953
int
 
9954
main ()
 
9955
{
 
9956
bindtextdomain ("", "");
 
9957
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
9958
  ;
 
9959
  return 0;
 
9960
}
 
9961
_ACEOF
 
9962
rm -f conftest.$ac_objext conftest$ac_exeext
 
9963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9964
  (eval $ac_link) 2>conftest.er1
 
9965
  ac_status=$?
 
9966
  grep -v '^ *+' conftest.er1 >conftest.err
 
9967
  rm -f conftest.er1
 
9968
  cat conftest.err >&5
 
9969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9970
  (exit $ac_status); } &&
 
9971
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9973
  (eval $ac_try) 2>&5
 
9974
  ac_status=$?
 
9975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9976
  (exit $ac_status); }; } &&
 
9977
         { ac_try='test -s conftest$ac_exeext'
 
9978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9979
  (eval $ac_try) 2>&5
 
9980
  ac_status=$?
 
9981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9982
  (exit $ac_status); }; }; then
 
9983
  gt_cv_func_gnugettext1_libintl=yes
 
9984
else
 
9985
  echo "$as_me: failed program was:" >&5
 
9986
sed 's/^/| /' conftest.$ac_ext >&5
 
9987
 
 
9988
gt_cv_func_gnugettext1_libintl=no
 
9989
fi
 
9990
rm -f conftest.err conftest.$ac_objext \
 
9991
      conftest$ac_exeext conftest.$ac_ext
 
9992
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
 
9993
              LIBS="$LIBS $LIBICONV"
 
9994
              cat >conftest.$ac_ext <<_ACEOF
 
9995
/* confdefs.h.  */
 
9996
_ACEOF
 
9997
cat confdefs.h >>conftest.$ac_ext
 
9998
cat >>conftest.$ac_ext <<_ACEOF
 
9999
/* end confdefs.h.  */
 
10000
#include <libintl.h>
 
10001
extern int _nl_msg_cat_cntr;
 
10002
extern
 
10003
#ifdef __cplusplus
 
10004
"C"
 
10005
#endif
 
10006
const char *_nl_expand_alias ();
 
10007
int
 
10008
main ()
 
10009
{
 
10010
bindtextdomain ("", "");
 
10011
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
 
10012
  ;
 
10013
  return 0;
 
10014
}
 
10015
_ACEOF
 
10016
rm -f conftest.$ac_objext conftest$ac_exeext
 
10017
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10018
  (eval $ac_link) 2>conftest.er1
 
10019
  ac_status=$?
 
10020
  grep -v '^ *+' conftest.er1 >conftest.err
 
10021
  rm -f conftest.er1
 
10022
  cat conftest.err >&5
 
10023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10024
  (exit $ac_status); } &&
 
10025
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10026
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10027
  (eval $ac_try) 2>&5
 
10028
  ac_status=$?
 
10029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10030
  (exit $ac_status); }; } &&
 
10031
         { ac_try='test -s conftest$ac_exeext'
 
10032
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10033
  (eval $ac_try) 2>&5
 
10034
  ac_status=$?
 
10035
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10036
  (exit $ac_status); }; }; then
 
10037
  LIBINTL="$LIBINTL $LIBICONV"
 
10038
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
10039
                gt_cv_func_gnugettext1_libintl=yes
 
10040
 
 
10041
else
 
10042
  echo "$as_me: failed program was:" >&5
 
10043
sed 's/^/| /' conftest.$ac_ext >&5
 
10044
 
 
10045
fi
 
10046
rm -f conftest.err conftest.$ac_objext \
 
10047
      conftest$ac_exeext conftest.$ac_ext
 
10048
            fi
 
10049
            CPPFLAGS="$gt_save_CPPFLAGS"
 
10050
            LIBS="$gt_save_LIBS"
 
10051
fi
 
10052
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
 
10053
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
 
10054
        fi
 
10055
 
 
10056
                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
 
10057
           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
 
10058
                && test "$PACKAGE" != gettext-runtime \
 
10059
                && test "$PACKAGE" != gettext-tools; }; then
 
10060
          gt_use_preinstalled_gnugettext=yes
 
10061
        else
 
10062
                    LIBINTL=
 
10063
          LTLIBINTL=
 
10064
          INCINTL=
 
10065
        fi
 
10066
 
 
10067
 
 
10068
        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
 
10069
                              nls_cv_use_gnu_gettext=yes
 
10070
        fi
 
10071
      fi
 
10072
 
 
10073
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
 
10074
                BUILD_INCLUDED_LIBINTL=yes
 
10075
        USE_INCLUDED_LIBINTL=yes
 
10076
        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
 
10077
        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
 
10078
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
 
10079
      fi
 
10080
 
 
10081
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
10082
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
10083
                CATOBJEXT=.gmo
 
10084
      fi
 
10085
 
 
10086
 
 
10087
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
10088
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
10089
 
 
10090
cat >>confdefs.h <<\_ACEOF
 
10091
#define ENABLE_NLS 1
 
10092
_ACEOF
 
10093
 
 
10094
    else
 
10095
      USE_NLS=no
 
10096
    fi
 
10097
  fi
 
10098
 
 
10099
  echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
10100
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
 
10101
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
10102
echo "${ECHO_T}$USE_NLS" >&6
 
10103
  if test "$USE_NLS" = "yes"; then
 
10104
    echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
10105
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
 
10106
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
10107
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
10108
        gt_source="external libintl"
 
10109
      else
 
10110
        gt_source="libc"
 
10111
      fi
 
10112
    else
 
10113
      gt_source="included intl directory"
 
10114
    fi
 
10115
    echo "$as_me:$LINENO: result: $gt_source" >&5
 
10116
echo "${ECHO_T}$gt_source" >&6
 
10117
  fi
 
10118
 
 
10119
  if test "$USE_NLS" = "yes"; then
 
10120
 
 
10121
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
10122
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
 
10123
        echo "$as_me:$LINENO: checking how to link with libintl" >&5
 
10124
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
 
10125
        echo "$as_me:$LINENO: result: $LIBINTL" >&5
 
10126
echo "${ECHO_T}$LIBINTL" >&6
 
10127
 
 
10128
  for element in $INCINTL; do
 
10129
    haveit=
 
10130
    for x in $CPPFLAGS; do
 
10131
 
 
10132
  acl_save_prefix="$prefix"
 
10133
  prefix="$acl_final_prefix"
 
10134
  acl_save_exec_prefix="$exec_prefix"
 
10135
  exec_prefix="$acl_final_exec_prefix"
 
10136
  eval x=\"$x\"
 
10137
  exec_prefix="$acl_save_exec_prefix"
 
10138
  prefix="$acl_save_prefix"
 
10139
 
 
10140
      if test "X$x" = "X$element"; then
 
10141
        haveit=yes
 
10142
        break
 
10143
      fi
 
10144
    done
 
10145
    if test -z "$haveit"; then
 
10146
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
10147
    fi
 
10148
  done
 
10149
 
 
10150
      fi
 
10151
 
 
10152
 
 
10153
cat >>confdefs.h <<\_ACEOF
 
10154
#define HAVE_GETTEXT 1
 
10155
_ACEOF
 
10156
 
 
10157
 
 
10158
cat >>confdefs.h <<\_ACEOF
 
10159
#define HAVE_DCGETTEXT 1
 
10160
_ACEOF
 
10161
 
 
10162
    fi
 
10163
 
 
10164
        POSUB=po
 
10165
  fi
 
10166
 
 
10167
 
 
10168
            if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
 
10169
      BUILD_INCLUDED_LIBINTL=yes
 
10170
    fi
 
10171
 
 
10172
 
 
10173
 
 
10174
 
 
10175
 
 
10176
        nls_cv_header_intl=
 
10177
    nls_cv_header_libgt=
 
10178
 
 
10179
        DATADIRNAME=share
 
10180
 
 
10181
 
 
10182
        INSTOBJEXT=.mo
 
10183
 
 
10184
 
 
10185
        GENCAT=gencat
 
10186
 
 
10187
 
 
10188
        if test "$USE_INCLUDED_LIBINTL" = yes; then
 
10189
      INTLOBJS="\$(GETTOBJS)"
 
10190
    fi
 
10191
 
 
10192
 
 
10193
        INTL_LIBTOOL_SUFFIX_PREFIX=
 
10194
 
 
10195
 
 
10196
 
 
10197
    INTLLIBS="$LIBINTL"
 
10198
 
 
10199
 
 
10200
 
 
10201
 
 
10202
 
 
10203
 
 
10204
 
 
10205
# find pkg-config
 
10206
# Extract the first word of "pkg-config", so it can be a program name with args.
 
10207
set dummy pkg-config; ac_word=$2
 
10208
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
10209
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
10210
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
10211
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10212
else
 
10213
  case $PKG_CONFIG in
 
10214
  [\\/]* | ?:[\\/]*)
 
10215
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
10216
  ;;
 
10217
  *)
 
10218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
10219
for as_dir in $PATH
 
10220
do
 
10221
  IFS=$as_save_IFS
 
10222
  test -z "$as_dir" && as_dir=.
 
10223
  for ac_exec_ext in '' $ac_executable_extensions; do
 
10224
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
10225
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
10226
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
10227
    break 2
 
10228
  fi
 
10229
done
 
10230
done
 
10231
 
 
10232
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
10233
  ;;
 
10234
esac
 
10235
fi
 
10236
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
10237
 
 
10238
if test -n "$PKG_CONFIG"; then
 
10239
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
10240
echo "${ECHO_T}$PKG_CONFIG" >&6
 
10241
else
 
10242
  echo "$as_me:$LINENO: result: no" >&5
 
10243
echo "${ECHO_T}no" >&6
 
10244
fi
 
10245
 
 
10246
if test x$PKG_CONFIG = xno ; then
 
10247
  { { echo "$as_me:$LINENO: error: *** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/" >&5
 
10248
echo "$as_me: error: *** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/" >&2;}
 
10249
   { (exit 1); exit 1; }; }
 
10250
fi
 
10251
 
 
10252
# checks for libraries.
 
10253
 
 
10254
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10255
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10256
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10257
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10258
else
 
10259
  ac_check_lib_save_LIBS=$LIBS
 
10260
LIBS="-ldl  $LIBS"
 
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
 
 
10268
/* Override any gcc2 internal prototype to avoid an error.  */
 
10269
#ifdef __cplusplus
 
10270
extern "C"
 
10271
#endif
 
10272
/* We use char because int might match the return type of a gcc2
 
10273
   builtin and then its argument prototype would still apply.  */
 
10274
char dlopen ();
 
10275
int
 
10276
main ()
 
10277
{
 
10278
dlopen ();
 
10279
  ;
 
10280
  return 0;
 
10281
}
 
10282
_ACEOF
 
10283
rm -f conftest.$ac_objext conftest$ac_exeext
 
10284
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10285
  (eval $ac_link) 2>conftest.er1
 
10286
  ac_status=$?
 
10287
  grep -v '^ *+' conftest.er1 >conftest.err
 
10288
  rm -f conftest.er1
 
10289
  cat conftest.err >&5
 
10290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10291
  (exit $ac_status); } &&
 
10292
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10294
  (eval $ac_try) 2>&5
 
10295
  ac_status=$?
 
10296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10297
  (exit $ac_status); }; } &&
 
10298
         { ac_try='test -s conftest$ac_exeext'
 
10299
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10300
  (eval $ac_try) 2>&5
 
10301
  ac_status=$?
 
10302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10303
  (exit $ac_status); }; }; then
 
10304
  ac_cv_lib_dl_dlopen=yes
 
10305
else
 
10306
  echo "$as_me: failed program was:" >&5
 
10307
sed 's/^/| /' conftest.$ac_ext >&5
 
10308
 
 
10309
ac_cv_lib_dl_dlopen=no
 
10310
fi
 
10311
rm -f conftest.err conftest.$ac_objext \
 
10312
      conftest$ac_exeext conftest.$ac_ext
 
10313
LIBS=$ac_check_lib_save_LIBS
 
10314
fi
 
10315
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10316
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
10317
if test $ac_cv_lib_dl_dlopen = yes; then
 
10318
  cat >>confdefs.h <<_ACEOF
 
10319
#define HAVE_LIBDL 1
 
10320
_ACEOF
 
10321
 
 
10322
  LIBS="-ldl $LIBS"
 
10323
 
 
10324
fi
 
10325
 
 
10326
 
 
10327
echo "$as_me:$LINENO: checking for pow in -lm" >&5
 
10328
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
 
10329
if test "${ac_cv_lib_m_pow+set}" = set; then
 
10330
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10331
else
 
10332
  ac_check_lib_save_LIBS=$LIBS
 
10333
LIBS="-lm  $LIBS"
 
10334
cat >conftest.$ac_ext <<_ACEOF
 
10335
/* confdefs.h.  */
 
10336
_ACEOF
 
10337
cat confdefs.h >>conftest.$ac_ext
 
10338
cat >>conftest.$ac_ext <<_ACEOF
 
10339
/* end confdefs.h.  */
 
10340
 
 
10341
/* Override any gcc2 internal prototype to avoid an error.  */
 
10342
#ifdef __cplusplus
 
10343
extern "C"
 
10344
#endif
 
10345
/* We use char because int might match the return type of a gcc2
 
10346
   builtin and then its argument prototype would still apply.  */
 
10347
char pow ();
 
10348
int
 
10349
main ()
 
10350
{
 
10351
pow ();
 
10352
  ;
 
10353
  return 0;
 
10354
}
 
10355
_ACEOF
 
10356
rm -f conftest.$ac_objext conftest$ac_exeext
 
10357
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10358
  (eval $ac_link) 2>conftest.er1
 
10359
  ac_status=$?
 
10360
  grep -v '^ *+' conftest.er1 >conftest.err
 
10361
  rm -f conftest.er1
 
10362
  cat conftest.err >&5
 
10363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10364
  (exit $ac_status); } &&
 
10365
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10366
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10367
  (eval $ac_try) 2>&5
 
10368
  ac_status=$?
 
10369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10370
  (exit $ac_status); }; } &&
 
10371
         { ac_try='test -s conftest$ac_exeext'
 
10372
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10373
  (eval $ac_try) 2>&5
 
10374
  ac_status=$?
 
10375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10376
  (exit $ac_status); }; }; then
 
10377
  ac_cv_lib_m_pow=yes
 
10378
else
 
10379
  echo "$as_me: failed program was:" >&5
 
10380
sed 's/^/| /' conftest.$ac_ext >&5
 
10381
 
 
10382
ac_cv_lib_m_pow=no
 
10383
fi
 
10384
rm -f conftest.err conftest.$ac_objext \
 
10385
      conftest$ac_exeext conftest.$ac_ext
 
10386
LIBS=$ac_check_lib_save_LIBS
 
10387
fi
 
10388
echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
 
10389
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
 
10390
if test $ac_cv_lib_m_pow = yes; then
 
10391
  cat >>confdefs.h <<_ACEOF
 
10392
#define HAVE_LIBM 1
 
10393
_ACEOF
 
10394
 
 
10395
  LIBS="-lm $LIBS"
 
10396
 
 
10397
fi
 
10398
 
 
10399
 
 
10400
echo "$as_me:$LINENO: checking for jpeg_std_error in -ljpeg" >&5
 
10401
echo $ECHO_N "checking for jpeg_std_error in -ljpeg... $ECHO_C" >&6
 
10402
if test "${ac_cv_lib_jpeg_jpeg_std_error+set}" = set; then
 
10403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10404
else
 
10405
  ac_check_lib_save_LIBS=$LIBS
 
10406
LIBS="-ljpeg  $LIBS"
 
10407
cat >conftest.$ac_ext <<_ACEOF
 
10408
/* confdefs.h.  */
 
10409
_ACEOF
 
10410
cat confdefs.h >>conftest.$ac_ext
 
10411
cat >>conftest.$ac_ext <<_ACEOF
 
10412
/* end confdefs.h.  */
 
10413
 
 
10414
/* Override any gcc2 internal prototype to avoid an error.  */
 
10415
#ifdef __cplusplus
 
10416
extern "C"
 
10417
#endif
 
10418
/* We use char because int might match the return type of a gcc2
 
10419
   builtin and then its argument prototype would still apply.  */
 
10420
char jpeg_std_error ();
 
10421
int
 
10422
main ()
 
10423
{
 
10424
jpeg_std_error ();
 
10425
  ;
 
10426
  return 0;
 
10427
}
 
10428
_ACEOF
 
10429
rm -f conftest.$ac_objext conftest$ac_exeext
 
10430
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10431
  (eval $ac_link) 2>conftest.er1
 
10432
  ac_status=$?
 
10433
  grep -v '^ *+' conftest.er1 >conftest.err
 
10434
  rm -f conftest.er1
 
10435
  cat conftest.err >&5
 
10436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10437
  (exit $ac_status); } &&
 
10438
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10440
  (eval $ac_try) 2>&5
 
10441
  ac_status=$?
 
10442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10443
  (exit $ac_status); }; } &&
 
10444
         { ac_try='test -s conftest$ac_exeext'
 
10445
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10446
  (eval $ac_try) 2>&5
 
10447
  ac_status=$?
 
10448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10449
  (exit $ac_status); }; }; then
 
10450
  ac_cv_lib_jpeg_jpeg_std_error=yes
 
10451
else
 
10452
  echo "$as_me: failed program was:" >&5
 
10453
sed 's/^/| /' conftest.$ac_ext >&5
 
10454
 
 
10455
ac_cv_lib_jpeg_jpeg_std_error=no
 
10456
fi
 
10457
rm -f conftest.err conftest.$ac_objext \
 
10458
      conftest$ac_exeext conftest.$ac_ext
 
10459
LIBS=$ac_check_lib_save_LIBS
 
10460
fi
 
10461
echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_std_error" >&5
 
10462
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_std_error" >&6
 
10463
if test $ac_cv_lib_jpeg_jpeg_std_error = yes; then
 
10464
  cat >>confdefs.h <<_ACEOF
 
10465
#define HAVE_LIBJPEG 1
 
10466
_ACEOF
 
10467
 
 
10468
  LIBS="-ljpeg $LIBS"
 
10469
 
 
10470
fi
 
10471
 
 
10472
 
 
10473
# checks for header files.
 
10474
echo "$as_me:$LINENO: checking for X" >&5
 
10475
echo $ECHO_N "checking for X... $ECHO_C" >&6
 
10476
 
 
10477
ac_path_x_has_been_run=yes
 
10478
 
 
10479
# Check whether --with-x or --without-x was given.
 
10480
if test "${with_x+set}" = set; then
 
10481
  withval="$with_x"
 
10482
 
 
10483
fi;
 
10484
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
 
10485
if test "x$with_x" = xno; then
 
10486
  # The user explicitly disabled X.
 
10487
  have_x=disabled
 
10488
else
 
10489
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 
10490
    # Both variables are already set.
 
10491
    have_x=yes
 
10492
  else
 
10493
    if test "${ac_cv_have_x+set}" = set; then
 
10494
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10495
else
 
10496
  # One or both of the vars are not set, and there is no cached value.
 
10497
ac_x_includes=no ac_x_libraries=no
 
10498
rm -fr conftest.dir
 
10499
if mkdir conftest.dir; then
 
10500
  cd conftest.dir
 
10501
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
10502
  cat >Imakefile <<'_ACEOF'
 
10503
acfindx:
 
10504
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
10505
_ACEOF
 
10506
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
10507
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
10508
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
10509
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
10510
    for ac_extension in a so sl; do
 
10511
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
 
10512
         test -f $ac_im_libdir/libX11.$ac_extension; then
 
10513
        ac_im_usrlibdir=$ac_im_libdir; break
 
10514
      fi
 
10515
    done
 
10516
    # Screen out bogus values from the imake configuration.  They are
 
10517
    # bogus both because they are the default anyway, and because
 
10518
    # using them would break gcc on systems where it needs fixed includes.
 
10519
    case $ac_im_incroot in
 
10520
        /usr/include) ;;
 
10521
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
 
10522
    esac
 
10523
    case $ac_im_usrlibdir in
 
10524
        /usr/lib | /lib) ;;
 
10525
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
 
10526
    esac
 
10527
  fi
 
10528
  cd ..
 
10529
  rm -fr conftest.dir
 
10530
fi
 
10531
 
 
10532
# Standard set of common directories for X headers.
 
10533
# Check X11 before X11Rn because it is often a symlink to the current release.
 
10534
ac_x_header_dirs='
 
10535
/usr/X11/include
 
10536
/usr/X11R6/include
 
10537
/usr/X11R5/include
 
10538
/usr/X11R4/include
 
10539
 
 
10540
/usr/include/X11
 
10541
/usr/include/X11R6
 
10542
/usr/include/X11R5
 
10543
/usr/include/X11R4
 
10544
 
 
10545
/usr/local/X11/include
 
10546
/usr/local/X11R6/include
 
10547
/usr/local/X11R5/include
 
10548
/usr/local/X11R4/include
 
10549
 
 
10550
/usr/local/include/X11
 
10551
/usr/local/include/X11R6
 
10552
/usr/local/include/X11R5
 
10553
/usr/local/include/X11R4
 
10554
 
 
10555
/usr/X386/include
 
10556
/usr/x386/include
 
10557
/usr/XFree86/include/X11
 
10558
 
 
10559
/usr/include
 
10560
/usr/local/include
 
10561
/usr/unsupported/include
 
10562
/usr/athena/include
 
10563
/usr/local/x11r5/include
 
10564
/usr/lpp/Xamples/include
 
10565
 
 
10566
/usr/openwin/include
 
10567
/usr/openwin/share/include'
 
10568
 
 
10569
if test "$ac_x_includes" = no; then
 
10570
  # Guess where to find include files, by looking for a specified header file.
 
10571
  # First, try using that file with no special directory specified.
 
10572
  cat >conftest.$ac_ext <<_ACEOF
 
10573
/* confdefs.h.  */
 
10574
_ACEOF
 
10575
cat confdefs.h >>conftest.$ac_ext
 
10576
cat >>conftest.$ac_ext <<_ACEOF
 
10577
/* end confdefs.h.  */
 
10578
#include <X11/Intrinsic.h>
 
10579
_ACEOF
 
10580
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
10581
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
10582
  ac_status=$?
 
10583
  grep -v '^ *+' conftest.er1 >conftest.err
 
10584
  rm -f conftest.er1
 
10585
  cat conftest.err >&5
 
10586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10587
  (exit $ac_status); } >/dev/null; then
 
10588
  if test -s conftest.err; then
 
10589
    ac_cpp_err=$ac_c_preproc_warn_flag
 
10590
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
10591
  else
 
10592
    ac_cpp_err=
 
10593
  fi
 
10594
else
 
10595
  ac_cpp_err=yes
 
10596
fi
 
10597
if test -z "$ac_cpp_err"; then
 
10598
  # We can compile using X headers with no special include directory.
 
10599
ac_x_includes=
 
10600
else
 
10601
  echo "$as_me: failed program was:" >&5
 
10602
sed 's/^/| /' conftest.$ac_ext >&5
 
10603
 
 
10604
  for ac_dir in $ac_x_header_dirs; do
 
10605
  if test -r "$ac_dir/X11/Intrinsic.h"; then
 
10606
    ac_x_includes=$ac_dir
 
10607
    break
 
10608
  fi
 
10609
done
 
10610
fi
 
10611
rm -f conftest.err conftest.$ac_ext
 
10612
fi # $ac_x_includes = no
 
10613
 
 
10614
if test "$ac_x_libraries" = no; then
 
10615
  # Check for the libraries.
 
10616
  # See if we find them without any special options.
 
10617
  # Don't add to $LIBS permanently.
 
10618
  ac_save_LIBS=$LIBS
 
10619
  LIBS="-lXt $LIBS"
 
10620
  cat >conftest.$ac_ext <<_ACEOF
 
10621
/* confdefs.h.  */
 
10622
_ACEOF
 
10623
cat confdefs.h >>conftest.$ac_ext
 
10624
cat >>conftest.$ac_ext <<_ACEOF
 
10625
/* end confdefs.h.  */
 
10626
#include <X11/Intrinsic.h>
 
10627
int
 
10628
main ()
 
10629
{
 
10630
XtMalloc (0)
 
10631
  ;
 
10632
  return 0;
 
10633
}
 
10634
_ACEOF
 
10635
rm -f conftest.$ac_objext conftest$ac_exeext
 
10636
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10637
  (eval $ac_link) 2>conftest.er1
 
10638
  ac_status=$?
 
10639
  grep -v '^ *+' conftest.er1 >conftest.err
 
10640
  rm -f conftest.er1
 
10641
  cat conftest.err >&5
 
10642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10643
  (exit $ac_status); } &&
 
10644
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10645
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10646
  (eval $ac_try) 2>&5
 
10647
  ac_status=$?
 
10648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10649
  (exit $ac_status); }; } &&
 
10650
         { ac_try='test -s conftest$ac_exeext'
 
10651
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10652
  (eval $ac_try) 2>&5
 
10653
  ac_status=$?
 
10654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10655
  (exit $ac_status); }; }; then
 
10656
  LIBS=$ac_save_LIBS
 
10657
# We can link X programs with no special library path.
 
10658
ac_x_libraries=
 
10659
else
 
10660
  echo "$as_me: failed program was:" >&5
 
10661
sed 's/^/| /' conftest.$ac_ext >&5
 
10662
 
 
10663
LIBS=$ac_save_LIBS
 
10664
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
 
10665
do
 
10666
  # Don't even attempt the hair of trying to link an X program!
 
10667
  for ac_extension in a so sl; do
 
10668
    if test -r $ac_dir/libXt.$ac_extension; then
 
10669
      ac_x_libraries=$ac_dir
 
10670
      break 2
 
10671
    fi
 
10672
  done
 
10673
done
 
10674
fi
 
10675
rm -f conftest.err conftest.$ac_objext \
 
10676
      conftest$ac_exeext conftest.$ac_ext
 
10677
fi # $ac_x_libraries = no
 
10678
 
 
10679
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
 
10680
  # Didn't find X anywhere.  Cache the known absence of X.
 
10681
  ac_cv_have_x="have_x=no"
 
10682
else
 
10683
  # Record where we found X for the cache.
 
10684
  ac_cv_have_x="have_x=yes \
 
10685
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
 
10686
fi
 
10687
fi
 
10688
 
 
10689
  fi
 
10690
  eval "$ac_cv_have_x"
 
10691
fi # $with_x != no
 
10692
 
 
10693
if test "$have_x" != yes; then
 
10694
  echo "$as_me:$LINENO: result: $have_x" >&5
 
10695
echo "${ECHO_T}$have_x" >&6
 
10696
  no_x=yes
 
10697
else
 
10698
  # If each of the values was on the command line, it overrides each guess.
 
10699
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
 
10700
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
 
10701
  # Update the cache value to reflect the command line values.
 
10702
  ac_cv_have_x="have_x=yes \
 
10703
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
 
10704
  # It might be that x_includes is empty (headers are found in the
 
10705
  # standard search path. Then output the corresponding message
 
10706
  ac_out_x_includes=$x_includes
 
10707
  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
 
10708
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
 
10709
echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
 
10710
fi
 
10711
 
 
10712
 
 
10713
 
 
10714
 
 
10715
 
 
10716
 
 
10717
ac_header_dirent=no
 
10718
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
10719
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
10720
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
10721
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
 
10722
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
10723
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10724
else
 
10725
  cat >conftest.$ac_ext <<_ACEOF
 
10726
/* confdefs.h.  */
 
10727
_ACEOF
 
10728
cat confdefs.h >>conftest.$ac_ext
 
10729
cat >>conftest.$ac_ext <<_ACEOF
 
10730
/* end confdefs.h.  */
 
10731
#include <sys/types.h>
 
10732
#include <$ac_hdr>
 
10733
 
 
10734
int
 
10735
main ()
 
10736
{
 
10737
if ((DIR *) 0)
 
10738
return 0;
 
10739
  ;
 
10740
  return 0;
 
10741
}
 
10742
_ACEOF
 
10743
rm -f conftest.$ac_objext
 
10744
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10745
  (eval $ac_compile) 2>conftest.er1
 
10746
  ac_status=$?
 
10747
  grep -v '^ *+' conftest.er1 >conftest.err
 
10748
  rm -f conftest.er1
 
10749
  cat conftest.err >&5
 
10750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10751
  (exit $ac_status); } &&
 
10752
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10754
  (eval $ac_try) 2>&5
 
10755
  ac_status=$?
 
10756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10757
  (exit $ac_status); }; } &&
 
10758
         { ac_try='test -s conftest.$ac_objext'
 
10759
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10760
  (eval $ac_try) 2>&5
 
10761
  ac_status=$?
 
10762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10763
  (exit $ac_status); }; }; then
 
10764
  eval "$as_ac_Header=yes"
 
10765
else
 
10766
  echo "$as_me: failed program was:" >&5
 
10767
sed 's/^/| /' conftest.$ac_ext >&5
 
10768
 
 
10769
eval "$as_ac_Header=no"
 
10770
fi
 
10771
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
10772
fi
 
10773
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
10774
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
10775
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
10776
  cat >>confdefs.h <<_ACEOF
 
10777
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
10778
_ACEOF
 
10779
 
 
10780
ac_header_dirent=$ac_hdr; break
 
10781
fi
 
10782
 
 
10783
done
 
10784
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
10785
if test $ac_header_dirent = dirent.h; then
 
10786
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
10787
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
10788
if test "${ac_cv_search_opendir+set}" = set; then
 
10789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10790
else
 
10791
  ac_func_search_save_LIBS=$LIBS
 
10792
ac_cv_search_opendir=no
 
10793
cat >conftest.$ac_ext <<_ACEOF
 
10794
/* confdefs.h.  */
 
10795
_ACEOF
 
10796
cat confdefs.h >>conftest.$ac_ext
 
10797
cat >>conftest.$ac_ext <<_ACEOF
 
10798
/* end confdefs.h.  */
 
10799
 
 
10800
/* Override any gcc2 internal prototype to avoid an error.  */
 
10801
#ifdef __cplusplus
 
10802
extern "C"
 
10803
#endif
 
10804
/* We use char because int might match the return type of a gcc2
 
10805
   builtin and then its argument prototype would still apply.  */
 
10806
char opendir ();
 
10807
int
 
10808
main ()
 
10809
{
 
10810
opendir ();
 
10811
  ;
 
10812
  return 0;
 
10813
}
 
10814
_ACEOF
 
10815
rm -f conftest.$ac_objext conftest$ac_exeext
 
10816
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10817
  (eval $ac_link) 2>conftest.er1
 
10818
  ac_status=$?
 
10819
  grep -v '^ *+' conftest.er1 >conftest.err
 
10820
  rm -f conftest.er1
 
10821
  cat conftest.err >&5
 
10822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10823
  (exit $ac_status); } &&
 
10824
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10826
  (eval $ac_try) 2>&5
 
10827
  ac_status=$?
 
10828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10829
  (exit $ac_status); }; } &&
 
10830
         { ac_try='test -s conftest$ac_exeext'
 
10831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10832
  (eval $ac_try) 2>&5
 
10833
  ac_status=$?
 
10834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10835
  (exit $ac_status); }; }; then
 
10836
  ac_cv_search_opendir="none required"
 
10837
else
 
10838
  echo "$as_me: failed program was:" >&5
 
10839
sed 's/^/| /' conftest.$ac_ext >&5
 
10840
 
 
10841
fi
 
10842
rm -f conftest.err conftest.$ac_objext \
 
10843
      conftest$ac_exeext conftest.$ac_ext
 
10844
if test "$ac_cv_search_opendir" = no; then
 
10845
  for ac_lib in dir; do
 
10846
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10847
    cat >conftest.$ac_ext <<_ACEOF
 
10848
/* confdefs.h.  */
 
10849
_ACEOF
 
10850
cat confdefs.h >>conftest.$ac_ext
 
10851
cat >>conftest.$ac_ext <<_ACEOF
 
10852
/* end confdefs.h.  */
 
10853
 
 
10854
/* Override any gcc2 internal prototype to avoid an error.  */
 
10855
#ifdef __cplusplus
 
10856
extern "C"
 
10857
#endif
 
10858
/* We use char because int might match the return type of a gcc2
 
10859
   builtin and then its argument prototype would still apply.  */
 
10860
char opendir ();
 
10861
int
 
10862
main ()
 
10863
{
 
10864
opendir ();
 
10865
  ;
 
10866
  return 0;
 
10867
}
 
10868
_ACEOF
 
10869
rm -f conftest.$ac_objext conftest$ac_exeext
 
10870
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10871
  (eval $ac_link) 2>conftest.er1
 
10872
  ac_status=$?
 
10873
  grep -v '^ *+' conftest.er1 >conftest.err
 
10874
  rm -f conftest.er1
 
10875
  cat conftest.err >&5
 
10876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10877
  (exit $ac_status); } &&
 
10878
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10880
  (eval $ac_try) 2>&5
 
10881
  ac_status=$?
 
10882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10883
  (exit $ac_status); }; } &&
 
10884
         { ac_try='test -s conftest$ac_exeext'
 
10885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10886
  (eval $ac_try) 2>&5
 
10887
  ac_status=$?
 
10888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10889
  (exit $ac_status); }; }; then
 
10890
  ac_cv_search_opendir="-l$ac_lib"
 
10891
break
 
10892
else
 
10893
  echo "$as_me: failed program was:" >&5
 
10894
sed 's/^/| /' conftest.$ac_ext >&5
 
10895
 
 
10896
fi
 
10897
rm -f conftest.err conftest.$ac_objext \
 
10898
      conftest$ac_exeext conftest.$ac_ext
 
10899
  done
 
10900
fi
 
10901
LIBS=$ac_func_search_save_LIBS
 
10902
fi
 
10903
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
10904
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
10905
if test "$ac_cv_search_opendir" != no; then
 
10906
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
10907
 
 
10908
fi
 
10909
 
 
10910
else
 
10911
  echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
10912
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
 
10913
if test "${ac_cv_search_opendir+set}" = set; then
 
10914
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10915
else
 
10916
  ac_func_search_save_LIBS=$LIBS
 
10917
ac_cv_search_opendir=no
 
10918
cat >conftest.$ac_ext <<_ACEOF
 
10919
/* confdefs.h.  */
 
10920
_ACEOF
 
10921
cat confdefs.h >>conftest.$ac_ext
 
10922
cat >>conftest.$ac_ext <<_ACEOF
 
10923
/* end confdefs.h.  */
 
10924
 
 
10925
/* Override any gcc2 internal prototype to avoid an error.  */
 
10926
#ifdef __cplusplus
 
10927
extern "C"
 
10928
#endif
 
10929
/* We use char because int might match the return type of a gcc2
 
10930
   builtin and then its argument prototype would still apply.  */
 
10931
char opendir ();
 
10932
int
 
10933
main ()
 
10934
{
 
10935
opendir ();
 
10936
  ;
 
10937
  return 0;
 
10938
}
 
10939
_ACEOF
 
10940
rm -f conftest.$ac_objext conftest$ac_exeext
 
10941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10942
  (eval $ac_link) 2>conftest.er1
 
10943
  ac_status=$?
 
10944
  grep -v '^ *+' conftest.er1 >conftest.err
 
10945
  rm -f conftest.er1
 
10946
  cat conftest.err >&5
 
10947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10948
  (exit $ac_status); } &&
 
10949
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
10950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10951
  (eval $ac_try) 2>&5
 
10952
  ac_status=$?
 
10953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10954
  (exit $ac_status); }; } &&
 
10955
         { ac_try='test -s conftest$ac_exeext'
 
10956
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10957
  (eval $ac_try) 2>&5
 
10958
  ac_status=$?
 
10959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10960
  (exit $ac_status); }; }; then
 
10961
  ac_cv_search_opendir="none required"
 
10962
else
 
10963
  echo "$as_me: failed program was:" >&5
 
10964
sed 's/^/| /' conftest.$ac_ext >&5
 
10965
 
 
10966
fi
 
10967
rm -f conftest.err conftest.$ac_objext \
 
10968
      conftest$ac_exeext conftest.$ac_ext
 
10969
if test "$ac_cv_search_opendir" = no; then
 
10970
  for ac_lib in x; do
 
10971
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10972
    cat >conftest.$ac_ext <<_ACEOF
 
10973
/* confdefs.h.  */
 
10974
_ACEOF
 
10975
cat confdefs.h >>conftest.$ac_ext
 
10976
cat >>conftest.$ac_ext <<_ACEOF
 
10977
/* end confdefs.h.  */
 
10978
 
 
10979
/* Override any gcc2 internal prototype to avoid an error.  */
 
10980
#ifdef __cplusplus
 
10981
extern "C"
 
10982
#endif
 
10983
/* We use char because int might match the return type of a gcc2
 
10984
   builtin and then its argument prototype would still apply.  */
 
10985
char opendir ();
 
10986
int
 
10987
main ()
 
10988
{
 
10989
opendir ();
 
10990
  ;
 
10991
  return 0;
 
10992
}
 
10993
_ACEOF
 
10994
rm -f conftest.$ac_objext conftest$ac_exeext
 
10995
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10996
  (eval $ac_link) 2>conftest.er1
 
10997
  ac_status=$?
 
10998
  grep -v '^ *+' conftest.er1 >conftest.err
 
10999
  rm -f conftest.er1
 
11000
  cat conftest.err >&5
 
11001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11002
  (exit $ac_status); } &&
 
11003
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11004
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11005
  (eval $ac_try) 2>&5
 
11006
  ac_status=$?
 
11007
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11008
  (exit $ac_status); }; } &&
 
11009
         { ac_try='test -s conftest$ac_exeext'
 
11010
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11011
  (eval $ac_try) 2>&5
 
11012
  ac_status=$?
 
11013
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11014
  (exit $ac_status); }; }; then
 
11015
  ac_cv_search_opendir="-l$ac_lib"
 
11016
break
 
11017
else
 
11018
  echo "$as_me: failed program was:" >&5
 
11019
sed 's/^/| /' conftest.$ac_ext >&5
 
11020
 
 
11021
fi
 
11022
rm -f conftest.err conftest.$ac_objext \
 
11023
      conftest$ac_exeext conftest.$ac_ext
 
11024
  done
 
11025
fi
 
11026
LIBS=$ac_func_search_save_LIBS
 
11027
fi
 
11028
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
11029
echo "${ECHO_T}$ac_cv_search_opendir" >&6
 
11030
if test "$ac_cv_search_opendir" != no; then
 
11031
  test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
 
11032
 
 
11033
fi
 
11034
 
 
11035
fi
 
11036
 
 
11037
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
11038
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
11039
if test "${ac_cv_header_stdc+set}" = set; then
 
11040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11041
else
 
11042
  cat >conftest.$ac_ext <<_ACEOF
 
11043
/* confdefs.h.  */
 
11044
_ACEOF
 
11045
cat confdefs.h >>conftest.$ac_ext
 
11046
cat >>conftest.$ac_ext <<_ACEOF
 
11047
/* end confdefs.h.  */
 
11048
#include <stdlib.h>
 
11049
#include <stdarg.h>
 
11050
#include <string.h>
 
11051
#include <float.h>
 
11052
 
 
11053
int
 
11054
main ()
 
11055
{
 
11056
 
 
11057
  ;
 
11058
  return 0;
 
11059
}
 
11060
_ACEOF
 
11061
rm -f conftest.$ac_objext
 
11062
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11063
  (eval $ac_compile) 2>conftest.er1
 
11064
  ac_status=$?
 
11065
  grep -v '^ *+' conftest.er1 >conftest.err
 
11066
  rm -f conftest.er1
 
11067
  cat conftest.err >&5
 
11068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11069
  (exit $ac_status); } &&
 
11070
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11071
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11072
  (eval $ac_try) 2>&5
 
11073
  ac_status=$?
 
11074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11075
  (exit $ac_status); }; } &&
 
11076
         { ac_try='test -s conftest.$ac_objext'
 
11077
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11078
  (eval $ac_try) 2>&5
 
11079
  ac_status=$?
 
11080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11081
  (exit $ac_status); }; }; then
 
11082
  ac_cv_header_stdc=yes
 
11083
else
 
11084
  echo "$as_me: failed program was:" >&5
 
11085
sed 's/^/| /' conftest.$ac_ext >&5
 
11086
 
 
11087
ac_cv_header_stdc=no
 
11088
fi
 
11089
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11090
 
 
11091
if test $ac_cv_header_stdc = yes; then
 
11092
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
11093
  cat >conftest.$ac_ext <<_ACEOF
 
11094
/* confdefs.h.  */
 
11095
_ACEOF
 
11096
cat confdefs.h >>conftest.$ac_ext
 
11097
cat >>conftest.$ac_ext <<_ACEOF
 
11098
/* end confdefs.h.  */
 
11099
#include <string.h>
 
11100
 
 
11101
_ACEOF
 
11102
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11103
  $EGREP "memchr" >/dev/null 2>&1; then
 
11104
  :
 
11105
else
 
11106
  ac_cv_header_stdc=no
 
11107
fi
 
11108
rm -f conftest*
 
11109
 
 
11110
fi
 
11111
 
 
11112
if test $ac_cv_header_stdc = yes; then
 
11113
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
11114
  cat >conftest.$ac_ext <<_ACEOF
 
11115
/* confdefs.h.  */
 
11116
_ACEOF
 
11117
cat confdefs.h >>conftest.$ac_ext
 
11118
cat >>conftest.$ac_ext <<_ACEOF
 
11119
/* end confdefs.h.  */
 
11120
#include <stdlib.h>
 
11121
 
 
11122
_ACEOF
 
11123
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11124
  $EGREP "free" >/dev/null 2>&1; then
 
11125
  :
 
11126
else
 
11127
  ac_cv_header_stdc=no
 
11128
fi
 
11129
rm -f conftest*
 
11130
 
 
11131
fi
 
11132
 
 
11133
if test $ac_cv_header_stdc = yes; then
 
11134
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
11135
  if test "$cross_compiling" = yes; then
 
11136
  :
 
11137
else
 
11138
  cat >conftest.$ac_ext <<_ACEOF
 
11139
/* confdefs.h.  */
 
11140
_ACEOF
 
11141
cat confdefs.h >>conftest.$ac_ext
 
11142
cat >>conftest.$ac_ext <<_ACEOF
 
11143
/* end confdefs.h.  */
 
11144
#include <ctype.h>
 
11145
#if ((' ' & 0x0FF) == 0x020)
 
11146
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
11147
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
11148
#else
 
11149
# define ISLOWER(c) \
 
11150
                   (('a' <= (c) && (c) <= 'i') \
 
11151
                     || ('j' <= (c) && (c) <= 'r') \
 
11152
                     || ('s' <= (c) && (c) <= 'z'))
 
11153
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
11154
#endif
 
11155
 
 
11156
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
11157
int
 
11158
main ()
 
11159
{
 
11160
  int i;
 
11161
  for (i = 0; i < 256; i++)
 
11162
    if (XOR (islower (i), ISLOWER (i))
 
11163
        || toupper (i) != TOUPPER (i))
 
11164
      exit(2);
 
11165
  exit (0);
 
11166
}
 
11167
_ACEOF
 
11168
rm -f conftest$ac_exeext
 
11169
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11170
  (eval $ac_link) 2>&5
 
11171
  ac_status=$?
 
11172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11173
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
11174
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11175
  (eval $ac_try) 2>&5
 
11176
  ac_status=$?
 
11177
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11178
  (exit $ac_status); }; }; then
 
11179
  :
 
11180
else
 
11181
  echo "$as_me: program exited with status $ac_status" >&5
 
11182
echo "$as_me: failed program was:" >&5
 
11183
sed 's/^/| /' conftest.$ac_ext >&5
 
11184
 
 
11185
( exit $ac_status )
 
11186
ac_cv_header_stdc=no
 
11187
fi
 
11188
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
11189
fi
 
11190
fi
 
11191
fi
 
11192
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
11193
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
11194
if test $ac_cv_header_stdc = yes; then
 
11195
 
 
11196
cat >>confdefs.h <<\_ACEOF
 
11197
#define STDC_HEADERS 1
 
11198
_ACEOF
 
11199
 
 
11200
fi
 
11201
 
 
11202
echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
 
11203
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
 
11204
if test "${ac_cv_header_stat_broken+set}" = set; then
 
11205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11206
else
 
11207
  cat >conftest.$ac_ext <<_ACEOF
 
11208
/* confdefs.h.  */
 
11209
_ACEOF
 
11210
cat confdefs.h >>conftest.$ac_ext
 
11211
cat >>conftest.$ac_ext <<_ACEOF
 
11212
/* end confdefs.h.  */
 
11213
#include <sys/types.h>
 
11214
#include <sys/stat.h>
 
11215
 
 
11216
#if defined(S_ISBLK) && defined(S_IFDIR)
 
11217
# if S_ISBLK (S_IFDIR)
 
11218
You lose.
 
11219
# endif
 
11220
#endif
 
11221
 
 
11222
#if defined(S_ISBLK) && defined(S_IFCHR)
 
11223
# if S_ISBLK (S_IFCHR)
 
11224
You lose.
 
11225
# endif
 
11226
#endif
 
11227
 
 
11228
#if defined(S_ISLNK) && defined(S_IFREG)
 
11229
# if S_ISLNK (S_IFREG)
 
11230
You lose.
 
11231
# endif
 
11232
#endif
 
11233
 
 
11234
#if defined(S_ISSOCK) && defined(S_IFREG)
 
11235
# if S_ISSOCK (S_IFREG)
 
11236
You lose.
 
11237
# endif
 
11238
#endif
 
11239
 
 
11240
_ACEOF
 
11241
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
11242
  $EGREP "You lose" >/dev/null 2>&1; then
 
11243
  ac_cv_header_stat_broken=yes
 
11244
else
 
11245
  ac_cv_header_stat_broken=no
 
11246
fi
 
11247
rm -f conftest*
 
11248
 
 
11249
fi
 
11250
echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
 
11251
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
 
11252
if test $ac_cv_header_stat_broken = yes; then
 
11253
 
 
11254
cat >>confdefs.h <<\_ACEOF
 
11255
#define STAT_MACROS_BROKEN 1
 
11256
_ACEOF
 
11257
 
 
11258
fi
 
11259
 
 
11260
 
 
11261
 
 
11262
 
 
11263
 
 
11264
 
 
11265
 
 
11266
 
 
11267
 
 
11268
 
 
11269
 
 
11270
 
 
11271
for ac_header in strings.h unistd.h malloc.h sys/file.h fcntl.h direct.h alloca.h errno.h sys/time.h utime.h sys/param.h
 
11272
do
 
11273
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11274
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11275
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11276
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11277
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11278
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11279
fi
 
11280
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11281
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11282
else
 
11283
  # Is the header compilable?
 
11284
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11285
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11286
cat >conftest.$ac_ext <<_ACEOF
 
11287
/* confdefs.h.  */
 
11288
_ACEOF
 
11289
cat confdefs.h >>conftest.$ac_ext
 
11290
cat >>conftest.$ac_ext <<_ACEOF
 
11291
/* end confdefs.h.  */
 
11292
$ac_includes_default
 
11293
#include <$ac_header>
 
11294
_ACEOF
 
11295
rm -f conftest.$ac_objext
 
11296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11297
  (eval $ac_compile) 2>conftest.er1
 
11298
  ac_status=$?
 
11299
  grep -v '^ *+' conftest.er1 >conftest.err
 
11300
  rm -f conftest.er1
 
11301
  cat conftest.err >&5
 
11302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11303
  (exit $ac_status); } &&
 
11304
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11305
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11306
  (eval $ac_try) 2>&5
 
11307
  ac_status=$?
 
11308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11309
  (exit $ac_status); }; } &&
 
11310
         { ac_try='test -s conftest.$ac_objext'
 
11311
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11312
  (eval $ac_try) 2>&5
 
11313
  ac_status=$?
 
11314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11315
  (exit $ac_status); }; }; then
 
11316
  ac_header_compiler=yes
 
11317
else
 
11318
  echo "$as_me: failed program was:" >&5
 
11319
sed 's/^/| /' conftest.$ac_ext >&5
 
11320
 
 
11321
ac_header_compiler=no
 
11322
fi
 
11323
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11324
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11325
echo "${ECHO_T}$ac_header_compiler" >&6
 
11326
 
 
11327
# Is the header present?
 
11328
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11329
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11330
cat >conftest.$ac_ext <<_ACEOF
 
11331
/* confdefs.h.  */
 
11332
_ACEOF
 
11333
cat confdefs.h >>conftest.$ac_ext
 
11334
cat >>conftest.$ac_ext <<_ACEOF
 
11335
/* end confdefs.h.  */
 
11336
#include <$ac_header>
 
11337
_ACEOF
 
11338
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11339
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11340
  ac_status=$?
 
11341
  grep -v '^ *+' conftest.er1 >conftest.err
 
11342
  rm -f conftest.er1
 
11343
  cat conftest.err >&5
 
11344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11345
  (exit $ac_status); } >/dev/null; then
 
11346
  if test -s conftest.err; then
 
11347
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11348
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11349
  else
 
11350
    ac_cpp_err=
 
11351
  fi
 
11352
else
 
11353
  ac_cpp_err=yes
 
11354
fi
 
11355
if test -z "$ac_cpp_err"; then
 
11356
  ac_header_preproc=yes
 
11357
else
 
11358
  echo "$as_me: failed program was:" >&5
 
11359
sed 's/^/| /' conftest.$ac_ext >&5
 
11360
 
 
11361
  ac_header_preproc=no
 
11362
fi
 
11363
rm -f conftest.err conftest.$ac_ext
 
11364
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11365
echo "${ECHO_T}$ac_header_preproc" >&6
 
11366
 
 
11367
# So?  What about this header?
 
11368
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11369
  yes:no: )
 
11370
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11371
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11372
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11373
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11374
    ac_header_preproc=yes
 
11375
    ;;
 
11376
  no:yes:* )
 
11377
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11378
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11379
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11380
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11381
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11382
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11383
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11384
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11385
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11386
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11387
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11388
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11389
    (
 
11390
      cat <<\_ASBOX
 
11391
## ------------------------------------------ ##
 
11392
## Report this to the AC_PACKAGE_NAME lists.  ##
 
11393
## ------------------------------------------ ##
 
11394
_ASBOX
 
11395
    ) |
 
11396
      sed "s/^/$as_me: WARNING:     /" >&2
 
11397
    ;;
 
11398
esac
 
11399
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11400
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11401
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11402
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11403
else
 
11404
  eval "$as_ac_Header=\$ac_header_preproc"
 
11405
fi
 
11406
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11407
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11408
 
 
11409
fi
 
11410
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11411
  cat >>confdefs.h <<_ACEOF
 
11412
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11413
_ACEOF
 
11414
 
 
11415
fi
 
11416
 
 
11417
done
 
11418
 
 
11419
 
 
11420
for ac_header in stdint.h
 
11421
do
 
11422
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11423
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11424
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11425
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11426
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11427
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11428
fi
 
11429
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11430
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11431
else
 
11432
  # Is the header compilable?
 
11433
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11434
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11435
cat >conftest.$ac_ext <<_ACEOF
 
11436
/* confdefs.h.  */
 
11437
_ACEOF
 
11438
cat confdefs.h >>conftest.$ac_ext
 
11439
cat >>conftest.$ac_ext <<_ACEOF
 
11440
/* end confdefs.h.  */
 
11441
$ac_includes_default
 
11442
#include <$ac_header>
 
11443
_ACEOF
 
11444
rm -f conftest.$ac_objext
 
11445
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11446
  (eval $ac_compile) 2>conftest.er1
 
11447
  ac_status=$?
 
11448
  grep -v '^ *+' conftest.er1 >conftest.err
 
11449
  rm -f conftest.er1
 
11450
  cat conftest.err >&5
 
11451
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11452
  (exit $ac_status); } &&
 
11453
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11454
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11455
  (eval $ac_try) 2>&5
 
11456
  ac_status=$?
 
11457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11458
  (exit $ac_status); }; } &&
 
11459
         { ac_try='test -s conftest.$ac_objext'
 
11460
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11461
  (eval $ac_try) 2>&5
 
11462
  ac_status=$?
 
11463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11464
  (exit $ac_status); }; }; then
 
11465
  ac_header_compiler=yes
 
11466
else
 
11467
  echo "$as_me: failed program was:" >&5
 
11468
sed 's/^/| /' conftest.$ac_ext >&5
 
11469
 
 
11470
ac_header_compiler=no
 
11471
fi
 
11472
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11473
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11474
echo "${ECHO_T}$ac_header_compiler" >&6
 
11475
 
 
11476
# Is the header present?
 
11477
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11478
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11479
cat >conftest.$ac_ext <<_ACEOF
 
11480
/* confdefs.h.  */
 
11481
_ACEOF
 
11482
cat confdefs.h >>conftest.$ac_ext
 
11483
cat >>conftest.$ac_ext <<_ACEOF
 
11484
/* end confdefs.h.  */
 
11485
#include <$ac_header>
 
11486
_ACEOF
 
11487
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11488
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11489
  ac_status=$?
 
11490
  grep -v '^ *+' conftest.er1 >conftest.err
 
11491
  rm -f conftest.er1
 
11492
  cat conftest.err >&5
 
11493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11494
  (exit $ac_status); } >/dev/null; then
 
11495
  if test -s conftest.err; then
 
11496
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11497
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11498
  else
 
11499
    ac_cpp_err=
 
11500
  fi
 
11501
else
 
11502
  ac_cpp_err=yes
 
11503
fi
 
11504
if test -z "$ac_cpp_err"; then
 
11505
  ac_header_preproc=yes
 
11506
else
 
11507
  echo "$as_me: failed program was:" >&5
 
11508
sed 's/^/| /' conftest.$ac_ext >&5
 
11509
 
 
11510
  ac_header_preproc=no
 
11511
fi
 
11512
rm -f conftest.err conftest.$ac_ext
 
11513
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11514
echo "${ECHO_T}$ac_header_preproc" >&6
 
11515
 
 
11516
# So?  What about this header?
 
11517
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11518
  yes:no: )
 
11519
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11520
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11521
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11522
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11523
    ac_header_preproc=yes
 
11524
    ;;
 
11525
  no:yes:* )
 
11526
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11527
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11528
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11529
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11530
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11531
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11532
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11533
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11534
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11535
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11536
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11537
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11538
    (
 
11539
      cat <<\_ASBOX
 
11540
## ------------------------------------------ ##
 
11541
## Report this to the AC_PACKAGE_NAME lists.  ##
 
11542
## ------------------------------------------ ##
 
11543
_ASBOX
 
11544
    ) |
 
11545
      sed "s/^/$as_me: WARNING:     /" >&2
 
11546
    ;;
 
11547
esac
 
11548
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11549
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11550
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11552
else
 
11553
  eval "$as_ac_Header=\$ac_header_preproc"
 
11554
fi
 
11555
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11556
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11557
 
 
11558
fi
 
11559
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11560
  cat >>confdefs.h <<_ACEOF
 
11561
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11562
_ACEOF
 
11563
 
 
11564
fi
 
11565
 
 
11566
done
 
11567
 
 
11568
 
 
11569
 
 
11570
for ac_header in locale.h libintl.h
 
11571
do
 
11572
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
11573
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11574
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11575
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11576
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11578
fi
 
11579
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11580
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11581
else
 
11582
  # Is the header compilable?
 
11583
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
11584
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
11585
cat >conftest.$ac_ext <<_ACEOF
 
11586
/* confdefs.h.  */
 
11587
_ACEOF
 
11588
cat confdefs.h >>conftest.$ac_ext
 
11589
cat >>conftest.$ac_ext <<_ACEOF
 
11590
/* end confdefs.h.  */
 
11591
$ac_includes_default
 
11592
#include <$ac_header>
 
11593
_ACEOF
 
11594
rm -f conftest.$ac_objext
 
11595
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11596
  (eval $ac_compile) 2>conftest.er1
 
11597
  ac_status=$?
 
11598
  grep -v '^ *+' conftest.er1 >conftest.err
 
11599
  rm -f conftest.er1
 
11600
  cat conftest.err >&5
 
11601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11602
  (exit $ac_status); } &&
 
11603
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11604
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11605
  (eval $ac_try) 2>&5
 
11606
  ac_status=$?
 
11607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11608
  (exit $ac_status); }; } &&
 
11609
         { ac_try='test -s conftest.$ac_objext'
 
11610
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11611
  (eval $ac_try) 2>&5
 
11612
  ac_status=$?
 
11613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11614
  (exit $ac_status); }; }; then
 
11615
  ac_header_compiler=yes
 
11616
else
 
11617
  echo "$as_me: failed program was:" >&5
 
11618
sed 's/^/| /' conftest.$ac_ext >&5
 
11619
 
 
11620
ac_header_compiler=no
 
11621
fi
 
11622
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11623
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11624
echo "${ECHO_T}$ac_header_compiler" >&6
 
11625
 
 
11626
# Is the header present?
 
11627
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
11628
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
11629
cat >conftest.$ac_ext <<_ACEOF
 
11630
/* confdefs.h.  */
 
11631
_ACEOF
 
11632
cat confdefs.h >>conftest.$ac_ext
 
11633
cat >>conftest.$ac_ext <<_ACEOF
 
11634
/* end confdefs.h.  */
 
11635
#include <$ac_header>
 
11636
_ACEOF
 
11637
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11638
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11639
  ac_status=$?
 
11640
  grep -v '^ *+' conftest.er1 >conftest.err
 
11641
  rm -f conftest.er1
 
11642
  cat conftest.err >&5
 
11643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11644
  (exit $ac_status); } >/dev/null; then
 
11645
  if test -s conftest.err; then
 
11646
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11647
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11648
  else
 
11649
    ac_cpp_err=
 
11650
  fi
 
11651
else
 
11652
  ac_cpp_err=yes
 
11653
fi
 
11654
if test -z "$ac_cpp_err"; then
 
11655
  ac_header_preproc=yes
 
11656
else
 
11657
  echo "$as_me: failed program was:" >&5
 
11658
sed 's/^/| /' conftest.$ac_ext >&5
 
11659
 
 
11660
  ac_header_preproc=no
 
11661
fi
 
11662
rm -f conftest.err conftest.$ac_ext
 
11663
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11664
echo "${ECHO_T}$ac_header_preproc" >&6
 
11665
 
 
11666
# So?  What about this header?
 
11667
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11668
  yes:no: )
 
11669
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
11670
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11671
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
11672
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
11673
    ac_header_preproc=yes
 
11674
    ;;
 
11675
  no:yes:* )
 
11676
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
11677
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
11678
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
11679
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
11680
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
11681
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
11682
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
11683
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11684
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
11685
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
11686
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
11687
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
11688
    (
 
11689
      cat <<\_ASBOX
 
11690
## ------------------------------------------ ##
 
11691
## Report this to the AC_PACKAGE_NAME lists.  ##
 
11692
## ------------------------------------------ ##
 
11693
_ASBOX
 
11694
    ) |
 
11695
      sed "s/^/$as_me: WARNING:     /" >&2
 
11696
    ;;
 
11697
esac
 
11698
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
11699
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
11700
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
11701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11702
else
 
11703
  eval "$as_ac_Header=\$ac_header_preproc"
 
11704
fi
 
11705
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
11706
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
11707
 
 
11708
fi
 
11709
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
11710
  cat >>confdefs.h <<_ACEOF
 
11711
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
11712
_ACEOF
 
11713
 
 
11714
fi
 
11715
 
 
11716
done
 
11717
 
 
11718
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
11719
  echo "$as_me:$LINENO: checking for jpeglib.h" >&5
 
11720
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
 
11721
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
11722
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11723
fi
 
11724
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
 
11725
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
 
11726
else
 
11727
  # Is the header compilable?
 
11728
echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
 
11729
echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
 
11730
cat >conftest.$ac_ext <<_ACEOF
 
11731
/* confdefs.h.  */
 
11732
_ACEOF
 
11733
cat confdefs.h >>conftest.$ac_ext
 
11734
cat >>conftest.$ac_ext <<_ACEOF
 
11735
/* end confdefs.h.  */
 
11736
$ac_includes_default
 
11737
#include <jpeglib.h>
 
11738
_ACEOF
 
11739
rm -f conftest.$ac_objext
 
11740
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11741
  (eval $ac_compile) 2>conftest.er1
 
11742
  ac_status=$?
 
11743
  grep -v '^ *+' conftest.er1 >conftest.err
 
11744
  rm -f conftest.er1
 
11745
  cat conftest.err >&5
 
11746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11747
  (exit $ac_status); } &&
 
11748
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11750
  (eval $ac_try) 2>&5
 
11751
  ac_status=$?
 
11752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11753
  (exit $ac_status); }; } &&
 
11754
         { ac_try='test -s conftest.$ac_objext'
 
11755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11756
  (eval $ac_try) 2>&5
 
11757
  ac_status=$?
 
11758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11759
  (exit $ac_status); }; }; then
 
11760
  ac_header_compiler=yes
 
11761
else
 
11762
  echo "$as_me: failed program was:" >&5
 
11763
sed 's/^/| /' conftest.$ac_ext >&5
 
11764
 
 
11765
ac_header_compiler=no
 
11766
fi
 
11767
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11768
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
11769
echo "${ECHO_T}$ac_header_compiler" >&6
 
11770
 
 
11771
# Is the header present?
 
11772
echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
 
11773
echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
 
11774
cat >conftest.$ac_ext <<_ACEOF
 
11775
/* confdefs.h.  */
 
11776
_ACEOF
 
11777
cat confdefs.h >>conftest.$ac_ext
 
11778
cat >>conftest.$ac_ext <<_ACEOF
 
11779
/* end confdefs.h.  */
 
11780
#include <jpeglib.h>
 
11781
_ACEOF
 
11782
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
11783
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
11784
  ac_status=$?
 
11785
  grep -v '^ *+' conftest.er1 >conftest.err
 
11786
  rm -f conftest.er1
 
11787
  cat conftest.err >&5
 
11788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11789
  (exit $ac_status); } >/dev/null; then
 
11790
  if test -s conftest.err; then
 
11791
    ac_cpp_err=$ac_c_preproc_warn_flag
 
11792
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
11793
  else
 
11794
    ac_cpp_err=
 
11795
  fi
 
11796
else
 
11797
  ac_cpp_err=yes
 
11798
fi
 
11799
if test -z "$ac_cpp_err"; then
 
11800
  ac_header_preproc=yes
 
11801
else
 
11802
  echo "$as_me: failed program was:" >&5
 
11803
sed 's/^/| /' conftest.$ac_ext >&5
 
11804
 
 
11805
  ac_header_preproc=no
 
11806
fi
 
11807
rm -f conftest.err conftest.$ac_ext
 
11808
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
11809
echo "${ECHO_T}$ac_header_preproc" >&6
 
11810
 
 
11811
# So?  What about this header?
 
11812
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
11813
  yes:no: )
 
11814
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
11815
echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
11816
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
 
11817
echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
 
11818
    ac_header_preproc=yes
 
11819
    ;;
 
11820
  no:yes:* )
 
11821
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
 
11822
echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
 
11823
    { echo "$as_me:$LINENO: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&5
 
11824
echo "$as_me: WARNING: jpeglib.h:     check for missing prerequisite headers?" >&2;}
 
11825
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
 
11826
echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
 
11827
    { echo "$as_me:$LINENO: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&5
 
11828
echo "$as_me: WARNING: jpeglib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
11829
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
 
11830
echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
 
11831
    { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
 
11832
echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
 
11833
    (
 
11834
      cat <<\_ASBOX
 
11835
## ------------------------------------------ ##
 
11836
## Report this to the AC_PACKAGE_NAME lists.  ##
 
11837
## ------------------------------------------ ##
 
11838
_ASBOX
 
11839
    ) |
 
11840
      sed "s/^/$as_me: WARNING:     /" >&2
 
11841
    ;;
 
11842
esac
 
11843
echo "$as_me:$LINENO: checking for jpeglib.h" >&5
 
11844
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
 
11845
if test "${ac_cv_header_jpeglib_h+set}" = set; then
 
11846
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11847
else
 
11848
  ac_cv_header_jpeglib_h=$ac_header_preproc
 
11849
fi
 
11850
echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
 
11851
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
 
11852
 
 
11853
fi
 
11854
 
 
11855
 
 
11856
echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
 
11857
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
 
11858
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
 
11859
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11860
else
 
11861
  cat >conftest.$ac_ext <<_ACEOF
 
11862
/* confdefs.h.  */
 
11863
_ACEOF
 
11864
cat confdefs.h >>conftest.$ac_ext
 
11865
cat >>conftest.$ac_ext <<_ACEOF
 
11866
/* end confdefs.h.  */
 
11867
$ac_includes_default
 
11868
int
 
11869
main ()
 
11870
{
 
11871
static struct stat ac_aggr;
 
11872
if (ac_aggr.st_blksize)
 
11873
return 0;
 
11874
  ;
 
11875
  return 0;
 
11876
}
 
11877
_ACEOF
 
11878
rm -f conftest.$ac_objext
 
11879
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11880
  (eval $ac_compile) 2>conftest.er1
 
11881
  ac_status=$?
 
11882
  grep -v '^ *+' conftest.er1 >conftest.err
 
11883
  rm -f conftest.er1
 
11884
  cat conftest.err >&5
 
11885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11886
  (exit $ac_status); } &&
 
11887
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11889
  (eval $ac_try) 2>&5
 
11890
  ac_status=$?
 
11891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11892
  (exit $ac_status); }; } &&
 
11893
         { ac_try='test -s conftest.$ac_objext'
 
11894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11895
  (eval $ac_try) 2>&5
 
11896
  ac_status=$?
 
11897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11898
  (exit $ac_status); }; }; then
 
11899
  ac_cv_member_struct_stat_st_blksize=yes
 
11900
else
 
11901
  echo "$as_me: failed program was:" >&5
 
11902
sed 's/^/| /' conftest.$ac_ext >&5
 
11903
 
 
11904
cat >conftest.$ac_ext <<_ACEOF
 
11905
/* confdefs.h.  */
 
11906
_ACEOF
 
11907
cat confdefs.h >>conftest.$ac_ext
 
11908
cat >>conftest.$ac_ext <<_ACEOF
 
11909
/* end confdefs.h.  */
 
11910
$ac_includes_default
 
11911
int
 
11912
main ()
 
11913
{
 
11914
static struct stat ac_aggr;
 
11915
if (sizeof ac_aggr.st_blksize)
 
11916
return 0;
 
11917
  ;
 
11918
  return 0;
 
11919
}
 
11920
_ACEOF
 
11921
rm -f conftest.$ac_objext
 
11922
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11923
  (eval $ac_compile) 2>conftest.er1
 
11924
  ac_status=$?
 
11925
  grep -v '^ *+' conftest.er1 >conftest.err
 
11926
  rm -f conftest.er1
 
11927
  cat conftest.err >&5
 
11928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11929
  (exit $ac_status); } &&
 
11930
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
11931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11932
  (eval $ac_try) 2>&5
 
11933
  ac_status=$?
 
11934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11935
  (exit $ac_status); }; } &&
 
11936
         { ac_try='test -s conftest.$ac_objext'
 
11937
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11938
  (eval $ac_try) 2>&5
 
11939
  ac_status=$?
 
11940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11941
  (exit $ac_status); }; }; then
 
11942
  ac_cv_member_struct_stat_st_blksize=yes
 
11943
else
 
11944
  echo "$as_me: failed program was:" >&5
 
11945
sed 's/^/| /' conftest.$ac_ext >&5
 
11946
 
 
11947
ac_cv_member_struct_stat_st_blksize=no
 
11948
fi
 
11949
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11950
fi
 
11951
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
11952
fi
 
11953
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
 
11954
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
 
11955
if test $ac_cv_member_struct_stat_st_blksize = yes; then
 
11956
 
 
11957
cat >>confdefs.h <<_ACEOF
 
11958
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
 
11959
_ACEOF
 
11960
 
 
11961
 
 
11962
fi
 
11963
 
 
11964
 
 
11965
# checks for typedefs, structures, and compiler characteristics.
 
11966
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
11967
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
 
11968
if test "${ac_cv_c_const+set}" = set; then
 
11969
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11970
else
 
11971
  cat >conftest.$ac_ext <<_ACEOF
 
11972
/* confdefs.h.  */
 
11973
_ACEOF
 
11974
cat confdefs.h >>conftest.$ac_ext
 
11975
cat >>conftest.$ac_ext <<_ACEOF
 
11976
/* end confdefs.h.  */
 
11977
 
 
11978
int
 
11979
main ()
 
11980
{
 
11981
/* FIXME: Include the comments suggested by Paul. */
 
11982
#ifndef __cplusplus
 
11983
  /* Ultrix mips cc rejects this.  */
 
11984
  typedef int charset[2];
 
11985
  const charset x;
 
11986
  /* SunOS 4.1.1 cc rejects this.  */
 
11987
  char const *const *ccp;
 
11988
  char **p;
 
11989
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
11990
  struct point {int x, y;};
 
11991
  static struct point const zero = {0,0};
 
11992
  /* AIX XL C 1.02.0.0 rejects this.
 
11993
     It does not let you subtract one const X* pointer from another in
 
11994
     an arm of an if-expression whose if-part is not a constant
 
11995
     expression */
 
11996
  const char *g = "string";
 
11997
  ccp = &g + (g ? g-g : 0);
 
11998
  /* HPUX 7.0 cc rejects these. */
 
11999
  ++ccp;
 
12000
  p = (char**) ccp;
 
12001
  ccp = (char const *const *) p;
 
12002
  { /* SCO 3.2v4 cc rejects this.  */
 
12003
    char *t;
 
12004
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
12005
 
 
12006
    *t++ = 0;
 
12007
  }
 
12008
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
12009
    int x[] = {25, 17};
 
12010
    const int *foo = &x[0];
 
12011
    ++foo;
 
12012
  }
 
12013
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
12014
    typedef const int *iptr;
 
12015
    iptr p = 0;
 
12016
    ++p;
 
12017
  }
 
12018
  { /* AIX XL C 1.02.0.0 rejects this saying
 
12019
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
12020
    struct s { int j; const int *ap[3]; };
 
12021
    struct s *b; b->j = 5;
 
12022
  }
 
12023
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
12024
    const int foo = 10;
 
12025
  }
 
12026
#endif
 
12027
 
 
12028
  ;
 
12029
  return 0;
 
12030
}
 
12031
_ACEOF
 
12032
rm -f conftest.$ac_objext
 
12033
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12034
  (eval $ac_compile) 2>conftest.er1
 
12035
  ac_status=$?
 
12036
  grep -v '^ *+' conftest.er1 >conftest.err
 
12037
  rm -f conftest.er1
 
12038
  cat conftest.err >&5
 
12039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12040
  (exit $ac_status); } &&
 
12041
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12043
  (eval $ac_try) 2>&5
 
12044
  ac_status=$?
 
12045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12046
  (exit $ac_status); }; } &&
 
12047
         { ac_try='test -s conftest.$ac_objext'
 
12048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12049
  (eval $ac_try) 2>&5
 
12050
  ac_status=$?
 
12051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12052
  (exit $ac_status); }; }; then
 
12053
  ac_cv_c_const=yes
 
12054
else
 
12055
  echo "$as_me: failed program was:" >&5
 
12056
sed 's/^/| /' conftest.$ac_ext >&5
 
12057
 
 
12058
ac_cv_c_const=no
 
12059
fi
 
12060
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12061
fi
 
12062
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
12063
echo "${ECHO_T}$ac_cv_c_const" >&6
 
12064
if test $ac_cv_c_const = no; then
 
12065
 
 
12066
cat >>confdefs.h <<\_ACEOF
 
12067
#define const
 
12068
_ACEOF
 
12069
 
 
12070
fi
 
12071
 
 
12072
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
 
12073
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
 
12074
if test "${ac_cv_type_uid_t+set}" = set; then
 
12075
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12076
else
 
12077
  cat >conftest.$ac_ext <<_ACEOF
 
12078
/* confdefs.h.  */
 
12079
_ACEOF
 
12080
cat confdefs.h >>conftest.$ac_ext
 
12081
cat >>conftest.$ac_ext <<_ACEOF
 
12082
/* end confdefs.h.  */
 
12083
#include <sys/types.h>
 
12084
 
 
12085
_ACEOF
 
12086
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
12087
  $EGREP "uid_t" >/dev/null 2>&1; then
 
12088
  ac_cv_type_uid_t=yes
 
12089
else
 
12090
  ac_cv_type_uid_t=no
 
12091
fi
 
12092
rm -f conftest*
 
12093
 
 
12094
fi
 
12095
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
 
12096
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
 
12097
if test $ac_cv_type_uid_t = no; then
 
12098
 
 
12099
cat >>confdefs.h <<\_ACEOF
 
12100
#define uid_t int
 
12101
_ACEOF
 
12102
 
 
12103
 
 
12104
cat >>confdefs.h <<\_ACEOF
 
12105
#define gid_t int
 
12106
_ACEOF
 
12107
 
 
12108
fi
 
12109
 
 
12110
echo "$as_me:$LINENO: checking for inline" >&5
 
12111
echo $ECHO_N "checking for inline... $ECHO_C" >&6
 
12112
if test "${ac_cv_c_inline+set}" = set; then
 
12113
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12114
else
 
12115
  ac_cv_c_inline=no
 
12116
for ac_kw in inline __inline__ __inline; do
 
12117
  cat >conftest.$ac_ext <<_ACEOF
 
12118
/* confdefs.h.  */
 
12119
_ACEOF
 
12120
cat confdefs.h >>conftest.$ac_ext
 
12121
cat >>conftest.$ac_ext <<_ACEOF
 
12122
/* end confdefs.h.  */
 
12123
#ifndef __cplusplus
 
12124
typedef int foo_t;
 
12125
static $ac_kw foo_t static_foo () {return 0; }
 
12126
$ac_kw foo_t foo () {return 0; }
 
12127
#endif
 
12128
 
 
12129
_ACEOF
 
12130
rm -f conftest.$ac_objext
 
12131
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12132
  (eval $ac_compile) 2>conftest.er1
 
12133
  ac_status=$?
 
12134
  grep -v '^ *+' conftest.er1 >conftest.err
 
12135
  rm -f conftest.er1
 
12136
  cat conftest.err >&5
 
12137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12138
  (exit $ac_status); } &&
 
12139
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12140
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12141
  (eval $ac_try) 2>&5
 
12142
  ac_status=$?
 
12143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12144
  (exit $ac_status); }; } &&
 
12145
         { ac_try='test -s conftest.$ac_objext'
 
12146
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12147
  (eval $ac_try) 2>&5
 
12148
  ac_status=$?
 
12149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12150
  (exit $ac_status); }; }; then
 
12151
  ac_cv_c_inline=$ac_kw; break
 
12152
else
 
12153
  echo "$as_me: failed program was:" >&5
 
12154
sed 's/^/| /' conftest.$ac_ext >&5
 
12155
 
 
12156
fi
 
12157
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12158
done
 
12159
 
 
12160
fi
 
12161
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
12162
echo "${ECHO_T}$ac_cv_c_inline" >&6
 
12163
 
 
12164
 
 
12165
case $ac_cv_c_inline in
 
12166
  inline | yes) ;;
 
12167
  *)
 
12168
    case $ac_cv_c_inline in
 
12169
      no) ac_val=;;
 
12170
      *) ac_val=$ac_cv_c_inline;;
 
12171
    esac
 
12172
    cat >>confdefs.h <<_ACEOF
 
12173
#ifndef __cplusplus
 
12174
#define inline $ac_val
 
12175
#endif
 
12176
_ACEOF
 
12177
    ;;
 
12178
esac
 
12179
 
 
12180
echo "$as_me:$LINENO: checking for mode_t" >&5
 
12181
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
 
12182
if test "${ac_cv_type_mode_t+set}" = set; then
 
12183
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12184
else
 
12185
  cat >conftest.$ac_ext <<_ACEOF
 
12186
/* confdefs.h.  */
 
12187
_ACEOF
 
12188
cat confdefs.h >>conftest.$ac_ext
 
12189
cat >>conftest.$ac_ext <<_ACEOF
 
12190
/* end confdefs.h.  */
 
12191
$ac_includes_default
 
12192
int
 
12193
main ()
 
12194
{
 
12195
if ((mode_t *) 0)
 
12196
  return 0;
 
12197
if (sizeof (mode_t))
 
12198
  return 0;
 
12199
  ;
 
12200
  return 0;
 
12201
}
 
12202
_ACEOF
 
12203
rm -f conftest.$ac_objext
 
12204
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12205
  (eval $ac_compile) 2>conftest.er1
 
12206
  ac_status=$?
 
12207
  grep -v '^ *+' conftest.er1 >conftest.err
 
12208
  rm -f conftest.er1
 
12209
  cat conftest.err >&5
 
12210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12211
  (exit $ac_status); } &&
 
12212
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12213
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12214
  (eval $ac_try) 2>&5
 
12215
  ac_status=$?
 
12216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12217
  (exit $ac_status); }; } &&
 
12218
         { ac_try='test -s conftest.$ac_objext'
 
12219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12220
  (eval $ac_try) 2>&5
 
12221
  ac_status=$?
 
12222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12223
  (exit $ac_status); }; }; then
 
12224
  ac_cv_type_mode_t=yes
 
12225
else
 
12226
  echo "$as_me: failed program was:" >&5
 
12227
sed 's/^/| /' conftest.$ac_ext >&5
 
12228
 
 
12229
ac_cv_type_mode_t=no
 
12230
fi
 
12231
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12232
fi
 
12233
echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
 
12234
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
 
12235
if test $ac_cv_type_mode_t = yes; then
 
12236
  :
 
12237
else
 
12238
 
 
12239
cat >>confdefs.h <<_ACEOF
 
12240
#define mode_t int
 
12241
_ACEOF
 
12242
 
 
12243
fi
 
12244
 
 
12245
echo "$as_me:$LINENO: checking for off_t" >&5
 
12246
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
 
12247
if test "${ac_cv_type_off_t+set}" = set; then
 
12248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12249
else
 
12250
  cat >conftest.$ac_ext <<_ACEOF
 
12251
/* confdefs.h.  */
 
12252
_ACEOF
 
12253
cat confdefs.h >>conftest.$ac_ext
 
12254
cat >>conftest.$ac_ext <<_ACEOF
 
12255
/* end confdefs.h.  */
 
12256
$ac_includes_default
 
12257
int
 
12258
main ()
 
12259
{
 
12260
if ((off_t *) 0)
 
12261
  return 0;
 
12262
if (sizeof (off_t))
 
12263
  return 0;
 
12264
  ;
 
12265
  return 0;
 
12266
}
 
12267
_ACEOF
 
12268
rm -f conftest.$ac_objext
 
12269
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12270
  (eval $ac_compile) 2>conftest.er1
 
12271
  ac_status=$?
 
12272
  grep -v '^ *+' conftest.er1 >conftest.err
 
12273
  rm -f conftest.er1
 
12274
  cat conftest.err >&5
 
12275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12276
  (exit $ac_status); } &&
 
12277
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12278
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12279
  (eval $ac_try) 2>&5
 
12280
  ac_status=$?
 
12281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12282
  (exit $ac_status); }; } &&
 
12283
         { ac_try='test -s conftest.$ac_objext'
 
12284
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12285
  (eval $ac_try) 2>&5
 
12286
  ac_status=$?
 
12287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12288
  (exit $ac_status); }; }; then
 
12289
  ac_cv_type_off_t=yes
 
12290
else
 
12291
  echo "$as_me: failed program was:" >&5
 
12292
sed 's/^/| /' conftest.$ac_ext >&5
 
12293
 
 
12294
ac_cv_type_off_t=no
 
12295
fi
 
12296
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12297
fi
 
12298
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
12299
echo "${ECHO_T}$ac_cv_type_off_t" >&6
 
12300
if test $ac_cv_type_off_t = yes; then
 
12301
  :
 
12302
else
 
12303
 
 
12304
cat >>confdefs.h <<_ACEOF
 
12305
#define off_t long
 
12306
_ACEOF
 
12307
 
 
12308
fi
 
12309
 
 
12310
echo "$as_me:$LINENO: checking for size_t" >&5
 
12311
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
 
12312
if test "${ac_cv_type_size_t+set}" = set; then
 
12313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12314
else
 
12315
  cat >conftest.$ac_ext <<_ACEOF
 
12316
/* confdefs.h.  */
 
12317
_ACEOF
 
12318
cat confdefs.h >>conftest.$ac_ext
 
12319
cat >>conftest.$ac_ext <<_ACEOF
 
12320
/* end confdefs.h.  */
 
12321
$ac_includes_default
 
12322
int
 
12323
main ()
 
12324
{
 
12325
if ((size_t *) 0)
 
12326
  return 0;
 
12327
if (sizeof (size_t))
 
12328
  return 0;
 
12329
  ;
 
12330
  return 0;
 
12331
}
 
12332
_ACEOF
 
12333
rm -f conftest.$ac_objext
 
12334
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12335
  (eval $ac_compile) 2>conftest.er1
 
12336
  ac_status=$?
 
12337
  grep -v '^ *+' conftest.er1 >conftest.err
 
12338
  rm -f conftest.er1
 
12339
  cat conftest.err >&5
 
12340
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12341
  (exit $ac_status); } &&
 
12342
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12343
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12344
  (eval $ac_try) 2>&5
 
12345
  ac_status=$?
 
12346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12347
  (exit $ac_status); }; } &&
 
12348
         { ac_try='test -s conftest.$ac_objext'
 
12349
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12350
  (eval $ac_try) 2>&5
 
12351
  ac_status=$?
 
12352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12353
  (exit $ac_status); }; }; then
 
12354
  ac_cv_type_size_t=yes
 
12355
else
 
12356
  echo "$as_me: failed program was:" >&5
 
12357
sed 's/^/| /' conftest.$ac_ext >&5
 
12358
 
 
12359
ac_cv_type_size_t=no
 
12360
fi
 
12361
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12362
fi
 
12363
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
12364
echo "${ECHO_T}$ac_cv_type_size_t" >&6
 
12365
if test $ac_cv_type_size_t = yes; then
 
12366
  :
 
12367
else
 
12368
 
 
12369
cat >>confdefs.h <<_ACEOF
 
12370
#define size_t unsigned
 
12371
_ACEOF
 
12372
 
 
12373
fi
 
12374
 
 
12375
echo "$as_me:$LINENO: checking for pid_t" >&5
 
12376
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
 
12377
if test "${ac_cv_type_pid_t+set}" = set; then
 
12378
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12379
else
 
12380
  cat >conftest.$ac_ext <<_ACEOF
 
12381
/* confdefs.h.  */
 
12382
_ACEOF
 
12383
cat confdefs.h >>conftest.$ac_ext
 
12384
cat >>conftest.$ac_ext <<_ACEOF
 
12385
/* end confdefs.h.  */
 
12386
$ac_includes_default
 
12387
int
 
12388
main ()
 
12389
{
 
12390
if ((pid_t *) 0)
 
12391
  return 0;
 
12392
if (sizeof (pid_t))
 
12393
  return 0;
 
12394
  ;
 
12395
  return 0;
 
12396
}
 
12397
_ACEOF
 
12398
rm -f conftest.$ac_objext
 
12399
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12400
  (eval $ac_compile) 2>conftest.er1
 
12401
  ac_status=$?
 
12402
  grep -v '^ *+' conftest.er1 >conftest.err
 
12403
  rm -f conftest.er1
 
12404
  cat conftest.err >&5
 
12405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12406
  (exit $ac_status); } &&
 
12407
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12408
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12409
  (eval $ac_try) 2>&5
 
12410
  ac_status=$?
 
12411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12412
  (exit $ac_status); }; } &&
 
12413
         { ac_try='test -s conftest.$ac_objext'
 
12414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12415
  (eval $ac_try) 2>&5
 
12416
  ac_status=$?
 
12417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12418
  (exit $ac_status); }; }; then
 
12419
  ac_cv_type_pid_t=yes
 
12420
else
 
12421
  echo "$as_me: failed program was:" >&5
 
12422
sed 's/^/| /' conftest.$ac_ext >&5
 
12423
 
 
12424
ac_cv_type_pid_t=no
 
12425
fi
 
12426
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12427
fi
 
12428
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
12429
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
 
12430
if test $ac_cv_type_pid_t = yes; then
 
12431
  :
 
12432
else
 
12433
 
 
12434
cat >>confdefs.h <<_ACEOF
 
12435
#define pid_t int
 
12436
_ACEOF
 
12437
 
 
12438
fi
 
12439
 
 
12440
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
12441
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
 
12442
if test "${ac_cv_type_signal+set}" = set; then
 
12443
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12444
else
 
12445
  cat >conftest.$ac_ext <<_ACEOF
 
12446
/* confdefs.h.  */
 
12447
_ACEOF
 
12448
cat confdefs.h >>conftest.$ac_ext
 
12449
cat >>conftest.$ac_ext <<_ACEOF
 
12450
/* end confdefs.h.  */
 
12451
#include <sys/types.h>
 
12452
#include <signal.h>
 
12453
#ifdef signal
 
12454
# undef signal
 
12455
#endif
 
12456
#ifdef __cplusplus
 
12457
extern "C" void (*signal (int, void (*)(int)))(int);
 
12458
#else
 
12459
void (*signal ()) ();
 
12460
#endif
 
12461
 
 
12462
int
 
12463
main ()
 
12464
{
 
12465
int i;
 
12466
  ;
 
12467
  return 0;
 
12468
}
 
12469
_ACEOF
 
12470
rm -f conftest.$ac_objext
 
12471
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12472
  (eval $ac_compile) 2>conftest.er1
 
12473
  ac_status=$?
 
12474
  grep -v '^ *+' conftest.er1 >conftest.err
 
12475
  rm -f conftest.er1
 
12476
  cat conftest.err >&5
 
12477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12478
  (exit $ac_status); } &&
 
12479
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12480
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12481
  (eval $ac_try) 2>&5
 
12482
  ac_status=$?
 
12483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12484
  (exit $ac_status); }; } &&
 
12485
         { ac_try='test -s conftest.$ac_objext'
 
12486
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12487
  (eval $ac_try) 2>&5
 
12488
  ac_status=$?
 
12489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12490
  (exit $ac_status); }; }; then
 
12491
  ac_cv_type_signal=void
 
12492
else
 
12493
  echo "$as_me: failed program was:" >&5
 
12494
sed 's/^/| /' conftest.$ac_ext >&5
 
12495
 
 
12496
ac_cv_type_signal=int
 
12497
fi
 
12498
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12499
fi
 
12500
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
12501
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
12502
 
 
12503
cat >>confdefs.h <<_ACEOF
 
12504
#define RETSIGTYPE $ac_cv_type_signal
 
12505
_ACEOF
 
12506
 
 
12507
 
 
12508
echo "$as_me:$LINENO: checking for error_at_line" >&5
 
12509
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
 
12510
if test "${ac_cv_lib_error_at_line+set}" = set; then
 
12511
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12512
else
 
12513
  cat >conftest.$ac_ext <<_ACEOF
 
12514
/* confdefs.h.  */
 
12515
_ACEOF
 
12516
cat confdefs.h >>conftest.$ac_ext
 
12517
cat >>conftest.$ac_ext <<_ACEOF
 
12518
/* end confdefs.h.  */
 
12519
$ac_includes_default
 
12520
int
 
12521
main ()
 
12522
{
 
12523
error_at_line (0, 0, "", 0, "");
 
12524
  ;
 
12525
  return 0;
 
12526
}
 
12527
_ACEOF
 
12528
rm -f conftest.$ac_objext conftest$ac_exeext
 
12529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12530
  (eval $ac_link) 2>conftest.er1
 
12531
  ac_status=$?
 
12532
  grep -v '^ *+' conftest.er1 >conftest.err
 
12533
  rm -f conftest.er1
 
12534
  cat conftest.err >&5
 
12535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12536
  (exit $ac_status); } &&
 
12537
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12538
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12539
  (eval $ac_try) 2>&5
 
12540
  ac_status=$?
 
12541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12542
  (exit $ac_status); }; } &&
 
12543
         { ac_try='test -s conftest$ac_exeext'
 
12544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12545
  (eval $ac_try) 2>&5
 
12546
  ac_status=$?
 
12547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12548
  (exit $ac_status); }; }; then
 
12549
  ac_cv_lib_error_at_line=yes
 
12550
else
 
12551
  echo "$as_me: failed program was:" >&5
 
12552
sed 's/^/| /' conftest.$ac_ext >&5
 
12553
 
 
12554
ac_cv_lib_error_at_line=no
 
12555
fi
 
12556
rm -f conftest.err conftest.$ac_objext \
 
12557
      conftest$ac_exeext conftest.$ac_ext
 
12558
fi
 
12559
echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
 
12560
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
 
12561
if test $ac_cv_lib_error_at_line = no; then
 
12562
  case $LIBOBJS in
 
12563
    "error.$ac_objext"   | \
 
12564
  *" error.$ac_objext"   | \
 
12565
    "error.$ac_objext "* | \
 
12566
  *" error.$ac_objext "* ) ;;
 
12567
  *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
 
12568
esac
 
12569
 
 
12570
fi
 
12571
 
 
12572
echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
 
12573
echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
 
12574
if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
 
12575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12576
else
 
12577
  cat >conftest.$ac_ext <<_ACEOF
 
12578
/* confdefs.h.  */
 
12579
_ACEOF
 
12580
cat confdefs.h >>conftest.$ac_ext
 
12581
cat >>conftest.$ac_ext <<_ACEOF
 
12582
/* end confdefs.h.  */
 
12583
#include <sys/types.h>
 
12584
int
 
12585
main ()
 
12586
{
 
12587
return makedev(0, 0);
 
12588
  ;
 
12589
  return 0;
 
12590
}
 
12591
_ACEOF
 
12592
rm -f conftest.$ac_objext conftest$ac_exeext
 
12593
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12594
  (eval $ac_link) 2>conftest.er1
 
12595
  ac_status=$?
 
12596
  grep -v '^ *+' conftest.er1 >conftest.err
 
12597
  rm -f conftest.er1
 
12598
  cat conftest.err >&5
 
12599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12600
  (exit $ac_status); } &&
 
12601
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12603
  (eval $ac_try) 2>&5
 
12604
  ac_status=$?
 
12605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12606
  (exit $ac_status); }; } &&
 
12607
         { ac_try='test -s conftest$ac_exeext'
 
12608
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12609
  (eval $ac_try) 2>&5
 
12610
  ac_status=$?
 
12611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12612
  (exit $ac_status); }; }; then
 
12613
  ac_cv_header_sys_types_h_makedev=yes
 
12614
else
 
12615
  echo "$as_me: failed program was:" >&5
 
12616
sed 's/^/| /' conftest.$ac_ext >&5
 
12617
 
 
12618
ac_cv_header_sys_types_h_makedev=no
 
12619
fi
 
12620
rm -f conftest.err conftest.$ac_objext \
 
12621
      conftest$ac_exeext conftest.$ac_ext
 
12622
 
 
12623
fi
 
12624
echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
 
12625
echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
 
12626
 
 
12627
if test $ac_cv_header_sys_types_h_makedev = no; then
 
12628
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
 
12629
  echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
 
12630
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
 
12631
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
 
12632
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12633
fi
 
12634
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
 
12635
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
 
12636
else
 
12637
  # Is the header compilable?
 
12638
echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
 
12639
echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
 
12640
cat >conftest.$ac_ext <<_ACEOF
 
12641
/* confdefs.h.  */
 
12642
_ACEOF
 
12643
cat confdefs.h >>conftest.$ac_ext
 
12644
cat >>conftest.$ac_ext <<_ACEOF
 
12645
/* end confdefs.h.  */
 
12646
$ac_includes_default
 
12647
#include <sys/mkdev.h>
 
12648
_ACEOF
 
12649
rm -f conftest.$ac_objext
 
12650
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12651
  (eval $ac_compile) 2>conftest.er1
 
12652
  ac_status=$?
 
12653
  grep -v '^ *+' conftest.er1 >conftest.err
 
12654
  rm -f conftest.er1
 
12655
  cat conftest.err >&5
 
12656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12657
  (exit $ac_status); } &&
 
12658
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12660
  (eval $ac_try) 2>&5
 
12661
  ac_status=$?
 
12662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12663
  (exit $ac_status); }; } &&
 
12664
         { ac_try='test -s conftest.$ac_objext'
 
12665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12666
  (eval $ac_try) 2>&5
 
12667
  ac_status=$?
 
12668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12669
  (exit $ac_status); }; }; then
 
12670
  ac_header_compiler=yes
 
12671
else
 
12672
  echo "$as_me: failed program was:" >&5
 
12673
sed 's/^/| /' conftest.$ac_ext >&5
 
12674
 
 
12675
ac_header_compiler=no
 
12676
fi
 
12677
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12678
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12679
echo "${ECHO_T}$ac_header_compiler" >&6
 
12680
 
 
12681
# Is the header present?
 
12682
echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
 
12683
echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
 
12684
cat >conftest.$ac_ext <<_ACEOF
 
12685
/* confdefs.h.  */
 
12686
_ACEOF
 
12687
cat confdefs.h >>conftest.$ac_ext
 
12688
cat >>conftest.$ac_ext <<_ACEOF
 
12689
/* end confdefs.h.  */
 
12690
#include <sys/mkdev.h>
 
12691
_ACEOF
 
12692
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
12693
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
12694
  ac_status=$?
 
12695
  grep -v '^ *+' conftest.er1 >conftest.err
 
12696
  rm -f conftest.er1
 
12697
  cat conftest.err >&5
 
12698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12699
  (exit $ac_status); } >/dev/null; then
 
12700
  if test -s conftest.err; then
 
12701
    ac_cpp_err=$ac_c_preproc_warn_flag
 
12702
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
12703
  else
 
12704
    ac_cpp_err=
 
12705
  fi
 
12706
else
 
12707
  ac_cpp_err=yes
 
12708
fi
 
12709
if test -z "$ac_cpp_err"; then
 
12710
  ac_header_preproc=yes
 
12711
else
 
12712
  echo "$as_me: failed program was:" >&5
 
12713
sed 's/^/| /' conftest.$ac_ext >&5
 
12714
 
 
12715
  ac_header_preproc=no
 
12716
fi
 
12717
rm -f conftest.err conftest.$ac_ext
 
12718
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12719
echo "${ECHO_T}$ac_header_preproc" >&6
 
12720
 
 
12721
# So?  What about this header?
 
12722
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12723
  yes:no: )
 
12724
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
12725
echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12726
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
 
12727
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
 
12728
    ac_header_preproc=yes
 
12729
    ;;
 
12730
  no:yes:* )
 
12731
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
 
12732
echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
 
12733
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
 
12734
echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
 
12735
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
 
12736
echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
 
12737
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
 
12738
echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12739
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
 
12740
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
 
12741
    { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
 
12742
echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
 
12743
    (
 
12744
      cat <<\_ASBOX
 
12745
## ------------------------------------------ ##
 
12746
## Report this to the AC_PACKAGE_NAME lists.  ##
 
12747
## ------------------------------------------ ##
 
12748
_ASBOX
 
12749
    ) |
 
12750
      sed "s/^/$as_me: WARNING:     /" >&2
 
12751
    ;;
 
12752
esac
 
12753
echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
 
12754
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
 
12755
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
 
12756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12757
else
 
12758
  ac_cv_header_sys_mkdev_h=$ac_header_preproc
 
12759
fi
 
12760
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
 
12761
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
 
12762
 
 
12763
fi
 
12764
if test $ac_cv_header_sys_mkdev_h = yes; then
 
12765
 
 
12766
cat >>confdefs.h <<\_ACEOF
 
12767
#define MAJOR_IN_MKDEV 1
 
12768
_ACEOF
 
12769
 
 
12770
fi
 
12771
 
 
12772
 
 
12773
 
 
12774
  if test $ac_cv_header_sys_mkdev_h = no; then
 
12775
    if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
 
12776
  echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
 
12777
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
 
12778
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
 
12779
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12780
fi
 
12781
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
 
12782
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
 
12783
else
 
12784
  # Is the header compilable?
 
12785
echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
 
12786
echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
 
12787
cat >conftest.$ac_ext <<_ACEOF
 
12788
/* confdefs.h.  */
 
12789
_ACEOF
 
12790
cat confdefs.h >>conftest.$ac_ext
 
12791
cat >>conftest.$ac_ext <<_ACEOF
 
12792
/* end confdefs.h.  */
 
12793
$ac_includes_default
 
12794
#include <sys/sysmacros.h>
 
12795
_ACEOF
 
12796
rm -f conftest.$ac_objext
 
12797
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12798
  (eval $ac_compile) 2>conftest.er1
 
12799
  ac_status=$?
 
12800
  grep -v '^ *+' conftest.er1 >conftest.err
 
12801
  rm -f conftest.er1
 
12802
  cat conftest.err >&5
 
12803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12804
  (exit $ac_status); } &&
 
12805
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12806
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12807
  (eval $ac_try) 2>&5
 
12808
  ac_status=$?
 
12809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12810
  (exit $ac_status); }; } &&
 
12811
         { ac_try='test -s conftest.$ac_objext'
 
12812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12813
  (eval $ac_try) 2>&5
 
12814
  ac_status=$?
 
12815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12816
  (exit $ac_status); }; }; then
 
12817
  ac_header_compiler=yes
 
12818
else
 
12819
  echo "$as_me: failed program was:" >&5
 
12820
sed 's/^/| /' conftest.$ac_ext >&5
 
12821
 
 
12822
ac_header_compiler=no
 
12823
fi
 
12824
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12825
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
12826
echo "${ECHO_T}$ac_header_compiler" >&6
 
12827
 
 
12828
# Is the header present?
 
12829
echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
 
12830
echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
 
12831
cat >conftest.$ac_ext <<_ACEOF
 
12832
/* confdefs.h.  */
 
12833
_ACEOF
 
12834
cat confdefs.h >>conftest.$ac_ext
 
12835
cat >>conftest.$ac_ext <<_ACEOF
 
12836
/* end confdefs.h.  */
 
12837
#include <sys/sysmacros.h>
 
12838
_ACEOF
 
12839
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
12840
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
12841
  ac_status=$?
 
12842
  grep -v '^ *+' conftest.er1 >conftest.err
 
12843
  rm -f conftest.er1
 
12844
  cat conftest.err >&5
 
12845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12846
  (exit $ac_status); } >/dev/null; then
 
12847
  if test -s conftest.err; then
 
12848
    ac_cpp_err=$ac_c_preproc_warn_flag
 
12849
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
12850
  else
 
12851
    ac_cpp_err=
 
12852
  fi
 
12853
else
 
12854
  ac_cpp_err=yes
 
12855
fi
 
12856
if test -z "$ac_cpp_err"; then
 
12857
  ac_header_preproc=yes
 
12858
else
 
12859
  echo "$as_me: failed program was:" >&5
 
12860
sed 's/^/| /' conftest.$ac_ext >&5
 
12861
 
 
12862
  ac_header_preproc=no
 
12863
fi
 
12864
rm -f conftest.err conftest.$ac_ext
 
12865
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
12866
echo "${ECHO_T}$ac_header_preproc" >&6
 
12867
 
 
12868
# So?  What about this header?
 
12869
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
12870
  yes:no: )
 
12871
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
12872
echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
12873
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
 
12874
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
 
12875
    ac_header_preproc=yes
 
12876
    ;;
 
12877
  no:yes:* )
 
12878
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
 
12879
echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
 
12880
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
 
12881
echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
 
12882
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
 
12883
echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
 
12884
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
 
12885
echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
12886
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
 
12887
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
 
12888
    { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
 
12889
echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
 
12890
    (
 
12891
      cat <<\_ASBOX
 
12892
## ------------------------------------------ ##
 
12893
## Report this to the AC_PACKAGE_NAME lists.  ##
 
12894
## ------------------------------------------ ##
 
12895
_ASBOX
 
12896
    ) |
 
12897
      sed "s/^/$as_me: WARNING:     /" >&2
 
12898
    ;;
 
12899
esac
 
12900
echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
 
12901
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
 
12902
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
 
12903
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12904
else
 
12905
  ac_cv_header_sys_sysmacros_h=$ac_header_preproc
 
12906
fi
 
12907
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
 
12908
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
 
12909
 
 
12910
fi
 
12911
if test $ac_cv_header_sys_sysmacros_h = yes; then
 
12912
 
 
12913
cat >>confdefs.h <<\_ACEOF
 
12914
#define MAJOR_IN_SYSMACROS 1
 
12915
_ACEOF
 
12916
 
 
12917
fi
 
12918
 
 
12919
 
 
12920
  fi
 
12921
fi
 
12922
 
 
12923
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
12924
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
 
12925
if test "${ac_cv_struct_tm+set}" = set; then
 
12926
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12927
else
 
12928
  cat >conftest.$ac_ext <<_ACEOF
 
12929
/* confdefs.h.  */
 
12930
_ACEOF
 
12931
cat confdefs.h >>conftest.$ac_ext
 
12932
cat >>conftest.$ac_ext <<_ACEOF
 
12933
/* end confdefs.h.  */
 
12934
#include <sys/types.h>
 
12935
#include <time.h>
 
12936
 
 
12937
int
 
12938
main ()
 
12939
{
 
12940
struct tm *tp; tp->tm_sec;
 
12941
  ;
 
12942
  return 0;
 
12943
}
 
12944
_ACEOF
 
12945
rm -f conftest.$ac_objext
 
12946
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12947
  (eval $ac_compile) 2>conftest.er1
 
12948
  ac_status=$?
 
12949
  grep -v '^ *+' conftest.er1 >conftest.err
 
12950
  rm -f conftest.er1
 
12951
  cat conftest.err >&5
 
12952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12953
  (exit $ac_status); } &&
 
12954
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
12955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12956
  (eval $ac_try) 2>&5
 
12957
  ac_status=$?
 
12958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12959
  (exit $ac_status); }; } &&
 
12960
         { ac_try='test -s conftest.$ac_objext'
 
12961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12962
  (eval $ac_try) 2>&5
 
12963
  ac_status=$?
 
12964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12965
  (exit $ac_status); }; }; then
 
12966
  ac_cv_struct_tm=time.h
 
12967
else
 
12968
  echo "$as_me: failed program was:" >&5
 
12969
sed 's/^/| /' conftest.$ac_ext >&5
 
12970
 
 
12971
ac_cv_struct_tm=sys/time.h
 
12972
fi
 
12973
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
12974
fi
 
12975
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
12976
echo "${ECHO_T}$ac_cv_struct_tm" >&6
 
12977
if test $ac_cv_struct_tm = sys/time.h; then
 
12978
 
 
12979
cat >>confdefs.h <<\_ACEOF
 
12980
#define TM_IN_SYS_TIME 1
 
12981
_ACEOF
 
12982
 
 
12983
fi
 
12984
 
 
12985
 
 
12986
# checks for library functions.
 
12987
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 
12988
# for constant arguments.  Useless!
 
12989
echo "$as_me:$LINENO: checking for working alloca.h" >&5
 
12990
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
 
12991
if test "${ac_cv_working_alloca_h+set}" = set; then
 
12992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12993
else
 
12994
  cat >conftest.$ac_ext <<_ACEOF
 
12995
/* confdefs.h.  */
 
12996
_ACEOF
 
12997
cat confdefs.h >>conftest.$ac_ext
 
12998
cat >>conftest.$ac_ext <<_ACEOF
 
12999
/* end confdefs.h.  */
 
13000
#include <alloca.h>
 
13001
int
 
13002
main ()
 
13003
{
 
13004
char *p = (char *) alloca (2 * sizeof (int));
 
13005
  ;
 
13006
  return 0;
 
13007
}
 
13008
_ACEOF
 
13009
rm -f conftest.$ac_objext conftest$ac_exeext
 
13010
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13011
  (eval $ac_link) 2>conftest.er1
 
13012
  ac_status=$?
 
13013
  grep -v '^ *+' conftest.er1 >conftest.err
 
13014
  rm -f conftest.er1
 
13015
  cat conftest.err >&5
 
13016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13017
  (exit $ac_status); } &&
 
13018
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13020
  (eval $ac_try) 2>&5
 
13021
  ac_status=$?
 
13022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13023
  (exit $ac_status); }; } &&
 
13024
         { ac_try='test -s conftest$ac_exeext'
 
13025
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13026
  (eval $ac_try) 2>&5
 
13027
  ac_status=$?
 
13028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13029
  (exit $ac_status); }; }; then
 
13030
  ac_cv_working_alloca_h=yes
 
13031
else
 
13032
  echo "$as_me: failed program was:" >&5
 
13033
sed 's/^/| /' conftest.$ac_ext >&5
 
13034
 
 
13035
ac_cv_working_alloca_h=no
 
13036
fi
 
13037
rm -f conftest.err conftest.$ac_objext \
 
13038
      conftest$ac_exeext conftest.$ac_ext
 
13039
fi
 
13040
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
 
13041
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
 
13042
if test $ac_cv_working_alloca_h = yes; then
 
13043
 
 
13044
cat >>confdefs.h <<\_ACEOF
 
13045
#define HAVE_ALLOCA_H 1
 
13046
_ACEOF
 
13047
 
 
13048
fi
 
13049
 
 
13050
echo "$as_me:$LINENO: checking for alloca" >&5
 
13051
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
 
13052
if test "${ac_cv_func_alloca_works+set}" = set; then
 
13053
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13054
else
 
13055
  cat >conftest.$ac_ext <<_ACEOF
 
13056
/* confdefs.h.  */
 
13057
_ACEOF
 
13058
cat confdefs.h >>conftest.$ac_ext
 
13059
cat >>conftest.$ac_ext <<_ACEOF
 
13060
/* end confdefs.h.  */
 
13061
#ifdef __GNUC__
 
13062
# define alloca __builtin_alloca
 
13063
#else
 
13064
# ifdef _MSC_VER
 
13065
#  include <malloc.h>
 
13066
#  define alloca _alloca
 
13067
# else
 
13068
#  if HAVE_ALLOCA_H
 
13069
#   include <alloca.h>
 
13070
#  else
 
13071
#   ifdef _AIX
 
13072
 #pragma alloca
 
13073
#   else
 
13074
#    ifndef alloca /* predefined by HP cc +Olibcalls */
 
13075
char *alloca ();
 
13076
#    endif
 
13077
#   endif
 
13078
#  endif
 
13079
# endif
 
13080
#endif
 
13081
 
 
13082
int
 
13083
main ()
 
13084
{
 
13085
char *p = (char *) alloca (1);
 
13086
  ;
 
13087
  return 0;
 
13088
}
 
13089
_ACEOF
 
13090
rm -f conftest.$ac_objext conftest$ac_exeext
 
13091
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13092
  (eval $ac_link) 2>conftest.er1
 
13093
  ac_status=$?
 
13094
  grep -v '^ *+' conftest.er1 >conftest.err
 
13095
  rm -f conftest.er1
 
13096
  cat conftest.err >&5
 
13097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13098
  (exit $ac_status); } &&
 
13099
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13100
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13101
  (eval $ac_try) 2>&5
 
13102
  ac_status=$?
 
13103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13104
  (exit $ac_status); }; } &&
 
13105
         { ac_try='test -s conftest$ac_exeext'
 
13106
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13107
  (eval $ac_try) 2>&5
 
13108
  ac_status=$?
 
13109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13110
  (exit $ac_status); }; }; then
 
13111
  ac_cv_func_alloca_works=yes
 
13112
else
 
13113
  echo "$as_me: failed program was:" >&5
 
13114
sed 's/^/| /' conftest.$ac_ext >&5
 
13115
 
 
13116
ac_cv_func_alloca_works=no
 
13117
fi
 
13118
rm -f conftest.err conftest.$ac_objext \
 
13119
      conftest$ac_exeext conftest.$ac_ext
 
13120
fi
 
13121
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
 
13122
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
 
13123
 
 
13124
if test $ac_cv_func_alloca_works = yes; then
 
13125
 
 
13126
cat >>confdefs.h <<\_ACEOF
 
13127
#define HAVE_ALLOCA 1
 
13128
_ACEOF
 
13129
 
 
13130
else
 
13131
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
 
13132
# that cause trouble.  Some versions do not even contain alloca or
 
13133
# contain a buggy version.  If you still want to use their alloca,
 
13134
# use ar to extract alloca.o from them instead of compiling alloca.c.
 
13135
 
 
13136
ALLOCA=alloca.$ac_objext
 
13137
 
 
13138
cat >>confdefs.h <<\_ACEOF
 
13139
#define C_ALLOCA 1
 
13140
_ACEOF
 
13141
 
 
13142
 
 
13143
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
 
13144
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
 
13145
if test "${ac_cv_os_cray+set}" = set; then
 
13146
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13147
else
 
13148
  cat >conftest.$ac_ext <<_ACEOF
 
13149
/* confdefs.h.  */
 
13150
_ACEOF
 
13151
cat confdefs.h >>conftest.$ac_ext
 
13152
cat >>conftest.$ac_ext <<_ACEOF
 
13153
/* end confdefs.h.  */
 
13154
#if defined(CRAY) && ! defined(CRAY2)
 
13155
webecray
 
13156
#else
 
13157
wenotbecray
 
13158
#endif
 
13159
 
 
13160
_ACEOF
 
13161
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
13162
  $EGREP "webecray" >/dev/null 2>&1; then
 
13163
  ac_cv_os_cray=yes
 
13164
else
 
13165
  ac_cv_os_cray=no
 
13166
fi
 
13167
rm -f conftest*
 
13168
 
 
13169
fi
 
13170
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
 
13171
echo "${ECHO_T}$ac_cv_os_cray" >&6
 
13172
if test $ac_cv_os_cray = yes; then
 
13173
  for ac_func in _getb67 GETB67 getb67; do
 
13174
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13175
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13176
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
13177
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
13178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13179
else
 
13180
  cat >conftest.$ac_ext <<_ACEOF
 
13181
/* confdefs.h.  */
 
13182
_ACEOF
 
13183
cat confdefs.h >>conftest.$ac_ext
 
13184
cat >>conftest.$ac_ext <<_ACEOF
 
13185
/* end confdefs.h.  */
 
13186
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13187
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13188
#define $ac_func innocuous_$ac_func
 
13189
 
 
13190
/* System header to define __stub macros and hopefully few prototypes,
 
13191
    which can conflict with char $ac_func (); below.
 
13192
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13193
    <limits.h> exists even on freestanding compilers.  */
 
13194
 
 
13195
#ifdef __STDC__
 
13196
# include <limits.h>
 
13197
#else
 
13198
# include <assert.h>
 
13199
#endif
 
13200
 
 
13201
#undef $ac_func
 
13202
 
 
13203
/* Override any gcc2 internal prototype to avoid an error.  */
 
13204
#ifdef __cplusplus
 
13205
extern "C"
 
13206
{
 
13207
#endif
 
13208
/* We use char because int might match the return type of a gcc2
 
13209
   builtin and then its argument prototype would still apply.  */
 
13210
char $ac_func ();
 
13211
/* The GNU C library defines this for functions which it implements
 
13212
    to always fail with ENOSYS.  Some functions are actually named
 
13213
    something starting with __ and the normal name is an alias.  */
 
13214
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13215
choke me
 
13216
#else
 
13217
char (*f) () = $ac_func;
 
13218
#endif
 
13219
#ifdef __cplusplus
 
13220
}
 
13221
#endif
 
13222
 
 
13223
int
 
13224
main ()
 
13225
{
 
13226
return f != $ac_func;
 
13227
  ;
 
13228
  return 0;
 
13229
}
 
13230
_ACEOF
 
13231
rm -f conftest.$ac_objext conftest$ac_exeext
 
13232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13233
  (eval $ac_link) 2>conftest.er1
 
13234
  ac_status=$?
 
13235
  grep -v '^ *+' conftest.er1 >conftest.err
 
13236
  rm -f conftest.er1
 
13237
  cat conftest.err >&5
 
13238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13239
  (exit $ac_status); } &&
 
13240
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13242
  (eval $ac_try) 2>&5
 
13243
  ac_status=$?
 
13244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13245
  (exit $ac_status); }; } &&
 
13246
         { ac_try='test -s conftest$ac_exeext'
 
13247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13248
  (eval $ac_try) 2>&5
 
13249
  ac_status=$?
 
13250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13251
  (exit $ac_status); }; }; then
 
13252
  eval "$as_ac_var=yes"
 
13253
else
 
13254
  echo "$as_me: failed program was:" >&5
 
13255
sed 's/^/| /' conftest.$ac_ext >&5
 
13256
 
 
13257
eval "$as_ac_var=no"
 
13258
fi
 
13259
rm -f conftest.err conftest.$ac_objext \
 
13260
      conftest$ac_exeext conftest.$ac_ext
 
13261
fi
 
13262
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
13263
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
13264
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13265
 
 
13266
cat >>confdefs.h <<_ACEOF
 
13267
#define CRAY_STACKSEG_END $ac_func
 
13268
_ACEOF
 
13269
 
 
13270
    break
 
13271
fi
 
13272
 
 
13273
  done
 
13274
fi
 
13275
 
 
13276
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
 
13277
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
 
13278
if test "${ac_cv_c_stack_direction+set}" = set; then
 
13279
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13280
else
 
13281
  if test "$cross_compiling" = yes; then
 
13282
  ac_cv_c_stack_direction=0
 
13283
else
 
13284
  cat >conftest.$ac_ext <<_ACEOF
 
13285
/* confdefs.h.  */
 
13286
_ACEOF
 
13287
cat confdefs.h >>conftest.$ac_ext
 
13288
cat >>conftest.$ac_ext <<_ACEOF
 
13289
/* end confdefs.h.  */
 
13290
int
 
13291
find_stack_direction ()
 
13292
{
 
13293
  static char *addr = 0;
 
13294
  auto char dummy;
 
13295
  if (addr == 0)
 
13296
    {
 
13297
      addr = &dummy;
 
13298
      return find_stack_direction ();
 
13299
    }
 
13300
  else
 
13301
    return (&dummy > addr) ? 1 : -1;
 
13302
}
 
13303
 
 
13304
int
 
13305
main ()
 
13306
{
 
13307
  exit (find_stack_direction () < 0);
 
13308
}
 
13309
_ACEOF
 
13310
rm -f conftest$ac_exeext
 
13311
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13312
  (eval $ac_link) 2>&5
 
13313
  ac_status=$?
 
13314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13315
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
13316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13317
  (eval $ac_try) 2>&5
 
13318
  ac_status=$?
 
13319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13320
  (exit $ac_status); }; }; then
 
13321
  ac_cv_c_stack_direction=1
 
13322
else
 
13323
  echo "$as_me: program exited with status $ac_status" >&5
 
13324
echo "$as_me: failed program was:" >&5
 
13325
sed 's/^/| /' conftest.$ac_ext >&5
 
13326
 
 
13327
( exit $ac_status )
 
13328
ac_cv_c_stack_direction=-1
 
13329
fi
 
13330
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13331
fi
 
13332
fi
 
13333
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
 
13334
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
 
13335
 
 
13336
cat >>confdefs.h <<_ACEOF
 
13337
#define STACK_DIRECTION $ac_cv_c_stack_direction
 
13338
_ACEOF
 
13339
 
 
13340
 
 
13341
fi
 
13342
 
 
13343
 
 
13344
for ac_func in vprintf
 
13345
do
 
13346
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13347
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13348
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
13349
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
13350
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13351
else
 
13352
  cat >conftest.$ac_ext <<_ACEOF
 
13353
/* confdefs.h.  */
 
13354
_ACEOF
 
13355
cat confdefs.h >>conftest.$ac_ext
 
13356
cat >>conftest.$ac_ext <<_ACEOF
 
13357
/* end confdefs.h.  */
 
13358
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13359
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13360
#define $ac_func innocuous_$ac_func
 
13361
 
 
13362
/* System header to define __stub macros and hopefully few prototypes,
 
13363
    which can conflict with char $ac_func (); below.
 
13364
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13365
    <limits.h> exists even on freestanding compilers.  */
 
13366
 
 
13367
#ifdef __STDC__
 
13368
# include <limits.h>
 
13369
#else
 
13370
# include <assert.h>
 
13371
#endif
 
13372
 
 
13373
#undef $ac_func
 
13374
 
 
13375
/* Override any gcc2 internal prototype to avoid an error.  */
 
13376
#ifdef __cplusplus
 
13377
extern "C"
 
13378
{
 
13379
#endif
 
13380
/* We use char because int might match the return type of a gcc2
 
13381
   builtin and then its argument prototype would still apply.  */
 
13382
char $ac_func ();
 
13383
/* The GNU C library defines this for functions which it implements
 
13384
    to always fail with ENOSYS.  Some functions are actually named
 
13385
    something starting with __ and the normal name is an alias.  */
 
13386
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13387
choke me
 
13388
#else
 
13389
char (*f) () = $ac_func;
 
13390
#endif
 
13391
#ifdef __cplusplus
 
13392
}
 
13393
#endif
 
13394
 
 
13395
int
 
13396
main ()
 
13397
{
 
13398
return f != $ac_func;
 
13399
  ;
 
13400
  return 0;
 
13401
}
 
13402
_ACEOF
 
13403
rm -f conftest.$ac_objext conftest$ac_exeext
 
13404
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13405
  (eval $ac_link) 2>conftest.er1
 
13406
  ac_status=$?
 
13407
  grep -v '^ *+' conftest.er1 >conftest.err
 
13408
  rm -f conftest.er1
 
13409
  cat conftest.err >&5
 
13410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13411
  (exit $ac_status); } &&
 
13412
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13413
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13414
  (eval $ac_try) 2>&5
 
13415
  ac_status=$?
 
13416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13417
  (exit $ac_status); }; } &&
 
13418
         { ac_try='test -s conftest$ac_exeext'
 
13419
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13420
  (eval $ac_try) 2>&5
 
13421
  ac_status=$?
 
13422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13423
  (exit $ac_status); }; }; then
 
13424
  eval "$as_ac_var=yes"
 
13425
else
 
13426
  echo "$as_me: failed program was:" >&5
 
13427
sed 's/^/| /' conftest.$ac_ext >&5
 
13428
 
 
13429
eval "$as_ac_var=no"
 
13430
fi
 
13431
rm -f conftest.err conftest.$ac_objext \
 
13432
      conftest$ac_exeext conftest.$ac_ext
 
13433
fi
 
13434
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
13435
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
13436
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
13437
  cat >>confdefs.h <<_ACEOF
 
13438
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
13439
_ACEOF
 
13440
 
 
13441
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
13442
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
 
13443
if test "${ac_cv_func__doprnt+set}" = set; then
 
13444
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13445
else
 
13446
  cat >conftest.$ac_ext <<_ACEOF
 
13447
/* confdefs.h.  */
 
13448
_ACEOF
 
13449
cat confdefs.h >>conftest.$ac_ext
 
13450
cat >>conftest.$ac_ext <<_ACEOF
 
13451
/* end confdefs.h.  */
 
13452
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
13453
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13454
#define _doprnt innocuous__doprnt
 
13455
 
 
13456
/* System header to define __stub macros and hopefully few prototypes,
 
13457
    which can conflict with char _doprnt (); below.
 
13458
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13459
    <limits.h> exists even on freestanding compilers.  */
 
13460
 
 
13461
#ifdef __STDC__
 
13462
# include <limits.h>
 
13463
#else
 
13464
# include <assert.h>
 
13465
#endif
 
13466
 
 
13467
#undef _doprnt
 
13468
 
 
13469
/* Override any gcc2 internal prototype to avoid an error.  */
 
13470
#ifdef __cplusplus
 
13471
extern "C"
 
13472
{
 
13473
#endif
 
13474
/* We use char because int might match the return type of a gcc2
 
13475
   builtin and then its argument prototype would still apply.  */
 
13476
char _doprnt ();
 
13477
/* The GNU C library defines this for functions which it implements
 
13478
    to always fail with ENOSYS.  Some functions are actually named
 
13479
    something starting with __ and the normal name is an alias.  */
 
13480
#if defined (__stub__doprnt) || defined (__stub____doprnt)
 
13481
choke me
 
13482
#else
 
13483
char (*f) () = _doprnt;
 
13484
#endif
 
13485
#ifdef __cplusplus
 
13486
}
 
13487
#endif
 
13488
 
 
13489
int
 
13490
main ()
 
13491
{
 
13492
return f != _doprnt;
 
13493
  ;
 
13494
  return 0;
 
13495
}
 
13496
_ACEOF
 
13497
rm -f conftest.$ac_objext conftest$ac_exeext
 
13498
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13499
  (eval $ac_link) 2>conftest.er1
 
13500
  ac_status=$?
 
13501
  grep -v '^ *+' conftest.er1 >conftest.err
 
13502
  rm -f conftest.er1
 
13503
  cat conftest.err >&5
 
13504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13505
  (exit $ac_status); } &&
 
13506
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13507
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13508
  (eval $ac_try) 2>&5
 
13509
  ac_status=$?
 
13510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13511
  (exit $ac_status); }; } &&
 
13512
         { ac_try='test -s conftest$ac_exeext'
 
13513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13514
  (eval $ac_try) 2>&5
 
13515
  ac_status=$?
 
13516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13517
  (exit $ac_status); }; }; then
 
13518
  ac_cv_func__doprnt=yes
 
13519
else
 
13520
  echo "$as_me: failed program was:" >&5
 
13521
sed 's/^/| /' conftest.$ac_ext >&5
 
13522
 
 
13523
ac_cv_func__doprnt=no
 
13524
fi
 
13525
rm -f conftest.err conftest.$ac_objext \
 
13526
      conftest$ac_exeext conftest.$ac_ext
 
13527
fi
 
13528
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
13529
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
 
13530
if test $ac_cv_func__doprnt = yes; then
 
13531
 
 
13532
cat >>confdefs.h <<\_ACEOF
 
13533
#define HAVE_DOPRNT 1
 
13534
_ACEOF
 
13535
 
 
13536
fi
 
13537
 
 
13538
fi
 
13539
done
 
13540
 
 
13541
 
 
13542
 
 
13543
for ac_header in stdlib.h
 
13544
do
 
13545
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
13546
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13547
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13548
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
13549
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13550
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13551
fi
 
13552
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
13553
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13554
else
 
13555
  # Is the header compilable?
 
13556
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
13557
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
13558
cat >conftest.$ac_ext <<_ACEOF
 
13559
/* confdefs.h.  */
 
13560
_ACEOF
 
13561
cat confdefs.h >>conftest.$ac_ext
 
13562
cat >>conftest.$ac_ext <<_ACEOF
 
13563
/* end confdefs.h.  */
 
13564
$ac_includes_default
 
13565
#include <$ac_header>
 
13566
_ACEOF
 
13567
rm -f conftest.$ac_objext
 
13568
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13569
  (eval $ac_compile) 2>conftest.er1
 
13570
  ac_status=$?
 
13571
  grep -v '^ *+' conftest.er1 >conftest.err
 
13572
  rm -f conftest.er1
 
13573
  cat conftest.err >&5
 
13574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13575
  (exit $ac_status); } &&
 
13576
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
13577
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13578
  (eval $ac_try) 2>&5
 
13579
  ac_status=$?
 
13580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13581
  (exit $ac_status); }; } &&
 
13582
         { ac_try='test -s conftest.$ac_objext'
 
13583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13584
  (eval $ac_try) 2>&5
 
13585
  ac_status=$?
 
13586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13587
  (exit $ac_status); }; }; then
 
13588
  ac_header_compiler=yes
 
13589
else
 
13590
  echo "$as_me: failed program was:" >&5
 
13591
sed 's/^/| /' conftest.$ac_ext >&5
 
13592
 
 
13593
ac_header_compiler=no
 
13594
fi
 
13595
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
13596
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
13597
echo "${ECHO_T}$ac_header_compiler" >&6
 
13598
 
 
13599
# Is the header present?
 
13600
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
13601
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
13602
cat >conftest.$ac_ext <<_ACEOF
 
13603
/* confdefs.h.  */
 
13604
_ACEOF
 
13605
cat confdefs.h >>conftest.$ac_ext
 
13606
cat >>conftest.$ac_ext <<_ACEOF
 
13607
/* end confdefs.h.  */
 
13608
#include <$ac_header>
 
13609
_ACEOF
 
13610
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
13611
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
13612
  ac_status=$?
 
13613
  grep -v '^ *+' conftest.er1 >conftest.err
 
13614
  rm -f conftest.er1
 
13615
  cat conftest.err >&5
 
13616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13617
  (exit $ac_status); } >/dev/null; then
 
13618
  if test -s conftest.err; then
 
13619
    ac_cpp_err=$ac_c_preproc_warn_flag
 
13620
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
13621
  else
 
13622
    ac_cpp_err=
 
13623
  fi
 
13624
else
 
13625
  ac_cpp_err=yes
 
13626
fi
 
13627
if test -z "$ac_cpp_err"; then
 
13628
  ac_header_preproc=yes
 
13629
else
 
13630
  echo "$as_me: failed program was:" >&5
 
13631
sed 's/^/| /' conftest.$ac_ext >&5
 
13632
 
 
13633
  ac_header_preproc=no
 
13634
fi
 
13635
rm -f conftest.err conftest.$ac_ext
 
13636
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
13637
echo "${ECHO_T}$ac_header_preproc" >&6
 
13638
 
 
13639
# So?  What about this header?
 
13640
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
13641
  yes:no: )
 
13642
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
13643
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
13644
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
13645
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
13646
    ac_header_preproc=yes
 
13647
    ;;
 
13648
  no:yes:* )
 
13649
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
13650
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
13651
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
13652
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
13653
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
13654
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
13655
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
13656
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
13657
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
13658
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
13659
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
13660
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
13661
    (
 
13662
      cat <<\_ASBOX
 
13663
## ------------------------------------------ ##
 
13664
## Report this to the AC_PACKAGE_NAME lists.  ##
 
13665
## ------------------------------------------ ##
 
13666
_ASBOX
 
13667
    ) |
 
13668
      sed "s/^/$as_me: WARNING:     /" >&2
 
13669
    ;;
 
13670
esac
 
13671
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
13672
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
13673
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
13674
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13675
else
 
13676
  eval "$as_ac_Header=\$ac_header_preproc"
 
13677
fi
 
13678
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
13679
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
13680
 
 
13681
fi
 
13682
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
13683
  cat >>confdefs.h <<_ACEOF
 
13684
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
13685
_ACEOF
 
13686
 
 
13687
fi
 
13688
 
 
13689
done
 
13690
 
 
13691
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
13692
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
 
13693
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
 
13694
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13695
else
 
13696
  if test "$cross_compiling" = yes; then
 
13697
  ac_cv_func_malloc_0_nonnull=no
 
13698
else
 
13699
  cat >conftest.$ac_ext <<_ACEOF
 
13700
/* confdefs.h.  */
 
13701
_ACEOF
 
13702
cat confdefs.h >>conftest.$ac_ext
 
13703
cat >>conftest.$ac_ext <<_ACEOF
 
13704
/* end confdefs.h.  */
 
13705
#if STDC_HEADERS || HAVE_STDLIB_H
 
13706
# include <stdlib.h>
 
13707
#else
 
13708
char *malloc ();
 
13709
#endif
 
13710
 
 
13711
int
 
13712
main ()
 
13713
{
 
13714
exit (malloc (0) ? 0 : 1);
 
13715
  ;
 
13716
  return 0;
 
13717
}
 
13718
_ACEOF
 
13719
rm -f conftest$ac_exeext
 
13720
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13721
  (eval $ac_link) 2>&5
 
13722
  ac_status=$?
 
13723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13724
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
13725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13726
  (eval $ac_try) 2>&5
 
13727
  ac_status=$?
 
13728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13729
  (exit $ac_status); }; }; then
 
13730
  ac_cv_func_malloc_0_nonnull=yes
 
13731
else
 
13732
  echo "$as_me: program exited with status $ac_status" >&5
 
13733
echo "$as_me: failed program was:" >&5
 
13734
sed 's/^/| /' conftest.$ac_ext >&5
 
13735
 
 
13736
( exit $ac_status )
 
13737
ac_cv_func_malloc_0_nonnull=no
 
13738
fi
 
13739
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13740
fi
 
13741
fi
 
13742
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
13743
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
 
13744
if test $ac_cv_func_malloc_0_nonnull = yes; then
 
13745
 
 
13746
cat >>confdefs.h <<\_ACEOF
 
13747
#define HAVE_MALLOC 1
 
13748
_ACEOF
 
13749
 
 
13750
else
 
13751
  cat >>confdefs.h <<\_ACEOF
 
13752
#define HAVE_MALLOC 0
 
13753
_ACEOF
 
13754
 
 
13755
   case $LIBOBJS in
 
13756
    "malloc.$ac_objext"   | \
 
13757
  *" malloc.$ac_objext"   | \
 
13758
    "malloc.$ac_objext "* | \
 
13759
  *" malloc.$ac_objext "* ) ;;
 
13760
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
 
13761
esac
 
13762
 
 
13763
 
 
13764
cat >>confdefs.h <<\_ACEOF
 
13765
#define malloc rpl_malloc
 
13766
_ACEOF
 
13767
 
 
13768
fi
 
13769
 
 
13770
 
 
13771
 
 
13772
echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
 
13773
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
 
13774
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
 
13775
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13776
else
 
13777
  rm -f conftest.sym conftest.file
 
13778
echo >conftest.file
 
13779
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
 
13780
  if test "$cross_compiling" = yes; then
 
13781
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
13782
else
 
13783
  cat >conftest.$ac_ext <<_ACEOF
 
13784
/* confdefs.h.  */
 
13785
_ACEOF
 
13786
cat confdefs.h >>conftest.$ac_ext
 
13787
cat >>conftest.$ac_ext <<_ACEOF
 
13788
/* end confdefs.h.  */
 
13789
$ac_includes_default
 
13790
int
 
13791
main ()
 
13792
{
 
13793
struct stat sbuf;
 
13794
     /* Linux will dereference the symlink and fail.
 
13795
        That is better in the sense that it means we will not
 
13796
        have to compile and use the lstat wrapper.  */
 
13797
     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
 
13798
  ;
 
13799
  return 0;
 
13800
}
 
13801
_ACEOF
 
13802
rm -f conftest$ac_exeext
 
13803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13804
  (eval $ac_link) 2>&5
 
13805
  ac_status=$?
 
13806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13807
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
13808
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13809
  (eval $ac_try) 2>&5
 
13810
  ac_status=$?
 
13811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13812
  (exit $ac_status); }; }; then
 
13813
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
 
13814
else
 
13815
  echo "$as_me: program exited with status $ac_status" >&5
 
13816
echo "$as_me: failed program was:" >&5
 
13817
sed 's/^/| /' conftest.$ac_ext >&5
 
13818
 
 
13819
( exit $ac_status )
 
13820
ac_cv_func_lstat_dereferences_slashed_symlink=no
 
13821
fi
 
13822
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13823
fi
 
13824
else
 
13825
  # If the `ln -s' command failed, then we probably don't even
 
13826
  # have an lstat function.
 
13827
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
13828
fi
 
13829
rm -f conftest.sym conftest.file
 
13830
 
 
13831
fi
 
13832
echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
13833
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
 
13834
 
 
13835
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
 
13836
 
 
13837
cat >>confdefs.h <<_ACEOF
 
13838
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
 
13839
_ACEOF
 
13840
 
 
13841
 
 
13842
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
 
13843
  case $LIBOBJS in
 
13844
    "lstat.$ac_objext"   | \
 
13845
  *" lstat.$ac_objext"   | \
 
13846
    "lstat.$ac_objext "* | \
 
13847
  *" lstat.$ac_objext "* ) ;;
 
13848
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
 
13849
esac
 
13850
 
 
13851
fi
 
13852
 
 
13853
echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
 
13854
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
 
13855
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
 
13856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13857
else
 
13858
  if test "$cross_compiling" = yes; then
 
13859
  ac_cv_func_stat_empty_string_bug=yes
 
13860
else
 
13861
  cat >conftest.$ac_ext <<_ACEOF
 
13862
/* confdefs.h.  */
 
13863
_ACEOF
 
13864
cat confdefs.h >>conftest.$ac_ext
 
13865
cat >>conftest.$ac_ext <<_ACEOF
 
13866
/* end confdefs.h.  */
 
13867
$ac_includes_default
 
13868
int
 
13869
main ()
 
13870
{
 
13871
struct stat sbuf;
 
13872
  exit (stat ("", &sbuf) ? 1 : 0);
 
13873
  ;
 
13874
  return 0;
 
13875
}
 
13876
_ACEOF
 
13877
rm -f conftest$ac_exeext
 
13878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13879
  (eval $ac_link) 2>&5
 
13880
  ac_status=$?
 
13881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13882
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
13883
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13884
  (eval $ac_try) 2>&5
 
13885
  ac_status=$?
 
13886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13887
  (exit $ac_status); }; }; then
 
13888
  ac_cv_func_stat_empty_string_bug=yes
 
13889
else
 
13890
  echo "$as_me: program exited with status $ac_status" >&5
 
13891
echo "$as_me: failed program was:" >&5
 
13892
sed 's/^/| /' conftest.$ac_ext >&5
 
13893
 
 
13894
( exit $ac_status )
 
13895
ac_cv_func_stat_empty_string_bug=no
 
13896
fi
 
13897
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
13898
fi
 
13899
fi
 
13900
echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
 
13901
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
 
13902
if test $ac_cv_func_stat_empty_string_bug = yes; then
 
13903
  case $LIBOBJS in
 
13904
    "stat.$ac_objext"   | \
 
13905
  *" stat.$ac_objext"   | \
 
13906
    "stat.$ac_objext "* | \
 
13907
  *" stat.$ac_objext "* ) ;;
 
13908
  *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
 
13909
esac
 
13910
 
 
13911
 
 
13912
cat >>confdefs.h <<_ACEOF
 
13913
#define HAVE_STAT_EMPTY_STRING_BUG 1
 
13914
_ACEOF
 
13915
 
 
13916
fi
 
13917
 
 
13918
 
 
13919
 
 
13920
 
 
13921
 
 
13922
 
 
13923
 
 
13924
 
 
13925
 
 
13926
 
 
13927
 
 
13928
 
 
13929
 
 
13930
 
 
13931
for ac_func in getcwd mkdir strstr strtol dup2 getwd memchr memset strrchr pow setlocale strcasecmp strchr
 
13932
do
 
13933
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
13934
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
13935
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
13936
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
13937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13938
else
 
13939
  cat >conftest.$ac_ext <<_ACEOF
 
13940
/* confdefs.h.  */
 
13941
_ACEOF
 
13942
cat confdefs.h >>conftest.$ac_ext
 
13943
cat >>conftest.$ac_ext <<_ACEOF
 
13944
/* end confdefs.h.  */
 
13945
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
13946
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13947
#define $ac_func innocuous_$ac_func
 
13948
 
 
13949
/* System header to define __stub macros and hopefully few prototypes,
 
13950
    which can conflict with char $ac_func (); below.
 
13951
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13952
    <limits.h> exists even on freestanding compilers.  */
 
13953
 
 
13954
#ifdef __STDC__
 
13955
# include <limits.h>
 
13956
#else
 
13957
# include <assert.h>
 
13958
#endif
 
13959
 
 
13960
#undef $ac_func
 
13961
 
 
13962
/* Override any gcc2 internal prototype to avoid an error.  */
 
13963
#ifdef __cplusplus
 
13964
extern "C"
 
13965
{
 
13966
#endif
 
13967
/* We use char because int might match the return type of a gcc2
 
13968
   builtin and then its argument prototype would still apply.  */
 
13969
char $ac_func ();
 
13970
/* The GNU C library defines this for functions which it implements
 
13971
    to always fail with ENOSYS.  Some functions are actually named
 
13972
    something starting with __ and the normal name is an alias.  */
 
13973
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
13974
choke me
 
13975
#else
 
13976
char (*f) () = $ac_func;
 
13977
#endif
 
13978
#ifdef __cplusplus
 
13979
}
 
13980
#endif
 
13981
 
 
13982
int
 
13983
main ()
 
13984
{
 
13985
return f != $ac_func;
 
13986
  ;
 
13987
  return 0;
 
13988
}
 
13989
_ACEOF
 
13990
rm -f conftest.$ac_objext conftest$ac_exeext
 
13991
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13992
  (eval $ac_link) 2>conftest.er1
 
13993
  ac_status=$?
 
13994
  grep -v '^ *+' conftest.er1 >conftest.err
 
13995
  rm -f conftest.er1
 
13996
  cat conftest.err >&5
 
13997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13998
  (exit $ac_status); } &&
 
13999
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
14000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14001
  (eval $ac_try) 2>&5
 
14002
  ac_status=$?
 
14003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14004
  (exit $ac_status); }; } &&
 
14005
         { ac_try='test -s conftest$ac_exeext'
 
14006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14007
  (eval $ac_try) 2>&5
 
14008
  ac_status=$?
 
14009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14010
  (exit $ac_status); }; }; then
 
14011
  eval "$as_ac_var=yes"
 
14012
else
 
14013
  echo "$as_me: failed program was:" >&5
 
14014
sed 's/^/| /' conftest.$ac_ext >&5
 
14015
 
 
14016
eval "$as_ac_var=no"
 
14017
fi
 
14018
rm -f conftest.err conftest.$ac_objext \
 
14019
      conftest$ac_exeext conftest.$ac_ext
 
14020
fi
 
14021
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
14022
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
14023
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
14024
  cat >>confdefs.h <<_ACEOF
 
14025
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
14026
_ACEOF
 
14027
 
 
14028
fi
 
14029
done
 
14030
 
 
14031
 
 
14032
# Win32 stuffs
 
14033
echo "$as_me:$LINENO: checking for Win32" >&5
 
14034
echo $ECHO_N "checking for Win32... $ECHO_C" >&6
 
14035
case "$host" in
 
14036
  *-*-mingw*)   tilp_native_win32=yes ;;
 
14037
  *-*-cygwin)   tilp_native_win32=yes ;;
 
14038
  *)            tilp_native_win32=no  ;;
 
14039
esac
 
14040
echo "$as_me:$LINENO: result: $tilp_native_win32" >&5
 
14041
echo "${ECHO_T}$tilp_native_win32" >&6
 
14042
 
 
14043
 
 
14044
if test "$tilp_native_win32" = "yes"; then
 
14045
  OS_WIN32_TRUE=
 
14046
  OS_WIN32_FALSE='#'
 
14047
else
 
14048
  OS_WIN32_TRUE='#'
 
14049
  OS_WIN32_FALSE=
 
14050
fi
 
14051
 
 
14052
# Ensure MSVC-compatible struct packing convention is used when
 
14053
# compiling for Win32 with gcc.
 
14054
# What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
 
14055
# gcc2 uses "-fnative-struct".
 
14056
if test x"$tilp_native_win32" = xyes; then
 
14057
  if test x"$GCC" = xyes; then
 
14058
    msnative_struct=''
 
14059
    echo "$as_me:$LINENO: checking how to get MSVC-compatible struct packing" >&5
 
14060
echo $ECHO_N "checking how to get MSVC-compatible struct packing... $ECHO_C" >&6
 
14061
    if test -z "$ac_cv_prog_CC"; then
 
14062
      our_gcc="$CC"
 
14063
    else
 
14064
      our_gcc="$ac_cv_prog_CC"
 
14065
    fi
 
14066
    case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
 
14067
      2.)
 
14068
        if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
 
14069
          msnative_struct='-fnative-struct'
 
14070
        fi
 
14071
        ;;
 
14072
      *)
 
14073
        if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
 
14074
          msnative_struct='-mms-bitfields'
 
14075
        fi
 
14076
        ;;
 
14077
    esac
 
14078
    if test x"$msnative_struct" = x ; then
 
14079
      echo "$as_me:$LINENO: result: no way" >&5
 
14080
echo "${ECHO_T}no way" >&6
 
14081
      { echo "$as_me:$LINENO: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
 
14082
echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
 
14083
    else
 
14084
      CFLAGS="$CFLAGS $msnative_struct"
 
14085
      echo "$as_me:$LINENO: result: ${msnative_struct}" >&5
 
14086
echo "${ECHO_T}${msnative_struct}" >&6
 
14087
    fi
 
14088
  fi
 
14089
fi
 
14090
 
 
14091
#AC_MINGW32
 
14092
#AC_EXEEXT
 
14093
 
 
14094
case $host in
 
14095
  *-*-mingw*) ARCH="-D__WIN32__ -D__MINGW32__ -Os -s" ;;
 
14096
  *-*-cygwin) ARCH="-D__WIN32__ -D__CYGWIN__ -mno-cygwin" ;;
 
14097
  *-*-*bsd*)  ARCH="-D__BSD__" ;;
 
14098
  *)          ARCH="-D__LINUX__" ;;
 
14099
esac
 
14100
 
 
14101
# check for ticables presence
 
14102
 
 
14103
  succeeded=no
 
14104
 
 
14105
  if test -z "$PKG_CONFIG"; then
 
14106
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
14107
set dummy pkg-config; ac_word=$2
 
14108
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
14109
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
14110
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
14111
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14112
else
 
14113
  case $PKG_CONFIG in
 
14114
  [\\/]* | ?:[\\/]*)
 
14115
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
14116
  ;;
 
14117
  *)
 
14118
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14119
for as_dir in $PATH
 
14120
do
 
14121
  IFS=$as_save_IFS
 
14122
  test -z "$as_dir" && as_dir=.
 
14123
  for ac_exec_ext in '' $ac_executable_extensions; do
 
14124
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14125
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14126
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14127
    break 2
 
14128
  fi
 
14129
done
 
14130
done
 
14131
 
 
14132
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
14133
  ;;
 
14134
esac
 
14135
fi
 
14136
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
14137
 
 
14138
if test -n "$PKG_CONFIG"; then
 
14139
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
14140
echo "${ECHO_T}$PKG_CONFIG" >&6
 
14141
else
 
14142
  echo "$as_me:$LINENO: result: no" >&5
 
14143
echo "${ECHO_T}no" >&6
 
14144
fi
 
14145
 
 
14146
  fi
 
14147
 
 
14148
  if test "$PKG_CONFIG" = "no" ; then
 
14149
     echo "*** The pkg-config script could not be found. Make sure it is"
 
14150
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
14151
     echo "*** to the full path to pkg-config."
 
14152
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
14153
  else
 
14154
     PKG_CONFIG_MIN_VERSION=0.9.0
 
14155
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
14156
        echo "$as_me:$LINENO: checking for ticables >= 3.8.0" >&5
 
14157
echo $ECHO_N "checking for ticables >= 3.8.0... $ECHO_C" >&6
 
14158
 
 
14159
        if $PKG_CONFIG --exists "ticables >= 3.8.0" ; then
 
14160
            echo "$as_me:$LINENO: result: yes" >&5
 
14161
echo "${ECHO_T}yes" >&6
 
14162
            succeeded=yes
 
14163
 
 
14164
            echo "$as_me:$LINENO: checking TICABLES_CFLAGS" >&5
 
14165
echo $ECHO_N "checking TICABLES_CFLAGS... $ECHO_C" >&6
 
14166
            TICABLES_CFLAGS=`$PKG_CONFIG --cflags "ticables >= 3.8.0"`
 
14167
            echo "$as_me:$LINENO: result: $TICABLES_CFLAGS" >&5
 
14168
echo "${ECHO_T}$TICABLES_CFLAGS" >&6
 
14169
 
 
14170
            echo "$as_me:$LINENO: checking TICABLES_LIBS" >&5
 
14171
echo $ECHO_N "checking TICABLES_LIBS... $ECHO_C" >&6
 
14172
            TICABLES_LIBS=`$PKG_CONFIG --libs "ticables >= 3.8.0"`
 
14173
            echo "$as_me:$LINENO: result: $TICABLES_LIBS" >&5
 
14174
echo "${ECHO_T}$TICABLES_LIBS" >&6
 
14175
        else
 
14176
            TICABLES_CFLAGS=""
 
14177
            TICABLES_LIBS=""
 
14178
            ## If we have a custom action on failure, don't print errors, but
 
14179
            ## do set a variable so people can do so.
 
14180
            TICABLES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ticables >= 3.8.0"`
 
14181
            echo $TICABLES_PKG_ERRORS
 
14182
        fi
 
14183
 
 
14184
 
 
14185
 
 
14186
     else
 
14187
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
14188
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
14189
     fi
 
14190
  fi
 
14191
 
 
14192
  if test $succeeded = yes; then
 
14193
     :
 
14194
  else
 
14195
     { { echo "$as_me:$LINENO: error: Library requirements (ticables >= 3.8.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
14196
echo "$as_me: error: Library requirements (ticables >= 3.8.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
14197
   { (exit 1); exit 1; }; }
 
14198
  fi
 
14199
 
 
14200
 
 
14201
 
 
14202
 
 
14203
# check for tifiles presence
 
14204
 
 
14205
  succeeded=no
 
14206
 
 
14207
  if test -z "$PKG_CONFIG"; then
 
14208
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
14209
set dummy pkg-config; ac_word=$2
 
14210
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
14211
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
14212
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
14213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14214
else
 
14215
  case $PKG_CONFIG in
 
14216
  [\\/]* | ?:[\\/]*)
 
14217
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
14218
  ;;
 
14219
  *)
 
14220
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14221
for as_dir in $PATH
 
14222
do
 
14223
  IFS=$as_save_IFS
 
14224
  test -z "$as_dir" && as_dir=.
 
14225
  for ac_exec_ext in '' $ac_executable_extensions; do
 
14226
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14227
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14228
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14229
    break 2
 
14230
  fi
 
14231
done
 
14232
done
 
14233
 
 
14234
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
14235
  ;;
 
14236
esac
 
14237
fi
 
14238
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
14239
 
 
14240
if test -n "$PKG_CONFIG"; then
 
14241
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
14242
echo "${ECHO_T}$PKG_CONFIG" >&6
 
14243
else
 
14244
  echo "$as_me:$LINENO: result: no" >&5
 
14245
echo "${ECHO_T}no" >&6
 
14246
fi
 
14247
 
 
14248
  fi
 
14249
 
 
14250
  if test "$PKG_CONFIG" = "no" ; then
 
14251
     echo "*** The pkg-config script could not be found. Make sure it is"
 
14252
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
14253
     echo "*** to the full path to pkg-config."
 
14254
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
14255
  else
 
14256
     PKG_CONFIG_MIN_VERSION=0.9.0
 
14257
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
14258
        echo "$as_me:$LINENO: checking for tifiles >= 0.5.7" >&5
 
14259
echo $ECHO_N "checking for tifiles >= 0.5.7... $ECHO_C" >&6
 
14260
 
 
14261
        if $PKG_CONFIG --exists "tifiles >= 0.5.7" ; then
 
14262
            echo "$as_me:$LINENO: result: yes" >&5
 
14263
echo "${ECHO_T}yes" >&6
 
14264
            succeeded=yes
 
14265
 
 
14266
            echo "$as_me:$LINENO: checking TIFILES_CFLAGS" >&5
 
14267
echo $ECHO_N "checking TIFILES_CFLAGS... $ECHO_C" >&6
 
14268
            TIFILES_CFLAGS=`$PKG_CONFIG --cflags "tifiles >= 0.5.7"`
 
14269
            echo "$as_me:$LINENO: result: $TIFILES_CFLAGS" >&5
 
14270
echo "${ECHO_T}$TIFILES_CFLAGS" >&6
 
14271
 
 
14272
            echo "$as_me:$LINENO: checking TIFILES_LIBS" >&5
 
14273
echo $ECHO_N "checking TIFILES_LIBS... $ECHO_C" >&6
 
14274
            TIFILES_LIBS=`$PKG_CONFIG --libs "tifiles >= 0.5.7"`
 
14275
            echo "$as_me:$LINENO: result: $TIFILES_LIBS" >&5
 
14276
echo "${ECHO_T}$TIFILES_LIBS" >&6
 
14277
        else
 
14278
            TIFILES_CFLAGS=""
 
14279
            TIFILES_LIBS=""
 
14280
            ## If we have a custom action on failure, don't print errors, but
 
14281
            ## do set a variable so people can do so.
 
14282
            TIFILES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "tifiles >= 0.5.7"`
 
14283
            echo $TIFILES_PKG_ERRORS
 
14284
        fi
 
14285
 
 
14286
 
 
14287
 
 
14288
     else
 
14289
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
14290
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
14291
     fi
 
14292
  fi
 
14293
 
 
14294
  if test $succeeded = yes; then
 
14295
     :
 
14296
  else
 
14297
     { { echo "$as_me:$LINENO: error: Library requirements (tifiles >= 0.5.7) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
14298
echo "$as_me: error: Library requirements (tifiles >= 0.5.7) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
14299
   { (exit 1); exit 1; }; }
 
14300
  fi
 
14301
 
 
14302
 
 
14303
 
 
14304
 
 
14305
# check for ticalcs presence
 
14306
 
 
14307
  succeeded=no
 
14308
 
 
14309
  if test -z "$PKG_CONFIG"; then
 
14310
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
14311
set dummy pkg-config; ac_word=$2
 
14312
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
14313
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
14314
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
14315
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14316
else
 
14317
  case $PKG_CONFIG in
 
14318
  [\\/]* | ?:[\\/]*)
 
14319
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
14320
  ;;
 
14321
  *)
 
14322
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14323
for as_dir in $PATH
 
14324
do
 
14325
  IFS=$as_save_IFS
 
14326
  test -z "$as_dir" && as_dir=.
 
14327
  for ac_exec_ext in '' $ac_executable_extensions; do
 
14328
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14329
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14330
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14331
    break 2
 
14332
  fi
 
14333
done
 
14334
done
 
14335
 
 
14336
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
14337
  ;;
 
14338
esac
 
14339
fi
 
14340
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
14341
 
 
14342
if test -n "$PKG_CONFIG"; then
 
14343
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
14344
echo "${ECHO_T}$PKG_CONFIG" >&6
 
14345
else
 
14346
  echo "$as_me:$LINENO: result: no" >&5
 
14347
echo "${ECHO_T}no" >&6
 
14348
fi
 
14349
 
 
14350
  fi
 
14351
 
 
14352
  if test "$PKG_CONFIG" = "no" ; then
 
14353
     echo "*** The pkg-config script could not be found. Make sure it is"
 
14354
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
14355
     echo "*** to the full path to pkg-config."
 
14356
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
14357
  else
 
14358
     PKG_CONFIG_MIN_VERSION=0.9.0
 
14359
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
14360
        echo "$as_me:$LINENO: checking for ticalcs >= 4.5.2" >&5
 
14361
echo $ECHO_N "checking for ticalcs >= 4.5.2... $ECHO_C" >&6
 
14362
 
 
14363
        if $PKG_CONFIG --exists "ticalcs >= 4.5.2" ; then
 
14364
            echo "$as_me:$LINENO: result: yes" >&5
 
14365
echo "${ECHO_T}yes" >&6
 
14366
            succeeded=yes
 
14367
 
 
14368
            echo "$as_me:$LINENO: checking TICALCS_CFLAGS" >&5
 
14369
echo $ECHO_N "checking TICALCS_CFLAGS... $ECHO_C" >&6
 
14370
            TICALCS_CFLAGS=`$PKG_CONFIG --cflags "ticalcs >= 4.5.2"`
 
14371
            echo "$as_me:$LINENO: result: $TICALCS_CFLAGS" >&5
 
14372
echo "${ECHO_T}$TICALCS_CFLAGS" >&6
 
14373
 
 
14374
            echo "$as_me:$LINENO: checking TICALCS_LIBS" >&5
 
14375
echo $ECHO_N "checking TICALCS_LIBS... $ECHO_C" >&6
 
14376
            TICALCS_LIBS=`$PKG_CONFIG --libs "ticalcs >= 4.5.2"`
 
14377
            echo "$as_me:$LINENO: result: $TICALCS_LIBS" >&5
 
14378
echo "${ECHO_T}$TICALCS_LIBS" >&6
 
14379
        else
 
14380
            TICALCS_CFLAGS=""
 
14381
            TICALCS_LIBS=""
 
14382
            ## If we have a custom action on failure, don't print errors, but
 
14383
            ## do set a variable so people can do so.
 
14384
            TICALCS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ticalcs >= 4.5.2"`
 
14385
            echo $TICALCS_PKG_ERRORS
 
14386
        fi
 
14387
 
 
14388
 
 
14389
 
 
14390
     else
 
14391
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
14392
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
14393
     fi
 
14394
  fi
 
14395
 
 
14396
  if test $succeeded = yes; then
 
14397
     :
 
14398
  else
 
14399
     { { echo "$as_me:$LINENO: error: Library requirements (ticalcs >= 4.5.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
14400
echo "$as_me: error: Library requirements (ticalcs >= 4.5.2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
14401
   { (exit 1); exit 1; }; }
 
14402
  fi
 
14403
 
 
14404
 
 
14405
 
 
14406
 
 
14407
# check for glib presence
 
14408
 
 
14409
  succeeded=no
 
14410
 
 
14411
  if test -z "$PKG_CONFIG"; then
 
14412
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
14413
set dummy pkg-config; ac_word=$2
 
14414
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
14415
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
14416
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
14417
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14418
else
 
14419
  case $PKG_CONFIG in
 
14420
  [\\/]* | ?:[\\/]*)
 
14421
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
14422
  ;;
 
14423
  *)
 
14424
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14425
for as_dir in $PATH
 
14426
do
 
14427
  IFS=$as_save_IFS
 
14428
  test -z "$as_dir" && as_dir=.
 
14429
  for ac_exec_ext in '' $ac_executable_extensions; do
 
14430
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14431
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14432
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14433
    break 2
 
14434
  fi
 
14435
done
 
14436
done
 
14437
 
 
14438
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
14439
  ;;
 
14440
esac
 
14441
fi
 
14442
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
14443
 
 
14444
if test -n "$PKG_CONFIG"; then
 
14445
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
14446
echo "${ECHO_T}$PKG_CONFIG" >&6
 
14447
else
 
14448
  echo "$as_me:$LINENO: result: no" >&5
 
14449
echo "${ECHO_T}no" >&6
 
14450
fi
 
14451
 
 
14452
  fi
 
14453
 
 
14454
  if test "$PKG_CONFIG" = "no" ; then
 
14455
     echo "*** The pkg-config script could not be found. Make sure it is"
 
14456
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
14457
     echo "*** to the full path to pkg-config."
 
14458
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
14459
  else
 
14460
     PKG_CONFIG_MIN_VERSION=0.9.0
 
14461
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
14462
        echo "$as_me:$LINENO: checking for glib-2.0 >= 2.0.0" >&5
 
14463
echo $ECHO_N "checking for glib-2.0 >= 2.0.0... $ECHO_C" >&6
 
14464
 
 
14465
        if $PKG_CONFIG --exists "glib-2.0 >= 2.0.0" ; then
 
14466
            echo "$as_me:$LINENO: result: yes" >&5
 
14467
echo "${ECHO_T}yes" >&6
 
14468
            succeeded=yes
 
14469
 
 
14470
            echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
 
14471
echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
 
14472
            GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.0.0"`
 
14473
            echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
 
14474
echo "${ECHO_T}$GLIB_CFLAGS" >&6
 
14475
 
 
14476
            echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
 
14477
echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
 
14478
            GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.0.0"`
 
14479
            echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
 
14480
echo "${ECHO_T}$GLIB_LIBS" >&6
 
14481
        else
 
14482
            GLIB_CFLAGS=""
 
14483
            GLIB_LIBS=""
 
14484
            ## If we have a custom action on failure, don't print errors, but
 
14485
            ## do set a variable so people can do so.
 
14486
            GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.0.0"`
 
14487
            echo $GLIB_PKG_ERRORS
 
14488
        fi
 
14489
 
 
14490
 
 
14491
 
 
14492
     else
 
14493
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
14494
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
14495
     fi
 
14496
  fi
 
14497
 
 
14498
  if test $succeeded = yes; then
 
14499
     :
 
14500
  else
 
14501
     { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
14502
echo "$as_me: error: Library requirements (glib-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
14503
   { (exit 1); exit 1; }; }
 
14504
  fi
 
14505
 
 
14506
 
 
14507
 
 
14508
 
 
14509
# check for gdk-pixbuf presence
 
14510
#PKG_CHECK_MODULES(GLIB, gdk_pixbuf-2.0 >= 2.0.0)
 
14511
#AC_SUBST(GLIB_CFLAGS)
 
14512
#AC_SUBST(GLIB_LIBS)
 
14513
 
 
14514
# check for gtk presence
 
14515
 
 
14516
  succeeded=no
 
14517
 
 
14518
  if test -z "$PKG_CONFIG"; then
 
14519
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
14520
set dummy pkg-config; ac_word=$2
 
14521
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
14522
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
14523
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
14524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14525
else
 
14526
  case $PKG_CONFIG in
 
14527
  [\\/]* | ?:[\\/]*)
 
14528
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
14529
  ;;
 
14530
  *)
 
14531
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14532
for as_dir in $PATH
 
14533
do
 
14534
  IFS=$as_save_IFS
 
14535
  test -z "$as_dir" && as_dir=.
 
14536
  for ac_exec_ext in '' $ac_executable_extensions; do
 
14537
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14538
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14539
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14540
    break 2
 
14541
  fi
 
14542
done
 
14543
done
 
14544
 
 
14545
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
14546
  ;;
 
14547
esac
 
14548
fi
 
14549
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
14550
 
 
14551
if test -n "$PKG_CONFIG"; then
 
14552
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
14553
echo "${ECHO_T}$PKG_CONFIG" >&6
 
14554
else
 
14555
  echo "$as_me:$LINENO: result: no" >&5
 
14556
echo "${ECHO_T}no" >&6
 
14557
fi
 
14558
 
 
14559
  fi
 
14560
 
 
14561
  if test "$PKG_CONFIG" = "no" ; then
 
14562
     echo "*** The pkg-config script could not be found. Make sure it is"
 
14563
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
14564
     echo "*** to the full path to pkg-config."
 
14565
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
14566
  else
 
14567
     PKG_CONFIG_MIN_VERSION=0.9.0
 
14568
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
14569
        echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.0.0" >&5
 
14570
echo $ECHO_N "checking for gtk+-2.0 >= 2.0.0... $ECHO_C" >&6
 
14571
 
 
14572
        if $PKG_CONFIG --exists "gtk+-2.0 >= 2.0.0" ; then
 
14573
            echo "$as_me:$LINENO: result: yes" >&5
 
14574
echo "${ECHO_T}yes" >&6
 
14575
            succeeded=yes
 
14576
 
 
14577
            echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
 
14578
echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
 
14579
            GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0"`
 
14580
            echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
 
14581
echo "${ECHO_T}$GTK_CFLAGS" >&6
 
14582
 
 
14583
            echo "$as_me:$LINENO: checking GTK_LIBS" >&5
 
14584
echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
 
14585
            GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0"`
 
14586
            echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
 
14587
echo "${ECHO_T}$GTK_LIBS" >&6
 
14588
        else
 
14589
            GTK_CFLAGS=""
 
14590
            GTK_LIBS=""
 
14591
            ## If we have a custom action on failure, don't print errors, but
 
14592
            ## do set a variable so people can do so.
 
14593
            GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"`
 
14594
            echo $GTK_PKG_ERRORS
 
14595
        fi
 
14596
 
 
14597
 
 
14598
 
 
14599
     else
 
14600
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
14601
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
14602
     fi
 
14603
  fi
 
14604
 
 
14605
  if test $succeeded = yes; then
 
14606
     :
 
14607
  else
 
14608
     { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
14609
echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
14610
   { (exit 1); exit 1; }; }
 
14611
  fi
 
14612
 
 
14613
 
 
14614
 
 
14615
 
 
14616
# check for libglade presence
 
14617
 
 
14618
  succeeded=no
 
14619
 
 
14620
  if test -z "$PKG_CONFIG"; then
 
14621
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
14622
set dummy pkg-config; ac_word=$2
 
14623
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
14624
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
14625
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
14626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14627
else
 
14628
  case $PKG_CONFIG in
 
14629
  [\\/]* | ?:[\\/]*)
 
14630
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
14631
  ;;
 
14632
  *)
 
14633
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14634
for as_dir in $PATH
 
14635
do
 
14636
  IFS=$as_save_IFS
 
14637
  test -z "$as_dir" && as_dir=.
 
14638
  for ac_exec_ext in '' $ac_executable_extensions; do
 
14639
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
14640
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
14641
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
14642
    break 2
 
14643
  fi
 
14644
done
 
14645
done
 
14646
 
 
14647
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
14648
  ;;
 
14649
esac
 
14650
fi
 
14651
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
14652
 
 
14653
if test -n "$PKG_CONFIG"; then
 
14654
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
14655
echo "${ECHO_T}$PKG_CONFIG" >&6
 
14656
else
 
14657
  echo "$as_me:$LINENO: result: no" >&5
 
14658
echo "${ECHO_T}no" >&6
 
14659
fi
 
14660
 
 
14661
  fi
 
14662
 
 
14663
  if test "$PKG_CONFIG" = "no" ; then
 
14664
     echo "*** The pkg-config script could not be found. Make sure it is"
 
14665
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
14666
     echo "*** to the full path to pkg-config."
 
14667
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
14668
  else
 
14669
     PKG_CONFIG_MIN_VERSION=0.9.0
 
14670
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
14671
        echo "$as_me:$LINENO: checking for libglade-2.0 >= 1.99.0" >&5
 
14672
echo $ECHO_N "checking for libglade-2.0 >= 1.99.0... $ECHO_C" >&6
 
14673
 
 
14674
        if $PKG_CONFIG --exists "libglade-2.0 >= 1.99.0" ; then
 
14675
            echo "$as_me:$LINENO: result: yes" >&5
 
14676
echo "${ECHO_T}yes" >&6
 
14677
            succeeded=yes
 
14678
 
 
14679
            echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
 
14680
echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
 
14681
            GTK_CFLAGS=`$PKG_CONFIG --cflags "libglade-2.0 >= 1.99.0"`
 
14682
            echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
 
14683
echo "${ECHO_T}$GTK_CFLAGS" >&6
 
14684
 
 
14685
            echo "$as_me:$LINENO: checking GTK_LIBS" >&5
 
14686
echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
 
14687
            GTK_LIBS=`$PKG_CONFIG --libs "libglade-2.0 >= 1.99.0"`
 
14688
            echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
 
14689
echo "${ECHO_T}$GTK_LIBS" >&6
 
14690
        else
 
14691
            GTK_CFLAGS=""
 
14692
            GTK_LIBS=""
 
14693
            ## If we have a custom action on failure, don't print errors, but
 
14694
            ## do set a variable so people can do so.
 
14695
            GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libglade-2.0 >= 1.99.0"`
 
14696
            echo $GTK_PKG_ERRORS
 
14697
        fi
 
14698
 
 
14699
 
 
14700
 
 
14701
     else
 
14702
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
14703
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
14704
     fi
 
14705
  fi
 
14706
 
 
14707
  if test $succeeded = yes; then
 
14708
     :
 
14709
  else
 
14710
     { { echo "$as_me:$LINENO: error: Library requirements (libglade-2.0 >= 1.99.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
14711
echo "$as_me: error: Library requirements (libglade-2.0 >= 1.99.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
14712
   { (exit 1); exit 1; }; }
 
14713
  fi
 
14714
 
 
14715
 
 
14716
 
 
14717
 
 
14718
CFLAGS="$CFLAGS $TICABLES_CFLAGS $TIFILES_CFLAGS $TICALCS_CFLAGS $GLIB_CFLAGS $GTK_CFLAGS"
 
14719
LDFLAGS="$LDFLAGS $TICABLES_LIBS $TIFILES_LIBS $TICALCS_LIBS $GLIB_LIBS $GTK_LIBS"
 
14720
 
 
14721
# initialize libtool
 
14722
# Check whether --enable-static or --disable-static was given.
 
14723
if test "${enable_static+set}" = set; then
 
14724
  enableval="$enable_static"
 
14725
  p=${PACKAGE-default}
 
14726
    case $enableval in
 
14727
    yes) enable_static=yes ;;
 
14728
    no) enable_static=no ;;
 
14729
    *)
 
14730
     enable_static=no
 
14731
      # Look at the argument we got.  We use all the common list separators.
 
14732
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
14733
      for pkg in $enableval; do
 
14734
        IFS="$lt_save_ifs"
 
14735
        if test "X$pkg" = "X$p"; then
 
14736
          enable_static=yes
 
14737
        fi
 
14738
      done
 
14739
      IFS="$lt_save_ifs"
 
14740
      ;;
 
14741
    esac
 
14742
else
 
14743
  enable_static=no
 
14744
fi;
 
14745
 
 
14746
 
 
14747
 
 
14748
 
 
14749
# Check whether --enable-shared or --disable-shared was given.
 
14750
if test "${enable_shared+set}" = set; then
 
14751
  enableval="$enable_shared"
 
14752
  p=${PACKAGE-default}
 
14753
    case $enableval in
 
14754
    yes) enable_shared=yes ;;
 
14755
    no) enable_shared=no ;;
 
14756
    *)
 
14757
      enable_shared=no
 
14758
      # Look at the argument we got.  We use all the common list separators.
 
14759
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
14760
      for pkg in $enableval; do
 
14761
        IFS="$lt_save_ifs"
 
14762
        if test "X$pkg" = "X$p"; then
 
14763
          enable_shared=yes
 
14764
        fi
 
14765
      done
 
14766
      IFS="$lt_save_ifs"
 
14767
      ;;
 
14768
    esac
 
14769
else
 
14770
  enable_shared=yes
 
14771
fi;
 
14772
 
 
14773
# Check whether --enable-fast-install or --disable-fast-install was given.
 
14774
if test "${enable_fast_install+set}" = set; then
 
14775
  enableval="$enable_fast_install"
 
14776
  p=${PACKAGE-default}
 
14777
    case $enableval in
 
14778
    yes) enable_fast_install=yes ;;
 
14779
    no) enable_fast_install=no ;;
 
14780
    *)
 
14781
      enable_fast_install=no
 
14782
      # Look at the argument we got.  We use all the common list separators.
 
14783
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
14784
      for pkg in $enableval; do
 
14785
        IFS="$lt_save_ifs"
 
14786
        if test "X$pkg" = "X$p"; then
 
14787
          enable_fast_install=yes
 
14788
        fi
 
14789
      done
 
14790
      IFS="$lt_save_ifs"
 
14791
      ;;
 
14792
    esac
 
14793
else
 
14794
  enable_fast_install=yes
 
14795
fi;
 
14796
 
 
14797
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
14798
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
14799
if test "${lt_cv_path_SED+set}" = set; then
 
14800
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14801
else
 
14802
  # Loop through the user's path and test for sed and gsed.
 
14803
# Then use that list of sed's as ones to test for truncation.
 
14804
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
14805
for as_dir in $PATH
 
14806
do
 
14807
  IFS=$as_save_IFS
 
14808
  test -z "$as_dir" && as_dir=.
 
14809
  for lt_ac_prog in sed gsed; do
 
14810
    for ac_exec_ext in '' $ac_executable_extensions; do
 
14811
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
14812
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
14813
      fi
 
14814
    done
 
14815
  done
 
14816
done
 
14817
lt_ac_max=0
 
14818
lt_ac_count=0
 
14819
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
14820
# along with /bin/sed that truncates output.
 
14821
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
14822
  test ! -f $lt_ac_sed && break
 
14823
  cat /dev/null > conftest.in
 
14824
  lt_ac_count=0
 
14825
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
14826
  # Check for GNU sed and select it if it is found.
 
14827
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
14828
    lt_cv_path_SED=$lt_ac_sed
 
14829
    break
 
14830
  fi
 
14831
  while true; do
 
14832
    cat conftest.in conftest.in >conftest.tmp
 
14833
    mv conftest.tmp conftest.in
 
14834
    cp conftest.in conftest.nl
 
14835
    echo >>conftest.nl
 
14836
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
14837
    cmp -s conftest.out conftest.nl || break
 
14838
    # 10000 chars as input seems more than enough
 
14839
    test $lt_ac_count -gt 10 && break
 
14840
    lt_ac_count=`expr $lt_ac_count + 1`
 
14841
    if test $lt_ac_count -gt $lt_ac_max; then
 
14842
      lt_ac_max=$lt_ac_count
 
14843
      lt_cv_path_SED=$lt_ac_sed
 
14844
    fi
 
14845
  done
 
14846
done
 
14847
SED=$lt_cv_path_SED
 
14848
 
 
14849
fi
 
14850
 
 
14851
echo "$as_me:$LINENO: result: $SED" >&5
 
14852
echo "${ECHO_T}$SED" >&6
 
14853
 
 
14854
 
 
14855
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
14856
if test "${with_gnu_ld+set}" = set; then
 
14857
  withval="$with_gnu_ld"
 
14858
  test "$withval" = no || with_gnu_ld=yes
 
14859
else
 
14860
  with_gnu_ld=no
 
14861
fi;
 
14862
ac_prog=ld
 
14863
if test "$GCC" = yes; then
 
14864
  # Check if gcc -print-prog-name=ld gives a path.
 
14865
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
14866
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
14867
  case $host in
 
14868
  *-*-mingw*)
 
14869
    # gcc leaves a trailing carriage return which upsets mingw
 
14870
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
14871
  *)
 
14872
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
14873
  esac
 
14874
  case $ac_prog in
 
14875
    # Accept absolute paths.
 
14876
    [\\/]* | ?:[\\/]*)
 
14877
      re_direlt='/[^/][^/]*/\.\./'
 
14878
      # Canonicalize the pathname of ld
 
14879
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
14880
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
14881
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
14882
      done
 
14883
      test -z "$LD" && LD="$ac_prog"
 
14884
      ;;
 
14885
  "")
 
14886
    # If it fails, then pretend we aren't using GCC.
 
14887
    ac_prog=ld
 
14888
    ;;
 
14889
  *)
 
14890
    # If it is relative, then search for the first ld in PATH.
 
14891
    with_gnu_ld=unknown
 
14892
    ;;
 
14893
  esac
 
14894
elif test "$with_gnu_ld" = yes; then
 
14895
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
14896
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
14897
else
 
14898
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2109
14899
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2110
14900
fi
2111
14901
if test "${lt_cv_path_LD+set}" = set; then
2112
14902
  echo $ECHO_N "(cached) $ECHO_C" >&6
2113
14903
else
2114
14904
  if test -z "$LD"; then
2115
 
  IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
14905
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2116
14906
  for ac_dir in $PATH; do
2117
14907
    IFS="$lt_save_ifs"
2118
14908
    test -z "$ac_dir" && ac_dir=.
2121
14911
      # Check to see if the program is GNU ld.  I'd rather use --version,
2122
14912
      # but apparently some GNU ld's only accept -v.
2123
14913
      # Break only if it was the GNU/non-GNU ld that we prefer.
2124
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
14914
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
14915
      *GNU* | *'with BFD'*)
2125
14916
        test "$with_gnu_ld" != no && break
2126
 
      else
 
14917
        ;;
 
14918
      *)
2127
14919
        test "$with_gnu_ld" != yes && break
2128
 
      fi
 
14920
        ;;
 
14921
      esac
2129
14922
    fi
2130
14923
  done
2131
14924
  IFS="$lt_save_ifs"
2136
14929
 
2137
14930
LD="$lt_cv_path_LD"
2138
14931
if test -n "$LD"; then
2139
 
  echo "$as_me:2139: result: $LD" >&5
 
14932
  echo "$as_me:$LINENO: result: $LD" >&5
2140
14933
echo "${ECHO_T}$LD" >&6
2141
14934
else
2142
 
  echo "$as_me:2142: result: no" >&5
 
14935
  echo "$as_me:$LINENO: result: no" >&5
2143
14936
echo "${ECHO_T}no" >&6
2144
14937
fi
2145
 
test -z "$LD" && { { echo "$as_me:2145: error: no acceptable ld found in \$PATH" >&5
 
14938
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2146
14939
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2147
14940
   { (exit 1); exit 1; }; }
2148
 
echo "$as_me:2148: checking if the linker ($LD) is GNU ld" >&5
 
14941
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2149
14942
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2150
14943
if test "${lt_cv_prog_gnu_ld+set}" = set; then
2151
14944
  echo $ECHO_N "(cached) $ECHO_C" >&6
2152
14945
else
2153
14946
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2154
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
14947
case `$LD -v 2>&1 </dev/null` in
 
14948
*GNU* | *'with BFD'*)
2155
14949
  lt_cv_prog_gnu_ld=yes
2156
 
else
 
14950
  ;;
 
14951
*)
2157
14952
  lt_cv_prog_gnu_ld=no
2158
 
fi
2159
 
fi
2160
 
echo "$as_me:2160: result: $lt_cv_prog_gnu_ld" >&5
 
14953
  ;;
 
14954
esac
 
14955
fi
 
14956
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2161
14957
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2162
14958
with_gnu_ld=$lt_cv_prog_gnu_ld
2163
14959
 
2164
 
echo "$as_me:2164: checking for $LD option to reload object files" >&5
 
14960
 
 
14961
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2165
14962
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2166
14963
if test "${lt_cv_ld_reload_flag+set}" = set; then
2167
14964
  echo $ECHO_N "(cached) $ECHO_C" >&6
2168
14965
else
2169
14966
  lt_cv_ld_reload_flag='-r'
2170
14967
fi
2171
 
echo "$as_me:2171: result: $lt_cv_ld_reload_flag" >&5
 
14968
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2172
14969
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2173
14970
reload_flag=$lt_cv_ld_reload_flag
2174
14971
case $reload_flag in
2177
14974
esac
2178
14975
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2179
14976
 
2180
 
echo "$as_me:2180: checking for BSD-compatible nm" >&5
 
14977
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2181
14978
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2182
14979
if test "${lt_cv_path_NM+set}" = set; then
2183
14980
  echo $ECHO_N "(cached) $ECHO_C" >&6
2186
14983
  # Let the user override the test.
2187
14984
  lt_cv_path_NM="$NM"
2188
14985
else
2189
 
  IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
14986
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2190
14987
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2191
14988
    IFS="$lt_save_ifs"
2192
14989
    test -z "$ac_dir" && ac_dir=.
2193
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
2194
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
14990
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
14991
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2195
14992
      # Check to see if the nm accepts a BSD-compat flag.
2196
14993
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2197
14994
      #   nm: unknown option "B" ignored
2198
14995
      # Tru64's nm complains that /dev/null is an invalid object file
2199
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
14996
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
14997
      */dev/null* | *'Invalid file or object type'*)
2200
14998
        lt_cv_path_NM="$tmp_nm -B"
2201
14999
        break
2202
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2203
 
        lt_cv_path_NM="$tmp_nm -p"
2204
 
        break
2205
 
      else
2206
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2207
 
        continue # so that we can try to find one that supports BSD flags
2208
 
      fi
 
15000
        ;;
 
15001
      *)
 
15002
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
15003
        */dev/null*)
 
15004
          lt_cv_path_NM="$tmp_nm -p"
 
15005
          break
 
15006
          ;;
 
15007
        *)
 
15008
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
15009
          continue # so that we can try to find one that supports BSD flags
 
15010
          ;;
 
15011
        esac
 
15012
      esac
2209
15013
    fi
2210
15014
  done
2211
15015
  IFS="$lt_save_ifs"
2212
15016
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2213
15017
fi
2214
15018
fi
2215
 
echo "$as_me:2215: result: $lt_cv_path_NM" >&5
 
15019
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2216
15020
echo "${ECHO_T}$lt_cv_path_NM" >&6
2217
15021
NM="$lt_cv_path_NM"
2218
15022
 
2219
 
echo "$as_me:2219: checking whether ln -s works" >&5
2220
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2221
 
LN_S=$as_ln_s
2222
 
if test "$LN_S" = "ln -s"; then
2223
 
  echo "$as_me:2223: result: yes" >&5
2224
 
echo "${ECHO_T}yes" >&6
2225
 
else
2226
 
  echo "$as_me:2226: result: no, using $LN_S" >&5
2227
 
echo "${ECHO_T}no, using $LN_S" >&6
2228
 
fi
2229
 
 
2230
 
echo "$as_me:2230: checking how to recognise dependant libraries" >&5
2231
 
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
 
15023
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
15024
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2232
15025
if test "${lt_cv_deplibs_check_method+set}" = set; then
2233
15026
  echo $ECHO_N "(cached) $ECHO_C" >&6
2234
15027
else
2241
15034
# `unknown' -- same as none, but documents that we really don't know.
2242
15035
# 'pass_all' -- all dependencies passed with no checks.
2243
15036
# 'test_compile' -- check by making test program.
2244
 
# ['file_magic [regex]'] -- check by looking for files in library path
2245
 
# which responds to the $file_magic_cmd with a given egrep regex.
 
15037
# 'file_magic [[regex]]' -- check by looking for files in library path
 
15038
# which responds to the $file_magic_cmd with a given extended regex.
2246
15039
# If you have `file' or equivalent on your system and you're not sure
2247
15040
# whether `pass_all' will *always* work, you probably want this one.
2248
15041
 
2261
15054
  lt_cv_file_magic_test_file=/shlib/libc.so
2262
15055
  ;;
2263
15056
 
2264
 
cygwin* | mingw* | pw32*)
 
15057
cygwin*)
 
15058
  # func_win32_libid is a shell function defined in ltmain.sh
 
15059
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
15060
  lt_cv_file_magic_cmd='func_win32_libid'
 
15061
  ;;
 
15062
 
 
15063
mingw* | pw32*)
 
15064
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
15065
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2265
15066
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2266
15067
  lt_cv_file_magic_cmd='$OBJDUMP -f'
2267
15068
  ;;
2268
15069
 
2269
15070
darwin* | rhapsody*)
2270
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2271
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
2272
 
  case "$host_os" in
2273
 
  rhapsody* | darwin1.012)
2274
 
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2275
 
    ;;
2276
 
  *) # Darwin 1.3 on
2277
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2278
 
    ;;
2279
 
  esac
 
15071
  lt_cv_deplibs_check_method=pass_all
2280
15072
  ;;
2281
15073
 
2282
 
freebsd*)
 
15074
freebsd* | kfreebsd*-gnu)
2283
15075
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2284
15076
    case $host_cpu in
2285
15077
    i*86 )
2301
15093
 
2302
15094
hpux10.20* | hpux11*)
2303
15095
  lt_cv_file_magic_cmd=/usr/bin/file
2304
 
  if test "$host_cpu" = ia64; then
 
15096
  case "$host_cpu" in
 
15097
  ia64*)
2305
15098
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2306
15099
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2307
 
  else
 
15100
    ;;
 
15101
  hppa*64*)
 
15102
    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]'
 
15103
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
15104
    ;;
 
15105
  *)
2308
15106
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2309
15107
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
2310
 
  fi
 
15108
    ;;
 
15109
  esac
2311
15110
  ;;
2312
15111
 
2313
 
irix5* | irix6*)
2314
 
  case $host_os in
2315
 
  irix5*)
2316
 
    # this will be overridden with pass_all, but let us keep it just in case
2317
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2318
 
    ;;
2319
 
  *)
2320
 
    case $LD in
2321
 
    *-32|*"-32 ") libmagic=32-bit;;
2322
 
    *-n32|*"-n32 ") libmagic=N32;;
2323
 
    *-64|*"-64 ") libmagic=64-bit;;
2324
 
    *) libmagic=never-match;;
2325
 
    esac
2326
 
    # this will be overridden with pass_all, but let us keep it just in case
2327
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2328
 
    ;;
 
15112
irix5* | irix6* | nonstopux*)
 
15113
  case $LD in
 
15114
  *-32|*"-32 ") libmagic=32-bit;;
 
15115
  *-n32|*"-n32 ") libmagic=N32;;
 
15116
  *-64|*"-64 ") libmagic=64-bit;;
 
15117
  *) libmagic=never-match;;
2329
15118
  esac
2330
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2331
15119
  lt_cv_deplibs_check_method=pass_all
2332
15120
  ;;
2333
15121
 
2334
15122
# This must be Linux ELF.
2335
15123
linux*)
2336
 
  case $host_cpu in
2337
 
  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
2338
 
    lt_cv_deplibs_check_method=pass_all ;;
2339
 
  *)
2340
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
2341
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2342
 
  esac
2343
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
15124
  lt_cv_deplibs_check_method=pass_all
2344
15125
  ;;
2345
15126
 
2346
 
netbsd*)
 
15127
netbsd* | knetbsd*-gnu)
2347
15128
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2348
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
15129
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2349
15130
  else
2350
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
15131
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2351
15132
  fi
2352
15133
  ;;
2353
15134
 
2357
15138
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
2358
15139
  ;;
2359
15140
 
2360
 
nto-qnx)
 
15141
nto-qnx*)
2361
15142
  lt_cv_deplibs_check_method=unknown
2362
15143
  ;;
2363
15144
 
 
15145
openbsd*)
 
15146
  lt_cv_file_magic_cmd=/usr/bin/file
 
15147
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
15148
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15149
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
15150
  else
 
15151
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
15152
  fi
 
15153
  ;;
 
15154
 
2364
15155
osf3* | osf4* | osf5*)
2365
 
  # this will be overridden with pass_all, but let us keep it just in case
2366
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2367
 
  lt_cv_file_magic_test_file=/shlib/libc.so
2368
15156
  lt_cv_deplibs_check_method=pass_all
2369
15157
  ;;
2370
15158
 
2374
15162
 
2375
15163
solaris*)
2376
15164
  lt_cv_deplibs_check_method=pass_all
2377
 
  lt_cv_file_magic_test_file=/lib/libc.so
2378
15165
  ;;
2379
15166
 
2380
15167
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2395
15182
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2396
15183
    lt_cv_file_magic_test_file=/lib/libc.so
2397
15184
    ;;
 
15185
  siemens)
 
15186
    lt_cv_deplibs_check_method=pass_all
 
15187
    ;;
2398
15188
  esac
2399
15189
  ;;
2400
15190
 
2404
15194
esac
2405
15195
 
2406
15196
fi
2407
 
echo "$as_me:2407: result: $lt_cv_deplibs_check_method" >&5
 
15197
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2408
15198
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2409
15199
file_magic_cmd=$lt_cv_file_magic_cmd
2410
15200
deplibs_check_method=$lt_cv_deplibs_check_method
2411
15201
test -z "$deplibs_check_method" && deplibs_check_method=unknown
2412
15202
 
 
15203
 
 
15204
 
 
15205
 
2413
15206
# If no C compiler was specified, use CC.
2414
15207
LTCC=${LTCC-"$CC"}
2415
15208
 
2416
15209
# Allow CC to be a program name with arguments.
2417
 
set dummy $CC
2418
 
compiler="$2"
 
15210
compiler=$CC
2419
15211
 
2420
15212
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2421
15213
if test "${enable_libtool_lock+set}" = set; then
2430
15222
ia64-*-hpux*)
2431
15223
  # Find out which ABI we are using.
2432
15224
  echo 'int i;' > conftest.$ac_ext
2433
 
  if { (eval echo "$as_me:2433: \"$ac_compile\"") >&5
 
15225
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2434
15226
  (eval $ac_compile) 2>&5
2435
15227
  ac_status=$?
2436
 
  echo "$as_me:2436: \$? = $ac_status" >&5
 
15228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437
15229
  (exit $ac_status); }; then
2438
15230
    case `/usr/bin/file conftest.$ac_objext` in
2439
15231
    *ELF-32*)
2448
15240
  ;;
2449
15241
*-*-irix6*)
2450
15242
  # Find out which ABI we are using.
2451
 
  echo '#line 2451 "configure"' > conftest.$ac_ext
2452
 
  if { (eval echo "$as_me:2452: \"$ac_compile\"") >&5
 
15243
  echo '#line 15243 "configure"' > conftest.$ac_ext
 
15244
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453
15245
  (eval $ac_compile) 2>&5
2454
15246
  ac_status=$?
2455
 
  echo "$as_me:2455: \$? = $ac_status" >&5
 
15247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456
15248
  (exit $ac_status); }; then
 
15249
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
15250
    case `/usr/bin/file conftest.$ac_objext` in
 
15251
    *32-bit*)
 
15252
      LD="${LD-ld} -melf32bsmip"
 
15253
      ;;
 
15254
    *N32*)
 
15255
      LD="${LD-ld} -melf32bmipn32"
 
15256
      ;;
 
15257
    *64-bit*)
 
15258
      LD="${LD-ld} -melf64bmip"
 
15259
      ;;
 
15260
    esac
 
15261
   else
2457
15262
    case `/usr/bin/file conftest.$ac_objext` in
2458
15263
    *32-bit*)
2459
15264
      LD="${LD-ld} -32"
2465
15270
      LD="${LD-ld} -64"
2466
15271
      ;;
2467
15272
    esac
 
15273
   fi
 
15274
  fi
 
15275
  rm -rf conftest*
 
15276
  ;;
 
15277
 
 
15278
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
15279
  # Find out which ABI we are using.
 
15280
  echo 'int i;' > conftest.$ac_ext
 
15281
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15282
  (eval $ac_compile) 2>&5
 
15283
  ac_status=$?
 
15284
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15285
  (exit $ac_status); }; then
 
15286
    case "`/usr/bin/file conftest.o`" in
 
15287
    *32-bit*)
 
15288
      case $host in
 
15289
        x86_64-*linux*)
 
15290
          LD="${LD-ld} -m elf_i386"
 
15291
          ;;
 
15292
        ppc64-*linux*|powerpc64-*linux*)
 
15293
          LD="${LD-ld} -m elf32ppclinux"
 
15294
          ;;
 
15295
        s390x-*linux*)
 
15296
          LD="${LD-ld} -m elf_s390"
 
15297
          ;;
 
15298
        sparc64-*linux*)
 
15299
          LD="${LD-ld} -m elf32_sparc"
 
15300
          ;;
 
15301
      esac
 
15302
      ;;
 
15303
    *64-bit*)
 
15304
      case $host in
 
15305
        x86_64-*linux*)
 
15306
          LD="${LD-ld} -m elf_x86_64"
 
15307
          ;;
 
15308
        ppc*-*linux*|powerpc*-*linux*)
 
15309
          LD="${LD-ld} -m elf64ppc"
 
15310
          ;;
 
15311
        s390*-*linux*)
 
15312
          LD="${LD-ld} -m elf64_s390"
 
15313
          ;;
 
15314
        sparc*-*linux*)
 
15315
          LD="${LD-ld} -m elf64_sparc"
 
15316
          ;;
 
15317
      esac
 
15318
      ;;
 
15319
    esac
2468
15320
  fi
2469
15321
  rm -rf conftest*
2470
15322
  ;;
2473
15325
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2474
15326
  SAVE_CFLAGS="$CFLAGS"
2475
15327
  CFLAGS="$CFLAGS -belf"
2476
 
  echo "$as_me:2476: checking whether the C compiler needs -belf" >&5
 
15328
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
2477
15329
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
2478
15330
if test "${lt_cv_cc_needs_belf+set}" = set; then
2479
15331
  echo $ECHO_N "(cached) $ECHO_C" >&6
2485
15337
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2486
15338
 
2487
15339
     cat >conftest.$ac_ext <<_ACEOF
2488
 
#line 2488 "configure"
2489
 
#include "confdefs.h"
 
15340
/* confdefs.h.  */
 
15341
_ACEOF
 
15342
cat confdefs.h >>conftest.$ac_ext
 
15343
cat >>conftest.$ac_ext <<_ACEOF
 
15344
/* end confdefs.h.  */
2490
15345
 
2491
15346
int
2492
15347
main ()
2497
15352
}
2498
15353
_ACEOF
2499
15354
rm -f conftest.$ac_objext conftest$ac_exeext
2500
 
if { (eval echo "$as_me:2500: \"$ac_link\"") >&5
2501
 
  (eval $ac_link) 2>&5
 
15355
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15356
  (eval $ac_link) 2>conftest.er1
2502
15357
  ac_status=$?
2503
 
  echo "$as_me:2503: \$? = $ac_status" >&5
 
15358
  grep -v '^ *+' conftest.er1 >conftest.err
 
15359
  rm -f conftest.er1
 
15360
  cat conftest.err >&5
 
15361
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504
15362
  (exit $ac_status); } &&
2505
 
         { ac_try='test -s conftest$ac_exeext'
2506
 
  { (eval echo "$as_me:2506: \"$ac_try\"") >&5
2507
 
  (eval $ac_try) 2>&5
2508
 
  ac_status=$?
2509
 
  echo "$as_me:2509: \$? = $ac_status" >&5
 
15363
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15364
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15365
  (eval $ac_try) 2>&5
 
15366
  ac_status=$?
 
15367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15368
  (exit $ac_status); }; } &&
 
15369
         { ac_try='test -s conftest$ac_exeext'
 
15370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15371
  (eval $ac_try) 2>&5
 
15372
  ac_status=$?
 
15373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510
15374
  (exit $ac_status); }; }; then
2511
15375
  lt_cv_cc_needs_belf=yes
2512
15376
else
2513
15377
  echo "$as_me: failed program was:" >&5
2514
 
cat conftest.$ac_ext >&5
 
15378
sed 's/^/| /' conftest.$ac_ext >&5
 
15379
 
2515
15380
lt_cv_cc_needs_belf=no
2516
15381
fi
2517
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
15382
rm -f conftest.err conftest.$ac_objext \
 
15383
      conftest$ac_exeext conftest.$ac_ext
2518
15384
     ac_ext=c
2519
15385
ac_cpp='$CPP $CPPFLAGS'
2520
15386
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522
15388
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523
15389
 
2524
15390
fi
2525
 
echo "$as_me:2525: result: $lt_cv_cc_needs_belf" >&5
 
15391
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
2526
15392
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2527
15393
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2528
15394
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2529
15395
    CFLAGS="$SAVE_CFLAGS"
2530
15396
  fi
2531
15397
  ;;
 
15398
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
15399
  if test -n "$ac_tool_prefix"; then
 
15400
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
15401
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
15402
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15403
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15404
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
15405
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15406
else
 
15407
  if test -n "$DLLTOOL"; then
 
15408
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
15409
else
 
15410
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15411
for as_dir in $PATH
 
15412
do
 
15413
  IFS=$as_save_IFS
 
15414
  test -z "$as_dir" && as_dir=.
 
15415
  for ac_exec_ext in '' $ac_executable_extensions; do
 
15416
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15417
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
15418
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15419
    break 2
 
15420
  fi
 
15421
done
 
15422
done
 
15423
 
 
15424
fi
 
15425
fi
 
15426
DLLTOOL=$ac_cv_prog_DLLTOOL
 
15427
if test -n "$DLLTOOL"; then
 
15428
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
15429
echo "${ECHO_T}$DLLTOOL" >&6
 
15430
else
 
15431
  echo "$as_me:$LINENO: result: no" >&5
 
15432
echo "${ECHO_T}no" >&6
 
15433
fi
 
15434
 
 
15435
fi
 
15436
if test -z "$ac_cv_prog_DLLTOOL"; then
 
15437
  ac_ct_DLLTOOL=$DLLTOOL
 
15438
  # Extract the first word of "dlltool", so it can be a program name with args.
 
15439
set dummy dlltool; ac_word=$2
 
15440
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15441
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15442
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
15443
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15444
else
 
15445
  if test -n "$ac_ct_DLLTOOL"; then
 
15446
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
15447
else
 
15448
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15449
for as_dir in $PATH
 
15450
do
 
15451
  IFS=$as_save_IFS
 
15452
  test -z "$as_dir" && as_dir=.
 
15453
  for ac_exec_ext in '' $ac_executable_extensions; do
 
15454
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15455
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
15456
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15457
    break 2
 
15458
  fi
 
15459
done
 
15460
done
 
15461
 
 
15462
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
 
15463
fi
 
15464
fi
 
15465
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
15466
if test -n "$ac_ct_DLLTOOL"; then
 
15467
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
15468
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
 
15469
else
 
15470
  echo "$as_me:$LINENO: result: no" >&5
 
15471
echo "${ECHO_T}no" >&6
 
15472
fi
 
15473
 
 
15474
  DLLTOOL=$ac_ct_DLLTOOL
 
15475
else
 
15476
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
15477
fi
 
15478
 
 
15479
  if test -n "$ac_tool_prefix"; then
 
15480
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
15481
set dummy ${ac_tool_prefix}as; ac_word=$2
 
15482
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15483
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15484
if test "${ac_cv_prog_AS+set}" = set; then
 
15485
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15486
else
 
15487
  if test -n "$AS"; then
 
15488
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
15489
else
 
15490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15491
for as_dir in $PATH
 
15492
do
 
15493
  IFS=$as_save_IFS
 
15494
  test -z "$as_dir" && as_dir=.
 
15495
  for ac_exec_ext in '' $ac_executable_extensions; do
 
15496
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15497
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
15498
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15499
    break 2
 
15500
  fi
 
15501
done
 
15502
done
 
15503
 
 
15504
fi
 
15505
fi
 
15506
AS=$ac_cv_prog_AS
 
15507
if test -n "$AS"; then
 
15508
  echo "$as_me:$LINENO: result: $AS" >&5
 
15509
echo "${ECHO_T}$AS" >&6
 
15510
else
 
15511
  echo "$as_me:$LINENO: result: no" >&5
 
15512
echo "${ECHO_T}no" >&6
 
15513
fi
 
15514
 
 
15515
fi
 
15516
if test -z "$ac_cv_prog_AS"; then
 
15517
  ac_ct_AS=$AS
 
15518
  # Extract the first word of "as", so it can be a program name with args.
 
15519
set dummy as; ac_word=$2
 
15520
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15521
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15522
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
15523
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15524
else
 
15525
  if test -n "$ac_ct_AS"; then
 
15526
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
15527
else
 
15528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15529
for as_dir in $PATH
 
15530
do
 
15531
  IFS=$as_save_IFS
 
15532
  test -z "$as_dir" && as_dir=.
 
15533
  for ac_exec_ext in '' $ac_executable_extensions; do
 
15534
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15535
    ac_cv_prog_ac_ct_AS="as"
 
15536
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15537
    break 2
 
15538
  fi
 
15539
done
 
15540
done
 
15541
 
 
15542
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
 
15543
fi
 
15544
fi
 
15545
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
15546
if test -n "$ac_ct_AS"; then
 
15547
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
15548
echo "${ECHO_T}$ac_ct_AS" >&6
 
15549
else
 
15550
  echo "$as_me:$LINENO: result: no" >&5
 
15551
echo "${ECHO_T}no" >&6
 
15552
fi
 
15553
 
 
15554
  AS=$ac_ct_AS
 
15555
else
 
15556
  AS="$ac_cv_prog_AS"
 
15557
fi
 
15558
 
 
15559
  if test -n "$ac_tool_prefix"; then
 
15560
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
15561
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
15562
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15563
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15564
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
15565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15566
else
 
15567
  if test -n "$OBJDUMP"; then
 
15568
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
15569
else
 
15570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15571
for as_dir in $PATH
 
15572
do
 
15573
  IFS=$as_save_IFS
 
15574
  test -z "$as_dir" && as_dir=.
 
15575
  for ac_exec_ext in '' $ac_executable_extensions; do
 
15576
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15577
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
15578
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15579
    break 2
 
15580
  fi
 
15581
done
 
15582
done
 
15583
 
 
15584
fi
 
15585
fi
 
15586
OBJDUMP=$ac_cv_prog_OBJDUMP
 
15587
if test -n "$OBJDUMP"; then
 
15588
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
15589
echo "${ECHO_T}$OBJDUMP" >&6
 
15590
else
 
15591
  echo "$as_me:$LINENO: result: no" >&5
 
15592
echo "${ECHO_T}no" >&6
 
15593
fi
 
15594
 
 
15595
fi
 
15596
if test -z "$ac_cv_prog_OBJDUMP"; then
 
15597
  ac_ct_OBJDUMP=$OBJDUMP
 
15598
  # Extract the first word of "objdump", so it can be a program name with args.
 
15599
set dummy objdump; ac_word=$2
 
15600
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
15601
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
15602
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
15603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15604
else
 
15605
  if test -n "$ac_ct_OBJDUMP"; then
 
15606
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
15607
else
 
15608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
15609
for as_dir in $PATH
 
15610
do
 
15611
  IFS=$as_save_IFS
 
15612
  test -z "$as_dir" && as_dir=.
 
15613
  for ac_exec_ext in '' $ac_executable_extensions; do
 
15614
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
15615
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
15616
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
15617
    break 2
 
15618
  fi
 
15619
done
 
15620
done
 
15621
 
 
15622
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
 
15623
fi
 
15624
fi
 
15625
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
15626
if test -n "$ac_ct_OBJDUMP"; then
 
15627
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
15628
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
 
15629
else
 
15630
  echo "$as_me:$LINENO: result: no" >&5
 
15631
echo "${ECHO_T}no" >&6
 
15632
fi
 
15633
 
 
15634
  OBJDUMP=$ac_ct_OBJDUMP
 
15635
else
 
15636
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
15637
fi
 
15638
 
 
15639
  ;;
2532
15640
 
2533
15641
esac
2534
15642
 
2535
15643
need_locks="$enable_libtool_lock"
2536
15644
 
2537
 
ac_ext=c
2538
 
ac_cpp='$CPP $CPPFLAGS'
2539
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542
 
echo "$as_me:2542: checking how to run the C preprocessor" >&5
2543
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2544
 
# On Suns, sometimes $CPP names a directory.
2545
 
if test -n "$CPP" && test -d "$CPP"; then
2546
 
  CPP=
2547
 
fi
2548
 
if test -z "$CPP"; then
2549
 
  if test "${ac_cv_prog_CPP+set}" = set; then
2550
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2551
 
else
2552
 
      # Double quotes because CPP needs to be expanded
2553
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2554
 
    do
2555
 
      ac_preproc_ok=false
2556
 
for ac_c_preproc_warn_flag in '' yes
2557
 
do
2558
 
  # Use a header file that comes with gcc, so configuring glibc
2559
 
  # with a fresh cross-compiler works.
2560
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2561
 
  # not just through cpp. "Syntax error" is here to catch this case.
2562
 
  cat >conftest.$ac_ext <<_ACEOF
2563
 
#line 2563 "configure"
2564
 
#include "confdefs.h"
2565
 
#include <assert.h>
2566
 
                     Syntax error
2567
 
_ACEOF
2568
 
if { (eval echo "$as_me:2568: \"$ac_cpp conftest.$ac_ext\"") >&5
2569
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2570
 
  ac_status=$?
2571
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2572
 
  rm -f conftest.er1
2573
 
  cat conftest.err >&5
2574
 
  echo "$as_me:2574: \$? = $ac_status" >&5
2575
 
  (exit $ac_status); } >/dev/null; then
2576
 
  if test -s conftest.err; then
2577
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2578
 
  else
2579
 
    ac_cpp_err=
2580
 
  fi
2581
 
else
2582
 
  ac_cpp_err=yes
2583
 
fi
2584
 
if test -z "$ac_cpp_err"; then
2585
 
  :
2586
 
else
2587
 
  echo "$as_me: failed program was:" >&5
2588
 
  cat conftest.$ac_ext >&5
2589
 
  # Broken: fails on valid input.
2590
 
continue
2591
 
fi
2592
 
rm -f conftest.err conftest.$ac_ext
2593
 
 
2594
 
  # OK, works on sane cases.  Now check whether non-existent headers
2595
 
  # can be detected and how.
2596
 
  cat >conftest.$ac_ext <<_ACEOF
2597
 
#line 2597 "configure"
2598
 
#include "confdefs.h"
2599
 
#include <ac_nonexistent.h>
2600
 
_ACEOF
2601
 
if { (eval echo "$as_me:2601: \"$ac_cpp conftest.$ac_ext\"") >&5
2602
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2603
 
  ac_status=$?
2604
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2605
 
  rm -f conftest.er1
2606
 
  cat conftest.err >&5
2607
 
  echo "$as_me:2607: \$? = $ac_status" >&5
2608
 
  (exit $ac_status); } >/dev/null; then
2609
 
  if test -s conftest.err; then
2610
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2611
 
  else
2612
 
    ac_cpp_err=
2613
 
  fi
2614
 
else
2615
 
  ac_cpp_err=yes
2616
 
fi
2617
 
if test -z "$ac_cpp_err"; then
2618
 
  # Broken: success on invalid input.
2619
 
continue
2620
 
else
2621
 
  echo "$as_me: failed program was:" >&5
2622
 
  cat conftest.$ac_ext >&5
2623
 
  # Passes both tests.
2624
 
ac_preproc_ok=:
2625
 
break
2626
 
fi
2627
 
rm -f conftest.err conftest.$ac_ext
2628
 
 
2629
 
done
2630
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2631
 
rm -f conftest.err conftest.$ac_ext
2632
 
if $ac_preproc_ok; then
2633
 
  break
2634
 
fi
2635
 
 
2636
 
    done
2637
 
    ac_cv_prog_CPP=$CPP
2638
 
 
2639
 
fi
2640
 
  CPP=$ac_cv_prog_CPP
2641
 
else
2642
 
  ac_cv_prog_CPP=$CPP
2643
 
fi
2644
 
echo "$as_me:2644: result: $CPP" >&5
2645
 
echo "${ECHO_T}$CPP" >&6
2646
 
ac_preproc_ok=false
2647
 
for ac_c_preproc_warn_flag in '' yes
2648
 
do
2649
 
  # Use a header file that comes with gcc, so configuring glibc
2650
 
  # with a fresh cross-compiler works.
2651
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2652
 
  # not just through cpp. "Syntax error" is here to catch this case.
2653
 
  cat >conftest.$ac_ext <<_ACEOF
2654
 
#line 2654 "configure"
2655
 
#include "confdefs.h"
2656
 
#include <assert.h>
2657
 
                     Syntax error
2658
 
_ACEOF
2659
 
if { (eval echo "$as_me:2659: \"$ac_cpp conftest.$ac_ext\"") >&5
2660
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2661
 
  ac_status=$?
2662
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2663
 
  rm -f conftest.er1
2664
 
  cat conftest.err >&5
2665
 
  echo "$as_me:2665: \$? = $ac_status" >&5
2666
 
  (exit $ac_status); } >/dev/null; then
2667
 
  if test -s conftest.err; then
2668
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2669
 
  else
2670
 
    ac_cpp_err=
2671
 
  fi
2672
 
else
2673
 
  ac_cpp_err=yes
2674
 
fi
2675
 
if test -z "$ac_cpp_err"; then
2676
 
  :
2677
 
else
2678
 
  echo "$as_me: failed program was:" >&5
2679
 
  cat conftest.$ac_ext >&5
2680
 
  # Broken: fails on valid input.
2681
 
continue
2682
 
fi
2683
 
rm -f conftest.err conftest.$ac_ext
2684
 
 
2685
 
  # OK, works on sane cases.  Now check whether non-existent headers
2686
 
  # can be detected and how.
2687
 
  cat >conftest.$ac_ext <<_ACEOF
2688
 
#line 2688 "configure"
2689
 
#include "confdefs.h"
2690
 
#include <ac_nonexistent.h>
2691
 
_ACEOF
2692
 
if { (eval echo "$as_me:2692: \"$ac_cpp conftest.$ac_ext\"") >&5
2693
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2694
 
  ac_status=$?
2695
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
2696
 
  rm -f conftest.er1
2697
 
  cat conftest.err >&5
2698
 
  echo "$as_me:2698: \$? = $ac_status" >&5
2699
 
  (exit $ac_status); } >/dev/null; then
2700
 
  if test -s conftest.err; then
2701
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2702
 
  else
2703
 
    ac_cpp_err=
2704
 
  fi
2705
 
else
2706
 
  ac_cpp_err=yes
2707
 
fi
2708
 
if test -z "$ac_cpp_err"; then
2709
 
  # Broken: success on invalid input.
2710
 
continue
2711
 
else
2712
 
  echo "$as_me: failed program was:" >&5
2713
 
  cat conftest.$ac_ext >&5
2714
 
  # Passes both tests.
2715
 
ac_preproc_ok=:
2716
 
break
2717
 
fi
2718
 
rm -f conftest.err conftest.$ac_ext
2719
 
 
2720
 
done
2721
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2722
 
rm -f conftest.err conftest.$ac_ext
2723
 
if $ac_preproc_ok; then
2724
 
  :
2725
 
else
2726
 
  { { echo "$as_me:2726: error: C preprocessor \"$CPP\" fails sanity check" >&5
2727
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2728
 
   { (exit 1); exit 1; }; }
2729
 
fi
2730
 
 
2731
 
ac_ext=c
2732
 
ac_cpp='$CPP $CPPFLAGS'
2733
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2734
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2735
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15645
 
2736
15646
 
2737
15647
for ac_header in dlfcn.h
2738
15648
do
2739
15649
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2740
 
echo "$as_me:2740: checking for $ac_header" >&5
 
15650
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15651
  echo "$as_me:$LINENO: checking for $ac_header" >&5
2741
15652
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2742
15653
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2743
15654
  echo $ECHO_N "(cached) $ECHO_C" >&6
2744
 
else
2745
 
  cat >conftest.$ac_ext <<_ACEOF
2746
 
#line 2746 "configure"
2747
 
#include "confdefs.h"
2748
 
#include <$ac_header>
2749
 
_ACEOF
2750
 
if { (eval echo "$as_me:2750: \"$ac_cpp conftest.$ac_ext\"") >&5
 
15655
fi
 
15656
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
15657
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15658
else
 
15659
  # Is the header compilable?
 
15660
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
15661
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
15662
cat >conftest.$ac_ext <<_ACEOF
 
15663
/* confdefs.h.  */
 
15664
_ACEOF
 
15665
cat confdefs.h >>conftest.$ac_ext
 
15666
cat >>conftest.$ac_ext <<_ACEOF
 
15667
/* end confdefs.h.  */
 
15668
$ac_includes_default
 
15669
#include <$ac_header>
 
15670
_ACEOF
 
15671
rm -f conftest.$ac_objext
 
15672
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15673
  (eval $ac_compile) 2>conftest.er1
 
15674
  ac_status=$?
 
15675
  grep -v '^ *+' conftest.er1 >conftest.err
 
15676
  rm -f conftest.er1
 
15677
  cat conftest.err >&5
 
15678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15679
  (exit $ac_status); } &&
 
15680
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
15681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15682
  (eval $ac_try) 2>&5
 
15683
  ac_status=$?
 
15684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15685
  (exit $ac_status); }; } &&
 
15686
         { ac_try='test -s conftest.$ac_objext'
 
15687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15688
  (eval $ac_try) 2>&5
 
15689
  ac_status=$?
 
15690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15691
  (exit $ac_status); }; }; then
 
15692
  ac_header_compiler=yes
 
15693
else
 
15694
  echo "$as_me: failed program was:" >&5
 
15695
sed 's/^/| /' conftest.$ac_ext >&5
 
15696
 
 
15697
ac_header_compiler=no
 
15698
fi
 
15699
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
15700
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
15701
echo "${ECHO_T}$ac_header_compiler" >&6
 
15702
 
 
15703
# Is the header present?
 
15704
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
15705
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
15706
cat >conftest.$ac_ext <<_ACEOF
 
15707
/* confdefs.h.  */
 
15708
_ACEOF
 
15709
cat confdefs.h >>conftest.$ac_ext
 
15710
cat >>conftest.$ac_ext <<_ACEOF
 
15711
/* end confdefs.h.  */
 
15712
#include <$ac_header>
 
15713
_ACEOF
 
15714
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2751
15715
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2752
15716
  ac_status=$?
2753
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
15717
  grep -v '^ *+' conftest.er1 >conftest.err
2754
15718
  rm -f conftest.er1
2755
15719
  cat conftest.err >&5
2756
 
  echo "$as_me:2756: \$? = $ac_status" >&5
 
15720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757
15721
  (exit $ac_status); } >/dev/null; then
2758
15722
  if test -s conftest.err; then
2759
15723
    ac_cpp_err=$ac_c_preproc_warn_flag
 
15724
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2760
15725
  else
2761
15726
    ac_cpp_err=
2762
15727
  fi
2764
15729
  ac_cpp_err=yes
2765
15730
fi
2766
15731
if test -z "$ac_cpp_err"; then
2767
 
  eval "$as_ac_Header=yes"
 
15732
  ac_header_preproc=yes
2768
15733
else
2769
15734
  echo "$as_me: failed program was:" >&5
2770
 
  cat conftest.$ac_ext >&5
2771
 
  eval "$as_ac_Header=no"
 
15735
sed 's/^/| /' conftest.$ac_ext >&5
 
15736
 
 
15737
  ac_header_preproc=no
2772
15738
fi
2773
15739
rm -f conftest.err conftest.$ac_ext
 
15740
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
15741
echo "${ECHO_T}$ac_header_preproc" >&6
 
15742
 
 
15743
# So?  What about this header?
 
15744
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
15745
  yes:no: )
 
15746
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
15747
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
15748
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
15749
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
15750
    ac_header_preproc=yes
 
15751
    ;;
 
15752
  no:yes:* )
 
15753
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
15754
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
15755
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
15756
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
15757
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
15758
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
15759
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
15760
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
15761
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
15762
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
15763
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
15764
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
15765
    (
 
15766
      cat <<\_ASBOX
 
15767
## ------------------------------------------ ##
 
15768
## Report this to the AC_PACKAGE_NAME lists.  ##
 
15769
## ------------------------------------------ ##
 
15770
_ASBOX
 
15771
    ) |
 
15772
      sed "s/^/$as_me: WARNING:     /" >&2
 
15773
    ;;
 
15774
esac
 
15775
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
15776
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
15777
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
15778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15779
else
 
15780
  eval "$as_ac_Header=\$ac_header_preproc"
2774
15781
fi
2775
 
echo "$as_me:2775: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
15782
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2776
15783
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
15784
 
 
15785
fi
2777
15786
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2778
 
  cat >>confdefs.h <<EOF
 
15787
  cat >>confdefs.h <<_ACEOF
2779
15788
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2780
 
EOF
2781
 
 
2782
 
fi
2783
 
done
2784
 
 
2785
 
ac_ext=cc
2786
 
ac_cpp='$CXXCPP $CPPFLAGS'
2787
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2788
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2789
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2790
 
if test -n "$ac_tool_prefix"; then
2791
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2792
 
  do
2793
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2794
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2795
 
echo "$as_me:2795: checking for $ac_word" >&5
2796
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2797
 
if test "${ac_cv_prog_CXX+set}" = set; then
2798
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2799
 
else
2800
 
  if test -n "$CXX"; then
2801
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2802
 
else
2803
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2804
 
ac_dummy="$PATH"
2805
 
for ac_dir in $ac_dummy; do
2806
 
  IFS=$ac_save_IFS
2807
 
  test -z "$ac_dir" && ac_dir=.
2808
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2809
 
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2810
 
echo "$as_me:2810: found $ac_dir/$ac_word" >&5
2811
 
break
2812
 
done
2813
 
 
2814
 
fi
2815
 
fi
2816
 
CXX=$ac_cv_prog_CXX
2817
 
if test -n "$CXX"; then
2818
 
  echo "$as_me:2818: result: $CXX" >&5
2819
 
echo "${ECHO_T}$CXX" >&6
2820
 
else
2821
 
  echo "$as_me:2821: result: no" >&5
2822
 
echo "${ECHO_T}no" >&6
2823
 
fi
2824
 
 
2825
 
    test -n "$CXX" && break
2826
 
  done
2827
 
fi
2828
 
if test -z "$CXX"; then
2829
 
  ac_ct_CXX=$CXX
2830
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2831
 
do
2832
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2833
 
set dummy $ac_prog; ac_word=$2
2834
 
echo "$as_me:2834: checking for $ac_word" >&5
2835
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2836
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2837
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2838
 
else
2839
 
  if test -n "$ac_ct_CXX"; then
2840
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2841
 
else
2842
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2843
 
ac_dummy="$PATH"
2844
 
for ac_dir in $ac_dummy; do
2845
 
  IFS=$ac_save_IFS
2846
 
  test -z "$ac_dir" && ac_dir=.
2847
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2848
 
ac_cv_prog_ac_ct_CXX="$ac_prog"
2849
 
echo "$as_me:2849: found $ac_dir/$ac_word" >&5
2850
 
break
2851
 
done
2852
 
 
2853
 
fi
2854
 
fi
2855
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2856
 
if test -n "$ac_ct_CXX"; then
2857
 
  echo "$as_me:2857: result: $ac_ct_CXX" >&5
2858
 
echo "${ECHO_T}$ac_ct_CXX" >&6
2859
 
else
2860
 
  echo "$as_me:2860: result: no" >&5
2861
 
echo "${ECHO_T}no" >&6
2862
 
fi
2863
 
 
2864
 
  test -n "$ac_ct_CXX" && break
2865
 
done
2866
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2867
 
 
2868
 
  CXX=$ac_ct_CXX
2869
 
fi
2870
 
 
2871
 
# Provide some information about the compiler.
2872
 
echo "$as_me:2872:" \
2873
 
     "checking for C++ compiler version" >&5
2874
 
ac_compiler=`set X $ac_compile; echo $2`
2875
 
{ (eval echo "$as_me:2875: \"$ac_compiler --version </dev/null >&5\"") >&5
2876
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2877
 
  ac_status=$?
2878
 
  echo "$as_me:2878: \$? = $ac_status" >&5
2879
 
  (exit $ac_status); }
2880
 
{ (eval echo "$as_me:2880: \"$ac_compiler -v </dev/null >&5\"") >&5
2881
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2882
 
  ac_status=$?
2883
 
  echo "$as_me:2883: \$? = $ac_status" >&5
2884
 
  (exit $ac_status); }
2885
 
{ (eval echo "$as_me:2885: \"$ac_compiler -V </dev/null >&5\"") >&5
2886
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2887
 
  ac_status=$?
2888
 
  echo "$as_me:2888: \$? = $ac_status" >&5
2889
 
  (exit $ac_status); }
2890
 
 
2891
 
echo "$as_me:2891: checking whether we are using the GNU C++ compiler" >&5
2892
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2893
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2894
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2895
 
else
2896
 
  cat >conftest.$ac_ext <<_ACEOF
2897
 
#line 2897 "configure"
2898
 
#include "confdefs.h"
2899
 
 
2900
 
int
2901
 
main ()
2902
 
{
2903
 
#ifndef __GNUC__
2904
 
       choke me
2905
 
#endif
2906
 
 
2907
 
  ;
2908
 
  return 0;
2909
 
}
2910
 
_ACEOF
2911
 
rm -f conftest.$ac_objext
2912
 
if { (eval echo "$as_me:2912: \"$ac_compile\"") >&5
2913
 
  (eval $ac_compile) 2>&5
2914
 
  ac_status=$?
2915
 
  echo "$as_me:2915: \$? = $ac_status" >&5
2916
 
  (exit $ac_status); } &&
2917
 
         { ac_try='test -s conftest.$ac_objext'
2918
 
  { (eval echo "$as_me:2918: \"$ac_try\"") >&5
2919
 
  (eval $ac_try) 2>&5
2920
 
  ac_status=$?
2921
 
  echo "$as_me:2921: \$? = $ac_status" >&5
2922
 
  (exit $ac_status); }; }; then
2923
 
  ac_compiler_gnu=yes
2924
 
else
2925
 
  echo "$as_me: failed program was:" >&5
2926
 
cat conftest.$ac_ext >&5
2927
 
ac_compiler_gnu=no
2928
 
fi
2929
 
rm -f conftest.$ac_objext conftest.$ac_ext
2930
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2931
 
 
2932
 
fi
2933
 
echo "$as_me:2933: result: $ac_cv_cxx_compiler_gnu" >&5
2934
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2935
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
2936
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
2937
 
ac_save_CXXFLAGS=$CXXFLAGS
2938
 
CXXFLAGS="-g"
2939
 
echo "$as_me:2939: checking whether $CXX accepts -g" >&5
2940
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2941
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
2942
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2943
 
else
2944
 
  cat >conftest.$ac_ext <<_ACEOF
2945
 
#line 2945 "configure"
2946
 
#include "confdefs.h"
2947
 
 
2948
 
int
2949
 
main ()
2950
 
{
2951
 
 
2952
 
  ;
2953
 
  return 0;
2954
 
}
2955
 
_ACEOF
2956
 
rm -f conftest.$ac_objext
2957
 
if { (eval echo "$as_me:2957: \"$ac_compile\"") >&5
2958
 
  (eval $ac_compile) 2>&5
2959
 
  ac_status=$?
2960
 
  echo "$as_me:2960: \$? = $ac_status" >&5
2961
 
  (exit $ac_status); } &&
2962
 
         { ac_try='test -s conftest.$ac_objext'
2963
 
  { (eval echo "$as_me:2963: \"$ac_try\"") >&5
2964
 
  (eval $ac_try) 2>&5
2965
 
  ac_status=$?
2966
 
  echo "$as_me:2966: \$? = $ac_status" >&5
2967
 
  (exit $ac_status); }; }; then
2968
 
  ac_cv_prog_cxx_g=yes
2969
 
else
2970
 
  echo "$as_me: failed program was:" >&5
2971
 
cat conftest.$ac_ext >&5
2972
 
ac_cv_prog_cxx_g=no
2973
 
fi
2974
 
rm -f conftest.$ac_objext conftest.$ac_ext
2975
 
fi
2976
 
echo "$as_me:2976: result: $ac_cv_prog_cxx_g" >&5
2977
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2978
 
if test "$ac_test_CXXFLAGS" = set; then
2979
 
  CXXFLAGS=$ac_save_CXXFLAGS
2980
 
elif test $ac_cv_prog_cxx_g = yes; then
2981
 
  if test "$GXX" = yes; then
2982
 
    CXXFLAGS="-g -O2"
2983
 
  else
2984
 
    CXXFLAGS="-g"
2985
 
  fi
2986
 
else
2987
 
  if test "$GXX" = yes; then
2988
 
    CXXFLAGS="-O2"
2989
 
  else
2990
 
    CXXFLAGS=
2991
 
  fi
2992
 
fi
2993
 
for ac_declaration in \
2994
 
   ''\
2995
 
   '#include <stdlib.h>' \
2996
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2997
 
   'extern "C" void std::exit (int); using std::exit;' \
2998
 
   'extern "C" void exit (int) throw ();' \
2999
 
   'extern "C" void exit (int);' \
3000
 
   'void exit (int);'
3001
 
do
3002
 
  cat >conftest.$ac_ext <<_ACEOF
3003
 
#line 3003 "configure"
3004
 
#include "confdefs.h"
3005
 
#include <stdlib.h>
3006
 
$ac_declaration
3007
 
int
3008
 
main ()
3009
 
{
3010
 
exit (42);
3011
 
  ;
3012
 
  return 0;
3013
 
}
3014
 
_ACEOF
3015
 
rm -f conftest.$ac_objext
3016
 
if { (eval echo "$as_me:3016: \"$ac_compile\"") >&5
3017
 
  (eval $ac_compile) 2>&5
3018
 
  ac_status=$?
3019
 
  echo "$as_me:3019: \$? = $ac_status" >&5
3020
 
  (exit $ac_status); } &&
3021
 
         { ac_try='test -s conftest.$ac_objext'
3022
 
  { (eval echo "$as_me:3022: \"$ac_try\"") >&5
3023
 
  (eval $ac_try) 2>&5
3024
 
  ac_status=$?
3025
 
  echo "$as_me:3025: \$? = $ac_status" >&5
3026
 
  (exit $ac_status); }; }; then
3027
 
  :
3028
 
else
3029
 
  echo "$as_me: failed program was:" >&5
3030
 
cat conftest.$ac_ext >&5
3031
 
continue
3032
 
fi
3033
 
rm -f conftest.$ac_objext conftest.$ac_ext
3034
 
  cat >conftest.$ac_ext <<_ACEOF
3035
 
#line 3035 "configure"
3036
 
#include "confdefs.h"
3037
 
$ac_declaration
3038
 
int
3039
 
main ()
3040
 
{
3041
 
exit (42);
3042
 
  ;
3043
 
  return 0;
3044
 
}
3045
 
_ACEOF
3046
 
rm -f conftest.$ac_objext
3047
 
if { (eval echo "$as_me:3047: \"$ac_compile\"") >&5
3048
 
  (eval $ac_compile) 2>&5
3049
 
  ac_status=$?
3050
 
  echo "$as_me:3050: \$? = $ac_status" >&5
3051
 
  (exit $ac_status); } &&
3052
 
         { ac_try='test -s conftest.$ac_objext'
3053
 
  { (eval echo "$as_me:3053: \"$ac_try\"") >&5
3054
 
  (eval $ac_try) 2>&5
3055
 
  ac_status=$?
3056
 
  echo "$as_me:3056: \$? = $ac_status" >&5
3057
 
  (exit $ac_status); }; }; then
3058
 
  break
3059
 
else
3060
 
  echo "$as_me: failed program was:" >&5
3061
 
cat conftest.$ac_ext >&5
3062
 
fi
3063
 
rm -f conftest.$ac_objext conftest.$ac_ext
3064
 
done
3065
 
rm -f conftest*
3066
 
if test -n "$ac_declaration"; then
3067
 
  echo '#ifdef __cplusplus' >>confdefs.h
3068
 
  echo $ac_declaration      >>confdefs.h
3069
 
  echo '#endif'             >>confdefs.h
3070
 
fi
3071
 
 
3072
 
ac_ext=cc
3073
 
ac_cpp='$CXXCPP $CPPFLAGS'
3074
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3077
 
 
3078
 
ac_ext=cc
3079
 
ac_cpp='$CXXCPP $CPPFLAGS'
3080
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3081
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3082
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3083
 
echo "$as_me:3083: checking how to run the C++ preprocessor" >&5
 
15789
_ACEOF
 
15790
 
 
15791
fi
 
15792
 
 
15793
done
 
15794
 
 
15795
ac_ext=cc
 
15796
ac_cpp='$CXXCPP $CPPFLAGS'
 
15797
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15798
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15799
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
15800
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3084
15801
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3085
15802
if test -z "$CXXCPP"; then
3086
15803
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3094
15811
do
3095
15812
  # Use a header file that comes with gcc, so configuring glibc
3096
15813
  # with a fresh cross-compiler works.
 
15814
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15815
  # <limits.h> exists even on freestanding compilers.
3097
15816
  # On the NeXT, cc -E runs the code through the compiler's parser,
3098
15817
  # not just through cpp. "Syntax error" is here to catch this case.
3099
15818
  cat >conftest.$ac_ext <<_ACEOF
3100
 
#line 3100 "configure"
3101
 
#include "confdefs.h"
3102
 
#include <assert.h>
3103
 
                     Syntax error
3104
 
_ACEOF
3105
 
if { (eval echo "$as_me:3105: \"$ac_cpp conftest.$ac_ext\"") >&5
 
15819
/* confdefs.h.  */
 
15820
_ACEOF
 
15821
cat confdefs.h >>conftest.$ac_ext
 
15822
cat >>conftest.$ac_ext <<_ACEOF
 
15823
/* end confdefs.h.  */
 
15824
#ifdef __STDC__
 
15825
# include <limits.h>
 
15826
#else
 
15827
# include <assert.h>
 
15828
#endif
 
15829
                     Syntax error
 
15830
_ACEOF
 
15831
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3106
15832
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3107
15833
  ac_status=$?
3108
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
15834
  grep -v '^ *+' conftest.er1 >conftest.err
3109
15835
  rm -f conftest.er1
3110
15836
  cat conftest.err >&5
3111
 
  echo "$as_me:3111: \$? = $ac_status" >&5
 
15837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112
15838
  (exit $ac_status); } >/dev/null; then
3113
15839
  if test -s conftest.err; then
3114
15840
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
15841
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3115
15842
  else
3116
15843
    ac_cpp_err=
3117
15844
  fi
3122
15849
  :
3123
15850
else
3124
15851
  echo "$as_me: failed program was:" >&5
3125
 
  cat conftest.$ac_ext >&5
 
15852
sed 's/^/| /' conftest.$ac_ext >&5
 
15853
 
3126
15854
  # Broken: fails on valid input.
3127
15855
continue
3128
15856
fi
3131
15859
  # OK, works on sane cases.  Now check whether non-existent headers
3132
15860
  # can be detected and how.
3133
15861
  cat >conftest.$ac_ext <<_ACEOF
3134
 
#line 3134 "configure"
3135
 
#include "confdefs.h"
 
15862
/* confdefs.h.  */
 
15863
_ACEOF
 
15864
cat confdefs.h >>conftest.$ac_ext
 
15865
cat >>conftest.$ac_ext <<_ACEOF
 
15866
/* end confdefs.h.  */
3136
15867
#include <ac_nonexistent.h>
3137
15868
_ACEOF
3138
 
if { (eval echo "$as_me:3138: \"$ac_cpp conftest.$ac_ext\"") >&5
 
15869
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3139
15870
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3140
15871
  ac_status=$?
3141
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
15872
  grep -v '^ *+' conftest.er1 >conftest.err
3142
15873
  rm -f conftest.er1
3143
15874
  cat conftest.err >&5
3144
 
  echo "$as_me:3144: \$? = $ac_status" >&5
 
15875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145
15876
  (exit $ac_status); } >/dev/null; then
3146
15877
  if test -s conftest.err; then
3147
15878
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
15879
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3148
15880
  else
3149
15881
    ac_cpp_err=
3150
15882
  fi
3156
15888
continue
3157
15889
else
3158
15890
  echo "$as_me: failed program was:" >&5
3159
 
  cat conftest.$ac_ext >&5
 
15891
sed 's/^/| /' conftest.$ac_ext >&5
 
15892
 
3160
15893
  # Passes both tests.
3161
15894
ac_preproc_ok=:
3162
15895
break
3178
15911
else
3179
15912
  ac_cv_prog_CXXCPP=$CXXCPP
3180
15913
fi
3181
 
echo "$as_me:3181: result: $CXXCPP" >&5
 
15914
echo "$as_me:$LINENO: result: $CXXCPP" >&5
3182
15915
echo "${ECHO_T}$CXXCPP" >&6
3183
15916
ac_preproc_ok=false
3184
15917
for ac_cxx_preproc_warn_flag in '' yes
3185
15918
do
3186
15919
  # Use a header file that comes with gcc, so configuring glibc
3187
15920
  # with a fresh cross-compiler works.
 
15921
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
15922
  # <limits.h> exists even on freestanding compilers.
3188
15923
  # On the NeXT, cc -E runs the code through the compiler's parser,
3189
15924
  # not just through cpp. "Syntax error" is here to catch this case.
3190
15925
  cat >conftest.$ac_ext <<_ACEOF
3191
 
#line 3191 "configure"
3192
 
#include "confdefs.h"
3193
 
#include <assert.h>
3194
 
                     Syntax error
3195
 
_ACEOF
3196
 
if { (eval echo "$as_me:3196: \"$ac_cpp conftest.$ac_ext\"") >&5
 
15926
/* confdefs.h.  */
 
15927
_ACEOF
 
15928
cat confdefs.h >>conftest.$ac_ext
 
15929
cat >>conftest.$ac_ext <<_ACEOF
 
15930
/* end confdefs.h.  */
 
15931
#ifdef __STDC__
 
15932
# include <limits.h>
 
15933
#else
 
15934
# include <assert.h>
 
15935
#endif
 
15936
                     Syntax error
 
15937
_ACEOF
 
15938
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3197
15939
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3198
15940
  ac_status=$?
3199
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
15941
  grep -v '^ *+' conftest.er1 >conftest.err
3200
15942
  rm -f conftest.er1
3201
15943
  cat conftest.err >&5
3202
 
  echo "$as_me:3202: \$? = $ac_status" >&5
 
15944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203
15945
  (exit $ac_status); } >/dev/null; then
3204
15946
  if test -s conftest.err; then
3205
15947
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
15948
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3206
15949
  else
3207
15950
    ac_cpp_err=
3208
15951
  fi
3213
15956
  :
3214
15957
else
3215
15958
  echo "$as_me: failed program was:" >&5
3216
 
  cat conftest.$ac_ext >&5
 
15959
sed 's/^/| /' conftest.$ac_ext >&5
 
15960
 
3217
15961
  # Broken: fails on valid input.
3218
15962
continue
3219
15963
fi
3222
15966
  # OK, works on sane cases.  Now check whether non-existent headers
3223
15967
  # can be detected and how.
3224
15968
  cat >conftest.$ac_ext <<_ACEOF
3225
 
#line 3225 "configure"
3226
 
#include "confdefs.h"
 
15969
/* confdefs.h.  */
 
15970
_ACEOF
 
15971
cat confdefs.h >>conftest.$ac_ext
 
15972
cat >>conftest.$ac_ext <<_ACEOF
 
15973
/* end confdefs.h.  */
3227
15974
#include <ac_nonexistent.h>
3228
15975
_ACEOF
3229
 
if { (eval echo "$as_me:3229: \"$ac_cpp conftest.$ac_ext\"") >&5
 
15976
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3230
15977
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3231
15978
  ac_status=$?
3232
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
15979
  grep -v '^ *+' conftest.er1 >conftest.err
3233
15980
  rm -f conftest.er1
3234
15981
  cat conftest.err >&5
3235
 
  echo "$as_me:3235: \$? = $ac_status" >&5
 
15982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236
15983
  (exit $ac_status); } >/dev/null; then
3237
15984
  if test -s conftest.err; then
3238
15985
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
15986
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3239
15987
  else
3240
15988
    ac_cpp_err=
3241
15989
  fi
3247
15995
continue
3248
15996
else
3249
15997
  echo "$as_me: failed program was:" >&5
3250
 
  cat conftest.$ac_ext >&5
 
15998
sed 's/^/| /' conftest.$ac_ext >&5
 
15999
 
3251
16000
  # Passes both tests.
3252
16001
ac_preproc_ok=:
3253
16002
break
3260
16009
if $ac_preproc_ok; then
3261
16010
  :
3262
16011
else
3263
 
  { { echo "$as_me:3263: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
3264
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
 
16012
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
16013
See \`config.log' for more details." >&5
 
16014
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
16015
See \`config.log' for more details." >&2;}
3265
16016
   { (exit 1); exit 1; }; }
3266
16017
fi
3267
16018
 
3271
16022
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272
16023
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3273
16024
 
 
16025
 
 
16026
ac_ext=f
 
16027
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
16028
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16029
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
16030
if test -n "$ac_tool_prefix"; then
 
16031
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
16032
  do
 
16033
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
16034
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
16035
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
16036
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
16037
if test "${ac_cv_prog_F77+set}" = set; then
 
16038
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16039
else
 
16040
  if test -n "$F77"; then
 
16041
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
16042
else
 
16043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16044
for as_dir in $PATH
 
16045
do
 
16046
  IFS=$as_save_IFS
 
16047
  test -z "$as_dir" && as_dir=.
 
16048
  for ac_exec_ext in '' $ac_executable_extensions; do
 
16049
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16050
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
16051
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16052
    break 2
 
16053
  fi
 
16054
done
 
16055
done
 
16056
 
 
16057
fi
 
16058
fi
 
16059
F77=$ac_cv_prog_F77
 
16060
if test -n "$F77"; then
 
16061
  echo "$as_me:$LINENO: result: $F77" >&5
 
16062
echo "${ECHO_T}$F77" >&6
 
16063
else
 
16064
  echo "$as_me:$LINENO: result: no" >&5
 
16065
echo "${ECHO_T}no" >&6
 
16066
fi
 
16067
 
 
16068
    test -n "$F77" && break
 
16069
  done
 
16070
fi
 
16071
if test -z "$F77"; then
 
16072
  ac_ct_F77=$F77
 
16073
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
16074
do
 
16075
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
16076
set dummy $ac_prog; ac_word=$2
 
16077
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
16078
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
16079
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
16080
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16081
else
 
16082
  if test -n "$ac_ct_F77"; then
 
16083
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
16084
else
 
16085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16086
for as_dir in $PATH
 
16087
do
 
16088
  IFS=$as_save_IFS
 
16089
  test -z "$as_dir" && as_dir=.
 
16090
  for ac_exec_ext in '' $ac_executable_extensions; do
 
16091
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16092
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
16093
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16094
    break 2
 
16095
  fi
 
16096
done
 
16097
done
 
16098
 
 
16099
fi
 
16100
fi
 
16101
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
16102
if test -n "$ac_ct_F77"; then
 
16103
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
16104
echo "${ECHO_T}$ac_ct_F77" >&6
 
16105
else
 
16106
  echo "$as_me:$LINENO: result: no" >&5
 
16107
echo "${ECHO_T}no" >&6
 
16108
fi
 
16109
 
 
16110
  test -n "$ac_ct_F77" && break
 
16111
done
 
16112
 
 
16113
  F77=$ac_ct_F77
 
16114
fi
 
16115
 
 
16116
 
 
16117
# Provide some information about the compiler.
 
16118
echo "$as_me:16118:" \
 
16119
     "checking for Fortran 77 compiler version" >&5
 
16120
ac_compiler=`set X $ac_compile; echo $2`
 
16121
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
16122
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
16123
  ac_status=$?
 
16124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16125
  (exit $ac_status); }
 
16126
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
16127
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
16128
  ac_status=$?
 
16129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16130
  (exit $ac_status); }
 
16131
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
16132
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
16133
  ac_status=$?
 
16134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16135
  (exit $ac_status); }
 
16136
rm -f a.out
 
16137
 
 
16138
# If we don't use `.F' as extension, the preprocessor is not run on the
 
16139
# input file.  (Note that this only needs to work for GNU compilers.)
 
16140
ac_save_ext=$ac_ext
 
16141
ac_ext=F
 
16142
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
16143
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
16144
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
16145
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16146
else
 
16147
  cat >conftest.$ac_ext <<_ACEOF
 
16148
      program main
 
16149
#ifndef __GNUC__
 
16150
       choke me
 
16151
#endif
 
16152
 
 
16153
      end
 
16154
_ACEOF
 
16155
rm -f conftest.$ac_objext
 
16156
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16157
  (eval $ac_compile) 2>conftest.er1
 
16158
  ac_status=$?
 
16159
  grep -v '^ *+' conftest.er1 >conftest.err
 
16160
  rm -f conftest.er1
 
16161
  cat conftest.err >&5
 
16162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16163
  (exit $ac_status); } &&
 
16164
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
16165
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16166
  (eval $ac_try) 2>&5
 
16167
  ac_status=$?
 
16168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16169
  (exit $ac_status); }; } &&
 
16170
         { ac_try='test -s conftest.$ac_objext'
 
16171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16172
  (eval $ac_try) 2>&5
 
16173
  ac_status=$?
 
16174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16175
  (exit $ac_status); }; }; then
 
16176
  ac_compiler_gnu=yes
 
16177
else
 
16178
  echo "$as_me: failed program was:" >&5
 
16179
sed 's/^/| /' conftest.$ac_ext >&5
 
16180
 
 
16181
ac_compiler_gnu=no
 
16182
fi
 
16183
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16184
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
16185
 
 
16186
fi
 
16187
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
16188
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
16189
ac_ext=$ac_save_ext
 
16190
ac_test_FFLAGS=${FFLAGS+set}
 
16191
ac_save_FFLAGS=$FFLAGS
 
16192
FFLAGS=
 
16193
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
16194
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
16195
if test "${ac_cv_prog_f77_g+set}" = set; then
 
16196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16197
else
 
16198
  FFLAGS=-g
 
16199
cat >conftest.$ac_ext <<_ACEOF
 
16200
      program main
 
16201
 
 
16202
      end
 
16203
_ACEOF
 
16204
rm -f conftest.$ac_objext
 
16205
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16206
  (eval $ac_compile) 2>conftest.er1
 
16207
  ac_status=$?
 
16208
  grep -v '^ *+' conftest.er1 >conftest.err
 
16209
  rm -f conftest.er1
 
16210
  cat conftest.err >&5
 
16211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16212
  (exit $ac_status); } &&
 
16213
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
16214
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16215
  (eval $ac_try) 2>&5
 
16216
  ac_status=$?
 
16217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16218
  (exit $ac_status); }; } &&
 
16219
         { ac_try='test -s conftest.$ac_objext'
 
16220
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16221
  (eval $ac_try) 2>&5
 
16222
  ac_status=$?
 
16223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16224
  (exit $ac_status); }; }; then
 
16225
  ac_cv_prog_f77_g=yes
 
16226
else
 
16227
  echo "$as_me: failed program was:" >&5
 
16228
sed 's/^/| /' conftest.$ac_ext >&5
 
16229
 
 
16230
ac_cv_prog_f77_g=no
 
16231
fi
 
16232
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
16233
 
 
16234
fi
 
16235
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
16236
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
16237
if test "$ac_test_FFLAGS" = set; then
 
16238
  FFLAGS=$ac_save_FFLAGS
 
16239
elif test $ac_cv_prog_f77_g = yes; then
 
16240
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
16241
    FFLAGS="-g -O2"
 
16242
  else
 
16243
    FFLAGS="-g"
 
16244
  fi
 
16245
else
 
16246
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
16247
    FFLAGS="-O2"
 
16248
  else
 
16249
    FFLAGS=
 
16250
  fi
 
16251
fi
 
16252
 
 
16253
G77=`test $ac_compiler_gnu = yes && echo yes`
 
16254
ac_ext=c
 
16255
ac_cpp='$CPP $CPPFLAGS'
 
16256
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16257
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16258
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16259
 
 
16260
 
 
16261
 
3274
16262
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3275
16263
 
3276
16264
# find the maximum length of command line arguments
3277
 
echo "$as_me:3277: checking the maximum length of command line arguments" >&5
 
16265
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3278
16266
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3279
16267
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3280
16268
  echo $ECHO_N "(cached) $ECHO_C" >&6
3281
16269
else
3282
16270
    i=0
3283
 
  testring="ABCD"
 
16271
  teststring="ABCD"
3284
16272
 
3285
 
  case $host_os in
 
16273
  case $build_os in
3286
16274
  msdosdjgpp*)
3287
16275
    # On DJGPP, this test can blow up pretty badly due to problems in libc
3288
16276
    # (any single argument exceeding 2000 bytes causes a buffer overrun
3298
16286
    lt_cv_sys_max_cmd_len=-1;
3299
16287
    ;;
3300
16288
 
3301
 
  *)
 
16289
  cygwin* | mingw*)
 
16290
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
16291
    # about 5 minutes as the teststring grows exponentially.
 
16292
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
16293
    # you end up with a "frozen" computer, even though with patience
 
16294
    # the test eventually succeeds (with a max line length of 256k).
 
16295
    # Instead, let's just punt: use the minimum linelength reported by
 
16296
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
16297
    lt_cv_sys_max_cmd_len=8192;
 
16298
    ;;
 
16299
 
 
16300
  amigaos*)
 
16301
    # On AmigaOS with pdksh, this test takes hours, literally.
 
16302
    # So we just punt and use a minimum line length of 8192.
 
16303
    lt_cv_sys_max_cmd_len=8192;
 
16304
    ;;
 
16305
 
 
16306
 *)
3302
16307
    # If test is not a shell built-in, we'll probably end up computing a
3303
16308
    # maximum length that is only half of the actual maximum length, but
3304
16309
    # we can't tell.
3305
 
    while test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
3306
 
               = "XX$testring" &&
3307
 
            new_result=`expr "X$testring" : ".*" 2>&1` &&
3308
 
            lt_cv_sys_max_cmd_len=$new_result &&
3309
 
            test $i != 17 # 1/2 MB should be enough
 
16310
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
16311
               = "XX$teststring") >/dev/null 2>&1 &&
 
16312
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
16313
            lt_cv_sys_max_cmd_len=$new_result &&
 
16314
            test $i != 17 # 1/2 MB should be enough
3310
16315
    do
3311
16316
      i=`expr $i + 1`
3312
 
      testring=$testring$testring
 
16317
      teststring=$teststring$teststring
3313
16318
    done
3314
 
    testring=
3315
 
    # add a significant safety factor because C++ compilers can tack on massive
3316
 
    # amounts of additional arguments before passing them to the linker.  1/4
3317
 
    # should be good.
3318
 
    len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3319
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len`
 
16319
    teststring=
 
16320
    # Add a significant safety factor because C++ compilers can tack on massive
 
16321
    # amounts of additional arguments before passing them to the linker.
 
16322
    # It appears as though 1/2 is a usable value.
 
16323
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3320
16324
    ;;
3321
16325
  esac
3322
16326
 
3323
16327
fi
3324
16328
 
3325
16329
if test -n $lt_cv_sys_max_cmd_len ; then
3326
 
  echo "$as_me:3326: result: $lt_cv_sys_max_cmd_len" >&5
 
16330
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3327
16331
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3328
16332
else
3329
 
  echo "$as_me:3329: result: none" >&5
 
16333
  echo "$as_me:$LINENO: result: none" >&5
3330
16334
echo "${ECHO_T}none" >&6
3331
16335
fi
3332
16336
 
 
16337
 
 
16338
 
 
16339
 
3333
16340
# Check for command to grab the raw symbol name followed by C symbol from nm.
3334
 
echo "$as_me:3334: checking command to parse $NM output from $compiler object" >&5
 
16341
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
3335
16342
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
3336
16343
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3337
16344
  echo $ECHO_N "(cached) $ECHO_C" >&6
3370
16377
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3371
16378
  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'"
3372
16379
  ;;
3373
 
irix*)
 
16380
irix* | nonstopux*)
3374
16381
  symcode='[BCDEGRST]'
3375
16382
  ;;
 
16383
osf*)
 
16384
  symcode='[BCDEGQRST]'
 
16385
  ;;
3376
16386
solaris* | sysv5*)
3377
 
  symcode='[BDT]'
 
16387
  symcode='[BDRT]'
3378
16388
  ;;
3379
16389
sysv4)
3380
16390
  symcode='[DFNSTU]'
3383
16393
 
3384
16394
# Handle CRLF in mingw tool chain
3385
16395
opt_cr=
3386
 
case $host_os in
 
16396
case $build_os in
3387
16397
mingw*)
3388
16398
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3389
16399
  ;;
3390
16400
esac
3391
16401
 
3392
16402
# If we're using GNU nm, then use its standard symbol codes.
3393
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3394
 
  symcode='[ABCDGISTW]'
3395
 
fi
 
16403
case `$NM -V 2>&1` in
 
16404
*GNU* | *'with BFD'*)
 
16405
  symcode='[ABCDGIRSTW]' ;;
 
16406
esac
3396
16407
 
3397
16408
# Try without a prefix undercore, then with it.
3398
16409
for ac_symprfx in "" "_"; do
3399
16410
 
3400
16411
  # Write the raw and C identifiers.
3401
 
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
16412
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3402
16413
 
3403
16414
  # Check to see that the pipe works correctly.
3404
16415
  pipe_works=no
3416
16427
int main(){nm_test_var='a';nm_test_func();return(0);}
3417
16428
EOF
3418
16429
 
3419
 
  if { (eval echo "$as_me:3419: \"$ac_compile\"") >&5
 
16430
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420
16431
  (eval $ac_compile) 2>&5
3421
16432
  ac_status=$?
3422
 
  echo "$as_me:3422: \$? = $ac_status" >&5
 
16433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423
16434
  (exit $ac_status); }; then
3424
16435
    # Now try to grab the symbols.
3425
16436
    nlist=conftest.nm
3426
 
    if { (eval echo "$as_me:3426: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
16437
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3427
16438
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3428
16439
  ac_status=$?
3429
 
  echo "$as_me:3429: \$? = $ac_status" >&5
 
16440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430
16441
  (exit $ac_status); } && test -s "$nlist"; then
3431
16442
      # Try sorting and uniquifying the output.
3432
16443
      if sort "$nlist" | uniq > "$nlist"T; then
3436
16447
      fi
3437
16448
 
3438
16449
      # Make sure that we snagged all the symbols we need.
3439
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3440
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
16450
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
16451
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
3441
16452
          cat <<EOF > conftest.$ac_ext
3442
16453
#ifdef __cplusplus
3443
16454
extern "C" {
3445
16456
 
3446
16457
EOF
3447
16458
          # Now generate the symbol file.
3448
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
16459
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
3449
16460
 
3450
16461
          cat <<EOF >> conftest.$ac_ext
3451
16462
#if defined (__STDC__) && __STDC__
3463
16474
lt_preloaded_symbols[] =
3464
16475
{
3465
16476
EOF
3466
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
16477
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
3467
16478
          cat <<\EOF >> conftest.$ac_ext
3468
16479
  {0, (lt_ptr_t) 0}
3469
16480
};
3478
16489
          lt_save_CFLAGS="$CFLAGS"
3479
16490
          LIBS="conftstm.$ac_objext"
3480
16491
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
3481
 
          if { (eval echo "$as_me:3481: \"$ac_link\"") >&5
 
16492
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3482
16493
  (eval $ac_link) 2>&5
3483
16494
  ac_status=$?
3484
 
  echo "$as_me:3484: \$? = $ac_status" >&5
 
16495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485
16496
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
3486
16497
            pipe_works=yes
3487
16498
          fi
3516
16527
  lt_cv_sys_global_symbol_to_cdecl=
3517
16528
fi
3518
16529
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3519
 
  echo "$as_me:3519: result: failed" >&5
 
16530
  echo "$as_me:$LINENO: result: failed" >&5
3520
16531
echo "${ECHO_T}failed" >&6
3521
16532
else
3522
 
  echo "$as_me:3522: result: ok" >&5
 
16533
  echo "$as_me:$LINENO: result: ok" >&5
3523
16534
echo "${ECHO_T}ok" >&6
3524
16535
fi
3525
16536
 
3526
 
echo "$as_me:3526: checking for objdir" >&5
 
16537
echo "$as_me:$LINENO: checking for objdir" >&5
3527
16538
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3528
16539
if test "${lt_cv_objdir+set}" = set; then
3529
16540
  echo $ECHO_N "(cached) $ECHO_C" >&6
3538
16549
fi
3539
16550
rmdir .libs 2>/dev/null
3540
16551
fi
3541
 
echo "$as_me:3541: result: $lt_cv_objdir" >&5
 
16552
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
3542
16553
echo "${ECHO_T}$lt_cv_objdir" >&6
3543
16554
objdir=$lt_cv_objdir
3544
16555
 
 
16556
 
 
16557
 
 
16558
 
 
16559
 
3545
16560
case $host_os in
3546
16561
aix3*)
3547
16562
  # AIX sometimes has problems with the GCC collect2 program.  For some
3584
16599
with_gnu_ld="$lt_cv_prog_gnu_ld"
3585
16600
 
3586
16601
if test -n "$ac_tool_prefix"; then
 
16602
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
16603
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
16604
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
16605
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
16606
if test "${ac_cv_prog_AR+set}" = set; then
 
16607
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16608
else
 
16609
  if test -n "$AR"; then
 
16610
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
16611
else
 
16612
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16613
for as_dir in $PATH
 
16614
do
 
16615
  IFS=$as_save_IFS
 
16616
  test -z "$as_dir" && as_dir=.
 
16617
  for ac_exec_ext in '' $ac_executable_extensions; do
 
16618
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16619
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
16620
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16621
    break 2
 
16622
  fi
 
16623
done
 
16624
done
 
16625
 
 
16626
fi
 
16627
fi
 
16628
AR=$ac_cv_prog_AR
 
16629
if test -n "$AR"; then
 
16630
  echo "$as_me:$LINENO: result: $AR" >&5
 
16631
echo "${ECHO_T}$AR" >&6
 
16632
else
 
16633
  echo "$as_me:$LINENO: result: no" >&5
 
16634
echo "${ECHO_T}no" >&6
 
16635
fi
 
16636
 
 
16637
fi
 
16638
if test -z "$ac_cv_prog_AR"; then
 
16639
  ac_ct_AR=$AR
 
16640
  # Extract the first word of "ar", so it can be a program name with args.
 
16641
set dummy ar; ac_word=$2
 
16642
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
16643
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
16644
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
16645
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16646
else
 
16647
  if test -n "$ac_ct_AR"; then
 
16648
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
16649
else
 
16650
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16651
for as_dir in $PATH
 
16652
do
 
16653
  IFS=$as_save_IFS
 
16654
  test -z "$as_dir" && as_dir=.
 
16655
  for ac_exec_ext in '' $ac_executable_extensions; do
 
16656
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16657
    ac_cv_prog_ac_ct_AR="ar"
 
16658
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16659
    break 2
 
16660
  fi
 
16661
done
 
16662
done
 
16663
 
 
16664
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
16665
fi
 
16666
fi
 
16667
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
16668
if test -n "$ac_ct_AR"; then
 
16669
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
16670
echo "${ECHO_T}$ac_ct_AR" >&6
 
16671
else
 
16672
  echo "$as_me:$LINENO: result: no" >&5
 
16673
echo "${ECHO_T}no" >&6
 
16674
fi
 
16675
 
 
16676
  AR=$ac_ct_AR
 
16677
else
 
16678
  AR="$ac_cv_prog_AR"
 
16679
fi
 
16680
 
 
16681
if test -n "$ac_tool_prefix"; then
3587
16682
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3588
16683
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3589
 
echo "$as_me:3589: checking for $ac_word" >&5
 
16684
echo "$as_me:$LINENO: checking for $ac_word" >&5
3590
16685
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3591
16686
if test "${ac_cv_prog_RANLIB+set}" = set; then
3592
16687
  echo $ECHO_N "(cached) $ECHO_C" >&6
3594
16689
  if test -n "$RANLIB"; then
3595
16690
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3596
16691
else
3597
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3598
 
ac_dummy="$PATH"
3599
 
for ac_dir in $ac_dummy; do
3600
 
  IFS=$ac_save_IFS
3601
 
  test -z "$ac_dir" && ac_dir=.
3602
 
  $as_executable_p "$ac_dir/$ac_word" || continue
3603
 
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3604
 
echo "$as_me:3604: found $ac_dir/$ac_word" >&5
3605
 
break
 
16692
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16693
for as_dir in $PATH
 
16694
do
 
16695
  IFS=$as_save_IFS
 
16696
  test -z "$as_dir" && as_dir=.
 
16697
  for ac_exec_ext in '' $ac_executable_extensions; do
 
16698
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16699
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
16700
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16701
    break 2
 
16702
  fi
 
16703
done
3606
16704
done
3607
16705
 
3608
16706
fi
3609
16707
fi
3610
16708
RANLIB=$ac_cv_prog_RANLIB
3611
16709
if test -n "$RANLIB"; then
3612
 
  echo "$as_me:3612: result: $RANLIB" >&5
 
16710
  echo "$as_me:$LINENO: result: $RANLIB" >&5
3613
16711
echo "${ECHO_T}$RANLIB" >&6
3614
16712
else
3615
 
  echo "$as_me:3615: result: no" >&5
 
16713
  echo "$as_me:$LINENO: result: no" >&5
3616
16714
echo "${ECHO_T}no" >&6
3617
16715
fi
3618
16716
 
3621
16719
  ac_ct_RANLIB=$RANLIB
3622
16720
  # Extract the first word of "ranlib", so it can be a program name with args.
3623
16721
set dummy ranlib; ac_word=$2
3624
 
echo "$as_me:3624: checking for $ac_word" >&5
 
16722
echo "$as_me:$LINENO: checking for $ac_word" >&5
3625
16723
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3626
16724
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3627
16725
  echo $ECHO_N "(cached) $ECHO_C" >&6
3629
16727
  if test -n "$ac_ct_RANLIB"; then
3630
16728
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3631
16729
else
3632
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3633
 
ac_dummy="$PATH"
3634
 
for ac_dir in $ac_dummy; do
3635
 
  IFS=$ac_save_IFS
3636
 
  test -z "$ac_dir" && ac_dir=.
3637
 
  $as_executable_p "$ac_dir/$ac_word" || continue
3638
 
ac_cv_prog_ac_ct_RANLIB="ranlib"
3639
 
echo "$as_me:3639: found $ac_dir/$ac_word" >&5
3640
 
break
 
16730
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16731
for as_dir in $PATH
 
16732
do
 
16733
  IFS=$as_save_IFS
 
16734
  test -z "$as_dir" && as_dir=.
 
16735
  for ac_exec_ext in '' $ac_executable_extensions; do
 
16736
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16737
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
16738
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16739
    break 2
 
16740
  fi
 
16741
done
3641
16742
done
3642
16743
 
3643
16744
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3645
16746
fi
3646
16747
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3647
16748
if test -n "$ac_ct_RANLIB"; then
3648
 
  echo "$as_me:3648: result: $ac_ct_RANLIB" >&5
 
16749
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3649
16750
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3650
16751
else
3651
 
  echo "$as_me:3651: result: no" >&5
 
16752
  echo "$as_me:$LINENO: result: no" >&5
3652
16753
echo "${ECHO_T}no" >&6
3653
16754
fi
3654
16755
 
3660
16761
if test -n "$ac_tool_prefix"; then
3661
16762
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3662
16763
set dummy ${ac_tool_prefix}strip; ac_word=$2
3663
 
echo "$as_me:3663: checking for $ac_word" >&5
 
16764
echo "$as_me:$LINENO: checking for $ac_word" >&5
3664
16765
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3665
16766
if test "${ac_cv_prog_STRIP+set}" = set; then
3666
16767
  echo $ECHO_N "(cached) $ECHO_C" >&6
3668
16769
  if test -n "$STRIP"; then
3669
16770
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3670
16771
else
3671
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3672
 
ac_dummy="$PATH"
3673
 
for ac_dir in $ac_dummy; do
3674
 
  IFS=$ac_save_IFS
3675
 
  test -z "$ac_dir" && ac_dir=.
3676
 
  $as_executable_p "$ac_dir/$ac_word" || continue
3677
 
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3678
 
echo "$as_me:3678: found $ac_dir/$ac_word" >&5
3679
 
break
 
16772
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16773
for as_dir in $PATH
 
16774
do
 
16775
  IFS=$as_save_IFS
 
16776
  test -z "$as_dir" && as_dir=.
 
16777
  for ac_exec_ext in '' $ac_executable_extensions; do
 
16778
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16779
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
16780
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16781
    break 2
 
16782
  fi
 
16783
done
3680
16784
done
3681
16785
 
3682
16786
fi
3683
16787
fi
3684
16788
STRIP=$ac_cv_prog_STRIP
3685
16789
if test -n "$STRIP"; then
3686
 
  echo "$as_me:3686: result: $STRIP" >&5
 
16790
  echo "$as_me:$LINENO: result: $STRIP" >&5
3687
16791
echo "${ECHO_T}$STRIP" >&6
3688
16792
else
3689
 
  echo "$as_me:3689: result: no" >&5
 
16793
  echo "$as_me:$LINENO: result: no" >&5
3690
16794
echo "${ECHO_T}no" >&6
3691
16795
fi
3692
16796
 
3695
16799
  ac_ct_STRIP=$STRIP
3696
16800
  # Extract the first word of "strip", so it can be a program name with args.
3697
16801
set dummy strip; ac_word=$2
3698
 
echo "$as_me:3698: checking for $ac_word" >&5
 
16802
echo "$as_me:$LINENO: checking for $ac_word" >&5
3699
16803
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3700
16804
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3701
16805
  echo $ECHO_N "(cached) $ECHO_C" >&6
3703
16807
  if test -n "$ac_ct_STRIP"; then
3704
16808
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3705
16809
else
3706
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3707
 
ac_dummy="$PATH"
3708
 
for ac_dir in $ac_dummy; do
3709
 
  IFS=$ac_save_IFS
3710
 
  test -z "$ac_dir" && ac_dir=.
3711
 
  $as_executable_p "$ac_dir/$ac_word" || continue
3712
 
ac_cv_prog_ac_ct_STRIP="strip"
3713
 
echo "$as_me:3713: found $ac_dir/$ac_word" >&5
3714
 
break
 
16810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
16811
for as_dir in $PATH
 
16812
do
 
16813
  IFS=$as_save_IFS
 
16814
  test -z "$as_dir" && as_dir=.
 
16815
  for ac_exec_ext in '' $ac_executable_extensions; do
 
16816
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
16817
    ac_cv_prog_ac_ct_STRIP="strip"
 
16818
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
16819
    break 2
 
16820
  fi
 
16821
done
3715
16822
done
3716
16823
 
3717
16824
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3719
16826
fi
3720
16827
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3721
16828
if test -n "$ac_ct_STRIP"; then
3722
 
  echo "$as_me:3722: result: $ac_ct_STRIP" >&5
 
16829
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3723
16830
echo "${ECHO_T}$ac_ct_STRIP" >&6
3724
16831
else
3725
 
  echo "$as_me:3725: result: no" >&5
 
16832
  echo "$as_me:$LINENO: result: no" >&5
3726
16833
echo "${ECHO_T}no" >&6
3727
16834
fi
3728
16835
 
3731
16838
  STRIP="$ac_cv_prog_STRIP"
3732
16839
fi
3733
16840
 
 
16841
 
3734
16842
old_CC="$CC"
3735
16843
old_CFLAGS="$CFLAGS"
3736
16844
 
3745
16853
test -z "$LN_S" && LN_S="ln -s"
3746
16854
test -z "$MAGIC_CMD" && MAGIC_CMD=file
3747
16855
test -z "$NM" && NM=nm
 
16856
test -z "$SED" && SED=sed
3748
16857
test -z "$OBJDUMP" && OBJDUMP=objdump
3749
16858
test -z "$RANLIB" && RANLIB=:
3750
16859
test -z "$STRIP" && STRIP=:
3756
16865
old_postuninstall_cmds=
3757
16866
 
3758
16867
if test -n "$RANLIB"; then
 
16868
  case $host_os in
 
16869
  openbsd*)
 
16870
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
16871
    ;;
 
16872
  *)
 
16873
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
16874
    ;;
 
16875
  esac
3759
16876
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3760
 
  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3761
16877
fi
3762
16878
 
3763
16879
# Only perform the check for file, if the check method requires it
3764
16880
case $deplibs_check_method in
3765
16881
file_magic*)
3766
16882
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3767
 
    echo "$as_me:3767: checking for ${ac_tool_prefix}file" >&5
 
16883
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3768
16884
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3769
16885
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3770
16886
  echo $ECHO_N "(cached) $ECHO_C" >&6
3771
16887
else
3772
16888
  case $MAGIC_CMD in
3773
 
\\/* |  ?:\\/*)
 
16889
[\\/*] |  ?:[\\/]*)
3774
16890
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3775
16891
  ;;
3776
16892
*)
3777
16893
  lt_save_MAGIC_CMD="$MAGIC_CMD"
3778
 
  IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${PATH_SEPARATOR-:}"
3779
 
  ac_dummy="/usr/bin${PATH_SEPARATOR-:}$PATH"
 
16894
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
16895
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
3780
16896
  for ac_dir in $ac_dummy; do
3781
16897
    IFS="$lt_save_ifs"
3782
16898
    test -z "$ac_dir" && ac_dir=.
3788
16904
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3789
16905
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3790
16906
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3791
 
            egrep "$file_magic_regex" > /dev/null; then
 
16907
            $EGREP "$file_magic_regex" > /dev/null; then
3792
16908
            :
3793
16909
          else
3794
16910
            cat <<EOF 1>&2
3817
16933
 
3818
16934
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3819
16935
if test -n "$MAGIC_CMD"; then
3820
 
  echo "$as_me:3820: result: $MAGIC_CMD" >&5
 
16936
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3821
16937
echo "${ECHO_T}$MAGIC_CMD" >&6
3822
16938
else
3823
 
  echo "$as_me:3823: result: no" >&5
 
16939
  echo "$as_me:$LINENO: result: no" >&5
3824
16940
echo "${ECHO_T}no" >&6
3825
16941
fi
3826
16942
 
3827
16943
if test -z "$lt_cv_path_MAGIC_CMD"; then
3828
16944
  if test -n "$ac_tool_prefix"; then
3829
 
    echo "$as_me:3829: checking for file" >&5
 
16945
    echo "$as_me:$LINENO: checking for file" >&5
3830
16946
echo $ECHO_N "checking for file... $ECHO_C" >&6
3831
16947
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3832
16948
  echo $ECHO_N "(cached) $ECHO_C" >&6
3833
16949
else
3834
16950
  case $MAGIC_CMD in
3835
 
\\/* |  ?:\\/*)
 
16951
[\\/*] |  ?:[\\/]*)
3836
16952
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3837
16953
  ;;
3838
16954
*)
3839
16955
  lt_save_MAGIC_CMD="$MAGIC_CMD"
3840
 
  IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${PATH_SEPARATOR-:}"
3841
 
  ac_dummy="/usr/bin${PATH_SEPARATOR-:}$PATH"
 
16956
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
16957
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
3842
16958
  for ac_dir in $ac_dummy; do
3843
16959
    IFS="$lt_save_ifs"
3844
16960
    test -z "$ac_dir" && ac_dir=.
3850
16966
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3851
16967
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3852
16968
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3853
 
            egrep "$file_magic_regex" > /dev/null; then
 
16969
            $EGREP "$file_magic_regex" > /dev/null; then
3854
16970
            :
3855
16971
          else
3856
16972
            cat <<EOF 1>&2
3879
16995
 
3880
16996
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3881
16997
if test -n "$MAGIC_CMD"; then
3882
 
  echo "$as_me:3882: result: $MAGIC_CMD" >&5
 
16998
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3883
16999
echo "${ECHO_T}$MAGIC_CMD" >&6
3884
17000
else
3885
 
  echo "$as_me:3885: result: no" >&5
 
17001
  echo "$as_me:$LINENO: result: no" >&5
3886
17002
echo "${ECHO_T}no" >&6
3887
17003
fi
3888
17004
 
3896
17012
esac
3897
17013
 
3898
17014
enable_dlopen=no
3899
 
enable_win32_dll=no
 
17015
enable_win32_dll=yes
3900
17016
 
3901
17017
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3902
17018
if test "${enable_libtool_lock+set}" = set; then
3905
17021
fi;
3906
17022
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3907
17023
 
 
17024
 
3908
17025
# Check whether --with-pic or --without-pic was given.
3909
17026
if test "${with_pic+set}" = set; then
3910
17027
  withval="$with_pic"
3923
17040
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3924
17041
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3925
17042
 
 
17043
 
3926
17044
# Source file extension for C test sources.
3927
17045
ac_ext=c
3928
17046
 
3931
17049
objext=$objext
3932
17050
 
3933
17051
# Code to be used in simple compile tests
3934
 
lt_simple_compile_test_code="int some_variable = 0;"
 
17052
lt_simple_compile_test_code="int some_variable = 0;\n"
3935
17053
 
3936
17054
# Code to be used in simple link tests
3937
 
lt_simple_link_test_code='main(){return(0);}'
 
17055
lt_simple_link_test_code='int main(){return(0);}\n'
 
17056
 
3938
17057
 
3939
17058
# If no C compiler was specified, use CC.
3940
17059
LTCC=${LTCC-"$CC"}
3941
17060
 
3942
17061
# Allow CC to be a program name with arguments.
3943
 
set dummy $CC
3944
 
compiler="$2"
 
17062
compiler=$CC
 
17063
 
3945
17064
 
3946
17065
#
3947
17066
# Check for any special shared library compilation flags.
3955
17074
  esac
3956
17075
fi
3957
17076
if test -n "$lt_prog_cc_shlib"; then
3958
 
  { echo "$as_me:3958: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
17077
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
3959
17078
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
3960
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
17079
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
3961
17080
  else
3962
 
    { echo "$as_me:3962: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
17081
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
3963
17082
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
3964
17083
    lt_cv_prog_cc_can_build_shared=no
3965
17084
  fi
3966
17085
fi
3967
17086
 
 
17087
 
3968
17088
#
3969
17089
# Check to make sure the static flag actually works.
3970
17090
#
3971
 
echo "$as_me:3971: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
17091
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
3972
17092
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
3973
17093
if test "${lt_prog_compiler_static_works+set}" = set; then
3974
17094
  echo $ECHO_N "(cached) $ECHO_C" >&6
3976
17096
  lt_prog_compiler_static_works=no
3977
17097
   save_LDFLAGS="$LDFLAGS"
3978
17098
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
3979
 
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
17099
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
3980
17100
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
3981
17101
     # The compiler can only warn and ignore the option if not recognized
3982
17102
     # So say no if there are warnings
3991
17111
   LDFLAGS="$save_LDFLAGS"
3992
17112
 
3993
17113
fi
3994
 
echo "$as_me:3994: result: $lt_prog_compiler_static_works" >&5
 
17114
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
3995
17115
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
3996
17116
 
3997
17117
if test x"$lt_prog_compiler_static_works" = xyes; then
4000
17120
    lt_prog_compiler_static=
4001
17121
fi
4002
17122
 
 
17123
 
 
17124
 
 
17125
 
4003
17126
lt_prog_compiler_no_builtin_flag=
4004
17127
 
4005
17128
if test "$GCC" = yes; then
4006
17129
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
4007
17130
 
4008
 
  echo "$as_me:4008: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17131
 
 
17132
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4009
17133
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4010
17134
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
4011
17135
  echo $ECHO_N "(cached) $ECHO_C" >&6
4012
17136
else
4013
17137
  lt_cv_prog_compiler_rtti_exceptions=no
4014
17138
  ac_outfile=conftest.$ac_objext
4015
 
   save_CFLAGS="$CFLAGS"
4016
 
   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4017
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4018
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
 
17139
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17140
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17141
   # Insert the option either (1) after the last *FLAGS variable, or
 
17142
   # (2) before a word containing "conftest.", or (3) at the end.
 
17143
   # Note that $ac_compile itself does not contain backslashes and begins
 
17144
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17145
   # The option is referenced via a variable to avoid confusing sed.
 
17146
   lt_compile=`echo "$ac_compile" | $SED \
 
17147
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17148
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17149
   -e 's:$: $lt_compiler_flag:'`
 
17150
   (eval echo "\"\$as_me:17150: $lt_compile\"" >&5)
 
17151
   (eval "$lt_compile" 2>conftest.err)
 
17152
   ac_status=$?
 
17153
   cat conftest.err >&5
 
17154
   echo "$as_me:17154: \$? = $ac_status" >&5
 
17155
   if (exit $ac_status) && test -s "$ac_outfile"; then
4019
17156
     # The compiler can only warn and ignore the option if not recognized
4020
17157
     # So say no if there are warnings
4021
 
     if test -s conftest.err; then
4022
 
       # Append any errors to the config.log.
4023
 
       cat conftest.err 1>&5
4024
 
     else
 
17158
     if test ! -s conftest.err; then
4025
17159
       lt_cv_prog_compiler_rtti_exceptions=yes
4026
17160
     fi
4027
17161
   fi
4028
17162
   $rm conftest*
4029
 
   CFLAGS="$save_CFLAGS"
4030
17163
 
4031
17164
fi
4032
 
echo "$as_me:4032: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17165
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
4033
17166
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
4034
17167
 
4035
17168
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
4044
17177
lt_prog_compiler_pic=
4045
17178
lt_prog_compiler_static=
4046
17179
 
4047
 
echo "$as_me:4047: checking for $compiler option to produce PIC" >&5
 
17180
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4048
17181
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
17182
 
4049
17183
  if test "$GCC" = yes; then
4050
17184
    lt_prog_compiler_wl='-Wl,'
4051
17185
    lt_prog_compiler_static='-static'
4054
17188
      aix*)
4055
17189
      # All AIX code is PIC.
4056
17190
      if test "$host_cpu" = ia64; then
4057
 
        # AIX 5 now supports IA64 processor
4058
 
        lt_prog_compiler_static='-Bstatic'
 
17191
        # AIX 5 now supports IA64 processor
 
17192
        lt_prog_compiler_static='-Bstatic'
4059
17193
      fi
4060
17194
      ;;
4061
17195
 
4066
17200
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
4067
17201
      ;;
4068
17202
 
4069
 
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
 
17203
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4070
17204
      # PIC is the default for these OSes.
4071
17205
      ;;
4072
17206
 
4073
 
    cygwin* | mingw* | pw32* | os2*)
 
17207
    mingw* | pw32* | os2*)
4074
17208
      # This hack is so that the source file can tell whether it is being
4075
17209
      # built for inclusion in a dll (and should export symbols for example).
4076
17210
      lt_prog_compiler_pic='-DDLL_EXPORT'
4091
17225
 
4092
17226
    sysv4*MP*)
4093
17227
      if test -d /usr/nec; then
4094
 
        lt_prog_compiler_pic=-Kconform_pic
 
17228
        lt_prog_compiler_pic=-Kconform_pic
4095
17229
      fi
4096
17230
      ;;
4097
17231
 
4098
17232
    hpux*)
4099
 
      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
4100
 
      if test "$host_cpu" != ia64; then
4101
 
        lt_prog_compiler_pic='-fPIC'
4102
 
      fi
 
17233
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17234
      # not for PA HP-UX.
 
17235
      case "$host_cpu" in
 
17236
      hppa*64*|ia64*)
 
17237
        # +Z the default
 
17238
        ;;
 
17239
      *)
 
17240
        lt_prog_compiler_pic='-fPIC'
 
17241
        ;;
 
17242
      esac
4103
17243
      ;;
4104
17244
 
4105
17245
    *)
4112
17252
    aix*)
4113
17253
      lt_prog_compiler_wl='-Wl,'
4114
17254
      if test "$host_cpu" = ia64; then
4115
 
        # AIX 5 now supports IA64 processor
4116
 
        lt_prog_compiler_static='-Bstatic'
 
17255
        # AIX 5 now supports IA64 processor
 
17256
        lt_prog_compiler_static='-Bstatic'
4117
17257
      else
4118
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
17258
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
4119
17259
      fi
4120
17260
      ;;
4121
17261
 
4122
 
    cygwin* | mingw* | pw32* | os2*)
 
17262
    mingw* | pw32* | os2*)
4123
17263
      # This hack is so that the source file can tell whether it is being
4124
17264
      # built for inclusion in a dll (and should export symbols for example).
4125
17265
      lt_prog_compiler_pic='-DDLL_EXPORT'
4127
17267
 
4128
17268
    hpux9* | hpux10* | hpux11*)
4129
17269
      lt_prog_compiler_wl='-Wl,'
4130
 
      if test "$host_cpu" != ia64; then
4131
 
        lt_prog_compiler_pic='+Z'
4132
 
      fi
 
17270
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17271
      # not for PA HP-UX.
 
17272
      case "$host_cpu" in
 
17273
      hppa*64*|ia64*)
 
17274
        # +Z the default
 
17275
        ;;
 
17276
      *)
 
17277
        lt_prog_compiler_pic='+Z'
 
17278
        ;;
 
17279
      esac
4133
17280
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
4134
17281
      lt_prog_compiler_static='${wl}-a ${wl}archive'
4135
17282
      ;;
4136
17283
 
4137
 
    irix5* | irix6*)
 
17284
    irix5* | irix6* | nonstopux*)
4138
17285
      lt_prog_compiler_wl='-Wl,'
4139
17286
      # PIC (with -KPIC) is the default.
4140
17287
      lt_prog_compiler_static='-non_shared'
4145
17292
      lt_prog_compiler_static='-Bstatic'
4146
17293
      ;;
4147
17294
 
 
17295
    linux*)
 
17296
      case $CC in
 
17297
      icc* | ecc*)
 
17298
        lt_prog_compiler_wl='-Wl,'
 
17299
        lt_prog_compiler_pic='-KPIC'
 
17300
        lt_prog_compiler_static='-static'
 
17301
        ;;
 
17302
      ccc*)
 
17303
        lt_prog_compiler_wl='-Wl,'
 
17304
        # All Alpha code is PIC.
 
17305
        lt_prog_compiler_static='-non_shared'
 
17306
        ;;
 
17307
      esac
 
17308
      ;;
 
17309
 
4148
17310
    osf3* | osf4* | osf5*)
4149
17311
      lt_prog_compiler_wl='-Wl,'
4150
17312
      # All OSF/1 code is PIC.
4169
17331
      ;;
4170
17332
 
4171
17333
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4172
 
      if test "x$host_vendor" = xsni; then
4173
 
        lt_prog_compiler_wl='-LD'
4174
 
      else
4175
 
        lt_prog_compiler_wl='-Wl,'
4176
 
      fi
 
17334
      lt_prog_compiler_wl='-Wl,'
4177
17335
      lt_prog_compiler_pic='-KPIC'
4178
17336
      lt_prog_compiler_static='-Bstatic'
4179
17337
      ;;
4180
17338
 
4181
17339
    sysv4*MP*)
4182
17340
      if test -d /usr/nec ;then
4183
 
        lt_prog_compiler_pic='-Kconform_pic'
4184
 
        lt_prog_compiler_static='-Bstatic'
 
17341
        lt_prog_compiler_pic='-Kconform_pic'
 
17342
        lt_prog_compiler_static='-Bstatic'
4185
17343
      fi
4186
17344
      ;;
4187
17345
 
4196
17354
    esac
4197
17355
  fi
4198
17356
 
4199
 
echo "$as_me:4199: result: $lt_prog_compiler_pic" >&5
 
17357
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
4200
17358
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
4201
17359
 
4202
17360
#
4203
17361
# Check to make sure the PIC flag actually works.
4204
17362
#
4205
17363
if test -n "$lt_prog_compiler_pic"; then
4206
 
  echo "$as_me:4206: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
17364
 
 
17365
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
4207
17366
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
4208
17367
if test "${lt_prog_compiler_pic_works+set}" = set; then
4209
17368
  echo $ECHO_N "(cached) $ECHO_C" >&6
4210
17369
else
4211
17370
  lt_prog_compiler_pic_works=no
4212
17371
  ac_outfile=conftest.$ac_objext
4213
 
   save_CFLAGS="$CFLAGS"
4214
 
   CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
4215
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4216
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
 
17372
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17373
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
17374
   # Insert the option either (1) after the last *FLAGS variable, or
 
17375
   # (2) before a word containing "conftest.", or (3) at the end.
 
17376
   # Note that $ac_compile itself does not contain backslashes and begins
 
17377
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17378
   # The option is referenced via a variable to avoid confusing sed.
 
17379
   lt_compile=`echo "$ac_compile" | $SED \
 
17380
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17381
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17382
   -e 's:$: $lt_compiler_flag:'`
 
17383
   (eval echo "\"\$as_me:17383: $lt_compile\"" >&5)
 
17384
   (eval "$lt_compile" 2>conftest.err)
 
17385
   ac_status=$?
 
17386
   cat conftest.err >&5
 
17387
   echo "$as_me:17387: \$? = $ac_status" >&5
 
17388
   if (exit $ac_status) && test -s "$ac_outfile"; then
4217
17389
     # The compiler can only warn and ignore the option if not recognized
4218
17390
     # So say no if there are warnings
4219
 
     if test -s conftest.err; then
4220
 
       # Append any errors to the config.log.
4221
 
       cat conftest.err 1>&5
4222
 
     else
 
17391
     if test ! -s conftest.err; then
4223
17392
       lt_prog_compiler_pic_works=yes
4224
17393
     fi
4225
17394
   fi
4226
17395
   $rm conftest*
4227
 
   CFLAGS="$save_CFLAGS"
4228
17396
 
4229
17397
fi
4230
 
echo "$as_me:4230: result: $lt_prog_compiler_pic_works" >&5
 
17398
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
4231
17399
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
4232
17400
 
4233
17401
if test x"$lt_prog_compiler_pic_works" = xyes; then
4251
17419
    ;;
4252
17420
esac
4253
17421
 
4254
 
echo "$as_me:4254: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17422
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4255
17423
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4256
17424
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
4257
17425
  echo $ECHO_N "(cached) $ECHO_C" >&6
4261
17429
   mkdir conftest
4262
17430
   cd conftest
4263
17431
   mkdir out
4264
 
   save_CFLAGS="$CFLAGS"
4265
 
                   CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4266
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4267
 
 
4268
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4269
 
   # that will create temporary files in the current directory regardless of
4270
 
   # the output directory.  Thus, making CWD read-only will cause this test
4271
 
   # to fail, enabling locking or at least warning the user not to do parallel
4272
 
   # builds.
4273
 
   chmod -w .
4274
 
 
4275
 
   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
 
17432
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17433
 
 
17434
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17435
   # Insert the option either (1) after the last *FLAGS variable, or
 
17436
   # (2) before a word containing "conftest.", or (3) at the end.
 
17437
   # Note that $ac_compile itself does not contain backslashes and begins
 
17438
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17439
   lt_compile=`echo "$ac_compile" | $SED \
 
17440
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17441
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17442
   -e 's:$: $lt_compiler_flag:'`
 
17443
   (eval echo "\"\$as_me:17443: $lt_compile\"" >&5)
 
17444
   (eval "$lt_compile" 2>out/conftest.err)
 
17445
   ac_status=$?
 
17446
   cat out/conftest.err >&5
 
17447
   echo "$as_me:17447: \$? = $ac_status" >&5
 
17448
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
4276
17449
   then
4277
17450
     # The compiler can only warn and ignore the option if not recognized
4278
17451
     # So say no if there are warnings
4279
 
     if test -s out/conftest.err; then
4280
 
       # Append any errors to the config.log.
4281
 
       cat out/conftest.err 1>&5
4282
 
     else
 
17452
     if test ! -s out/conftest.err; then
4283
17453
       lt_cv_prog_compiler_c_o=yes
4284
17454
     fi
4285
17455
   fi
4286
 
   CFLAGS="$save_CFLAGS"
4287
17456
   chmod u+w .
4288
 
   $rm conftest* out/*
4289
 
   rmdir out
 
17457
   $rm conftest*
 
17458
   # SGI C++ compiler will create directory out/ii_files/ for
 
17459
   # template instantiation
 
17460
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17461
   $rm out/* && rmdir out
4290
17462
   cd ..
4291
17463
   rmdir conftest
4292
17464
   $rm conftest*
4293
17465
 
4294
17466
fi
4295
 
echo "$as_me:4295: result: $lt_cv_prog_compiler_c_o" >&5
 
17467
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
4296
17468
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
4297
17469
 
 
17470
 
4298
17471
hard_links="nottested"
4299
17472
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
4300
17473
  # do not overwrite the value of need_locks provided by the user
4301
 
  echo "$as_me:4301: checking if we can lock with hard links" >&5
 
17474
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4302
17475
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4303
17476
  hard_links=yes
4304
17477
  $rm conftest*
4306
17479
  touch conftest.a
4307
17480
  ln conftest.a conftest.b 2>&5 || hard_links=no
4308
17481
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4309
 
  echo "$as_me:4309: result: $hard_links" >&5
 
17482
  echo "$as_me:$LINENO: result: $hard_links" >&5
4310
17483
echo "${ECHO_T}$hard_links" >&6
4311
17484
  if test "$hard_links" = no; then
4312
 
    { echo "$as_me:4312: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17485
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4313
17486
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4314
17487
    need_locks=warn
4315
17488
  fi
4317
17490
  need_locks=no
4318
17491
fi
4319
17492
 
4320
 
echo "$as_me:4320: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17493
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
4321
17494
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
4322
17495
 
4323
17496
  runpath_var=
4324
17497
  allow_undefined_flag=
4325
 
 
 
17498
  enable_shared_with_static_runtimes=no
4326
17499
  archive_cmds=
4327
 
  archive_cmds_need_lc=
4328
17500
  archive_expsym_cmds=
4329
17501
  old_archive_From_new_cmds=
4330
17502
  old_archive_from_expsyms_cmds=
4332
17504
  whole_archive_flag_spec=
4333
17505
  thread_safe_flag_spec=
4334
17506
  hardcode_libdir_flag_spec=
 
17507
  hardcode_libdir_flag_spec_ld=
4335
17508
  hardcode_libdir_separator=
4336
17509
  hardcode_direct=no
4337
17510
  hardcode_minus_L=no
4338
17511
  hardcode_shlibpath_var=unsupported
4339
17512
  link_all_deplibs=unknown
 
17513
  hardcode_automatic=no
 
17514
  module_cmds=
 
17515
  module_expsym_cmds=
4340
17516
  always_export_symbols=no
4341
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17517
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4342
17518
  # include_expsyms should be a list of space-separated symbols to be *always*
4343
17519
  # included in the symbol list
4344
17520
  include_expsyms=
4345
 
  # exclude_expsyms can be an egrep regular expression of symbols to exclude
 
17521
  # exclude_expsyms can be an extended regexp of symbols to exclude
4346
17522
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
4347
17523
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4348
17524
  # as well as any symbol that contains `d'.
4378
17554
    aix3* | aix4* | aix5*)
4379
17555
      # On AIX/PPC, the GNU linker is very broken
4380
17556
      if test "$host_cpu" != ia64; then
4381
 
        ld_shlibs=no
4382
 
        cat <<EOF 1>&2
 
17557
        ld_shlibs=no
 
17558
        cat <<EOF 1>&2
4383
17559
 
4384
17560
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4385
17561
*** to be unable to reliably create shared libraries on AIX.
4406
17582
      ;;
4407
17583
 
4408
17584
    beos*)
4409
 
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4410
 
        allow_undefined_flag=unsupported
4411
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4412
 
        # support --undefined.  This deserves some investigation.  FIXME
4413
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17585
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17586
        allow_undefined_flag=unsupported
 
17587
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17588
        # support --undefined.  This deserves some investigation.  FIXME
 
17589
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4414
17590
      else
4415
 
        ld_shlibs=no
 
17591
        ld_shlibs=no
4416
17592
      fi
4417
17593
      ;;
4418
17594
 
4419
17595
    cygwin* | mingw* | pw32*)
4420
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
4421
 
      # no search path for DLLs.
 
17596
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
17597
      # as there is no search path for DLLs.
4422
17598
      hardcode_libdir_flag_spec='-L$libdir'
4423
17599
      allow_undefined_flag=unsupported
4424
 
      always_export_symbols=yes
4425
 
 
4426
 
      extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4427
 
        sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4428
 
        test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4429
 
        if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4430
 
        else $CC -o impgen impgen.c ; fi)~
4431
 
        $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4432
 
 
4433
 
      old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4434
 
 
4435
 
      # cygwin and mingw dlls have different entry points and sets of symbols
4436
 
      # to exclude.
4437
 
      # FIXME: what about values for MSVC?
4438
 
      dll_entry=__cygwin_dll_entry@12
4439
 
      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4440
 
      case $host_os in
4441
 
      mingw*)
4442
 
        # mingw values
4443
 
        dll_entry=_DllMainCRTStartup@12
4444
 
        dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4445
 
        ;;
4446
 
      esac
4447
 
 
4448
 
      # mingw and cygwin differ, and it's simplest to just exclude the union
4449
 
      # of the two symbol sets.
4450
 
      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4451
 
 
4452
 
      # recent cygwin and mingw systems supply a stub DllMain which the user
4453
 
      # can override, but on older systems we have to supply one (in ltdll.c)
4454
 
      if test "x$lt_cv_need_dllmain" = "xyes"; then
4455
 
        ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4456
 
        ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
4457
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
 
17600
      always_export_symbols=no
 
17601
      enable_shared_with_static_runtimes=yes
 
17602
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17603
 
 
17604
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17605
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
17606
        # If the export-symbols file already is a .def file (1st line
 
17607
        # is EXPORTS), use it as is; otherwise, prepend...
 
17608
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17609
          cp $export_symbols $output_objdir/$soname.def;
 
17610
        else
 
17611
          echo EXPORTS > $output_objdir/$soname.def;
 
17612
          cat $export_symbols >> $output_objdir/$soname.def;
 
17613
        fi~
 
17614
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
4458
17615
      else
4459
 
        ltdll_obj=
4460
 
        ltdll_cmds=
 
17616
        ld_shlibs=no
4461
17617
      fi
4462
 
 
4463
 
      # Extract the symbol export list from an `--export-all' def file,
4464
 
      # then regenerate the def file from the symbol export list, so that
4465
 
      # the compiled dll only exports the symbol export list.
4466
 
      # Be careful not to strip the DATA tag left by newer dlltools.
4467
 
      export_symbols_cmds="$ltdll_cmds"'
4468
 
        $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4469
 
        sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4470
 
 
4471
 
      # If the export-symbols file already is a .def file (1st line
4472
 
      # is EXPORTS), use it as is.
4473
 
      # If DATA tags from a recent dlltool are present, honour them!
4474
 
      archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4475
 
          cp $export_symbols $output_objdir/$soname-def;
4476
 
        else
4477
 
          echo EXPORTS > $output_objdir/$soname-def;
4478
 
          _lt_hint=1;
4479
 
          cat $export_symbols | while read symbol; do
4480
 
           set dummy \$symbol;
4481
 
           case \$# in
4482
 
             2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4483
 
             *) echo "   \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4484
 
           esac;
4485
 
           _lt_hint=`expr 1 + \$_lt_hint`;
4486
 
          done;
4487
 
        fi~
4488
 
        '"$ltdll_cmds"'
4489
 
        $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4490
 
        $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4491
 
        $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4492
 
        $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4493
 
        $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4494
 
      ;;
4495
 
 
4496
 
    darwin* | rhapsody*)
4497
 
      allow_undefined_flag='-undefined suppress'
4498
 
      # FIXME: Relying on posixy $() will cause problems for
4499
 
      #        cross-compilation, but unfortunately the echo tests do not
4500
 
      #        yet detect zsh echo's removal of \ escapes.
4501
 
      archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
4502
 
      # We need to add '_' to the symbols in $export_symbols first
4503
 
      #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
4504
 
      hardcode_direct=yes
4505
 
      hardcode_shlibpath_var=no
4506
 
      whole_archive_flag_spec='-all_load $convenience'
4507
 
      ;;
4508
 
 
4509
 
    netbsd*)
 
17618
      ;;
 
17619
 
 
17620
    netbsd* | knetbsd*-gnu)
4510
17621
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4511
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4512
 
        wlarc=
 
17622
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17623
        wlarc=
4513
17624
      else
4514
 
        archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4515
 
        archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17625
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17626
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4516
17627
      fi
4517
17628
      ;;
4518
17629
 
4519
17630
    solaris* | sysv5*)
4520
 
      if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4521
 
        ld_shlibs=no
4522
 
        cat <<EOF 1>&2
 
17631
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17632
        ld_shlibs=no
 
17633
        cat <<EOF 1>&2
4523
17634
 
4524
17635
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4525
17636
*** create shared libraries on Solaris systems.  Therefore, libtool
4529
17640
*** used, and then restart.
4530
17641
 
4531
17642
EOF
4532
 
      elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4533
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4534
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17643
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17644
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17645
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4535
17646
      else
4536
 
        ld_shlibs=no
 
17647
        ld_shlibs=no
4537
17648
      fi
4538
17649
      ;;
4539
17650
 
4544
17655
      hardcode_shlibpath_var=no
4545
17656
      ;;
4546
17657
 
 
17658
  linux*)
 
17659
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17660
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17661
        archive_cmds="$tmp_archive_cmds"
 
17662
      supports_anon_versioning=no
 
17663
      case `$LD -v 2>/dev/null` in
 
17664
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17665
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17666
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17667
        *\ 2.11.*) ;; # other 2.11 versions
 
17668
        *) supports_anon_versioning=yes ;;
 
17669
      esac
 
17670
      if test $supports_anon_versioning = yes; then
 
17671
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
17672
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17673
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
17674
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17675
      else
 
17676
        archive_expsym_cmds="$tmp_archive_cmds"
 
17677
      fi
 
17678
      link_all_deplibs=no
 
17679
    else
 
17680
      ld_shlibs=no
 
17681
    fi
 
17682
    ;;
 
17683
 
4547
17684
    *)
4548
 
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4549
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4550
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17685
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17686
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17687
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4551
17688
      else
4552
 
        ld_shlibs=no
 
17689
        ld_shlibs=no
4553
17690
      fi
4554
17691
      ;;
4555
17692
    esac
4558
17695
      runpath_var=LD_RUN_PATH
4559
17696
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4560
17697
      export_dynamic_flag_spec='${wl}--export-dynamic'
4561
 
      case $host_os in
4562
 
      cygwin* | mingw* | pw32*)
4563
 
        # dlltool doesn't understand --whole-archive et. al.
4564
 
        whole_archive_flag_spec=
4565
 
        ;;
4566
 
      *)
4567
 
        # ancient GNU ld didn't support --whole-archive et. al.
4568
 
        if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4569
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4570
 
        else
 
17698
      # ancient GNU ld didn't support --whole-archive et. al.
 
17699
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17700
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17701
      else
4571
17702
        whole_archive_flag_spec=
4572
 
        fi
4573
 
        ;;
4574
 
      esac
 
17703
      fi
4575
17704
    fi
4576
17705
  else
4577
17706
    # PORTME fill in a description of your system's linker (not GNU ld)
4584
17713
      # are no directories specified by -L.
4585
17714
      hardcode_minus_L=yes
4586
17715
      if test "$GCC" = yes && test -z "$link_static_flag"; then
4587
 
        # Neither direct hardcoding nor static linking is supported with a
4588
 
        # broken collect2.
4589
 
        hardcode_direct=unsupported
 
17716
        # Neither direct hardcoding nor static linking is supported with a
 
17717
        # broken collect2.
 
17718
        hardcode_direct=unsupported
4590
17719
      fi
4591
17720
      ;;
4592
17721
 
4593
17722
    aix4* | aix5*)
4594
17723
      if test "$host_cpu" = ia64; then
4595
 
        # On IA64, the linker does run time linking by default, so we don't
4596
 
        # have to do anything special.
4597
 
        aix_use_runtimelinking=no
4598
 
        exp_sym_flag='-Bexport'
4599
 
        no_entry_flag=""
 
17724
        # On IA64, the linker does run time linking by default, so we don't
 
17725
        # have to do anything special.
 
17726
        aix_use_runtimelinking=no
 
17727
        exp_sym_flag='-Bexport'
 
17728
        no_entry_flag=""
4600
17729
      else
4601
 
        aix_use_runtimelinking=no
 
17730
        # If we're using GNU nm, then we don't want the "-C" option.
 
17731
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17732
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17733
          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'
 
17734
        else
 
17735
          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'
 
17736
        fi
 
17737
        aix_use_runtimelinking=no
4602
17738
 
4603
 
        # Test if we are trying to use run time linking or normal
4604
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4605
 
        # need to do runtime linking.
4606
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4607
 
          for ld_flag in $LDFLAGS; do
 
17739
        # Test if we are trying to use run time linking or normal
 
17740
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17741
        # need to do runtime linking.
 
17742
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17743
          for ld_flag in $LDFLAGS; do
4608
17744
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4609
17745
            aix_use_runtimelinking=yes
4610
17746
            break
4611
17747
          fi
4612
 
          done
4613
 
        esac
 
17748
          done
 
17749
        esac
4614
17750
 
4615
 
        exp_sym_flag='-bexport'
4616
 
        no_entry_flag='-bnoentry'
 
17751
        exp_sym_flag='-bexport'
 
17752
        no_entry_flag='-bnoentry'
4617
17753
      fi
4618
17754
 
4619
17755
      # When large executables or shared objects are built, AIX ld can
4628
17764
      link_all_deplibs=yes
4629
17765
 
4630
17766
      if test "$GCC" = yes; then
4631
 
        case $host_os in aix4.012|aix4.012.*)
4632
 
        # We only want to do this on AIX 4.2 and lower, the check
4633
 
        # below for broken collect2 doesn't work under 4.3+
4634
 
          collect2name=`${CC} -print-prog-name=collect2`
4635
 
          if test -f "$collect2name" && \
 
17767
        case $host_os in aix4.012|aix4.012.*)
 
17768
        # We only want to do this on AIX 4.2 and lower, the check
 
17769
        # below for broken collect2 doesn't work under 4.3+
 
17770
          collect2name=`${CC} -print-prog-name=collect2`
 
17771
          if test -f "$collect2name" && \
4636
17772
           strings "$collect2name" | grep resolve_lib_name >/dev/null
4637
 
          then
 
17773
          then
4638
17774
          # We have reworked collect2
4639
17775
          hardcode_direct=yes
4640
 
          else
 
17776
          else
4641
17777
          # We have old collect2
4642
17778
          hardcode_direct=unsupported
4643
17779
          # It fails to find uninstalled libraries when the uninstalled
4646
17782
          hardcode_minus_L=yes
4647
17783
          hardcode_libdir_flag_spec='-L$libdir'
4648
17784
          hardcode_libdir_separator=
4649
 
          fi
4650
 
        esac
4651
 
        shared_flag='-shared'
 
17785
          fi
 
17786
        esac
 
17787
        shared_flag='-shared'
4652
17788
      else
4653
 
        # not using gcc
4654
 
        if test "$host_cpu" = ia64; then
 
17789
        # not using gcc
 
17790
        if test "$host_cpu" = ia64; then
4655
17791
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4656
17792
        # chokes on -Wl,-G. The following line is correct:
4657
 
          shared_flag='-G'
4658
 
        else
 
17793
          shared_flag='-G'
 
17794
        else
4659
17795
        if test "$aix_use_runtimelinking" = yes; then
4660
 
            shared_flag='${wl}-G'
4661
 
          else
4662
 
            shared_flag='${wl}-bM:SRE'
 
17796
            shared_flag='${wl}-G'
 
17797
          else
 
17798
            shared_flag='${wl}-bM:SRE'
4663
17799
        fi
4664
 
        fi
 
17800
        fi
4665
17801
      fi
4666
17802
 
4667
17803
      # It seems that -bexpall does not export symbols beginning with
4668
17804
      # underscore (_), so it is better to generate a list of symbols to export.
4669
17805
      always_export_symbols=yes
4670
17806
      if test "$aix_use_runtimelinking" = yes; then
4671
 
        # Warning - without using the other runtime loading flags (-brtl),
4672
 
        # -berok will link without error, but may produce a broken library.
4673
 
        allow_undefined_flag='-berok'
 
17807
        # Warning - without using the other runtime loading flags (-brtl),
 
17808
        # -berok will link without error, but may produce a broken library.
 
17809
        allow_undefined_flag='-berok'
4674
17810
       # Determine the default libpath from the value encoded in an empty executable.
4675
17811
       cat >conftest.$ac_ext <<_ACEOF
4676
 
#line 4676 "configure"
4677
 
#include "confdefs.h"
 
17812
/* confdefs.h.  */
 
17813
_ACEOF
 
17814
cat confdefs.h >>conftest.$ac_ext
 
17815
cat >>conftest.$ac_ext <<_ACEOF
 
17816
/* end confdefs.h.  */
4678
17817
 
4679
17818
int
4680
17819
main ()
4685
17824
}
4686
17825
_ACEOF
4687
17826
rm -f conftest.$ac_objext conftest$ac_exeext
4688
 
if { (eval echo "$as_me:4688: \"$ac_link\"") >&5
4689
 
  (eval $ac_link) 2>&5
 
17827
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17828
  (eval $ac_link) 2>conftest.er1
4690
17829
  ac_status=$?
4691
 
  echo "$as_me:4691: \$? = $ac_status" >&5
 
17830
  grep -v '^ *+' conftest.er1 >conftest.err
 
17831
  rm -f conftest.er1
 
17832
  cat conftest.err >&5
 
17833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692
17834
  (exit $ac_status); } &&
4693
 
         { ac_try='test -s conftest$ac_exeext'
4694
 
  { (eval echo "$as_me:4694: \"$ac_try\"") >&5
4695
 
  (eval $ac_try) 2>&5
4696
 
  ac_status=$?
4697
 
  echo "$as_me:4697: \$? = $ac_status" >&5
 
17835
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17836
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17837
  (eval $ac_try) 2>&5
 
17838
  ac_status=$?
 
17839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17840
  (exit $ac_status); }; } &&
 
17841
         { ac_try='test -s conftest$ac_exeext'
 
17842
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17843
  (eval $ac_try) 2>&5
 
17844
  ac_status=$?
 
17845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698
17846
  (exit $ac_status); }; }; then
4699
17847
 
4700
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
 
17848
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17849
}'`
4701
17850
# Check for a 64-bit object if we didn't find anything.
4702
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
 
17851
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; }
 
17852
}'`; fi
4703
17853
else
4704
17854
  echo "$as_me: failed program was:" >&5
4705
 
cat conftest.$ac_ext >&5
 
17855
sed 's/^/| /' conftest.$ac_ext >&5
 
17856
 
4706
17857
fi
4707
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
17858
rm -f conftest.err conftest.$ac_objext \
 
17859
      conftest$ac_exeext conftest.$ac_ext
4708
17860
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
4709
17861
 
4710
17862
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
4711
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
17863
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4712
17864
       else
4713
 
        if test "$host_cpu" = ia64; then
4714
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4715
 
          allow_undefined_flag="-z nodefs"
4716
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4717
 
        else
4718
 
         # Determine the default libpath from the value encoded in an empty executable.
4719
 
         cat >conftest.$ac_ext <<_ACEOF
4720
 
#line 4720 "configure"
4721
 
#include "confdefs.h"
 
17865
        if test "$host_cpu" = ia64; then
 
17866
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
17867
          allow_undefined_flag="-z nodefs"
 
17868
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
17869
        else
 
17870
         # Determine the default libpath from the value encoded in an empty executable.
 
17871
         cat >conftest.$ac_ext <<_ACEOF
 
17872
/* confdefs.h.  */
 
17873
_ACEOF
 
17874
cat confdefs.h >>conftest.$ac_ext
 
17875
cat >>conftest.$ac_ext <<_ACEOF
 
17876
/* end confdefs.h.  */
4722
17877
 
4723
17878
int
4724
17879
main ()
4729
17884
}
4730
17885
_ACEOF
4731
17886
rm -f conftest.$ac_objext conftest$ac_exeext
4732
 
if { (eval echo "$as_me:4732: \"$ac_link\"") >&5
4733
 
  (eval $ac_link) 2>&5
 
17887
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17888
  (eval $ac_link) 2>conftest.er1
4734
17889
  ac_status=$?
4735
 
  echo "$as_me:4735: \$? = $ac_status" >&5
 
17890
  grep -v '^ *+' conftest.er1 >conftest.err
 
17891
  rm -f conftest.er1
 
17892
  cat conftest.err >&5
 
17893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736
17894
  (exit $ac_status); } &&
4737
 
         { ac_try='test -s conftest$ac_exeext'
4738
 
  { (eval echo "$as_me:4738: \"$ac_try\"") >&5
4739
 
  (eval $ac_try) 2>&5
4740
 
  ac_status=$?
4741
 
  echo "$as_me:4741: \$? = $ac_status" >&5
 
17895
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17897
  (eval $ac_try) 2>&5
 
17898
  ac_status=$?
 
17899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17900
  (exit $ac_status); }; } &&
 
17901
         { ac_try='test -s conftest$ac_exeext'
 
17902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17903
  (eval $ac_try) 2>&5
 
17904
  ac_status=$?
 
17905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742
17906
  (exit $ac_status); }; }; then
4743
17907
 
4744
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
 
17908
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17909
}'`
4745
17910
# Check for a 64-bit object if we didn't find anything.
4746
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
 
17911
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; }
 
17912
}'`; fi
4747
17913
else
4748
17914
  echo "$as_me: failed program was:" >&5
4749
 
cat conftest.$ac_ext >&5
 
17915
sed 's/^/| /' conftest.$ac_ext >&5
 
17916
 
4750
17917
fi
4751
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
17918
rm -f conftest.err conftest.$ac_objext \
 
17919
      conftest$ac_exeext conftest.$ac_ext
4752
17920
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
4753
17921
 
4754
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
4755
 
          # Warning - without using the other run time loading flags,
4756
 
          # -berok will link without error, but may produce a broken library.
4757
 
          no_undefined_flag=' ${wl}-bernotok'
4758
 
          allow_undefined_flag=' ${wl}-berok'
4759
 
          # -bexpall does not export symbols beginning with underscore (_)
4760
 
          always_export_symbols=yes
4761
 
          # Exported symbols can be pulled into shared objects from archives
4762
 
          whole_archive_flag_spec=' '
4763
 
          archive_cmds_need_lc=yes
4764
 
          # This is similar to how AIX traditionally builds it's shared libraries.
4765
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4766
 
        fi
 
17922
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17923
          # Warning - without using the other run time loading flags,
 
17924
          # -berok will link without error, but may produce a broken library.
 
17925
          no_undefined_flag=' ${wl}-bernotok'
 
17926
          allow_undefined_flag=' ${wl}-berok'
 
17927
          # -bexpall does not export symbols beginning with underscore (_)
 
17928
          always_export_symbols=yes
 
17929
          # Exported symbols can be pulled into shared objects from archives
 
17930
          whole_archive_flag_spec=' '
 
17931
          archive_cmds_need_lc=yes
 
17932
          # This is similar to how AIX traditionally builds it's shared libraries.
 
17933
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
17934
        fi
4767
17935
      fi
4768
17936
      ;;
4769
17937
 
4788
17956
      allow_undefined_flag=unsupported
4789
17957
      # Tell ltmain to make .lib files, not .a files.
4790
17958
      libext=lib
 
17959
      # Tell ltmain to make .dll files, not .so files.
 
17960
      shrext_cmds=".dll"
4791
17961
      # FIXME: Setting linknames here is a bad hack.
4792
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17962
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
4793
17963
      # The linker will automatically build a .lib file if we build a DLL.
4794
17964
      old_archive_From_new_cmds='true'
4795
17965
      # FIXME: Should let the user specify the lib program.
4796
17966
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4797
17967
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
17968
      enable_shared_with_static_runtimes=yes
 
17969
      ;;
 
17970
 
 
17971
    darwin* | rhapsody*)
 
17972
    if test "$GXX" = yes ; then
 
17973
      archive_cmds_need_lc=no
 
17974
      case "$host_os" in
 
17975
      rhapsody* | darwin1.[012])
 
17976
        allow_undefined_flag='-undefined suppress'
 
17977
        ;;
 
17978
      *) # Darwin 1.3 on
 
17979
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17980
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
17981
      else
 
17982
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
17983
          10.[012])
 
17984
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
17985
            ;;
 
17986
          10.*)
 
17987
            allow_undefined_flag='-undefined dynamic_lookup'
 
17988
            ;;
 
17989
        esac
 
17990
      fi
 
17991
        ;;
 
17992
      esac
 
17993
        lt_int_apple_cc_single_mod=no
 
17994
        output_verbose_link_cmd='echo'
 
17995
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
17996
          lt_int_apple_cc_single_mod=yes
 
17997
        fi
 
17998
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
17999
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18000
        else
 
18001
        archive_cmds='$CC -r ${wl}-bind_at_load -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'
 
18002
      fi
 
18003
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18004
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
18005
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
18006
          archive_expsym_cmds='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}'
 
18007
        else
 
18008
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
 
18009
        fi
 
18010
          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}'
 
18011
      hardcode_direct=no
 
18012
      hardcode_automatic=yes
 
18013
      hardcode_shlibpath_var=unsupported
 
18014
      whole_archive_flag_spec='-all_load $convenience'
 
18015
      link_all_deplibs=yes
 
18016
    else
 
18017
      ld_shlibs=no
 
18018
    fi
4798
18019
      ;;
4799
18020
 
4800
18021
    dgux*)
4827
18048
      ;;
4828
18049
 
4829
18050
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4830
 
    freebsd*)
 
18051
    freebsd* | kfreebsd*-gnu)
4831
18052
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4832
18053
      hardcode_libdir_flag_spec='-R$libdir'
4833
18054
      hardcode_direct=yes
4834
18055
      hardcode_shlibpath_var=no
4835
18056
      ;;
4836
18057
 
4837
 
    hpux9* | hpux10* | hpux11*)
4838
 
      if test $GXX = yes; then
4839
 
        case $host_os in
4840
 
          hpux9*)
4841
 
            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'
4842
 
            ;;
4843
 
        *)
4844
 
            if test "$host_cpu" = ia64; then
4845
 
              archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4846
 
            else
4847
 
              archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4848
 
            fi
4849
 
            ;;
4850
 
        esac
4851
 
      else
4852
 
        case $host_os in
4853
 
          hpux9*)
4854
 
            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'
4855
 
            ;;
4856
 
          *)
4857
 
            if test "$host_cpu" = ia64; then
4858
 
              archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
4859
 
            else
4860
 
              archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4861
 
            fi
4862
 
            ;;
4863
 
        esac
4864
 
      fi
4865
 
      if test "$host_cpu" = ia64; then
4866
 
        hardcode_libdir_flag_spec='-L$libdir'
4867
 
        hardcode_direct=no
4868
 
        hardcode_shlibpath_var=no
4869
 
      else
4870
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4871
 
        hardcode_libdir_separator=:
4872
 
        hardcode_direct=yes
4873
 
      fi
 
18058
    hpux9*)
 
18059
      if test "$GCC" = yes; then
 
18060
        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'
 
18061
      else
 
18062
        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'
 
18063
      fi
 
18064
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
18065
      hardcode_libdir_separator=:
 
18066
      hardcode_direct=yes
 
18067
 
4874
18068
      # hardcode_minus_L: Not really in the search PATH,
4875
18069
      # but as the default location of the library.
4876
18070
      hardcode_minus_L=yes
4877
18071
      export_dynamic_flag_spec='${wl}-E'
4878
18072
      ;;
4879
18073
 
4880
 
    irix5* | irix6*)
 
18074
    hpux10* | hpux11*)
 
18075
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18076
        case "$host_cpu" in
 
18077
        hppa*64*|ia64*)
 
18078
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18079
          ;;
 
18080
        *)
 
18081
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18082
          ;;
 
18083
        esac
 
18084
      else
 
18085
        case "$host_cpu" in
 
18086
        hppa*64*|ia64*)
 
18087
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18088
          ;;
 
18089
        *)
 
18090
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18091
          ;;
 
18092
        esac
 
18093
      fi
 
18094
      if test "$with_gnu_ld" = no; then
 
18095
        case "$host_cpu" in
 
18096
        hppa*64*)
 
18097
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
18098
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
18099
          hardcode_libdir_separator=:
 
18100
          hardcode_direct=no
 
18101
          hardcode_shlibpath_var=no
 
18102
          ;;
 
18103
        ia64*)
 
18104
          hardcode_libdir_flag_spec='-L$libdir'
 
18105
          hardcode_direct=no
 
18106
          hardcode_shlibpath_var=no
 
18107
 
 
18108
          # hardcode_minus_L: Not really in the search PATH,
 
18109
          # but as the default location of the library.
 
18110
          hardcode_minus_L=yes
 
18111
          ;;
 
18112
        *)
 
18113
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
18114
          hardcode_libdir_separator=:
 
18115
          hardcode_direct=yes
 
18116
          export_dynamic_flag_spec='${wl}-E'
 
18117
 
 
18118
          # hardcode_minus_L: Not really in the search PATH,
 
18119
          # but as the default location of the library.
 
18120
          hardcode_minus_L=yes
 
18121
          ;;
 
18122
        esac
 
18123
      fi
 
18124
      ;;
 
18125
 
 
18126
    irix5* | irix6* | nonstopux*)
4881
18127
      if test "$GCC" = yes; then
4882
 
        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'
 
18128
        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'
4883
18129
      else
4884
 
        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'
 
18130
        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'
 
18131
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
4885
18132
      fi
4886
18133
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4887
18134
      hardcode_libdir_separator=:
4888
18135
      link_all_deplibs=yes
4889
18136
      ;;
4890
18137
 
4891
 
    netbsd*)
 
18138
    netbsd* | knetbsd*-gnu)
4892
18139
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4893
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18140
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4894
18141
      else
4895
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18142
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4896
18143
      fi
4897
18144
      hardcode_libdir_flag_spec='-R$libdir'
4898
18145
      hardcode_direct=yes
4900
18147
      ;;
4901
18148
 
4902
18149
    newsos6)
4903
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
 
18150
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4904
18151
      hardcode_direct=yes
4905
18152
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4906
18153
      hardcode_libdir_separator=:
4910
18157
    openbsd*)
4911
18158
      hardcode_direct=yes
4912
18159
      hardcode_shlibpath_var=no
4913
 
 
4914
 
      case "$host_os" in
4915
 
        openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*)
4916
 
          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4917
 
          hardcode_libdir_flag_spec='-R$libdir'
4918
 
        ;;
4919
 
        *)
4920
 
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4921
 
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4922
 
          if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
4923
 
           export_dynamic_flag_spec='${wl}-E'
4924
 
          fi
4925
 
        ;;
4926
 
      esac
 
18160
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18161
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18162
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
18163
        export_dynamic_flag_spec='${wl}-E'
 
18164
      else
 
18165
       case $host_os in
 
18166
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18167
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18168
           hardcode_libdir_flag_spec='-R$libdir'
 
18169
           ;;
 
18170
         *)
 
18171
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18172
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
18173
           ;;
 
18174
       esac
 
18175
      fi
4927
18176
      ;;
4928
18177
 
4929
18178
    os2*)
4936
18185
 
4937
18186
    osf3*)
4938
18187
      if test "$GCC" = yes; then
4939
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4940
 
        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'
 
18188
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
18189
        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'
4941
18190
      else
4942
 
        allow_undefined_flag=' -expect_unresolved \*'
4943
 
        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'
 
18191
        allow_undefined_flag=' -expect_unresolved \*'
 
18192
        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'
4944
18193
      fi
4945
18194
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4946
18195
      hardcode_libdir_separator=:
4948
18197
 
4949
18198
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
4950
18199
      if test "$GCC" = yes; then
4951
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4952
 
        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'
4953
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
18200
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
18201
        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'
 
18202
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4954
18203
      else
4955
 
        allow_undefined_flag=' -expect_unresolved \*'
4956
 
        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'
4957
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4958
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
18204
        allow_undefined_flag=' -expect_unresolved \*'
 
18205
        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'
 
18206
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
18207
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4959
18208
 
4960
 
        # Both c and cxx compiler support -rpath directly
4961
 
        hardcode_libdir_flag_spec='-rpath $libdir'
 
18209
        # Both c and cxx compiler support -rpath directly
 
18210
        hardcode_libdir_flag_spec='-rpath $libdir'
4962
18211
      fi
4963
18212
      hardcode_libdir_separator=:
4964
18213
      ;;
4972
18221
      ;;
4973
18222
 
4974
18223
    solaris*)
4975
 
      no_undefined_flag=' -z defs'
4976
 
      if test "$GXX" = yes; then
4977
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4978
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4979
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18224
      no_undefined_flag=' -z text'
 
18225
      if test "$GCC" = yes; then
 
18226
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18227
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18228
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4980
18229
      else
4981
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4982
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18230
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18231
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4983
18232
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4984
18233
      fi
4985
18234
      hardcode_libdir_flag_spec='-R$libdir'
4987
18236
      case $host_os in
4988
18237
      solaris2.[0-5] | solaris2.[0-5].*) ;;
4989
18238
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4990
 
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
18239
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4991
18240
      esac
4992
18241
      link_all_deplibs=yes
4993
18242
      ;;
4994
18243
 
4995
18244
    sunos4*)
4996
18245
      if test "x$host_vendor" = xsequent; then
4997
 
        # Use $CC to link under sequent, because it throws in some extra .o
4998
 
        # files that make .init and .fini sections work.
4999
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18246
        # Use $CC to link under sequent, because it throws in some extra .o
 
18247
        # files that make .init and .fini sections work.
 
18248
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5000
18249
      else
5001
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18250
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5002
18251
      fi
5003
18252
      hardcode_libdir_flag_spec='-L$libdir'
5004
18253
      hardcode_direct=yes
5007
18256
      ;;
5008
18257
 
5009
18258
    sysv4)
5010
 
      if test "x$host_vendor" = xsni; then
5011
 
        archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
5012
 
        hardcode_direct=yes # is this really true???
5013
 
      else
5014
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5015
 
        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5016
 
      fi
 
18259
      case $host_vendor in
 
18260
        sni)
 
18261
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18262
          hardcode_direct=yes # is this really true???
 
18263
        ;;
 
18264
        siemens)
 
18265
          ## LD is ld it makes a PLAMLIB
 
18266
          ## CC just makes a GrossModule.
 
18267
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18268
          reload_cmds='$CC -r -o $output$reload_objs'
 
18269
          hardcode_direct=no
 
18270
        ;;
 
18271
        motorola)
 
18272
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18273
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
18274
        ;;
 
18275
      esac
5017
18276
      runpath_var='LD_RUN_PATH'
5018
18277
      hardcode_shlibpath_var=no
5019
18278
      ;;
5026
18285
 
5027
18286
    sysv4*MP*)
5028
18287
      if test -d /usr/nec; then
5029
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5030
 
        hardcode_shlibpath_var=no
5031
 
        runpath_var=LD_RUN_PATH
5032
 
        hardcode_runpath_var=yes
5033
 
        ld_shlibs=yes
 
18288
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18289
        hardcode_shlibpath_var=no
 
18290
        runpath_var=LD_RUN_PATH
 
18291
        hardcode_runpath_var=yes
 
18292
        ld_shlibs=yes
5034
18293
      fi
5035
18294
      ;;
5036
18295
 
5046
18305
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
5047
18306
      no_undefined_flag='${wl}-z ${wl}text'
5048
18307
      if test "$GCC" = yes; then
5049
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18308
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5050
18309
      else
5051
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18310
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5052
18311
      fi
5053
18312
      runpath_var='LD_RUN_PATH'
5054
18313
      hardcode_shlibpath_var=no
5059
18318
      # $CC -shared without GNU ld will not create a library from C++
5060
18319
      # object files and a static libstdc++, better avoid it by now
5061
18320
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5062
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18321
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5063
18322
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5064
18323
      hardcode_libdir_flag_spec=
5065
18324
      hardcode_shlibpath_var=no
5078
18337
    esac
5079
18338
  fi
5080
18339
 
5081
 
echo "$as_me:5081: result: $ld_shlibs" >&5
 
18340
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5082
18341
echo "${ECHO_T}$ld_shlibs" >&6
5083
18342
test "$ld_shlibs" = no && can_build_shared=no
5084
18343
 
5090
18349
#
5091
18350
# Do we need to explicitly link libc?
5092
18351
#
5093
 
archive_cmds_need_lc=yes
5094
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
5095
 
  case $archive_cmds in
5096
 
  *'~'*)
5097
 
    # FIXME: we may have to deal with multi-command sequences.
5098
 
    ;;
5099
 
  '$CC '*)
5100
 
    # Test whether the compiler implicitly links with -lc since on some
5101
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
5102
 
    # to ld, don't add -lc before -lgcc.
5103
 
    echo "$as_me:5103: checking whether -lc should be explicitly linked in" >&5
 
18352
case "x$archive_cmds_need_lc" in
 
18353
x|xyes)
 
18354
  # Assume -lc should be added
 
18355
  archive_cmds_need_lc=yes
 
18356
 
 
18357
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18358
    case $archive_cmds in
 
18359
    *'~'*)
 
18360
      # FIXME: we may have to deal with multi-command sequences.
 
18361
      ;;
 
18362
    '$CC '*)
 
18363
      # Test whether the compiler implicitly links with -lc since on some
 
18364
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18365
      # to ld, don't add -lc before -lgcc.
 
18366
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
5104
18367
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
5105
 
    $rm conftest*
5106
 
    echo 'static int dummy;' > conftest.$ac_ext
 
18368
      $rm conftest*
 
18369
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5107
18370
 
5108
 
    if { (eval echo "$as_me:5108: \"$ac_compile\"") >&5
 
18371
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5109
18372
  (eval $ac_compile) 2>&5
5110
18373
  ac_status=$?
5111
 
  echo "$as_me:5111: \$? = $ac_status" >&5
 
18374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112
18375
  (exit $ac_status); } 2>conftest.err; then
5113
 
      soname=conftest
5114
 
      lib=conftest
5115
 
      libobjs=conftest.$ac_objext
5116
 
      deplibs=
5117
 
      wl=$lt_prog_compiler_wl
5118
 
      compiler_flags=-v
5119
 
      linker_flags=-v
5120
 
      verstring=
5121
 
      output_objdir=.
5122
 
      libname=conftest
5123
 
      lt_save_allow_undefined_flag=$allow_undefined_flag
5124
 
      allow_undefined_flag=
5125
 
      if { (eval echo "$as_me:5125: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18376
        soname=conftest
 
18377
        lib=conftest
 
18378
        libobjs=conftest.$ac_objext
 
18379
        deplibs=
 
18380
        wl=$lt_prog_compiler_wl
 
18381
        compiler_flags=-v
 
18382
        linker_flags=-v
 
18383
        verstring=
 
18384
        output_objdir=.
 
18385
        libname=conftest
 
18386
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
18387
        allow_undefined_flag=
 
18388
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5126
18389
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5127
18390
  ac_status=$?
5128
 
  echo "$as_me:5128: \$? = $ac_status" >&5
 
18391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129
18392
  (exit $ac_status); }
5130
 
      then
5131
 
        archive_cmds_need_lc=no
 
18393
        then
 
18394
          archive_cmds_need_lc=no
 
18395
        else
 
18396
          archive_cmds_need_lc=yes
 
18397
        fi
 
18398
        allow_undefined_flag=$lt_save_allow_undefined_flag
5132
18399
      else
5133
 
        archive_cmds_need_lc=yes
 
18400
        cat conftest.err 1>&5
5134
18401
      fi
5135
 
      allow_undefined_flag=$lt_save_allow_undefined_flag
5136
 
    else
5137
 
      cat conftest.err 1>&5
5138
 
    fi
5139
 
    $rm conftest*
5140
 
    echo "$as_me:5140: result: $archive_cmds_need_lc" >&5
 
18402
      $rm conftest*
 
18403
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
5141
18404
echo "${ECHO_T}$archive_cmds_need_lc" >&6
5142
 
    ;;
5143
 
  esac
 
18405
      ;;
 
18406
    esac
 
18407
  fi
 
18408
  ;;
 
18409
esac
 
18410
 
 
18411
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18412
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
18413
library_names_spec=
 
18414
libname_spec='lib$name'
 
18415
soname_spec=
 
18416
shrext_cmds=".so"
 
18417
postinstall_cmds=
 
18418
postuninstall_cmds=
 
18419
finish_cmds=
 
18420
finish_eval=
 
18421
shlibpath_var=
 
18422
shlibpath_overrides_runpath=unknown
 
18423
version_type=none
 
18424
dynamic_linker="$host_os ld.so"
 
18425
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18426
if test "$GCC" = yes; then
 
18427
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18428
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
18429
    # if the path contains ";" then we assume it to be the separator
 
18430
    # otherwise default to the standard path separator (i.e. ":") - it is
 
18431
    # assumed that no part of a normal pathname contains ";" but that should
 
18432
    # okay in the real world where ";" in dirpaths is itself problematic.
 
18433
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18434
  else
 
18435
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18436
  fi
 
18437
else
 
18438
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5144
18439
fi
5145
 
 
5146
 
echo "$as_me:5146: checking how to hardcode library paths into programs" >&5
 
18440
need_lib_prefix=unknown
 
18441
hardcode_into_libs=no
 
18442
 
 
18443
# when you set need_version to no, make sure it does not cause -set_version
 
18444
# flags to be left without arguments
 
18445
need_version=unknown
 
18446
 
 
18447
case $host_os in
 
18448
aix3*)
 
18449
  version_type=linux
 
18450
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18451
  shlibpath_var=LIBPATH
 
18452
 
 
18453
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18454
  soname_spec='${libname}${release}${shared_ext}$major'
 
18455
  ;;
 
18456
 
 
18457
aix4* | aix5*)
 
18458
  version_type=linux
 
18459
  need_lib_prefix=no
 
18460
  need_version=no
 
18461
  hardcode_into_libs=yes
 
18462
  if test "$host_cpu" = ia64; then
 
18463
    # AIX 5 supports IA64
 
18464
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18465
    shlibpath_var=LD_LIBRARY_PATH
 
18466
  else
 
18467
    # With GCC up to 2.95.x, collect2 would create an import file
 
18468
    # for dependence libraries.  The import file would start with
 
18469
    # the line `#! .'.  This would cause the generated library to
 
18470
    # depend on `.', always an invalid library.  This was fixed in
 
18471
    # development snapshots of GCC prior to 3.0.
 
18472
    case $host_os in
 
18473
      aix4 | aix4.[01] | aix4.[01].*)
 
18474
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18475
           echo ' yes '
 
18476
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18477
        :
 
18478
      else
 
18479
        can_build_shared=no
 
18480
      fi
 
18481
      ;;
 
18482
    esac
 
18483
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18484
    # soname into executable. Probably we can add versioning support to
 
18485
    # collect2, so additional links can be useful in future.
 
18486
    if test "$aix_use_runtimelinking" = yes; then
 
18487
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18488
      # instead of lib<name>.a to let people know that these are not
 
18489
      # typical AIX shared libraries.
 
18490
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18491
    else
 
18492
      # We preserve .a as extension for shared libraries through AIX4.2
 
18493
      # and later when we are not doing run time linking.
 
18494
      library_names_spec='${libname}${release}.a $libname.a'
 
18495
      soname_spec='${libname}${release}${shared_ext}$major'
 
18496
    fi
 
18497
    shlibpath_var=LIBPATH
 
18498
  fi
 
18499
  ;;
 
18500
 
 
18501
amigaos*)
 
18502
  library_names_spec='$libname.ixlibrary $libname.a'
 
18503
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18504
  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'
 
18505
  ;;
 
18506
 
 
18507
beos*)
 
18508
  library_names_spec='${libname}${shared_ext}'
 
18509
  dynamic_linker="$host_os ld.so"
 
18510
  shlibpath_var=LIBRARY_PATH
 
18511
  ;;
 
18512
 
 
18513
bsdi4*)
 
18514
  version_type=linux
 
18515
  need_version=no
 
18516
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18517
  soname_spec='${libname}${release}${shared_ext}$major'
 
18518
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18519
  shlibpath_var=LD_LIBRARY_PATH
 
18520
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18521
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18522
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18523
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18524
  # libtool to hard-code these into programs
 
18525
  ;;
 
18526
 
 
18527
cygwin* | mingw* | pw32*)
 
18528
  version_type=windows
 
18529
  shrext_cmds=".dll"
 
18530
  need_version=no
 
18531
  need_lib_prefix=no
 
18532
 
 
18533
  case $GCC,$host_os in
 
18534
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18535
    library_names_spec='$libname.dll.a'
 
18536
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18537
    postinstall_cmds='base_file=`basename \${file}`~
 
18538
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18539
      dldir=$destdir/`dirname \$dlpath`~
 
18540
      test -d \$dldir || mkdir -p \$dldir~
 
18541
      $install_prog $dir/$dlname \$dldir/$dlname'
 
18542
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18543
      dlpath=$dir/\$dldll~
 
18544
       $rm \$dlpath'
 
18545
    shlibpath_overrides_runpath=yes
 
18546
 
 
18547
    case $host_os in
 
18548
    cygwin*)
 
18549
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18550
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18551
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18552
      ;;
 
18553
    mingw*)
 
18554
      # MinGW DLLs use traditional 'lib' prefix
 
18555
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18556
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18557
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18558
        # It is most probably a Windows format PATH printed by
 
18559
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18560
        # path with ; separators, and with drive letters. We can handle the
 
18561
        # drive letters (cygwin fileutils understands them), so leave them,
 
18562
        # especially as we might pass files found there to a mingw objdump,
 
18563
        # which wouldn't understand a cygwinified path. Ahh.
 
18564
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18565
      else
 
18566
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18567
      fi
 
18568
      ;;
 
18569
    pw32*)
 
18570
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18571
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
18572
      ;;
 
18573
    esac
 
18574
    ;;
 
18575
 
 
18576
  *)
 
18577
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18578
    ;;
 
18579
  esac
 
18580
  dynamic_linker='Win32 ld.exe'
 
18581
  # FIXME: first we should search . and the directory the executable is in
 
18582
  shlibpath_var=PATH
 
18583
  ;;
 
18584
 
 
18585
darwin* | rhapsody*)
 
18586
  dynamic_linker="$host_os dyld"
 
18587
  version_type=darwin
 
18588
  need_lib_prefix=no
 
18589
  need_version=no
 
18590
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18591
  soname_spec='${libname}${release}${major}$shared_ext'
 
18592
  shlibpath_overrides_runpath=yes
 
18593
  shlibpath_var=DYLD_LIBRARY_PATH
 
18594
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
18595
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18596
  if test "$GCC" = yes; then
 
18597
    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"`
 
18598
  else
 
18599
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
18600
  fi
 
18601
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18602
  ;;
 
18603
 
 
18604
dgux*)
 
18605
  version_type=linux
 
18606
  need_lib_prefix=no
 
18607
  need_version=no
 
18608
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18609
  soname_spec='${libname}${release}${shared_ext}$major'
 
18610
  shlibpath_var=LD_LIBRARY_PATH
 
18611
  ;;
 
18612
 
 
18613
freebsd1*)
 
18614
  dynamic_linker=no
 
18615
  ;;
 
18616
 
 
18617
kfreebsd*-gnu)
 
18618
  version_type=linux
 
18619
  need_lib_prefix=no
 
18620
  need_version=no
 
18621
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18622
  soname_spec='${libname}${release}${shared_ext}$major'
 
18623
  shlibpath_var=LD_LIBRARY_PATH
 
18624
  shlibpath_overrides_runpath=no
 
18625
  hardcode_into_libs=yes
 
18626
  dynamic_linker='GNU ld.so'
 
18627
  ;;
 
18628
 
 
18629
freebsd*)
 
18630
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
18631
  version_type=freebsd-$objformat
 
18632
  case $version_type in
 
18633
    freebsd-elf*)
 
18634
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18635
      need_version=no
 
18636
      need_lib_prefix=no
 
18637
      ;;
 
18638
    freebsd-*)
 
18639
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18640
      need_version=yes
 
18641
      ;;
 
18642
  esac
 
18643
  shlibpath_var=LD_LIBRARY_PATH
 
18644
  case $host_os in
 
18645
  freebsd2*)
 
18646
    shlibpath_overrides_runpath=yes
 
18647
    ;;
 
18648
  freebsd3.01* | freebsdelf3.01*)
 
18649
    shlibpath_overrides_runpath=yes
 
18650
    hardcode_into_libs=yes
 
18651
    ;;
 
18652
  *) # from 3.2 on
 
18653
    shlibpath_overrides_runpath=no
 
18654
    hardcode_into_libs=yes
 
18655
    ;;
 
18656
  esac
 
18657
  ;;
 
18658
 
 
18659
gnu*)
 
18660
  version_type=linux
 
18661
  need_lib_prefix=no
 
18662
  need_version=no
 
18663
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18664
  soname_spec='${libname}${release}${shared_ext}$major'
 
18665
  shlibpath_var=LD_LIBRARY_PATH
 
18666
  hardcode_into_libs=yes
 
18667
  ;;
 
18668
 
 
18669
hpux9* | hpux10* | hpux11*)
 
18670
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18671
  # link against other versions.
 
18672
  version_type=sunos
 
18673
  need_lib_prefix=no
 
18674
  need_version=no
 
18675
  case "$host_cpu" in
 
18676
  ia64*)
 
18677
    shrext_cmds='.so'
 
18678
    hardcode_into_libs=yes
 
18679
    dynamic_linker="$host_os dld.so"
 
18680
    shlibpath_var=LD_LIBRARY_PATH
 
18681
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18682
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18683
    soname_spec='${libname}${release}${shared_ext}$major'
 
18684
    if test "X$HPUX_IA64_MODE" = X32; then
 
18685
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18686
    else
 
18687
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18688
    fi
 
18689
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18690
    ;;
 
18691
   hppa*64*)
 
18692
     shrext_cmds='.sl'
 
18693
     hardcode_into_libs=yes
 
18694
     dynamic_linker="$host_os dld.sl"
 
18695
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18696
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18697
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18698
     soname_spec='${libname}${release}${shared_ext}$major'
 
18699
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18700
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18701
     ;;
 
18702
   *)
 
18703
    shrext_cmds='.sl'
 
18704
    dynamic_linker="$host_os dld.sl"
 
18705
    shlibpath_var=SHLIB_PATH
 
18706
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
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
    ;;
 
18710
  esac
 
18711
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18712
  postinstall_cmds='chmod 555 $lib'
 
18713
  ;;
 
18714
 
 
18715
irix5* | irix6* | nonstopux*)
 
18716
  case $host_os in
 
18717
    nonstopux*) version_type=nonstopux ;;
 
18718
    *)
 
18719
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18720
                version_type=linux
 
18721
        else
 
18722
                version_type=irix
 
18723
        fi ;;
 
18724
  esac
 
18725
  need_lib_prefix=no
 
18726
  need_version=no
 
18727
  soname_spec='${libname}${release}${shared_ext}$major'
 
18728
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18729
  case $host_os in
 
18730
  irix5* | nonstopux*)
 
18731
    libsuff= shlibsuff=
 
18732
    ;;
 
18733
  *)
 
18734
    case $LD in # libtool.m4 will add one of these switches to LD
 
18735
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18736
      libsuff= shlibsuff= libmagic=32-bit;;
 
18737
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18738
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18739
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18740
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18741
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18742
    esac
 
18743
    ;;
 
18744
  esac
 
18745
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18746
  shlibpath_overrides_runpath=no
 
18747
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18748
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18749
  hardcode_into_libs=yes
 
18750
  ;;
 
18751
 
 
18752
# No shared lib support for Linux oldld, aout, or coff.
 
18753
linux*oldld* | linux*aout* | linux*coff*)
 
18754
  dynamic_linker=no
 
18755
  ;;
 
18756
 
 
18757
# This must be Linux ELF.
 
18758
linux*)
 
18759
  version_type=linux
 
18760
  need_lib_prefix=no
 
18761
  need_version=no
 
18762
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18763
  soname_spec='${libname}${release}${shared_ext}$major'
 
18764
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18765
  shlibpath_var=LD_LIBRARY_PATH
 
18766
  shlibpath_overrides_runpath=no
 
18767
  # This implies no fast_install, which is unacceptable.
 
18768
  # Some rework will be needed to allow for fast_install
 
18769
  # before this can be enabled.
 
18770
  hardcode_into_libs=yes
 
18771
 
 
18772
  # Append ld.so.conf contents to the search path
 
18773
  if test -f /etc/ld.so.conf; then
 
18774
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
18775
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18776
  fi
 
18777
 
 
18778
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18779
  # powerpc, because MkLinux only supported shared libraries with the
 
18780
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18781
  # most powerpc-linux boxes support dynamic linking these days and
 
18782
  # people can always --disable-shared, the test was removed, and we
 
18783
  # assume the GNU/Linux dynamic linker is in use.
 
18784
  dynamic_linker='GNU/Linux ld.so'
 
18785
  ;;
 
18786
 
 
18787
knetbsd*-gnu)
 
18788
  version_type=linux
 
18789
  need_lib_prefix=no
 
18790
  need_version=no
 
18791
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18792
  soname_spec='${libname}${release}${shared_ext}$major'
 
18793
  shlibpath_var=LD_LIBRARY_PATH
 
18794
  shlibpath_overrides_runpath=no
 
18795
  hardcode_into_libs=yes
 
18796
  dynamic_linker='GNU ld.so'
 
18797
  ;;
 
18798
 
 
18799
netbsd*)
 
18800
  version_type=sunos
 
18801
  need_lib_prefix=no
 
18802
  need_version=no
 
18803
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18804
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18805
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18806
    dynamic_linker='NetBSD (a.out) ld.so'
 
18807
  else
 
18808
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18809
    soname_spec='${libname}${release}${shared_ext}$major'
 
18810
    dynamic_linker='NetBSD ld.elf_so'
 
18811
  fi
 
18812
  shlibpath_var=LD_LIBRARY_PATH
 
18813
  shlibpath_overrides_runpath=yes
 
18814
  hardcode_into_libs=yes
 
18815
  ;;
 
18816
 
 
18817
newsos6)
 
18818
  version_type=linux
 
18819
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18820
  shlibpath_var=LD_LIBRARY_PATH
 
18821
  shlibpath_overrides_runpath=yes
 
18822
  ;;
 
18823
 
 
18824
nto-qnx*)
 
18825
  version_type=linux
 
18826
  need_lib_prefix=no
 
18827
  need_version=no
 
18828
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18829
  soname_spec='${libname}${release}${shared_ext}$major'
 
18830
  shlibpath_var=LD_LIBRARY_PATH
 
18831
  shlibpath_overrides_runpath=yes
 
18832
  ;;
 
18833
 
 
18834
openbsd*)
 
18835
  version_type=sunos
 
18836
  need_lib_prefix=no
 
18837
  need_version=yes
 
18838
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18839
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18840
  shlibpath_var=LD_LIBRARY_PATH
 
18841
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18842
    case $host_os in
 
18843
      openbsd2.[89] | openbsd2.[89].*)
 
18844
        shlibpath_overrides_runpath=no
 
18845
        ;;
 
18846
      *)
 
18847
        shlibpath_overrides_runpath=yes
 
18848
        ;;
 
18849
      esac
 
18850
  else
 
18851
    shlibpath_overrides_runpath=yes
 
18852
  fi
 
18853
  ;;
 
18854
 
 
18855
os2*)
 
18856
  libname_spec='$name'
 
18857
  shrext_cmds=".dll"
 
18858
  need_lib_prefix=no
 
18859
  library_names_spec='$libname${shared_ext} $libname.a'
 
18860
  dynamic_linker='OS/2 ld.exe'
 
18861
  shlibpath_var=LIBPATH
 
18862
  ;;
 
18863
 
 
18864
osf3* | osf4* | osf5*)
 
18865
  version_type=osf
 
18866
  need_lib_prefix=no
 
18867
  need_version=no
 
18868
  soname_spec='${libname}${release}${shared_ext}$major'
 
18869
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18870
  shlibpath_var=LD_LIBRARY_PATH
 
18871
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18872
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18873
  ;;
 
18874
 
 
18875
sco3.2v5*)
 
18876
  version_type=osf
 
18877
  soname_spec='${libname}${release}${shared_ext}$major'
 
18878
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18879
  shlibpath_var=LD_LIBRARY_PATH
 
18880
  ;;
 
18881
 
 
18882
solaris*)
 
18883
  version_type=linux
 
18884
  need_lib_prefix=no
 
18885
  need_version=no
 
18886
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18887
  soname_spec='${libname}${release}${shared_ext}$major'
 
18888
  shlibpath_var=LD_LIBRARY_PATH
 
18889
  shlibpath_overrides_runpath=yes
 
18890
  hardcode_into_libs=yes
 
18891
  # ldd complains unless libraries are executable
 
18892
  postinstall_cmds='chmod +x $lib'
 
18893
  ;;
 
18894
 
 
18895
sunos4*)
 
18896
  version_type=sunos
 
18897
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18898
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18899
  shlibpath_var=LD_LIBRARY_PATH
 
18900
  shlibpath_overrides_runpath=yes
 
18901
  if test "$with_gnu_ld" = yes; then
 
18902
    need_lib_prefix=no
 
18903
  fi
 
18904
  need_version=yes
 
18905
  ;;
 
18906
 
 
18907
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18908
  version_type=linux
 
18909
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18910
  soname_spec='${libname}${release}${shared_ext}$major'
 
18911
  shlibpath_var=LD_LIBRARY_PATH
 
18912
  case $host_vendor in
 
18913
    sni)
 
18914
      shlibpath_overrides_runpath=no
 
18915
      need_lib_prefix=no
 
18916
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18917
      runpath_var=LD_RUN_PATH
 
18918
      ;;
 
18919
    siemens)
 
18920
      need_lib_prefix=no
 
18921
      ;;
 
18922
    motorola)
 
18923
      need_lib_prefix=no
 
18924
      need_version=no
 
18925
      shlibpath_overrides_runpath=no
 
18926
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18927
      ;;
 
18928
  esac
 
18929
  ;;
 
18930
 
 
18931
sysv4*MP*)
 
18932
  if test -d /usr/nec ;then
 
18933
    version_type=linux
 
18934
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18935
    soname_spec='$libname${shared_ext}.$major'
 
18936
    shlibpath_var=LD_LIBRARY_PATH
 
18937
  fi
 
18938
  ;;
 
18939
 
 
18940
uts4*)
 
18941
  version_type=linux
 
18942
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18943
  soname_spec='${libname}${release}${shared_ext}$major'
 
18944
  shlibpath_var=LD_LIBRARY_PATH
 
18945
  ;;
 
18946
 
 
18947
*)
 
18948
  dynamic_linker=no
 
18949
  ;;
 
18950
esac
 
18951
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18952
echo "${ECHO_T}$dynamic_linker" >&6
 
18953
test "$dynamic_linker" = no && can_build_shared=no
 
18954
 
 
18955
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5147
18956
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5148
18957
hardcode_action=
5149
18958
if test -n "$hardcode_libdir_flag_spec" || \
5150
 
   test -n "$runpath_var "; then
 
18959
   test -n "$runpath_var " || \
 
18960
   test "X$hardcode_automatic"="Xyes" ; then
5151
18961
 
5152
18962
  # We can hardcode non-existant directories.
5153
18963
  if test "$hardcode_direct" != no &&
5167
18977
  # directories.
5168
18978
  hardcode_action=unsupported
5169
18979
fi
5170
 
echo "$as_me:5170: result: $hardcode_action" >&5
 
18980
echo "$as_me:$LINENO: result: $hardcode_action" >&5
5171
18981
echo "${ECHO_T}$hardcode_action" >&6
5172
18982
 
5173
18983
if test "$hardcode_action" = relink; then
5181
18991
 
5182
18992
striplib=
5183
18993
old_striplib=
5184
 
echo "$as_me:5184: checking whether stripping libraries is possible" >&5
 
18994
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5185
18995
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5186
18996
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5187
18997
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5188
18998
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5189
 
  echo "$as_me:5189: result: yes" >&5
 
18999
  echo "$as_me:$LINENO: result: yes" >&5
5190
19000
echo "${ECHO_T}yes" >&6
5191
19001
else
5192
 
  echo "$as_me:5192: result: no" >&5
5193
 
echo "${ECHO_T}no" >&6
5194
 
fi
5195
 
 
5196
 
echo "$as_me:5196: checking dynamic linker characteristics" >&5
5197
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5198
 
library_names_spec=
5199
 
libname_spec='lib$name'
5200
 
soname_spec=
5201
 
postinstall_cmds=
5202
 
postuninstall_cmds=
5203
 
finish_cmds=
5204
 
finish_eval=
5205
 
shlibpath_var=
5206
 
shlibpath_overrides_runpath=unknown
5207
 
version_type=none
5208
 
dynamic_linker="$host_os ld.so"
5209
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
5210
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5211
 
need_lib_prefix=unknown
5212
 
hardcode_into_libs=no
5213
 
 
5214
 
# when you set need_version to no, make sure it does not cause -set_version
5215
 
# flags to be left without arguments
5216
 
need_version=unknown
5217
 
 
5218
 
case $host_os in
5219
 
aix3*)
5220
 
  version_type=linux
5221
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5222
 
  shlibpath_var=LIBPATH
5223
 
 
5224
 
  # AIX 3 has no versioning support, so we append a major version to the name.
5225
 
  soname_spec='${libname}${release}.so$major'
5226
 
  ;;
5227
 
 
5228
 
aix4* | aix5*)
5229
 
  version_type=linux
5230
 
  if test "$host_cpu" = ia64; then
5231
 
    # AIX 5 supports IA64
5232
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5233
 
    shlibpath_var=LD_LIBRARY_PATH
5234
 
  else
5235
 
    # With GCC up to 2.95.x, collect2 would create an import file
5236
 
    # for dependence libraries.  The import file would start with
5237
 
    # the line `#! .'.  This would cause the generated library to
5238
 
    # depend on `.', always an invalid library.  This was fixed in
5239
 
    # development snapshots of GCC prior to 3.0.
5240
 
    case $host_os in
5241
 
       aix4 | aix4.[01] | aix4.[01].*)
5242
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5243
 
           echo ' yes '
5244
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5245
 
        :
5246
 
      else
5247
 
        can_build_shared=no
5248
 
      fi
5249
 
      ;;
5250
 
    esac
5251
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5252
 
    # soname into executable. Probably we can add versioning support to
5253
 
    # collect2, so additional links can be useful in future.
5254
 
    if test "$aix_use_runtimelinking" = yes; then
5255
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5256
 
      # instead of lib<name>.a to let people know that these are not
5257
 
      # typical AIX shared libraries.
5258
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5259
 
    else
5260
 
      # We preserve .a as extension for shared libraries through AIX4.2
5261
 
      # and later when we are not doing run time linking.
5262
 
      library_names_spec='${libname}${release}.a $libname.a'
5263
 
      soname_spec='${libname}${release}.so$major'
5264
 
    fi
5265
 
    shlibpath_var=LIBPATH
5266
 
    deplibs_check_method=pass_all
5267
 
  fi
5268
 
  ;;
5269
 
 
5270
 
amigaos*)
5271
 
  library_names_spec='$libname.ixlibrary $libname.a'
5272
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
5273
 
  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'
5274
 
  ;;
5275
 
 
5276
 
beos*)
5277
 
  library_names_spec='${libname}.so'
5278
 
  dynamic_linker="$host_os ld.so"
5279
 
  shlibpath_var=LIBRARY_PATH
5280
 
  ;;
5281
 
 
5282
 
bsdi4*)
5283
 
  version_type=linux
5284
 
  need_version=no
5285
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5286
 
  soname_spec='${libname}${release}.so$major'
5287
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5288
 
  shlibpath_var=LD_LIBRARY_PATH
5289
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5290
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5291
 
  # the default ld.so.conf also contains /usr/contrib/lib and
5292
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5293
 
  # libtool to hard-code these into programs
5294
 
  ;;
5295
 
 
5296
 
cygwin* | mingw* | pw32*)
5297
 
  version_type=windows
5298
 
  need_version=no
5299
 
  need_lib_prefix=no
5300
 
  case $GCC,$host_os in
5301
 
  yes,cygwin*)
5302
 
    library_names_spec='$libname.dll.a'
5303
 
    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
5304
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5305
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5306
 
      dldir=$destdir/`dirname \$dlpath`~
5307
 
      test -d \$dldir || mkdir -p \$dldir~
5308
 
      $install_prog .libs/$dlname \$dldir/$dlname'
5309
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5310
 
      dlpath=$dir/\$dldll~
5311
 
       $rm \$dlpath'
5312
 
    ;;
5313
 
  yes,mingw*)
5314
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5315
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"`
5316
 
    ;;
5317
 
  yes,pw32*)
5318
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5319
 
    ;;
5320
 
  *)
5321
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5322
 
    ;;
5323
 
  esac
5324
 
  dynamic_linker='Win32 ld.exe'
5325
 
  # FIXME: first we should search . and the directory the executable is in
5326
 
  shlibpath_var=PATH
5327
 
  ;;
5328
 
 
5329
 
darwin* | rhapsody*)
5330
 
  dynamic_linker="$host_os dyld"
5331
 
  version_type=darwin
5332
 
  need_lib_prefix=no
5333
 
  need_version=no
5334
 
  # FIXME: Relying on posixy $() will cause problems for
5335
 
  #        cross-compilation, but unfortunately the echo tests do not
5336
 
  #        yet detect zsh echo's removal of \ escapes.
5337
 
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5338
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5339
 
  shlibpath_overrides_runpath=yes
5340
 
  shlibpath_var=DYLD_LIBRARY_PATH
5341
 
  ;;
5342
 
 
5343
 
dgux*)
5344
 
  version_type=linux
5345
 
  need_lib_prefix=no
5346
 
  need_version=no
5347
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5348
 
  soname_spec='${libname}${release}.so$major'
5349
 
  shlibpath_var=LD_LIBRARY_PATH
5350
 
  ;;
5351
 
 
5352
 
freebsd1*)
5353
 
  dynamic_linker=no
5354
 
  ;;
5355
 
 
5356
 
freebsd*)
5357
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5358
 
  version_type=freebsd-$objformat
5359
 
  case $version_type in
5360
 
    freebsd-elf*)
5361
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5362
 
      need_version=no
5363
 
      need_lib_prefix=no
5364
 
      ;;
5365
 
    freebsd-*)
5366
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5367
 
      need_version=yes
5368
 
      ;;
5369
 
  esac
5370
 
  shlibpath_var=LD_LIBRARY_PATH
5371
 
  case $host_os in
5372
 
  freebsd2*)
5373
 
    shlibpath_overrides_runpath=yes
5374
 
    ;;
5375
 
  freebsd3.01* | freebsdelf3.01*)
5376
 
    shlibpath_overrides_runpath=yes
5377
 
    hardcode_into_libs=yes
5378
 
    ;;
5379
 
  *) # from 3.2 on
5380
 
    shlibpath_overrides_runpath=no
5381
 
    hardcode_into_libs=yes
5382
 
    ;;
5383
 
  esac
5384
 
  ;;
5385
 
 
5386
 
gnu*)
5387
 
  version_type=linux
5388
 
  need_lib_prefix=no
5389
 
  need_version=no
5390
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5391
 
  soname_spec='${libname}${release}.so$major'
5392
 
  shlibpath_var=LD_LIBRARY_PATH
5393
 
  hardcode_into_libs=yes
5394
 
  ;;
5395
 
 
5396
 
hpux9* | hpux10* | hpux11*)
5397
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
5398
 
  # link against other versions.
5399
 
  version_type=sunos
5400
 
  need_lib_prefix=no
5401
 
  need_version=no
5402
 
  if test "$host_cpu" = ia64; then
5403
 
    hardcode_into_libs=yes
5404
 
    dynamic_linker="$host_os dld.so"
5405
 
    shlibpath_var=LD_LIBRARY_PATH
5406
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5407
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5408
 
    soname_spec='${libname}${release}.so$major'
5409
 
    if test "X$HPUX_IA64_MODE" = X32; then
5410
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
5411
 
    else
5412
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
5413
 
    fi
5414
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5415
 
  else
5416
 
    dynamic_linker="$host_os dld.sl"
5417
 
    shlibpath_var=SHLIB_PATH
5418
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5419
 
    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5420
 
    soname_spec='${libname}${release}.sl$major'
5421
 
  fi
5422
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
5423
 
  postinstall_cmds='chmod 555 $lib'
5424
 
  ;;
5425
 
 
5426
 
irix5* | irix6*)
5427
 
  version_type=irix
5428
 
  need_lib_prefix=no
5429
 
  need_version=no
5430
 
  soname_spec='${libname}${release}.so$major'
5431
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5432
 
  case $host_os in
5433
 
  irix5*)
5434
 
    libsuff= shlibsuff=
5435
 
    ;;
5436
 
  *)
5437
 
    case $LD in # libtool.m4 will add one of these switches to LD
5438
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5439
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5440
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5441
 
    *) libsuff= shlibsuff= libmagic=never-match;;
5442
 
    esac
5443
 
    ;;
5444
 
  esac
5445
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5446
 
  shlibpath_overrides_runpath=no
5447
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5448
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5449
 
  ;;
5450
 
 
5451
 
# No shared lib support for Linux oldld, aout, or coff.
5452
 
linux*oldld* | linux*aout* | linux*coff*)
5453
 
  dynamic_linker=no
5454
 
  ;;
5455
 
 
5456
 
# This must be Linux ELF.
5457
 
linux*)
5458
 
  version_type=linux
5459
 
  need_lib_prefix=no
5460
 
  need_version=no
5461
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5462
 
  soname_spec='${libname}${release}.so$major'
5463
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5464
 
  shlibpath_var=LD_LIBRARY_PATH
5465
 
  shlibpath_overrides_runpath=no
5466
 
  # This implies no fast_install, which is unacceptable.
5467
 
  # Some rework will be needed to allow for fast_install
5468
 
  # before this can be enabled.
5469
 
  hardcode_into_libs=yes
5470
 
 
5471
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
5472
 
  # powerpc, because MkLinux only supported shared libraries with the
5473
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
5474
 
  # most powerpc-linux boxes support dynamic linking these days and
5475
 
  # people can always --disable-shared, the test was removed, and we
5476
 
  # assume the GNU/Linux dynamic linker is in use.
5477
 
  dynamic_linker='GNU/Linux ld.so'
5478
 
  ;;
5479
 
 
5480
 
netbsd*)
5481
 
  version_type=sunos
5482
 
  need_lib_prefix=no
5483
 
  need_version=no
5484
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5485
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5486
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5487
 
    dynamic_linker='NetBSD (a.out) ld.so'
5488
 
  else
5489
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5490
 
    soname_spec='${libname}${release}.so$major'
5491
 
    dynamic_linker='NetBSD ld.elf_so'
5492
 
  fi
5493
 
  shlibpath_var=LD_LIBRARY_PATH
5494
 
  shlibpath_overrides_runpath=yes
5495
 
  hardcode_into_libs=yes
5496
 
  ;;
5497
 
 
5498
 
newsos6)
5499
 
  version_type=linux
5500
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5501
 
  shlibpath_var=LD_LIBRARY_PATH
5502
 
  shlibpath_overrides_runpath=yes
5503
 
  ;;
5504
 
 
5505
 
nto-qnx)
5506
 
  version_type=linux
5507
 
  need_lib_prefix=no
5508
 
  need_version=no
5509
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5510
 
  soname_spec='${libname}${release}.so$major'
5511
 
  shlibpath_var=LD_LIBRARY_PATH
5512
 
  shlibpath_overrides_runpath=yes
5513
 
  ;;
5514
 
 
5515
 
openbsd*)
5516
 
  version_type=sunos
5517
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5518
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5519
 
  shlibpath_var=LD_LIBRARY_PATH
5520
 
  file_magic_cmd=/usr/bin/file
5521
 
  file_magic_test_file=`echo /usr/lib/libc.so.*`
5522
 
  if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
5523
 
    deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
5524
 
  else
5525
 
    deplibs_check_method='file_magic OpenBSD.* shared library'
5526
 
  fi
5527
 
  ;;
5528
 
 
5529
 
os2*)
5530
 
  libname_spec='$name'
5531
 
  need_lib_prefix=no
5532
 
  library_names_spec='$libname.dll $libname.a'
5533
 
  dynamic_linker='OS/2 ld.exe'
5534
 
  shlibpath_var=LIBPATH
5535
 
  ;;
5536
 
 
5537
 
osf3* | osf4* | osf5*)
5538
 
  version_type=osf
5539
 
  need_version=no
5540
 
  soname_spec='${libname}${release}.so'
5541
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5542
 
  shlibpath_var=LD_LIBRARY_PATH
5543
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5544
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5545
 
  ;;
5546
 
 
5547
 
sco3.2v5*)
5548
 
  version_type=osf
5549
 
  soname_spec='${libname}${release}.so$major'
5550
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5551
 
  shlibpath_var=LD_LIBRARY_PATH
5552
 
  ;;
5553
 
 
5554
 
solaris*)
5555
 
  version_type=linux
5556
 
  need_lib_prefix=no
5557
 
  need_version=no
5558
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5559
 
  soname_spec='${libname}${release}.so$major'
5560
 
  shlibpath_var=LD_LIBRARY_PATH
5561
 
  shlibpath_overrides_runpath=yes
5562
 
  hardcode_into_libs=yes
5563
 
  # ldd complains unless libraries are executable
5564
 
  postinstall_cmds='chmod +x $lib'
5565
 
  ;;
5566
 
 
5567
 
sunos4*)
5568
 
  version_type=sunos
5569
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5570
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5571
 
  shlibpath_var=LD_LIBRARY_PATH
5572
 
  shlibpath_overrides_runpath=yes
5573
 
  if test "$with_gnu_ld" = yes; then
5574
 
    need_lib_prefix=no
5575
 
  fi
5576
 
  need_version=yes
5577
 
  ;;
5578
 
 
5579
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5580
 
  version_type=linux
5581
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5582
 
  soname_spec='${libname}${release}.so$major'
5583
 
  shlibpath_var=LD_LIBRARY_PATH
5584
 
  case $host_vendor in
5585
 
    sni)
5586
 
      shlibpath_overrides_runpath=no
5587
 
      ;;
5588
 
    motorola)
5589
 
      need_lib_prefix=no
5590
 
      need_version=no
5591
 
      shlibpath_overrides_runpath=no
5592
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5593
 
      ;;
5594
 
  esac
5595
 
  ;;
5596
 
 
5597
 
sysv4*MP*)
5598
 
  if test -d /usr/nec ;then
5599
 
    version_type=linux
5600
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5601
 
    soname_spec='$libname.so.$major'
5602
 
    shlibpath_var=LD_LIBRARY_PATH
5603
 
  fi
5604
 
  ;;
5605
 
 
5606
 
uts4*)
5607
 
  version_type=linux
5608
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5609
 
  soname_spec='${libname}${release}.so$major'
5610
 
  shlibpath_var=LD_LIBRARY_PATH
5611
 
  ;;
5612
 
 
5613
 
*)
5614
 
  dynamic_linker=no
5615
 
  ;;
5616
 
esac
5617
 
echo "$as_me:5617: result: $dynamic_linker" >&5
5618
 
echo "${ECHO_T}$dynamic_linker" >&6
5619
 
test "$dynamic_linker" = no && can_build_shared=no
 
19002
# FIXME - insert some real tests, host_os isn't really good enough
 
19003
  case $host_os in
 
19004
   darwin*)
 
19005
       if test -n "$STRIP" ; then
 
19006
         striplib="$STRIP -x"
 
19007
         echo "$as_me:$LINENO: result: yes" >&5
 
19008
echo "${ECHO_T}yes" >&6
 
19009
       else
 
19010
  echo "$as_me:$LINENO: result: no" >&5
 
19011
echo "${ECHO_T}no" >&6
 
19012
fi
 
19013
       ;;
 
19014
   *)
 
19015
  echo "$as_me:$LINENO: result: no" >&5
 
19016
echo "${ECHO_T}no" >&6
 
19017
    ;;
 
19018
  esac
 
19019
fi
5620
19020
 
5621
19021
if test "x$enable_dlopen" != xyes; then
5622
19022
  enable_dlopen=unknown
5633
19033
    lt_cv_dlopen_self=yes
5634
19034
    ;;
5635
19035
 
5636
 
  cygwin* | mingw* | pw32*)
 
19036
  mingw* | pw32*)
5637
19037
    lt_cv_dlopen="LoadLibrary"
5638
19038
    lt_cv_dlopen_libs=
5639
19039
   ;;
5640
19040
 
 
19041
  cygwin*)
 
19042
    lt_cv_dlopen="dlopen"
 
19043
    lt_cv_dlopen_libs=
 
19044
   ;;
 
19045
 
 
19046
  darwin*)
 
19047
  # if libdl is installed we need to link against it
 
19048
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19049
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19050
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19052
else
 
19053
  ac_check_lib_save_LIBS=$LIBS
 
19054
LIBS="-ldl  $LIBS"
 
19055
cat >conftest.$ac_ext <<_ACEOF
 
19056
/* confdefs.h.  */
 
19057
_ACEOF
 
19058
cat confdefs.h >>conftest.$ac_ext
 
19059
cat >>conftest.$ac_ext <<_ACEOF
 
19060
/* end confdefs.h.  */
 
19061
 
 
19062
/* Override any gcc2 internal prototype to avoid an error.  */
 
19063
#ifdef __cplusplus
 
19064
extern "C"
 
19065
#endif
 
19066
/* We use char because int might match the return type of a gcc2
 
19067
   builtin and then its argument prototype would still apply.  */
 
19068
char dlopen ();
 
19069
int
 
19070
main ()
 
19071
{
 
19072
dlopen ();
 
19073
  ;
 
19074
  return 0;
 
19075
}
 
19076
_ACEOF
 
19077
rm -f conftest.$ac_objext conftest$ac_exeext
 
19078
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19079
  (eval $ac_link) 2>conftest.er1
 
19080
  ac_status=$?
 
19081
  grep -v '^ *+' conftest.er1 >conftest.err
 
19082
  rm -f conftest.er1
 
19083
  cat conftest.err >&5
 
19084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19085
  (exit $ac_status); } &&
 
19086
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19087
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19088
  (eval $ac_try) 2>&5
 
19089
  ac_status=$?
 
19090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19091
  (exit $ac_status); }; } &&
 
19092
         { ac_try='test -s conftest$ac_exeext'
 
19093
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19094
  (eval $ac_try) 2>&5
 
19095
  ac_status=$?
 
19096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19097
  (exit $ac_status); }; }; then
 
19098
  ac_cv_lib_dl_dlopen=yes
 
19099
else
 
19100
  echo "$as_me: failed program was:" >&5
 
19101
sed 's/^/| /' conftest.$ac_ext >&5
 
19102
 
 
19103
ac_cv_lib_dl_dlopen=no
 
19104
fi
 
19105
rm -f conftest.err conftest.$ac_objext \
 
19106
      conftest$ac_exeext conftest.$ac_ext
 
19107
LIBS=$ac_check_lib_save_LIBS
 
19108
fi
 
19109
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19110
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19111
if test $ac_cv_lib_dl_dlopen = yes; then
 
19112
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19113
else
 
19114
 
 
19115
    lt_cv_dlopen="dyld"
 
19116
    lt_cv_dlopen_libs=
 
19117
    lt_cv_dlopen_self=yes
 
19118
 
 
19119
fi
 
19120
 
 
19121
   ;;
 
19122
 
5641
19123
  *)
5642
 
    echo "$as_me:5642: checking for shl_load" >&5
 
19124
    echo "$as_me:$LINENO: checking for shl_load" >&5
5643
19125
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5644
19126
if test "${ac_cv_func_shl_load+set}" = set; then
5645
19127
  echo $ECHO_N "(cached) $ECHO_C" >&6
5646
19128
else
5647
19129
  cat >conftest.$ac_ext <<_ACEOF
5648
 
#line 5648 "configure"
5649
 
#include "confdefs.h"
 
19130
/* confdefs.h.  */
 
19131
_ACEOF
 
19132
cat confdefs.h >>conftest.$ac_ext
 
19133
cat >>conftest.$ac_ext <<_ACEOF
 
19134
/* end confdefs.h.  */
 
19135
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
19136
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19137
#define shl_load innocuous_shl_load
 
19138
 
5650
19139
/* System header to define __stub macros and hopefully few prototypes,
5651
 
    which can conflict with char shl_load (); below.  */
5652
 
#include <assert.h>
 
19140
    which can conflict with char shl_load (); below.
 
19141
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19142
    <limits.h> exists even on freestanding compilers.  */
 
19143
 
 
19144
#ifdef __STDC__
 
19145
# include <limits.h>
 
19146
#else
 
19147
# include <assert.h>
 
19148
#endif
 
19149
 
 
19150
#undef shl_load
 
19151
 
5653
19152
/* Override any gcc2 internal prototype to avoid an error.  */
5654
19153
#ifdef __cplusplus
5655
19154
extern "C"
 
19155
{
5656
19156
#endif
5657
19157
/* We use char because int might match the return type of a gcc2
5658
19158
   builtin and then its argument prototype would still apply.  */
5659
19159
char shl_load ();
5660
 
char (*f) ();
5661
 
 
5662
 
int
5663
 
main ()
5664
 
{
5665
19160
/* The GNU C library defines this for functions which it implements
5666
19161
    to always fail with ENOSYS.  Some functions are actually named
5667
19162
    something starting with __ and the normal name is an alias.  */
5668
19163
#if defined (__stub_shl_load) || defined (__stub___shl_load)
5669
19164
choke me
5670
19165
#else
5671
 
f = shl_load;
 
19166
char (*f) () = shl_load;
 
19167
#endif
 
19168
#ifdef __cplusplus
 
19169
}
5672
19170
#endif
5673
19171
 
 
19172
int
 
19173
main ()
 
19174
{
 
19175
return f != shl_load;
5674
19176
  ;
5675
19177
  return 0;
5676
19178
}
5677
19179
_ACEOF
5678
19180
rm -f conftest.$ac_objext conftest$ac_exeext
5679
 
if { (eval echo "$as_me:5679: \"$ac_link\"") >&5
5680
 
  (eval $ac_link) 2>&5
 
19181
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19182
  (eval $ac_link) 2>conftest.er1
5681
19183
  ac_status=$?
5682
 
  echo "$as_me:5682: \$? = $ac_status" >&5
 
19184
  grep -v '^ *+' conftest.er1 >conftest.err
 
19185
  rm -f conftest.er1
 
19186
  cat conftest.err >&5
 
19187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683
19188
  (exit $ac_status); } &&
5684
 
         { ac_try='test -s conftest$ac_exeext'
5685
 
  { (eval echo "$as_me:5685: \"$ac_try\"") >&5
5686
 
  (eval $ac_try) 2>&5
5687
 
  ac_status=$?
5688
 
  echo "$as_me:5688: \$? = $ac_status" >&5
 
19189
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19190
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19191
  (eval $ac_try) 2>&5
 
19192
  ac_status=$?
 
19193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19194
  (exit $ac_status); }; } &&
 
19195
         { ac_try='test -s conftest$ac_exeext'
 
19196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19197
  (eval $ac_try) 2>&5
 
19198
  ac_status=$?
 
19199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689
19200
  (exit $ac_status); }; }; then
5690
19201
  ac_cv_func_shl_load=yes
5691
19202
else
5692
19203
  echo "$as_me: failed program was:" >&5
5693
 
cat conftest.$ac_ext >&5
 
19204
sed 's/^/| /' conftest.$ac_ext >&5
 
19205
 
5694
19206
ac_cv_func_shl_load=no
5695
19207
fi
5696
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19208
rm -f conftest.err conftest.$ac_objext \
 
19209
      conftest$ac_exeext conftest.$ac_ext
5697
19210
fi
5698
 
echo "$as_me:5698: result: $ac_cv_func_shl_load" >&5
 
19211
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
5699
19212
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5700
19213
if test $ac_cv_func_shl_load = yes; then
5701
19214
  lt_cv_dlopen="shl_load"
5702
19215
else
5703
 
  echo "$as_me:5703: checking for shl_load in -ldld" >&5
 
19216
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
5704
19217
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5705
19218
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5706
19219
  echo $ECHO_N "(cached) $ECHO_C" >&6
5708
19221
  ac_check_lib_save_LIBS=$LIBS
5709
19222
LIBS="-ldld  $LIBS"
5710
19223
cat >conftest.$ac_ext <<_ACEOF
5711
 
#line 5711 "configure"
5712
 
#include "confdefs.h"
 
19224
/* confdefs.h.  */
 
19225
_ACEOF
 
19226
cat confdefs.h >>conftest.$ac_ext
 
19227
cat >>conftest.$ac_ext <<_ACEOF
 
19228
/* end confdefs.h.  */
5713
19229
 
5714
19230
/* Override any gcc2 internal prototype to avoid an error.  */
5715
19231
#ifdef __cplusplus
5727
19243
}
5728
19244
_ACEOF
5729
19245
rm -f conftest.$ac_objext conftest$ac_exeext
5730
 
if { (eval echo "$as_me:5730: \"$ac_link\"") >&5
5731
 
  (eval $ac_link) 2>&5
 
19246
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19247
  (eval $ac_link) 2>conftest.er1
5732
19248
  ac_status=$?
5733
 
  echo "$as_me:5733: \$? = $ac_status" >&5
 
19249
  grep -v '^ *+' conftest.er1 >conftest.err
 
19250
  rm -f conftest.er1
 
19251
  cat conftest.err >&5
 
19252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734
19253
  (exit $ac_status); } &&
5735
 
         { ac_try='test -s conftest$ac_exeext'
5736
 
  { (eval echo "$as_me:5736: \"$ac_try\"") >&5
5737
 
  (eval $ac_try) 2>&5
5738
 
  ac_status=$?
5739
 
  echo "$as_me:5739: \$? = $ac_status" >&5
 
19254
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19255
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19256
  (eval $ac_try) 2>&5
 
19257
  ac_status=$?
 
19258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19259
  (exit $ac_status); }; } &&
 
19260
         { ac_try='test -s conftest$ac_exeext'
 
19261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19262
  (eval $ac_try) 2>&5
 
19263
  ac_status=$?
 
19264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740
19265
  (exit $ac_status); }; }; then
5741
19266
  ac_cv_lib_dld_shl_load=yes
5742
19267
else
5743
19268
  echo "$as_me: failed program was:" >&5
5744
 
cat conftest.$ac_ext >&5
 
19269
sed 's/^/| /' conftest.$ac_ext >&5
 
19270
 
5745
19271
ac_cv_lib_dld_shl_load=no
5746
19272
fi
5747
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19273
rm -f conftest.err conftest.$ac_objext \
 
19274
      conftest$ac_exeext conftest.$ac_ext
5748
19275
LIBS=$ac_check_lib_save_LIBS
5749
19276
fi
5750
 
echo "$as_me:5750: result: $ac_cv_lib_dld_shl_load" >&5
 
19277
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
5751
19278
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5752
19279
if test $ac_cv_lib_dld_shl_load = yes; then
5753
19280
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5754
19281
else
5755
 
  echo "$as_me:5755: checking for dlopen in -ldl" >&5
5756
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5757
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5758
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5759
 
else
5760
 
  ac_check_lib_save_LIBS=$LIBS
5761
 
LIBS="-ldl  $LIBS"
5762
 
cat >conftest.$ac_ext <<_ACEOF
5763
 
#line 5763 "configure"
5764
 
#include "confdefs.h"
5765
 
 
5766
 
/* Override any gcc2 internal prototype to avoid an error.  */
5767
 
#ifdef __cplusplus
5768
 
extern "C"
5769
 
#endif
5770
 
/* We use char because int might match the return type of a gcc2
5771
 
   builtin and then its argument prototype would still apply.  */
5772
 
char dlopen ();
5773
 
int
5774
 
main ()
5775
 
{
5776
 
dlopen ();
5777
 
  ;
5778
 
  return 0;
5779
 
}
5780
 
_ACEOF
5781
 
rm -f conftest.$ac_objext conftest$ac_exeext
5782
 
if { (eval echo "$as_me:5782: \"$ac_link\"") >&5
5783
 
  (eval $ac_link) 2>&5
5784
 
  ac_status=$?
5785
 
  echo "$as_me:5785: \$? = $ac_status" >&5
5786
 
  (exit $ac_status); } &&
5787
 
         { ac_try='test -s conftest$ac_exeext'
5788
 
  { (eval echo "$as_me:5788: \"$ac_try\"") >&5
5789
 
  (eval $ac_try) 2>&5
5790
 
  ac_status=$?
5791
 
  echo "$as_me:5791: \$? = $ac_status" >&5
5792
 
  (exit $ac_status); }; }; then
5793
 
  ac_cv_lib_dl_dlopen=yes
5794
 
else
5795
 
  echo "$as_me: failed program was:" >&5
5796
 
cat conftest.$ac_ext >&5
5797
 
ac_cv_lib_dl_dlopen=no
5798
 
fi
5799
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5800
 
LIBS=$ac_check_lib_save_LIBS
5801
 
fi
5802
 
echo "$as_me:5802: result: $ac_cv_lib_dl_dlopen" >&5
5803
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5804
 
if test $ac_cv_lib_dl_dlopen = yes; then
5805
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5806
 
else
5807
 
  echo "$as_me:5807: checking for dlopen" >&5
 
19282
  echo "$as_me:$LINENO: checking for dlopen" >&5
5808
19283
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5809
19284
if test "${ac_cv_func_dlopen+set}" = set; then
5810
19285
  echo $ECHO_N "(cached) $ECHO_C" >&6
5811
19286
else
5812
19287
  cat >conftest.$ac_ext <<_ACEOF
5813
 
#line 5813 "configure"
5814
 
#include "confdefs.h"
 
19288
/* confdefs.h.  */
 
19289
_ACEOF
 
19290
cat confdefs.h >>conftest.$ac_ext
 
19291
cat >>conftest.$ac_ext <<_ACEOF
 
19292
/* end confdefs.h.  */
 
19293
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
19294
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19295
#define dlopen innocuous_dlopen
 
19296
 
5815
19297
/* System header to define __stub macros and hopefully few prototypes,
5816
 
    which can conflict with char dlopen (); below.  */
5817
 
#include <assert.h>
 
19298
    which can conflict with char dlopen (); below.
 
19299
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19300
    <limits.h> exists even on freestanding compilers.  */
 
19301
 
 
19302
#ifdef __STDC__
 
19303
# include <limits.h>
 
19304
#else
 
19305
# include <assert.h>
 
19306
#endif
 
19307
 
 
19308
#undef dlopen
 
19309
 
5818
19310
/* Override any gcc2 internal prototype to avoid an error.  */
5819
19311
#ifdef __cplusplus
5820
19312
extern "C"
 
19313
{
5821
19314
#endif
5822
19315
/* We use char because int might match the return type of a gcc2
5823
19316
   builtin and then its argument prototype would still apply.  */
5824
19317
char dlopen ();
5825
 
char (*f) ();
5826
 
 
5827
 
int
5828
 
main ()
5829
 
{
5830
19318
/* The GNU C library defines this for functions which it implements
5831
19319
    to always fail with ENOSYS.  Some functions are actually named
5832
19320
    something starting with __ and the normal name is an alias.  */
5833
19321
#if defined (__stub_dlopen) || defined (__stub___dlopen)
5834
19322
choke me
5835
19323
#else
5836
 
f = dlopen;
 
19324
char (*f) () = dlopen;
 
19325
#endif
 
19326
#ifdef __cplusplus
 
19327
}
5837
19328
#endif
5838
19329
 
 
19330
int
 
19331
main ()
 
19332
{
 
19333
return f != dlopen;
5839
19334
  ;
5840
19335
  return 0;
5841
19336
}
5842
19337
_ACEOF
5843
19338
rm -f conftest.$ac_objext conftest$ac_exeext
5844
 
if { (eval echo "$as_me:5844: \"$ac_link\"") >&5
5845
 
  (eval $ac_link) 2>&5
 
19339
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19340
  (eval $ac_link) 2>conftest.er1
5846
19341
  ac_status=$?
5847
 
  echo "$as_me:5847: \$? = $ac_status" >&5
 
19342
  grep -v '^ *+' conftest.er1 >conftest.err
 
19343
  rm -f conftest.er1
 
19344
  cat conftest.err >&5
 
19345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848
19346
  (exit $ac_status); } &&
5849
 
         { ac_try='test -s conftest$ac_exeext'
5850
 
  { (eval echo "$as_me:5850: \"$ac_try\"") >&5
5851
 
  (eval $ac_try) 2>&5
5852
 
  ac_status=$?
5853
 
  echo "$as_me:5853: \$? = $ac_status" >&5
 
19347
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19348
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19349
  (eval $ac_try) 2>&5
 
19350
  ac_status=$?
 
19351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19352
  (exit $ac_status); }; } &&
 
19353
         { ac_try='test -s conftest$ac_exeext'
 
19354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19355
  (eval $ac_try) 2>&5
 
19356
  ac_status=$?
 
19357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854
19358
  (exit $ac_status); }; }; then
5855
19359
  ac_cv_func_dlopen=yes
5856
19360
else
5857
19361
  echo "$as_me: failed program was:" >&5
5858
 
cat conftest.$ac_ext >&5
 
19362
sed 's/^/| /' conftest.$ac_ext >&5
 
19363
 
5859
19364
ac_cv_func_dlopen=no
5860
19365
fi
5861
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19366
rm -f conftest.err conftest.$ac_objext \
 
19367
      conftest$ac_exeext conftest.$ac_ext
5862
19368
fi
5863
 
echo "$as_me:5863: result: $ac_cv_func_dlopen" >&5
 
19369
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
5864
19370
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5865
19371
if test $ac_cv_func_dlopen = yes; then
5866
19372
  lt_cv_dlopen="dlopen"
5867
19373
else
5868
 
  echo "$as_me:5868: checking for dlopen in -lsvld" >&5
 
19374
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19375
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19376
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19377
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19378
else
 
19379
  ac_check_lib_save_LIBS=$LIBS
 
19380
LIBS="-ldl  $LIBS"
 
19381
cat >conftest.$ac_ext <<_ACEOF
 
19382
/* confdefs.h.  */
 
19383
_ACEOF
 
19384
cat confdefs.h >>conftest.$ac_ext
 
19385
cat >>conftest.$ac_ext <<_ACEOF
 
19386
/* end confdefs.h.  */
 
19387
 
 
19388
/* Override any gcc2 internal prototype to avoid an error.  */
 
19389
#ifdef __cplusplus
 
19390
extern "C"
 
19391
#endif
 
19392
/* We use char because int might match the return type of a gcc2
 
19393
   builtin and then its argument prototype would still apply.  */
 
19394
char dlopen ();
 
19395
int
 
19396
main ()
 
19397
{
 
19398
dlopen ();
 
19399
  ;
 
19400
  return 0;
 
19401
}
 
19402
_ACEOF
 
19403
rm -f conftest.$ac_objext conftest$ac_exeext
 
19404
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19405
  (eval $ac_link) 2>conftest.er1
 
19406
  ac_status=$?
 
19407
  grep -v '^ *+' conftest.er1 >conftest.err
 
19408
  rm -f conftest.er1
 
19409
  cat conftest.err >&5
 
19410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19411
  (exit $ac_status); } &&
 
19412
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19413
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19414
  (eval $ac_try) 2>&5
 
19415
  ac_status=$?
 
19416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19417
  (exit $ac_status); }; } &&
 
19418
         { ac_try='test -s conftest$ac_exeext'
 
19419
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19420
  (eval $ac_try) 2>&5
 
19421
  ac_status=$?
 
19422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19423
  (exit $ac_status); }; }; then
 
19424
  ac_cv_lib_dl_dlopen=yes
 
19425
else
 
19426
  echo "$as_me: failed program was:" >&5
 
19427
sed 's/^/| /' conftest.$ac_ext >&5
 
19428
 
 
19429
ac_cv_lib_dl_dlopen=no
 
19430
fi
 
19431
rm -f conftest.err conftest.$ac_objext \
 
19432
      conftest$ac_exeext conftest.$ac_ext
 
19433
LIBS=$ac_check_lib_save_LIBS
 
19434
fi
 
19435
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19436
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19437
if test $ac_cv_lib_dl_dlopen = yes; then
 
19438
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19439
else
 
19440
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
5869
19441
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5870
19442
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5871
19443
  echo $ECHO_N "(cached) $ECHO_C" >&6
5873
19445
  ac_check_lib_save_LIBS=$LIBS
5874
19446
LIBS="-lsvld  $LIBS"
5875
19447
cat >conftest.$ac_ext <<_ACEOF
5876
 
#line 5876 "configure"
5877
 
#include "confdefs.h"
 
19448
/* confdefs.h.  */
 
19449
_ACEOF
 
19450
cat confdefs.h >>conftest.$ac_ext
 
19451
cat >>conftest.$ac_ext <<_ACEOF
 
19452
/* end confdefs.h.  */
5878
19453
 
5879
19454
/* Override any gcc2 internal prototype to avoid an error.  */
5880
19455
#ifdef __cplusplus
5892
19467
}
5893
19468
_ACEOF
5894
19469
rm -f conftest.$ac_objext conftest$ac_exeext
5895
 
if { (eval echo "$as_me:5895: \"$ac_link\"") >&5
5896
 
  (eval $ac_link) 2>&5
 
19470
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19471
  (eval $ac_link) 2>conftest.er1
5897
19472
  ac_status=$?
5898
 
  echo "$as_me:5898: \$? = $ac_status" >&5
 
19473
  grep -v '^ *+' conftest.er1 >conftest.err
 
19474
  rm -f conftest.er1
 
19475
  cat conftest.err >&5
 
19476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899
19477
  (exit $ac_status); } &&
5900
 
         { ac_try='test -s conftest$ac_exeext'
5901
 
  { (eval echo "$as_me:5901: \"$ac_try\"") >&5
5902
 
  (eval $ac_try) 2>&5
5903
 
  ac_status=$?
5904
 
  echo "$as_me:5904: \$? = $ac_status" >&5
 
19478
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19479
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19480
  (eval $ac_try) 2>&5
 
19481
  ac_status=$?
 
19482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19483
  (exit $ac_status); }; } &&
 
19484
         { ac_try='test -s conftest$ac_exeext'
 
19485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19486
  (eval $ac_try) 2>&5
 
19487
  ac_status=$?
 
19488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905
19489
  (exit $ac_status); }; }; then
5906
19490
  ac_cv_lib_svld_dlopen=yes
5907
19491
else
5908
19492
  echo "$as_me: failed program was:" >&5
5909
 
cat conftest.$ac_ext >&5
 
19493
sed 's/^/| /' conftest.$ac_ext >&5
 
19494
 
5910
19495
ac_cv_lib_svld_dlopen=no
5911
19496
fi
5912
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
19497
rm -f conftest.err conftest.$ac_objext \
 
19498
      conftest$ac_exeext conftest.$ac_ext
5913
19499
LIBS=$ac_check_lib_save_LIBS
5914
19500
fi
5915
 
echo "$as_me:5915: result: $ac_cv_lib_svld_dlopen" >&5
 
19501
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
5916
19502
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5917
19503
if test $ac_cv_lib_svld_dlopen = yes; then
5918
19504
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5919
 
fi
5920
 
 
5921
 
fi
5922
 
 
5923
 
fi
5924
 
 
5925
 
fi
 
19505
else
 
19506
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
19507
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
19508
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
19509
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19510
else
 
19511
  ac_check_lib_save_LIBS=$LIBS
 
19512
LIBS="-ldld  $LIBS"
 
19513
cat >conftest.$ac_ext <<_ACEOF
 
19514
/* confdefs.h.  */
 
19515
_ACEOF
 
19516
cat confdefs.h >>conftest.$ac_ext
 
19517
cat >>conftest.$ac_ext <<_ACEOF
 
19518
/* end confdefs.h.  */
 
19519
 
 
19520
/* Override any gcc2 internal prototype to avoid an error.  */
 
19521
#ifdef __cplusplus
 
19522
extern "C"
 
19523
#endif
 
19524
/* We use char because int might match the return type of a gcc2
 
19525
   builtin and then its argument prototype would still apply.  */
 
19526
char dld_link ();
 
19527
int
 
19528
main ()
 
19529
{
 
19530
dld_link ();
 
19531
  ;
 
19532
  return 0;
 
19533
}
 
19534
_ACEOF
 
19535
rm -f conftest.$ac_objext conftest$ac_exeext
 
19536
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19537
  (eval $ac_link) 2>conftest.er1
 
19538
  ac_status=$?
 
19539
  grep -v '^ *+' conftest.er1 >conftest.err
 
19540
  rm -f conftest.er1
 
19541
  cat conftest.err >&5
 
19542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19543
  (exit $ac_status); } &&
 
19544
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19546
  (eval $ac_try) 2>&5
 
19547
  ac_status=$?
 
19548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19549
  (exit $ac_status); }; } &&
 
19550
         { ac_try='test -s conftest$ac_exeext'
 
19551
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19552
  (eval $ac_try) 2>&5
 
19553
  ac_status=$?
 
19554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19555
  (exit $ac_status); }; }; then
 
19556
  ac_cv_lib_dld_dld_link=yes
 
19557
else
 
19558
  echo "$as_me: failed program was:" >&5
 
19559
sed 's/^/| /' conftest.$ac_ext >&5
 
19560
 
 
19561
ac_cv_lib_dld_dld_link=no
 
19562
fi
 
19563
rm -f conftest.err conftest.$ac_objext \
 
19564
      conftest$ac_exeext conftest.$ac_ext
 
19565
LIBS=$ac_check_lib_save_LIBS
 
19566
fi
 
19567
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
19568
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
19569
if test $ac_cv_lib_dld_dld_link = yes; then
 
19570
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
19571
fi
 
19572
 
 
19573
 
 
19574
fi
 
19575
 
 
19576
 
 
19577
fi
 
19578
 
 
19579
 
 
19580
fi
 
19581
 
 
19582
 
 
19583
fi
 
19584
 
5926
19585
 
5927
19586
fi
5928
19587
 
5946
19605
    save_LIBS="$LIBS"
5947
19606
    LIBS="$lt_cv_dlopen_libs $LIBS"
5948
19607
 
5949
 
    echo "$as_me:5949: checking whether a program can dlopen itself" >&5
 
19608
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
5950
19609
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5951
19610
if test "${lt_cv_dlopen_self+set}" = set; then
5952
19611
  echo $ECHO_N "(cached) $ECHO_C" >&6
5957
19616
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5958
19617
  lt_status=$lt_dlunknown
5959
19618
  cat > conftest.$ac_ext <<EOF
5960
 
#line 5960 "configure"
 
19619
#line 19619 "configure"
5961
19620
#include "confdefs.h"
5962
19621
 
5963
19622
#if HAVE_DLFCN_H
6018
19677
    exit (status);
6019
19678
}
6020
19679
EOF
6021
 
  if { (eval echo "$as_me:6021: \"$ac_link\"") >&5
 
19680
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6022
19681
  (eval $ac_link) 2>&5
6023
19682
  ac_status=$?
6024
 
  echo "$as_me:6024: \$? = $ac_status" >&5
 
19683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025
19684
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6026
19685
    (./conftest; exit; ) 2>/dev/null
6027
19686
    lt_status=$?
6037
19696
fi
6038
19697
rm -fr conftest*
6039
19698
 
 
19699
 
6040
19700
fi
6041
 
echo "$as_me:6041: result: $lt_cv_dlopen_self" >&5
 
19701
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6042
19702
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6043
19703
 
6044
19704
    if test "x$lt_cv_dlopen_self" = xyes; then
6045
19705
      LDFLAGS="$LDFLAGS $link_static_flag"
6046
 
      echo "$as_me:6046: checking whether a statically linked program can dlopen itself" >&5
 
19706
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6047
19707
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6048
19708
if test "${lt_cv_dlopen_self_static+set}" = set; then
6049
19709
  echo $ECHO_N "(cached) $ECHO_C" >&6
6054
19714
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6055
19715
  lt_status=$lt_dlunknown
6056
19716
  cat > conftest.$ac_ext <<EOF
6057
 
#line 6057 "configure"
 
19717
#line 19717 "configure"
6058
19718
#include "confdefs.h"
6059
19719
 
6060
19720
#if HAVE_DLFCN_H
6115
19775
    exit (status);
6116
19776
}
6117
19777
EOF
6118
 
  if { (eval echo "$as_me:6118: \"$ac_link\"") >&5
 
19778
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6119
19779
  (eval $ac_link) 2>&5
6120
19780
  ac_status=$?
6121
 
  echo "$as_me:6121: \$? = $ac_status" >&5
 
19781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122
19782
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6123
19783
    (./conftest; exit; ) 2>/dev/null
6124
19784
    lt_status=$?
6134
19794
fi
6135
19795
rm -fr conftest*
6136
19796
 
 
19797
 
6137
19798
fi
6138
 
echo "$as_me:6138: result: $lt_cv_dlopen_self_static" >&5
 
19799
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6139
19800
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6140
19801
    fi
6141
19802
 
6156
19817
  esac
6157
19818
fi
6158
19819
 
 
19820
 
6159
19821
# Report which librarie types wil actually be built
6160
 
echo "$as_me:6160: checking if libtool supports shared libraries" >&5
 
19822
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6161
19823
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6162
 
echo "$as_me:6162: result: $can_build_shared" >&5
 
19824
echo "$as_me:$LINENO: result: $can_build_shared" >&5
6163
19825
echo "${ECHO_T}$can_build_shared" >&6
6164
19826
 
6165
 
echo "$as_me:6165: checking whether to build shared libraries" >&5
 
19827
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6166
19828
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6167
19829
test "$can_build_shared" = "no" && enable_shared=no
6168
19830
 
6177
19839
  fi
6178
19840
  ;;
6179
19841
 
6180
 
aix4*)
6181
 
  test "$enable_shared" = yes && enable_static=no
 
19842
aix4* | aix5*)
 
19843
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
19844
    test "$enable_shared" = yes && enable_static=no
 
19845
  fi
6182
19846
  ;;
 
19847
  darwin* | rhapsody*)
 
19848
  if test "$GCC" = yes; then
 
19849
    archive_cmds_need_lc=no
 
19850
    case "$host_os" in
 
19851
    rhapsody* | darwin1.[012])
 
19852
      allow_undefined_flag='-undefined suppress'
 
19853
      ;;
 
19854
    *) # Darwin 1.3 on
 
19855
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
19856
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
19857
      else
 
19858
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
19859
          10.[012])
 
19860
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
19861
            ;;
 
19862
          10.*)
 
19863
            allow_undefined_flag='-undefined dynamic_lookup'
 
19864
            ;;
 
19865
        esac
 
19866
      fi
 
19867
      ;;
 
19868
    esac
 
19869
    output_verbose_link_cmd='echo'
 
19870
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
19871
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
19872
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
19873
    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}'
 
19874
    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}'
 
19875
    hardcode_direct=no
 
19876
    hardcode_automatic=yes
 
19877
    hardcode_shlibpath_var=unsupported
 
19878
    whole_archive_flag_spec='-all_load $convenience'
 
19879
    link_all_deplibs=yes
 
19880
  else
 
19881
    ld_shlibs=no
 
19882
  fi
 
19883
    ;;
6183
19884
esac
6184
 
echo "$as_me:6184: result: $enable_shared" >&5
 
19885
echo "$as_me:$LINENO: result: $enable_shared" >&5
6185
19886
echo "${ECHO_T}$enable_shared" >&6
6186
19887
 
6187
 
echo "$as_me:6187: checking whether to build static libraries" >&5
 
19888
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6188
19889
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6189
19890
# Make sure either enable_shared or enable_static is yes.
6190
19891
test "$enable_shared" = yes || enable_static=yes
6191
 
echo "$as_me:6191: result: $enable_static" >&5
 
19892
echo "$as_me:$LINENO: result: $enable_static" >&5
6192
19893
echo "${ECHO_T}$enable_static" >&6
6193
19894
 
6194
19895
# The else clause should only fire when bootstrapping the
6196
19897
# with your package, and you will get complaints that there are
6197
19898
# no rules to generate ltmain.sh.
6198
19899
if test -f "$ltmain"; then
 
19900
  # See if we are running on zsh, and set the options which allow our commands through
 
19901
  # without removal of \ escapes.
 
19902
  if test -n "${ZSH_VERSION+set}" ; then
 
19903
    setopt NO_GLOB_SUBST
 
19904
  fi
6199
19905
  # Now quote all the things that may contain metacharacters while being
6200
19906
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6201
19907
  # variables and quote the copies for generation of the libtool script.
6202
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
 
19908
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19909
    SED SHELL STRIP \
6203
19910
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
6204
19911
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
6205
19912
    deplibs_check_method reload_flag reload_cmds need_locks \
6217
19924
    export_dynamic_flag_spec \
6218
19925
    thread_safe_flag_spec \
6219
19926
    whole_archive_flag_spec \
 
19927
    enable_shared_with_static_runtimes \
6220
19928
    old_archive_cmds \
6221
19929
    old_archive_from_new_cmds \
6222
19930
    predep_objects \
6233
19941
    no_undefined_flag \
6234
19942
    export_symbols_cmds \
6235
19943
    hardcode_libdir_flag_spec \
 
19944
    hardcode_libdir_flag_spec_ld \
6236
19945
    hardcode_libdir_separator \
 
19946
    hardcode_automatic \
 
19947
    module_cmds \
 
19948
    module_expsym_cmds \
6237
19949
    lt_cv_prog_compiler_c_o \
6238
19950
    exclude_expsyms \
6239
19951
    include_expsyms; do
6243
19955
    old_archive_from_new_cmds | \
6244
19956
    archive_cmds | \
6245
19957
    archive_expsym_cmds | \
 
19958
    module_cmds | \
 
19959
    module_expsym_cmds | \
6246
19960
    old_archive_from_expsyms_cmds | \
6247
19961
    export_symbols_cmds | \
6248
19962
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
6267
19981
cfgfile="${ofile}T"
6268
19982
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
6269
19983
  $rm -f "$cfgfile"
6270
 
  { echo "$as_me:6270: creating $ofile" >&5
 
19984
  { echo "$as_me:$LINENO: creating $ofile" >&5
6271
19985
echo "$as_me: creating $ofile" >&6;}
6272
19986
 
6273
19987
  cat <<__EOF__ >> "$cfgfile"
6302
20016
# configuration script generated by Autoconf, you may include it under
6303
20017
# the same distribution terms that you use for the rest of that program.
6304
20018
 
 
20019
# A sed program that does not truncate output.
 
20020
SED=$lt_SED
 
20021
 
6305
20022
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6306
 
Xsed="sed -e s/^X//"
 
20023
Xsed="$SED -e s/^X//"
6307
20024
 
6308
20025
# The HP-UX ksh and POSIX shell print the target directory to stdout
6309
20026
# if CDPATH is set.
6328
20045
# Whether or not to add -lc for building shared libraries.
6329
20046
build_libtool_need_lc=$archive_cmds_need_lc
6330
20047
 
 
20048
# Whether or not to disallow shared libs when runtime libs are static
 
20049
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
20050
 
6331
20051
# Whether or not to optimize for fast installation.
6332
20052
fast_install=$enable_fast_install
6333
20053
 
6343
20063
AR_FLAGS=$lt_AR_FLAGS
6344
20064
 
6345
20065
# A C compiler.
6346
 
LTCC=$LTCC
 
20066
LTCC=$lt_LTCC
6347
20067
 
6348
20068
# A language-specific compiler.
6349
20069
CC=$lt_compiler
6351
20071
# Is the compiler the GNU C compiler?
6352
20072
with_gcc=$GCC
6353
20073
 
 
20074
# An ERE matcher.
 
20075
EGREP=$lt_EGREP
 
20076
 
6354
20077
# The linker used to build libraries.
6355
20078
LD=$lt_LD
6356
20079
 
6361
20084
NM=$lt_NM
6362
20085
 
6363
20086
# A symbol stripping program
6364
 
STRIP=$STRIP
 
20087
STRIP=$lt_STRIP
6365
20088
 
6366
20089
# Used to examine libraries when file_magic_cmd begins "file"
6367
20090
MAGIC_CMD=$MAGIC_CMD
6391
20114
# Old archive suffix (normally "a").
6392
20115
libext="$libext"
6393
20116
 
 
20117
# Shared library suffix (normally ".so").
 
20118
shrext_cmds='$shrext_cmds'
 
20119
 
6394
20120
# Executable file suffix (normally "").
6395
20121
exeext="$exeext"
6396
20122
 
6468
20194
postinstall_cmds=$lt_postinstall_cmds
6469
20195
postuninstall_cmds=$lt_postuninstall_cmds
6470
20196
 
 
20197
# Commands used to build a loadable module (assumed same as above if empty)
 
20198
module_cmds=$lt_module_cmds
 
20199
module_expsym_cmds=$lt_module_expsym_cmds
 
20200
 
6471
20201
# Commands to strip libraries.
6472
20202
old_striplib=$lt_old_striplib
6473
20203
striplib=$lt_striplib
6538
20268
# This must work even if \$libdir does not exist.
6539
20269
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6540
20270
 
 
20271
# If ld is used when linking, flag to hardcode \$libdir into
 
20272
# a binary during linking. This must work even if \$libdir does
 
20273
# not exist.
 
20274
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
20275
 
6541
20276
# Whether we need a single -rpath flag with a separated argument.
6542
20277
hardcode_libdir_separator=$lt_hardcode_libdir_separator
6543
20278
 
6544
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
20279
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6545
20280
# resulting binary.
6546
20281
hardcode_direct=$hardcode_direct
6547
20282
 
6553
20288
# the resulting binary.
6554
20289
hardcode_shlibpath_var=$hardcode_shlibpath_var
6555
20290
 
 
20291
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20292
# and all subsequent libraries and executables linked against it.
 
20293
hardcode_automatic=$hardcode_automatic
 
20294
 
6556
20295
# Variables whose values should be saved in libtool wrapper scripts and
6557
20296
# restored at relink time.
6558
20297
variables_saved_for_relink="$variables_saved_for_relink"
6588
20327
 
6589
20328
__EOF__
6590
20329
 
 
20330
 
6591
20331
  case $host_os in
6592
20332
  aix3*)
6593
20333
    cat <<\EOF >> "$cfgfile"
6601
20341
fi
6602
20342
EOF
6603
20343
    ;;
6604
 
 
6605
 
  cygwin* | mingw* | pw32* | os2*)
6606
 
    cat <<'EOF' >> "$cfgfile"
6607
 
    # This is a source program that is used to create dlls on Windows
6608
 
    # Don't remove nor modify the starting and closing comments
6609
 
    # /* ltdll.c starts here */
6610
 
# #define WIN32_LEAN_AND_MEAN
6611
 
# #include <windows.h>
6612
 
# #undef WIN32_LEAN_AND_MEAN
6613
 
# #include <stdio.h>
6614
 
#
6615
 
# #ifndef __CYGWIN__
6616
 
# #  ifdef __CYGWIN32__
6617
 
# #    define __CYGWIN__ __CYGWIN32__
6618
 
# #  endif
6619
 
# #endif
6620
 
#
6621
 
# #ifdef __cplusplus
6622
 
# extern "C" {
6623
 
# #endif
6624
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6625
 
# #ifdef __cplusplus
6626
 
# }
6627
 
# #endif
6628
 
#
6629
 
# #ifdef __CYGWIN__
6630
 
# #include <cygwin/cygwin_dll.h>
6631
 
# DECLARE_CYGWIN_DLL( DllMain );
6632
 
# #endif
6633
 
# HINSTANCE __hDllInstance_base;
6634
 
#
6635
 
# BOOL APIENTRY
6636
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6637
 
# {
6638
 
#   __hDllInstance_base = hInst;
6639
 
#   return TRUE;
6640
 
# }
6641
 
# /* ltdll.c ends here */
6642
 
 
6643
 
    # This is a source program that is used to create import libraries
6644
 
    # on Windows for dlls which lack them. Don't remove nor modify the
6645
 
    # starting and closing comments
6646
 
    # /* impgen.c starts here */
6647
 
# /*   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
6648
 
#
6649
 
#  This file is part of GNU libtool.
6650
 
#
6651
 
#  This program is free software; you can redistribute it and/or modify
6652
 
#  it under the terms of the GNU General Public License as published by
6653
 
#  the Free Software Foundation; either version 2 of the License, or
6654
 
#  (at your option) any later version.
6655
 
#
6656
 
#  This program is distributed in the hope that it will be useful,
6657
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
6658
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6659
 
#  GNU General Public License for more details.
6660
 
#
6661
 
#  You should have received a copy of the GNU General Public License
6662
 
#  along with this program; if not, write to the Free Software
6663
 
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6664
 
#  */
6665
 
#
6666
 
# #include <stdio.h>            /* for printf() */
6667
 
# #include <unistd.h>           /* for open(), lseek(), read() */
6668
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
6669
 
# #include <string.h>           /* for strdup() */
6670
 
#
6671
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
6672
 
# #ifndef O_BINARY
6673
 
# #define O_BINARY 0
6674
 
# #endif
6675
 
#
6676
 
# static unsigned int
6677
 
# pe_get16 (fd, offset)
6678
 
#      int fd;
6679
 
#      int offset;
6680
 
# {
6681
 
#   unsigned char b[2];
6682
 
#   lseek (fd, offset, SEEK_SET);
6683
 
#   read (fd, b, 2);
6684
 
#   return b[0] + (b[1]<<8);
6685
 
# }
6686
 
#
6687
 
# static unsigned int
6688
 
# pe_get32 (fd, offset)
6689
 
#     int fd;
6690
 
#     int offset;
6691
 
# {
6692
 
#   unsigned char b[4];
6693
 
#   lseek (fd, offset, SEEK_SET);
6694
 
#   read (fd, b, 4);
6695
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6696
 
# }
6697
 
#
6698
 
# static unsigned int
6699
 
# pe_as32 (ptr)
6700
 
#      void *ptr;
6701
 
# {
6702
 
#   unsigned char *b = ptr;
6703
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6704
 
# }
6705
 
#
6706
 
# int
6707
 
# main (argc, argv)
6708
 
#     int argc;
6709
 
#     char *argv[];
6710
 
# {
6711
 
#     int dll;
6712
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6713
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
6714
 
#     unsigned long name_rvas, nexp;
6715
 
#     unsigned char *expdata, *erva;
6716
 
#     char *filename, *dll_name;
6717
 
#
6718
 
#     filename = argv[1];
6719
 
#
6720
 
#     dll = open(filename, O_RDONLY|O_BINARY);
6721
 
#     if (dll < 1)
6722
 
#       return 1;
6723
 
#
6724
 
#     dll_name = filename;
6725
 
#
6726
 
#     for (i=0; filename[i]; i++)
6727
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
6728
 
#           dll_name = filename + i +1;
6729
 
#
6730
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
6731
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
6732
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
6733
 
#
6734
 
#     if (num_entries < 1) /* no exports */
6735
 
#       return 1;
6736
 
#
6737
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
6738
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
6739
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6740
 
#     secptr = (pe_header_offset + 4 + 20 +
6741
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
6742
 
#
6743
 
#     expptr = 0;
6744
 
#     for (i = 0; i < nsections; i++)
6745
 
#     {
6746
 
#       char sname[8];
6747
 
#       unsigned long secptr1 = secptr + 40 * i;
6748
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6749
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6750
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6751
 
#       lseek(dll, secptr1, SEEK_SET);
6752
 
#       read(dll, sname, 8);
6753
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
6754
 
#       {
6755
 
#           expptr = fptr + (export_rva - vaddr);
6756
 
#           if (export_rva + export_size > vaddr + vsize)
6757
 
#               export_size = vsize - (export_rva - vaddr);
6758
 
#           break;
6759
 
#       }
6760
 
#     }
6761
 
#
6762
 
#     expdata = (unsigned char*)malloc(export_size);
6763
 
#     lseek (dll, expptr, SEEK_SET);
6764
 
#     read (dll, expdata, export_size);
6765
 
#     erva = expdata - export_rva;
6766
 
#
6767
 
#     nexp = pe_as32 (expdata+24);
6768
 
#     name_rvas = pe_as32 (expdata+32);
6769
 
#
6770
 
#     printf ("EXPORTS\n");
6771
 
#     for (i = 0; i<nexp; i++)
6772
 
#     {
6773
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6774
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6775
 
#     }
6776
 
#
6777
 
#     return 0;
6778
 
# }
6779
 
# /* impgen.c ends here */
6780
 
 
6781
 
EOF
6782
 
    ;;
6783
20344
  esac
6784
20345
 
6785
20346
  # We use sed instead of cat because bash on DJGPP gets confused if
6796
20357
  # If there is no Makefile yet, we rely on a make rule to execute
6797
20358
  # `config.status --recheck' to rerun these tests and create the
6798
20359
  # libtool script then.
6799
 
  test -f Makefile && make "$ltmain"
 
20360
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20361
  if test -f "$ltmain_in"; then
 
20362
    test -f Makefile && make "$ltmain"
 
20363
  fi
6800
20364
fi
6801
20365
 
 
20366
 
6802
20367
ac_ext=c
6803
20368
ac_cpp='$CPP $CPPFLAGS'
6804
20369
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6807
20372
 
6808
20373
CC="$lt_save_CC"
6809
20374
 
 
20375
 
6810
20376
# Check whether --with-tags or --without-tags was given.
6811
20377
if test "${with_tags+set}" = set; then
6812
20378
  withval="$with_tags"
6813
20379
  tagnames="$withval"
6814
 
else
6815
 
  tagnames="CXX,GCJ"
6816
20380
fi;
6817
20381
 
6818
20382
if test -f "$ltmain" && test -n "$tagnames"; then
6819
20383
  if test ! -f "${ofile}"; then
6820
 
    { echo "$as_me:6820: WARNING: output file \`$ofile' does not exist" >&5
 
20384
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
6821
20385
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
6822
20386
  fi
6823
20387
 
6824
20388
  if test -z "$LTCC"; then
6825
20389
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
6826
20390
    if test -z "$LTCC"; then
6827
 
      { echo "$as_me:6827: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
20391
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
6828
20392
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
6829
20393
    else
6830
 
      { echo "$as_me:6830: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
20394
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
6831
20395
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
6832
20396
    fi
6833
20397
  fi
6834
20398
 
6835
20399
  # Extract list of available tagged configurations in $ofile.
6836
20400
  # Note that this assumes the entire list is on one line.
6837
 
  available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
20401
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
6838
20402
 
6839
 
  IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
 
20403
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6840
20404
  for tagname in $tagnames; do
6841
20405
    IFS="$lt_save_ifs"
6842
20406
    # Check whether tagname contains only valid characters
6843
 
    case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in
 
20407
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
6844
20408
    "") ;;
6845
 
    *)  { { echo "$as_me:6845: error: invalid tag name: $tagname" >&5
 
20409
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
6846
20410
echo "$as_me: error: invalid tag name: $tagname" >&2;}
6847
20411
   { (exit 1); exit 1; }; }
6848
 
        ;;
 
20412
        ;;
6849
20413
    esac
6850
20414
 
6851
20415
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
6852
20416
    then
6853
 
      { { echo "$as_me:6853: error: tag name $tagname already exists" >&5
6854
 
echo "$as_me: error: tag name $tagname already exists" >&2;}
 
20417
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
20418
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
6855
20419
   { (exit 1); exit 1; }; }
6856
20420
    fi
6857
20421
 
6861
20425
 
6862
20426
      case $tagname in
6863
20427
      CXX)
6864
 
        ac_ext=cc
 
20428
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
20429
          ac_ext=cc
6865
20430
ac_cpp='$CXXCPP $CPPFLAGS'
6866
20431
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6867
20432
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6868
20433
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6869
20434
 
 
20435
 
 
20436
 
 
20437
 
6870
20438
archive_cmds_need_lc_CXX=no
6871
20439
allow_undefined_flag_CXX=
6872
20440
always_export_symbols_CXX=no
6874
20442
export_dynamic_flag_spec_CXX=
6875
20443
hardcode_direct_CXX=no
6876
20444
hardcode_libdir_flag_spec_CXX=
 
20445
hardcode_libdir_flag_spec_ld_CXX=
6877
20446
hardcode_libdir_separator_CXX=
6878
20447
hardcode_minus_L_CXX=no
 
20448
hardcode_automatic_CXX=no
 
20449
module_cmds_CXX=
 
20450
module_expsym_cmds_CXX=
6879
20451
link_all_deplibs_CXX=unknown
6880
20452
old_archive_cmds_CXX=$old_archive_cmds
6881
20453
no_undefined_flag_CXX=
6882
20454
whole_archive_flag_spec_CXX=
 
20455
enable_shared_with_static_runtimes_CXX=no
6883
20456
 
6884
20457
# Dependencies to place before and after the object being linked:
6885
20458
predep_objects_CXX=
6888
20461
postdeps_CXX=
6889
20462
compiler_lib_search_path_CXX=
6890
20463
 
6891
 
# Source file extension for C test sources.
 
20464
# Source file extension for C++ test sources.
6892
20465
ac_ext=cc
6893
20466
 
6894
 
# Object file extension for compiled C test sources.
 
20467
# Object file extension for compiled C++ test sources.
6895
20468
objext=o
6896
20469
objext_CXX=$objext
6897
20470
 
6898
20471
# Code to be used in simple compile tests
6899
 
lt_simple_compile_test_code="int some_variable = 0;"
 
20472
lt_simple_compile_test_code="int some_variable = 0;\n"
6900
20473
 
6901
20474
# Code to be used in simple link tests
6902
 
lt_simple_link_test_code='int main(int char *) { return(0); }'
 
20475
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
6903
20476
 
6904
20477
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6905
20478
 
6907
20480
LTCC=${LTCC-"$CC"}
6908
20481
 
6909
20482
# Allow CC to be a program name with arguments.
6910
 
set dummy $CC
6911
 
compiler="$2"
 
20483
compiler=$CC
 
20484
 
6912
20485
 
6913
20486
# Allow CC to be a program name with arguments.
6914
 
lt_save_CC="$CC"
 
20487
lt_save_CC=$CC
 
20488
lt_save_LD=$LD
 
20489
lt_save_GCC=$GCC
 
20490
GCC=$GXX
 
20491
lt_save_with_gnu_ld=$with_gnu_ld
 
20492
lt_save_path_LD=$lt_cv_path_LD
 
20493
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
20494
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
20495
else
 
20496
  unset lt_cv_prog_gnu_ld
 
20497
fi
 
20498
if test -n "${lt_cv_path_LDCXX+set}"; then
 
20499
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
20500
else
 
20501
  unset lt_cv_path_LD
 
20502
fi
 
20503
test -z "${LDCXX+set}" || LD=$LDCXX
6915
20504
CC=${CXX-"c++"}
6916
 
set dummy $CC
6917
 
compiler="$2"
 
20505
compiler=$CC
6918
20506
compiler_CXX=$CC
6919
20507
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
6920
20508
 
6929
20517
if test "$GXX" = yes; then
6930
20518
  # Set up default GNU C++ configuration
6931
20519
 
 
20520
 
 
20521
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
20522
if test "${with_gnu_ld+set}" = set; then
 
20523
  withval="$with_gnu_ld"
 
20524
  test "$withval" = no || with_gnu_ld=yes
 
20525
else
 
20526
  with_gnu_ld=no
 
20527
fi;
 
20528
ac_prog=ld
 
20529
if test "$GCC" = yes; then
 
20530
  # Check if gcc -print-prog-name=ld gives a path.
 
20531
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
20532
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
20533
  case $host in
 
20534
  *-*-mingw*)
 
20535
    # gcc leaves a trailing carriage return which upsets mingw
 
20536
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
20537
  *)
 
20538
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
20539
  esac
 
20540
  case $ac_prog in
 
20541
    # Accept absolute paths.
 
20542
    [\\/]* | ?:[\\/]*)
 
20543
      re_direlt='/[^/][^/]*/\.\./'
 
20544
      # Canonicalize the pathname of ld
 
20545
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
20546
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
20547
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
20548
      done
 
20549
      test -z "$LD" && LD="$ac_prog"
 
20550
      ;;
 
20551
  "")
 
20552
    # If it fails, then pretend we aren't using GCC.
 
20553
    ac_prog=ld
 
20554
    ;;
 
20555
  *)
 
20556
    # If it is relative, then search for the first ld in PATH.
 
20557
    with_gnu_ld=unknown
 
20558
    ;;
 
20559
  esac
 
20560
elif test "$with_gnu_ld" = yes; then
 
20561
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
20562
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
20563
else
 
20564
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
20565
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
20566
fi
 
20567
if test "${lt_cv_path_LD+set}" = set; then
 
20568
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20569
else
 
20570
  if test -z "$LD"; then
 
20571
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
20572
  for ac_dir in $PATH; do
 
20573
    IFS="$lt_save_ifs"
 
20574
    test -z "$ac_dir" && ac_dir=.
 
20575
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
20576
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
20577
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
20578
      # but apparently some GNU ld's only accept -v.
 
20579
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
20580
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
20581
      *GNU* | *'with BFD'*)
 
20582
        test "$with_gnu_ld" != no && break
 
20583
        ;;
 
20584
      *)
 
20585
        test "$with_gnu_ld" != yes && break
 
20586
        ;;
 
20587
      esac
 
20588
    fi
 
20589
  done
 
20590
  IFS="$lt_save_ifs"
 
20591
else
 
20592
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
20593
fi
 
20594
fi
 
20595
 
 
20596
LD="$lt_cv_path_LD"
 
20597
if test -n "$LD"; then
 
20598
  echo "$as_me:$LINENO: result: $LD" >&5
 
20599
echo "${ECHO_T}$LD" >&6
 
20600
else
 
20601
  echo "$as_me:$LINENO: result: no" >&5
 
20602
echo "${ECHO_T}no" >&6
 
20603
fi
 
20604
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
20605
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
20606
   { (exit 1); exit 1; }; }
 
20607
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
20608
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
20609
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
20610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20611
else
 
20612
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
20613
case `$LD -v 2>&1 </dev/null` in
 
20614
*GNU* | *'with BFD'*)
 
20615
  lt_cv_prog_gnu_ld=yes
 
20616
  ;;
 
20617
*)
 
20618
  lt_cv_prog_gnu_ld=no
 
20619
  ;;
 
20620
esac
 
20621
fi
 
20622
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
20623
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
20624
with_gnu_ld=$lt_cv_prog_gnu_ld
 
20625
 
 
20626
 
 
20627
 
6932
20628
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
6933
20629
  # archiving commands below assume that GNU ld is being used.
6934
 
  if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
6935
 
      egrep 'GNU ld' > /dev/null; then
6936
 
    with_gnu_ld=yes
6937
 
 
 
20630
  if test "$with_gnu_ld" = yes; then
6938
20631
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6939
20632
    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'
6940
20633
 
6948
20641
 
6949
20642
    # ancient GNU ld didn't support --whole-archive et. al.
6950
20643
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
6951
 
        egrep 'no-whole-archive' > /dev/null; then
 
20644
        grep 'no-whole-archive' > /dev/null; then
6952
20645
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6953
20646
    else
6954
20647
      whole_archive_flag_spec_CXX=
6962
20655
    # linker, instead of GNU ld.  If possible, this setting should
6963
20656
    # overridden to take advantage of the native linker features on
6964
20657
    # the platform it is being used on.
6965
 
    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
20658
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6966
20659
  fi
6967
20660
 
6968
20661
  # Commands to make compiler produce verbose output that lists
6969
20662
  # what "hidden" libraries, object files and flags are used when
6970
20663
  # linking a shared library.
6971
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
 
20664
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
6972
20665
 
6973
20666
else
6974
20667
  GXX=no
6977
20670
fi
6978
20671
 
6979
20672
# PORTME: fill in a description of your system's C++ link characteristics
6980
 
echo "$as_me:6980: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
20673
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6981
20674
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6982
20675
ld_shlibs_CXX=yes
6983
20676
case $host_os in
6999
20692
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7000
20693
      # need to do runtime linking.
7001
20694
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7002
 
        for ld_flag in $LDFLAGS; do
7003
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
20695
        for ld_flag in $LDFLAGS; do
 
20696
          case $ld_flag in
 
20697
          *-brtl*)
7004
20698
            aix_use_runtimelinking=yes
7005
20699
            break
7006
 
          fi
7007
 
        done
 
20700
            ;;
 
20701
          esac
 
20702
        done
7008
20703
      esac
7009
20704
 
7010
20705
      exp_sym_flag='-bexport'
7026
20721
      case $host_os in aix4.012|aix4.012.*)
7027
20722
      # We only want to do this on AIX 4.2 and lower, the check
7028
20723
      # below for broken collect2 doesn't work under 4.3+
7029
 
        collect2name=`${CC} -print-prog-name=collect2`
7030
 
        if test -f "$collect2name" && \
 
20724
        collect2name=`${CC} -print-prog-name=collect2`
 
20725
        if test -f "$collect2name" && \
7031
20726
           strings "$collect2name" | grep resolve_lib_name >/dev/null
7032
 
        then
 
20727
        then
7033
20728
          # We have reworked collect2
7034
20729
          hardcode_direct_CXX=yes
7035
 
        else
 
20730
        else
7036
20731
          # We have old collect2
7037
20732
          hardcode_direct_CXX=unsupported
7038
20733
          # It fails to find uninstalled libraries when the uninstalled
7041
20736
          hardcode_minus_L_CXX=yes
7042
20737
          hardcode_libdir_flag_spec_CXX='-L$libdir'
7043
20738
          hardcode_libdir_separator_CXX=
7044
 
        fi
 
20739
        fi
7045
20740
      esac
7046
20741
      shared_flag='-shared'
7047
20742
    else
7049
20744
      if test "$host_cpu" = ia64; then
7050
20745
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7051
20746
        # chokes on -Wl,-G. The following line is correct:
7052
 
        shared_flag='-G'
 
20747
        shared_flag='-G'
7053
20748
      else
7054
20749
        if test "$aix_use_runtimelinking" = yes; then
7055
 
          shared_flag='${wl}-G'
7056
 
        else
7057
 
          shared_flag='${wl}-bM:SRE'
 
20750
          shared_flag='${wl}-G'
 
20751
        else
 
20752
          shared_flag='${wl}-bM:SRE'
7058
20753
        fi
7059
20754
      fi
7060
20755
    fi
7068
20763
      allow_undefined_flag_CXX='-berok'
7069
20764
      # Determine the default libpath from the value encoded in an empty executable.
7070
20765
      cat >conftest.$ac_ext <<_ACEOF
7071
 
#line 7071 "configure"
7072
 
#include "confdefs.h"
 
20766
/* confdefs.h.  */
 
20767
_ACEOF
 
20768
cat confdefs.h >>conftest.$ac_ext
 
20769
cat >>conftest.$ac_ext <<_ACEOF
 
20770
/* end confdefs.h.  */
7073
20771
 
7074
20772
int
7075
20773
main ()
7080
20778
}
7081
20779
_ACEOF
7082
20780
rm -f conftest.$ac_objext conftest$ac_exeext
7083
 
if { (eval echo "$as_me:7083: \"$ac_link\"") >&5
7084
 
  (eval $ac_link) 2>&5
 
20781
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20782
  (eval $ac_link) 2>conftest.er1
7085
20783
  ac_status=$?
7086
 
  echo "$as_me:7086: \$? = $ac_status" >&5
 
20784
  grep -v '^ *+' conftest.er1 >conftest.err
 
20785
  rm -f conftest.er1
 
20786
  cat conftest.err >&5
 
20787
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087
20788
  (exit $ac_status); } &&
7088
 
         { ac_try='test -s conftest$ac_exeext'
7089
 
  { (eval echo "$as_me:7089: \"$ac_try\"") >&5
7090
 
  (eval $ac_try) 2>&5
7091
 
  ac_status=$?
7092
 
  echo "$as_me:7092: \$? = $ac_status" >&5
 
20789
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
20790
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20791
  (eval $ac_try) 2>&5
 
20792
  ac_status=$?
 
20793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20794
  (exit $ac_status); }; } &&
 
20795
         { ac_try='test -s conftest$ac_exeext'
 
20796
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20797
  (eval $ac_try) 2>&5
 
20798
  ac_status=$?
 
20799
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093
20800
  (exit $ac_status); }; }; then
7094
20801
 
7095
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
 
20802
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
20803
}'`
7096
20804
# Check for a 64-bit object if we didn't find anything.
7097
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
 
20805
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; }
 
20806
}'`; fi
7098
20807
else
7099
20808
  echo "$as_me: failed program was:" >&5
7100
 
cat conftest.$ac_ext >&5
 
20809
sed 's/^/| /' conftest.$ac_ext >&5
 
20810
 
7101
20811
fi
7102
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20812
rm -f conftest.err conftest.$ac_objext \
 
20813
      conftest$ac_exeext conftest.$ac_ext
7103
20814
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7104
20815
 
7105
20816
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
7107
20818
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7108
20819
     else
7109
20820
      if test "$host_cpu" = ia64; then
7110
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
7111
 
        allow_undefined_flag_CXX="-z nodefs"
7112
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
20821
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
20822
        allow_undefined_flag_CXX="-z nodefs"
 
20823
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7113
20824
      else
7114
 
        # Determine the default libpath from the value encoded in an empty executable.
7115
 
        cat >conftest.$ac_ext <<_ACEOF
7116
 
#line 7116 "configure"
7117
 
#include "confdefs.h"
 
20825
        # Determine the default libpath from the value encoded in an empty executable.
 
20826
        cat >conftest.$ac_ext <<_ACEOF
 
20827
/* confdefs.h.  */
 
20828
_ACEOF
 
20829
cat confdefs.h >>conftest.$ac_ext
 
20830
cat >>conftest.$ac_ext <<_ACEOF
 
20831
/* end confdefs.h.  */
7118
20832
 
7119
20833
int
7120
20834
main ()
7125
20839
}
7126
20840
_ACEOF
7127
20841
rm -f conftest.$ac_objext conftest$ac_exeext
7128
 
if { (eval echo "$as_me:7128: \"$ac_link\"") >&5
7129
 
  (eval $ac_link) 2>&5
 
20842
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20843
  (eval $ac_link) 2>conftest.er1
7130
20844
  ac_status=$?
7131
 
  echo "$as_me:7131: \$? = $ac_status" >&5
 
20845
  grep -v '^ *+' conftest.er1 >conftest.err
 
20846
  rm -f conftest.er1
 
20847
  cat conftest.err >&5
 
20848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132
20849
  (exit $ac_status); } &&
7133
 
         { ac_try='test -s conftest$ac_exeext'
7134
 
  { (eval echo "$as_me:7134: \"$ac_try\"") >&5
7135
 
  (eval $ac_try) 2>&5
7136
 
  ac_status=$?
7137
 
  echo "$as_me:7137: \$? = $ac_status" >&5
 
20850
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
20851
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20852
  (eval $ac_try) 2>&5
 
20853
  ac_status=$?
 
20854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20855
  (exit $ac_status); }; } &&
 
20856
         { ac_try='test -s conftest$ac_exeext'
 
20857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20858
  (eval $ac_try) 2>&5
 
20859
  ac_status=$?
 
20860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138
20861
  (exit $ac_status); }; }; then
7139
20862
 
7140
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
 
20863
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
20864
}'`
7141
20865
# Check for a 64-bit object if we didn't find anything.
7142
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
 
20866
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; }
 
20867
}'`; fi
7143
20868
else
7144
20869
  echo "$as_me: failed program was:" >&5
7145
 
cat conftest.$ac_ext >&5
 
20870
sed 's/^/| /' conftest.$ac_ext >&5
 
20871
 
7146
20872
fi
7147
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
20873
rm -f conftest.err conftest.$ac_objext \
 
20874
      conftest$ac_exeext conftest.$ac_ext
7148
20875
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7149
20876
 
7150
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
7151
 
        # Warning - without using the other run time loading flags,
7152
 
        # -berok will link without error, but may produce a broken library.
7153
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
7154
 
        allow_undefined_flag_CXX=' ${wl}-berok'
7155
 
        # -bexpall does not export symbols beginning with underscore (_)
7156
 
        always_export_symbols_CXX=yes
7157
 
        # Exported symbols can be pulled into shared objects from archives
7158
 
        whole_archive_flag_spec_CXX=' '
7159
 
        archive_cmds_need_lc_CXX=yes
7160
 
        # This is similar to how AIX traditionally builds it's shared libraries.
7161
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
20877
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
20878
        # Warning - without using the other run time loading flags,
 
20879
        # -berok will link without error, but may produce a broken library.
 
20880
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
20881
        allow_undefined_flag_CXX=' ${wl}-berok'
 
20882
        # -bexpall does not export symbols beginning with underscore (_)
 
20883
        always_export_symbols_CXX=yes
 
20884
        # Exported symbols can be pulled into shared objects from archives
 
20885
        whole_archive_flag_spec_CXX=' '
 
20886
        archive_cmds_need_lc_CXX=yes
 
20887
        # This is similar to how AIX traditionally builds it's shared libraries.
 
20888
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7162
20889
      fi
7163
20890
    fi
7164
20891
    ;;
7165
20892
  chorus*)
7166
20893
    case $cc_basename in
7167
20894
      *)
7168
 
        # FIXME: insert proper C++ library support
7169
 
        ld_shlibs_CXX=no
7170
 
        ;;
7171
 
    esac
7172
 
    ;;
 
20895
        # FIXME: insert proper C++ library support
 
20896
        ld_shlibs_CXX=no
 
20897
        ;;
 
20898
    esac
 
20899
    ;;
 
20900
 
 
20901
  cygwin* | mingw* | pw32*)
 
20902
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
20903
    # as there is no search path for DLLs.
 
20904
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
20905
    allow_undefined_flag_CXX=unsupported
 
20906
    always_export_symbols_CXX=no
 
20907
    enable_shared_with_static_runtimes_CXX=yes
 
20908
 
 
20909
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
20910
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
20911
      # If the export-symbols file already is a .def file (1st line
 
20912
      # is EXPORTS), use it as is; otherwise, prepend...
 
20913
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
20914
        cp $export_symbols $output_objdir/$soname.def;
 
20915
      else
 
20916
        echo EXPORTS > $output_objdir/$soname.def;
 
20917
        cat $export_symbols >> $output_objdir/$soname.def;
 
20918
      fi~
 
20919
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
20920
    else
 
20921
      ld_shlibs_CXX=no
 
20922
    fi
 
20923
  ;;
 
20924
 
 
20925
  darwin* | rhapsody*)
 
20926
  if test "$GXX" = yes; then
 
20927
    archive_cmds_need_lc_CXX=no
 
20928
    case "$host_os" in
 
20929
    rhapsody* | darwin1.[012])
 
20930
      allow_undefined_flag_CXX='-undefined suppress'
 
20931
      ;;
 
20932
    *) # Darwin 1.3 on
 
20933
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
20934
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
20935
      else
 
20936
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
20937
          10.[012])
 
20938
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
20939
            ;;
 
20940
          10.*)
 
20941
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
20942
            ;;
 
20943
        esac
 
20944
      fi
 
20945
      ;;
 
20946
    esac
 
20947
    lt_int_apple_cc_single_mod=no
 
20948
    output_verbose_link_cmd='echo'
 
20949
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
20950
      lt_int_apple_cc_single_mod=yes
 
20951
    fi
 
20952
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
20953
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
20954
    else
 
20955
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
 
20956
    fi
 
20957
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
20958
 
 
20959
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
20960
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
20961
      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}'
 
20962
    else
 
20963
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
 
20964
    fi
 
20965
    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}'
 
20966
    hardcode_direct_CXX=no
 
20967
    hardcode_automatic_CXX=yes
 
20968
    hardcode_shlibpath_var_CXX=unsupported
 
20969
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
20970
    link_all_deplibs_CXX=yes
 
20971
  else
 
20972
    ld_shlibs_CXX=no
 
20973
  fi
 
20974
    ;;
 
20975
 
7173
20976
  dgux*)
7174
20977
    case $cc_basename in
7175
20978
      ec++)
7176
 
        # FIXME: insert proper C++ library support
7177
 
        ld_shlibs_CXX=no
7178
 
        ;;
 
20979
        # FIXME: insert proper C++ library support
 
20980
        ld_shlibs_CXX=no
 
20981
        ;;
7179
20982
      ghcx)
7180
 
        # Green Hills C++ Compiler
7181
 
        # FIXME: insert proper C++ library support
7182
 
        ld_shlibs_CXX=no
7183
 
        ;;
 
20983
        # Green Hills C++ Compiler
 
20984
        # FIXME: insert proper C++ library support
 
20985
        ld_shlibs_CXX=no
 
20986
        ;;
7184
20987
      *)
7185
 
        # FIXME: insert proper C++ library support
7186
 
        ld_shlibs_CXX=no
7187
 
        ;;
 
20988
        # FIXME: insert proper C++ library support
 
20989
        ld_shlibs_CXX=no
 
20990
        ;;
7188
20991
    esac
7189
20992
    ;;
7190
20993
  freebsd12*)
7194
20997
  freebsd-elf*)
7195
20998
    archive_cmds_need_lc_CXX=no
7196
20999
    ;;
7197
 
  freebsd*)
 
21000
  freebsd* | kfreebsd*-gnu)
7198
21001
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
7199
21002
    # conventions
7200
21003
    ld_shlibs_CXX=yes
7201
21004
    ;;
7202
21005
  gnu*)
7203
21006
    ;;
7204
 
  hpux*)
 
21007
  hpux9*)
 
21008
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
21009
    hardcode_libdir_separator_CXX=:
 
21010
    export_dynamic_flag_spec_CXX='${wl}-E'
 
21011
    hardcode_direct_CXX=yes
 
21012
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
21013
                                # but as the default
 
21014
                                # location of the library.
 
21015
 
 
21016
    case $cc_basename in
 
21017
    CC)
 
21018
      # FIXME: insert proper C++ library support
 
21019
      ld_shlibs_CXX=no
 
21020
      ;;
 
21021
    aCC)
 
21022
      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'
 
21023
      # Commands to make compiler produce verbose output that lists
 
21024
      # what "hidden" libraries, object files and flags are used when
 
21025
      # linking a shared library.
 
21026
      #
 
21027
      # There doesn't appear to be a way to prevent this compiler from
 
21028
      # explicitly linking system object files so we need to strip them
 
21029
      # from the output so that they don't get included in the library
 
21030
      # dependencies.
 
21031
      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'
 
21032
      ;;
 
21033
    *)
 
21034
      if test "$GXX" = yes; then
 
21035
        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'
 
21036
      else
 
21037
        # FIXME: insert proper C++ library support
 
21038
        ld_shlibs_CXX=no
 
21039
      fi
 
21040
      ;;
 
21041
    esac
 
21042
    ;;
 
21043
  hpux10*|hpux11*)
7205
21044
    if test $with_gnu_ld = no; then
7206
 
      if test "$host_cpu" = ia64; then
7207
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
7208
 
      else
7209
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
7210
 
        hardcode_libdir_separator_CXX=:
7211
 
        export_dynamic_flag_spec_CXX='${wl}-E'
7212
 
      fi
 
21045
      case "$host_cpu" in
 
21046
      hppa*64*)
 
21047
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
21048
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
21049
        hardcode_libdir_separator_CXX=:
 
21050
        ;;
 
21051
      ia64*)
 
21052
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
21053
        ;;
 
21054
      *)
 
21055
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
21056
        hardcode_libdir_separator_CXX=:
 
21057
        export_dynamic_flag_spec_CXX='${wl}-E'
 
21058
        ;;
 
21059
      esac
7213
21060
    fi
7214
 
    if test "$host_cpu" = ia64; then
7215
 
      hardcode_direct_CXX=no
7216
 
      hardcode_shlibpath_var_CXX=no
7217
 
    else
 
21061
    case "$host_cpu" in
 
21062
    hppa*64*)
 
21063
      hardcode_direct_CXX=no
 
21064
      hardcode_shlibpath_var_CXX=no
 
21065
      ;;
 
21066
    ia64*)
 
21067
      hardcode_direct_CXX=no
 
21068
      hardcode_shlibpath_var_CXX=no
 
21069
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
21070
                                              # but as the default
 
21071
                                              # location of the library.
 
21072
      ;;
 
21073
    *)
7218
21074
      hardcode_direct_CXX=yes
7219
 
    fi
7220
 
    hardcode_minus_L_CXX=yes # Not in the search PATH, but as the default
7221
 
                         # location of the library.
 
21075
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
21076
                                              # but as the default
 
21077
                                              # location of the library.
 
21078
      ;;
 
21079
    esac
7222
21080
 
7223
21081
    case $cc_basename in
7224
21082
      CC)
7225
 
        # FIXME: insert proper C++ library support
7226
 
        ld_shlibs_CXX=no
7227
 
        ;;
 
21083
        # FIXME: insert proper C++ library support
 
21084
        ld_shlibs_CXX=no
 
21085
        ;;
7228
21086
      aCC)
7229
 
        case $host_os in
7230
 
        hpux9*)
7231
 
            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'
7232
 
          ;;
7233
 
      *)
7234
 
          if test "$host_cpu" = ia64; then
7235
 
            archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
7236
 
          else
7237
 
            archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7238
 
          fi
7239
 
          ;;
 
21087
        case "$host_cpu" in
 
21088
        hppa*64*|ia64*)
 
21089
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
21090
          ;;
 
21091
        *)
 
21092
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
21093
          ;;
7240
21094
        esac
7241
 
        # Commands to make compiler produce verbose output that lists
7242
 
        # what "hidden" libraries, object files and flags are used when
7243
 
        # linking a shared library.
7244
 
        #
7245
 
        # There doesn't appear to be a way to prevent this compiler from
7246
 
        # explicitly linking system object files so we need to strip them
7247
 
        # from the output so that they don't get included in the library
7248
 
        # dependencies.
7249
 
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7250
 
        ;;
 
21095
        # Commands to make compiler produce verbose output that lists
 
21096
        # what "hidden" libraries, object files and flags are used when
 
21097
        # linking a shared library.
 
21098
        #
 
21099
        # There doesn't appear to be a way to prevent this compiler from
 
21100
        # explicitly linking system object files so we need to strip them
 
21101
        # from the output so that they don't get included in the library
 
21102
        # dependencies.
 
21103
        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'
 
21104
        ;;
7251
21105
      *)
7252
 
        if test $GXX = yes; then
 
21106
        if test "$GXX" = yes; then
7253
21107
          if test $with_gnu_ld = no; then
7254
 
            case "$host_os" in
7255
 
            hpux9*)
7256
 
                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'
7257
 
                ;;
7258
 
          *)
7259
 
                if test "$host_cpu" = ia64; then
7260
 
                  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
7261
 
                else
7262
 
                  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'
7263
 
                fi
7264
 
                ;;
 
21108
            case "$host_cpu" in
 
21109
            ia64*|hppa*64*)
 
21110
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
21111
              ;;
 
21112
            *)
 
21113
              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'
 
21114
              ;;
7265
21115
            esac
7266
21116
          fi
7267
21117
        else
7268
21118
          # FIXME: insert proper C++ library support
7269
 
          ld_shlibs_CXX=no
 
21119
          ld_shlibs_CXX=no
7270
21120
        fi
7271
 
        ;;
 
21121
        ;;
7272
21122
    esac
7273
21123
    ;;
7274
21124
  irix5* | irix6*)
7275
21125
    case $cc_basename in
7276
21126
      CC)
7277
 
        # SGI C++
7278
 
        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 ${objdir}/so_locations -o $lib'
 
21127
        # SGI C++
 
21128
        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 ${objdir}/so_locations -o $lib'
7279
21129
 
7280
21130
        # Archives containing C++ object files must be created using
7281
21131
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
7284
21134
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
7285
21135
        ;;
7286
21136
      *)
7287
 
        if test "$GXX" = yes; then
7288
 
          if test "$with_gnu_ld" = no; then
7289
 
            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}${objdir}/so_locations -o $lib'
7290
 
          else
7291
 
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
7292
 
          fi
7293
 
        fi
7294
 
        link_all_deplibs_CXX=yes
7295
 
        ;;
 
21137
        if test "$GXX" = yes; then
 
21138
          if test "$with_gnu_ld" = no; then
 
21139
            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}${objdir}/so_locations -o $lib'
 
21140
          else
 
21141
            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'
 
21142
          fi
 
21143
        fi
 
21144
        link_all_deplibs_CXX=yes
 
21145
        ;;
7296
21146
    esac
7297
21147
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
7298
21148
    hardcode_libdir_separator_CXX=:
7300
21150
  linux*)
7301
21151
    case $cc_basename in
7302
21152
      KCC)
7303
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
7304
 
 
7305
 
        # KCC will only create a shared library if the output file
7306
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
7307
 
        # to its proper name (with version) after linking.
7308
 
        archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7309
 
        archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
7310
 
 
7311
 
        # Commands to make compiler produce verbose output that lists
7312
 
        # what "hidden" libraries, object files and flags are used when
7313
 
        # linking a shared library.
7314
 
        #
7315
 
        # There doesn't appear to be a way to prevent this compiler from
7316
 
        # explicitly linking system object files so we need to strip them
7317
 
        # from the output so that they don't get included in the library
7318
 
        # dependencies.
7319
 
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7320
 
 
7321
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
7322
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
21153
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
21154
 
 
21155
        # KCC will only create a shared library if the output file
 
21156
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
21157
        # to its proper name (with version) after linking.
 
21158
        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'
 
21159
        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'
 
21160
        # Commands to make compiler produce verbose output that lists
 
21161
        # what "hidden" libraries, object files and flags are used when
 
21162
        # linking a shared library.
 
21163
        #
 
21164
        # There doesn't appear to be a way to prevent this compiler from
 
21165
        # explicitly linking system object files so we need to strip them
 
21166
        # from the output so that they don't get included in the library
 
21167
        # dependencies.
 
21168
        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'
 
21169
 
 
21170
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
21171
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
7323
21172
 
7324
21173
        # Archives containing C++ object files must be created using
7325
21174
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
7326
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
7327
 
        ;;
 
21175
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
21176
        ;;
 
21177
      icpc)
 
21178
        # Intel C++
 
21179
        with_gnu_ld=yes
 
21180
        archive_cmds_need_lc_CXX=no
 
21181
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
21182
        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'
 
21183
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
21184
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
21185
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
21186
        ;;
7328
21187
      cxx)
7329
 
        # Compaq C++
7330
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7331
 
        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'
7332
 
 
7333
 
        runpath_var=LD_RUN_PATH
7334
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
7335
 
        hardcode_libdir_separator_CXX=:
7336
 
 
7337
 
        # Commands to make compiler produce verbose output that lists
7338
 
        # what "hidden" libraries, object files and flags are used when
7339
 
        # linking a shared library.
7340
 
        #
7341
 
        # There doesn't appear to be a way to prevent this compiler from
7342
 
        # explicitly linking system object files so we need to strip them
7343
 
        # from the output so that they don't get included in the library
7344
 
        # dependencies.
7345
 
        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'
7346
 
        ;;
 
21188
        # Compaq C++
 
21189
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
21190
        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'
 
21191
 
 
21192
        runpath_var=LD_RUN_PATH
 
21193
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
21194
        hardcode_libdir_separator_CXX=:
 
21195
 
 
21196
        # Commands to make compiler produce verbose output that lists
 
21197
        # what "hidden" libraries, object files and flags are used when
 
21198
        # linking a shared library.
 
21199
        #
 
21200
        # There doesn't appear to be a way to prevent this compiler from
 
21201
        # explicitly linking system object files so we need to strip them
 
21202
        # from the output so that they don't get included in the library
 
21203
        # dependencies.
 
21204
        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'
 
21205
        ;;
7347
21206
    esac
7348
21207
    ;;
7349
21208
  lynxos*)
7357
21216
  mvs*)
7358
21217
    case $cc_basename in
7359
21218
      cxx)
7360
 
        # FIXME: insert proper C++ library support
7361
 
        ld_shlibs_CXX=no
7362
 
        ;;
 
21219
        # FIXME: insert proper C++ library support
 
21220
        ld_shlibs_CXX=no
 
21221
        ;;
7363
21222
      *)
7364
 
        # FIXME: insert proper C++ library support
7365
 
        ld_shlibs_CXX=no
7366
 
        ;;
 
21223
        # FIXME: insert proper C++ library support
 
21224
        ld_shlibs_CXX=no
 
21225
        ;;
7367
21226
    esac
7368
21227
    ;;
7369
 
  netbsd*)
7370
 
    # NetBSD uses g++ - do we need to do anything?
 
21228
  netbsd* | knetbsd*-gnu)
 
21229
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
21230
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
21231
      wlarc=
 
21232
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
21233
      hardcode_direct_CXX=yes
 
21234
      hardcode_shlibpath_var_CXX=no
 
21235
    fi
 
21236
    # Workaround some broken pre-1.5 toolchains
 
21237
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7371
21238
    ;;
7372
21239
  osf3*)
7373
21240
    case $cc_basename in
7374
21241
      KCC)
7375
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
7376
 
 
7377
 
        # KCC will only create a shared library if the output file
7378
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
7379
 
        # to its proper name (with version) after linking.
7380
 
        archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7381
 
 
7382
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
7383
 
        hardcode_libdir_separator_CXX=:
 
21242
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
21243
 
 
21244
        # KCC will only create a shared library if the output file
 
21245
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
21246
        # to its proper name (with version) after linking.
 
21247
        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'
 
21248
 
 
21249
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
21250
        hardcode_libdir_separator_CXX=:
7384
21251
 
7385
21252
        # Archives containing C++ object files must be created using
7386
21253
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
7387
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
21254
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
7388
21255
 
7389
 
        ;;
 
21256
        ;;
7390
21257
      RCC)
7391
 
        # Rational C++ 2.4.1
7392
 
        # FIXME: insert proper C++ library support
7393
 
        ld_shlibs_CXX=no
7394
 
        ;;
 
21258
        # Rational C++ 2.4.1
 
21259
        # FIXME: insert proper C++ library support
 
21260
        ld_shlibs_CXX=no
 
21261
        ;;
7395
21262
      cxx)
7396
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
7397
 
        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 ${objdir}/so_locations -o $lib'
7398
 
 
7399
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
7400
 
        hardcode_libdir_separator_CXX=:
7401
 
 
7402
 
        # Commands to make compiler produce verbose output that lists
7403
 
        # what "hidden" libraries, object files and flags are used when
7404
 
        # linking a shared library.
7405
 
        #
7406
 
        # There doesn't appear to be a way to prevent this compiler from
7407
 
        # explicitly linking system object files so we need to strip them
7408
 
        # from the output so that they don't get included in the library
7409
 
        # dependencies.
7410
 
        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'
7411
 
        ;;
 
21263
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
21264
        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 ${objdir}/so_locations -o $lib'
 
21265
 
 
21266
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
21267
        hardcode_libdir_separator_CXX=:
 
21268
 
 
21269
        # Commands to make compiler produce verbose output that lists
 
21270
        # what "hidden" libraries, object files and flags are used when
 
21271
        # linking a shared library.
 
21272
        #
 
21273
        # There doesn't appear to be a way to prevent this compiler from
 
21274
        # explicitly linking system object files so we need to strip them
 
21275
        # from the output so that they don't get included in the library
 
21276
        # dependencies.
 
21277
        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'
 
21278
        ;;
7412
21279
      *)
7413
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7414
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
7415
 
          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}${objdir}/so_locations -o $lib'
7416
 
 
7417
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
7418
 
          hardcode_libdir_separator_CXX=:
7419
 
 
7420
 
          # Commands to make compiler produce verbose output that lists
7421
 
          # what "hidden" libraries, object files and flags are used when
7422
 
          # linking a shared library.
7423
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
 
21280
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
21281
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
21282
          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}${objdir}/so_locations -o $lib'
 
21283
 
 
21284
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
21285
          hardcode_libdir_separator_CXX=:
 
21286
 
 
21287
          # Commands to make compiler produce verbose output that lists
 
21288
          # what "hidden" libraries, object files and flags are used when
 
21289
          # linking a shared library.
 
21290
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
7424
21291
 
7425
21292
        else
7426
 
          # FIXME: insert proper C++ library support
7427
 
          ld_shlibs_CXX=no
7428
 
        fi
7429
 
        ;;
 
21293
          # FIXME: insert proper C++ library support
 
21294
          ld_shlibs_CXX=no
 
21295
        fi
 
21296
        ;;
7430
21297
    esac
7431
21298
    ;;
7432
21299
  osf4* | osf5*)
7433
21300
    case $cc_basename in
7434
21301
      KCC)
7435
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
7436
 
 
7437
 
        # KCC will only create a shared library if the output file
7438
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
7439
 
        # to its proper name (with version) after linking.
7440
 
        archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7441
 
 
7442
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
7443
 
        hardcode_libdir_separator_CXX=:
 
21302
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
21303
 
 
21304
        # KCC will only create a shared library if the output file
 
21305
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
21306
        # to its proper name (with version) after linking.
 
21307
        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'
 
21308
 
 
21309
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
21310
        hardcode_libdir_separator_CXX=:
7444
21311
 
7445
21312
        # Archives containing C++ object files must be created using
7446
21313
        # the KAI C++ compiler.
7447
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
7448
 
        ;;
 
21314
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
21315
        ;;
7449
21316
      RCC)
7450
 
        # Rational C++ 2.4.1
7451
 
        # FIXME: insert proper C++ library support
7452
 
        ld_shlibs_CXX=no
7453
 
        ;;
 
21317
        # Rational C++ 2.4.1
 
21318
        # FIXME: insert proper C++ library support
 
21319
        ld_shlibs_CXX=no
 
21320
        ;;
7454
21321
      cxx)
7455
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
7456
 
        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 ${objdir}/so_locations -o $lib'
7457
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
 
21322
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
21323
        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 ${objdir}/so_locations -o $lib'
 
21324
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7458
21325
          echo "-hidden">> $lib.exp~
7459
21326
          $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 $objdir/so_locations -o $lib~
7460
21327
          $rm $lib.exp'
7461
21328
 
7462
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
7463
 
        hardcode_libdir_separator_CXX=:
 
21329
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
21330
        hardcode_libdir_separator_CXX=:
7464
21331
 
7465
 
        # Commands to make compiler produce verbose output that lists
7466
 
        # what "hidden" libraries, object files and flags are used when
7467
 
        # linking a shared library.
7468
 
        #
7469
 
        # There doesn't appear to be a way to prevent this compiler from
7470
 
        # explicitly linking system object files so we need to strip them
7471
 
        # from the output so that they don't get included in the library
7472
 
        # dependencies.
7473
 
        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'
7474
 
        ;;
 
21332
        # Commands to make compiler produce verbose output that lists
 
21333
        # what "hidden" libraries, object files and flags are used when
 
21334
        # linking a shared library.
 
21335
        #
 
21336
        # There doesn't appear to be a way to prevent this compiler from
 
21337
        # explicitly linking system object files so we need to strip them
 
21338
        # from the output so that they don't get included in the library
 
21339
        # dependencies.
 
21340
        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'
 
21341
        ;;
7475
21342
      *)
7476
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7477
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
7478
 
         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}${objdir}/so_locations -o $lib'
7479
 
 
7480
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
7481
 
          hardcode_libdir_separator_CXX=:
7482
 
 
7483
 
          # Commands to make compiler produce verbose output that lists
7484
 
          # what "hidden" libraries, object files and flags are used when
7485
 
          # linking a shared library.
7486
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
 
21343
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
21344
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
21345
         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}${objdir}/so_locations -o $lib'
 
21346
 
 
21347
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
21348
          hardcode_libdir_separator_CXX=:
 
21349
 
 
21350
          # Commands to make compiler produce verbose output that lists
 
21351
          # what "hidden" libraries, object files and flags are used when
 
21352
          # linking a shared library.
 
21353
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
7487
21354
 
7488
21355
        else
7489
 
          # FIXME: insert proper C++ library support
7490
 
          ld_shlibs_CXX=no
 
21356
          # FIXME: insert proper C++ library support
 
21357
          ld_shlibs_CXX=no
7491
21358
        fi
7492
 
        ;;
 
21359
        ;;
7493
21360
    esac
7494
21361
    ;;
7495
21362
  psos*)
7497
21364
    ld_shlibs_CXX=no
7498
21365
    ;;
7499
21366
  sco*)
 
21367
    archive_cmds_need_lc_CXX=no
7500
21368
    case $cc_basename in
7501
21369
      CC)
7502
 
        # FIXME: insert proper C++ library support
7503
 
        ld_shlibs_CXX=no
7504
 
        ;;
 
21370
        # FIXME: insert proper C++ library support
 
21371
        ld_shlibs_CXX=no
 
21372
        ;;
7505
21373
      *)
7506
 
        # FIXME: insert proper C++ library support
7507
 
        ld_shlibs_CXX=no
7508
 
        ;;
 
21374
        # FIXME: insert proper C++ library support
 
21375
        ld_shlibs_CXX=no
 
21376
        ;;
7509
21377
    esac
7510
21378
    ;;
7511
21379
  sunos4*)
7512
21380
    case $cc_basename in
7513
21381
      CC)
7514
 
        # Sun C++ 4.x
7515
 
        # FIXME: insert proper C++ library support
7516
 
        ld_shlibs_CXX=no
7517
 
        ;;
 
21382
        # Sun C++ 4.x
 
21383
        # FIXME: insert proper C++ library support
 
21384
        ld_shlibs_CXX=no
 
21385
        ;;
7518
21386
      lcc)
7519
 
        # Lucid
7520
 
        # FIXME: insert proper C++ library support
7521
 
        ld_shlibs_CXX=no
7522
 
        ;;
 
21387
        # Lucid
 
21388
        # FIXME: insert proper C++ library support
 
21389
        ld_shlibs_CXX=no
 
21390
        ;;
7523
21391
      *)
7524
 
        # FIXME: insert proper C++ library support
7525
 
        ld_shlibs_CXX=no
7526
 
        ;;
 
21392
        # FIXME: insert proper C++ library support
 
21393
        ld_shlibs_CXX=no
 
21394
        ;;
7527
21395
    esac
7528
21396
    ;;
7529
21397
  solaris*)
7530
21398
    case $cc_basename in
7531
21399
      CC)
7532
21400
        # Sun C++ 4.2, 5.x and Centerline C++
7533
 
        no_undefined_flag_CXX=' -zdefs'
7534
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7535
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7536
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
7537
 
 
7538
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
7539
 
        hardcode_shlibpath_var_CXX=no
7540
 
        case $host_os in
7541
 
          solaris2.0-5 | solaris2.0-5.*) ;;
7542
 
          *)
7543
 
            # The C++ compiler is used as linker so we must use $wl
7544
 
            # flag to pass the commands to the underlying system
7545
 
            # linker.
7546
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
7547
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7548
 
            ;;
7549
 
        esac
7550
 
        link_all_deplibs_CXX=yes
7551
 
 
7552
 
        # Commands to make compiler produce verbose output that lists
7553
 
        # what "hidden" libraries, object files and flags are used when
7554
 
        # linking a shared library.
7555
 
        #
7556
 
        # There doesn't appear to be a way to prevent this compiler from
7557
 
        # explicitly linking system object files so we need to strip them
7558
 
        # from the output so that they don't get included in the library
7559
 
        # dependencies.
7560
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
21401
        no_undefined_flag_CXX=' -zdefs'
 
21402
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
21403
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
21404
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
21405
 
 
21406
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
21407
        hardcode_shlibpath_var_CXX=no
 
21408
        case $host_os in
 
21409
          solaris2.0-5 | solaris2.0-5.*) ;;
 
21410
          *)
 
21411
            # The C++ compiler is used as linker so we must use $wl
 
21412
            # flag to pass the commands to the underlying system
 
21413
            # linker.
 
21414
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
21415
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
21416
            ;;
 
21417
        esac
 
21418
        link_all_deplibs_CXX=yes
 
21419
 
 
21420
        # Commands to make compiler produce verbose output that lists
 
21421
        # what "hidden" libraries, object files and flags are used when
 
21422
        # linking a shared library.
 
21423
        #
 
21424
        # There doesn't appear to be a way to prevent this compiler from
 
21425
        # explicitly linking system object files so we need to strip them
 
21426
        # from the output so that they don't get included in the library
 
21427
        # dependencies.
 
21428
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7561
21429
 
7562
21430
        # Archives containing C++ object files must be created using
7563
21431
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
7564
 
        # necessary to make sure instantiated templates are included
7565
 
        # in the archive.
7566
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
7567
 
        ;;
 
21432
        # necessary to make sure instantiated templates are included
 
21433
        # in the archive.
 
21434
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
21435
        ;;
7568
21436
      gcx)
7569
 
        # Green Hills C++ Compiler
7570
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
21437
        # Green Hills C++ Compiler
 
21438
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7571
21439
 
7572
 
        # The C++ compiler must be used to create the archive.
7573
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7574
 
        ;;
 
21440
        # The C++ compiler must be used to create the archive.
 
21441
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
21442
        ;;
7575
21443
      *)
7576
 
        # GNU C++ compiler with Solaris linker
7577
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
21444
        # GNU C++ compiler with Solaris linker
 
21445
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7578
21446
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
7579
 
          if $CC --version | egrep -v '^2\.7' > /dev/null; then
7580
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
7581
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7582
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
7583
 
 
7584
 
            # Commands to make compiler produce verbose output that lists
7585
 
            # what "hidden" libraries, object files and flags are used when
7586
 
            # linking a shared library.
7587
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
7588
 
          else
7589
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
7590
 
            # platform.
7591
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
7592
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7593
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
7594
 
 
7595
 
            # Commands to make compiler produce verbose output that lists
7596
 
            # what "hidden" libraries, object files and flags are used when
7597
 
            # linking a shared library.
7598
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
7599
 
          fi
7600
 
 
7601
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
7602
 
        fi
7603
 
        ;;
 
21447
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
21448
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
21449
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
21450
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
21451
 
 
21452
            # Commands to make compiler produce verbose output that lists
 
21453
            # what "hidden" libraries, object files and flags are used when
 
21454
            # linking a shared library.
 
21455
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
21456
          else
 
21457
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
21458
            # platform.
 
21459
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
21460
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
21461
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
21462
 
 
21463
            # Commands to make compiler produce verbose output that lists
 
21464
            # what "hidden" libraries, object files and flags are used when
 
21465
            # linking a shared library.
 
21466
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
21467
          fi
 
21468
 
 
21469
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
21470
        fi
 
21471
        ;;
7604
21472
    esac
7605
21473
    ;;
7606
21474
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7607
 
    archive_cmds_need_lc=no
 
21475
    archive_cmds_need_lc_CXX=no
7608
21476
    ;;
7609
21477
  tandem*)
7610
21478
    case $cc_basename in
7611
21479
      NCC)
7612
 
        # NonStop-UX NCC 3.20
7613
 
        # FIXME: insert proper C++ library support
7614
 
        ld_shlibs_CXX=no
7615
 
        ;;
 
21480
        # NonStop-UX NCC 3.20
 
21481
        # FIXME: insert proper C++ library support
 
21482
        ld_shlibs_CXX=no
 
21483
        ;;
7616
21484
      *)
7617
 
        # FIXME: insert proper C++ library support
7618
 
        ld_shlibs_CXX=no
7619
 
        ;;
 
21485
        # FIXME: insert proper C++ library support
 
21486
        ld_shlibs_CXX=no
 
21487
        ;;
7620
21488
    esac
7621
21489
    ;;
7622
21490
  vxworks*)
7628
21496
    ld_shlibs_CXX=no
7629
21497
    ;;
7630
21498
esac
7631
 
echo "$as_me:7631: result: $ld_shlibs_CXX" >&5
 
21499
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
7632
21500
echo "${ECHO_T}$ld_shlibs_CXX" >&6
7633
21501
test "$ld_shlibs_CXX" = no && can_build_shared=no
7634
21502
 
7635
 
# Figure out "hidden" C++ library dependencies from verbose
7636
 
# compiler output whening linking a shared library.
 
21503
GCC_CXX="$GXX"
 
21504
LD_CXX="$LD"
 
21505
 
 
21506
 
7637
21507
cat > conftest.$ac_ext <<EOF
7638
21508
class Foo
7639
21509
{
7644
21514
};
7645
21515
EOF
7646
21516
 
7647
 
if { (eval echo "$as_me:7647: \"$ac_compile\"") >&5
 
21517
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7648
21518
  (eval $ac_compile) 2>&5
7649
21519
  ac_status=$?
7650
 
  echo "$as_me:7650: \$? = $ac_status" >&5
 
21520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651
21521
  (exit $ac_status); }; then
7652
21522
  # Parse the compiler output and extract the necessary
7653
21523
  # objects, libraries and library flags.
7668
21538
       # Some compilers place space between "-{L,R}" and the path.
7669
21539
       # Remove the space.
7670
21540
       if test $p = "-L" \
7671
 
          || test $p = "-R"; then
7672
 
         prev=$p
7673
 
         continue
 
21541
          || test $p = "-R"; then
 
21542
         prev=$p
 
21543
         continue
7674
21544
       else
7675
 
         prev=
 
21545
         prev=
7676
21546
       fi
7677
21547
 
7678
21548
       if test "$pre_test_object_deps_done" = no; then
7679
 
         case $p in
 
21549
         case $p in
7680
21550
         -L* | -R*)
7681
21551
           # Internal compiler library paths should come after those
7682
21552
           # provided the user.  The postdeps already come after the
7683
21553
           # user supplied libs so there is no need to process them.
7684
 
           if test -z "$compiler_lib_search_path_CXX"; then
7685
 
             compiler_lib_search_path_CXX="${prev}${p}"
7686
 
           else
7687
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
7688
 
           fi
7689
 
           ;;
7690
 
         # The "-l" case would never come before the object being
7691
 
         # linked, so don't bother handling this case.
7692
 
         esac
 
21554
           if test -z "$compiler_lib_search_path_CXX"; then
 
21555
             compiler_lib_search_path_CXX="${prev}${p}"
 
21556
           else
 
21557
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
21558
           fi
 
21559
           ;;
 
21560
         # The "-l" case would never come before the object being
 
21561
         # linked, so don't bother handling this case.
 
21562
         esac
7693
21563
       else
7694
 
         if test -z "$postdeps_CXX"; then
7695
 
           postdeps_CXX="${prev}${p}"
7696
 
         else
7697
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
7698
 
         fi
 
21564
         if test -z "$postdeps_CXX"; then
 
21565
           postdeps_CXX="${prev}${p}"
 
21566
         else
 
21567
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
21568
         fi
7699
21569
       fi
7700
21570
       ;;
7701
21571
 
7703
21573
       # This assumes that the test object file only shows up
7704
21574
       # once in the compiler output.
7705
21575
       if test "$p" = "conftest.$objext"; then
7706
 
         pre_test_object_deps_done=yes
7707
 
         continue
 
21576
         pre_test_object_deps_done=yes
 
21577
         continue
7708
21578
       fi
7709
21579
 
7710
21580
       if test "$pre_test_object_deps_done" = no; then
7711
 
         if test -z "$predep_objects_CXX"; then
7712
 
           predep_objects_CXX="$p"
7713
 
         else
7714
 
           predep_objects_CXX="$predep_objects_CXX $p"
7715
 
         fi
 
21581
         if test -z "$predep_objects_CXX"; then
 
21582
           predep_objects_CXX="$p"
 
21583
         else
 
21584
           predep_objects_CXX="$predep_objects_CXX $p"
 
21585
         fi
7716
21586
       else
7717
 
         if test -z "$postdep_objects_CXX"; then
7718
 
           postdep_objects_CXX="$p"
7719
 
         else
7720
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
7721
 
         fi
 
21587
         if test -z "$postdep_objects_CXX"; then
 
21588
           postdep_objects_CXX="$p"
 
21589
         else
 
21590
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
21591
         fi
7722
21592
       fi
7723
21593
       ;;
7724
21594
 
7728
21598
  done
7729
21599
 
7730
21600
  # Clean up.
7731
 
  rm -f a.out
 
21601
  rm -f a.out a.exe
7732
21602
else
7733
 
  echo "ltcf-cxx.sh: error: problem compiling test program"
 
21603
  echo "libtool.m4: error: problem compiling CXX test program"
7734
21604
fi
7735
21605
 
7736
21606
$rm -f confest.$objext
7737
21607
 
7738
21608
case " $postdeps_CXX " in
7739
21609
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
7740
 
*) archive_cmds_need_lc_CXX=yes ;;
7741
21610
esac
7742
21611
 
7743
 
GCC_CXX="$GXX"
7744
 
LD_CXX="$LD"
7745
 
 
7746
21612
lt_prog_compiler_wl_CXX=
7747
21613
lt_prog_compiler_pic_CXX=
7748
21614
lt_prog_compiler_static_CXX=
7749
21615
 
 
21616
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
21617
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
21618
 
7750
21619
  # C++ specific cases for pic, static, wl, etc.
7751
21620
  if test "$GXX" = yes; then
7752
21621
    lt_prog_compiler_wl_CXX='-Wl,'
7756
21625
    aix*)
7757
21626
      # All AIX code is PIC.
7758
21627
      if test "$host_cpu" = ia64; then
7759
 
        # AIX 5 now supports IA64 processor
7760
 
        lt_prog_compiler_static_CXX='-Bstatic'
 
21628
        # AIX 5 now supports IA64 processor
 
21629
        lt_prog_compiler_static_CXX='-Bstatic'
7761
21630
      fi
7762
21631
      ;;
7763
21632
    amigaos*)
7766
21635
      # like `-m68040'.
7767
21636
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
7768
21637
      ;;
7769
 
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
 
21638
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7770
21639
      # PIC is the default for these OSes.
7771
21640
      ;;
7772
 
    cygwin* | mingw* | os2*)
 
21641
    mingw* | os2* | pw32*)
7773
21642
      # This hack is so that the source file can tell whether it is being
7774
21643
      # built for inclusion in a dll (and should export symbols for example).
7775
21644
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
7785
21654
      ;;
7786
21655
    sysv4*MP*)
7787
21656
      if test -d /usr/nec; then
7788
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
21657
        lt_prog_compiler_pic_CXX=-Kconform_pic
7789
21658
      fi
7790
21659
      ;;
7791
21660
    hpux*)
7792
 
      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
7793
 
      if test "$host_cpu" != ia64; then
7794
 
        lt_prog_compiler_pic_CXX='-fPIC'
7795
 
      fi
 
21661
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
21662
      # not for PA HP-UX.
 
21663
      case "$host_cpu" in
 
21664
      hppa*64*|ia64*)
 
21665
        ;;
 
21666
      *)
 
21667
        lt_prog_compiler_pic_CXX='-fPIC'
 
21668
        ;;
 
21669
      esac
7796
21670
      ;;
7797
21671
    *)
7798
21672
      lt_prog_compiler_pic_CXX='-fPIC'
7801
21675
  else
7802
21676
    case $host_os in
7803
21677
      aix4* | aix5*)
7804
 
        # All AIX code is PIC.
7805
 
        if test "$host_cpu" = ia64; then
7806
 
          # AIX 5 now supports IA64 processor
7807
 
          lt_prog_compiler_static_CXX='-Bstatic'
7808
 
        else
7809
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
7810
 
        fi
7811
 
        ;;
 
21678
        # All AIX code is PIC.
 
21679
        if test "$host_cpu" = ia64; then
 
21680
          # AIX 5 now supports IA64 processor
 
21681
          lt_prog_compiler_static_CXX='-Bstatic'
 
21682
        else
 
21683
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
21684
        fi
 
21685
        ;;
7812
21686
      chorus*)
7813
 
        case $cc_basename in
7814
 
        cxch68)
7815
 
          # Green Hills C++ Compiler
7816
 
          # _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"
7817
 
          ;;
7818
 
        esac
7819
 
        ;;
 
21687
        case $cc_basename in
 
21688
        cxch68)
 
21689
          # Green Hills C++ Compiler
 
21690
          # _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"
 
21691
          ;;
 
21692
        esac
 
21693
        ;;
7820
21694
      dgux*)
7821
 
        case $cc_basename in
7822
 
          ec++)
7823
 
            lt_prog_compiler_pic_CXX='-KPIC'
7824
 
            ;;
7825
 
          ghcx)
7826
 
            # Green Hills C++ Compiler
7827
 
            lt_prog_compiler_pic_CXX='-pic'
7828
 
            ;;
7829
 
          *)
7830
 
            ;;
7831
 
        esac
7832
 
        ;;
7833
 
      freebsd*)
7834
 
        # FreeBSD uses GNU C++
7835
 
        ;;
 
21695
        case $cc_basename in
 
21696
          ec++)
 
21697
            lt_prog_compiler_pic_CXX='-KPIC'
 
21698
            ;;
 
21699
          ghcx)
 
21700
            # Green Hills C++ Compiler
 
21701
            lt_prog_compiler_pic_CXX='-pic'
 
21702
            ;;
 
21703
          *)
 
21704
            ;;
 
21705
        esac
 
21706
        ;;
 
21707
      freebsd* | kfreebsd*-gnu)
 
21708
        # FreeBSD uses GNU C++
 
21709
        ;;
7836
21710
      hpux9* | hpux10* | hpux11*)
7837
 
        case $cc_basename in
7838
 
          CC)
7839
 
            lt_prog_compiler_wl_CXX='-Wl,'
7840
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7841
 
            if test "$host_cpu" != ia64; then
7842
 
              lt_prog_compiler_pic_CXX='+Z'
7843
 
            fi
7844
 
            ;;
7845
 
          aCC)
7846
 
            lt_prog_compiler_wl_CXX='-Wl,'
7847
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
7848
 
            if test "$host_cpu" != ia64; then
7849
 
              lt_prog_compiler_pic_CXX='+Z'
7850
 
            fi
7851
 
            ;;
7852
 
          *)
7853
 
            ;;
7854
 
        esac
7855
 
        ;;
7856
 
      irix5* | irix6*)
7857
 
        case $cc_basename in
7858
 
          CC)
7859
 
            lt_prog_compiler_wl_CXX='-Wl,'
7860
 
            lt_prog_compiler_static_CXX='-non_shared'
 
21711
        case $cc_basename in
 
21712
          CC)
 
21713
            lt_prog_compiler_wl_CXX='-Wl,'
 
21714
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
21715
            if test "$host_cpu" != ia64; then
 
21716
              lt_prog_compiler_pic_CXX='+Z'
 
21717
            fi
 
21718
            ;;
 
21719
          aCC)
 
21720
            lt_prog_compiler_wl_CXX='-Wl,'
 
21721
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
21722
            case "$host_cpu" in
 
21723
            hppa*64*|ia64*)
 
21724
              # +Z the default
 
21725
              ;;
 
21726
            *)
 
21727
              lt_prog_compiler_pic_CXX='+Z'
 
21728
              ;;
 
21729
            esac
 
21730
            ;;
 
21731
          *)
 
21732
            ;;
 
21733
        esac
 
21734
        ;;
 
21735
      irix5* | irix6* | nonstopux*)
 
21736
        case $cc_basename in
 
21737
          CC)
 
21738
            lt_prog_compiler_wl_CXX='-Wl,'
 
21739
            lt_prog_compiler_static_CXX='-non_shared'
7861
21740
            # CC pic flag -KPIC is the default.
7862
 
            ;;
7863
 
          *)
7864
 
            ;;
7865
 
        esac
7866
 
        ;;
 
21741
            ;;
 
21742
          *)
 
21743
            ;;
 
21744
        esac
 
21745
        ;;
7867
21746
      linux*)
7868
 
        case $cc_basename in
7869
 
          KCC)
7870
 
            # KAI C++ Compiler
7871
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
7872
 
            lt_prog_compiler_pic_CXX='-fPIC'
7873
 
            ;;
7874
 
          cxx)
7875
 
            # Compaq C++
7876
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
7877
 
            # Linux and Compaq Tru64 Unix objects are PIC.
7878
 
            lt_prog_compiler_pic_CXX=
7879
 
            lt_prog_compiler_static_CXX='-non_shared'
7880
 
            ;;
7881
 
          *)
7882
 
            ;;
7883
 
        esac
7884
 
        ;;
 
21747
        case $cc_basename in
 
21748
          KCC)
 
21749
            # KAI C++ Compiler
 
21750
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
21751
            lt_prog_compiler_pic_CXX='-fPIC'
 
21752
            ;;
 
21753
          icpc)
 
21754
            # Intel C++
 
21755
            lt_prog_compiler_wl_CXX='-Wl,'
 
21756
            lt_prog_compiler_pic_CXX='-KPIC'
 
21757
            lt_prog_compiler_static_CXX='-static'
 
21758
            ;;
 
21759
          cxx)
 
21760
            # Compaq C++
 
21761
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
21762
            # Linux and Compaq Tru64 Unix objects are PIC.
 
21763
            lt_prog_compiler_pic_CXX=
 
21764
            lt_prog_compiler_static_CXX='-non_shared'
 
21765
            ;;
 
21766
          *)
 
21767
            ;;
 
21768
        esac
 
21769
        ;;
7885
21770
      lynxos*)
7886
 
        ;;
 
21771
        ;;
7887
21772
      m88k*)
7888
 
        ;;
 
21773
        ;;
7889
21774
      mvs*)
7890
 
        case $cc_basename in
7891
 
          cxx)
7892
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
7893
 
            ;;
7894
 
          *)
7895
 
            ;;
7896
 
        esac
7897
 
        ;;
7898
 
      netbsd*)
7899
 
        ;;
 
21775
        case $cc_basename in
 
21776
          cxx)
 
21777
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
21778
            ;;
 
21779
          *)
 
21780
            ;;
 
21781
        esac
 
21782
        ;;
 
21783
      netbsd* | knetbsd*-gnu)
 
21784
        ;;
7900
21785
      osf3* | osf4* | osf5*)
7901
 
        case $cc_basename in
7902
 
          KCC)
7903
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
7904
 
            ;;
7905
 
          RCC)
7906
 
            # Rational C++ 2.4.1
7907
 
            lt_prog_compiler_pic_CXX='-pic'
7908
 
            ;;
7909
 
          cxx)
7910
 
            # Digital/Compaq C++
7911
 
            lt_prog_compiler_wl_CXX='-Wl,'
7912
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
7913
 
            # Linux and Compaq Tru64 Unix objects are PIC.
7914
 
            lt_prog_compiler_pic_CXX=
7915
 
            lt_prog_compiler_static_CXX='-non_shared'
7916
 
            ;;
7917
 
          *)
7918
 
            ;;
7919
 
        esac
7920
 
        ;;
 
21786
        case $cc_basename in
 
21787
          KCC)
 
21788
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
21789
            ;;
 
21790
          RCC)
 
21791
            # Rational C++ 2.4.1
 
21792
            lt_prog_compiler_pic_CXX='-pic'
 
21793
            ;;
 
21794
          cxx)
 
21795
            # Digital/Compaq C++
 
21796
            lt_prog_compiler_wl_CXX='-Wl,'
 
21797
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
21798
            # Linux and Compaq Tru64 Unix objects are PIC.
 
21799
            lt_prog_compiler_pic_CXX=
 
21800
            lt_prog_compiler_static_CXX='-non_shared'
 
21801
            ;;
 
21802
          *)
 
21803
            ;;
 
21804
        esac
 
21805
        ;;
7921
21806
      psos*)
7922
 
        ;;
 
21807
        ;;
7923
21808
      sco*)
7924
 
        case $cc_basename in
7925
 
          CC)
7926
 
            lt_prog_compiler_pic_CXX='-fPIC'
7927
 
            ;;
7928
 
          *)
7929
 
            ;;
7930
 
        esac
7931
 
        ;;
 
21809
        case $cc_basename in
 
21810
          CC)
 
21811
            lt_prog_compiler_pic_CXX='-fPIC'
 
21812
            ;;
 
21813
          *)
 
21814
            ;;
 
21815
        esac
 
21816
        ;;
7932
21817
      solaris*)
7933
 
        case $cc_basename in
7934
 
          CC)
7935
 
            # Sun C++ 4.2, 5.x and Centerline C++
7936
 
            lt_prog_compiler_pic_CXX='-KPIC'
7937
 
            lt_prog_compiler_static_CXX='-Bstatic'
7938
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
7939
 
            ;;
7940
 
          gcx)
7941
 
            # Green Hills C++ Compiler
7942
 
            lt_prog_compiler_pic_CXX='-PIC'
7943
 
            ;;
7944
 
          *)
7945
 
            ;;
7946
 
        esac
7947
 
        ;;
 
21818
        case $cc_basename in
 
21819
          CC)
 
21820
            # Sun C++ 4.2, 5.x and Centerline C++
 
21821
            lt_prog_compiler_pic_CXX='-KPIC'
 
21822
            lt_prog_compiler_static_CXX='-Bstatic'
 
21823
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
21824
            ;;
 
21825
          gcx)
 
21826
            # Green Hills C++ Compiler
 
21827
            lt_prog_compiler_pic_CXX='-PIC'
 
21828
            ;;
 
21829
          *)
 
21830
            ;;
 
21831
        esac
 
21832
        ;;
7948
21833
      sunos4*)
7949
 
        case $cc_basename in
7950
 
          CC)
7951
 
            # Sun C++ 4.x
7952
 
            lt_prog_compiler_pic_CXX='-pic'
7953
 
            lt_prog_compiler_static_CXX='-Bstatic'
7954
 
            ;;
7955
 
          lcc)
7956
 
            # Lucid
7957
 
            lt_prog_compiler_pic_CXX='-pic'
7958
 
            ;;
7959
 
          *)
7960
 
            ;;
7961
 
        esac
7962
 
        ;;
 
21834
        case $cc_basename in
 
21835
          CC)
 
21836
            # Sun C++ 4.x
 
21837
            lt_prog_compiler_pic_CXX='-pic'
 
21838
            lt_prog_compiler_static_CXX='-Bstatic'
 
21839
            ;;
 
21840
          lcc)
 
21841
            # Lucid
 
21842
            lt_prog_compiler_pic_CXX='-pic'
 
21843
            ;;
 
21844
          *)
 
21845
            ;;
 
21846
        esac
 
21847
        ;;
7963
21848
      tandem*)
7964
 
        case $cc_basename in
7965
 
          NCC)
7966
 
            # NonStop-UX NCC 3.20
7967
 
            lt_prog_compiler_pic_CXX='-KPIC'
7968
 
            ;;
7969
 
          *)
7970
 
            ;;
7971
 
        esac
7972
 
        ;;
 
21849
        case $cc_basename in
 
21850
          NCC)
 
21851
            # NonStop-UX NCC 3.20
 
21852
            lt_prog_compiler_pic_CXX='-KPIC'
 
21853
            ;;
 
21854
          *)
 
21855
            ;;
 
21856
        esac
 
21857
        ;;
7973
21858
      unixware*)
7974
 
        ;;
 
21859
        ;;
7975
21860
      vxworks*)
7976
 
        ;;
 
21861
        ;;
7977
21862
      *)
7978
 
        lt_prog_compiler_can_build_shared_CXX=no
7979
 
        ;;
 
21863
        lt_prog_compiler_can_build_shared_CXX=no
 
21864
        ;;
7980
21865
    esac
7981
21866
  fi
7982
21867
 
7983
 
echo "$as_me:7983: result: $lt_prog_compiler_pic_CXX" >&5
 
21868
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
7984
21869
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
7985
21870
 
7986
21871
#
7987
21872
# Check to make sure the PIC flag actually works.
7988
21873
#
7989
21874
if test -n "$lt_prog_compiler_pic_CXX"; then
7990
 
  echo "$as_me:7990: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
21875
 
 
21876
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
7991
21877
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
7992
21878
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
7993
21879
  echo $ECHO_N "(cached) $ECHO_C" >&6
7994
21880
else
7995
21881
  lt_prog_compiler_pic_works_CXX=no
7996
21882
  ac_outfile=conftest.$ac_objext
7997
 
   save_CFLAGS="$CFLAGS"
7998
 
   CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
7999
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8000
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
 
21883
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
21884
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
21885
   # Insert the option either (1) after the last *FLAGS variable, or
 
21886
   # (2) before a word containing "conftest.", or (3) at the end.
 
21887
   # Note that $ac_compile itself does not contain backslashes and begins
 
21888
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
21889
   # The option is referenced via a variable to avoid confusing sed.
 
21890
   lt_compile=`echo "$ac_compile" | $SED \
 
21891
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
21892
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
21893
   -e 's:$: $lt_compiler_flag:'`
 
21894
   (eval echo "\"\$as_me:21894: $lt_compile\"" >&5)
 
21895
   (eval "$lt_compile" 2>conftest.err)
 
21896
   ac_status=$?
 
21897
   cat conftest.err >&5
 
21898
   echo "$as_me:21898: \$? = $ac_status" >&5
 
21899
   if (exit $ac_status) && test -s "$ac_outfile"; then
8001
21900
     # The compiler can only warn and ignore the option if not recognized
8002
21901
     # So say no if there are warnings
8003
 
     if test -s conftest.err; then
8004
 
       # Append any errors to the config.log.
8005
 
       cat conftest.err 1>&5
8006
 
     else
 
21902
     if test ! -s conftest.err; then
8007
21903
       lt_prog_compiler_pic_works_CXX=yes
8008
21904
     fi
8009
21905
   fi
8010
21906
   $rm conftest*
8011
 
   CFLAGS="$save_CFLAGS"
8012
21907
 
8013
21908
fi
8014
 
echo "$as_me:8014: result: $lt_prog_compiler_pic_works_CXX" >&5
 
21909
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
8015
21910
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
8016
21911
 
8017
21912
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
8035
21930
    ;;
8036
21931
esac
8037
21932
 
8038
 
echo "$as_me:8038: checking if $compiler supports -c -o file.$ac_objext" >&5
 
21933
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8039
21934
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8040
21935
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
8041
21936
  echo $ECHO_N "(cached) $ECHO_C" >&6
8045
21940
   mkdir conftest
8046
21941
   cd conftest
8047
21942
   mkdir out
8048
 
   save_CXXFLAGS="$CXXFLAGS"
8049
 
                   CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
8050
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8051
 
 
8052
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
8053
 
   # that will create temporary files in the current directory regardless of
8054
 
   # the output directory.  Thus, making CWD read-only will cause this test
8055
 
   # to fail, enabling locking or at least warning the user not to do parallel
8056
 
   # builds.
8057
 
   chmod -w .
8058
 
 
8059
 
   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
 
21943
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
21944
 
 
21945
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
21946
   # Insert the option either (1) after the last *FLAGS variable, or
 
21947
   # (2) before a word containing "conftest.", or (3) at the end.
 
21948
   # Note that $ac_compile itself does not contain backslashes and begins
 
21949
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
21950
   lt_compile=`echo "$ac_compile" | $SED \
 
21951
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
21952
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
21953
   -e 's:$: $lt_compiler_flag:'`
 
21954
   (eval echo "\"\$as_me:21954: $lt_compile\"" >&5)
 
21955
   (eval "$lt_compile" 2>out/conftest.err)
 
21956
   ac_status=$?
 
21957
   cat out/conftest.err >&5
 
21958
   echo "$as_me:21958: \$? = $ac_status" >&5
 
21959
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8060
21960
   then
8061
21961
     # The compiler can only warn and ignore the option if not recognized
8062
21962
     # So say no if there are warnings
8063
 
     if test -s out/conftest.err; then
8064
 
       # Append any errors to the config.log.
8065
 
       cat out/conftest.err 1>&5
8066
 
     else
 
21963
     if test ! -s out/conftest.err; then
8067
21964
       lt_cv_prog_compiler_c_o_CXX=yes
8068
21965
     fi
8069
21966
   fi
8070
 
   CXXFLAGS="$save_CXXFLAGS"
8071
21967
   chmod u+w .
8072
 
   $rm conftest* out/*
8073
 
   rmdir out
 
21968
   $rm conftest*
 
21969
   # SGI C++ compiler will create directory out/ii_files/ for
 
21970
   # template instantiation
 
21971
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
21972
   $rm out/* && rmdir out
8074
21973
   cd ..
8075
21974
   rmdir conftest
8076
21975
   $rm conftest*
8077
21976
 
8078
21977
fi
8079
 
echo "$as_me:8079: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
21978
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
8080
21979
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
8081
21980
 
 
21981
 
8082
21982
hard_links="nottested"
8083
21983
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
8084
21984
  # do not overwrite the value of need_locks provided by the user
8085
 
  echo "$as_me:8085: checking if we can lock with hard links" >&5
 
21985
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8086
21986
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8087
21987
  hard_links=yes
8088
21988
  $rm conftest*
8090
21990
  touch conftest.a
8091
21991
  ln conftest.a conftest.b 2>&5 || hard_links=no
8092
21992
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8093
 
  echo "$as_me:8093: result: $hard_links" >&5
 
21993
  echo "$as_me:$LINENO: result: $hard_links" >&5
8094
21994
echo "${ECHO_T}$hard_links" >&6
8095
21995
  if test "$hard_links" = no; then
8096
 
    { echo "$as_me:8096: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
21996
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8097
21997
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8098
21998
    need_locks=warn
8099
21999
  fi
8101
22001
  need_locks=no
8102
22002
fi
8103
22003
 
8104
 
echo "$as_me:8104: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
22004
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8105
22005
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8106
22006
 
8107
 
echo "$as_me:8107: result: $ld_shlibs_CXX" >&5
 
22007
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
22008
  case $host_os in
 
22009
  aix4* | aix5*)
 
22010
    # If we're using GNU nm, then we don't want the "-C" option.
 
22011
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
22012
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
22013
      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'
 
22014
    else
 
22015
      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'
 
22016
    fi
 
22017
    ;;
 
22018
  pw32*)
 
22019
    export_symbols_cmds_CXX="$ltdll_cmds"
 
22020
  ;;
 
22021
  cygwin* | mingw*)
 
22022
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
22023
  ;;
 
22024
  linux*)
 
22025
    link_all_deplibs_CXX=no
 
22026
  ;;
 
22027
  *)
 
22028
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
22029
  ;;
 
22030
  esac
 
22031
 
 
22032
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
8108
22033
echo "${ECHO_T}$ld_shlibs_CXX" >&6
8109
22034
test "$ld_shlibs_CXX" = no && can_build_shared=no
8110
22035
 
8116
22041
#
8117
22042
# Do we need to explicitly link libc?
8118
22043
#
8119
 
archive_cmds_need_lc_CXX=yes
8120
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
8121
 
  case $archive_cmds_CXX in
8122
 
  *'~'*)
8123
 
    # FIXME: we may have to deal with multi-command sequences.
8124
 
    ;;
8125
 
  '$CC '*)
8126
 
    # Test whether the compiler implicitly links with -lc since on some
8127
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
8128
 
    # to ld, don't add -lc before -lgcc.
8129
 
    echo "$as_me:8129: checking whether -lc should be explicitly linked in" >&5
 
22044
case "x$archive_cmds_need_lc_CXX" in
 
22045
x|xyes)
 
22046
  # Assume -lc should be added
 
22047
  archive_cmds_need_lc_CXX=yes
 
22048
 
 
22049
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
22050
    case $archive_cmds_CXX in
 
22051
    *'~'*)
 
22052
      # FIXME: we may have to deal with multi-command sequences.
 
22053
      ;;
 
22054
    '$CC '*)
 
22055
      # Test whether the compiler implicitly links with -lc since on some
 
22056
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
22057
      # to ld, don't add -lc before -lgcc.
 
22058
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8130
22059
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8131
 
    $rm conftest*
8132
 
    echo 'static int dummy;' > conftest.$ac_ext
 
22060
      $rm conftest*
 
22061
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8133
22062
 
8134
 
    if { (eval echo "$as_me:8134: \"$ac_compile\"") >&5
 
22063
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8135
22064
  (eval $ac_compile) 2>&5
8136
22065
  ac_status=$?
8137
 
  echo "$as_me:8137: \$? = $ac_status" >&5
 
22066
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138
22067
  (exit $ac_status); } 2>conftest.err; then
8139
 
      soname=conftest
8140
 
      lib=conftest
8141
 
      libobjs=conftest.$ac_objext
8142
 
      deplibs=
8143
 
      wl=$lt_prog_compiler_wl_CXX
8144
 
      compiler_flags=-v
8145
 
      linker_flags=-v
8146
 
      verstring=
8147
 
      output_objdir=.
8148
 
      libname=conftest
8149
 
      lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
8150
 
      allow_undefined_flag_CXX=
8151
 
      if { (eval echo "$as_me:8151: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
22068
        soname=conftest
 
22069
        lib=conftest
 
22070
        libobjs=conftest.$ac_objext
 
22071
        deplibs=
 
22072
        wl=$lt_prog_compiler_wl_CXX
 
22073
        compiler_flags=-v
 
22074
        linker_flags=-v
 
22075
        verstring=
 
22076
        output_objdir=.
 
22077
        libname=conftest
 
22078
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
22079
        allow_undefined_flag_CXX=
 
22080
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8152
22081
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8153
22082
  ac_status=$?
8154
 
  echo "$as_me:8154: \$? = $ac_status" >&5
 
22083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155
22084
  (exit $ac_status); }
8156
 
      then
8157
 
        archive_cmds_need_lc_CXX=no
 
22085
        then
 
22086
          archive_cmds_need_lc_CXX=no
 
22087
        else
 
22088
          archive_cmds_need_lc_CXX=yes
 
22089
        fi
 
22090
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
8158
22091
      else
8159
 
        archive_cmds_need_lc_CXX=yes
 
22092
        cat conftest.err 1>&5
8160
22093
      fi
8161
 
      allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
8162
 
    else
8163
 
      cat conftest.err 1>&5
8164
 
    fi
8165
 
    $rm conftest*
8166
 
    echo "$as_me:8166: result: $archive_cmds_need_lc_CXX" >&5
 
22094
      $rm conftest*
 
22095
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
8167
22096
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
8168
 
    ;;
8169
 
  esac
 
22097
      ;;
 
22098
    esac
 
22099
  fi
 
22100
  ;;
 
22101
esac
 
22102
 
 
22103
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
22104
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
22105
library_names_spec=
 
22106
libname_spec='lib$name'
 
22107
soname_spec=
 
22108
shrext_cmds=".so"
 
22109
postinstall_cmds=
 
22110
postuninstall_cmds=
 
22111
finish_cmds=
 
22112
finish_eval=
 
22113
shlibpath_var=
 
22114
shlibpath_overrides_runpath=unknown
 
22115
version_type=none
 
22116
dynamic_linker="$host_os ld.so"
 
22117
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
22118
if test "$GCC" = yes; then
 
22119
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
22120
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
22121
    # if the path contains ";" then we assume it to be the separator
 
22122
    # otherwise default to the standard path separator (i.e. ":") - it is
 
22123
    # assumed that no part of a normal pathname contains ";" but that should
 
22124
    # okay in the real world where ";" in dirpaths is itself problematic.
 
22125
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
22126
  else
 
22127
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
22128
  fi
 
22129
else
 
22130
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8170
22131
fi
8171
 
 
8172
 
echo "$as_me:8172: checking how to hardcode library paths into programs" >&5
 
22132
need_lib_prefix=unknown
 
22133
hardcode_into_libs=no
 
22134
 
 
22135
# when you set need_version to no, make sure it does not cause -set_version
 
22136
# flags to be left without arguments
 
22137
need_version=unknown
 
22138
 
 
22139
case $host_os in
 
22140
aix3*)
 
22141
  version_type=linux
 
22142
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
22143
  shlibpath_var=LIBPATH
 
22144
 
 
22145
  # AIX 3 has no versioning support, so we append a major version to the name.
 
22146
  soname_spec='${libname}${release}${shared_ext}$major'
 
22147
  ;;
 
22148
 
 
22149
aix4* | aix5*)
 
22150
  version_type=linux
 
22151
  need_lib_prefix=no
 
22152
  need_version=no
 
22153
  hardcode_into_libs=yes
 
22154
  if test "$host_cpu" = ia64; then
 
22155
    # AIX 5 supports IA64
 
22156
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
22157
    shlibpath_var=LD_LIBRARY_PATH
 
22158
  else
 
22159
    # With GCC up to 2.95.x, collect2 would create an import file
 
22160
    # for dependence libraries.  The import file would start with
 
22161
    # the line `#! .'.  This would cause the generated library to
 
22162
    # depend on `.', always an invalid library.  This was fixed in
 
22163
    # development snapshots of GCC prior to 3.0.
 
22164
    case $host_os in
 
22165
      aix4 | aix4.[01] | aix4.[01].*)
 
22166
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
22167
           echo ' yes '
 
22168
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
22169
        :
 
22170
      else
 
22171
        can_build_shared=no
 
22172
      fi
 
22173
      ;;
 
22174
    esac
 
22175
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
22176
    # soname into executable. Probably we can add versioning support to
 
22177
    # collect2, so additional links can be useful in future.
 
22178
    if test "$aix_use_runtimelinking" = yes; then
 
22179
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
22180
      # instead of lib<name>.a to let people know that these are not
 
22181
      # typical AIX shared libraries.
 
22182
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22183
    else
 
22184
      # We preserve .a as extension for shared libraries through AIX4.2
 
22185
      # and later when we are not doing run time linking.
 
22186
      library_names_spec='${libname}${release}.a $libname.a'
 
22187
      soname_spec='${libname}${release}${shared_ext}$major'
 
22188
    fi
 
22189
    shlibpath_var=LIBPATH
 
22190
  fi
 
22191
  ;;
 
22192
 
 
22193
amigaos*)
 
22194
  library_names_spec='$libname.ixlibrary $libname.a'
 
22195
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
22196
  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'
 
22197
  ;;
 
22198
 
 
22199
beos*)
 
22200
  library_names_spec='${libname}${shared_ext}'
 
22201
  dynamic_linker="$host_os ld.so"
 
22202
  shlibpath_var=LIBRARY_PATH
 
22203
  ;;
 
22204
 
 
22205
bsdi4*)
 
22206
  version_type=linux
 
22207
  need_version=no
 
22208
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22209
  soname_spec='${libname}${release}${shared_ext}$major'
 
22210
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
22211
  shlibpath_var=LD_LIBRARY_PATH
 
22212
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
22213
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
22214
  # the default ld.so.conf also contains /usr/contrib/lib and
 
22215
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
22216
  # libtool to hard-code these into programs
 
22217
  ;;
 
22218
 
 
22219
cygwin* | mingw* | pw32*)
 
22220
  version_type=windows
 
22221
  shrext_cmds=".dll"
 
22222
  need_version=no
 
22223
  need_lib_prefix=no
 
22224
 
 
22225
  case $GCC,$host_os in
 
22226
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
22227
    library_names_spec='$libname.dll.a'
 
22228
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
22229
    postinstall_cmds='base_file=`basename \${file}`~
 
22230
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
22231
      dldir=$destdir/`dirname \$dlpath`~
 
22232
      test -d \$dldir || mkdir -p \$dldir~
 
22233
      $install_prog $dir/$dlname \$dldir/$dlname'
 
22234
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
22235
      dlpath=$dir/\$dldll~
 
22236
       $rm \$dlpath'
 
22237
    shlibpath_overrides_runpath=yes
 
22238
 
 
22239
    case $host_os in
 
22240
    cygwin*)
 
22241
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
22242
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
22243
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
22244
      ;;
 
22245
    mingw*)
 
22246
      # MinGW DLLs use traditional 'lib' prefix
 
22247
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
22248
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
22249
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
22250
        # It is most probably a Windows format PATH printed by
 
22251
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
22252
        # path with ; separators, and with drive letters. We can handle the
 
22253
        # drive letters (cygwin fileutils understands them), so leave them,
 
22254
        # especially as we might pass files found there to a mingw objdump,
 
22255
        # which wouldn't understand a cygwinified path. Ahh.
 
22256
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
22257
      else
 
22258
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
22259
      fi
 
22260
      ;;
 
22261
    pw32*)
 
22262
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
22263
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
22264
      ;;
 
22265
    esac
 
22266
    ;;
 
22267
 
 
22268
  *)
 
22269
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
22270
    ;;
 
22271
  esac
 
22272
  dynamic_linker='Win32 ld.exe'
 
22273
  # FIXME: first we should search . and the directory the executable is in
 
22274
  shlibpath_var=PATH
 
22275
  ;;
 
22276
 
 
22277
darwin* | rhapsody*)
 
22278
  dynamic_linker="$host_os dyld"
 
22279
  version_type=darwin
 
22280
  need_lib_prefix=no
 
22281
  need_version=no
 
22282
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
22283
  soname_spec='${libname}${release}${major}$shared_ext'
 
22284
  shlibpath_overrides_runpath=yes
 
22285
  shlibpath_var=DYLD_LIBRARY_PATH
 
22286
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
22287
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
22288
  if test "$GCC" = yes; then
 
22289
    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"`
 
22290
  else
 
22291
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
22292
  fi
 
22293
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
22294
  ;;
 
22295
 
 
22296
dgux*)
 
22297
  version_type=linux
 
22298
  need_lib_prefix=no
 
22299
  need_version=no
 
22300
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
22301
  soname_spec='${libname}${release}${shared_ext}$major'
 
22302
  shlibpath_var=LD_LIBRARY_PATH
 
22303
  ;;
 
22304
 
 
22305
freebsd1*)
 
22306
  dynamic_linker=no
 
22307
  ;;
 
22308
 
 
22309
kfreebsd*-gnu)
 
22310
  version_type=linux
 
22311
  need_lib_prefix=no
 
22312
  need_version=no
 
22313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
22314
  soname_spec='${libname}${release}${shared_ext}$major'
 
22315
  shlibpath_var=LD_LIBRARY_PATH
 
22316
  shlibpath_overrides_runpath=no
 
22317
  hardcode_into_libs=yes
 
22318
  dynamic_linker='GNU ld.so'
 
22319
  ;;
 
22320
 
 
22321
freebsd*)
 
22322
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
22323
  version_type=freebsd-$objformat
 
22324
  case $version_type in
 
22325
    freebsd-elf*)
 
22326
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
22327
      need_version=no
 
22328
      need_lib_prefix=no
 
22329
      ;;
 
22330
    freebsd-*)
 
22331
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
22332
      need_version=yes
 
22333
      ;;
 
22334
  esac
 
22335
  shlibpath_var=LD_LIBRARY_PATH
 
22336
  case $host_os in
 
22337
  freebsd2*)
 
22338
    shlibpath_overrides_runpath=yes
 
22339
    ;;
 
22340
  freebsd3.01* | freebsdelf3.01*)
 
22341
    shlibpath_overrides_runpath=yes
 
22342
    hardcode_into_libs=yes
 
22343
    ;;
 
22344
  *) # from 3.2 on
 
22345
    shlibpath_overrides_runpath=no
 
22346
    hardcode_into_libs=yes
 
22347
    ;;
 
22348
  esac
 
22349
  ;;
 
22350
 
 
22351
gnu*)
 
22352
  version_type=linux
 
22353
  need_lib_prefix=no
 
22354
  need_version=no
 
22355
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
22356
  soname_spec='${libname}${release}${shared_ext}$major'
 
22357
  shlibpath_var=LD_LIBRARY_PATH
 
22358
  hardcode_into_libs=yes
 
22359
  ;;
 
22360
 
 
22361
hpux9* | hpux10* | hpux11*)
 
22362
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
22363
  # link against other versions.
 
22364
  version_type=sunos
 
22365
  need_lib_prefix=no
 
22366
  need_version=no
 
22367
  case "$host_cpu" in
 
22368
  ia64*)
 
22369
    shrext_cmds='.so'
 
22370
    hardcode_into_libs=yes
 
22371
    dynamic_linker="$host_os dld.so"
 
22372
    shlibpath_var=LD_LIBRARY_PATH
 
22373
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
22374
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22375
    soname_spec='${libname}${release}${shared_ext}$major'
 
22376
    if test "X$HPUX_IA64_MODE" = X32; then
 
22377
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
22378
    else
 
22379
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
22380
    fi
 
22381
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
22382
    ;;
 
22383
   hppa*64*)
 
22384
     shrext_cmds='.sl'
 
22385
     hardcode_into_libs=yes
 
22386
     dynamic_linker="$host_os dld.sl"
 
22387
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
22388
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
22389
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22390
     soname_spec='${libname}${release}${shared_ext}$major'
 
22391
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
22392
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
22393
     ;;
 
22394
   *)
 
22395
    shrext_cmds='.sl'
 
22396
    dynamic_linker="$host_os dld.sl"
 
22397
    shlibpath_var=SHLIB_PATH
 
22398
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
22399
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22400
    soname_spec='${libname}${release}${shared_ext}$major'
 
22401
    ;;
 
22402
  esac
 
22403
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
22404
  postinstall_cmds='chmod 555 $lib'
 
22405
  ;;
 
22406
 
 
22407
irix5* | irix6* | nonstopux*)
 
22408
  case $host_os in
 
22409
    nonstopux*) version_type=nonstopux ;;
 
22410
    *)
 
22411
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
22412
                version_type=linux
 
22413
        else
 
22414
                version_type=irix
 
22415
        fi ;;
 
22416
  esac
 
22417
  need_lib_prefix=no
 
22418
  need_version=no
 
22419
  soname_spec='${libname}${release}${shared_ext}$major'
 
22420
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
22421
  case $host_os in
 
22422
  irix5* | nonstopux*)
 
22423
    libsuff= shlibsuff=
 
22424
    ;;
 
22425
  *)
 
22426
    case $LD in # libtool.m4 will add one of these switches to LD
 
22427
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
22428
      libsuff= shlibsuff= libmagic=32-bit;;
 
22429
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
22430
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
22431
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
22432
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
22433
    *) libsuff= shlibsuff= libmagic=never-match;;
 
22434
    esac
 
22435
    ;;
 
22436
  esac
 
22437
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
22438
  shlibpath_overrides_runpath=no
 
22439
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
22440
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
22441
  hardcode_into_libs=yes
 
22442
  ;;
 
22443
 
 
22444
# No shared lib support for Linux oldld, aout, or coff.
 
22445
linux*oldld* | linux*aout* | linux*coff*)
 
22446
  dynamic_linker=no
 
22447
  ;;
 
22448
 
 
22449
# This must be Linux ELF.
 
22450
linux*)
 
22451
  version_type=linux
 
22452
  need_lib_prefix=no
 
22453
  need_version=no
 
22454
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22455
  soname_spec='${libname}${release}${shared_ext}$major'
 
22456
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
22457
  shlibpath_var=LD_LIBRARY_PATH
 
22458
  shlibpath_overrides_runpath=no
 
22459
  # This implies no fast_install, which is unacceptable.
 
22460
  # Some rework will be needed to allow for fast_install
 
22461
  # before this can be enabled.
 
22462
  hardcode_into_libs=yes
 
22463
 
 
22464
  # Append ld.so.conf contents to the search path
 
22465
  if test -f /etc/ld.so.conf; then
 
22466
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
22467
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
22468
  fi
 
22469
 
 
22470
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
22471
  # powerpc, because MkLinux only supported shared libraries with the
 
22472
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
22473
  # most powerpc-linux boxes support dynamic linking these days and
 
22474
  # people can always --disable-shared, the test was removed, and we
 
22475
  # assume the GNU/Linux dynamic linker is in use.
 
22476
  dynamic_linker='GNU/Linux ld.so'
 
22477
  ;;
 
22478
 
 
22479
knetbsd*-gnu)
 
22480
  version_type=linux
 
22481
  need_lib_prefix=no
 
22482
  need_version=no
 
22483
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
22484
  soname_spec='${libname}${release}${shared_ext}$major'
 
22485
  shlibpath_var=LD_LIBRARY_PATH
 
22486
  shlibpath_overrides_runpath=no
 
22487
  hardcode_into_libs=yes
 
22488
  dynamic_linker='GNU ld.so'
 
22489
  ;;
 
22490
 
 
22491
netbsd*)
 
22492
  version_type=sunos
 
22493
  need_lib_prefix=no
 
22494
  need_version=no
 
22495
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
22496
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
22497
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
22498
    dynamic_linker='NetBSD (a.out) ld.so'
 
22499
  else
 
22500
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
22501
    soname_spec='${libname}${release}${shared_ext}$major'
 
22502
    dynamic_linker='NetBSD ld.elf_so'
 
22503
  fi
 
22504
  shlibpath_var=LD_LIBRARY_PATH
 
22505
  shlibpath_overrides_runpath=yes
 
22506
  hardcode_into_libs=yes
 
22507
  ;;
 
22508
 
 
22509
newsos6)
 
22510
  version_type=linux
 
22511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22512
  shlibpath_var=LD_LIBRARY_PATH
 
22513
  shlibpath_overrides_runpath=yes
 
22514
  ;;
 
22515
 
 
22516
nto-qnx*)
 
22517
  version_type=linux
 
22518
  need_lib_prefix=no
 
22519
  need_version=no
 
22520
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22521
  soname_spec='${libname}${release}${shared_ext}$major'
 
22522
  shlibpath_var=LD_LIBRARY_PATH
 
22523
  shlibpath_overrides_runpath=yes
 
22524
  ;;
 
22525
 
 
22526
openbsd*)
 
22527
  version_type=sunos
 
22528
  need_lib_prefix=no
 
22529
  need_version=yes
 
22530
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
22531
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
22532
  shlibpath_var=LD_LIBRARY_PATH
 
22533
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
22534
    case $host_os in
 
22535
      openbsd2.[89] | openbsd2.[89].*)
 
22536
        shlibpath_overrides_runpath=no
 
22537
        ;;
 
22538
      *)
 
22539
        shlibpath_overrides_runpath=yes
 
22540
        ;;
 
22541
      esac
 
22542
  else
 
22543
    shlibpath_overrides_runpath=yes
 
22544
  fi
 
22545
  ;;
 
22546
 
 
22547
os2*)
 
22548
  libname_spec='$name'
 
22549
  shrext_cmds=".dll"
 
22550
  need_lib_prefix=no
 
22551
  library_names_spec='$libname${shared_ext} $libname.a'
 
22552
  dynamic_linker='OS/2 ld.exe'
 
22553
  shlibpath_var=LIBPATH
 
22554
  ;;
 
22555
 
 
22556
osf3* | osf4* | osf5*)
 
22557
  version_type=osf
 
22558
  need_lib_prefix=no
 
22559
  need_version=no
 
22560
  soname_spec='${libname}${release}${shared_ext}$major'
 
22561
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22562
  shlibpath_var=LD_LIBRARY_PATH
 
22563
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
22564
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
22565
  ;;
 
22566
 
 
22567
sco3.2v5*)
 
22568
  version_type=osf
 
22569
  soname_spec='${libname}${release}${shared_ext}$major'
 
22570
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22571
  shlibpath_var=LD_LIBRARY_PATH
 
22572
  ;;
 
22573
 
 
22574
solaris*)
 
22575
  version_type=linux
 
22576
  need_lib_prefix=no
 
22577
  need_version=no
 
22578
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22579
  soname_spec='${libname}${release}${shared_ext}$major'
 
22580
  shlibpath_var=LD_LIBRARY_PATH
 
22581
  shlibpath_overrides_runpath=yes
 
22582
  hardcode_into_libs=yes
 
22583
  # ldd complains unless libraries are executable
 
22584
  postinstall_cmds='chmod +x $lib'
 
22585
  ;;
 
22586
 
 
22587
sunos4*)
 
22588
  version_type=sunos
 
22589
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
22590
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
22591
  shlibpath_var=LD_LIBRARY_PATH
 
22592
  shlibpath_overrides_runpath=yes
 
22593
  if test "$with_gnu_ld" = yes; then
 
22594
    need_lib_prefix=no
 
22595
  fi
 
22596
  need_version=yes
 
22597
  ;;
 
22598
 
 
22599
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
22600
  version_type=linux
 
22601
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22602
  soname_spec='${libname}${release}${shared_ext}$major'
 
22603
  shlibpath_var=LD_LIBRARY_PATH
 
22604
  case $host_vendor in
 
22605
    sni)
 
22606
      shlibpath_overrides_runpath=no
 
22607
      need_lib_prefix=no
 
22608
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
22609
      runpath_var=LD_RUN_PATH
 
22610
      ;;
 
22611
    siemens)
 
22612
      need_lib_prefix=no
 
22613
      ;;
 
22614
    motorola)
 
22615
      need_lib_prefix=no
 
22616
      need_version=no
 
22617
      shlibpath_overrides_runpath=no
 
22618
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
22619
      ;;
 
22620
  esac
 
22621
  ;;
 
22622
 
 
22623
sysv4*MP*)
 
22624
  if test -d /usr/nec ;then
 
22625
    version_type=linux
 
22626
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
22627
    soname_spec='$libname${shared_ext}.$major'
 
22628
    shlibpath_var=LD_LIBRARY_PATH
 
22629
  fi
 
22630
  ;;
 
22631
 
 
22632
uts4*)
 
22633
  version_type=linux
 
22634
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
22635
  soname_spec='${libname}${release}${shared_ext}$major'
 
22636
  shlibpath_var=LD_LIBRARY_PATH
 
22637
  ;;
 
22638
 
 
22639
*)
 
22640
  dynamic_linker=no
 
22641
  ;;
 
22642
esac
 
22643
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
22644
echo "${ECHO_T}$dynamic_linker" >&6
 
22645
test "$dynamic_linker" = no && can_build_shared=no
 
22646
 
 
22647
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8173
22648
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8174
22649
hardcode_action_CXX=
8175
22650
if test -n "$hardcode_libdir_flag_spec_CXX" || \
8176
 
   test -n "$runpath_var CXX"; then
 
22651
   test -n "$runpath_var CXX" || \
 
22652
   test "X$hardcode_automatic_CXX"="Xyes" ; then
8177
22653
 
8178
22654
  # We can hardcode non-existant directories.
8179
22655
  if test "$hardcode_direct_CXX" != no &&
8193
22669
  # directories.
8194
22670
  hardcode_action_CXX=unsupported
8195
22671
fi
8196
 
echo "$as_me:8196: result: $hardcode_action_CXX" >&5
 
22672
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
8197
22673
echo "${ECHO_T}$hardcode_action_CXX" >&6
8198
22674
 
8199
22675
if test "$hardcode_action_CXX" = relink; then
8207
22683
 
8208
22684
striplib=
8209
22685
old_striplib=
8210
 
echo "$as_me:8210: checking whether stripping libraries is possible" >&5
 
22686
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8211
22687
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8212
22688
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8213
22689
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8214
22690
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8215
 
  echo "$as_me:8215: result: yes" >&5
 
22691
  echo "$as_me:$LINENO: result: yes" >&5
8216
22692
echo "${ECHO_T}yes" >&6
8217
22693
else
8218
 
  echo "$as_me:8218: result: no" >&5
8219
 
echo "${ECHO_T}no" >&6
8220
 
fi
8221
 
 
8222
 
echo "$as_me:8222: checking dynamic linker characteristics" >&5
8223
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8224
 
library_names_spec=
8225
 
libname_spec='lib$name'
8226
 
soname_spec=
8227
 
postinstall_cmds=
8228
 
postuninstall_cmds=
8229
 
finish_cmds=
8230
 
finish_eval=
8231
 
shlibpath_var=
8232
 
shlibpath_overrides_runpath=unknown
8233
 
version_type=none
8234
 
dynamic_linker="$host_os ld.so"
8235
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8236
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8237
 
need_lib_prefix=unknown
8238
 
hardcode_into_libs=no
8239
 
 
8240
 
# when you set need_version to no, make sure it does not cause -set_version
8241
 
# flags to be left without arguments
8242
 
need_version=unknown
8243
 
 
8244
 
case $host_os in
8245
 
aix3*)
8246
 
  version_type=linux
8247
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
8248
 
  shlibpath_var=LIBPATH
8249
 
 
8250
 
  # AIX 3 has no versioning support, so we append a major version to the name.
8251
 
  soname_spec='${libname}${release}.so$major'
8252
 
  ;;
8253
 
 
8254
 
aix4* | aix5*)
8255
 
  version_type=linux
8256
 
  if test "$host_cpu" = ia64; then
8257
 
    # AIX 5 supports IA64
8258
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
8259
 
    shlibpath_var=LD_LIBRARY_PATH
8260
 
  else
8261
 
    # With GCC up to 2.95.x, collect2 would create an import file
8262
 
    # for dependence libraries.  The import file would start with
8263
 
    # the line `#! .'.  This would cause the generated library to
8264
 
    # depend on `.', always an invalid library.  This was fixed in
8265
 
    # development snapshots of GCC prior to 3.0.
8266
 
    case $host_os in
8267
 
       aix4 | aix4.[01] | aix4.[01].*)
8268
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8269
 
           echo ' yes '
8270
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8271
 
        :
8272
 
      else
8273
 
        can_build_shared=no
8274
 
      fi
8275
 
      ;;
8276
 
    esac
8277
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8278
 
    # soname into executable. Probably we can add versioning support to
8279
 
    # collect2, so additional links can be useful in future.
8280
 
    if test "$aix_use_runtimelinking" = yes; then
8281
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8282
 
      # instead of lib<name>.a to let people know that these are not
8283
 
      # typical AIX shared libraries.
8284
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8285
 
    else
8286
 
      # We preserve .a as extension for shared libraries through AIX4.2
8287
 
      # and later when we are not doing run time linking.
8288
 
      library_names_spec='${libname}${release}.a $libname.a'
8289
 
      soname_spec='${libname}${release}.so$major'
8290
 
    fi
8291
 
    shlibpath_var=LIBPATH
8292
 
    deplibs_check_method=pass_all
8293
 
  fi
8294
 
  ;;
8295
 
 
8296
 
amigaos*)
8297
 
  library_names_spec='$libname.ixlibrary $libname.a'
8298
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8299
 
  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'
8300
 
  ;;
8301
 
 
8302
 
beos*)
8303
 
  library_names_spec='${libname}.so'
8304
 
  dynamic_linker="$host_os ld.so"
8305
 
  shlibpath_var=LIBRARY_PATH
8306
 
  ;;
8307
 
 
8308
 
bsdi4*)
8309
 
  version_type=linux
8310
 
  need_version=no
8311
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8312
 
  soname_spec='${libname}${release}.so$major'
8313
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8314
 
  shlibpath_var=LD_LIBRARY_PATH
8315
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8316
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8317
 
  # the default ld.so.conf also contains /usr/contrib/lib and
8318
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8319
 
  # libtool to hard-code these into programs
8320
 
  ;;
8321
 
 
8322
 
cygwin* | mingw* | pw32*)
8323
 
  version_type=windows
8324
 
  need_version=no
8325
 
  need_lib_prefix=no
8326
 
  case $GCC,$host_os in
8327
 
  yes,cygwin*)
8328
 
    library_names_spec='$libname.dll.a'
8329
 
    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
8330
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
8331
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
8332
 
      dldir=$destdir/`dirname \$dlpath`~
8333
 
      test -d \$dldir || mkdir -p \$dldir~
8334
 
      $install_prog .libs/$dlname \$dldir/$dlname'
8335
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
8336
 
      dlpath=$dir/\$dldll~
8337
 
       $rm \$dlpath'
8338
 
    ;;
8339
 
  yes,mingw*)
8340
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
8341
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"`
8342
 
    ;;
8343
 
  yes,pw32*)
8344
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
8345
 
    ;;
8346
 
  *)
8347
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
8348
 
    ;;
8349
 
  esac
8350
 
  dynamic_linker='Win32 ld.exe'
8351
 
  # FIXME: first we should search . and the directory the executable is in
8352
 
  shlibpath_var=PATH
8353
 
  ;;
8354
 
 
8355
 
darwin* | rhapsody*)
8356
 
  dynamic_linker="$host_os dyld"
8357
 
  version_type=darwin
8358
 
  need_lib_prefix=no
8359
 
  need_version=no
8360
 
  # FIXME: Relying on posixy $() will cause problems for
8361
 
  #        cross-compilation, but unfortunately the echo tests do not
8362
 
  #        yet detect zsh echo's removal of \ escapes.
8363
 
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
8364
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
8365
 
  shlibpath_overrides_runpath=yes
8366
 
  shlibpath_var=DYLD_LIBRARY_PATH
8367
 
  ;;
8368
 
 
8369
 
dgux*)
8370
 
  version_type=linux
8371
 
  need_lib_prefix=no
8372
 
  need_version=no
8373
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8374
 
  soname_spec='${libname}${release}.so$major'
8375
 
  shlibpath_var=LD_LIBRARY_PATH
8376
 
  ;;
8377
 
 
8378
 
freebsd1*)
8379
 
  dynamic_linker=no
8380
 
  ;;
8381
 
 
8382
 
freebsd*)
8383
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8384
 
  version_type=freebsd-$objformat
8385
 
  case $version_type in
8386
 
    freebsd-elf*)
8387
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
8388
 
      need_version=no
8389
 
      need_lib_prefix=no
8390
 
      ;;
8391
 
    freebsd-*)
8392
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
8393
 
      need_version=yes
8394
 
      ;;
8395
 
  esac
8396
 
  shlibpath_var=LD_LIBRARY_PATH
8397
 
  case $host_os in
8398
 
  freebsd2*)
8399
 
    shlibpath_overrides_runpath=yes
8400
 
    ;;
8401
 
  freebsd3.01* | freebsdelf3.01*)
8402
 
    shlibpath_overrides_runpath=yes
8403
 
    hardcode_into_libs=yes
8404
 
    ;;
8405
 
  *) # from 3.2 on
8406
 
    shlibpath_overrides_runpath=no
8407
 
    hardcode_into_libs=yes
8408
 
    ;;
8409
 
  esac
8410
 
  ;;
8411
 
 
8412
 
gnu*)
8413
 
  version_type=linux
8414
 
  need_lib_prefix=no
8415
 
  need_version=no
8416
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
8417
 
  soname_spec='${libname}${release}.so$major'
8418
 
  shlibpath_var=LD_LIBRARY_PATH
8419
 
  hardcode_into_libs=yes
8420
 
  ;;
8421
 
 
8422
 
hpux9* | hpux10* | hpux11*)
8423
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
8424
 
  # link against other versions.
8425
 
  version_type=sunos
8426
 
  need_lib_prefix=no
8427
 
  need_version=no
8428
 
  if test "$host_cpu" = ia64; then
8429
 
    hardcode_into_libs=yes
8430
 
    dynamic_linker="$host_os dld.so"
8431
 
    shlibpath_var=LD_LIBRARY_PATH
8432
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8433
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8434
 
    soname_spec='${libname}${release}.so$major'
8435
 
    if test "X$HPUX_IA64_MODE" = X32; then
8436
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8437
 
    else
8438
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8439
 
    fi
8440
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8441
 
  else
8442
 
    dynamic_linker="$host_os dld.sl"
8443
 
    shlibpath_var=SHLIB_PATH
8444
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8445
 
    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
8446
 
    soname_spec='${libname}${release}.sl$major'
8447
 
  fi
8448
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8449
 
  postinstall_cmds='chmod 555 $lib'
8450
 
  ;;
8451
 
 
8452
 
irix5* | irix6*)
8453
 
  version_type=irix
8454
 
  need_lib_prefix=no
8455
 
  need_version=no
8456
 
  soname_spec='${libname}${release}.so$major'
8457
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
8458
 
  case $host_os in
8459
 
  irix5*)
8460
 
    libsuff= shlibsuff=
8461
 
    ;;
8462
 
  *)
8463
 
    case $LD in # libtool.m4 will add one of these switches to LD
8464
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
8465
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
8466
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
8467
 
    *) libsuff= shlibsuff= libmagic=never-match;;
8468
 
    esac
8469
 
    ;;
8470
 
  esac
8471
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8472
 
  shlibpath_overrides_runpath=no
8473
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8474
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8475
 
  ;;
8476
 
 
8477
 
# No shared lib support for Linux oldld, aout, or coff.
8478
 
linux*oldld* | linux*aout* | linux*coff*)
8479
 
  dynamic_linker=no
8480
 
  ;;
8481
 
 
8482
 
# This must be Linux ELF.
8483
 
linux*)
8484
 
  version_type=linux
8485
 
  need_lib_prefix=no
8486
 
  need_version=no
8487
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8488
 
  soname_spec='${libname}${release}.so$major'
8489
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8490
 
  shlibpath_var=LD_LIBRARY_PATH
8491
 
  shlibpath_overrides_runpath=no
8492
 
  # This implies no fast_install, which is unacceptable.
8493
 
  # Some rework will be needed to allow for fast_install
8494
 
  # before this can be enabled.
8495
 
  hardcode_into_libs=yes
8496
 
 
8497
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8498
 
  # powerpc, because MkLinux only supported shared libraries with the
8499
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
8500
 
  # most powerpc-linux boxes support dynamic linking these days and
8501
 
  # people can always --disable-shared, the test was removed, and we
8502
 
  # assume the GNU/Linux dynamic linker is in use.
8503
 
  dynamic_linker='GNU/Linux ld.so'
8504
 
  ;;
8505
 
 
8506
 
netbsd*)
8507
 
  version_type=sunos
8508
 
  need_lib_prefix=no
8509
 
  need_version=no
8510
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8511
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8512
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8513
 
    dynamic_linker='NetBSD (a.out) ld.so'
8514
 
  else
8515
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
8516
 
    soname_spec='${libname}${release}.so$major'
8517
 
    dynamic_linker='NetBSD ld.elf_so'
8518
 
  fi
8519
 
  shlibpath_var=LD_LIBRARY_PATH
8520
 
  shlibpath_overrides_runpath=yes
8521
 
  hardcode_into_libs=yes
8522
 
  ;;
8523
 
 
8524
 
newsos6)
8525
 
  version_type=linux
8526
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8527
 
  shlibpath_var=LD_LIBRARY_PATH
8528
 
  shlibpath_overrides_runpath=yes
8529
 
  ;;
8530
 
 
8531
 
nto-qnx)
8532
 
  version_type=linux
8533
 
  need_lib_prefix=no
8534
 
  need_version=no
8535
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8536
 
  soname_spec='${libname}${release}.so$major'
8537
 
  shlibpath_var=LD_LIBRARY_PATH
8538
 
  shlibpath_overrides_runpath=yes
8539
 
  ;;
8540
 
 
8541
 
openbsd*)
8542
 
  version_type=sunos
8543
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8544
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8545
 
  shlibpath_var=LD_LIBRARY_PATH
8546
 
  file_magic_cmd=/usr/bin/file
8547
 
  file_magic_test_file=`echo /usr/lib/libc.so.*`
8548
 
  if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
8549
 
    deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
8550
 
  else
8551
 
    deplibs_check_method='file_magic OpenBSD.* shared library'
8552
 
  fi
8553
 
  ;;
8554
 
 
8555
 
os2*)
8556
 
  libname_spec='$name'
8557
 
  need_lib_prefix=no
8558
 
  library_names_spec='$libname.dll $libname.a'
8559
 
  dynamic_linker='OS/2 ld.exe'
8560
 
  shlibpath_var=LIBPATH
8561
 
  ;;
8562
 
 
8563
 
osf3* | osf4* | osf5*)
8564
 
  version_type=osf
8565
 
  need_version=no
8566
 
  soname_spec='${libname}${release}.so'
8567
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
8568
 
  shlibpath_var=LD_LIBRARY_PATH
8569
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8570
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8571
 
  ;;
8572
 
 
8573
 
sco3.2v5*)
8574
 
  version_type=osf
8575
 
  soname_spec='${libname}${release}.so$major'
8576
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8577
 
  shlibpath_var=LD_LIBRARY_PATH
8578
 
  ;;
8579
 
 
8580
 
solaris*)
8581
 
  version_type=linux
8582
 
  need_lib_prefix=no
8583
 
  need_version=no
8584
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8585
 
  soname_spec='${libname}${release}.so$major'
8586
 
  shlibpath_var=LD_LIBRARY_PATH
8587
 
  shlibpath_overrides_runpath=yes
8588
 
  hardcode_into_libs=yes
8589
 
  # ldd complains unless libraries are executable
8590
 
  postinstall_cmds='chmod +x $lib'
8591
 
  ;;
8592
 
 
8593
 
sunos4*)
8594
 
  version_type=sunos
8595
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8596
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8597
 
  shlibpath_var=LD_LIBRARY_PATH
8598
 
  shlibpath_overrides_runpath=yes
8599
 
  if test "$with_gnu_ld" = yes; then
8600
 
    need_lib_prefix=no
8601
 
  fi
8602
 
  need_version=yes
8603
 
  ;;
8604
 
 
8605
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8606
 
  version_type=linux
8607
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8608
 
  soname_spec='${libname}${release}.so$major'
8609
 
  shlibpath_var=LD_LIBRARY_PATH
8610
 
  case $host_vendor in
8611
 
    sni)
8612
 
      shlibpath_overrides_runpath=no
8613
 
      ;;
8614
 
    motorola)
8615
 
      need_lib_prefix=no
8616
 
      need_version=no
8617
 
      shlibpath_overrides_runpath=no
8618
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8619
 
      ;;
8620
 
  esac
8621
 
  ;;
8622
 
 
8623
 
sysv4*MP*)
8624
 
  if test -d /usr/nec ;then
8625
 
    version_type=linux
8626
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
8627
 
    soname_spec='$libname.so.$major'
8628
 
    shlibpath_var=LD_LIBRARY_PATH
8629
 
  fi
8630
 
  ;;
8631
 
 
8632
 
uts4*)
8633
 
  version_type=linux
8634
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8635
 
  soname_spec='${libname}${release}.so$major'
8636
 
  shlibpath_var=LD_LIBRARY_PATH
8637
 
  ;;
8638
 
 
8639
 
*)
8640
 
  dynamic_linker=no
8641
 
  ;;
8642
 
esac
8643
 
echo "$as_me:8643: result: $dynamic_linker" >&5
8644
 
echo "${ECHO_T}$dynamic_linker" >&6
8645
 
test "$dynamic_linker" = no && can_build_shared=no
 
22694
# FIXME - insert some real tests, host_os isn't really good enough
 
22695
  case $host_os in
 
22696
   darwin*)
 
22697
       if test -n "$STRIP" ; then
 
22698
         striplib="$STRIP -x"
 
22699
         echo "$as_me:$LINENO: result: yes" >&5
 
22700
echo "${ECHO_T}yes" >&6
 
22701
       else
 
22702
  echo "$as_me:$LINENO: result: no" >&5
 
22703
echo "${ECHO_T}no" >&6
 
22704
fi
 
22705
       ;;
 
22706
   *)
 
22707
  echo "$as_me:$LINENO: result: no" >&5
 
22708
echo "${ECHO_T}no" >&6
 
22709
    ;;
 
22710
  esac
 
22711
fi
8646
22712
 
8647
22713
if test "x$enable_dlopen" != xyes; then
8648
22714
  enable_dlopen=unknown
8659
22725
    lt_cv_dlopen_self=yes
8660
22726
    ;;
8661
22727
 
8662
 
  cygwin* | mingw* | pw32*)
 
22728
  mingw* | pw32*)
8663
22729
    lt_cv_dlopen="LoadLibrary"
8664
22730
    lt_cv_dlopen_libs=
8665
22731
   ;;
8666
22732
 
 
22733
  cygwin*)
 
22734
    lt_cv_dlopen="dlopen"
 
22735
    lt_cv_dlopen_libs=
 
22736
   ;;
 
22737
 
 
22738
  darwin*)
 
22739
  # if libdl is installed we need to link against it
 
22740
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
22741
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
22742
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
22743
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22744
else
 
22745
  ac_check_lib_save_LIBS=$LIBS
 
22746
LIBS="-ldl  $LIBS"
 
22747
cat >conftest.$ac_ext <<_ACEOF
 
22748
/* confdefs.h.  */
 
22749
_ACEOF
 
22750
cat confdefs.h >>conftest.$ac_ext
 
22751
cat >>conftest.$ac_ext <<_ACEOF
 
22752
/* end confdefs.h.  */
 
22753
 
 
22754
/* Override any gcc2 internal prototype to avoid an error.  */
 
22755
#ifdef __cplusplus
 
22756
extern "C"
 
22757
#endif
 
22758
/* We use char because int might match the return type of a gcc2
 
22759
   builtin and then its argument prototype would still apply.  */
 
22760
char dlopen ();
 
22761
int
 
22762
main ()
 
22763
{
 
22764
dlopen ();
 
22765
  ;
 
22766
  return 0;
 
22767
}
 
22768
_ACEOF
 
22769
rm -f conftest.$ac_objext conftest$ac_exeext
 
22770
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22771
  (eval $ac_link) 2>conftest.er1
 
22772
  ac_status=$?
 
22773
  grep -v '^ *+' conftest.er1 >conftest.err
 
22774
  rm -f conftest.er1
 
22775
  cat conftest.err >&5
 
22776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22777
  (exit $ac_status); } &&
 
22778
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
22779
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22780
  (eval $ac_try) 2>&5
 
22781
  ac_status=$?
 
22782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22783
  (exit $ac_status); }; } &&
 
22784
         { ac_try='test -s conftest$ac_exeext'
 
22785
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22786
  (eval $ac_try) 2>&5
 
22787
  ac_status=$?
 
22788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22789
  (exit $ac_status); }; }; then
 
22790
  ac_cv_lib_dl_dlopen=yes
 
22791
else
 
22792
  echo "$as_me: failed program was:" >&5
 
22793
sed 's/^/| /' conftest.$ac_ext >&5
 
22794
 
 
22795
ac_cv_lib_dl_dlopen=no
 
22796
fi
 
22797
rm -f conftest.err conftest.$ac_objext \
 
22798
      conftest$ac_exeext conftest.$ac_ext
 
22799
LIBS=$ac_check_lib_save_LIBS
 
22800
fi
 
22801
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
22802
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
22803
if test $ac_cv_lib_dl_dlopen = yes; then
 
22804
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
22805
else
 
22806
 
 
22807
    lt_cv_dlopen="dyld"
 
22808
    lt_cv_dlopen_libs=
 
22809
    lt_cv_dlopen_self=yes
 
22810
 
 
22811
fi
 
22812
 
 
22813
   ;;
 
22814
 
8667
22815
  *)
8668
 
    echo "$as_me:8668: checking for shl_load" >&5
 
22816
    echo "$as_me:$LINENO: checking for shl_load" >&5
8669
22817
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8670
22818
if test "${ac_cv_func_shl_load+set}" = set; then
8671
22819
  echo $ECHO_N "(cached) $ECHO_C" >&6
8672
22820
else
8673
22821
  cat >conftest.$ac_ext <<_ACEOF
8674
 
#line 8674 "configure"
8675
 
#include "confdefs.h"
 
22822
/* confdefs.h.  */
 
22823
_ACEOF
 
22824
cat confdefs.h >>conftest.$ac_ext
 
22825
cat >>conftest.$ac_ext <<_ACEOF
 
22826
/* end confdefs.h.  */
 
22827
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
22828
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22829
#define shl_load innocuous_shl_load
 
22830
 
8676
22831
/* System header to define __stub macros and hopefully few prototypes,
8677
 
    which can conflict with char shl_load (); below.  */
8678
 
#include <assert.h>
 
22832
    which can conflict with char shl_load (); below.
 
22833
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22834
    <limits.h> exists even on freestanding compilers.  */
 
22835
 
 
22836
#ifdef __STDC__
 
22837
# include <limits.h>
 
22838
#else
 
22839
# include <assert.h>
 
22840
#endif
 
22841
 
 
22842
#undef shl_load
 
22843
 
8679
22844
/* Override any gcc2 internal prototype to avoid an error.  */
8680
22845
#ifdef __cplusplus
8681
22846
extern "C"
 
22847
{
8682
22848
#endif
8683
22849
/* We use char because int might match the return type of a gcc2
8684
22850
   builtin and then its argument prototype would still apply.  */
8685
22851
char shl_load ();
8686
 
char (*f) ();
8687
 
 
8688
 
int
8689
 
main ()
8690
 
{
8691
22852
/* The GNU C library defines this for functions which it implements
8692
22853
    to always fail with ENOSYS.  Some functions are actually named
8693
22854
    something starting with __ and the normal name is an alias.  */
8694
22855
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8695
22856
choke me
8696
22857
#else
8697
 
f = shl_load;
 
22858
char (*f) () = shl_load;
 
22859
#endif
 
22860
#ifdef __cplusplus
 
22861
}
8698
22862
#endif
8699
22863
 
 
22864
int
 
22865
main ()
 
22866
{
 
22867
return f != shl_load;
8700
22868
  ;
8701
22869
  return 0;
8702
22870
}
8703
22871
_ACEOF
8704
22872
rm -f conftest.$ac_objext conftest$ac_exeext
8705
 
if { (eval echo "$as_me:8705: \"$ac_link\"") >&5
8706
 
  (eval $ac_link) 2>&5
 
22873
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22874
  (eval $ac_link) 2>conftest.er1
8707
22875
  ac_status=$?
8708
 
  echo "$as_me:8708: \$? = $ac_status" >&5
 
22876
  grep -v '^ *+' conftest.er1 >conftest.err
 
22877
  rm -f conftest.er1
 
22878
  cat conftest.err >&5
 
22879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709
22880
  (exit $ac_status); } &&
8710
 
         { ac_try='test -s conftest$ac_exeext'
8711
 
  { (eval echo "$as_me:8711: \"$ac_try\"") >&5
8712
 
  (eval $ac_try) 2>&5
8713
 
  ac_status=$?
8714
 
  echo "$as_me:8714: \$? = $ac_status" >&5
 
22881
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
22882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22883
  (eval $ac_try) 2>&5
 
22884
  ac_status=$?
 
22885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22886
  (exit $ac_status); }; } &&
 
22887
         { ac_try='test -s conftest$ac_exeext'
 
22888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22889
  (eval $ac_try) 2>&5
 
22890
  ac_status=$?
 
22891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715
22892
  (exit $ac_status); }; }; then
8716
22893
  ac_cv_func_shl_load=yes
8717
22894
else
8718
22895
  echo "$as_me: failed program was:" >&5
8719
 
cat conftest.$ac_ext >&5
 
22896
sed 's/^/| /' conftest.$ac_ext >&5
 
22897
 
8720
22898
ac_cv_func_shl_load=no
8721
22899
fi
8722
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22900
rm -f conftest.err conftest.$ac_objext \
 
22901
      conftest$ac_exeext conftest.$ac_ext
8723
22902
fi
8724
 
echo "$as_me:8724: result: $ac_cv_func_shl_load" >&5
 
22903
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8725
22904
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8726
22905
if test $ac_cv_func_shl_load = yes; then
8727
22906
  lt_cv_dlopen="shl_load"
8728
22907
else
8729
 
  echo "$as_me:8729: checking for shl_load in -ldld" >&5
 
22908
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8730
22909
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8731
22910
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8732
22911
  echo $ECHO_N "(cached) $ECHO_C" >&6
8734
22913
  ac_check_lib_save_LIBS=$LIBS
8735
22914
LIBS="-ldld  $LIBS"
8736
22915
cat >conftest.$ac_ext <<_ACEOF
8737
 
#line 8737 "configure"
8738
 
#include "confdefs.h"
 
22916
/* confdefs.h.  */
 
22917
_ACEOF
 
22918
cat confdefs.h >>conftest.$ac_ext
 
22919
cat >>conftest.$ac_ext <<_ACEOF
 
22920
/* end confdefs.h.  */
8739
22921
 
8740
22922
/* Override any gcc2 internal prototype to avoid an error.  */
8741
22923
#ifdef __cplusplus
8753
22935
}
8754
22936
_ACEOF
8755
22937
rm -f conftest.$ac_objext conftest$ac_exeext
8756
 
if { (eval echo "$as_me:8756: \"$ac_link\"") >&5
8757
 
  (eval $ac_link) 2>&5
 
22938
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22939
  (eval $ac_link) 2>conftest.er1
8758
22940
  ac_status=$?
8759
 
  echo "$as_me:8759: \$? = $ac_status" >&5
 
22941
  grep -v '^ *+' conftest.er1 >conftest.err
 
22942
  rm -f conftest.er1
 
22943
  cat conftest.err >&5
 
22944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760
22945
  (exit $ac_status); } &&
8761
 
         { ac_try='test -s conftest$ac_exeext'
8762
 
  { (eval echo "$as_me:8762: \"$ac_try\"") >&5
8763
 
  (eval $ac_try) 2>&5
8764
 
  ac_status=$?
8765
 
  echo "$as_me:8765: \$? = $ac_status" >&5
 
22946
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
22947
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22948
  (eval $ac_try) 2>&5
 
22949
  ac_status=$?
 
22950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22951
  (exit $ac_status); }; } &&
 
22952
         { ac_try='test -s conftest$ac_exeext'
 
22953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22954
  (eval $ac_try) 2>&5
 
22955
  ac_status=$?
 
22956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766
22957
  (exit $ac_status); }; }; then
8767
22958
  ac_cv_lib_dld_shl_load=yes
8768
22959
else
8769
22960
  echo "$as_me: failed program was:" >&5
8770
 
cat conftest.$ac_ext >&5
 
22961
sed 's/^/| /' conftest.$ac_ext >&5
 
22962
 
8771
22963
ac_cv_lib_dld_shl_load=no
8772
22964
fi
8773
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22965
rm -f conftest.err conftest.$ac_objext \
 
22966
      conftest$ac_exeext conftest.$ac_ext
8774
22967
LIBS=$ac_check_lib_save_LIBS
8775
22968
fi
8776
 
echo "$as_me:8776: result: $ac_cv_lib_dld_shl_load" >&5
 
22969
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8777
22970
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8778
22971
if test $ac_cv_lib_dld_shl_load = yes; then
8779
22972
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8780
22973
else
8781
 
  echo "$as_me:8781: checking for dlopen in -ldl" >&5
8782
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8783
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8785
 
else
8786
 
  ac_check_lib_save_LIBS=$LIBS
8787
 
LIBS="-ldl  $LIBS"
8788
 
cat >conftest.$ac_ext <<_ACEOF
8789
 
#line 8789 "configure"
8790
 
#include "confdefs.h"
8791
 
 
8792
 
/* Override any gcc2 internal prototype to avoid an error.  */
8793
 
#ifdef __cplusplus
8794
 
extern "C"
8795
 
#endif
8796
 
/* We use char because int might match the return type of a gcc2
8797
 
   builtin and then its argument prototype would still apply.  */
8798
 
char dlopen ();
8799
 
int
8800
 
main ()
8801
 
{
8802
 
dlopen ();
8803
 
  ;
8804
 
  return 0;
8805
 
}
8806
 
_ACEOF
8807
 
rm -f conftest.$ac_objext conftest$ac_exeext
8808
 
if { (eval echo "$as_me:8808: \"$ac_link\"") >&5
8809
 
  (eval $ac_link) 2>&5
8810
 
  ac_status=$?
8811
 
  echo "$as_me:8811: \$? = $ac_status" >&5
8812
 
  (exit $ac_status); } &&
8813
 
         { ac_try='test -s conftest$ac_exeext'
8814
 
  { (eval echo "$as_me:8814: \"$ac_try\"") >&5
8815
 
  (eval $ac_try) 2>&5
8816
 
  ac_status=$?
8817
 
  echo "$as_me:8817: \$? = $ac_status" >&5
8818
 
  (exit $ac_status); }; }; then
8819
 
  ac_cv_lib_dl_dlopen=yes
8820
 
else
8821
 
  echo "$as_me: failed program was:" >&5
8822
 
cat conftest.$ac_ext >&5
8823
 
ac_cv_lib_dl_dlopen=no
8824
 
fi
8825
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8826
 
LIBS=$ac_check_lib_save_LIBS
8827
 
fi
8828
 
echo "$as_me:8828: result: $ac_cv_lib_dl_dlopen" >&5
8829
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8830
 
if test $ac_cv_lib_dl_dlopen = yes; then
8831
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8832
 
else
8833
 
  echo "$as_me:8833: checking for dlopen" >&5
 
22974
  echo "$as_me:$LINENO: checking for dlopen" >&5
8834
22975
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8835
22976
if test "${ac_cv_func_dlopen+set}" = set; then
8836
22977
  echo $ECHO_N "(cached) $ECHO_C" >&6
8837
22978
else
8838
22979
  cat >conftest.$ac_ext <<_ACEOF
8839
 
#line 8839 "configure"
8840
 
#include "confdefs.h"
 
22980
/* confdefs.h.  */
 
22981
_ACEOF
 
22982
cat confdefs.h >>conftest.$ac_ext
 
22983
cat >>conftest.$ac_ext <<_ACEOF
 
22984
/* end confdefs.h.  */
 
22985
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
22986
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22987
#define dlopen innocuous_dlopen
 
22988
 
8841
22989
/* System header to define __stub macros and hopefully few prototypes,
8842
 
    which can conflict with char dlopen (); below.  */
8843
 
#include <assert.h>
 
22990
    which can conflict with char dlopen (); below.
 
22991
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22992
    <limits.h> exists even on freestanding compilers.  */
 
22993
 
 
22994
#ifdef __STDC__
 
22995
# include <limits.h>
 
22996
#else
 
22997
# include <assert.h>
 
22998
#endif
 
22999
 
 
23000
#undef dlopen
 
23001
 
8844
23002
/* Override any gcc2 internal prototype to avoid an error.  */
8845
23003
#ifdef __cplusplus
8846
23004
extern "C"
 
23005
{
8847
23006
#endif
8848
23007
/* We use char because int might match the return type of a gcc2
8849
23008
   builtin and then its argument prototype would still apply.  */
8850
23009
char dlopen ();
8851
 
char (*f) ();
8852
 
 
8853
 
int
8854
 
main ()
8855
 
{
8856
23010
/* The GNU C library defines this for functions which it implements
8857
23011
    to always fail with ENOSYS.  Some functions are actually named
8858
23012
    something starting with __ and the normal name is an alias.  */
8859
23013
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8860
23014
choke me
8861
23015
#else
8862
 
f = dlopen;
 
23016
char (*f) () = dlopen;
 
23017
#endif
 
23018
#ifdef __cplusplus
 
23019
}
8863
23020
#endif
8864
23021
 
 
23022
int
 
23023
main ()
 
23024
{
 
23025
return f != dlopen;
8865
23026
  ;
8866
23027
  return 0;
8867
23028
}
8868
23029
_ACEOF
8869
23030
rm -f conftest.$ac_objext conftest$ac_exeext
8870
 
if { (eval echo "$as_me:8870: \"$ac_link\"") >&5
8871
 
  (eval $ac_link) 2>&5
 
23031
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23032
  (eval $ac_link) 2>conftest.er1
8872
23033
  ac_status=$?
8873
 
  echo "$as_me:8873: \$? = $ac_status" >&5
 
23034
  grep -v '^ *+' conftest.er1 >conftest.err
 
23035
  rm -f conftest.er1
 
23036
  cat conftest.err >&5
 
23037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874
23038
  (exit $ac_status); } &&
8875
 
         { ac_try='test -s conftest$ac_exeext'
8876
 
  { (eval echo "$as_me:8876: \"$ac_try\"") >&5
8877
 
  (eval $ac_try) 2>&5
8878
 
  ac_status=$?
8879
 
  echo "$as_me:8879: \$? = $ac_status" >&5
 
23039
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
23040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23041
  (eval $ac_try) 2>&5
 
23042
  ac_status=$?
 
23043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23044
  (exit $ac_status); }; } &&
 
23045
         { ac_try='test -s conftest$ac_exeext'
 
23046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23047
  (eval $ac_try) 2>&5
 
23048
  ac_status=$?
 
23049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880
23050
  (exit $ac_status); }; }; then
8881
23051
  ac_cv_func_dlopen=yes
8882
23052
else
8883
23053
  echo "$as_me: failed program was:" >&5
8884
 
cat conftest.$ac_ext >&5
 
23054
sed 's/^/| /' conftest.$ac_ext >&5
 
23055
 
8885
23056
ac_cv_func_dlopen=no
8886
23057
fi
8887
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
23058
rm -f conftest.err conftest.$ac_objext \
 
23059
      conftest$ac_exeext conftest.$ac_ext
8888
23060
fi
8889
 
echo "$as_me:8889: result: $ac_cv_func_dlopen" >&5
 
23061
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8890
23062
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8891
23063
if test $ac_cv_func_dlopen = yes; then
8892
23064
  lt_cv_dlopen="dlopen"
8893
23065
else
8894
 
  echo "$as_me:8894: checking for dlopen in -lsvld" >&5
 
23066
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
23067
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
23068
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
23069
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23070
else
 
23071
  ac_check_lib_save_LIBS=$LIBS
 
23072
LIBS="-ldl  $LIBS"
 
23073
cat >conftest.$ac_ext <<_ACEOF
 
23074
/* confdefs.h.  */
 
23075
_ACEOF
 
23076
cat confdefs.h >>conftest.$ac_ext
 
23077
cat >>conftest.$ac_ext <<_ACEOF
 
23078
/* end confdefs.h.  */
 
23079
 
 
23080
/* Override any gcc2 internal prototype to avoid an error.  */
 
23081
#ifdef __cplusplus
 
23082
extern "C"
 
23083
#endif
 
23084
/* We use char because int might match the return type of a gcc2
 
23085
   builtin and then its argument prototype would still apply.  */
 
23086
char dlopen ();
 
23087
int
 
23088
main ()
 
23089
{
 
23090
dlopen ();
 
23091
  ;
 
23092
  return 0;
 
23093
}
 
23094
_ACEOF
 
23095
rm -f conftest.$ac_objext conftest$ac_exeext
 
23096
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23097
  (eval $ac_link) 2>conftest.er1
 
23098
  ac_status=$?
 
23099
  grep -v '^ *+' conftest.er1 >conftest.err
 
23100
  rm -f conftest.er1
 
23101
  cat conftest.err >&5
 
23102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23103
  (exit $ac_status); } &&
 
23104
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
23105
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23106
  (eval $ac_try) 2>&5
 
23107
  ac_status=$?
 
23108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23109
  (exit $ac_status); }; } &&
 
23110
         { ac_try='test -s conftest$ac_exeext'
 
23111
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23112
  (eval $ac_try) 2>&5
 
23113
  ac_status=$?
 
23114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23115
  (exit $ac_status); }; }; then
 
23116
  ac_cv_lib_dl_dlopen=yes
 
23117
else
 
23118
  echo "$as_me: failed program was:" >&5
 
23119
sed 's/^/| /' conftest.$ac_ext >&5
 
23120
 
 
23121
ac_cv_lib_dl_dlopen=no
 
23122
fi
 
23123
rm -f conftest.err conftest.$ac_objext \
 
23124
      conftest$ac_exeext conftest.$ac_ext
 
23125
LIBS=$ac_check_lib_save_LIBS
 
23126
fi
 
23127
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
23128
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
23129
if test $ac_cv_lib_dl_dlopen = yes; then
 
23130
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
23131
else
 
23132
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8895
23133
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8896
23134
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8897
23135
  echo $ECHO_N "(cached) $ECHO_C" >&6
8899
23137
  ac_check_lib_save_LIBS=$LIBS
8900
23138
LIBS="-lsvld  $LIBS"
8901
23139
cat >conftest.$ac_ext <<_ACEOF
8902
 
#line 8902 "configure"
8903
 
#include "confdefs.h"
 
23140
/* confdefs.h.  */
 
23141
_ACEOF
 
23142
cat confdefs.h >>conftest.$ac_ext
 
23143
cat >>conftest.$ac_ext <<_ACEOF
 
23144
/* end confdefs.h.  */
8904
23145
 
8905
23146
/* Override any gcc2 internal prototype to avoid an error.  */
8906
23147
#ifdef __cplusplus
8918
23159
}
8919
23160
_ACEOF
8920
23161
rm -f conftest.$ac_objext conftest$ac_exeext
8921
 
if { (eval echo "$as_me:8921: \"$ac_link\"") >&5
8922
 
  (eval $ac_link) 2>&5
 
23162
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23163
  (eval $ac_link) 2>conftest.er1
8923
23164
  ac_status=$?
8924
 
  echo "$as_me:8924: \$? = $ac_status" >&5
 
23165
  grep -v '^ *+' conftest.er1 >conftest.err
 
23166
  rm -f conftest.er1
 
23167
  cat conftest.err >&5
 
23168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925
23169
  (exit $ac_status); } &&
8926
 
         { ac_try='test -s conftest$ac_exeext'
8927
 
  { (eval echo "$as_me:8927: \"$ac_try\"") >&5
8928
 
  (eval $ac_try) 2>&5
8929
 
  ac_status=$?
8930
 
  echo "$as_me:8930: \$? = $ac_status" >&5
 
23170
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
23171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23172
  (eval $ac_try) 2>&5
 
23173
  ac_status=$?
 
23174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23175
  (exit $ac_status); }; } &&
 
23176
         { ac_try='test -s conftest$ac_exeext'
 
23177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23178
  (eval $ac_try) 2>&5
 
23179
  ac_status=$?
 
23180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931
23181
  (exit $ac_status); }; }; then
8932
23182
  ac_cv_lib_svld_dlopen=yes
8933
23183
else
8934
23184
  echo "$as_me: failed program was:" >&5
8935
 
cat conftest.$ac_ext >&5
 
23185
sed 's/^/| /' conftest.$ac_ext >&5
 
23186
 
8936
23187
ac_cv_lib_svld_dlopen=no
8937
23188
fi
8938
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
23189
rm -f conftest.err conftest.$ac_objext \
 
23190
      conftest$ac_exeext conftest.$ac_ext
8939
23191
LIBS=$ac_check_lib_save_LIBS
8940
23192
fi
8941
 
echo "$as_me:8941: result: $ac_cv_lib_svld_dlopen" >&5
 
23193
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8942
23194
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8943
23195
if test $ac_cv_lib_svld_dlopen = yes; then
8944
23196
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8945
 
fi
8946
 
 
8947
 
fi
8948
 
 
8949
 
fi
8950
 
 
8951
 
fi
 
23197
else
 
23198
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
23199
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
23200
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
23201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23202
else
 
23203
  ac_check_lib_save_LIBS=$LIBS
 
23204
LIBS="-ldld  $LIBS"
 
23205
cat >conftest.$ac_ext <<_ACEOF
 
23206
/* confdefs.h.  */
 
23207
_ACEOF
 
23208
cat confdefs.h >>conftest.$ac_ext
 
23209
cat >>conftest.$ac_ext <<_ACEOF
 
23210
/* end confdefs.h.  */
 
23211
 
 
23212
/* Override any gcc2 internal prototype to avoid an error.  */
 
23213
#ifdef __cplusplus
 
23214
extern "C"
 
23215
#endif
 
23216
/* We use char because int might match the return type of a gcc2
 
23217
   builtin and then its argument prototype would still apply.  */
 
23218
char dld_link ();
 
23219
int
 
23220
main ()
 
23221
{
 
23222
dld_link ();
 
23223
  ;
 
23224
  return 0;
 
23225
}
 
23226
_ACEOF
 
23227
rm -f conftest.$ac_objext conftest$ac_exeext
 
23228
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23229
  (eval $ac_link) 2>conftest.er1
 
23230
  ac_status=$?
 
23231
  grep -v '^ *+' conftest.er1 >conftest.err
 
23232
  rm -f conftest.er1
 
23233
  cat conftest.err >&5
 
23234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23235
  (exit $ac_status); } &&
 
23236
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
23237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23238
  (eval $ac_try) 2>&5
 
23239
  ac_status=$?
 
23240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23241
  (exit $ac_status); }; } &&
 
23242
         { ac_try='test -s conftest$ac_exeext'
 
23243
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23244
  (eval $ac_try) 2>&5
 
23245
  ac_status=$?
 
23246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23247
  (exit $ac_status); }; }; then
 
23248
  ac_cv_lib_dld_dld_link=yes
 
23249
else
 
23250
  echo "$as_me: failed program was:" >&5
 
23251
sed 's/^/| /' conftest.$ac_ext >&5
 
23252
 
 
23253
ac_cv_lib_dld_dld_link=no
 
23254
fi
 
23255
rm -f conftest.err conftest.$ac_objext \
 
23256
      conftest$ac_exeext conftest.$ac_ext
 
23257
LIBS=$ac_check_lib_save_LIBS
 
23258
fi
 
23259
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
23260
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
23261
if test $ac_cv_lib_dld_dld_link = yes; then
 
23262
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
23263
fi
 
23264
 
 
23265
 
 
23266
fi
 
23267
 
 
23268
 
 
23269
fi
 
23270
 
 
23271
 
 
23272
fi
 
23273
 
 
23274
 
 
23275
fi
 
23276
 
8952
23277
 
8953
23278
fi
8954
23279
 
8972
23297
    save_LIBS="$LIBS"
8973
23298
    LIBS="$lt_cv_dlopen_libs $LIBS"
8974
23299
 
8975
 
    echo "$as_me:8975: checking whether a program can dlopen itself" >&5
 
23300
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8976
23301
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8977
23302
if test "${lt_cv_dlopen_self+set}" = set; then
8978
23303
  echo $ECHO_N "(cached) $ECHO_C" >&6
8983
23308
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8984
23309
  lt_status=$lt_dlunknown
8985
23310
  cat > conftest.$ac_ext <<EOF
8986
 
#line 8986 "configure"
 
23311
#line 23311 "configure"
8987
23312
#include "confdefs.h"
8988
23313
 
8989
23314
#if HAVE_DLFCN_H
9044
23369
    exit (status);
9045
23370
}
9046
23371
EOF
9047
 
  if { (eval echo "$as_me:9047: \"$ac_link\"") >&5
 
23372
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9048
23373
  (eval $ac_link) 2>&5
9049
23374
  ac_status=$?
9050
 
  echo "$as_me:9050: \$? = $ac_status" >&5
 
23375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051
23376
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9052
23377
    (./conftest; exit; ) 2>/dev/null
9053
23378
    lt_status=$?
9063
23388
fi
9064
23389
rm -fr conftest*
9065
23390
 
 
23391
 
9066
23392
fi
9067
 
echo "$as_me:9067: result: $lt_cv_dlopen_self" >&5
 
23393
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9068
23394
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9069
23395
 
9070
23396
    if test "x$lt_cv_dlopen_self" = xyes; then
9071
23397
      LDFLAGS="$LDFLAGS $link_static_flag"
9072
 
      echo "$as_me:9072: checking whether a statically linked program can dlopen itself" >&5
 
23398
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9073
23399
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9074
23400
if test "${lt_cv_dlopen_self_static+set}" = set; then
9075
23401
  echo $ECHO_N "(cached) $ECHO_C" >&6
9080
23406
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9081
23407
  lt_status=$lt_dlunknown
9082
23408
  cat > conftest.$ac_ext <<EOF
9083
 
#line 9083 "configure"
 
23409
#line 23409 "configure"
9084
23410
#include "confdefs.h"
9085
23411
 
9086
23412
#if HAVE_DLFCN_H
9141
23467
    exit (status);
9142
23468
}
9143
23469
EOF
9144
 
  if { (eval echo "$as_me:9144: \"$ac_link\"") >&5
 
23470
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9145
23471
  (eval $ac_link) 2>&5
9146
23472
  ac_status=$?
9147
 
  echo "$as_me:9147: \$? = $ac_status" >&5
 
23473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9148
23474
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9149
23475
    (./conftest; exit; ) 2>/dev/null
9150
23476
    lt_status=$?
9160
23486
fi
9161
23487
rm -fr conftest*
9162
23488
 
 
23489
 
9163
23490
fi
9164
 
echo "$as_me:9164: result: $lt_cv_dlopen_self_static" >&5
 
23491
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9165
23492
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9166
23493
    fi
9167
23494
 
9182
23509
  esac
9183
23510
fi
9184
23511
 
 
23512
 
9185
23513
# The else clause should only fire when bootstrapping the
9186
23514
# libtool distribution, otherwise you forgot to ship ltmain.sh
9187
23515
# with your package, and you will get complaints that there are
9188
23516
# no rules to generate ltmain.sh.
9189
23517
if test -f "$ltmain"; then
 
23518
  # See if we are running on zsh, and set the options which allow our commands through
 
23519
  # without removal of \ escapes.
 
23520
  if test -n "${ZSH_VERSION+set}" ; then
 
23521
    setopt NO_GLOB_SUBST
 
23522
  fi
9190
23523
  # Now quote all the things that may contain metacharacters while being
9191
23524
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9192
23525
  # variables and quote the copies for generation of the libtool script.
9193
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
 
23526
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
23527
    SED SHELL STRIP \
9194
23528
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9195
23529
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9196
23530
    deplibs_check_method reload_flag reload_cmds need_locks \
9208
23542
    export_dynamic_flag_spec_CXX \
9209
23543
    thread_safe_flag_spec_CXX \
9210
23544
    whole_archive_flag_spec_CXX \
 
23545
    enable_shared_with_static_runtimes_CXX \
9211
23546
    old_archive_cmds_CXX \
9212
23547
    old_archive_from_new_cmds_CXX \
9213
23548
    predep_objects_CXX \
9224
23559
    no_undefined_flag_CXX \
9225
23560
    export_symbols_cmds_CXX \
9226
23561
    hardcode_libdir_flag_spec_CXX \
 
23562
    hardcode_libdir_flag_spec_ld_CXX \
9227
23563
    hardcode_libdir_separator_CXX \
 
23564
    hardcode_automatic_CXX \
 
23565
    module_cmds_CXX \
 
23566
    module_expsym_cmds_CXX \
9228
23567
    lt_cv_prog_compiler_c_o_CXX \
9229
23568
    exclude_expsyms_CXX \
9230
23569
    include_expsyms_CXX; do
9234
23573
    old_archive_from_new_cmds_CXX | \
9235
23574
    archive_cmds_CXX | \
9236
23575
    archive_expsym_cmds_CXX | \
 
23576
    module_cmds_CXX | \
 
23577
    module_expsym_cmds_CXX | \
9237
23578
    old_archive_from_expsyms_cmds_CXX | \
9238
23579
    export_symbols_cmds_CXX | \
9239
23580
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9274
23615
# Whether or not to add -lc for building shared libraries.
9275
23616
build_libtool_need_lc=$archive_cmds_need_lc_CXX
9276
23617
 
 
23618
# Whether or not to disallow shared libs when runtime libs are static
 
23619
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
23620
 
9277
23621
# Whether or not to optimize for fast installation.
9278
23622
fast_install=$enable_fast_install
9279
23623
 
9289
23633
AR_FLAGS=$lt_AR_FLAGS
9290
23634
 
9291
23635
# A C compiler.
9292
 
LTCC=$LTCC
 
23636
LTCC=$lt_LTCC
9293
23637
 
9294
23638
# A language-specific compiler.
9295
23639
CC=$lt_compiler_CXX
9297
23641
# Is the compiler the GNU C compiler?
9298
23642
with_gcc=$GCC_CXX
9299
23643
 
 
23644
# An ERE matcher.
 
23645
EGREP=$lt_EGREP
 
23646
 
9300
23647
# The linker used to build libraries.
9301
23648
LD=$lt_LD_CXX
9302
23649
 
9307
23654
NM=$lt_NM
9308
23655
 
9309
23656
# A symbol stripping program
9310
 
STRIP=$STRIP
 
23657
STRIP=$lt_STRIP
9311
23658
 
9312
23659
# Used to examine libraries when file_magic_cmd begins "file"
9313
23660
MAGIC_CMD=$MAGIC_CMD
9337
23684
# Old archive suffix (normally "a").
9338
23685
libext="$libext"
9339
23686
 
 
23687
# Shared library suffix (normally ".so").
 
23688
shrext_cmds='$shrext_cmds'
 
23689
 
9340
23690
# Executable file suffix (normally "").
9341
23691
exeext="$exeext"
9342
23692
 
9414
23764
postinstall_cmds=$lt_postinstall_cmds
9415
23765
postuninstall_cmds=$lt_postuninstall_cmds
9416
23766
 
 
23767
# Commands used to build a loadable module (assumed same as above if empty)
 
23768
module_cmds=$lt_module_cmds_CXX
 
23769
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
23770
 
9417
23771
# Commands to strip libraries.
9418
23772
old_striplib=$lt_old_striplib
9419
23773
striplib=$lt_striplib
9484
23838
# This must work even if \$libdir does not exist.
9485
23839
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
9486
23840
 
 
23841
# If ld is used when linking, flag to hardcode \$libdir into
 
23842
# a binary during linking. This must work even if \$libdir does
 
23843
# not exist.
 
23844
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
23845
 
9487
23846
# Whether we need a single -rpath flag with a separated argument.
9488
23847
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
9489
23848
 
9490
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
23849
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9491
23850
# resulting binary.
9492
23851
hardcode_direct=$hardcode_direct_CXX
9493
23852
 
9499
23858
# the resulting binary.
9500
23859
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
9501
23860
 
 
23861
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
23862
# and all subsequent libraries and executables linked against it.
 
23863
hardcode_automatic=$hardcode_automatic_CXX
 
23864
 
9502
23865
# Variables whose values should be saved in libtool wrapper scripts and
9503
23866
# restored at relink time.
9504
23867
variables_saved_for_relink="$variables_saved_for_relink"
9534
23897
 
9535
23898
__EOF__
9536
23899
 
9537
 
else
9538
 
  # If there is no Makefile yet, we rely on a make rule to execute
9539
 
  # `config.status --recheck' to rerun these tests and create the
9540
 
  # libtool script then.
9541
 
  test -f Makefile && make "$ltmain"
9542
 
fi
 
23900
 
 
23901
else
 
23902
  # If there is no Makefile yet, we rely on a make rule to execute
 
23903
  # `config.status --recheck' to rerun these tests and create the
 
23904
  # libtool script then.
 
23905
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
23906
  if test -f "$ltmain_in"; then
 
23907
    test -f Makefile && make "$ltmain"
 
23908
  fi
 
23909
fi
 
23910
 
 
23911
 
 
23912
ac_ext=c
 
23913
ac_cpp='$CPP $CPPFLAGS'
 
23914
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
23915
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23916
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
23917
 
 
23918
CC=$lt_save_CC
 
23919
LDCXX=$LD
 
23920
LD=$lt_save_LD
 
23921
GCC=$lt_save_GCC
 
23922
with_gnu_ldcxx=$with_gnu_ld
 
23923
with_gnu_ld=$lt_save_with_gnu_ld
 
23924
lt_cv_path_LDCXX=$lt_cv_path_LD
 
23925
lt_cv_path_LD=$lt_save_path_LD
 
23926
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
23927
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
23928
 
 
23929
        else
 
23930
          tagname=""
 
23931
        fi
 
23932
        ;;
 
23933
 
 
23934
      F77)
 
23935
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
23936
 
 
23937
ac_ext=f
 
23938
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
23939
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
23940
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
23941
 
 
23942
 
 
23943
archive_cmds_need_lc_F77=no
 
23944
allow_undefined_flag_F77=
 
23945
always_export_symbols_F77=no
 
23946
archive_expsym_cmds_F77=
 
23947
export_dynamic_flag_spec_F77=
 
23948
hardcode_direct_F77=no
 
23949
hardcode_libdir_flag_spec_F77=
 
23950
hardcode_libdir_flag_spec_ld_F77=
 
23951
hardcode_libdir_separator_F77=
 
23952
hardcode_minus_L_F77=no
 
23953
hardcode_automatic_F77=no
 
23954
module_cmds_F77=
 
23955
module_expsym_cmds_F77=
 
23956
link_all_deplibs_F77=unknown
 
23957
old_archive_cmds_F77=$old_archive_cmds
 
23958
no_undefined_flag_F77=
 
23959
whole_archive_flag_spec_F77=
 
23960
enable_shared_with_static_runtimes_F77=no
 
23961
 
 
23962
# Source file extension for f77 test sources.
 
23963
ac_ext=f
 
23964
 
 
23965
# Object file extension for compiled f77 test sources.
 
23966
objext=o
 
23967
objext_F77=$objext
 
23968
 
 
23969
# Code to be used in simple compile tests
 
23970
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
23971
 
 
23972
# Code to be used in simple link tests
 
23973
lt_simple_link_test_code="      program t\n      end\n"
 
23974
 
 
23975
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
23976
 
 
23977
# If no C compiler was specified, use CC.
 
23978
LTCC=${LTCC-"$CC"}
 
23979
 
 
23980
# Allow CC to be a program name with arguments.
 
23981
compiler=$CC
 
23982
 
 
23983
 
 
23984
# Allow CC to be a program name with arguments.
 
23985
lt_save_CC="$CC"
 
23986
CC=${F77-"f77"}
 
23987
compiler=$CC
 
23988
compiler_F77=$CC
 
23989
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
23990
 
 
23991
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
23992
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
23993
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
23994
echo "${ECHO_T}$can_build_shared" >&6
 
23995
 
 
23996
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
23997
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
23998
test "$can_build_shared" = "no" && enable_shared=no
 
23999
 
 
24000
# On AIX, shared libraries and static libraries use the same namespace, and
 
24001
# are all built from PIC.
 
24002
case "$host_os" in
 
24003
aix3*)
 
24004
  test "$enable_shared" = yes && enable_static=no
 
24005
  if test -n "$RANLIB"; then
 
24006
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
24007
    postinstall_cmds='$RANLIB $lib'
 
24008
  fi
 
24009
  ;;
 
24010
aix4* | aix5*)
 
24011
  test "$enable_shared" = yes && enable_static=no
 
24012
  ;;
 
24013
esac
 
24014
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
24015
echo "${ECHO_T}$enable_shared" >&6
 
24016
 
 
24017
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
24018
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
24019
# Make sure either enable_shared or enable_static is yes.
 
24020
test "$enable_shared" = yes || enable_static=yes
 
24021
echo "$as_me:$LINENO: result: $enable_static" >&5
 
24022
echo "${ECHO_T}$enable_static" >&6
 
24023
 
 
24024
test "$ld_shlibs_F77" = no && can_build_shared=no
 
24025
 
 
24026
GCC_F77="$G77"
 
24027
LD_F77="$LD"
 
24028
 
 
24029
lt_prog_compiler_wl_F77=
 
24030
lt_prog_compiler_pic_F77=
 
24031
lt_prog_compiler_static_F77=
 
24032
 
 
24033
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
24034
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
24035
 
 
24036
  if test "$GCC" = yes; then
 
24037
    lt_prog_compiler_wl_F77='-Wl,'
 
24038
    lt_prog_compiler_static_F77='-static'
 
24039
 
 
24040
    case $host_os in
 
24041
      aix*)
 
24042
      # All AIX code is PIC.
 
24043
      if test "$host_cpu" = ia64; then
 
24044
        # AIX 5 now supports IA64 processor
 
24045
        lt_prog_compiler_static_F77='-Bstatic'
 
24046
      fi
 
24047
      ;;
 
24048
 
 
24049
    amigaos*)
 
24050
      # FIXME: we need at least 68020 code to build shared libraries, but
 
24051
      # adding the `-m68020' flag to GCC prevents building anything better,
 
24052
      # like `-m68040'.
 
24053
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
24054
      ;;
 
24055
 
 
24056
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
24057
      # PIC is the default for these OSes.
 
24058
      ;;
 
24059
 
 
24060
    mingw* | pw32* | os2*)
 
24061
      # This hack is so that the source file can tell whether it is being
 
24062
      # built for inclusion in a dll (and should export symbols for example).
 
24063
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
24064
      ;;
 
24065
 
 
24066
    darwin* | rhapsody*)
 
24067
      # PIC is the default on this platform
 
24068
      # Common symbols not allowed in MH_DYLIB files
 
24069
      lt_prog_compiler_pic_F77='-fno-common'
 
24070
      ;;
 
24071
 
 
24072
    msdosdjgpp*)
 
24073
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
24074
      # on systems that don't support them.
 
24075
      lt_prog_compiler_can_build_shared_F77=no
 
24076
      enable_shared=no
 
24077
      ;;
 
24078
 
 
24079
    sysv4*MP*)
 
24080
      if test -d /usr/nec; then
 
24081
        lt_prog_compiler_pic_F77=-Kconform_pic
 
24082
      fi
 
24083
      ;;
 
24084
 
 
24085
    hpux*)
 
24086
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
24087
      # not for PA HP-UX.
 
24088
      case "$host_cpu" in
 
24089
      hppa*64*|ia64*)
 
24090
        # +Z the default
 
24091
        ;;
 
24092
      *)
 
24093
        lt_prog_compiler_pic_F77='-fPIC'
 
24094
        ;;
 
24095
      esac
 
24096
      ;;
 
24097
 
 
24098
    *)
 
24099
      lt_prog_compiler_pic_F77='-fPIC'
 
24100
      ;;
 
24101
    esac
 
24102
  else
 
24103
    # PORTME Check for flag to pass linker flags through the system compiler.
 
24104
    case $host_os in
 
24105
    aix*)
 
24106
      lt_prog_compiler_wl_F77='-Wl,'
 
24107
      if test "$host_cpu" = ia64; then
 
24108
        # AIX 5 now supports IA64 processor
 
24109
        lt_prog_compiler_static_F77='-Bstatic'
 
24110
      else
 
24111
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
24112
      fi
 
24113
      ;;
 
24114
 
 
24115
    mingw* | pw32* | os2*)
 
24116
      # This hack is so that the source file can tell whether it is being
 
24117
      # built for inclusion in a dll (and should export symbols for example).
 
24118
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
24119
      ;;
 
24120
 
 
24121
    hpux9* | hpux10* | hpux11*)
 
24122
      lt_prog_compiler_wl_F77='-Wl,'
 
24123
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
24124
      # not for PA HP-UX.
 
24125
      case "$host_cpu" in
 
24126
      hppa*64*|ia64*)
 
24127
        # +Z the default
 
24128
        ;;
 
24129
      *)
 
24130
        lt_prog_compiler_pic_F77='+Z'
 
24131
        ;;
 
24132
      esac
 
24133
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
24134
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
24135
      ;;
 
24136
 
 
24137
    irix5* | irix6* | nonstopux*)
 
24138
      lt_prog_compiler_wl_F77='-Wl,'
 
24139
      # PIC (with -KPIC) is the default.
 
24140
      lt_prog_compiler_static_F77='-non_shared'
 
24141
      ;;
 
24142
 
 
24143
    newsos6)
 
24144
      lt_prog_compiler_pic_F77='-KPIC'
 
24145
      lt_prog_compiler_static_F77='-Bstatic'
 
24146
      ;;
 
24147
 
 
24148
    linux*)
 
24149
      case $CC in
 
24150
      icc* | ecc*)
 
24151
        lt_prog_compiler_wl_F77='-Wl,'
 
24152
        lt_prog_compiler_pic_F77='-KPIC'
 
24153
        lt_prog_compiler_static_F77='-static'
 
24154
        ;;
 
24155
      ccc*)
 
24156
        lt_prog_compiler_wl_F77='-Wl,'
 
24157
        # All Alpha code is PIC.
 
24158
        lt_prog_compiler_static_F77='-non_shared'
 
24159
        ;;
 
24160
      esac
 
24161
      ;;
 
24162
 
 
24163
    osf3* | osf4* | osf5*)
 
24164
      lt_prog_compiler_wl_F77='-Wl,'
 
24165
      # All OSF/1 code is PIC.
 
24166
      lt_prog_compiler_static_F77='-non_shared'
 
24167
      ;;
 
24168
 
 
24169
    sco3.2v5*)
 
24170
      lt_prog_compiler_pic_F77='-Kpic'
 
24171
      lt_prog_compiler_static_F77='-dn'
 
24172
      ;;
 
24173
 
 
24174
    solaris*)
 
24175
      lt_prog_compiler_wl_F77='-Wl,'
 
24176
      lt_prog_compiler_pic_F77='-KPIC'
 
24177
      lt_prog_compiler_static_F77='-Bstatic'
 
24178
      ;;
 
24179
 
 
24180
    sunos4*)
 
24181
      lt_prog_compiler_wl_F77='-Qoption ld '
 
24182
      lt_prog_compiler_pic_F77='-PIC'
 
24183
      lt_prog_compiler_static_F77='-Bstatic'
 
24184
      ;;
 
24185
 
 
24186
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
24187
      lt_prog_compiler_wl_F77='-Wl,'
 
24188
      lt_prog_compiler_pic_F77='-KPIC'
 
24189
      lt_prog_compiler_static_F77='-Bstatic'
 
24190
      ;;
 
24191
 
 
24192
    sysv4*MP*)
 
24193
      if test -d /usr/nec ;then
 
24194
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
24195
        lt_prog_compiler_static_F77='-Bstatic'
 
24196
      fi
 
24197
      ;;
 
24198
 
 
24199
    uts4*)
 
24200
      lt_prog_compiler_pic_F77='-pic'
 
24201
      lt_prog_compiler_static_F77='-Bstatic'
 
24202
      ;;
 
24203
 
 
24204
    *)
 
24205
      lt_prog_compiler_can_build_shared_F77=no
 
24206
      ;;
 
24207
    esac
 
24208
  fi
 
24209
 
 
24210
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
24211
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
24212
 
 
24213
#
 
24214
# Check to make sure the PIC flag actually works.
 
24215
#
 
24216
if test -n "$lt_prog_compiler_pic_F77"; then
 
24217
 
 
24218
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
24219
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
24220
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
24221
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24222
else
 
24223
  lt_prog_compiler_pic_works_F77=no
 
24224
  ac_outfile=conftest.$ac_objext
 
24225
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
24226
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
24227
   # Insert the option either (1) after the last *FLAGS variable, or
 
24228
   # (2) before a word containing "conftest.", or (3) at the end.
 
24229
   # Note that $ac_compile itself does not contain backslashes and begins
 
24230
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
24231
   # The option is referenced via a variable to avoid confusing sed.
 
24232
   lt_compile=`echo "$ac_compile" | $SED \
 
24233
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
24234
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
24235
   -e 's:$: $lt_compiler_flag:'`
 
24236
   (eval echo "\"\$as_me:24236: $lt_compile\"" >&5)
 
24237
   (eval "$lt_compile" 2>conftest.err)
 
24238
   ac_status=$?
 
24239
   cat conftest.err >&5
 
24240
   echo "$as_me:24240: \$? = $ac_status" >&5
 
24241
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
24242
     # The compiler can only warn and ignore the option if not recognized
 
24243
     # So say no if there are warnings
 
24244
     if test ! -s conftest.err; then
 
24245
       lt_prog_compiler_pic_works_F77=yes
 
24246
     fi
 
24247
   fi
 
24248
   $rm conftest*
 
24249
 
 
24250
fi
 
24251
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
24252
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
24253
 
 
24254
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
24255
    case $lt_prog_compiler_pic_F77 in
 
24256
     "" | " "*) ;;
 
24257
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
24258
     esac
 
24259
else
 
24260
    lt_prog_compiler_pic_F77=
 
24261
     lt_prog_compiler_can_build_shared_F77=no
 
24262
fi
 
24263
 
 
24264
fi
 
24265
case "$host_os" in
 
24266
  # For platforms which do not support PIC, -DPIC is meaningless:
 
24267
  *djgpp*)
 
24268
    lt_prog_compiler_pic_F77=
 
24269
    ;;
 
24270
  *)
 
24271
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
24272
    ;;
 
24273
esac
 
24274
 
 
24275
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
24276
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
24277
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
24278
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24279
else
 
24280
  lt_cv_prog_compiler_c_o_F77=no
 
24281
   $rm -r conftest 2>/dev/null
 
24282
   mkdir conftest
 
24283
   cd conftest
 
24284
   mkdir out
 
24285
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
24286
 
 
24287
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
24288
   # Insert the option either (1) after the last *FLAGS variable, or
 
24289
   # (2) before a word containing "conftest.", or (3) at the end.
 
24290
   # Note that $ac_compile itself does not contain backslashes and begins
 
24291
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
24292
   lt_compile=`echo "$ac_compile" | $SED \
 
24293
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
24294
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
24295
   -e 's:$: $lt_compiler_flag:'`
 
24296
   (eval echo "\"\$as_me:24296: $lt_compile\"" >&5)
 
24297
   (eval "$lt_compile" 2>out/conftest.err)
 
24298
   ac_status=$?
 
24299
   cat out/conftest.err >&5
 
24300
   echo "$as_me:24300: \$? = $ac_status" >&5
 
24301
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
24302
   then
 
24303
     # The compiler can only warn and ignore the option if not recognized
 
24304
     # So say no if there are warnings
 
24305
     if test ! -s out/conftest.err; then
 
24306
       lt_cv_prog_compiler_c_o_F77=yes
 
24307
     fi
 
24308
   fi
 
24309
   chmod u+w .
 
24310
   $rm conftest*
 
24311
   # SGI C++ compiler will create directory out/ii_files/ for
 
24312
   # template instantiation
 
24313
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
24314
   $rm out/* && rmdir out
 
24315
   cd ..
 
24316
   rmdir conftest
 
24317
   $rm conftest*
 
24318
 
 
24319
fi
 
24320
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
24321
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
24322
 
 
24323
 
 
24324
hard_links="nottested"
 
24325
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
24326
  # do not overwrite the value of need_locks provided by the user
 
24327
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
24328
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
24329
  hard_links=yes
 
24330
  $rm conftest*
 
24331
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
24332
  touch conftest.a
 
24333
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
24334
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
24335
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
24336
echo "${ECHO_T}$hard_links" >&6
 
24337
  if test "$hard_links" = no; then
 
24338
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
24339
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
24340
    need_locks=warn
 
24341
  fi
 
24342
else
 
24343
  need_locks=no
 
24344
fi
 
24345
 
 
24346
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
24347
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
24348
 
 
24349
  runpath_var=
 
24350
  allow_undefined_flag_F77=
 
24351
  enable_shared_with_static_runtimes_F77=no
 
24352
  archive_cmds_F77=
 
24353
  archive_expsym_cmds_F77=
 
24354
  old_archive_From_new_cmds_F77=
 
24355
  old_archive_from_expsyms_cmds_F77=
 
24356
  export_dynamic_flag_spec_F77=
 
24357
  whole_archive_flag_spec_F77=
 
24358
  thread_safe_flag_spec_F77=
 
24359
  hardcode_libdir_flag_spec_F77=
 
24360
  hardcode_libdir_flag_spec_ld_F77=
 
24361
  hardcode_libdir_separator_F77=
 
24362
  hardcode_direct_F77=no
 
24363
  hardcode_minus_L_F77=no
 
24364
  hardcode_shlibpath_var_F77=unsupported
 
24365
  link_all_deplibs_F77=unknown
 
24366
  hardcode_automatic_F77=no
 
24367
  module_cmds_F77=
 
24368
  module_expsym_cmds_F77=
 
24369
  always_export_symbols_F77=no
 
24370
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
24371
  # include_expsyms should be a list of space-separated symbols to be *always*
 
24372
  # included in the symbol list
 
24373
  include_expsyms_F77=
 
24374
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
24375
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
24376
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
24377
  # as well as any symbol that contains `d'.
 
24378
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
24379
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
24380
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
24381
  # the symbol is explicitly referenced.  Since portable code cannot
 
24382
  # rely on this symbol name, it's probably fine to never include it in
 
24383
  # preloaded symbol tables.
 
24384
  extract_expsyms_cmds=
 
24385
 
 
24386
  case $host_os in
 
24387
  cygwin* | mingw* | pw32*)
 
24388
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
24389
    # When not using gcc, we currently assume that we are using
 
24390
    # Microsoft Visual C++.
 
24391
    if test "$GCC" != yes; then
 
24392
      with_gnu_ld=no
 
24393
    fi
 
24394
    ;;
 
24395
  openbsd*)
 
24396
    with_gnu_ld=no
 
24397
    ;;
 
24398
  esac
 
24399
 
 
24400
  ld_shlibs_F77=yes
 
24401
  if test "$with_gnu_ld" = yes; then
 
24402
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
24403
    wlarc='${wl}'
 
24404
 
 
24405
    # See if GNU ld supports shared libraries.
 
24406
    case $host_os in
 
24407
    aix3* | aix4* | aix5*)
 
24408
      # On AIX/PPC, the GNU linker is very broken
 
24409
      if test "$host_cpu" != ia64; then
 
24410
        ld_shlibs_F77=no
 
24411
        cat <<EOF 1>&2
 
24412
 
 
24413
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
24414
*** to be unable to reliably create shared libraries on AIX.
 
24415
*** Therefore, libtool is disabling shared libraries support.  If you
 
24416
*** really care for shared libraries, you may want to modify your PATH
 
24417
*** so that a non-GNU linker is found, and then restart.
 
24418
 
 
24419
EOF
 
24420
      fi
 
24421
      ;;
 
24422
 
 
24423
    amigaos*)
 
24424
      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)'
 
24425
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
24426
      hardcode_minus_L_F77=yes
 
24427
 
 
24428
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
24429
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
24430
      # to version 4, is to share data among multiple programs linked
 
24431
      # with the same dynamic library.  Since this doesn't match the
 
24432
      # behavior of shared libraries on other platforms, we can't use
 
24433
      # them.
 
24434
      ld_shlibs_F77=no
 
24435
      ;;
 
24436
 
 
24437
    beos*)
 
24438
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
24439
        allow_undefined_flag_F77=unsupported
 
24440
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
24441
        # support --undefined.  This deserves some investigation.  FIXME
 
24442
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
24443
      else
 
24444
        ld_shlibs_F77=no
 
24445
      fi
 
24446
      ;;
 
24447
 
 
24448
    cygwin* | mingw* | pw32*)
 
24449
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
24450
      # as there is no search path for DLLs.
 
24451
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
24452
      allow_undefined_flag_F77=unsupported
 
24453
      always_export_symbols_F77=no
 
24454
      enable_shared_with_static_runtimes_F77=yes
 
24455
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
24456
 
 
24457
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
24458
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
24459
        # If the export-symbols file already is a .def file (1st line
 
24460
        # is EXPORTS), use it as is; otherwise, prepend...
 
24461
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
24462
          cp $export_symbols $output_objdir/$soname.def;
 
24463
        else
 
24464
          echo EXPORTS > $output_objdir/$soname.def;
 
24465
          cat $export_symbols >> $output_objdir/$soname.def;
 
24466
        fi~
 
24467
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
24468
      else
 
24469
        ld_shlibs=no
 
24470
      fi
 
24471
      ;;
 
24472
 
 
24473
    netbsd* | knetbsd*-gnu)
 
24474
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
24475
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
24476
        wlarc=
 
24477
      else
 
24478
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
24479
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
24480
      fi
 
24481
      ;;
 
24482
 
 
24483
    solaris* | sysv5*)
 
24484
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
24485
        ld_shlibs_F77=no
 
24486
        cat <<EOF 1>&2
 
24487
 
 
24488
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
24489
*** create shared libraries on Solaris systems.  Therefore, libtool
 
24490
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
24491
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
24492
*** your PATH or compiler configuration so that the native linker is
 
24493
*** used, and then restart.
 
24494
 
 
24495
EOF
 
24496
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
24497
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
24498
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
24499
      else
 
24500
        ld_shlibs_F77=no
 
24501
      fi
 
24502
      ;;
 
24503
 
 
24504
    sunos4*)
 
24505
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
24506
      wlarc=
 
24507
      hardcode_direct_F77=yes
 
24508
      hardcode_shlibpath_var_F77=no
 
24509
      ;;
 
24510
 
 
24511
  linux*)
 
24512
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
24513
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
24514
        archive_cmds_F77="$tmp_archive_cmds"
 
24515
      supports_anon_versioning=no
 
24516
      case `$LD -v 2>/dev/null` in
 
24517
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
24518
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
24519
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
24520
        *\ 2.11.*) ;; # other 2.11 versions
 
24521
        *) supports_anon_versioning=yes ;;
 
24522
      esac
 
24523
      if test $supports_anon_versioning = yes; then
 
24524
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
24525
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
24526
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
24527
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
24528
      else
 
24529
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
24530
      fi
 
24531
      link_all_deplibs_F77=no
 
24532
    else
 
24533
      ld_shlibs_F77=no
 
24534
    fi
 
24535
    ;;
 
24536
 
 
24537
    *)
 
24538
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
24539
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
24540
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
24541
      else
 
24542
        ld_shlibs_F77=no
 
24543
      fi
 
24544
      ;;
 
24545
    esac
 
24546
 
 
24547
    if test "$ld_shlibs_F77" = yes; then
 
24548
      runpath_var=LD_RUN_PATH
 
24549
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
24550
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
24551
      # ancient GNU ld didn't support --whole-archive et. al.
 
24552
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
24553
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
24554
      else
 
24555
        whole_archive_flag_spec_F77=
 
24556
      fi
 
24557
    fi
 
24558
  else
 
24559
    # PORTME fill in a description of your system's linker (not GNU ld)
 
24560
    case $host_os in
 
24561
    aix3*)
 
24562
      allow_undefined_flag_F77=unsupported
 
24563
      always_export_symbols_F77=yes
 
24564
      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'
 
24565
      # Note: this linker hardcodes the directories in LIBPATH if there
 
24566
      # are no directories specified by -L.
 
24567
      hardcode_minus_L_F77=yes
 
24568
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
24569
        # Neither direct hardcoding nor static linking is supported with a
 
24570
        # broken collect2.
 
24571
        hardcode_direct_F77=unsupported
 
24572
      fi
 
24573
      ;;
 
24574
 
 
24575
    aix4* | aix5*)
 
24576
      if test "$host_cpu" = ia64; then
 
24577
        # On IA64, the linker does run time linking by default, so we don't
 
24578
        # have to do anything special.
 
24579
        aix_use_runtimelinking=no
 
24580
        exp_sym_flag='-Bexport'
 
24581
        no_entry_flag=""
 
24582
      else
 
24583
        # If we're using GNU nm, then we don't want the "-C" option.
 
24584
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
24585
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
24586
          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'
 
24587
        else
 
24588
          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'
 
24589
        fi
 
24590
        aix_use_runtimelinking=no
 
24591
 
 
24592
        # Test if we are trying to use run time linking or normal
 
24593
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
24594
        # need to do runtime linking.
 
24595
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
24596
          for ld_flag in $LDFLAGS; do
 
24597
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
24598
            aix_use_runtimelinking=yes
 
24599
            break
 
24600
          fi
 
24601
          done
 
24602
        esac
 
24603
 
 
24604
        exp_sym_flag='-bexport'
 
24605
        no_entry_flag='-bnoentry'
 
24606
      fi
 
24607
 
 
24608
      # When large executables or shared objects are built, AIX ld can
 
24609
      # have problems creating the table of contents.  If linking a library
 
24610
      # or program results in "error TOC overflow" add -mminimal-toc to
 
24611
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
24612
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
24613
 
 
24614
      archive_cmds_F77=''
 
24615
      hardcode_direct_F77=yes
 
24616
      hardcode_libdir_separator_F77=':'
 
24617
      link_all_deplibs_F77=yes
 
24618
 
 
24619
      if test "$GCC" = yes; then
 
24620
        case $host_os in aix4.012|aix4.012.*)
 
24621
        # We only want to do this on AIX 4.2 and lower, the check
 
24622
        # below for broken collect2 doesn't work under 4.3+
 
24623
          collect2name=`${CC} -print-prog-name=collect2`
 
24624
          if test -f "$collect2name" && \
 
24625
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
24626
          then
 
24627
          # We have reworked collect2
 
24628
          hardcode_direct_F77=yes
 
24629
          else
 
24630
          # We have old collect2
 
24631
          hardcode_direct_F77=unsupported
 
24632
          # It fails to find uninstalled libraries when the uninstalled
 
24633
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
24634
          # to unsupported forces relinking
 
24635
          hardcode_minus_L_F77=yes
 
24636
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
24637
          hardcode_libdir_separator_F77=
 
24638
          fi
 
24639
        esac
 
24640
        shared_flag='-shared'
 
24641
      else
 
24642
        # not using gcc
 
24643
        if test "$host_cpu" = ia64; then
 
24644
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
24645
        # chokes on -Wl,-G. The following line is correct:
 
24646
          shared_flag='-G'
 
24647
        else
 
24648
        if test "$aix_use_runtimelinking" = yes; then
 
24649
            shared_flag='${wl}-G'
 
24650
          else
 
24651
            shared_flag='${wl}-bM:SRE'
 
24652
        fi
 
24653
        fi
 
24654
      fi
 
24655
 
 
24656
      # It seems that -bexpall does not export symbols beginning with
 
24657
      # underscore (_), so it is better to generate a list of symbols to export.
 
24658
      always_export_symbols_F77=yes
 
24659
      if test "$aix_use_runtimelinking" = yes; then
 
24660
        # Warning - without using the other runtime loading flags (-brtl),
 
24661
        # -berok will link without error, but may produce a broken library.
 
24662
        allow_undefined_flag_F77='-berok'
 
24663
       # Determine the default libpath from the value encoded in an empty executable.
 
24664
       cat >conftest.$ac_ext <<_ACEOF
 
24665
      program main
 
24666
 
 
24667
      end
 
24668
_ACEOF
 
24669
rm -f conftest.$ac_objext conftest$ac_exeext
 
24670
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24671
  (eval $ac_link) 2>conftest.er1
 
24672
  ac_status=$?
 
24673
  grep -v '^ *+' conftest.er1 >conftest.err
 
24674
  rm -f conftest.er1
 
24675
  cat conftest.err >&5
 
24676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24677
  (exit $ac_status); } &&
 
24678
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
24679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24680
  (eval $ac_try) 2>&5
 
24681
  ac_status=$?
 
24682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24683
  (exit $ac_status); }; } &&
 
24684
         { ac_try='test -s conftest$ac_exeext'
 
24685
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24686
  (eval $ac_try) 2>&5
 
24687
  ac_status=$?
 
24688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24689
  (exit $ac_status); }; }; then
 
24690
 
 
24691
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
24692
}'`
 
24693
# Check for a 64-bit object if we didn't find anything.
 
24694
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; }
 
24695
}'`; fi
 
24696
else
 
24697
  echo "$as_me: failed program was:" >&5
 
24698
sed 's/^/| /' conftest.$ac_ext >&5
 
24699
 
 
24700
fi
 
24701
rm -f conftest.err conftest.$ac_objext \
 
24702
      conftest$ac_exeext conftest.$ac_ext
 
24703
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
24704
 
 
24705
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
24706
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
24707
       else
 
24708
        if test "$host_cpu" = ia64; then
 
24709
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
24710
          allow_undefined_flag_F77="-z nodefs"
 
24711
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
24712
        else
 
24713
         # Determine the default libpath from the value encoded in an empty executable.
 
24714
         cat >conftest.$ac_ext <<_ACEOF
 
24715
      program main
 
24716
 
 
24717
      end
 
24718
_ACEOF
 
24719
rm -f conftest.$ac_objext conftest$ac_exeext
 
24720
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
24721
  (eval $ac_link) 2>conftest.er1
 
24722
  ac_status=$?
 
24723
  grep -v '^ *+' conftest.er1 >conftest.err
 
24724
  rm -f conftest.er1
 
24725
  cat conftest.err >&5
 
24726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24727
  (exit $ac_status); } &&
 
24728
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
24729
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24730
  (eval $ac_try) 2>&5
 
24731
  ac_status=$?
 
24732
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24733
  (exit $ac_status); }; } &&
 
24734
         { ac_try='test -s conftest$ac_exeext'
 
24735
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24736
  (eval $ac_try) 2>&5
 
24737
  ac_status=$?
 
24738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24739
  (exit $ac_status); }; }; then
 
24740
 
 
24741
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
24742
}'`
 
24743
# Check for a 64-bit object if we didn't find anything.
 
24744
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; }
 
24745
}'`; fi
 
24746
else
 
24747
  echo "$as_me: failed program was:" >&5
 
24748
sed 's/^/| /' conftest.$ac_ext >&5
 
24749
 
 
24750
fi
 
24751
rm -f conftest.err conftest.$ac_objext \
 
24752
      conftest$ac_exeext conftest.$ac_ext
 
24753
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
24754
 
 
24755
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
24756
          # Warning - without using the other run time loading flags,
 
24757
          # -berok will link without error, but may produce a broken library.
 
24758
          no_undefined_flag_F77=' ${wl}-bernotok'
 
24759
          allow_undefined_flag_F77=' ${wl}-berok'
 
24760
          # -bexpall does not export symbols beginning with underscore (_)
 
24761
          always_export_symbols_F77=yes
 
24762
          # Exported symbols can be pulled into shared objects from archives
 
24763
          whole_archive_flag_spec_F77=' '
 
24764
          archive_cmds_need_lc_F77=yes
 
24765
          # This is similar to how AIX traditionally builds it's shared libraries.
 
24766
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
24767
        fi
 
24768
      fi
 
24769
      ;;
 
24770
 
 
24771
    amigaos*)
 
24772
      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)'
 
24773
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
24774
      hardcode_minus_L_F77=yes
 
24775
      # see comment about different semantics on the GNU ld section
 
24776
      ld_shlibs_F77=no
 
24777
      ;;
 
24778
 
 
24779
    bsdi4*)
 
24780
      export_dynamic_flag_spec_F77=-rdynamic
 
24781
      ;;
 
24782
 
 
24783
    cygwin* | mingw* | pw32*)
 
24784
      # When not using gcc, we currently assume that we are using
 
24785
      # Microsoft Visual C++.
 
24786
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
24787
      # no search path for DLLs.
 
24788
      hardcode_libdir_flag_spec_F77=' '
 
24789
      allow_undefined_flag_F77=unsupported
 
24790
      # Tell ltmain to make .lib files, not .a files.
 
24791
      libext=lib
 
24792
      # Tell ltmain to make .dll files, not .so files.
 
24793
      shrext_cmds=".dll"
 
24794
      # FIXME: Setting linknames here is a bad hack.
 
24795
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
24796
      # The linker will automatically build a .lib file if we build a DLL.
 
24797
      old_archive_From_new_cmds_F77='true'
 
24798
      # FIXME: Should let the user specify the lib program.
 
24799
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
24800
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
24801
      enable_shared_with_static_runtimes_F77=yes
 
24802
      ;;
 
24803
 
 
24804
    darwin* | rhapsody*)
 
24805
    if test "$GXX" = yes ; then
 
24806
      archive_cmds_need_lc_F77=no
 
24807
      case "$host_os" in
 
24808
      rhapsody* | darwin1.[012])
 
24809
        allow_undefined_flag_F77='-undefined suppress'
 
24810
        ;;
 
24811
      *) # Darwin 1.3 on
 
24812
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
24813
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
24814
      else
 
24815
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
24816
          10.[012])
 
24817
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
24818
            ;;
 
24819
          10.*)
 
24820
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
24821
            ;;
 
24822
        esac
 
24823
      fi
 
24824
        ;;
 
24825
      esac
 
24826
        lt_int_apple_cc_single_mod=no
 
24827
        output_verbose_link_cmd='echo'
 
24828
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
24829
          lt_int_apple_cc_single_mod=yes
 
24830
        fi
 
24831
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
24832
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
24833
        else
 
24834
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
 
24835
      fi
 
24836
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
24837
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
24838
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
24839
          archive_expsym_cmds_F77='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}'
 
24840
        else
 
24841
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
 
24842
        fi
 
24843
          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}'
 
24844
      hardcode_direct_F77=no
 
24845
      hardcode_automatic_F77=yes
 
24846
      hardcode_shlibpath_var_F77=unsupported
 
24847
      whole_archive_flag_spec_F77='-all_load $convenience'
 
24848
      link_all_deplibs_F77=yes
 
24849
    else
 
24850
      ld_shlibs_F77=no
 
24851
    fi
 
24852
      ;;
 
24853
 
 
24854
    dgux*)
 
24855
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
24856
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
24857
      hardcode_shlibpath_var_F77=no
 
24858
      ;;
 
24859
 
 
24860
    freebsd1*)
 
24861
      ld_shlibs_F77=no
 
24862
      ;;
 
24863
 
 
24864
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
24865
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
24866
    # does not break anything, and helps significantly (at the cost of a little
 
24867
    # extra space).
 
24868
    freebsd2.2*)
 
24869
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
24870
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
24871
      hardcode_direct_F77=yes
 
24872
      hardcode_shlibpath_var_F77=no
 
24873
      ;;
 
24874
 
 
24875
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
24876
    freebsd2*)
 
24877
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
24878
      hardcode_direct_F77=yes
 
24879
      hardcode_minus_L_F77=yes
 
24880
      hardcode_shlibpath_var_F77=no
 
24881
      ;;
 
24882
 
 
24883
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
24884
    freebsd* | kfreebsd*-gnu)
 
24885
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
24886
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
24887
      hardcode_direct_F77=yes
 
24888
      hardcode_shlibpath_var_F77=no
 
24889
      ;;
 
24890
 
 
24891
    hpux9*)
 
24892
      if test "$GCC" = yes; then
 
24893
        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'
 
24894
      else
 
24895
        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'
 
24896
      fi
 
24897
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
24898
      hardcode_libdir_separator_F77=:
 
24899
      hardcode_direct_F77=yes
 
24900
 
 
24901
      # hardcode_minus_L: Not really in the search PATH,
 
24902
      # but as the default location of the library.
 
24903
      hardcode_minus_L_F77=yes
 
24904
      export_dynamic_flag_spec_F77='${wl}-E'
 
24905
      ;;
 
24906
 
 
24907
    hpux10* | hpux11*)
 
24908
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
24909
        case "$host_cpu" in
 
24910
        hppa*64*|ia64*)
 
24911
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
24912
          ;;
 
24913
        *)
 
24914
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
24915
          ;;
 
24916
        esac
 
24917
      else
 
24918
        case "$host_cpu" in
 
24919
        hppa*64*|ia64*)
 
24920
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
24921
          ;;
 
24922
        *)
 
24923
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
24924
          ;;
 
24925
        esac
 
24926
      fi
 
24927
      if test "$with_gnu_ld" = no; then
 
24928
        case "$host_cpu" in
 
24929
        hppa*64*)
 
24930
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
24931
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
24932
          hardcode_libdir_separator_F77=:
 
24933
          hardcode_direct_F77=no
 
24934
          hardcode_shlibpath_var_F77=no
 
24935
          ;;
 
24936
        ia64*)
 
24937
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
24938
          hardcode_direct_F77=no
 
24939
          hardcode_shlibpath_var_F77=no
 
24940
 
 
24941
          # hardcode_minus_L: Not really in the search PATH,
 
24942
          # but as the default location of the library.
 
24943
          hardcode_minus_L_F77=yes
 
24944
          ;;
 
24945
        *)
 
24946
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
24947
          hardcode_libdir_separator_F77=:
 
24948
          hardcode_direct_F77=yes
 
24949
          export_dynamic_flag_spec_F77='${wl}-E'
 
24950
 
 
24951
          # hardcode_minus_L: Not really in the search PATH,
 
24952
          # but as the default location of the library.
 
24953
          hardcode_minus_L_F77=yes
 
24954
          ;;
 
24955
        esac
 
24956
      fi
 
24957
      ;;
 
24958
 
 
24959
    irix5* | irix6* | nonstopux*)
 
24960
      if test "$GCC" = yes; then
 
24961
        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'
 
24962
      else
 
24963
        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'
 
24964
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
24965
      fi
 
24966
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
24967
      hardcode_libdir_separator_F77=:
 
24968
      link_all_deplibs_F77=yes
 
24969
      ;;
 
24970
 
 
24971
    netbsd* | knetbsd*-gnu)
 
24972
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
24973
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
24974
      else
 
24975
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
24976
      fi
 
24977
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
24978
      hardcode_direct_F77=yes
 
24979
      hardcode_shlibpath_var_F77=no
 
24980
      ;;
 
24981
 
 
24982
    newsos6)
 
24983
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
24984
      hardcode_direct_F77=yes
 
24985
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
24986
      hardcode_libdir_separator_F77=:
 
24987
      hardcode_shlibpath_var_F77=no
 
24988
      ;;
 
24989
 
 
24990
    openbsd*)
 
24991
      hardcode_direct_F77=yes
 
24992
      hardcode_shlibpath_var_F77=no
 
24993
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
24994
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
24995
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
24996
        export_dynamic_flag_spec_F77='${wl}-E'
 
24997
      else
 
24998
       case $host_os in
 
24999
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
25000
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
25001
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
25002
           ;;
 
25003
         *)
 
25004
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
25005
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
25006
           ;;
 
25007
       esac
 
25008
      fi
 
25009
      ;;
 
25010
 
 
25011
    os2*)
 
25012
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
25013
      hardcode_minus_L_F77=yes
 
25014
      allow_undefined_flag_F77=unsupported
 
25015
      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'
 
25016
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
25017
      ;;
 
25018
 
 
25019
    osf3*)
 
25020
      if test "$GCC" = yes; then
 
25021
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
25022
        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'
 
25023
      else
 
25024
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
25025
        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'
 
25026
      fi
 
25027
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
25028
      hardcode_libdir_separator_F77=:
 
25029
      ;;
 
25030
 
 
25031
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
25032
      if test "$GCC" = yes; then
 
25033
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
25034
        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'
 
25035
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
25036
      else
 
25037
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
25038
        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'
 
25039
        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~
 
25040
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
25041
 
 
25042
        # Both c and cxx compiler support -rpath directly
 
25043
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
25044
      fi
 
25045
      hardcode_libdir_separator_F77=:
 
25046
      ;;
 
25047
 
 
25048
    sco3.2v5*)
 
25049
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25050
      hardcode_shlibpath_var_F77=no
 
25051
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
25052
      runpath_var=LD_RUN_PATH
 
25053
      hardcode_runpath_var=yes
 
25054
      ;;
 
25055
 
 
25056
    solaris*)
 
25057
      no_undefined_flag_F77=' -z text'
 
25058
      if test "$GCC" = yes; then
 
25059
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
25060
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
25061
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
25062
      else
 
25063
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25064
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
25065
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
25066
      fi
 
25067
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
25068
      hardcode_shlibpath_var_F77=no
 
25069
      case $host_os in
 
25070
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
25071
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
25072
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
25073
      esac
 
25074
      link_all_deplibs_F77=yes
 
25075
      ;;
 
25076
 
 
25077
    sunos4*)
 
25078
      if test "x$host_vendor" = xsequent; then
 
25079
        # Use $CC to link under sequent, because it throws in some extra .o
 
25080
        # files that make .init and .fini sections work.
 
25081
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
25082
      else
 
25083
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
25084
      fi
 
25085
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
25086
      hardcode_direct_F77=yes
 
25087
      hardcode_minus_L_F77=yes
 
25088
      hardcode_shlibpath_var_F77=no
 
25089
      ;;
 
25090
 
 
25091
    sysv4)
 
25092
      case $host_vendor in
 
25093
        sni)
 
25094
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25095
          hardcode_direct_F77=yes # is this really true???
 
25096
        ;;
 
25097
        siemens)
 
25098
          ## LD is ld it makes a PLAMLIB
 
25099
          ## CC just makes a GrossModule.
 
25100
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
25101
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
25102
          hardcode_direct_F77=no
 
25103
        ;;
 
25104
        motorola)
 
25105
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25106
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
25107
        ;;
 
25108
      esac
 
25109
      runpath_var='LD_RUN_PATH'
 
25110
      hardcode_shlibpath_var_F77=no
 
25111
      ;;
 
25112
 
 
25113
    sysv4.3*)
 
25114
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25115
      hardcode_shlibpath_var_F77=no
 
25116
      export_dynamic_flag_spec_F77='-Bexport'
 
25117
      ;;
 
25118
 
 
25119
    sysv4*MP*)
 
25120
      if test -d /usr/nec; then
 
25121
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25122
        hardcode_shlibpath_var_F77=no
 
25123
        runpath_var=LD_RUN_PATH
 
25124
        hardcode_runpath_var=yes
 
25125
        ld_shlibs_F77=yes
 
25126
      fi
 
25127
      ;;
 
25128
 
 
25129
    sysv4.2uw2*)
 
25130
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
25131
      hardcode_direct_F77=yes
 
25132
      hardcode_minus_L_F77=no
 
25133
      hardcode_shlibpath_var_F77=no
 
25134
      hardcode_runpath_var=yes
 
25135
      runpath_var=LD_RUN_PATH
 
25136
      ;;
 
25137
 
 
25138
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
25139
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
25140
      if test "$GCC" = yes; then
 
25141
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
25142
      else
 
25143
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
25144
      fi
 
25145
      runpath_var='LD_RUN_PATH'
 
25146
      hardcode_shlibpath_var_F77=no
 
25147
      ;;
 
25148
 
 
25149
    sysv5*)
 
25150
      no_undefined_flag_F77=' -z text'
 
25151
      # $CC -shared without GNU ld will not create a library from C++
 
25152
      # object files and a static libstdc++, better avoid it by now
 
25153
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25154
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
25155
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
25156
      hardcode_libdir_flag_spec_F77=
 
25157
      hardcode_shlibpath_var_F77=no
 
25158
      runpath_var='LD_RUN_PATH'
 
25159
      ;;
 
25160
 
 
25161
    uts4*)
 
25162
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
25163
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
25164
      hardcode_shlibpath_var_F77=no
 
25165
      ;;
 
25166
 
 
25167
    *)
 
25168
      ld_shlibs_F77=no
 
25169
      ;;
 
25170
    esac
 
25171
  fi
 
25172
 
 
25173
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
25174
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
25175
test "$ld_shlibs_F77" = no && can_build_shared=no
 
25176
 
 
25177
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
25178
if test "$GCC" = yes; then
 
25179
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
25180
fi
 
25181
 
 
25182
#
 
25183
# Do we need to explicitly link libc?
 
25184
#
 
25185
case "x$archive_cmds_need_lc_F77" in
 
25186
x|xyes)
 
25187
  # Assume -lc should be added
 
25188
  archive_cmds_need_lc_F77=yes
 
25189
 
 
25190
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
25191
    case $archive_cmds_F77 in
 
25192
    *'~'*)
 
25193
      # FIXME: we may have to deal with multi-command sequences.
 
25194
      ;;
 
25195
    '$CC '*)
 
25196
      # Test whether the compiler implicitly links with -lc since on some
 
25197
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
25198
      # to ld, don't add -lc before -lgcc.
 
25199
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
25200
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
25201
      $rm conftest*
 
25202
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
25203
 
 
25204
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
25205
  (eval $ac_compile) 2>&5
 
25206
  ac_status=$?
 
25207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25208
  (exit $ac_status); } 2>conftest.err; then
 
25209
        soname=conftest
 
25210
        lib=conftest
 
25211
        libobjs=conftest.$ac_objext
 
25212
        deplibs=
 
25213
        wl=$lt_prog_compiler_wl_F77
 
25214
        compiler_flags=-v
 
25215
        linker_flags=-v
 
25216
        verstring=
 
25217
        output_objdir=.
 
25218
        libname=conftest
 
25219
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
25220
        allow_undefined_flag_F77=
 
25221
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
25222
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
25223
  ac_status=$?
 
25224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
25225
  (exit $ac_status); }
 
25226
        then
 
25227
          archive_cmds_need_lc_F77=no
 
25228
        else
 
25229
          archive_cmds_need_lc_F77=yes
 
25230
        fi
 
25231
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
25232
      else
 
25233
        cat conftest.err 1>&5
 
25234
      fi
 
25235
      $rm conftest*
 
25236
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
25237
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
25238
      ;;
 
25239
    esac
 
25240
  fi
 
25241
  ;;
 
25242
esac
 
25243
 
 
25244
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
25245
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
25246
library_names_spec=
 
25247
libname_spec='lib$name'
 
25248
soname_spec=
 
25249
shrext_cmds=".so"
 
25250
postinstall_cmds=
 
25251
postuninstall_cmds=
 
25252
finish_cmds=
 
25253
finish_eval=
 
25254
shlibpath_var=
 
25255
shlibpath_overrides_runpath=unknown
 
25256
version_type=none
 
25257
dynamic_linker="$host_os ld.so"
 
25258
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
25259
if test "$GCC" = yes; then
 
25260
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
25261
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
25262
    # if the path contains ";" then we assume it to be the separator
 
25263
    # otherwise default to the standard path separator (i.e. ":") - it is
 
25264
    # assumed that no part of a normal pathname contains ";" but that should
 
25265
    # okay in the real world where ";" in dirpaths is itself problematic.
 
25266
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
25267
  else
 
25268
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
25269
  fi
 
25270
else
 
25271
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
25272
fi
 
25273
need_lib_prefix=unknown
 
25274
hardcode_into_libs=no
 
25275
 
 
25276
# when you set need_version to no, make sure it does not cause -set_version
 
25277
# flags to be left without arguments
 
25278
need_version=unknown
 
25279
 
 
25280
case $host_os in
 
25281
aix3*)
 
25282
  version_type=linux
 
25283
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
25284
  shlibpath_var=LIBPATH
 
25285
 
 
25286
  # AIX 3 has no versioning support, so we append a major version to the name.
 
25287
  soname_spec='${libname}${release}${shared_ext}$major'
 
25288
  ;;
 
25289
 
 
25290
aix4* | aix5*)
 
25291
  version_type=linux
 
25292
  need_lib_prefix=no
 
25293
  need_version=no
 
25294
  hardcode_into_libs=yes
 
25295
  if test "$host_cpu" = ia64; then
 
25296
    # AIX 5 supports IA64
 
25297
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
25298
    shlibpath_var=LD_LIBRARY_PATH
 
25299
  else
 
25300
    # With GCC up to 2.95.x, collect2 would create an import file
 
25301
    # for dependence libraries.  The import file would start with
 
25302
    # the line `#! .'.  This would cause the generated library to
 
25303
    # depend on `.', always an invalid library.  This was fixed in
 
25304
    # development snapshots of GCC prior to 3.0.
 
25305
    case $host_os in
 
25306
      aix4 | aix4.[01] | aix4.[01].*)
 
25307
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
25308
           echo ' yes '
 
25309
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
25310
        :
 
25311
      else
 
25312
        can_build_shared=no
 
25313
      fi
 
25314
      ;;
 
25315
    esac
 
25316
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
25317
    # soname into executable. Probably we can add versioning support to
 
25318
    # collect2, so additional links can be useful in future.
 
25319
    if test "$aix_use_runtimelinking" = yes; then
 
25320
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
25321
      # instead of lib<name>.a to let people know that these are not
 
25322
      # typical AIX shared libraries.
 
25323
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25324
    else
 
25325
      # We preserve .a as extension for shared libraries through AIX4.2
 
25326
      # and later when we are not doing run time linking.
 
25327
      library_names_spec='${libname}${release}.a $libname.a'
 
25328
      soname_spec='${libname}${release}${shared_ext}$major'
 
25329
    fi
 
25330
    shlibpath_var=LIBPATH
 
25331
  fi
 
25332
  ;;
 
25333
 
 
25334
amigaos*)
 
25335
  library_names_spec='$libname.ixlibrary $libname.a'
 
25336
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
25337
  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'
 
25338
  ;;
 
25339
 
 
25340
beos*)
 
25341
  library_names_spec='${libname}${shared_ext}'
 
25342
  dynamic_linker="$host_os ld.so"
 
25343
  shlibpath_var=LIBRARY_PATH
 
25344
  ;;
 
25345
 
 
25346
bsdi4*)
 
25347
  version_type=linux
 
25348
  need_version=no
 
25349
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25350
  soname_spec='${libname}${release}${shared_ext}$major'
 
25351
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
25352
  shlibpath_var=LD_LIBRARY_PATH
 
25353
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
25354
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
25355
  # the default ld.so.conf also contains /usr/contrib/lib and
 
25356
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
25357
  # libtool to hard-code these into programs
 
25358
  ;;
 
25359
 
 
25360
cygwin* | mingw* | pw32*)
 
25361
  version_type=windows
 
25362
  shrext_cmds=".dll"
 
25363
  need_version=no
 
25364
  need_lib_prefix=no
 
25365
 
 
25366
  case $GCC,$host_os in
 
25367
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
25368
    library_names_spec='$libname.dll.a'
 
25369
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
25370
    postinstall_cmds='base_file=`basename \${file}`~
 
25371
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
25372
      dldir=$destdir/`dirname \$dlpath`~
 
25373
      test -d \$dldir || mkdir -p \$dldir~
 
25374
      $install_prog $dir/$dlname \$dldir/$dlname'
 
25375
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
25376
      dlpath=$dir/\$dldll~
 
25377
       $rm \$dlpath'
 
25378
    shlibpath_overrides_runpath=yes
 
25379
 
 
25380
    case $host_os in
 
25381
    cygwin*)
 
25382
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
25383
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
25384
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
25385
      ;;
 
25386
    mingw*)
 
25387
      # MinGW DLLs use traditional 'lib' prefix
 
25388
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
25389
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
25390
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
25391
        # It is most probably a Windows format PATH printed by
 
25392
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
25393
        # path with ; separators, and with drive letters. We can handle the
 
25394
        # drive letters (cygwin fileutils understands them), so leave them,
 
25395
        # especially as we might pass files found there to a mingw objdump,
 
25396
        # which wouldn't understand a cygwinified path. Ahh.
 
25397
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
25398
      else
 
25399
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
25400
      fi
 
25401
      ;;
 
25402
    pw32*)
 
25403
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
25404
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
25405
      ;;
 
25406
    esac
 
25407
    ;;
 
25408
 
 
25409
  *)
 
25410
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
25411
    ;;
 
25412
  esac
 
25413
  dynamic_linker='Win32 ld.exe'
 
25414
  # FIXME: first we should search . and the directory the executable is in
 
25415
  shlibpath_var=PATH
 
25416
  ;;
 
25417
 
 
25418
darwin* | rhapsody*)
 
25419
  dynamic_linker="$host_os dyld"
 
25420
  version_type=darwin
 
25421
  need_lib_prefix=no
 
25422
  need_version=no
 
25423
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
25424
  soname_spec='${libname}${release}${major}$shared_ext'
 
25425
  shlibpath_overrides_runpath=yes
 
25426
  shlibpath_var=DYLD_LIBRARY_PATH
 
25427
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
25428
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
25429
  if test "$GCC" = yes; then
 
25430
    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"`
 
25431
  else
 
25432
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
25433
  fi
 
25434
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
25435
  ;;
 
25436
 
 
25437
dgux*)
 
25438
  version_type=linux
 
25439
  need_lib_prefix=no
 
25440
  need_version=no
 
25441
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
25442
  soname_spec='${libname}${release}${shared_ext}$major'
 
25443
  shlibpath_var=LD_LIBRARY_PATH
 
25444
  ;;
 
25445
 
 
25446
freebsd1*)
 
25447
  dynamic_linker=no
 
25448
  ;;
 
25449
 
 
25450
kfreebsd*-gnu)
 
25451
  version_type=linux
 
25452
  need_lib_prefix=no
 
25453
  need_version=no
 
25454
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
25455
  soname_spec='${libname}${release}${shared_ext}$major'
 
25456
  shlibpath_var=LD_LIBRARY_PATH
 
25457
  shlibpath_overrides_runpath=no
 
25458
  hardcode_into_libs=yes
 
25459
  dynamic_linker='GNU ld.so'
 
25460
  ;;
 
25461
 
 
25462
freebsd*)
 
25463
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
25464
  version_type=freebsd-$objformat
 
25465
  case $version_type in
 
25466
    freebsd-elf*)
 
25467
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
25468
      need_version=no
 
25469
      need_lib_prefix=no
 
25470
      ;;
 
25471
    freebsd-*)
 
25472
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
25473
      need_version=yes
 
25474
      ;;
 
25475
  esac
 
25476
  shlibpath_var=LD_LIBRARY_PATH
 
25477
  case $host_os in
 
25478
  freebsd2*)
 
25479
    shlibpath_overrides_runpath=yes
 
25480
    ;;
 
25481
  freebsd3.01* | freebsdelf3.01*)
 
25482
    shlibpath_overrides_runpath=yes
 
25483
    hardcode_into_libs=yes
 
25484
    ;;
 
25485
  *) # from 3.2 on
 
25486
    shlibpath_overrides_runpath=no
 
25487
    hardcode_into_libs=yes
 
25488
    ;;
 
25489
  esac
 
25490
  ;;
 
25491
 
 
25492
gnu*)
 
25493
  version_type=linux
 
25494
  need_lib_prefix=no
 
25495
  need_version=no
 
25496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
25497
  soname_spec='${libname}${release}${shared_ext}$major'
 
25498
  shlibpath_var=LD_LIBRARY_PATH
 
25499
  hardcode_into_libs=yes
 
25500
  ;;
 
25501
 
 
25502
hpux9* | hpux10* | hpux11*)
 
25503
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
25504
  # link against other versions.
 
25505
  version_type=sunos
 
25506
  need_lib_prefix=no
 
25507
  need_version=no
 
25508
  case "$host_cpu" in
 
25509
  ia64*)
 
25510
    shrext_cmds='.so'
 
25511
    hardcode_into_libs=yes
 
25512
    dynamic_linker="$host_os dld.so"
 
25513
    shlibpath_var=LD_LIBRARY_PATH
 
25514
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
25515
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25516
    soname_spec='${libname}${release}${shared_ext}$major'
 
25517
    if test "X$HPUX_IA64_MODE" = X32; then
 
25518
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
25519
    else
 
25520
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
25521
    fi
 
25522
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
25523
    ;;
 
25524
   hppa*64*)
 
25525
     shrext_cmds='.sl'
 
25526
     hardcode_into_libs=yes
 
25527
     dynamic_linker="$host_os dld.sl"
 
25528
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
25529
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
25530
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25531
     soname_spec='${libname}${release}${shared_ext}$major'
 
25532
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
25533
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
25534
     ;;
 
25535
   *)
 
25536
    shrext_cmds='.sl'
 
25537
    dynamic_linker="$host_os dld.sl"
 
25538
    shlibpath_var=SHLIB_PATH
 
25539
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
25540
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25541
    soname_spec='${libname}${release}${shared_ext}$major'
 
25542
    ;;
 
25543
  esac
 
25544
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
25545
  postinstall_cmds='chmod 555 $lib'
 
25546
  ;;
 
25547
 
 
25548
irix5* | irix6* | nonstopux*)
 
25549
  case $host_os in
 
25550
    nonstopux*) version_type=nonstopux ;;
 
25551
    *)
 
25552
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
25553
                version_type=linux
 
25554
        else
 
25555
                version_type=irix
 
25556
        fi ;;
 
25557
  esac
 
25558
  need_lib_prefix=no
 
25559
  need_version=no
 
25560
  soname_spec='${libname}${release}${shared_ext}$major'
 
25561
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
25562
  case $host_os in
 
25563
  irix5* | nonstopux*)
 
25564
    libsuff= shlibsuff=
 
25565
    ;;
 
25566
  *)
 
25567
    case $LD in # libtool.m4 will add one of these switches to LD
 
25568
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
25569
      libsuff= shlibsuff= libmagic=32-bit;;
 
25570
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
25571
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
25572
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
25573
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
25574
    *) libsuff= shlibsuff= libmagic=never-match;;
 
25575
    esac
 
25576
    ;;
 
25577
  esac
 
25578
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
25579
  shlibpath_overrides_runpath=no
 
25580
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
25581
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
25582
  hardcode_into_libs=yes
 
25583
  ;;
 
25584
 
 
25585
# No shared lib support for Linux oldld, aout, or coff.
 
25586
linux*oldld* | linux*aout* | linux*coff*)
 
25587
  dynamic_linker=no
 
25588
  ;;
 
25589
 
 
25590
# This must be Linux ELF.
 
25591
linux*)
 
25592
  version_type=linux
 
25593
  need_lib_prefix=no
 
25594
  need_version=no
 
25595
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25596
  soname_spec='${libname}${release}${shared_ext}$major'
 
25597
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
25598
  shlibpath_var=LD_LIBRARY_PATH
 
25599
  shlibpath_overrides_runpath=no
 
25600
  # This implies no fast_install, which is unacceptable.
 
25601
  # Some rework will be needed to allow for fast_install
 
25602
  # before this can be enabled.
 
25603
  hardcode_into_libs=yes
 
25604
 
 
25605
  # Append ld.so.conf contents to the search path
 
25606
  if test -f /etc/ld.so.conf; then
 
25607
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
25608
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
25609
  fi
 
25610
 
 
25611
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
25612
  # powerpc, because MkLinux only supported shared libraries with the
 
25613
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
25614
  # most powerpc-linux boxes support dynamic linking these days and
 
25615
  # people can always --disable-shared, the test was removed, and we
 
25616
  # assume the GNU/Linux dynamic linker is in use.
 
25617
  dynamic_linker='GNU/Linux ld.so'
 
25618
  ;;
 
25619
 
 
25620
knetbsd*-gnu)
 
25621
  version_type=linux
 
25622
  need_lib_prefix=no
 
25623
  need_version=no
 
25624
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
25625
  soname_spec='${libname}${release}${shared_ext}$major'
 
25626
  shlibpath_var=LD_LIBRARY_PATH
 
25627
  shlibpath_overrides_runpath=no
 
25628
  hardcode_into_libs=yes
 
25629
  dynamic_linker='GNU ld.so'
 
25630
  ;;
 
25631
 
 
25632
netbsd*)
 
25633
  version_type=sunos
 
25634
  need_lib_prefix=no
 
25635
  need_version=no
 
25636
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
25637
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
25638
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
25639
    dynamic_linker='NetBSD (a.out) ld.so'
 
25640
  else
 
25641
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
25642
    soname_spec='${libname}${release}${shared_ext}$major'
 
25643
    dynamic_linker='NetBSD ld.elf_so'
 
25644
  fi
 
25645
  shlibpath_var=LD_LIBRARY_PATH
 
25646
  shlibpath_overrides_runpath=yes
 
25647
  hardcode_into_libs=yes
 
25648
  ;;
 
25649
 
 
25650
newsos6)
 
25651
  version_type=linux
 
25652
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25653
  shlibpath_var=LD_LIBRARY_PATH
 
25654
  shlibpath_overrides_runpath=yes
 
25655
  ;;
 
25656
 
 
25657
nto-qnx*)
 
25658
  version_type=linux
 
25659
  need_lib_prefix=no
 
25660
  need_version=no
 
25661
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25662
  soname_spec='${libname}${release}${shared_ext}$major'
 
25663
  shlibpath_var=LD_LIBRARY_PATH
 
25664
  shlibpath_overrides_runpath=yes
 
25665
  ;;
 
25666
 
 
25667
openbsd*)
 
25668
  version_type=sunos
 
25669
  need_lib_prefix=no
 
25670
  need_version=yes
 
25671
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
25672
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
25673
  shlibpath_var=LD_LIBRARY_PATH
 
25674
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
25675
    case $host_os in
 
25676
      openbsd2.[89] | openbsd2.[89].*)
 
25677
        shlibpath_overrides_runpath=no
 
25678
        ;;
 
25679
      *)
 
25680
        shlibpath_overrides_runpath=yes
 
25681
        ;;
 
25682
      esac
 
25683
  else
 
25684
    shlibpath_overrides_runpath=yes
 
25685
  fi
 
25686
  ;;
 
25687
 
 
25688
os2*)
 
25689
  libname_spec='$name'
 
25690
  shrext_cmds=".dll"
 
25691
  need_lib_prefix=no
 
25692
  library_names_spec='$libname${shared_ext} $libname.a'
 
25693
  dynamic_linker='OS/2 ld.exe'
 
25694
  shlibpath_var=LIBPATH
 
25695
  ;;
 
25696
 
 
25697
osf3* | osf4* | osf5*)
 
25698
  version_type=osf
 
25699
  need_lib_prefix=no
 
25700
  need_version=no
 
25701
  soname_spec='${libname}${release}${shared_ext}$major'
 
25702
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25703
  shlibpath_var=LD_LIBRARY_PATH
 
25704
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
25705
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
25706
  ;;
 
25707
 
 
25708
sco3.2v5*)
 
25709
  version_type=osf
 
25710
  soname_spec='${libname}${release}${shared_ext}$major'
 
25711
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25712
  shlibpath_var=LD_LIBRARY_PATH
 
25713
  ;;
 
25714
 
 
25715
solaris*)
 
25716
  version_type=linux
 
25717
  need_lib_prefix=no
 
25718
  need_version=no
 
25719
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25720
  soname_spec='${libname}${release}${shared_ext}$major'
 
25721
  shlibpath_var=LD_LIBRARY_PATH
 
25722
  shlibpath_overrides_runpath=yes
 
25723
  hardcode_into_libs=yes
 
25724
  # ldd complains unless libraries are executable
 
25725
  postinstall_cmds='chmod +x $lib'
 
25726
  ;;
 
25727
 
 
25728
sunos4*)
 
25729
  version_type=sunos
 
25730
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
25731
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
25732
  shlibpath_var=LD_LIBRARY_PATH
 
25733
  shlibpath_overrides_runpath=yes
 
25734
  if test "$with_gnu_ld" = yes; then
 
25735
    need_lib_prefix=no
 
25736
  fi
 
25737
  need_version=yes
 
25738
  ;;
 
25739
 
 
25740
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
25741
  version_type=linux
 
25742
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25743
  soname_spec='${libname}${release}${shared_ext}$major'
 
25744
  shlibpath_var=LD_LIBRARY_PATH
 
25745
  case $host_vendor in
 
25746
    sni)
 
25747
      shlibpath_overrides_runpath=no
 
25748
      need_lib_prefix=no
 
25749
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
25750
      runpath_var=LD_RUN_PATH
 
25751
      ;;
 
25752
    siemens)
 
25753
      need_lib_prefix=no
 
25754
      ;;
 
25755
    motorola)
 
25756
      need_lib_prefix=no
 
25757
      need_version=no
 
25758
      shlibpath_overrides_runpath=no
 
25759
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
25760
      ;;
 
25761
  esac
 
25762
  ;;
 
25763
 
 
25764
sysv4*MP*)
 
25765
  if test -d /usr/nec ;then
 
25766
    version_type=linux
 
25767
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
25768
    soname_spec='$libname${shared_ext}.$major'
 
25769
    shlibpath_var=LD_LIBRARY_PATH
 
25770
  fi
 
25771
  ;;
 
25772
 
 
25773
uts4*)
 
25774
  version_type=linux
 
25775
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
25776
  soname_spec='${libname}${release}${shared_ext}$major'
 
25777
  shlibpath_var=LD_LIBRARY_PATH
 
25778
  ;;
 
25779
 
 
25780
*)
 
25781
  dynamic_linker=no
 
25782
  ;;
 
25783
esac
 
25784
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
25785
echo "${ECHO_T}$dynamic_linker" >&6
 
25786
test "$dynamic_linker" = no && can_build_shared=no
 
25787
 
 
25788
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
25789
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
25790
hardcode_action_F77=
 
25791
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
25792
   test -n "$runpath_var F77" || \
 
25793
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
25794
 
 
25795
  # We can hardcode non-existant directories.
 
25796
  if test "$hardcode_direct_F77" != no &&
 
25797
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
25798
     # have to relink, otherwise we might link with an installed library
 
25799
     # when we should be linking with a yet-to-be-installed one
 
25800
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
25801
     test "$hardcode_minus_L_F77" != no; then
 
25802
    # Linking always hardcodes the temporary library directory.
 
25803
    hardcode_action_F77=relink
 
25804
  else
 
25805
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
25806
    hardcode_action_F77=immediate
 
25807
  fi
 
25808
else
 
25809
  # We cannot hardcode anything, or else we can only hardcode existing
 
25810
  # directories.
 
25811
  hardcode_action_F77=unsupported
 
25812
fi
 
25813
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
25814
echo "${ECHO_T}$hardcode_action_F77" >&6
 
25815
 
 
25816
if test "$hardcode_action_F77" = relink; then
 
25817
  # Fast installation is not supported
 
25818
  enable_fast_install=no
 
25819
elif test "$shlibpath_overrides_runpath" = yes ||
 
25820
     test "$enable_shared" = no; then
 
25821
  # Fast installation is not necessary
 
25822
  enable_fast_install=needless
 
25823
fi
 
25824
 
 
25825
striplib=
 
25826
old_striplib=
 
25827
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
25828
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
25829
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
25830
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
25831
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
25832
  echo "$as_me:$LINENO: result: yes" >&5
 
25833
echo "${ECHO_T}yes" >&6
 
25834
else
 
25835
# FIXME - insert some real tests, host_os isn't really good enough
 
25836
  case $host_os in
 
25837
   darwin*)
 
25838
       if test -n "$STRIP" ; then
 
25839
         striplib="$STRIP -x"
 
25840
         echo "$as_me:$LINENO: result: yes" >&5
 
25841
echo "${ECHO_T}yes" >&6
 
25842
       else
 
25843
  echo "$as_me:$LINENO: result: no" >&5
 
25844
echo "${ECHO_T}no" >&6
 
25845
fi
 
25846
       ;;
 
25847
   *)
 
25848
  echo "$as_me:$LINENO: result: no" >&5
 
25849
echo "${ECHO_T}no" >&6
 
25850
    ;;
 
25851
  esac
 
25852
fi
 
25853
 
 
25854
 
 
25855
 
 
25856
# The else clause should only fire when bootstrapping the
 
25857
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
25858
# with your package, and you will get complaints that there are
 
25859
# no rules to generate ltmain.sh.
 
25860
if test -f "$ltmain"; then
 
25861
  # See if we are running on zsh, and set the options which allow our commands through
 
25862
  # without removal of \ escapes.
 
25863
  if test -n "${ZSH_VERSION+set}" ; then
 
25864
    setopt NO_GLOB_SUBST
 
25865
  fi
 
25866
  # Now quote all the things that may contain metacharacters while being
 
25867
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
25868
  # variables and quote the copies for generation of the libtool script.
 
25869
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
25870
    SED SHELL STRIP \
 
25871
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
25872
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
25873
    deplibs_check_method reload_flag reload_cmds need_locks \
 
25874
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
25875
    lt_cv_sys_global_symbol_to_c_name_address \
 
25876
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
25877
    old_postinstall_cmds old_postuninstall_cmds \
 
25878
    compiler_F77 \
 
25879
    CC_F77 \
 
25880
    LD_F77 \
 
25881
    lt_prog_compiler_wl_F77 \
 
25882
    lt_prog_compiler_pic_F77 \
 
25883
    lt_prog_compiler_static_F77 \
 
25884
    lt_prog_compiler_no_builtin_flag_F77 \
 
25885
    export_dynamic_flag_spec_F77 \
 
25886
    thread_safe_flag_spec_F77 \
 
25887
    whole_archive_flag_spec_F77 \
 
25888
    enable_shared_with_static_runtimes_F77 \
 
25889
    old_archive_cmds_F77 \
 
25890
    old_archive_from_new_cmds_F77 \
 
25891
    predep_objects_F77 \
 
25892
    postdep_objects_F77 \
 
25893
    predeps_F77 \
 
25894
    postdeps_F77 \
 
25895
    compiler_lib_search_path_F77 \
 
25896
    archive_cmds_F77 \
 
25897
    archive_expsym_cmds_F77 \
 
25898
    postinstall_cmds_F77 \
 
25899
    postuninstall_cmds_F77 \
 
25900
    old_archive_from_expsyms_cmds_F77 \
 
25901
    allow_undefined_flag_F77 \
 
25902
    no_undefined_flag_F77 \
 
25903
    export_symbols_cmds_F77 \
 
25904
    hardcode_libdir_flag_spec_F77 \
 
25905
    hardcode_libdir_flag_spec_ld_F77 \
 
25906
    hardcode_libdir_separator_F77 \
 
25907
    hardcode_automatic_F77 \
 
25908
    module_cmds_F77 \
 
25909
    module_expsym_cmds_F77 \
 
25910
    lt_cv_prog_compiler_c_o_F77 \
 
25911
    exclude_expsyms_F77 \
 
25912
    include_expsyms_F77; do
 
25913
 
 
25914
    case $var in
 
25915
    old_archive_cmds_F77 | \
 
25916
    old_archive_from_new_cmds_F77 | \
 
25917
    archive_cmds_F77 | \
 
25918
    archive_expsym_cmds_F77 | \
 
25919
    module_cmds_F77 | \
 
25920
    module_expsym_cmds_F77 | \
 
25921
    old_archive_from_expsyms_cmds_F77 | \
 
25922
    export_symbols_cmds_F77 | \
 
25923
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
25924
    postinstall_cmds | postuninstall_cmds | \
 
25925
    old_postinstall_cmds | old_postuninstall_cmds | \
 
25926
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
25927
      # Double-quote double-evaled strings.
 
25928
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
25929
      ;;
 
25930
    *)
 
25931
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
25932
      ;;
 
25933
    esac
 
25934
  done
 
25935
 
 
25936
  case $lt_echo in
 
25937
  *'\$0 --fallback-echo"')
 
25938
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
25939
    ;;
 
25940
  esac
 
25941
 
 
25942
cfgfile="$ofile"
 
25943
 
 
25944
  cat <<__EOF__ >> "$cfgfile"
 
25945
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
25946
 
 
25947
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
25948
 
 
25949
# Shell to use when invoking shell scripts.
 
25950
SHELL=$lt_SHELL
 
25951
 
 
25952
# Whether or not to build shared libraries.
 
25953
build_libtool_libs=$enable_shared
 
25954
 
 
25955
# Whether or not to build static libraries.
 
25956
build_old_libs=$enable_static
 
25957
 
 
25958
# Whether or not to add -lc for building shared libraries.
 
25959
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
25960
 
 
25961
# Whether or not to disallow shared libs when runtime libs are static
 
25962
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
25963
 
 
25964
# Whether or not to optimize for fast installation.
 
25965
fast_install=$enable_fast_install
 
25966
 
 
25967
# The host system.
 
25968
host_alias=$host_alias
 
25969
host=$host
 
25970
 
 
25971
# An echo program that does not interpret backslashes.
 
25972
echo=$lt_echo
 
25973
 
 
25974
# The archiver.
 
25975
AR=$lt_AR
 
25976
AR_FLAGS=$lt_AR_FLAGS
 
25977
 
 
25978
# A C compiler.
 
25979
LTCC=$lt_LTCC
 
25980
 
 
25981
# A language-specific compiler.
 
25982
CC=$lt_compiler_F77
 
25983
 
 
25984
# Is the compiler the GNU C compiler?
 
25985
with_gcc=$GCC_F77
 
25986
 
 
25987
# An ERE matcher.
 
25988
EGREP=$lt_EGREP
 
25989
 
 
25990
# The linker used to build libraries.
 
25991
LD=$lt_LD_F77
 
25992
 
 
25993
# Whether we need hard or soft links.
 
25994
LN_S=$lt_LN_S
 
25995
 
 
25996
# A BSD-compatible nm program.
 
25997
NM=$lt_NM
 
25998
 
 
25999
# A symbol stripping program
 
26000
STRIP=$lt_STRIP
 
26001
 
 
26002
# Used to examine libraries when file_magic_cmd begins "file"
 
26003
MAGIC_CMD=$MAGIC_CMD
 
26004
 
 
26005
# Used on cygwin: DLL creation program.
 
26006
DLLTOOL="$DLLTOOL"
 
26007
 
 
26008
# Used on cygwin: object dumper.
 
26009
OBJDUMP="$OBJDUMP"
 
26010
 
 
26011
# Used on cygwin: assembler.
 
26012
AS="$AS"
 
26013
 
 
26014
# The name of the directory that contains temporary libtool files.
 
26015
objdir=$objdir
 
26016
 
 
26017
# How to create reloadable object files.
 
26018
reload_flag=$lt_reload_flag
 
26019
reload_cmds=$lt_reload_cmds
 
26020
 
 
26021
# How to pass a linker flag through the compiler.
 
26022
wl=$lt_lt_prog_compiler_wl_F77
 
26023
 
 
26024
# Object file suffix (normally "o").
 
26025
objext="$ac_objext"
 
26026
 
 
26027
# Old archive suffix (normally "a").
 
26028
libext="$libext"
 
26029
 
 
26030
# Shared library suffix (normally ".so").
 
26031
shrext_cmds='$shrext_cmds'
 
26032
 
 
26033
# Executable file suffix (normally "").
 
26034
exeext="$exeext"
 
26035
 
 
26036
# Additional compiler flags for building library objects.
 
26037
pic_flag=$lt_lt_prog_compiler_pic_F77
 
26038
pic_mode=$pic_mode
 
26039
 
 
26040
# What is the maximum length of a command?
 
26041
max_cmd_len=$lt_cv_sys_max_cmd_len
 
26042
 
 
26043
# Does compiler simultaneously support -c and -o options?
 
26044
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
26045
 
 
26046
# Must we lock files when doing compilation ?
 
26047
need_locks=$lt_need_locks
 
26048
 
 
26049
# Do we need the lib prefix for modules?
 
26050
need_lib_prefix=$need_lib_prefix
 
26051
 
 
26052
# Do we need a version for libraries?
 
26053
need_version=$need_version
 
26054
 
 
26055
# Whether dlopen is supported.
 
26056
dlopen_support=$enable_dlopen
 
26057
 
 
26058
# Whether dlopen of programs is supported.
 
26059
dlopen_self=$enable_dlopen_self
 
26060
 
 
26061
# Whether dlopen of statically linked programs is supported.
 
26062
dlopen_self_static=$enable_dlopen_self_static
 
26063
 
 
26064
# Compiler flag to prevent dynamic linking.
 
26065
link_static_flag=$lt_lt_prog_compiler_static_F77
 
26066
 
 
26067
# Compiler flag to turn off builtin functions.
 
26068
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
26069
 
 
26070
# Compiler flag to allow reflexive dlopens.
 
26071
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
26072
 
 
26073
# Compiler flag to generate shared objects directly from archives.
 
26074
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
26075
 
 
26076
# Compiler flag to generate thread-safe objects.
 
26077
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
26078
 
 
26079
# Library versioning type.
 
26080
version_type=$version_type
 
26081
 
 
26082
# Format of library name prefix.
 
26083
libname_spec=$lt_libname_spec
 
26084
 
 
26085
# List of archive names.  First name is the real one, the rest are links.
 
26086
# The last name is the one that the linker finds with -lNAME.
 
26087
library_names_spec=$lt_library_names_spec
 
26088
 
 
26089
# The coded name of the library, if different from the real name.
 
26090
soname_spec=$lt_soname_spec
 
26091
 
 
26092
# Commands used to build and install an old-style archive.
 
26093
RANLIB=$lt_RANLIB
 
26094
old_archive_cmds=$lt_old_archive_cmds_F77
 
26095
old_postinstall_cmds=$lt_old_postinstall_cmds
 
26096
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
26097
 
 
26098
# Create an old-style archive from a shared archive.
 
26099
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
26100
 
 
26101
# Create a temporary old-style archive to link instead of a shared archive.
 
26102
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
26103
 
 
26104
# Commands used to build and install a shared archive.
 
26105
archive_cmds=$lt_archive_cmds_F77
 
26106
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
26107
postinstall_cmds=$lt_postinstall_cmds
 
26108
postuninstall_cmds=$lt_postuninstall_cmds
 
26109
 
 
26110
# Commands used to build a loadable module (assumed same as above if empty)
 
26111
module_cmds=$lt_module_cmds_F77
 
26112
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
26113
 
 
26114
# Commands to strip libraries.
 
26115
old_striplib=$lt_old_striplib
 
26116
striplib=$lt_striplib
 
26117
 
 
26118
# Dependencies to place before the objects being linked to create a
 
26119
# shared library.
 
26120
predep_objects=$lt_predep_objects_F77
 
26121
 
 
26122
# Dependencies to place after the objects being linked to create a
 
26123
# shared library.
 
26124
postdep_objects=$lt_postdep_objects_F77
 
26125
 
 
26126
# Dependencies to place before the objects being linked to create a
 
26127
# shared library.
 
26128
predeps=$lt_predeps_F77
 
26129
 
 
26130
# Dependencies to place after the objects being linked to create a
 
26131
# shared library.
 
26132
postdeps=$lt_postdeps_F77
 
26133
 
 
26134
# The library search path used internally by the compiler when linking
 
26135
# a shared library.
 
26136
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
26137
 
 
26138
# Method to check whether dependent libraries are shared objects.
 
26139
deplibs_check_method=$lt_deplibs_check_method
 
26140
 
 
26141
# Command to use when deplibs_check_method == file_magic.
 
26142
file_magic_cmd=$lt_file_magic_cmd
 
26143
 
 
26144
# Flag that allows shared libraries with undefined symbols to be built.
 
26145
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
26146
 
 
26147
# Flag that forces no undefined symbols.
 
26148
no_undefined_flag=$lt_no_undefined_flag_F77
 
26149
 
 
26150
# Commands used to finish a libtool library installation in a directory.
 
26151
finish_cmds=$lt_finish_cmds
 
26152
 
 
26153
# Same as above, but a single script fragment to be evaled but not shown.
 
26154
finish_eval=$lt_finish_eval
 
26155
 
 
26156
# Take the output of nm and produce a listing of raw symbols and C names.
 
26157
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
26158
 
 
26159
# Transform the output of nm in a proper C declaration
 
26160
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
26161
 
 
26162
# Transform the output of nm in a C name address pair
 
26163
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
26164
 
 
26165
# This is the shared library runtime path variable.
 
26166
runpath_var=$runpath_var
 
26167
 
 
26168
# This is the shared library path variable.
 
26169
shlibpath_var=$shlibpath_var
 
26170
 
 
26171
# Is shlibpath searched before the hard-coded library search path?
 
26172
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
26173
 
 
26174
# How to hardcode a shared library path into an executable.
 
26175
hardcode_action=$hardcode_action_F77
 
26176
 
 
26177
# Whether we should hardcode library paths into libraries.
 
26178
hardcode_into_libs=$hardcode_into_libs
 
26179
 
 
26180
# Flag to hardcode \$libdir into a binary during linking.
 
26181
# This must work even if \$libdir does not exist.
 
26182
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
26183
 
 
26184
# If ld is used when linking, flag to hardcode \$libdir into
 
26185
# a binary during linking. This must work even if \$libdir does
 
26186
# not exist.
 
26187
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
26188
 
 
26189
# Whether we need a single -rpath flag with a separated argument.
 
26190
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
26191
 
 
26192
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
26193
# resulting binary.
 
26194
hardcode_direct=$hardcode_direct_F77
 
26195
 
 
26196
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
26197
# resulting binary.
 
26198
hardcode_minus_L=$hardcode_minus_L_F77
 
26199
 
 
26200
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
26201
# the resulting binary.
 
26202
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
26203
 
 
26204
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
26205
# and all subsequent libraries and executables linked against it.
 
26206
hardcode_automatic=$hardcode_automatic_F77
 
26207
 
 
26208
# Variables whose values should be saved in libtool wrapper scripts and
 
26209
# restored at relink time.
 
26210
variables_saved_for_relink="$variables_saved_for_relink"
 
26211
 
 
26212
# Whether libtool must link a program against all its dependency libraries.
 
26213
link_all_deplibs=$link_all_deplibs_F77
 
26214
 
 
26215
# Compile-time system search path for libraries
 
26216
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
26217
 
 
26218
# Run-time system search path for libraries
 
26219
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
26220
 
 
26221
# Fix the shell variable \$srcfile for the compiler.
 
26222
fix_srcfile_path="$fix_srcfile_path_F77"
 
26223
 
 
26224
# Set to yes if exported symbols are required.
 
26225
always_export_symbols=$always_export_symbols_F77
 
26226
 
 
26227
# The commands to list exported symbols.
 
26228
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
26229
 
 
26230
# The commands to extract the exported symbol list from a shared archive.
 
26231
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
26232
 
 
26233
# Symbols that should not be listed in the preloaded symbols.
 
26234
exclude_expsyms=$lt_exclude_expsyms_F77
 
26235
 
 
26236
# Symbols that must always be exported.
 
26237
include_expsyms=$lt_include_expsyms_F77
 
26238
 
 
26239
# ### END LIBTOOL TAG CONFIG: $tagname
 
26240
 
 
26241
__EOF__
 
26242
 
 
26243
 
 
26244
else
 
26245
  # If there is no Makefile yet, we rely on a make rule to execute
 
26246
  # `config.status --recheck' to rerun these tests and create the
 
26247
  # libtool script then.
 
26248
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
26249
  if test -f "$ltmain_in"; then
 
26250
    test -f Makefile && make "$ltmain"
 
26251
  fi
 
26252
fi
 
26253
 
9543
26254
 
9544
26255
ac_ext=c
9545
26256
ac_cpp='$CPP $CPPFLAGS'
9549
26260
 
9550
26261
CC="$lt_save_CC"
9551
26262
 
9552
 
        ;;
 
26263
        else
 
26264
          tagname=""
 
26265
        fi
 
26266
        ;;
9553
26267
 
9554
26268
      GCJ)
9555
 
 
9556
 
# Source file extension for C test sources.
 
26269
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
26270
 
 
26271
 
 
26272
 
 
26273
# Source file extension for Java test sources.
9557
26274
ac_ext=java
9558
26275
 
9559
 
# Object file extension for compiled C test sources.
 
26276
# Object file extension for compiled Java test sources.
9560
26277
objext=o
9561
26278
objext_GCJ=$objext
9562
26279
 
9563
26280
# Code to be used in simple compile tests
9564
 
lt_simple_compile_test_code="class foo {}"
 
26281
lt_simple_compile_test_code="class foo {}\n"
9565
26282
 
9566
26283
# Code to be used in simple link tests
9567
 
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
 
26284
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
9568
26285
 
9569
26286
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9570
26287
 
9572
26289
LTCC=${LTCC-"$CC"}
9573
26290
 
9574
26291
# Allow CC to be a program name with arguments.
9575
 
set dummy $CC
9576
 
compiler="$2"
 
26292
compiler=$CC
 
26293
 
9577
26294
 
9578
26295
# Allow CC to be a program name with arguments.
9579
26296
lt_save_CC="$CC"
9580
26297
CC=${GCJ-"gcj"}
9581
 
set dummy $CC
9582
 
compiler="$2"
 
26298
compiler=$CC
9583
26299
compiler_GCJ=$CC
9584
26300
 
9585
26301
# GCJ did not exist at the time GCC didn't implicitly link libc in.
9586
26302
archive_cmds_need_lc_GCJ=no
9587
26303
 
 
26304
 
9588
26305
lt_prog_compiler_no_builtin_flag_GCJ=
9589
26306
 
9590
26307
if test "$GCC" = yes; then
9591
26308
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
9592
26309
 
9593
 
  echo "$as_me:9593: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
26310
 
 
26311
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9594
26312
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9595
26313
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9596
26314
  echo $ECHO_N "(cached) $ECHO_C" >&6
9597
26315
else
9598
26316
  lt_cv_prog_compiler_rtti_exceptions=no
9599
26317
  ac_outfile=conftest.$ac_objext
9600
 
   save_CFLAGS="$CFLAGS"
9601
 
   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
9602
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9603
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
 
26318
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
26319
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
26320
   # Insert the option either (1) after the last *FLAGS variable, or
 
26321
   # (2) before a word containing "conftest.", or (3) at the end.
 
26322
   # Note that $ac_compile itself does not contain backslashes and begins
 
26323
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
26324
   # The option is referenced via a variable to avoid confusing sed.
 
26325
   lt_compile=`echo "$ac_compile" | $SED \
 
26326
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
26327
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
26328
   -e 's:$: $lt_compiler_flag:'`
 
26329
   (eval echo "\"\$as_me:26329: $lt_compile\"" >&5)
 
26330
   (eval "$lt_compile" 2>conftest.err)
 
26331
   ac_status=$?
 
26332
   cat conftest.err >&5
 
26333
   echo "$as_me:26333: \$? = $ac_status" >&5
 
26334
   if (exit $ac_status) && test -s "$ac_outfile"; then
9604
26335
     # The compiler can only warn and ignore the option if not recognized
9605
26336
     # So say no if there are warnings
9606
 
     if test -s conftest.err; then
9607
 
       # Append any errors to the config.log.
9608
 
       cat conftest.err 1>&5
9609
 
     else
 
26337
     if test ! -s conftest.err; then
9610
26338
       lt_cv_prog_compiler_rtti_exceptions=yes
9611
26339
     fi
9612
26340
   fi
9613
26341
   $rm conftest*
9614
 
   CFLAGS="$save_CFLAGS"
9615
26342
 
9616
26343
fi
9617
 
echo "$as_me:9617: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
26344
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9618
26345
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9619
26346
 
9620
26347
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9629
26356
lt_prog_compiler_pic_GCJ=
9630
26357
lt_prog_compiler_static_GCJ=
9631
26358
 
9632
 
echo "$as_me:9632: checking for $compiler option to produce PIC" >&5
 
26359
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9633
26360
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
26361
 
9634
26362
  if test "$GCC" = yes; then
9635
26363
    lt_prog_compiler_wl_GCJ='-Wl,'
9636
26364
    lt_prog_compiler_static_GCJ='-static'
9639
26367
      aix*)
9640
26368
      # All AIX code is PIC.
9641
26369
      if test "$host_cpu" = ia64; then
9642
 
        # AIX 5 now supports IA64 processor
9643
 
        lt_prog_compiler_static_GCJ='-Bstatic'
 
26370
        # AIX 5 now supports IA64 processor
 
26371
        lt_prog_compiler_static_GCJ='-Bstatic'
9644
26372
      fi
9645
26373
      ;;
9646
26374
 
9651
26379
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
9652
26380
      ;;
9653
26381
 
9654
 
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
 
26382
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9655
26383
      # PIC is the default for these OSes.
9656
26384
      ;;
9657
26385
 
9658
 
    cygwin* | mingw* | pw32* | os2*)
 
26386
    mingw* | pw32* | os2*)
9659
26387
      # This hack is so that the source file can tell whether it is being
9660
26388
      # built for inclusion in a dll (and should export symbols for example).
9661
26389
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
9676
26404
 
9677
26405
    sysv4*MP*)
9678
26406
      if test -d /usr/nec; then
9679
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
26407
        lt_prog_compiler_pic_GCJ=-Kconform_pic
9680
26408
      fi
9681
26409
      ;;
9682
26410
 
9683
26411
    hpux*)
9684
 
      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
9685
 
      if test "$host_cpu" != ia64; then
9686
 
        lt_prog_compiler_pic_GCJ='-fPIC'
9687
 
      fi
 
26412
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
26413
      # not for PA HP-UX.
 
26414
      case "$host_cpu" in
 
26415
      hppa*64*|ia64*)
 
26416
        # +Z the default
 
26417
        ;;
 
26418
      *)
 
26419
        lt_prog_compiler_pic_GCJ='-fPIC'
 
26420
        ;;
 
26421
      esac
9688
26422
      ;;
9689
26423
 
9690
26424
    *)
9697
26431
    aix*)
9698
26432
      lt_prog_compiler_wl_GCJ='-Wl,'
9699
26433
      if test "$host_cpu" = ia64; then
9700
 
        # AIX 5 now supports IA64 processor
9701
 
        lt_prog_compiler_static_GCJ='-Bstatic'
 
26434
        # AIX 5 now supports IA64 processor
 
26435
        lt_prog_compiler_static_GCJ='-Bstatic'
9702
26436
      else
9703
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
26437
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
9704
26438
      fi
9705
26439
      ;;
9706
26440
 
9707
 
    cygwin* | mingw* | pw32* | os2*)
 
26441
    mingw* | pw32* | os2*)
9708
26442
      # This hack is so that the source file can tell whether it is being
9709
26443
      # built for inclusion in a dll (and should export symbols for example).
9710
26444
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
9712
26446
 
9713
26447
    hpux9* | hpux10* | hpux11*)
9714
26448
      lt_prog_compiler_wl_GCJ='-Wl,'
9715
 
      if test "$host_cpu" != ia64; then
9716
 
        lt_prog_compiler_pic_GCJ='+Z'
9717
 
      fi
 
26449
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
26450
      # not for PA HP-UX.
 
26451
      case "$host_cpu" in
 
26452
      hppa*64*|ia64*)
 
26453
        # +Z the default
 
26454
        ;;
 
26455
      *)
 
26456
        lt_prog_compiler_pic_GCJ='+Z'
 
26457
        ;;
 
26458
      esac
9718
26459
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9719
26460
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
9720
26461
      ;;
9721
26462
 
9722
 
    irix5* | irix6*)
 
26463
    irix5* | irix6* | nonstopux*)
9723
26464
      lt_prog_compiler_wl_GCJ='-Wl,'
9724
26465
      # PIC (with -KPIC) is the default.
9725
26466
      lt_prog_compiler_static_GCJ='-non_shared'
9730
26471
      lt_prog_compiler_static_GCJ='-Bstatic'
9731
26472
      ;;
9732
26473
 
 
26474
    linux*)
 
26475
      case $CC in
 
26476
      icc* | ecc*)
 
26477
        lt_prog_compiler_wl_GCJ='-Wl,'
 
26478
        lt_prog_compiler_pic_GCJ='-KPIC'
 
26479
        lt_prog_compiler_static_GCJ='-static'
 
26480
        ;;
 
26481
      ccc*)
 
26482
        lt_prog_compiler_wl_GCJ='-Wl,'
 
26483
        # All Alpha code is PIC.
 
26484
        lt_prog_compiler_static_GCJ='-non_shared'
 
26485
        ;;
 
26486
      esac
 
26487
      ;;
 
26488
 
9733
26489
    osf3* | osf4* | osf5*)
9734
26490
      lt_prog_compiler_wl_GCJ='-Wl,'
9735
26491
      # All OSF/1 code is PIC.
9754
26510
      ;;
9755
26511
 
9756
26512
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9757
 
      if test "x$host_vendor" = xsni; then
9758
 
        lt_prog_compiler_wl_GCJ='-LD'
9759
 
      else
9760
 
        lt_prog_compiler_wl_GCJ='-Wl,'
9761
 
      fi
 
26513
      lt_prog_compiler_wl_GCJ='-Wl,'
9762
26514
      lt_prog_compiler_pic_GCJ='-KPIC'
9763
26515
      lt_prog_compiler_static_GCJ='-Bstatic'
9764
26516
      ;;
9765
26517
 
9766
26518
    sysv4*MP*)
9767
26519
      if test -d /usr/nec ;then
9768
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
9769
 
        lt_prog_compiler_static_GCJ='-Bstatic'
 
26520
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
26521
        lt_prog_compiler_static_GCJ='-Bstatic'
9770
26522
      fi
9771
26523
      ;;
9772
26524
 
9781
26533
    esac
9782
26534
  fi
9783
26535
 
9784
 
echo "$as_me:9784: result: $lt_prog_compiler_pic_GCJ" >&5
 
26536
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
9785
26537
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
9786
26538
 
9787
26539
#
9788
26540
# Check to make sure the PIC flag actually works.
9789
26541
#
9790
26542
if test -n "$lt_prog_compiler_pic_GCJ"; then
9791
 
  echo "$as_me:9791: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
26543
 
 
26544
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
9792
26545
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
9793
26546
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
9794
26547
  echo $ECHO_N "(cached) $ECHO_C" >&6
9795
26548
else
9796
26549
  lt_prog_compiler_pic_works_GCJ=no
9797
26550
  ac_outfile=conftest.$ac_objext
9798
 
   save_CFLAGS="$CFLAGS"
9799
 
   CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
9800
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9801
 
   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
 
26551
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
26552
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
26553
   # Insert the option either (1) after the last *FLAGS variable, or
 
26554
   # (2) before a word containing "conftest.", or (3) at the end.
 
26555
   # Note that $ac_compile itself does not contain backslashes and begins
 
26556
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
26557
   # The option is referenced via a variable to avoid confusing sed.
 
26558
   lt_compile=`echo "$ac_compile" | $SED \
 
26559
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
26560
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
26561
   -e 's:$: $lt_compiler_flag:'`
 
26562
   (eval echo "\"\$as_me:26562: $lt_compile\"" >&5)
 
26563
   (eval "$lt_compile" 2>conftest.err)
 
26564
   ac_status=$?
 
26565
   cat conftest.err >&5
 
26566
   echo "$as_me:26566: \$? = $ac_status" >&5
 
26567
   if (exit $ac_status) && test -s "$ac_outfile"; then
9802
26568
     # The compiler can only warn and ignore the option if not recognized
9803
26569
     # So say no if there are warnings
9804
 
     if test -s conftest.err; then
9805
 
       # Append any errors to the config.log.
9806
 
       cat conftest.err 1>&5
9807
 
     else
 
26570
     if test ! -s conftest.err; then
9808
26571
       lt_prog_compiler_pic_works_GCJ=yes
9809
26572
     fi
9810
26573
   fi
9811
26574
   $rm conftest*
9812
 
   CFLAGS="$save_CFLAGS"
9813
26575
 
9814
26576
fi
9815
 
echo "$as_me:9815: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
26577
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
9816
26578
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
9817
26579
 
9818
26580
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
9832
26594
    lt_prog_compiler_pic_GCJ=
9833
26595
    ;;
9834
26596
  *)
9835
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
 
26597
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
9836
26598
    ;;
9837
26599
esac
9838
26600
 
9839
 
echo "$as_me:9839: checking if $compiler supports -c -o file.$ac_objext" >&5
 
26601
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9840
26602
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
9841
26603
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
9842
26604
  echo $ECHO_N "(cached) $ECHO_C" >&6
9846
26608
   mkdir conftest
9847
26609
   cd conftest
9848
26610
   mkdir out
9849
 
   save_GCJFLAGS="$GCJFLAGS"
9850
 
                   GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
9851
 
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9852
 
 
9853
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
9854
 
   # that will create temporary files in the current directory regardless of
9855
 
   # the output directory.  Thus, making CWD read-only will cause this test
9856
 
   # to fail, enabling locking or at least warning the user not to do parallel
9857
 
   # builds.
9858
 
   chmod -w .
9859
 
 
9860
 
   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
 
26611
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
26612
 
 
26613
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
26614
   # Insert the option either (1) after the last *FLAGS variable, or
 
26615
   # (2) before a word containing "conftest.", or (3) at the end.
 
26616
   # Note that $ac_compile itself does not contain backslashes and begins
 
26617
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
26618
   lt_compile=`echo "$ac_compile" | $SED \
 
26619
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
26620
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
26621
   -e 's:$: $lt_compiler_flag:'`
 
26622
   (eval echo "\"\$as_me:26622: $lt_compile\"" >&5)
 
26623
   (eval "$lt_compile" 2>out/conftest.err)
 
26624
   ac_status=$?
 
26625
   cat out/conftest.err >&5
 
26626
   echo "$as_me:26626: \$? = $ac_status" >&5
 
26627
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9861
26628
   then
9862
26629
     # The compiler can only warn and ignore the option if not recognized
9863
26630
     # So say no if there are warnings
9864
 
     if test -s out/conftest.err; then
9865
 
       # Append any errors to the config.log.
9866
 
       cat out/conftest.err 1>&5
9867
 
     else
 
26631
     if test ! -s out/conftest.err; then
9868
26632
       lt_cv_prog_compiler_c_o_GCJ=yes
9869
26633
     fi
9870
26634
   fi
9871
 
   GCJFLAGS="$save_GCJFLAGS"
9872
26635
   chmod u+w .
9873
 
   $rm conftest* out/*
9874
 
   rmdir out
 
26636
   $rm conftest*
 
26637
   # SGI C++ compiler will create directory out/ii_files/ for
 
26638
   # template instantiation
 
26639
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
26640
   $rm out/* && rmdir out
9875
26641
   cd ..
9876
26642
   rmdir conftest
9877
26643
   $rm conftest*
9878
26644
 
9879
26645
fi
9880
 
echo "$as_me:9880: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
26646
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
9881
26647
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
9882
26648
 
 
26649
 
9883
26650
hard_links="nottested"
9884
26651
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
9885
26652
  # do not overwrite the value of need_locks provided by the user
9886
 
  echo "$as_me:9886: checking if we can lock with hard links" >&5
 
26653
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9887
26654
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
9888
26655
  hard_links=yes
9889
26656
  $rm conftest*
9891
26658
  touch conftest.a
9892
26659
  ln conftest.a conftest.b 2>&5 || hard_links=no
9893
26660
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9894
 
  echo "$as_me:9894: result: $hard_links" >&5
 
26661
  echo "$as_me:$LINENO: result: $hard_links" >&5
9895
26662
echo "${ECHO_T}$hard_links" >&6
9896
26663
  if test "$hard_links" = no; then
9897
 
    { echo "$as_me:9897: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
26664
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9898
26665
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9899
26666
    need_locks=warn
9900
26667
  fi
9902
26669
  need_locks=no
9903
26670
fi
9904
26671
 
9905
 
echo "$as_me:9905: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
26672
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9906
26673
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9907
26674
 
9908
26675
  runpath_var=
9909
26676
  allow_undefined_flag_GCJ=
9910
 
 
 
26677
  enable_shared_with_static_runtimes_GCJ=no
9911
26678
  archive_cmds_GCJ=
9912
 
  archive_cmds_need_lc_GCJ=
9913
26679
  archive_expsym_cmds_GCJ=
9914
26680
  old_archive_From_new_cmds_GCJ=
9915
26681
  old_archive_from_expsyms_cmds_GCJ=
9917
26683
  whole_archive_flag_spec_GCJ=
9918
26684
  thread_safe_flag_spec_GCJ=
9919
26685
  hardcode_libdir_flag_spec_GCJ=
 
26686
  hardcode_libdir_flag_spec_ld_GCJ=
9920
26687
  hardcode_libdir_separator_GCJ=
9921
26688
  hardcode_direct_GCJ=no
9922
26689
  hardcode_minus_L_GCJ=no
9923
26690
  hardcode_shlibpath_var_GCJ=unsupported
9924
26691
  link_all_deplibs_GCJ=unknown
 
26692
  hardcode_automatic_GCJ=no
 
26693
  module_cmds_GCJ=
 
26694
  module_expsym_cmds_GCJ=
9925
26695
  always_export_symbols_GCJ=no
9926
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
26696
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9927
26697
  # include_expsyms should be a list of space-separated symbols to be *always*
9928
26698
  # included in the symbol list
9929
26699
  include_expsyms_GCJ=
9930
 
  # exclude_expsyms can be an egrep regular expression of symbols to exclude
 
26700
  # exclude_expsyms can be an extended regexp of symbols to exclude
9931
26701
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9932
26702
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9933
26703
  # as well as any symbol that contains `d'.
9963
26733
    aix3* | aix4* | aix5*)
9964
26734
      # On AIX/PPC, the GNU linker is very broken
9965
26735
      if test "$host_cpu" != ia64; then
9966
 
        ld_shlibs_GCJ=no
9967
 
        cat <<EOF 1>&2
 
26736
        ld_shlibs_GCJ=no
 
26737
        cat <<EOF 1>&2
9968
26738
 
9969
26739
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9970
26740
*** to be unable to reliably create shared libraries on AIX.
9991
26761
      ;;
9992
26762
 
9993
26763
    beos*)
9994
 
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
9995
 
        allow_undefined_flag_GCJ=unsupported
9996
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9997
 
        # support --undefined.  This deserves some investigation.  FIXME
9998
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
26764
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
26765
        allow_undefined_flag_GCJ=unsupported
 
26766
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
26767
        # support --undefined.  This deserves some investigation.  FIXME
 
26768
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9999
26769
      else
10000
 
        ld_shlibs_GCJ=no
 
26770
        ld_shlibs_GCJ=no
10001
26771
      fi
10002
26772
      ;;
10003
26773
 
10004
26774
    cygwin* | mingw* | pw32*)
10005
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
10006
 
      # no search path for DLLs.
 
26775
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
26776
      # as there is no search path for DLLs.
10007
26777
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
10008
26778
      allow_undefined_flag_GCJ=unsupported
10009
 
      always_export_symbols_GCJ=yes
10010
 
 
10011
 
      extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
10012
 
        sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
10013
 
        test -f $output_objdir/impgen.exe || (cd $output_objdir && \
10014
 
        if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
10015
 
        else $CC -o impgen impgen.c ; fi)~
10016
 
        $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
10017
 
 
10018
 
      old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
10019
 
 
10020
 
      # cygwin and mingw dlls have different entry points and sets of symbols
10021
 
      # to exclude.
10022
 
      # FIXME: what about values for MSVC?
10023
 
      dll_entry=__cygwin_dll_entry@12
10024
 
      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
10025
 
      case $host_os in
10026
 
      mingw*)
10027
 
        # mingw values
10028
 
        dll_entry=_DllMainCRTStartup@12
10029
 
        dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
10030
 
        ;;
10031
 
      esac
10032
 
 
10033
 
      # mingw and cygwin differ, and it's simplest to just exclude the union
10034
 
      # of the two symbol sets.
10035
 
      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
10036
 
 
10037
 
      # recent cygwin and mingw systems supply a stub DllMain which the user
10038
 
      # can override, but on older systems we have to supply one (in ltdll.c)
10039
 
      if test "x$lt_cv_need_dllmain" = "xyes"; then
10040
 
        ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
10041
 
        ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
10042
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
 
26779
      always_export_symbols_GCJ=no
 
26780
      enable_shared_with_static_runtimes_GCJ=yes
 
26781
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
26782
 
 
26783
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
26784
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
26785
        # If the export-symbols file already is a .def file (1st line
 
26786
        # is EXPORTS), use it as is; otherwise, prepend...
 
26787
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
26788
          cp $export_symbols $output_objdir/$soname.def;
 
26789
        else
 
26790
          echo EXPORTS > $output_objdir/$soname.def;
 
26791
          cat $export_symbols >> $output_objdir/$soname.def;
 
26792
        fi~
 
26793
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
10043
26794
      else
10044
 
        ltdll_obj=
10045
 
        ltdll_cmds=
 
26795
        ld_shlibs=no
10046
26796
      fi
10047
 
 
10048
 
      # Extract the symbol export list from an `--export-all' def file,
10049
 
      # then regenerate the def file from the symbol export list, so that
10050
 
      # the compiled dll only exports the symbol export list.
10051
 
      # Be careful not to strip the DATA tag left by newer dlltools.
10052
 
      export_symbols_cmds_GCJ="$ltdll_cmds"'
10053
 
        $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
10054
 
        sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
10055
 
 
10056
 
      # If the export-symbols file already is a .def file (1st line
10057
 
      # is EXPORTS), use it as is.
10058
 
      # If DATA tags from a recent dlltool are present, honour them!
10059
 
      archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
10060
 
          cp $export_symbols $output_objdir/$soname-def;
10061
 
        else
10062
 
          echo EXPORTS > $output_objdir/$soname-def;
10063
 
          _lt_hint=1;
10064
 
          cat $export_symbols | while read symbol; do
10065
 
           set dummy \$symbol;
10066
 
           case \$# in
10067
 
             2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
10068
 
             *) echo "   \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
10069
 
           esac;
10070
 
           _lt_hint=`expr 1 + \$_lt_hint`;
10071
 
          done;
10072
 
        fi~
10073
 
        '"$ltdll_cmds"'
10074
 
        $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
10075
 
        $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
10076
 
        $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
10077
 
        $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
10078
 
        $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
10079
 
      ;;
10080
 
 
10081
 
    darwin* | rhapsody*)
10082
 
      allow_undefined_flag_GCJ='-undefined suppress'
10083
 
      # FIXME: Relying on posixy $() will cause problems for
10084
 
      #        cross-compilation, but unfortunately the echo tests do not
10085
 
      #        yet detect zsh echo's removal of \ escapes.
10086
 
      archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
10087
 
      # We need to add '_' to the symbols in $export_symbols first
10088
 
      #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
10089
 
      hardcode_direct_GCJ=yes
10090
 
      hardcode_shlibpath_var_GCJ=no
10091
 
      whole_archive_flag_spec_GCJ='-all_load $convenience'
10092
 
      ;;
10093
 
 
10094
 
    netbsd*)
 
26797
      ;;
 
26798
 
 
26799
    netbsd* | knetbsd*-gnu)
10095
26800
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10096
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10097
 
        wlarc=
 
26801
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
26802
        wlarc=
10098
26803
      else
10099
 
        archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10100
 
        archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
26804
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
26805
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10101
26806
      fi
10102
26807
      ;;
10103
26808
 
10104
26809
    solaris* | sysv5*)
10105
 
      if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
10106
 
        ld_shlibs_GCJ=no
10107
 
        cat <<EOF 1>&2
 
26810
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
26811
        ld_shlibs_GCJ=no
 
26812
        cat <<EOF 1>&2
10108
26813
 
10109
26814
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10110
26815
*** create shared libraries on Solaris systems.  Therefore, libtool
10114
26819
*** used, and then restart.
10115
26820
 
10116
26821
EOF
10117
 
      elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
10118
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10119
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
26822
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
26823
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
26824
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10120
26825
      else
10121
 
        ld_shlibs_GCJ=no
 
26826
        ld_shlibs_GCJ=no
10122
26827
      fi
10123
26828
      ;;
10124
26829
 
10129
26834
      hardcode_shlibpath_var_GCJ=no
10130
26835
      ;;
10131
26836
 
 
26837
  linux*)
 
26838
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
26839
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
26840
        archive_cmds_GCJ="$tmp_archive_cmds"
 
26841
      supports_anon_versioning=no
 
26842
      case `$LD -v 2>/dev/null` in
 
26843
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
26844
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
26845
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
26846
        *\ 2.11.*) ;; # other 2.11 versions
 
26847
        *) supports_anon_versioning=yes ;;
 
26848
      esac
 
26849
      if test $supports_anon_versioning = yes; then
 
26850
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
26851
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
26852
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
26853
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
26854
      else
 
26855
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
26856
      fi
 
26857
      link_all_deplibs_GCJ=no
 
26858
    else
 
26859
      ld_shlibs_GCJ=no
 
26860
    fi
 
26861
    ;;
 
26862
 
10132
26863
    *)
10133
 
      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
10134
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10135
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
26864
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
26865
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
26866
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10136
26867
      else
10137
 
        ld_shlibs_GCJ=no
 
26868
        ld_shlibs_GCJ=no
10138
26869
      fi
10139
26870
      ;;
10140
26871
    esac
10143
26874
      runpath_var=LD_RUN_PATH
10144
26875
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
10145
26876
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
10146
 
      case $host_os in
10147
 
      cygwin* | mingw* | pw32*)
10148
 
        # dlltool doesn't understand --whole-archive et. al.
10149
 
        whole_archive_flag_spec_GCJ=
10150
 
        ;;
10151
 
      *)
10152
 
        # ancient GNU ld didn't support --whole-archive et. al.
10153
 
        if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
10154
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10155
 
        else
 
26877
      # ancient GNU ld didn't support --whole-archive et. al.
 
26878
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
26879
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
26880
      else
10156
26881
        whole_archive_flag_spec_GCJ=
10157
 
        fi
10158
 
        ;;
10159
 
      esac
 
26882
      fi
10160
26883
    fi
10161
26884
  else
10162
26885
    # PORTME fill in a description of your system's linker (not GNU ld)
10169
26892
      # are no directories specified by -L.
10170
26893
      hardcode_minus_L_GCJ=yes
10171
26894
      if test "$GCC" = yes && test -z "$link_static_flag"; then
10172
 
        # Neither direct hardcoding nor static linking is supported with a
10173
 
        # broken collect2.
10174
 
        hardcode_direct_GCJ=unsupported
 
26895
        # Neither direct hardcoding nor static linking is supported with a
 
26896
        # broken collect2.
 
26897
        hardcode_direct_GCJ=unsupported
10175
26898
      fi
10176
26899
      ;;
10177
26900
 
10178
26901
    aix4* | aix5*)
10179
26902
      if test "$host_cpu" = ia64; then
10180
 
        # On IA64, the linker does run time linking by default, so we don't
10181
 
        # have to do anything special.
10182
 
        aix_use_runtimelinking=no
10183
 
        exp_sym_flag='-Bexport'
10184
 
        no_entry_flag=""
 
26903
        # On IA64, the linker does run time linking by default, so we don't
 
26904
        # have to do anything special.
 
26905
        aix_use_runtimelinking=no
 
26906
        exp_sym_flag='-Bexport'
 
26907
        no_entry_flag=""
10185
26908
      else
10186
 
        aix_use_runtimelinking=no
 
26909
        # If we're using GNU nm, then we don't want the "-C" option.
 
26910
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
26911
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
26912
          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'
 
26913
        else
 
26914
          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'
 
26915
        fi
 
26916
        aix_use_runtimelinking=no
10187
26917
 
10188
 
        # Test if we are trying to use run time linking or normal
10189
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10190
 
        # need to do runtime linking.
10191
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10192
 
          for ld_flag in $LDFLAGS; do
 
26918
        # Test if we are trying to use run time linking or normal
 
26919
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
26920
        # need to do runtime linking.
 
26921
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
26922
          for ld_flag in $LDFLAGS; do
10193
26923
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10194
26924
            aix_use_runtimelinking=yes
10195
26925
            break
10196
26926
          fi
10197
 
          done
10198
 
        esac
 
26927
          done
 
26928
        esac
10199
26929
 
10200
 
        exp_sym_flag='-bexport'
10201
 
        no_entry_flag='-bnoentry'
 
26930
        exp_sym_flag='-bexport'
 
26931
        no_entry_flag='-bnoentry'
10202
26932
      fi
10203
26933
 
10204
26934
      # When large executables or shared objects are built, AIX ld can
10213
26943
      link_all_deplibs_GCJ=yes
10214
26944
 
10215
26945
      if test "$GCC" = yes; then
10216
 
        case $host_os in aix4.012|aix4.012.*)
10217
 
        # We only want to do this on AIX 4.2 and lower, the check
10218
 
        # below for broken collect2 doesn't work under 4.3+
10219
 
          collect2name=`${CC} -print-prog-name=collect2`
10220
 
          if test -f "$collect2name" && \
 
26946
        case $host_os in aix4.012|aix4.012.*)
 
26947
        # We only want to do this on AIX 4.2 and lower, the check
 
26948
        # below for broken collect2 doesn't work under 4.3+
 
26949
          collect2name=`${CC} -print-prog-name=collect2`
 
26950
          if test -f "$collect2name" && \
10221
26951
           strings "$collect2name" | grep resolve_lib_name >/dev/null
10222
 
          then
 
26952
          then
10223
26953
          # We have reworked collect2
10224
26954
          hardcode_direct_GCJ=yes
10225
 
          else
 
26955
          else
10226
26956
          # We have old collect2
10227
26957
          hardcode_direct_GCJ=unsupported
10228
26958
          # It fails to find uninstalled libraries when the uninstalled
10231
26961
          hardcode_minus_L_GCJ=yes
10232
26962
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
10233
26963
          hardcode_libdir_separator_GCJ=
10234
 
          fi
10235
 
        esac
10236
 
        shared_flag='-shared'
 
26964
          fi
 
26965
        esac
 
26966
        shared_flag='-shared'
10237
26967
      else
10238
 
        # not using gcc
10239
 
        if test "$host_cpu" = ia64; then
 
26968
        # not using gcc
 
26969
        if test "$host_cpu" = ia64; then
10240
26970
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10241
26971
        # chokes on -Wl,-G. The following line is correct:
10242
 
          shared_flag='-G'
10243
 
        else
 
26972
          shared_flag='-G'
 
26973
        else
10244
26974
        if test "$aix_use_runtimelinking" = yes; then
10245
 
            shared_flag='${wl}-G'
10246
 
          else
10247
 
            shared_flag='${wl}-bM:SRE'
 
26975
            shared_flag='${wl}-G'
 
26976
          else
 
26977
            shared_flag='${wl}-bM:SRE'
10248
26978
        fi
10249
 
        fi
 
26979
        fi
10250
26980
      fi
10251
26981
 
10252
26982
      # It seems that -bexpall does not export symbols beginning with
10253
26983
      # underscore (_), so it is better to generate a list of symbols to export.
10254
26984
      always_export_symbols_GCJ=yes
10255
26985
      if test "$aix_use_runtimelinking" = yes; then
10256
 
        # Warning - without using the other runtime loading flags (-brtl),
10257
 
        # -berok will link without error, but may produce a broken library.
10258
 
        allow_undefined_flag_GCJ='-berok'
 
26986
        # Warning - without using the other runtime loading flags (-brtl),
 
26987
        # -berok will link without error, but may produce a broken library.
 
26988
        allow_undefined_flag_GCJ='-berok'
10259
26989
       # Determine the default libpath from the value encoded in an empty executable.
10260
26990
       cat >conftest.$ac_ext <<_ACEOF
10261
 
#line 10261 "configure"
10262
 
#include "confdefs.h"
 
26991
/* confdefs.h.  */
 
26992
_ACEOF
 
26993
cat confdefs.h >>conftest.$ac_ext
 
26994
cat >>conftest.$ac_ext <<_ACEOF
 
26995
/* end confdefs.h.  */
10263
26996
 
10264
26997
int
10265
26998
main ()
10270
27003
}
10271
27004
_ACEOF
10272
27005
rm -f conftest.$ac_objext conftest$ac_exeext
10273
 
if { (eval echo "$as_me:10273: \"$ac_link\"") >&5
10274
 
  (eval $ac_link) 2>&5
 
27006
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27007
  (eval $ac_link) 2>conftest.er1
10275
27008
  ac_status=$?
10276
 
  echo "$as_me:10276: \$? = $ac_status" >&5
 
27009
  grep -v '^ *+' conftest.er1 >conftest.err
 
27010
  rm -f conftest.er1
 
27011
  cat conftest.err >&5
 
27012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277
27013
  (exit $ac_status); } &&
10278
 
         { ac_try='test -s conftest$ac_exeext'
10279
 
  { (eval echo "$as_me:10279: \"$ac_try\"") >&5
10280
 
  (eval $ac_try) 2>&5
10281
 
  ac_status=$?
10282
 
  echo "$as_me:10282: \$? = $ac_status" >&5
 
27014
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27015
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27016
  (eval $ac_try) 2>&5
 
27017
  ac_status=$?
 
27018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27019
  (exit $ac_status); }; } &&
 
27020
         { ac_try='test -s conftest$ac_exeext'
 
27021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27022
  (eval $ac_try) 2>&5
 
27023
  ac_status=$?
 
27024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283
27025
  (exit $ac_status); }; }; then
10284
27026
 
10285
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
 
27027
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
27028
}'`
10286
27029
# Check for a 64-bit object if we didn't find anything.
10287
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
 
27030
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; }
 
27031
}'`; fi
10288
27032
else
10289
27033
  echo "$as_me: failed program was:" >&5
10290
 
cat conftest.$ac_ext >&5
 
27034
sed 's/^/| /' conftest.$ac_ext >&5
 
27035
 
10291
27036
fi
10292
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
27037
rm -f conftest.err conftest.$ac_objext \
 
27038
      conftest$ac_exeext conftest.$ac_ext
10293
27039
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10294
27040
 
10295
27041
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
10296
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
27042
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10297
27043
       else
10298
 
        if test "$host_cpu" = ia64; then
10299
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
10300
 
          allow_undefined_flag_GCJ="-z nodefs"
10301
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10302
 
        else
10303
 
         # Determine the default libpath from the value encoded in an empty executable.
10304
 
         cat >conftest.$ac_ext <<_ACEOF
10305
 
#line 10305 "configure"
10306
 
#include "confdefs.h"
 
27044
        if test "$host_cpu" = ia64; then
 
27045
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
27046
          allow_undefined_flag_GCJ="-z nodefs"
 
27047
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
27048
        else
 
27049
         # Determine the default libpath from the value encoded in an empty executable.
 
27050
         cat >conftest.$ac_ext <<_ACEOF
 
27051
/* confdefs.h.  */
 
27052
_ACEOF
 
27053
cat confdefs.h >>conftest.$ac_ext
 
27054
cat >>conftest.$ac_ext <<_ACEOF
 
27055
/* end confdefs.h.  */
10307
27056
 
10308
27057
int
10309
27058
main ()
10314
27063
}
10315
27064
_ACEOF
10316
27065
rm -f conftest.$ac_objext conftest$ac_exeext
10317
 
if { (eval echo "$as_me:10317: \"$ac_link\"") >&5
10318
 
  (eval $ac_link) 2>&5
 
27066
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
27067
  (eval $ac_link) 2>conftest.er1
10319
27068
  ac_status=$?
10320
 
  echo "$as_me:10320: \$? = $ac_status" >&5
 
27069
  grep -v '^ *+' conftest.er1 >conftest.err
 
27070
  rm -f conftest.er1
 
27071
  cat conftest.err >&5
 
27072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321
27073
  (exit $ac_status); } &&
10322
 
         { ac_try='test -s conftest$ac_exeext'
10323
 
  { (eval echo "$as_me:10323: \"$ac_try\"") >&5
10324
 
  (eval $ac_try) 2>&5
10325
 
  ac_status=$?
10326
 
  echo "$as_me:10326: \$? = $ac_status" >&5
 
27074
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
27075
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27076
  (eval $ac_try) 2>&5
 
27077
  ac_status=$?
 
27078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
27079
  (exit $ac_status); }; } &&
 
27080
         { ac_try='test -s conftest$ac_exeext'
 
27081
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
27082
  (eval $ac_try) 2>&5
 
27083
  ac_status=$?
 
27084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327
27085
  (exit $ac_status); }; }; then
10328
27086
 
10329
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
 
27087
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
27088
}'`
10330
27089
# Check for a 64-bit object if we didn't find anything.
10331
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
 
27090
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; }
 
27091
}'`; fi
10332
27092
else
10333
27093
  echo "$as_me: failed program was:" >&5
10334
 
cat conftest.$ac_ext >&5
 
27094
sed 's/^/| /' conftest.$ac_ext >&5
 
27095
 
10335
27096
fi
10336
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
27097
rm -f conftest.err conftest.$ac_objext \
 
27098
      conftest$ac_exeext conftest.$ac_ext
10337
27099
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10338
27100
 
10339
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
10340
 
          # Warning - without using the other run time loading flags,
10341
 
          # -berok will link without error, but may produce a broken library.
10342
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
10343
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
10344
 
          # -bexpall does not export symbols beginning with underscore (_)
10345
 
          always_export_symbols_GCJ=yes
10346
 
          # Exported symbols can be pulled into shared objects from archives
10347
 
          whole_archive_flag_spec_GCJ=' '
10348
 
          archive_cmds_need_lc_GCJ=yes
10349
 
          # This is similar to how AIX traditionally builds it's shared libraries.
10350
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10351
 
        fi
 
27101
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
27102
          # Warning - without using the other run time loading flags,
 
27103
          # -berok will link without error, but may produce a broken library.
 
27104
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
27105
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
27106
          # -bexpall does not export symbols beginning with underscore (_)
 
27107
          always_export_symbols_GCJ=yes
 
27108
          # Exported symbols can be pulled into shared objects from archives
 
27109
          whole_archive_flag_spec_GCJ=' '
 
27110
          archive_cmds_need_lc_GCJ=yes
 
27111
          # This is similar to how AIX traditionally builds it's shared libraries.
 
27112
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
27113
        fi
10352
27114
      fi
10353
27115
      ;;
10354
27116
 
10373
27135
      allow_undefined_flag_GCJ=unsupported
10374
27136
      # Tell ltmain to make .lib files, not .a files.
10375
27137
      libext=lib
 
27138
      # Tell ltmain to make .dll files, not .so files.
 
27139
      shrext_cmds=".dll"
10376
27140
      # FIXME: Setting linknames here is a bad hack.
10377
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
27141
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10378
27142
      # The linker will automatically build a .lib file if we build a DLL.
10379
27143
      old_archive_From_new_cmds_GCJ='true'
10380
27144
      # FIXME: Should let the user specify the lib program.
10381
27145
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
10382
27146
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
27147
      enable_shared_with_static_runtimes_GCJ=yes
 
27148
      ;;
 
27149
 
 
27150
    darwin* | rhapsody*)
 
27151
    if test "$GXX" = yes ; then
 
27152
      archive_cmds_need_lc_GCJ=no
 
27153
      case "$host_os" in
 
27154
      rhapsody* | darwin1.[012])
 
27155
        allow_undefined_flag_GCJ='-undefined suppress'
 
27156
        ;;
 
27157
      *) # Darwin 1.3 on
 
27158
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
27159
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
27160
      else
 
27161
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
27162
          10.[012])
 
27163
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
27164
            ;;
 
27165
          10.*)
 
27166
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
27167
            ;;
 
27168
        esac
 
27169
      fi
 
27170
        ;;
 
27171
      esac
 
27172
        lt_int_apple_cc_single_mod=no
 
27173
        output_verbose_link_cmd='echo'
 
27174
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
27175
          lt_int_apple_cc_single_mod=yes
 
27176
        fi
 
27177
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
27178
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
27179
        else
 
27180
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
 
27181
      fi
 
27182
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
27183
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
27184
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
27185
          archive_expsym_cmds_GCJ='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}'
 
27186
        else
 
27187
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
 
27188
        fi
 
27189
          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}'
 
27190
      hardcode_direct_GCJ=no
 
27191
      hardcode_automatic_GCJ=yes
 
27192
      hardcode_shlibpath_var_GCJ=unsupported
 
27193
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
27194
      link_all_deplibs_GCJ=yes
 
27195
    else
 
27196
      ld_shlibs_GCJ=no
 
27197
    fi
10383
27198
      ;;
10384
27199
 
10385
27200
    dgux*)
10412
27227
      ;;
10413
27228
 
10414
27229
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10415
 
    freebsd*)
 
27230
    freebsd* | kfreebsd*-gnu)
10416
27231
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10417
27232
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
10418
27233
      hardcode_direct_GCJ=yes
10419
27234
      hardcode_shlibpath_var_GCJ=no
10420
27235
      ;;
10421
27236
 
10422
 
    hpux9* | hpux10* | hpux11*)
10423
 
      if test $GXX = yes; then
10424
 
        case $host_os in
10425
 
          hpux9*)
10426
 
            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'
10427
 
            ;;
10428
 
        *)
10429
 
            if test "$host_cpu" = ia64; then
10430
 
              archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10431
 
            else
10432
 
              archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10433
 
            fi
10434
 
            ;;
10435
 
        esac
10436
 
      else
10437
 
        case $host_os in
10438
 
          hpux9*)
10439
 
            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'
10440
 
            ;;
10441
 
          *)
10442
 
            if test "$host_cpu" = ia64; then
10443
 
              archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10444
 
            else
10445
 
              archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10446
 
            fi
10447
 
            ;;
10448
 
        esac
10449
 
      fi
10450
 
      if test "$host_cpu" = ia64; then
10451
 
        hardcode_libdir_flag_spec_GCJ='-L$libdir'
10452
 
        hardcode_direct_GCJ=no
10453
 
        hardcode_shlibpath_var_GCJ=no
10454
 
      else
10455
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
10456
 
        hardcode_libdir_separator_GCJ=:
10457
 
        hardcode_direct_GCJ=yes
10458
 
      fi
 
27237
    hpux9*)
 
27238
      if test "$GCC" = yes; then
 
27239
        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'
 
27240
      else
 
27241
        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'
 
27242
      fi
 
27243
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
27244
      hardcode_libdir_separator_GCJ=:
 
27245
      hardcode_direct_GCJ=yes
 
27246
 
10459
27247
      # hardcode_minus_L: Not really in the search PATH,
10460
27248
      # but as the default location of the library.
10461
27249
      hardcode_minus_L_GCJ=yes
10462
27250
      export_dynamic_flag_spec_GCJ='${wl}-E'
10463
27251
      ;;
10464
27252
 
10465
 
    irix5* | irix6*)
 
27253
    hpux10* | hpux11*)
 
27254
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
27255
        case "$host_cpu" in
 
27256
        hppa*64*|ia64*)
 
27257
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
27258
          ;;
 
27259
        *)
 
27260
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
27261
          ;;
 
27262
        esac
 
27263
      else
 
27264
        case "$host_cpu" in
 
27265
        hppa*64*|ia64*)
 
27266
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
27267
          ;;
 
27268
        *)
 
27269
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
27270
          ;;
 
27271
        esac
 
27272
      fi
 
27273
      if test "$with_gnu_ld" = no; then
 
27274
        case "$host_cpu" in
 
27275
        hppa*64*)
 
27276
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
27277
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
27278
          hardcode_libdir_separator_GCJ=:
 
27279
          hardcode_direct_GCJ=no
 
27280
          hardcode_shlibpath_var_GCJ=no
 
27281
          ;;
 
27282
        ia64*)
 
27283
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
27284
          hardcode_direct_GCJ=no
 
27285
          hardcode_shlibpath_var_GCJ=no
 
27286
 
 
27287
          # hardcode_minus_L: Not really in the search PATH,
 
27288
          # but as the default location of the library.
 
27289
          hardcode_minus_L_GCJ=yes
 
27290
          ;;
 
27291
        *)
 
27292
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
27293
          hardcode_libdir_separator_GCJ=:
 
27294
          hardcode_direct_GCJ=yes
 
27295
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
27296
 
 
27297
          # hardcode_minus_L: Not really in the search PATH,
 
27298
          # but as the default location of the library.
 
27299
          hardcode_minus_L_GCJ=yes
 
27300
          ;;
 
27301
        esac
 
27302
      fi
 
27303
      ;;
 
27304
 
 
27305
    irix5* | irix6* | nonstopux*)
10466
27306
      if test "$GCC" = yes; then
10467
 
        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'
 
27307
        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'
10468
27308
      else
10469
 
        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'
 
27309
        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'
 
27310
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
10470
27311
      fi
10471
27312
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10472
27313
      hardcode_libdir_separator_GCJ=:
10473
27314
      link_all_deplibs_GCJ=yes
10474
27315
      ;;
10475
27316
 
10476
 
    netbsd*)
 
27317
    netbsd* | knetbsd*-gnu)
10477
27318
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10478
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
27319
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10479
27320
      else
10480
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
27321
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10481
27322
      fi
10482
27323
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
10483
27324
      hardcode_direct_GCJ=yes
10485
27326
      ;;
10486
27327
 
10487
27328
    newsos6)
10488
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
 
27329
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10489
27330
      hardcode_direct_GCJ=yes
10490
27331
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10491
27332
      hardcode_libdir_separator_GCJ=:
10495
27336
    openbsd*)
10496
27337
      hardcode_direct_GCJ=yes
10497
27338
      hardcode_shlibpath_var_GCJ=no
10498
 
 
10499
 
      case "$host_os" in
10500
 
        openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*)
10501
 
          archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10502
 
          hardcode_libdir_flag_spec_GCJ='-R$libdir'
10503
 
        ;;
10504
 
        *)
10505
 
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
10506
 
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
10507
 
          if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
10508
 
           export_dynamic_flag_spec_GCJ='${wl}-E'
10509
 
          fi
10510
 
        ;;
10511
 
      esac
 
27339
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
27340
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
27341
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
27342
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
27343
      else
 
27344
       case $host_os in
 
27345
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
27346
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
27347
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
27348
           ;;
 
27349
         *)
 
27350
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
27351
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
27352
           ;;
 
27353
       esac
 
27354
      fi
10512
27355
      ;;
10513
27356
 
10514
27357
    os2*)
10521
27364
 
10522
27365
    osf3*)
10523
27366
      if test "$GCC" = yes; then
10524
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
10525
 
        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'
 
27367
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
27368
        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'
10526
27369
      else
10527
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
10528
 
        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'
 
27370
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
27371
        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'
10529
27372
      fi
10530
27373
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10531
27374
      hardcode_libdir_separator_GCJ=:
10533
27376
 
10534
27377
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
10535
27378
      if test "$GCC" = yes; then
10536
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
10537
 
        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'
10538
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
27379
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
27380
        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'
 
27381
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10539
27382
      else
10540
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
10541
 
        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'
10542
 
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10543
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
27383
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
27384
        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'
 
27385
        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~
 
27386
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
10544
27387
 
10545
 
        # Both c and cxx compiler support -rpath directly
10546
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
27388
        # Both c and cxx compiler support -rpath directly
 
27389
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
10547
27390
      fi
10548
27391
      hardcode_libdir_separator_GCJ=:
10549
27392
      ;;
10557
27400
      ;;
10558
27401
 
10559
27402
    solaris*)
10560
 
      no_undefined_flag_GCJ=' -z defs'
10561
 
      if test "$GXX" = yes; then
10562
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10563
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10564
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
27403
      no_undefined_flag_GCJ=' -z text'
 
27404
      if test "$GCC" = yes; then
 
27405
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
27406
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
27407
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10565
27408
      else
10566
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10567
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
27409
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
27410
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10568
27411
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10569
27412
      fi
10570
27413
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
10572
27415
      case $host_os in
10573
27416
      solaris2.[0-5] | solaris2.[0-5].*) ;;
10574
27417
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
10575
 
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
27418
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
10576
27419
      esac
10577
27420
      link_all_deplibs_GCJ=yes
10578
27421
      ;;
10579
27422
 
10580
27423
    sunos4*)
10581
27424
      if test "x$host_vendor" = xsequent; then
10582
 
        # Use $CC to link under sequent, because it throws in some extra .o
10583
 
        # files that make .init and .fini sections work.
10584
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
27425
        # Use $CC to link under sequent, because it throws in some extra .o
 
27426
        # files that make .init and .fini sections work.
 
27427
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10585
27428
      else
10586
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
27429
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10587
27430
      fi
10588
27431
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
10589
27432
      hardcode_direct_GCJ=yes
10592
27435
      ;;
10593
27436
 
10594
27437
    sysv4)
10595
 
      if test "x$host_vendor" = xsni; then
10596
 
        archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
10597
 
        hardcode_direct_GCJ=yes # is this really true???
10598
 
      else
10599
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10600
 
        hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
10601
 
      fi
 
27438
      case $host_vendor in
 
27439
        sni)
 
27440
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
27441
          hardcode_direct_GCJ=yes # is this really true???
 
27442
        ;;
 
27443
        siemens)
 
27444
          ## LD is ld it makes a PLAMLIB
 
27445
          ## CC just makes a GrossModule.
 
27446
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
27447
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
27448
          hardcode_direct_GCJ=no
 
27449
        ;;
 
27450
        motorola)
 
27451
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
27452
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
27453
        ;;
 
27454
      esac
10602
27455
      runpath_var='LD_RUN_PATH'
10603
27456
      hardcode_shlibpath_var_GCJ=no
10604
27457
      ;;
10611
27464
 
10612
27465
    sysv4*MP*)
10613
27466
      if test -d /usr/nec; then
10614
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10615
 
        hardcode_shlibpath_var_GCJ=no
10616
 
        runpath_var=LD_RUN_PATH
10617
 
        hardcode_runpath_var=yes
10618
 
        ld_shlibs_GCJ=yes
 
27467
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
27468
        hardcode_shlibpath_var_GCJ=no
 
27469
        runpath_var=LD_RUN_PATH
 
27470
        hardcode_runpath_var=yes
 
27471
        ld_shlibs_GCJ=yes
10619
27472
      fi
10620
27473
      ;;
10621
27474
 
10631
27484
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
10632
27485
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
10633
27486
      if test "$GCC" = yes; then
10634
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
27487
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10635
27488
      else
10636
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
27489
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10637
27490
      fi
10638
27491
      runpath_var='LD_RUN_PATH'
10639
27492
      hardcode_shlibpath_var_GCJ=no
10644
27497
      # $CC -shared without GNU ld will not create a library from C++
10645
27498
      # object files and a static libstdc++, better avoid it by now
10646
27499
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10647
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
27500
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10648
27501
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10649
27502
      hardcode_libdir_flag_spec_GCJ=
10650
27503
      hardcode_shlibpath_var_GCJ=no
10663
27516
    esac
10664
27517
  fi
10665
27518
 
10666
 
echo "$as_me:10666: result: $ld_shlibs_GCJ" >&5
 
27519
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
10667
27520
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
10668
27521
test "$ld_shlibs_GCJ" = no && can_build_shared=no
10669
27522
 
10675
27528
#
10676
27529
# Do we need to explicitly link libc?
10677
27530
#
10678
 
archive_cmds_need_lc_GCJ=yes
10679
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
10680
 
  case $archive_cmds_GCJ in
10681
 
  *'~'*)
10682
 
    # FIXME: we may have to deal with multi-command sequences.
10683
 
    ;;
10684
 
  '$CC '*)
10685
 
    # Test whether the compiler implicitly links with -lc since on some
10686
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
10687
 
    # to ld, don't add -lc before -lgcc.
10688
 
    echo "$as_me:10688: checking whether -lc should be explicitly linked in" >&5
 
27531
case "x$archive_cmds_need_lc_GCJ" in
 
27532
x|xyes)
 
27533
  # Assume -lc should be added
 
27534
  archive_cmds_need_lc_GCJ=yes
 
27535
 
 
27536
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
27537
    case $archive_cmds_GCJ in
 
27538
    *'~'*)
 
27539
      # FIXME: we may have to deal with multi-command sequences.
 
27540
      ;;
 
27541
    '$CC '*)
 
27542
      # Test whether the compiler implicitly links with -lc since on some
 
27543
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
27544
      # to ld, don't add -lc before -lgcc.
 
27545
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10689
27546
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10690
 
    $rm conftest*
10691
 
    echo 'static int dummy;' > conftest.$ac_ext
 
27547
      $rm conftest*
 
27548
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10692
27549
 
10693
 
    if { (eval echo "$as_me:10693: \"$ac_compile\"") >&5
 
27550
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10694
27551
  (eval $ac_compile) 2>&5
10695
27552
  ac_status=$?
10696
 
  echo "$as_me:10696: \$? = $ac_status" >&5
 
27553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697
27554
  (exit $ac_status); } 2>conftest.err; then
10698
 
      soname=conftest
10699
 
      lib=conftest
10700
 
      libobjs=conftest.$ac_objext
10701
 
      deplibs=
10702
 
      wl=$lt_prog_compiler_wl_GCJ
10703
 
      compiler_flags=-v
10704
 
      linker_flags=-v
10705
 
      verstring=
10706
 
      output_objdir=.
10707
 
      libname=conftest
10708
 
      lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
10709
 
      allow_undefined_flag_GCJ=
10710
 
      if { (eval echo "$as_me:10710: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
27555
        soname=conftest
 
27556
        lib=conftest
 
27557
        libobjs=conftest.$ac_objext
 
27558
        deplibs=
 
27559
        wl=$lt_prog_compiler_wl_GCJ
 
27560
        compiler_flags=-v
 
27561
        linker_flags=-v
 
27562
        verstring=
 
27563
        output_objdir=.
 
27564
        libname=conftest
 
27565
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
27566
        allow_undefined_flag_GCJ=
 
27567
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10711
27568
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10712
27569
  ac_status=$?
10713
 
  echo "$as_me:10713: \$? = $ac_status" >&5
 
27570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714
27571
  (exit $ac_status); }
10715
 
      then
10716
 
        archive_cmds_need_lc_GCJ=no
 
27572
        then
 
27573
          archive_cmds_need_lc_GCJ=no
 
27574
        else
 
27575
          archive_cmds_need_lc_GCJ=yes
 
27576
        fi
 
27577
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
10717
27578
      else
10718
 
        archive_cmds_need_lc_GCJ=yes
 
27579
        cat conftest.err 1>&5
10719
27580
      fi
10720
 
      allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
10721
 
    else
10722
 
      cat conftest.err 1>&5
10723
 
    fi
10724
 
    $rm conftest*
10725
 
    echo "$as_me:10725: result: $archive_cmds_need_lc_GCJ" >&5
 
27581
      $rm conftest*
 
27582
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
10726
27583
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
10727
 
    ;;
10728
 
  esac
 
27584
      ;;
 
27585
    esac
 
27586
  fi
 
27587
  ;;
 
27588
esac
 
27589
 
 
27590
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
27591
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
27592
library_names_spec=
 
27593
libname_spec='lib$name'
 
27594
soname_spec=
 
27595
shrext_cmds=".so"
 
27596
postinstall_cmds=
 
27597
postuninstall_cmds=
 
27598
finish_cmds=
 
27599
finish_eval=
 
27600
shlibpath_var=
 
27601
shlibpath_overrides_runpath=unknown
 
27602
version_type=none
 
27603
dynamic_linker="$host_os ld.so"
 
27604
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
27605
if test "$GCC" = yes; then
 
27606
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
27607
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
27608
    # if the path contains ";" then we assume it to be the separator
 
27609
    # otherwise default to the standard path separator (i.e. ":") - it is
 
27610
    # assumed that no part of a normal pathname contains ";" but that should
 
27611
    # okay in the real world where ";" in dirpaths is itself problematic.
 
27612
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
27613
  else
 
27614
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
27615
  fi
 
27616
else
 
27617
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10729
27618
fi
10730
 
 
10731
 
echo "$as_me:10731: checking how to hardcode library paths into programs" >&5
 
27619
need_lib_prefix=unknown
 
27620
hardcode_into_libs=no
 
27621
 
 
27622
# when you set need_version to no, make sure it does not cause -set_version
 
27623
# flags to be left without arguments
 
27624
need_version=unknown
 
27625
 
 
27626
case $host_os in
 
27627
aix3*)
 
27628
  version_type=linux
 
27629
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
27630
  shlibpath_var=LIBPATH
 
27631
 
 
27632
  # AIX 3 has no versioning support, so we append a major version to the name.
 
27633
  soname_spec='${libname}${release}${shared_ext}$major'
 
27634
  ;;
 
27635
 
 
27636
aix4* | aix5*)
 
27637
  version_type=linux
 
27638
  need_lib_prefix=no
 
27639
  need_version=no
 
27640
  hardcode_into_libs=yes
 
27641
  if test "$host_cpu" = ia64; then
 
27642
    # AIX 5 supports IA64
 
27643
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
27644
    shlibpath_var=LD_LIBRARY_PATH
 
27645
  else
 
27646
    # With GCC up to 2.95.x, collect2 would create an import file
 
27647
    # for dependence libraries.  The import file would start with
 
27648
    # the line `#! .'.  This would cause the generated library to
 
27649
    # depend on `.', always an invalid library.  This was fixed in
 
27650
    # development snapshots of GCC prior to 3.0.
 
27651
    case $host_os in
 
27652
      aix4 | aix4.[01] | aix4.[01].*)
 
27653
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
27654
           echo ' yes '
 
27655
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
27656
        :
 
27657
      else
 
27658
        can_build_shared=no
 
27659
      fi
 
27660
      ;;
 
27661
    esac
 
27662
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
27663
    # soname into executable. Probably we can add versioning support to
 
27664
    # collect2, so additional links can be useful in future.
 
27665
    if test "$aix_use_runtimelinking" = yes; then
 
27666
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
27667
      # instead of lib<name>.a to let people know that these are not
 
27668
      # typical AIX shared libraries.
 
27669
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
27670
    else
 
27671
      # We preserve .a as extension for shared libraries through AIX4.2
 
27672
      # and later when we are not doing run time linking.
 
27673
      library_names_spec='${libname}${release}.a $libname.a'
 
27674
      soname_spec='${libname}${release}${shared_ext}$major'
 
27675
    fi
 
27676
    shlibpath_var=LIBPATH
 
27677
  fi
 
27678
  ;;
 
27679
 
 
27680
amigaos*)
 
27681
  library_names_spec='$libname.ixlibrary $libname.a'
 
27682
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
27683
  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'
 
27684
  ;;
 
27685
 
 
27686
beos*)
 
27687
  library_names_spec='${libname}${shared_ext}'
 
27688
  dynamic_linker="$host_os ld.so"
 
27689
  shlibpath_var=LIBRARY_PATH
 
27690
  ;;
 
27691
 
 
27692
bsdi4*)
 
27693
  version_type=linux
 
27694
  need_version=no
 
27695
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
27696
  soname_spec='${libname}${release}${shared_ext}$major'
 
27697
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
27698
  shlibpath_var=LD_LIBRARY_PATH
 
27699
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
27700
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
27701
  # the default ld.so.conf also contains /usr/contrib/lib and
 
27702
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
27703
  # libtool to hard-code these into programs
 
27704
  ;;
 
27705
 
 
27706
cygwin* | mingw* | pw32*)
 
27707
  version_type=windows
 
27708
  shrext_cmds=".dll"
 
27709
  need_version=no
 
27710
  need_lib_prefix=no
 
27711
 
 
27712
  case $GCC,$host_os in
 
27713
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
27714
    library_names_spec='$libname.dll.a'
 
27715
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
27716
    postinstall_cmds='base_file=`basename \${file}`~
 
27717
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
27718
      dldir=$destdir/`dirname \$dlpath`~
 
27719
      test -d \$dldir || mkdir -p \$dldir~
 
27720
      $install_prog $dir/$dlname \$dldir/$dlname'
 
27721
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
27722
      dlpath=$dir/\$dldll~
 
27723
       $rm \$dlpath'
 
27724
    shlibpath_overrides_runpath=yes
 
27725
 
 
27726
    case $host_os in
 
27727
    cygwin*)
 
27728
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
27729
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
27730
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
27731
      ;;
 
27732
    mingw*)
 
27733
      # MinGW DLLs use traditional 'lib' prefix
 
27734
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
27735
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
27736
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
27737
        # It is most probably a Windows format PATH printed by
 
27738
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
27739
        # path with ; separators, and with drive letters. We can handle the
 
27740
        # drive letters (cygwin fileutils understands them), so leave them,
 
27741
        # especially as we might pass files found there to a mingw objdump,
 
27742
        # which wouldn't understand a cygwinified path. Ahh.
 
27743
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
27744
      else
 
27745
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
27746
      fi
 
27747
      ;;
 
27748
    pw32*)
 
27749
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
27750
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
27751
      ;;
 
27752
    esac
 
27753
    ;;
 
27754
 
 
27755
  *)
 
27756
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
27757
    ;;
 
27758
  esac
 
27759
  dynamic_linker='Win32 ld.exe'
 
27760
  # FIXME: first we should search . and the directory the executable is in
 
27761
  shlibpath_var=PATH
 
27762
  ;;
 
27763
 
 
27764
darwin* | rhapsody*)
 
27765
  dynamic_linker="$host_os dyld"
 
27766
  version_type=darwin
 
27767
  need_lib_prefix=no
 
27768
  need_version=no
 
27769
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
27770
  soname_spec='${libname}${release}${major}$shared_ext'
 
27771
  shlibpath_overrides_runpath=yes
 
27772
  shlibpath_var=DYLD_LIBRARY_PATH
 
27773
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
27774
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
27775
  if test "$GCC" = yes; then
 
27776
    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"`
 
27777
  else
 
27778
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
27779
  fi
 
27780
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
27781
  ;;
 
27782
 
 
27783
dgux*)
 
27784
  version_type=linux
 
27785
  need_lib_prefix=no
 
27786
  need_version=no
 
27787
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
27788
  soname_spec='${libname}${release}${shared_ext}$major'
 
27789
  shlibpath_var=LD_LIBRARY_PATH
 
27790
  ;;
 
27791
 
 
27792
freebsd1*)
 
27793
  dynamic_linker=no
 
27794
  ;;
 
27795
 
 
27796
kfreebsd*-gnu)
 
27797
  version_type=linux
 
27798
  need_lib_prefix=no
 
27799
  need_version=no
 
27800
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
27801
  soname_spec='${libname}${release}${shared_ext}$major'
 
27802
  shlibpath_var=LD_LIBRARY_PATH
 
27803
  shlibpath_overrides_runpath=no
 
27804
  hardcode_into_libs=yes
 
27805
  dynamic_linker='GNU ld.so'
 
27806
  ;;
 
27807
 
 
27808
freebsd*)
 
27809
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
27810
  version_type=freebsd-$objformat
 
27811
  case $version_type in
 
27812
    freebsd-elf*)
 
27813
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
27814
      need_version=no
 
27815
      need_lib_prefix=no
 
27816
      ;;
 
27817
    freebsd-*)
 
27818
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
27819
      need_version=yes
 
27820
      ;;
 
27821
  esac
 
27822
  shlibpath_var=LD_LIBRARY_PATH
 
27823
  case $host_os in
 
27824
  freebsd2*)
 
27825
    shlibpath_overrides_runpath=yes
 
27826
    ;;
 
27827
  freebsd3.01* | freebsdelf3.01*)
 
27828
    shlibpath_overrides_runpath=yes
 
27829
    hardcode_into_libs=yes
 
27830
    ;;
 
27831
  *) # from 3.2 on
 
27832
    shlibpath_overrides_runpath=no
 
27833
    hardcode_into_libs=yes
 
27834
    ;;
 
27835
  esac
 
27836
  ;;
 
27837
 
 
27838
gnu*)
 
27839
  version_type=linux
 
27840
  need_lib_prefix=no
 
27841
  need_version=no
 
27842
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
27843
  soname_spec='${libname}${release}${shared_ext}$major'
 
27844
  shlibpath_var=LD_LIBRARY_PATH
 
27845
  hardcode_into_libs=yes
 
27846
  ;;
 
27847
 
 
27848
hpux9* | hpux10* | hpux11*)
 
27849
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
27850
  # link against other versions.
 
27851
  version_type=sunos
 
27852
  need_lib_prefix=no
 
27853
  need_version=no
 
27854
  case "$host_cpu" in
 
27855
  ia64*)
 
27856
    shrext_cmds='.so'
 
27857
    hardcode_into_libs=yes
 
27858
    dynamic_linker="$host_os dld.so"
 
27859
    shlibpath_var=LD_LIBRARY_PATH
 
27860
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
27861
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
27862
    soname_spec='${libname}${release}${shared_ext}$major'
 
27863
    if test "X$HPUX_IA64_MODE" = X32; then
 
27864
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
27865
    else
 
27866
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
27867
    fi
 
27868
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
27869
    ;;
 
27870
   hppa*64*)
 
27871
     shrext_cmds='.sl'
 
27872
     hardcode_into_libs=yes
 
27873
     dynamic_linker="$host_os dld.sl"
 
27874
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
27875
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
27876
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
27877
     soname_spec='${libname}${release}${shared_ext}$major'
 
27878
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
27879
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
27880
     ;;
 
27881
   *)
 
27882
    shrext_cmds='.sl'
 
27883
    dynamic_linker="$host_os dld.sl"
 
27884
    shlibpath_var=SHLIB_PATH
 
27885
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
27886
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
27887
    soname_spec='${libname}${release}${shared_ext}$major'
 
27888
    ;;
 
27889
  esac
 
27890
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
27891
  postinstall_cmds='chmod 555 $lib'
 
27892
  ;;
 
27893
 
 
27894
irix5* | irix6* | nonstopux*)
 
27895
  case $host_os in
 
27896
    nonstopux*) version_type=nonstopux ;;
 
27897
    *)
 
27898
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
27899
                version_type=linux
 
27900
        else
 
27901
                version_type=irix
 
27902
        fi ;;
 
27903
  esac
 
27904
  need_lib_prefix=no
 
27905
  need_version=no
 
27906
  soname_spec='${libname}${release}${shared_ext}$major'
 
27907
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
27908
  case $host_os in
 
27909
  irix5* | nonstopux*)
 
27910
    libsuff= shlibsuff=
 
27911
    ;;
 
27912
  *)
 
27913
    case $LD in # libtool.m4 will add one of these switches to LD
 
27914
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
27915
      libsuff= shlibsuff= libmagic=32-bit;;
 
27916
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
27917
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
27918
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
27919
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
27920
    *) libsuff= shlibsuff= libmagic=never-match;;
 
27921
    esac
 
27922
    ;;
 
27923
  esac
 
27924
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
27925
  shlibpath_overrides_runpath=no
 
27926
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
27927
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
27928
  hardcode_into_libs=yes
 
27929
  ;;
 
27930
 
 
27931
# No shared lib support for Linux oldld, aout, or coff.
 
27932
linux*oldld* | linux*aout* | linux*coff*)
 
27933
  dynamic_linker=no
 
27934
  ;;
 
27935
 
 
27936
# This must be Linux ELF.
 
27937
linux*)
 
27938
  version_type=linux
 
27939
  need_lib_prefix=no
 
27940
  need_version=no
 
27941
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
27942
  soname_spec='${libname}${release}${shared_ext}$major'
 
27943
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
27944
  shlibpath_var=LD_LIBRARY_PATH
 
27945
  shlibpath_overrides_runpath=no
 
27946
  # This implies no fast_install, which is unacceptable.
 
27947
  # Some rework will be needed to allow for fast_install
 
27948
  # before this can be enabled.
 
27949
  hardcode_into_libs=yes
 
27950
 
 
27951
  # Append ld.so.conf contents to the search path
 
27952
  if test -f /etc/ld.so.conf; then
 
27953
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
27954
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
27955
  fi
 
27956
 
 
27957
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
27958
  # powerpc, because MkLinux only supported shared libraries with the
 
27959
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
27960
  # most powerpc-linux boxes support dynamic linking these days and
 
27961
  # people can always --disable-shared, the test was removed, and we
 
27962
  # assume the GNU/Linux dynamic linker is in use.
 
27963
  dynamic_linker='GNU/Linux ld.so'
 
27964
  ;;
 
27965
 
 
27966
knetbsd*-gnu)
 
27967
  version_type=linux
 
27968
  need_lib_prefix=no
 
27969
  need_version=no
 
27970
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
27971
  soname_spec='${libname}${release}${shared_ext}$major'
 
27972
  shlibpath_var=LD_LIBRARY_PATH
 
27973
  shlibpath_overrides_runpath=no
 
27974
  hardcode_into_libs=yes
 
27975
  dynamic_linker='GNU ld.so'
 
27976
  ;;
 
27977
 
 
27978
netbsd*)
 
27979
  version_type=sunos
 
27980
  need_lib_prefix=no
 
27981
  need_version=no
 
27982
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
27983
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
27984
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
27985
    dynamic_linker='NetBSD (a.out) ld.so'
 
27986
  else
 
27987
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
27988
    soname_spec='${libname}${release}${shared_ext}$major'
 
27989
    dynamic_linker='NetBSD ld.elf_so'
 
27990
  fi
 
27991
  shlibpath_var=LD_LIBRARY_PATH
 
27992
  shlibpath_overrides_runpath=yes
 
27993
  hardcode_into_libs=yes
 
27994
  ;;
 
27995
 
 
27996
newsos6)
 
27997
  version_type=linux
 
27998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
27999
  shlibpath_var=LD_LIBRARY_PATH
 
28000
  shlibpath_overrides_runpath=yes
 
28001
  ;;
 
28002
 
 
28003
nto-qnx*)
 
28004
  version_type=linux
 
28005
  need_lib_prefix=no
 
28006
  need_version=no
 
28007
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28008
  soname_spec='${libname}${release}${shared_ext}$major'
 
28009
  shlibpath_var=LD_LIBRARY_PATH
 
28010
  shlibpath_overrides_runpath=yes
 
28011
  ;;
 
28012
 
 
28013
openbsd*)
 
28014
  version_type=sunos
 
28015
  need_lib_prefix=no
 
28016
  need_version=yes
 
28017
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
28018
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
28019
  shlibpath_var=LD_LIBRARY_PATH
 
28020
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
28021
    case $host_os in
 
28022
      openbsd2.[89] | openbsd2.[89].*)
 
28023
        shlibpath_overrides_runpath=no
 
28024
        ;;
 
28025
      *)
 
28026
        shlibpath_overrides_runpath=yes
 
28027
        ;;
 
28028
      esac
 
28029
  else
 
28030
    shlibpath_overrides_runpath=yes
 
28031
  fi
 
28032
  ;;
 
28033
 
 
28034
os2*)
 
28035
  libname_spec='$name'
 
28036
  shrext_cmds=".dll"
 
28037
  need_lib_prefix=no
 
28038
  library_names_spec='$libname${shared_ext} $libname.a'
 
28039
  dynamic_linker='OS/2 ld.exe'
 
28040
  shlibpath_var=LIBPATH
 
28041
  ;;
 
28042
 
 
28043
osf3* | osf4* | osf5*)
 
28044
  version_type=osf
 
28045
  need_lib_prefix=no
 
28046
  need_version=no
 
28047
  soname_spec='${libname}${release}${shared_ext}$major'
 
28048
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28049
  shlibpath_var=LD_LIBRARY_PATH
 
28050
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
28051
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
28052
  ;;
 
28053
 
 
28054
sco3.2v5*)
 
28055
  version_type=osf
 
28056
  soname_spec='${libname}${release}${shared_ext}$major'
 
28057
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28058
  shlibpath_var=LD_LIBRARY_PATH
 
28059
  ;;
 
28060
 
 
28061
solaris*)
 
28062
  version_type=linux
 
28063
  need_lib_prefix=no
 
28064
  need_version=no
 
28065
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28066
  soname_spec='${libname}${release}${shared_ext}$major'
 
28067
  shlibpath_var=LD_LIBRARY_PATH
 
28068
  shlibpath_overrides_runpath=yes
 
28069
  hardcode_into_libs=yes
 
28070
  # ldd complains unless libraries are executable
 
28071
  postinstall_cmds='chmod +x $lib'
 
28072
  ;;
 
28073
 
 
28074
sunos4*)
 
28075
  version_type=sunos
 
28076
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
28077
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
28078
  shlibpath_var=LD_LIBRARY_PATH
 
28079
  shlibpath_overrides_runpath=yes
 
28080
  if test "$with_gnu_ld" = yes; then
 
28081
    need_lib_prefix=no
 
28082
  fi
 
28083
  need_version=yes
 
28084
  ;;
 
28085
 
 
28086
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
28087
  version_type=linux
 
28088
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28089
  soname_spec='${libname}${release}${shared_ext}$major'
 
28090
  shlibpath_var=LD_LIBRARY_PATH
 
28091
  case $host_vendor in
 
28092
    sni)
 
28093
      shlibpath_overrides_runpath=no
 
28094
      need_lib_prefix=no
 
28095
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
28096
      runpath_var=LD_RUN_PATH
 
28097
      ;;
 
28098
    siemens)
 
28099
      need_lib_prefix=no
 
28100
      ;;
 
28101
    motorola)
 
28102
      need_lib_prefix=no
 
28103
      need_version=no
 
28104
      shlibpath_overrides_runpath=no
 
28105
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
28106
      ;;
 
28107
  esac
 
28108
  ;;
 
28109
 
 
28110
sysv4*MP*)
 
28111
  if test -d /usr/nec ;then
 
28112
    version_type=linux
 
28113
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
28114
    soname_spec='$libname${shared_ext}.$major'
 
28115
    shlibpath_var=LD_LIBRARY_PATH
 
28116
  fi
 
28117
  ;;
 
28118
 
 
28119
uts4*)
 
28120
  version_type=linux
 
28121
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
28122
  soname_spec='${libname}${release}${shared_ext}$major'
 
28123
  shlibpath_var=LD_LIBRARY_PATH
 
28124
  ;;
 
28125
 
 
28126
*)
 
28127
  dynamic_linker=no
 
28128
  ;;
 
28129
esac
 
28130
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
28131
echo "${ECHO_T}$dynamic_linker" >&6
 
28132
test "$dynamic_linker" = no && can_build_shared=no
 
28133
 
 
28134
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10732
28135
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10733
28136
hardcode_action_GCJ=
10734
28137
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
10735
 
   test -n "$runpath_var GCJ"; then
 
28138
   test -n "$runpath_var GCJ" || \
 
28139
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
10736
28140
 
10737
28141
  # We can hardcode non-existant directories.
10738
28142
  if test "$hardcode_direct_GCJ" != no &&
10752
28156
  # directories.
10753
28157
  hardcode_action_GCJ=unsupported
10754
28158
fi
10755
 
echo "$as_me:10755: result: $hardcode_action_GCJ" >&5
 
28159
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
10756
28160
echo "${ECHO_T}$hardcode_action_GCJ" >&6
10757
28161
 
10758
28162
if test "$hardcode_action_GCJ" = relink; then
10766
28170
 
10767
28171
striplib=
10768
28172
old_striplib=
10769
 
echo "$as_me:10769: checking whether stripping libraries is possible" >&5
 
28173
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10770
28174
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10771
28175
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10772
28176
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10773
28177
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10774
 
  echo "$as_me:10774: result: yes" >&5
 
28178
  echo "$as_me:$LINENO: result: yes" >&5
10775
28179
echo "${ECHO_T}yes" >&6
10776
28180
else
10777
 
  echo "$as_me:10777: result: no" >&5
10778
 
echo "${ECHO_T}no" >&6
10779
 
fi
10780
 
 
10781
 
echo "$as_me:10781: checking dynamic linker characteristics" >&5
10782
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10783
 
library_names_spec=
10784
 
libname_spec='lib$name'
10785
 
soname_spec=
10786
 
postinstall_cmds=
10787
 
postuninstall_cmds=
10788
 
finish_cmds=
10789
 
finish_eval=
10790
 
shlibpath_var=
10791
 
shlibpath_overrides_runpath=unknown
10792
 
version_type=none
10793
 
dynamic_linker="$host_os ld.so"
10794
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10795
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10796
 
need_lib_prefix=unknown
10797
 
hardcode_into_libs=no
10798
 
 
10799
 
# when you set need_version to no, make sure it does not cause -set_version
10800
 
# flags to be left without arguments
10801
 
need_version=unknown
10802
 
 
10803
 
case $host_os in
10804
 
aix3*)
10805
 
  version_type=linux
10806
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
10807
 
  shlibpath_var=LIBPATH
10808
 
 
10809
 
  # AIX 3 has no versioning support, so we append a major version to the name.
10810
 
  soname_spec='${libname}${release}.so$major'
10811
 
  ;;
10812
 
 
10813
 
aix4* | aix5*)
10814
 
  version_type=linux
10815
 
  if test "$host_cpu" = ia64; then
10816
 
    # AIX 5 supports IA64
10817
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
10818
 
    shlibpath_var=LD_LIBRARY_PATH
10819
 
  else
10820
 
    # With GCC up to 2.95.x, collect2 would create an import file
10821
 
    # for dependence libraries.  The import file would start with
10822
 
    # the line `#! .'.  This would cause the generated library to
10823
 
    # depend on `.', always an invalid library.  This was fixed in
10824
 
    # development snapshots of GCC prior to 3.0.
10825
 
    case $host_os in
10826
 
       aix4 | aix4.[01] | aix4.[01].*)
10827
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10828
 
           echo ' yes '
10829
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10830
 
        :
10831
 
      else
10832
 
        can_build_shared=no
10833
 
      fi
10834
 
      ;;
10835
 
    esac
10836
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10837
 
    # soname into executable. Probably we can add versioning support to
10838
 
    # collect2, so additional links can be useful in future.
10839
 
    if test "$aix_use_runtimelinking" = yes; then
10840
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10841
 
      # instead of lib<name>.a to let people know that these are not
10842
 
      # typical AIX shared libraries.
10843
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10844
 
    else
10845
 
      # We preserve .a as extension for shared libraries through AIX4.2
10846
 
      # and later when we are not doing run time linking.
10847
 
      library_names_spec='${libname}${release}.a $libname.a'
10848
 
      soname_spec='${libname}${release}.so$major'
10849
 
    fi
10850
 
    shlibpath_var=LIBPATH
10851
 
    deplibs_check_method=pass_all
10852
 
  fi
10853
 
  ;;
10854
 
 
10855
 
amigaos*)
10856
 
  library_names_spec='$libname.ixlibrary $libname.a'
10857
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
10858
 
  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'
10859
 
  ;;
10860
 
 
10861
 
beos*)
10862
 
  library_names_spec='${libname}.so'
10863
 
  dynamic_linker="$host_os ld.so"
10864
 
  shlibpath_var=LIBRARY_PATH
10865
 
  ;;
10866
 
 
10867
 
bsdi4*)
10868
 
  version_type=linux
10869
 
  need_version=no
10870
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10871
 
  soname_spec='${libname}${release}.so$major'
10872
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10873
 
  shlibpath_var=LD_LIBRARY_PATH
10874
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10875
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10876
 
  # the default ld.so.conf also contains /usr/contrib/lib and
10877
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10878
 
  # libtool to hard-code these into programs
10879
 
  ;;
10880
 
 
10881
 
cygwin* | mingw* | pw32*)
10882
 
  version_type=windows
10883
 
  need_version=no
10884
 
  need_lib_prefix=no
10885
 
  case $GCC,$host_os in
10886
 
  yes,cygwin*)
10887
 
    library_names_spec='$libname.dll.a'
10888
 
    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
10889
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10890
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
10891
 
      dldir=$destdir/`dirname \$dlpath`~
10892
 
      test -d \$dldir || mkdir -p \$dldir~
10893
 
      $install_prog .libs/$dlname \$dldir/$dlname'
10894
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
10895
 
      dlpath=$dir/\$dldll~
10896
 
       $rm \$dlpath'
10897
 
    ;;
10898
 
  yes,mingw*)
10899
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
10900
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"`
10901
 
    ;;
10902
 
  yes,pw32*)
10903
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
10904
 
    ;;
10905
 
  *)
10906
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
10907
 
    ;;
10908
 
  esac
10909
 
  dynamic_linker='Win32 ld.exe'
10910
 
  # FIXME: first we should search . and the directory the executable is in
10911
 
  shlibpath_var=PATH
10912
 
  ;;
10913
 
 
10914
 
darwin* | rhapsody*)
10915
 
  dynamic_linker="$host_os dyld"
10916
 
  version_type=darwin
10917
 
  need_lib_prefix=no
10918
 
  need_version=no
10919
 
  # FIXME: Relying on posixy $() will cause problems for
10920
 
  #        cross-compilation, but unfortunately the echo tests do not
10921
 
  #        yet detect zsh echo's removal of \ escapes.
10922
 
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
10923
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
10924
 
  shlibpath_overrides_runpath=yes
10925
 
  shlibpath_var=DYLD_LIBRARY_PATH
10926
 
  ;;
10927
 
 
10928
 
dgux*)
10929
 
  version_type=linux
10930
 
  need_lib_prefix=no
10931
 
  need_version=no
10932
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10933
 
  soname_spec='${libname}${release}.so$major'
10934
 
  shlibpath_var=LD_LIBRARY_PATH
10935
 
  ;;
10936
 
 
10937
 
freebsd1*)
10938
 
  dynamic_linker=no
10939
 
  ;;
10940
 
 
10941
 
freebsd*)
10942
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10943
 
  version_type=freebsd-$objformat
10944
 
  case $version_type in
10945
 
    freebsd-elf*)
10946
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
10947
 
      need_version=no
10948
 
      need_lib_prefix=no
10949
 
      ;;
10950
 
    freebsd-*)
10951
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
10952
 
      need_version=yes
10953
 
      ;;
10954
 
  esac
10955
 
  shlibpath_var=LD_LIBRARY_PATH
10956
 
  case $host_os in
10957
 
  freebsd2*)
10958
 
    shlibpath_overrides_runpath=yes
10959
 
    ;;
10960
 
  freebsd3.01* | freebsdelf3.01*)
10961
 
    shlibpath_overrides_runpath=yes
10962
 
    hardcode_into_libs=yes
10963
 
    ;;
10964
 
  *) # from 3.2 on
10965
 
    shlibpath_overrides_runpath=no
10966
 
    hardcode_into_libs=yes
10967
 
    ;;
10968
 
  esac
10969
 
  ;;
10970
 
 
10971
 
gnu*)
10972
 
  version_type=linux
10973
 
  need_lib_prefix=no
10974
 
  need_version=no
10975
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
10976
 
  soname_spec='${libname}${release}.so$major'
10977
 
  shlibpath_var=LD_LIBRARY_PATH
10978
 
  hardcode_into_libs=yes
10979
 
  ;;
10980
 
 
10981
 
hpux9* | hpux10* | hpux11*)
10982
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
10983
 
  # link against other versions.
10984
 
  version_type=sunos
10985
 
  need_lib_prefix=no
10986
 
  need_version=no
10987
 
  if test "$host_cpu" = ia64; then
10988
 
    hardcode_into_libs=yes
10989
 
    dynamic_linker="$host_os dld.so"
10990
 
    shlibpath_var=LD_LIBRARY_PATH
10991
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10992
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
10993
 
    soname_spec='${libname}${release}.so$major'
10994
 
    if test "X$HPUX_IA64_MODE" = X32; then
10995
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10996
 
    else
10997
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10998
 
    fi
10999
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11000
 
  else
11001
 
    dynamic_linker="$host_os dld.sl"
11002
 
    shlibpath_var=SHLIB_PATH
11003
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11004
 
    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
11005
 
    soname_spec='${libname}${release}.sl$major'
11006
 
  fi
11007
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11008
 
  postinstall_cmds='chmod 555 $lib'
11009
 
  ;;
11010
 
 
11011
 
irix5* | irix6*)
11012
 
  version_type=irix
11013
 
  need_lib_prefix=no
11014
 
  need_version=no
11015
 
  soname_spec='${libname}${release}.so$major'
11016
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
11017
 
  case $host_os in
11018
 
  irix5*)
11019
 
    libsuff= shlibsuff=
11020
 
    ;;
11021
 
  *)
11022
 
    case $LD in # libtool.m4 will add one of these switches to LD
11023
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
11024
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
11025
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
11026
 
    *) libsuff= shlibsuff= libmagic=never-match;;
11027
 
    esac
11028
 
    ;;
11029
 
  esac
11030
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11031
 
  shlibpath_overrides_runpath=no
11032
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11033
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11034
 
  ;;
11035
 
 
11036
 
# No shared lib support for Linux oldld, aout, or coff.
11037
 
linux*oldld* | linux*aout* | linux*coff*)
11038
 
  dynamic_linker=no
11039
 
  ;;
11040
 
 
11041
 
# This must be Linux ELF.
11042
 
linux*)
11043
 
  version_type=linux
11044
 
  need_lib_prefix=no
11045
 
  need_version=no
11046
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11047
 
  soname_spec='${libname}${release}.so$major'
11048
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11049
 
  shlibpath_var=LD_LIBRARY_PATH
11050
 
  shlibpath_overrides_runpath=no
11051
 
  # This implies no fast_install, which is unacceptable.
11052
 
  # Some rework will be needed to allow for fast_install
11053
 
  # before this can be enabled.
11054
 
  hardcode_into_libs=yes
11055
 
 
11056
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
11057
 
  # powerpc, because MkLinux only supported shared libraries with the
11058
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
11059
 
  # most powerpc-linux boxes support dynamic linking these days and
11060
 
  # people can always --disable-shared, the test was removed, and we
11061
 
  # assume the GNU/Linux dynamic linker is in use.
11062
 
  dynamic_linker='GNU/Linux ld.so'
11063
 
  ;;
11064
 
 
11065
 
netbsd*)
11066
 
  version_type=sunos
11067
 
  need_lib_prefix=no
11068
 
  need_version=no
11069
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11070
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
11071
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11072
 
    dynamic_linker='NetBSD (a.out) ld.so'
11073
 
  else
11074
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
11075
 
    soname_spec='${libname}${release}.so$major'
11076
 
    dynamic_linker='NetBSD ld.elf_so'
11077
 
  fi
11078
 
  shlibpath_var=LD_LIBRARY_PATH
11079
 
  shlibpath_overrides_runpath=yes
11080
 
  hardcode_into_libs=yes
11081
 
  ;;
11082
 
 
11083
 
newsos6)
11084
 
  version_type=linux
11085
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11086
 
  shlibpath_var=LD_LIBRARY_PATH
11087
 
  shlibpath_overrides_runpath=yes
11088
 
  ;;
11089
 
 
11090
 
nto-qnx)
11091
 
  version_type=linux
11092
 
  need_lib_prefix=no
11093
 
  need_version=no
11094
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11095
 
  soname_spec='${libname}${release}.so$major'
11096
 
  shlibpath_var=LD_LIBRARY_PATH
11097
 
  shlibpath_overrides_runpath=yes
11098
 
  ;;
11099
 
 
11100
 
openbsd*)
11101
 
  version_type=sunos
11102
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
11103
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11104
 
  shlibpath_var=LD_LIBRARY_PATH
11105
 
  file_magic_cmd=/usr/bin/file
11106
 
  file_magic_test_file=`echo /usr/lib/libc.so.*`
11107
 
  if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
11108
 
    deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
11109
 
  else
11110
 
    deplibs_check_method='file_magic OpenBSD.* shared library'
11111
 
  fi
11112
 
  ;;
11113
 
 
11114
 
os2*)
11115
 
  libname_spec='$name'
11116
 
  need_lib_prefix=no
11117
 
  library_names_spec='$libname.dll $libname.a'
11118
 
  dynamic_linker='OS/2 ld.exe'
11119
 
  shlibpath_var=LIBPATH
11120
 
  ;;
11121
 
 
11122
 
osf3* | osf4* | osf5*)
11123
 
  version_type=osf
11124
 
  need_version=no
11125
 
  soname_spec='${libname}${release}.so'
11126
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
11127
 
  shlibpath_var=LD_LIBRARY_PATH
11128
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11129
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11130
 
  ;;
11131
 
 
11132
 
sco3.2v5*)
11133
 
  version_type=osf
11134
 
  soname_spec='${libname}${release}.so$major'
11135
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11136
 
  shlibpath_var=LD_LIBRARY_PATH
11137
 
  ;;
11138
 
 
11139
 
solaris*)
11140
 
  version_type=linux
11141
 
  need_lib_prefix=no
11142
 
  need_version=no
11143
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11144
 
  soname_spec='${libname}${release}.so$major'
11145
 
  shlibpath_var=LD_LIBRARY_PATH
11146
 
  shlibpath_overrides_runpath=yes
11147
 
  hardcode_into_libs=yes
11148
 
  # ldd complains unless libraries are executable
11149
 
  postinstall_cmds='chmod +x $lib'
11150
 
  ;;
11151
 
 
11152
 
sunos4*)
11153
 
  version_type=sunos
11154
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
11155
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11156
 
  shlibpath_var=LD_LIBRARY_PATH
11157
 
  shlibpath_overrides_runpath=yes
11158
 
  if test "$with_gnu_ld" = yes; then
11159
 
    need_lib_prefix=no
11160
 
  fi
11161
 
  need_version=yes
11162
 
  ;;
11163
 
 
11164
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11165
 
  version_type=linux
11166
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11167
 
  soname_spec='${libname}${release}.so$major'
11168
 
  shlibpath_var=LD_LIBRARY_PATH
11169
 
  case $host_vendor in
11170
 
    sni)
11171
 
      shlibpath_overrides_runpath=no
11172
 
      ;;
11173
 
    motorola)
11174
 
      need_lib_prefix=no
11175
 
      need_version=no
11176
 
      shlibpath_overrides_runpath=no
11177
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11178
 
      ;;
11179
 
  esac
11180
 
  ;;
11181
 
 
11182
 
sysv4*MP*)
11183
 
  if test -d /usr/nec ;then
11184
 
    version_type=linux
11185
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
11186
 
    soname_spec='$libname.so.$major'
11187
 
    shlibpath_var=LD_LIBRARY_PATH
11188
 
  fi
11189
 
  ;;
11190
 
 
11191
 
uts4*)
11192
 
  version_type=linux
11193
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11194
 
  soname_spec='${libname}${release}.so$major'
11195
 
  shlibpath_var=LD_LIBRARY_PATH
11196
 
  ;;
11197
 
 
11198
 
*)
11199
 
  dynamic_linker=no
11200
 
  ;;
11201
 
esac
11202
 
echo "$as_me:11202: result: $dynamic_linker" >&5
11203
 
echo "${ECHO_T}$dynamic_linker" >&6
11204
 
test "$dynamic_linker" = no && can_build_shared=no
 
28181
# FIXME - insert some real tests, host_os isn't really good enough
 
28182
  case $host_os in
 
28183
   darwin*)
 
28184
       if test -n "$STRIP" ; then
 
28185
         striplib="$STRIP -x"
 
28186
         echo "$as_me:$LINENO: result: yes" >&5
 
28187
echo "${ECHO_T}yes" >&6
 
28188
       else
 
28189
  echo "$as_me:$LINENO: result: no" >&5
 
28190
echo "${ECHO_T}no" >&6
 
28191
fi
 
28192
       ;;
 
28193
   *)
 
28194
  echo "$as_me:$LINENO: result: no" >&5
 
28195
echo "${ECHO_T}no" >&6
 
28196
    ;;
 
28197
  esac
 
28198
fi
11205
28199
 
11206
28200
if test "x$enable_dlopen" != xyes; then
11207
28201
  enable_dlopen=unknown
11218
28212
    lt_cv_dlopen_self=yes
11219
28213
    ;;
11220
28214
 
11221
 
  cygwin* | mingw* | pw32*)
 
28215
  mingw* | pw32*)
11222
28216
    lt_cv_dlopen="LoadLibrary"
11223
28217
    lt_cv_dlopen_libs=
11224
28218
   ;;
11225
28219
 
 
28220
  cygwin*)
 
28221
    lt_cv_dlopen="dlopen"
 
28222
    lt_cv_dlopen_libs=
 
28223
   ;;
 
28224
 
 
28225
  darwin*)
 
28226
  # if libdl is installed we need to link against it
 
28227
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
28228
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
28229
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
28230
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28231
else
 
28232
  ac_check_lib_save_LIBS=$LIBS
 
28233
LIBS="-ldl  $LIBS"
 
28234
cat >conftest.$ac_ext <<_ACEOF
 
28235
/* confdefs.h.  */
 
28236
_ACEOF
 
28237
cat confdefs.h >>conftest.$ac_ext
 
28238
cat >>conftest.$ac_ext <<_ACEOF
 
28239
/* end confdefs.h.  */
 
28240
 
 
28241
/* Override any gcc2 internal prototype to avoid an error.  */
 
28242
#ifdef __cplusplus
 
28243
extern "C"
 
28244
#endif
 
28245
/* We use char because int might match the return type of a gcc2
 
28246
   builtin and then its argument prototype would still apply.  */
 
28247
char dlopen ();
 
28248
int
 
28249
main ()
 
28250
{
 
28251
dlopen ();
 
28252
  ;
 
28253
  return 0;
 
28254
}
 
28255
_ACEOF
 
28256
rm -f conftest.$ac_objext conftest$ac_exeext
 
28257
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28258
  (eval $ac_link) 2>conftest.er1
 
28259
  ac_status=$?
 
28260
  grep -v '^ *+' conftest.er1 >conftest.err
 
28261
  rm -f conftest.er1
 
28262
  cat conftest.err >&5
 
28263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28264
  (exit $ac_status); } &&
 
28265
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28267
  (eval $ac_try) 2>&5
 
28268
  ac_status=$?
 
28269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28270
  (exit $ac_status); }; } &&
 
28271
         { ac_try='test -s conftest$ac_exeext'
 
28272
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28273
  (eval $ac_try) 2>&5
 
28274
  ac_status=$?
 
28275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28276
  (exit $ac_status); }; }; then
 
28277
  ac_cv_lib_dl_dlopen=yes
 
28278
else
 
28279
  echo "$as_me: failed program was:" >&5
 
28280
sed 's/^/| /' conftest.$ac_ext >&5
 
28281
 
 
28282
ac_cv_lib_dl_dlopen=no
 
28283
fi
 
28284
rm -f conftest.err conftest.$ac_objext \
 
28285
      conftest$ac_exeext conftest.$ac_ext
 
28286
LIBS=$ac_check_lib_save_LIBS
 
28287
fi
 
28288
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
28289
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
28290
if test $ac_cv_lib_dl_dlopen = yes; then
 
28291
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
28292
else
 
28293
 
 
28294
    lt_cv_dlopen="dyld"
 
28295
    lt_cv_dlopen_libs=
 
28296
    lt_cv_dlopen_self=yes
 
28297
 
 
28298
fi
 
28299
 
 
28300
   ;;
 
28301
 
11226
28302
  *)
11227
 
    echo "$as_me:11227: checking for shl_load" >&5
 
28303
    echo "$as_me:$LINENO: checking for shl_load" >&5
11228
28304
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11229
28305
if test "${ac_cv_func_shl_load+set}" = set; then
11230
28306
  echo $ECHO_N "(cached) $ECHO_C" >&6
11231
28307
else
11232
28308
  cat >conftest.$ac_ext <<_ACEOF
11233
 
#line 11233 "configure"
11234
 
#include "confdefs.h"
 
28309
/* confdefs.h.  */
 
28310
_ACEOF
 
28311
cat confdefs.h >>conftest.$ac_ext
 
28312
cat >>conftest.$ac_ext <<_ACEOF
 
28313
/* end confdefs.h.  */
 
28314
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
28315
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
28316
#define shl_load innocuous_shl_load
 
28317
 
11235
28318
/* System header to define __stub macros and hopefully few prototypes,
11236
 
    which can conflict with char shl_load (); below.  */
11237
 
#include <assert.h>
 
28319
    which can conflict with char shl_load (); below.
 
28320
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
28321
    <limits.h> exists even on freestanding compilers.  */
 
28322
 
 
28323
#ifdef __STDC__
 
28324
# include <limits.h>
 
28325
#else
 
28326
# include <assert.h>
 
28327
#endif
 
28328
 
 
28329
#undef shl_load
 
28330
 
11238
28331
/* Override any gcc2 internal prototype to avoid an error.  */
11239
28332
#ifdef __cplusplus
11240
28333
extern "C"
 
28334
{
11241
28335
#endif
11242
28336
/* We use char because int might match the return type of a gcc2
11243
28337
   builtin and then its argument prototype would still apply.  */
11244
28338
char shl_load ();
11245
 
char (*f) ();
11246
 
 
11247
 
int
11248
 
main ()
11249
 
{
11250
28339
/* The GNU C library defines this for functions which it implements
11251
28340
    to always fail with ENOSYS.  Some functions are actually named
11252
28341
    something starting with __ and the normal name is an alias.  */
11253
28342
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11254
28343
choke me
11255
28344
#else
11256
 
f = shl_load;
 
28345
char (*f) () = shl_load;
 
28346
#endif
 
28347
#ifdef __cplusplus
 
28348
}
11257
28349
#endif
11258
28350
 
 
28351
int
 
28352
main ()
 
28353
{
 
28354
return f != shl_load;
11259
28355
  ;
11260
28356
  return 0;
11261
28357
}
11262
28358
_ACEOF
11263
28359
rm -f conftest.$ac_objext conftest$ac_exeext
11264
 
if { (eval echo "$as_me:11264: \"$ac_link\"") >&5
11265
 
  (eval $ac_link) 2>&5
 
28360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28361
  (eval $ac_link) 2>conftest.er1
11266
28362
  ac_status=$?
11267
 
  echo "$as_me:11267: \$? = $ac_status" >&5
 
28363
  grep -v '^ *+' conftest.er1 >conftest.err
 
28364
  rm -f conftest.er1
 
28365
  cat conftest.err >&5
 
28366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268
28367
  (exit $ac_status); } &&
11269
 
         { ac_try='test -s conftest$ac_exeext'
11270
 
  { (eval echo "$as_me:11270: \"$ac_try\"") >&5
11271
 
  (eval $ac_try) 2>&5
11272
 
  ac_status=$?
11273
 
  echo "$as_me:11273: \$? = $ac_status" >&5
 
28368
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28370
  (eval $ac_try) 2>&5
 
28371
  ac_status=$?
 
28372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28373
  (exit $ac_status); }; } &&
 
28374
         { ac_try='test -s conftest$ac_exeext'
 
28375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28376
  (eval $ac_try) 2>&5
 
28377
  ac_status=$?
 
28378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274
28379
  (exit $ac_status); }; }; then
11275
28380
  ac_cv_func_shl_load=yes
11276
28381
else
11277
28382
  echo "$as_me: failed program was:" >&5
11278
 
cat conftest.$ac_ext >&5
 
28383
sed 's/^/| /' conftest.$ac_ext >&5
 
28384
 
11279
28385
ac_cv_func_shl_load=no
11280
28386
fi
11281
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
28387
rm -f conftest.err conftest.$ac_objext \
 
28388
      conftest$ac_exeext conftest.$ac_ext
11282
28389
fi
11283
 
echo "$as_me:11283: result: $ac_cv_func_shl_load" >&5
 
28390
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11284
28391
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11285
28392
if test $ac_cv_func_shl_load = yes; then
11286
28393
  lt_cv_dlopen="shl_load"
11287
28394
else
11288
 
  echo "$as_me:11288: checking for shl_load in -ldld" >&5
 
28395
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11289
28396
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11290
28397
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11291
28398
  echo $ECHO_N "(cached) $ECHO_C" >&6
11293
28400
  ac_check_lib_save_LIBS=$LIBS
11294
28401
LIBS="-ldld  $LIBS"
11295
28402
cat >conftest.$ac_ext <<_ACEOF
11296
 
#line 11296 "configure"
11297
 
#include "confdefs.h"
 
28403
/* confdefs.h.  */
 
28404
_ACEOF
 
28405
cat confdefs.h >>conftest.$ac_ext
 
28406
cat >>conftest.$ac_ext <<_ACEOF
 
28407
/* end confdefs.h.  */
11298
28408
 
11299
28409
/* Override any gcc2 internal prototype to avoid an error.  */
11300
28410
#ifdef __cplusplus
11312
28422
}
11313
28423
_ACEOF
11314
28424
rm -f conftest.$ac_objext conftest$ac_exeext
11315
 
if { (eval echo "$as_me:11315: \"$ac_link\"") >&5
11316
 
  (eval $ac_link) 2>&5
 
28425
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28426
  (eval $ac_link) 2>conftest.er1
11317
28427
  ac_status=$?
11318
 
  echo "$as_me:11318: \$? = $ac_status" >&5
 
28428
  grep -v '^ *+' conftest.er1 >conftest.err
 
28429
  rm -f conftest.er1
 
28430
  cat conftest.err >&5
 
28431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319
28432
  (exit $ac_status); } &&
11320
 
         { ac_try='test -s conftest$ac_exeext'
11321
 
  { (eval echo "$as_me:11321: \"$ac_try\"") >&5
11322
 
  (eval $ac_try) 2>&5
11323
 
  ac_status=$?
11324
 
  echo "$as_me:11324: \$? = $ac_status" >&5
 
28433
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28434
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28435
  (eval $ac_try) 2>&5
 
28436
  ac_status=$?
 
28437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28438
  (exit $ac_status); }; } &&
 
28439
         { ac_try='test -s conftest$ac_exeext'
 
28440
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28441
  (eval $ac_try) 2>&5
 
28442
  ac_status=$?
 
28443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325
28444
  (exit $ac_status); }; }; then
11326
28445
  ac_cv_lib_dld_shl_load=yes
11327
28446
else
11328
28447
  echo "$as_me: failed program was:" >&5
11329
 
cat conftest.$ac_ext >&5
 
28448
sed 's/^/| /' conftest.$ac_ext >&5
 
28449
 
11330
28450
ac_cv_lib_dld_shl_load=no
11331
28451
fi
11332
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
28452
rm -f conftest.err conftest.$ac_objext \
 
28453
      conftest$ac_exeext conftest.$ac_ext
11333
28454
LIBS=$ac_check_lib_save_LIBS
11334
28455
fi
11335
 
echo "$as_me:11335: result: $ac_cv_lib_dld_shl_load" >&5
 
28456
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11336
28457
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11337
28458
if test $ac_cv_lib_dld_shl_load = yes; then
11338
28459
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11339
28460
else
11340
 
  echo "$as_me:11340: checking for dlopen in -ldl" >&5
11341
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11342
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11343
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11344
 
else
11345
 
  ac_check_lib_save_LIBS=$LIBS
11346
 
LIBS="-ldl  $LIBS"
11347
 
cat >conftest.$ac_ext <<_ACEOF
11348
 
#line 11348 "configure"
11349
 
#include "confdefs.h"
11350
 
 
11351
 
/* Override any gcc2 internal prototype to avoid an error.  */
11352
 
#ifdef __cplusplus
11353
 
extern "C"
11354
 
#endif
11355
 
/* We use char because int might match the return type of a gcc2
11356
 
   builtin and then its argument prototype would still apply.  */
11357
 
char dlopen ();
11358
 
int
11359
 
main ()
11360
 
{
11361
 
dlopen ();
11362
 
  ;
11363
 
  return 0;
11364
 
}
11365
 
_ACEOF
11366
 
rm -f conftest.$ac_objext conftest$ac_exeext
11367
 
if { (eval echo "$as_me:11367: \"$ac_link\"") >&5
11368
 
  (eval $ac_link) 2>&5
11369
 
  ac_status=$?
11370
 
  echo "$as_me:11370: \$? = $ac_status" >&5
11371
 
  (exit $ac_status); } &&
11372
 
         { ac_try='test -s conftest$ac_exeext'
11373
 
  { (eval echo "$as_me:11373: \"$ac_try\"") >&5
11374
 
  (eval $ac_try) 2>&5
11375
 
  ac_status=$?
11376
 
  echo "$as_me:11376: \$? = $ac_status" >&5
11377
 
  (exit $ac_status); }; }; then
11378
 
  ac_cv_lib_dl_dlopen=yes
11379
 
else
11380
 
  echo "$as_me: failed program was:" >&5
11381
 
cat conftest.$ac_ext >&5
11382
 
ac_cv_lib_dl_dlopen=no
11383
 
fi
11384
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11385
 
LIBS=$ac_check_lib_save_LIBS
11386
 
fi
11387
 
echo "$as_me:11387: result: $ac_cv_lib_dl_dlopen" >&5
11388
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11389
 
if test $ac_cv_lib_dl_dlopen = yes; then
11390
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11391
 
else
11392
 
  echo "$as_me:11392: checking for dlopen" >&5
 
28461
  echo "$as_me:$LINENO: checking for dlopen" >&5
11393
28462
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11394
28463
if test "${ac_cv_func_dlopen+set}" = set; then
11395
28464
  echo $ECHO_N "(cached) $ECHO_C" >&6
11396
28465
else
11397
28466
  cat >conftest.$ac_ext <<_ACEOF
11398
 
#line 11398 "configure"
11399
 
#include "confdefs.h"
 
28467
/* confdefs.h.  */
 
28468
_ACEOF
 
28469
cat confdefs.h >>conftest.$ac_ext
 
28470
cat >>conftest.$ac_ext <<_ACEOF
 
28471
/* end confdefs.h.  */
 
28472
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
28473
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
28474
#define dlopen innocuous_dlopen
 
28475
 
11400
28476
/* System header to define __stub macros and hopefully few prototypes,
11401
 
    which can conflict with char dlopen (); below.  */
11402
 
#include <assert.h>
 
28477
    which can conflict with char dlopen (); below.
 
28478
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
28479
    <limits.h> exists even on freestanding compilers.  */
 
28480
 
 
28481
#ifdef __STDC__
 
28482
# include <limits.h>
 
28483
#else
 
28484
# include <assert.h>
 
28485
#endif
 
28486
 
 
28487
#undef dlopen
 
28488
 
11403
28489
/* Override any gcc2 internal prototype to avoid an error.  */
11404
28490
#ifdef __cplusplus
11405
28491
extern "C"
 
28492
{
11406
28493
#endif
11407
28494
/* We use char because int might match the return type of a gcc2
11408
28495
   builtin and then its argument prototype would still apply.  */
11409
28496
char dlopen ();
11410
 
char (*f) ();
11411
 
 
11412
 
int
11413
 
main ()
11414
 
{
11415
28497
/* The GNU C library defines this for functions which it implements
11416
28498
    to always fail with ENOSYS.  Some functions are actually named
11417
28499
    something starting with __ and the normal name is an alias.  */
11418
28500
#if defined (__stub_dlopen) || defined (__stub___dlopen)
11419
28501
choke me
11420
28502
#else
11421
 
f = dlopen;
 
28503
char (*f) () = dlopen;
 
28504
#endif
 
28505
#ifdef __cplusplus
 
28506
}
11422
28507
#endif
11423
28508
 
 
28509
int
 
28510
main ()
 
28511
{
 
28512
return f != dlopen;
11424
28513
  ;
11425
28514
  return 0;
11426
28515
}
11427
28516
_ACEOF
11428
28517
rm -f conftest.$ac_objext conftest$ac_exeext
11429
 
if { (eval echo "$as_me:11429: \"$ac_link\"") >&5
11430
 
  (eval $ac_link) 2>&5
 
28518
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28519
  (eval $ac_link) 2>conftest.er1
11431
28520
  ac_status=$?
11432
 
  echo "$as_me:11432: \$? = $ac_status" >&5
 
28521
  grep -v '^ *+' conftest.er1 >conftest.err
 
28522
  rm -f conftest.er1
 
28523
  cat conftest.err >&5
 
28524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433
28525
  (exit $ac_status); } &&
11434
 
         { ac_try='test -s conftest$ac_exeext'
11435
 
  { (eval echo "$as_me:11435: \"$ac_try\"") >&5
11436
 
  (eval $ac_try) 2>&5
11437
 
  ac_status=$?
11438
 
  echo "$as_me:11438: \$? = $ac_status" >&5
 
28526
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28528
  (eval $ac_try) 2>&5
 
28529
  ac_status=$?
 
28530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28531
  (exit $ac_status); }; } &&
 
28532
         { ac_try='test -s conftest$ac_exeext'
 
28533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28534
  (eval $ac_try) 2>&5
 
28535
  ac_status=$?
 
28536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439
28537
  (exit $ac_status); }; }; then
11440
28538
  ac_cv_func_dlopen=yes
11441
28539
else
11442
28540
  echo "$as_me: failed program was:" >&5
11443
 
cat conftest.$ac_ext >&5
 
28541
sed 's/^/| /' conftest.$ac_ext >&5
 
28542
 
11444
28543
ac_cv_func_dlopen=no
11445
28544
fi
11446
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
28545
rm -f conftest.err conftest.$ac_objext \
 
28546
      conftest$ac_exeext conftest.$ac_ext
11447
28547
fi
11448
 
echo "$as_me:11448: result: $ac_cv_func_dlopen" >&5
 
28548
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11449
28549
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11450
28550
if test $ac_cv_func_dlopen = yes; then
11451
28551
  lt_cv_dlopen="dlopen"
11452
28552
else
11453
 
  echo "$as_me:11453: checking for dlopen in -lsvld" >&5
 
28553
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
28554
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
28555
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
28556
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28557
else
 
28558
  ac_check_lib_save_LIBS=$LIBS
 
28559
LIBS="-ldl  $LIBS"
 
28560
cat >conftest.$ac_ext <<_ACEOF
 
28561
/* confdefs.h.  */
 
28562
_ACEOF
 
28563
cat confdefs.h >>conftest.$ac_ext
 
28564
cat >>conftest.$ac_ext <<_ACEOF
 
28565
/* end confdefs.h.  */
 
28566
 
 
28567
/* Override any gcc2 internal prototype to avoid an error.  */
 
28568
#ifdef __cplusplus
 
28569
extern "C"
 
28570
#endif
 
28571
/* We use char because int might match the return type of a gcc2
 
28572
   builtin and then its argument prototype would still apply.  */
 
28573
char dlopen ();
 
28574
int
 
28575
main ()
 
28576
{
 
28577
dlopen ();
 
28578
  ;
 
28579
  return 0;
 
28580
}
 
28581
_ACEOF
 
28582
rm -f conftest.$ac_objext conftest$ac_exeext
 
28583
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28584
  (eval $ac_link) 2>conftest.er1
 
28585
  ac_status=$?
 
28586
  grep -v '^ *+' conftest.er1 >conftest.err
 
28587
  rm -f conftest.er1
 
28588
  cat conftest.err >&5
 
28589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28590
  (exit $ac_status); } &&
 
28591
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28593
  (eval $ac_try) 2>&5
 
28594
  ac_status=$?
 
28595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28596
  (exit $ac_status); }; } &&
 
28597
         { ac_try='test -s conftest$ac_exeext'
 
28598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28599
  (eval $ac_try) 2>&5
 
28600
  ac_status=$?
 
28601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28602
  (exit $ac_status); }; }; then
 
28603
  ac_cv_lib_dl_dlopen=yes
 
28604
else
 
28605
  echo "$as_me: failed program was:" >&5
 
28606
sed 's/^/| /' conftest.$ac_ext >&5
 
28607
 
 
28608
ac_cv_lib_dl_dlopen=no
 
28609
fi
 
28610
rm -f conftest.err conftest.$ac_objext \
 
28611
      conftest$ac_exeext conftest.$ac_ext
 
28612
LIBS=$ac_check_lib_save_LIBS
 
28613
fi
 
28614
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
28615
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
28616
if test $ac_cv_lib_dl_dlopen = yes; then
 
28617
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
28618
else
 
28619
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11454
28620
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11455
28621
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11456
28622
  echo $ECHO_N "(cached) $ECHO_C" >&6
11458
28624
  ac_check_lib_save_LIBS=$LIBS
11459
28625
LIBS="-lsvld  $LIBS"
11460
28626
cat >conftest.$ac_ext <<_ACEOF
11461
 
#line 11461 "configure"
11462
 
#include "confdefs.h"
 
28627
/* confdefs.h.  */
 
28628
_ACEOF
 
28629
cat confdefs.h >>conftest.$ac_ext
 
28630
cat >>conftest.$ac_ext <<_ACEOF
 
28631
/* end confdefs.h.  */
11463
28632
 
11464
28633
/* Override any gcc2 internal prototype to avoid an error.  */
11465
28634
#ifdef __cplusplus
11477
28646
}
11478
28647
_ACEOF
11479
28648
rm -f conftest.$ac_objext conftest$ac_exeext
11480
 
if { (eval echo "$as_me:11480: \"$ac_link\"") >&5
11481
 
  (eval $ac_link) 2>&5
 
28649
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28650
  (eval $ac_link) 2>conftest.er1
11482
28651
  ac_status=$?
11483
 
  echo "$as_me:11483: \$? = $ac_status" >&5
 
28652
  grep -v '^ *+' conftest.er1 >conftest.err
 
28653
  rm -f conftest.er1
 
28654
  cat conftest.err >&5
 
28655
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484
28656
  (exit $ac_status); } &&
11485
 
         { ac_try='test -s conftest$ac_exeext'
11486
 
  { (eval echo "$as_me:11486: \"$ac_try\"") >&5
11487
 
  (eval $ac_try) 2>&5
11488
 
  ac_status=$?
11489
 
  echo "$as_me:11489: \$? = $ac_status" >&5
 
28657
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28658
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28659
  (eval $ac_try) 2>&5
 
28660
  ac_status=$?
 
28661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28662
  (exit $ac_status); }; } &&
 
28663
         { ac_try='test -s conftest$ac_exeext'
 
28664
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28665
  (eval $ac_try) 2>&5
 
28666
  ac_status=$?
 
28667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490
28668
  (exit $ac_status); }; }; then
11491
28669
  ac_cv_lib_svld_dlopen=yes
11492
28670
else
11493
28671
  echo "$as_me: failed program was:" >&5
11494
 
cat conftest.$ac_ext >&5
 
28672
sed 's/^/| /' conftest.$ac_ext >&5
 
28673
 
11495
28674
ac_cv_lib_svld_dlopen=no
11496
28675
fi
11497
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
28676
rm -f conftest.err conftest.$ac_objext \
 
28677
      conftest$ac_exeext conftest.$ac_ext
11498
28678
LIBS=$ac_check_lib_save_LIBS
11499
28679
fi
11500
 
echo "$as_me:11500: result: $ac_cv_lib_svld_dlopen" >&5
 
28680
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11501
28681
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11502
28682
if test $ac_cv_lib_svld_dlopen = yes; then
11503
28683
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11504
 
fi
11505
 
 
11506
 
fi
11507
 
 
11508
 
fi
11509
 
 
11510
 
fi
 
28684
else
 
28685
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
28686
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
28687
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
28688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
28689
else
 
28690
  ac_check_lib_save_LIBS=$LIBS
 
28691
LIBS="-ldld  $LIBS"
 
28692
cat >conftest.$ac_ext <<_ACEOF
 
28693
/* confdefs.h.  */
 
28694
_ACEOF
 
28695
cat confdefs.h >>conftest.$ac_ext
 
28696
cat >>conftest.$ac_ext <<_ACEOF
 
28697
/* end confdefs.h.  */
 
28698
 
 
28699
/* Override any gcc2 internal prototype to avoid an error.  */
 
28700
#ifdef __cplusplus
 
28701
extern "C"
 
28702
#endif
 
28703
/* We use char because int might match the return type of a gcc2
 
28704
   builtin and then its argument prototype would still apply.  */
 
28705
char dld_link ();
 
28706
int
 
28707
main ()
 
28708
{
 
28709
dld_link ();
 
28710
  ;
 
28711
  return 0;
 
28712
}
 
28713
_ACEOF
 
28714
rm -f conftest.$ac_objext conftest$ac_exeext
 
28715
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
28716
  (eval $ac_link) 2>conftest.er1
 
28717
  ac_status=$?
 
28718
  grep -v '^ *+' conftest.er1 >conftest.err
 
28719
  rm -f conftest.er1
 
28720
  cat conftest.err >&5
 
28721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28722
  (exit $ac_status); } &&
 
28723
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
28724
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28725
  (eval $ac_try) 2>&5
 
28726
  ac_status=$?
 
28727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28728
  (exit $ac_status); }; } &&
 
28729
         { ac_try='test -s conftest$ac_exeext'
 
28730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
28731
  (eval $ac_try) 2>&5
 
28732
  ac_status=$?
 
28733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
28734
  (exit $ac_status); }; }; then
 
28735
  ac_cv_lib_dld_dld_link=yes
 
28736
else
 
28737
  echo "$as_me: failed program was:" >&5
 
28738
sed 's/^/| /' conftest.$ac_ext >&5
 
28739
 
 
28740
ac_cv_lib_dld_dld_link=no
 
28741
fi
 
28742
rm -f conftest.err conftest.$ac_objext \
 
28743
      conftest$ac_exeext conftest.$ac_ext
 
28744
LIBS=$ac_check_lib_save_LIBS
 
28745
fi
 
28746
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
28747
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
28748
if test $ac_cv_lib_dld_dld_link = yes; then
 
28749
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
28750
fi
 
28751
 
 
28752
 
 
28753
fi
 
28754
 
 
28755
 
 
28756
fi
 
28757
 
 
28758
 
 
28759
fi
 
28760
 
 
28761
 
 
28762
fi
 
28763
 
11511
28764
 
11512
28765
fi
11513
28766
 
11531
28784
    save_LIBS="$LIBS"
11532
28785
    LIBS="$lt_cv_dlopen_libs $LIBS"
11533
28786
 
11534
 
    echo "$as_me:11534: checking whether a program can dlopen itself" >&5
 
28787
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11535
28788
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11536
28789
if test "${lt_cv_dlopen_self+set}" = set; then
11537
28790
  echo $ECHO_N "(cached) $ECHO_C" >&6
11542
28795
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11543
28796
  lt_status=$lt_dlunknown
11544
28797
  cat > conftest.$ac_ext <<EOF
11545
 
#line 11545 "configure"
 
28798
#line 28798 "configure"
11546
28799
#include "confdefs.h"
11547
28800
 
11548
28801
#if HAVE_DLFCN_H
11603
28856
    exit (status);
11604
28857
}
11605
28858
EOF
11606
 
  if { (eval echo "$as_me:11606: \"$ac_link\"") >&5
 
28859
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607
28860
  (eval $ac_link) 2>&5
11608
28861
  ac_status=$?
11609
 
  echo "$as_me:11609: \$? = $ac_status" >&5
 
28862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610
28863
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11611
28864
    (./conftest; exit; ) 2>/dev/null
11612
28865
    lt_status=$?
11622
28875
fi
11623
28876
rm -fr conftest*
11624
28877
 
 
28878
 
11625
28879
fi
11626
 
echo "$as_me:11626: result: $lt_cv_dlopen_self" >&5
 
28880
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11627
28881
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11628
28882
 
11629
28883
    if test "x$lt_cv_dlopen_self" = xyes; then
11630
28884
      LDFLAGS="$LDFLAGS $link_static_flag"
11631
 
      echo "$as_me:11631: checking whether a statically linked program can dlopen itself" >&5
 
28885
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11632
28886
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11633
28887
if test "${lt_cv_dlopen_self_static+set}" = set; then
11634
28888
  echo $ECHO_N "(cached) $ECHO_C" >&6
11639
28893
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11640
28894
  lt_status=$lt_dlunknown
11641
28895
  cat > conftest.$ac_ext <<EOF
11642
 
#line 11642 "configure"
 
28896
#line 28896 "configure"
11643
28897
#include "confdefs.h"
11644
28898
 
11645
28899
#if HAVE_DLFCN_H
11700
28954
    exit (status);
11701
28955
}
11702
28956
EOF
11703
 
  if { (eval echo "$as_me:11703: \"$ac_link\"") >&5
 
28957
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11704
28958
  (eval $ac_link) 2>&5
11705
28959
  ac_status=$?
11706
 
  echo "$as_me:11706: \$? = $ac_status" >&5
 
28960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707
28961
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11708
28962
    (./conftest; exit; ) 2>/dev/null
11709
28963
    lt_status=$?
11719
28973
fi
11720
28974
rm -fr conftest*
11721
28975
 
 
28976
 
11722
28977
fi
11723
 
echo "$as_me:11723: result: $lt_cv_dlopen_self_static" >&5
 
28978
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11724
28979
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11725
28980
    fi
11726
28981
 
11741
28996
  esac
11742
28997
fi
11743
28998
 
 
28999
 
11744
29000
# The else clause should only fire when bootstrapping the
11745
29001
# libtool distribution, otherwise you forgot to ship ltmain.sh
11746
29002
# with your package, and you will get complaints that there are
11747
29003
# no rules to generate ltmain.sh.
11748
29004
if test -f "$ltmain"; then
 
29005
  # See if we are running on zsh, and set the options which allow our commands through
 
29006
  # without removal of \ escapes.
 
29007
  if test -n "${ZSH_VERSION+set}" ; then
 
29008
    setopt NO_GLOB_SUBST
 
29009
  fi
11749
29010
  # Now quote all the things that may contain metacharacters while being
11750
29011
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
11751
29012
  # variables and quote the copies for generation of the libtool script.
11752
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
 
29013
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
29014
    SED SHELL STRIP \
11753
29015
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11754
29016
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11755
29017
    deplibs_check_method reload_flag reload_cmds need_locks \
11767
29029
    export_dynamic_flag_spec_GCJ \
11768
29030
    thread_safe_flag_spec_GCJ \
11769
29031
    whole_archive_flag_spec_GCJ \
 
29032
    enable_shared_with_static_runtimes_GCJ \
11770
29033
    old_archive_cmds_GCJ \
11771
29034
    old_archive_from_new_cmds_GCJ \
11772
29035
    predep_objects_GCJ \
11783
29046
    no_undefined_flag_GCJ \
11784
29047
    export_symbols_cmds_GCJ \
11785
29048
    hardcode_libdir_flag_spec_GCJ \
 
29049
    hardcode_libdir_flag_spec_ld_GCJ \
11786
29050
    hardcode_libdir_separator_GCJ \
 
29051
    hardcode_automatic_GCJ \
 
29052
    module_cmds_GCJ \
 
29053
    module_expsym_cmds_GCJ \
11787
29054
    lt_cv_prog_compiler_c_o_GCJ \
11788
29055
    exclude_expsyms_GCJ \
11789
29056
    include_expsyms_GCJ; do
11793
29060
    old_archive_from_new_cmds_GCJ | \
11794
29061
    archive_cmds_GCJ | \
11795
29062
    archive_expsym_cmds_GCJ | \
 
29063
    module_cmds_GCJ | \
 
29064
    module_expsym_cmds_GCJ | \
11796
29065
    old_archive_from_expsyms_cmds_GCJ | \
11797
29066
    export_symbols_cmds_GCJ | \
11798
29067
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
11833
29102
# Whether or not to add -lc for building shared libraries.
11834
29103
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
11835
29104
 
 
29105
# Whether or not to disallow shared libs when runtime libs are static
 
29106
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
29107
 
11836
29108
# Whether or not to optimize for fast installation.
11837
29109
fast_install=$enable_fast_install
11838
29110
 
11848
29120
AR_FLAGS=$lt_AR_FLAGS
11849
29121
 
11850
29122
# A C compiler.
11851
 
LTCC=$LTCC
 
29123
LTCC=$lt_LTCC
11852
29124
 
11853
29125
# A language-specific compiler.
11854
29126
CC=$lt_compiler_GCJ
11856
29128
# Is the compiler the GNU C compiler?
11857
29129
with_gcc=$GCC_GCJ
11858
29130
 
 
29131
# An ERE matcher.
 
29132
EGREP=$lt_EGREP
 
29133
 
11859
29134
# The linker used to build libraries.
11860
29135
LD=$lt_LD_GCJ
11861
29136
 
11866
29141
NM=$lt_NM
11867
29142
 
11868
29143
# A symbol stripping program
11869
 
STRIP=$STRIP
 
29144
STRIP=$lt_STRIP
11870
29145
 
11871
29146
# Used to examine libraries when file_magic_cmd begins "file"
11872
29147
MAGIC_CMD=$MAGIC_CMD
11896
29171
# Old archive suffix (normally "a").
11897
29172
libext="$libext"
11898
29173
 
 
29174
# Shared library suffix (normally ".so").
 
29175
shrext_cmds='$shrext_cmds'
 
29176
 
11899
29177
# Executable file suffix (normally "").
11900
29178
exeext="$exeext"
11901
29179
 
11973
29251
postinstall_cmds=$lt_postinstall_cmds
11974
29252
postuninstall_cmds=$lt_postuninstall_cmds
11975
29253
 
 
29254
# Commands used to build a loadable module (assumed same as above if empty)
 
29255
module_cmds=$lt_module_cmds_GCJ
 
29256
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
29257
 
11976
29258
# Commands to strip libraries.
11977
29259
old_striplib=$lt_old_striplib
11978
29260
striplib=$lt_striplib
12043
29325
# This must work even if \$libdir does not exist.
12044
29326
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
12045
29327
 
 
29328
# If ld is used when linking, flag to hardcode \$libdir into
 
29329
# a binary during linking. This must work even if \$libdir does
 
29330
# not exist.
 
29331
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
29332
 
12046
29333
# Whether we need a single -rpath flag with a separated argument.
12047
29334
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
12048
29335
 
12049
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
29336
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12050
29337
# resulting binary.
12051
29338
hardcode_direct=$hardcode_direct_GCJ
12052
29339
 
12058
29345
# the resulting binary.
12059
29346
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
12060
29347
 
 
29348
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
29349
# and all subsequent libraries and executables linked against it.
 
29350
hardcode_automatic=$hardcode_automatic_GCJ
 
29351
 
12061
29352
# Variables whose values should be saved in libtool wrapper scripts and
12062
29353
# restored at relink time.
12063
29354
variables_saved_for_relink="$variables_saved_for_relink"
12093
29384
 
12094
29385
__EOF__
12095
29386
 
12096
 
else
12097
 
  # If there is no Makefile yet, we rely on a make rule to execute
12098
 
  # `config.status --recheck' to rerun these tests and create the
12099
 
  # libtool script then.
12100
 
  test -f Makefile && make "$ltmain"
12101
 
fi
12102
 
 
12103
 
ac_ext=c
12104
 
ac_cpp='$CPP $CPPFLAGS'
12105
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12106
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12107
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12108
 
 
12109
 
CC="$lt_save_CC"
12110
 
 
12111
 
        ;;
 
29387
 
 
29388
else
 
29389
  # If there is no Makefile yet, we rely on a make rule to execute
 
29390
  # `config.status --recheck' to rerun these tests and create the
 
29391
  # libtool script then.
 
29392
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
29393
  if test -f "$ltmain_in"; then
 
29394
    test -f Makefile && make "$ltmain"
 
29395
  fi
 
29396
fi
 
29397
 
 
29398
 
 
29399
ac_ext=c
 
29400
ac_cpp='$CPP $CPPFLAGS'
 
29401
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29402
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29403
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
29404
 
 
29405
CC="$lt_save_CC"
 
29406
 
 
29407
        else
 
29408
          tagname=""
 
29409
        fi
 
29410
        ;;
 
29411
 
 
29412
      RC)
 
29413
 
 
29414
 
 
29415
 
 
29416
# Source file extension for RC test sources.
 
29417
ac_ext=rc
 
29418
 
 
29419
# Object file extension for compiled RC test sources.
 
29420
objext=o
 
29421
objext_RC=$objext
 
29422
 
 
29423
# Code to be used in simple compile tests
 
29424
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
29425
 
 
29426
# Code to be used in simple link tests
 
29427
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
29428
 
 
29429
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
29430
 
 
29431
# If no C compiler was specified, use CC.
 
29432
LTCC=${LTCC-"$CC"}
 
29433
 
 
29434
# Allow CC to be a program name with arguments.
 
29435
compiler=$CC
 
29436
 
 
29437
 
 
29438
# Allow CC to be a program name with arguments.
 
29439
lt_save_CC="$CC"
 
29440
CC=${RC-"windres"}
 
29441
compiler=$CC
 
29442
compiler_RC=$CC
 
29443
lt_cv_prog_compiler_c_o_RC=yes
 
29444
 
 
29445
# The else clause should only fire when bootstrapping the
 
29446
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
29447
# with your package, and you will get complaints that there are
 
29448
# no rules to generate ltmain.sh.
 
29449
if test -f "$ltmain"; then
 
29450
  # See if we are running on zsh, and set the options which allow our commands through
 
29451
  # without removal of \ escapes.
 
29452
  if test -n "${ZSH_VERSION+set}" ; then
 
29453
    setopt NO_GLOB_SUBST
 
29454
  fi
 
29455
  # Now quote all the things that may contain metacharacters while being
 
29456
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
29457
  # variables and quote the copies for generation of the libtool script.
 
29458
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
29459
    SED SHELL STRIP \
 
29460
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
29461
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
29462
    deplibs_check_method reload_flag reload_cmds need_locks \
 
29463
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
29464
    lt_cv_sys_global_symbol_to_c_name_address \
 
29465
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
29466
    old_postinstall_cmds old_postuninstall_cmds \
 
29467
    compiler_RC \
 
29468
    CC_RC \
 
29469
    LD_RC \
 
29470
    lt_prog_compiler_wl_RC \
 
29471
    lt_prog_compiler_pic_RC \
 
29472
    lt_prog_compiler_static_RC \
 
29473
    lt_prog_compiler_no_builtin_flag_RC \
 
29474
    export_dynamic_flag_spec_RC \
 
29475
    thread_safe_flag_spec_RC \
 
29476
    whole_archive_flag_spec_RC \
 
29477
    enable_shared_with_static_runtimes_RC \
 
29478
    old_archive_cmds_RC \
 
29479
    old_archive_from_new_cmds_RC \
 
29480
    predep_objects_RC \
 
29481
    postdep_objects_RC \
 
29482
    predeps_RC \
 
29483
    postdeps_RC \
 
29484
    compiler_lib_search_path_RC \
 
29485
    archive_cmds_RC \
 
29486
    archive_expsym_cmds_RC \
 
29487
    postinstall_cmds_RC \
 
29488
    postuninstall_cmds_RC \
 
29489
    old_archive_from_expsyms_cmds_RC \
 
29490
    allow_undefined_flag_RC \
 
29491
    no_undefined_flag_RC \
 
29492
    export_symbols_cmds_RC \
 
29493
    hardcode_libdir_flag_spec_RC \
 
29494
    hardcode_libdir_flag_spec_ld_RC \
 
29495
    hardcode_libdir_separator_RC \
 
29496
    hardcode_automatic_RC \
 
29497
    module_cmds_RC \
 
29498
    module_expsym_cmds_RC \
 
29499
    lt_cv_prog_compiler_c_o_RC \
 
29500
    exclude_expsyms_RC \
 
29501
    include_expsyms_RC; do
 
29502
 
 
29503
    case $var in
 
29504
    old_archive_cmds_RC | \
 
29505
    old_archive_from_new_cmds_RC | \
 
29506
    archive_cmds_RC | \
 
29507
    archive_expsym_cmds_RC | \
 
29508
    module_cmds_RC | \
 
29509
    module_expsym_cmds_RC | \
 
29510
    old_archive_from_expsyms_cmds_RC | \
 
29511
    export_symbols_cmds_RC | \
 
29512
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
29513
    postinstall_cmds | postuninstall_cmds | \
 
29514
    old_postinstall_cmds | old_postuninstall_cmds | \
 
29515
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
29516
      # Double-quote double-evaled strings.
 
29517
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
29518
      ;;
 
29519
    *)
 
29520
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
29521
      ;;
 
29522
    esac
 
29523
  done
 
29524
 
 
29525
  case $lt_echo in
 
29526
  *'\$0 --fallback-echo"')
 
29527
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
29528
    ;;
 
29529
  esac
 
29530
 
 
29531
cfgfile="$ofile"
 
29532
 
 
29533
  cat <<__EOF__ >> "$cfgfile"
 
29534
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
29535
 
 
29536
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
29537
 
 
29538
# Shell to use when invoking shell scripts.
 
29539
SHELL=$lt_SHELL
 
29540
 
 
29541
# Whether or not to build shared libraries.
 
29542
build_libtool_libs=$enable_shared
 
29543
 
 
29544
# Whether or not to build static libraries.
 
29545
build_old_libs=$enable_static
 
29546
 
 
29547
# Whether or not to add -lc for building shared libraries.
 
29548
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
29549
 
 
29550
# Whether or not to disallow shared libs when runtime libs are static
 
29551
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
29552
 
 
29553
# Whether or not to optimize for fast installation.
 
29554
fast_install=$enable_fast_install
 
29555
 
 
29556
# The host system.
 
29557
host_alias=$host_alias
 
29558
host=$host
 
29559
 
 
29560
# An echo program that does not interpret backslashes.
 
29561
echo=$lt_echo
 
29562
 
 
29563
# The archiver.
 
29564
AR=$lt_AR
 
29565
AR_FLAGS=$lt_AR_FLAGS
 
29566
 
 
29567
# A C compiler.
 
29568
LTCC=$lt_LTCC
 
29569
 
 
29570
# A language-specific compiler.
 
29571
CC=$lt_compiler_RC
 
29572
 
 
29573
# Is the compiler the GNU C compiler?
 
29574
with_gcc=$GCC_RC
 
29575
 
 
29576
# An ERE matcher.
 
29577
EGREP=$lt_EGREP
 
29578
 
 
29579
# The linker used to build libraries.
 
29580
LD=$lt_LD_RC
 
29581
 
 
29582
# Whether we need hard or soft links.
 
29583
LN_S=$lt_LN_S
 
29584
 
 
29585
# A BSD-compatible nm program.
 
29586
NM=$lt_NM
 
29587
 
 
29588
# A symbol stripping program
 
29589
STRIP=$lt_STRIP
 
29590
 
 
29591
# Used to examine libraries when file_magic_cmd begins "file"
 
29592
MAGIC_CMD=$MAGIC_CMD
 
29593
 
 
29594
# Used on cygwin: DLL creation program.
 
29595
DLLTOOL="$DLLTOOL"
 
29596
 
 
29597
# Used on cygwin: object dumper.
 
29598
OBJDUMP="$OBJDUMP"
 
29599
 
 
29600
# Used on cygwin: assembler.
 
29601
AS="$AS"
 
29602
 
 
29603
# The name of the directory that contains temporary libtool files.
 
29604
objdir=$objdir
 
29605
 
 
29606
# How to create reloadable object files.
 
29607
reload_flag=$lt_reload_flag
 
29608
reload_cmds=$lt_reload_cmds
 
29609
 
 
29610
# How to pass a linker flag through the compiler.
 
29611
wl=$lt_lt_prog_compiler_wl_RC
 
29612
 
 
29613
# Object file suffix (normally "o").
 
29614
objext="$ac_objext"
 
29615
 
 
29616
# Old archive suffix (normally "a").
 
29617
libext="$libext"
 
29618
 
 
29619
# Shared library suffix (normally ".so").
 
29620
shrext_cmds='$shrext_cmds'
 
29621
 
 
29622
# Executable file suffix (normally "").
 
29623
exeext="$exeext"
 
29624
 
 
29625
# Additional compiler flags for building library objects.
 
29626
pic_flag=$lt_lt_prog_compiler_pic_RC
 
29627
pic_mode=$pic_mode
 
29628
 
 
29629
# What is the maximum length of a command?
 
29630
max_cmd_len=$lt_cv_sys_max_cmd_len
 
29631
 
 
29632
# Does compiler simultaneously support -c and -o options?
 
29633
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
29634
 
 
29635
# Must we lock files when doing compilation ?
 
29636
need_locks=$lt_need_locks
 
29637
 
 
29638
# Do we need the lib prefix for modules?
 
29639
need_lib_prefix=$need_lib_prefix
 
29640
 
 
29641
# Do we need a version for libraries?
 
29642
need_version=$need_version
 
29643
 
 
29644
# Whether dlopen is supported.
 
29645
dlopen_support=$enable_dlopen
 
29646
 
 
29647
# Whether dlopen of programs is supported.
 
29648
dlopen_self=$enable_dlopen_self
 
29649
 
 
29650
# Whether dlopen of statically linked programs is supported.
 
29651
dlopen_self_static=$enable_dlopen_self_static
 
29652
 
 
29653
# Compiler flag to prevent dynamic linking.
 
29654
link_static_flag=$lt_lt_prog_compiler_static_RC
 
29655
 
 
29656
# Compiler flag to turn off builtin functions.
 
29657
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
29658
 
 
29659
# Compiler flag to allow reflexive dlopens.
 
29660
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
29661
 
 
29662
# Compiler flag to generate shared objects directly from archives.
 
29663
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
29664
 
 
29665
# Compiler flag to generate thread-safe objects.
 
29666
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
29667
 
 
29668
# Library versioning type.
 
29669
version_type=$version_type
 
29670
 
 
29671
# Format of library name prefix.
 
29672
libname_spec=$lt_libname_spec
 
29673
 
 
29674
# List of archive names.  First name is the real one, the rest are links.
 
29675
# The last name is the one that the linker finds with -lNAME.
 
29676
library_names_spec=$lt_library_names_spec
 
29677
 
 
29678
# The coded name of the library, if different from the real name.
 
29679
soname_spec=$lt_soname_spec
 
29680
 
 
29681
# Commands used to build and install an old-style archive.
 
29682
RANLIB=$lt_RANLIB
 
29683
old_archive_cmds=$lt_old_archive_cmds_RC
 
29684
old_postinstall_cmds=$lt_old_postinstall_cmds
 
29685
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
29686
 
 
29687
# Create an old-style archive from a shared archive.
 
29688
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
29689
 
 
29690
# Create a temporary old-style archive to link instead of a shared archive.
 
29691
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
29692
 
 
29693
# Commands used to build and install a shared archive.
 
29694
archive_cmds=$lt_archive_cmds_RC
 
29695
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
29696
postinstall_cmds=$lt_postinstall_cmds
 
29697
postuninstall_cmds=$lt_postuninstall_cmds
 
29698
 
 
29699
# Commands used to build a loadable module (assumed same as above if empty)
 
29700
module_cmds=$lt_module_cmds_RC
 
29701
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
29702
 
 
29703
# Commands to strip libraries.
 
29704
old_striplib=$lt_old_striplib
 
29705
striplib=$lt_striplib
 
29706
 
 
29707
# Dependencies to place before the objects being linked to create a
 
29708
# shared library.
 
29709
predep_objects=$lt_predep_objects_RC
 
29710
 
 
29711
# Dependencies to place after the objects being linked to create a
 
29712
# shared library.
 
29713
postdep_objects=$lt_postdep_objects_RC
 
29714
 
 
29715
# Dependencies to place before the objects being linked to create a
 
29716
# shared library.
 
29717
predeps=$lt_predeps_RC
 
29718
 
 
29719
# Dependencies to place after the objects being linked to create a
 
29720
# shared library.
 
29721
postdeps=$lt_postdeps_RC
 
29722
 
 
29723
# The library search path used internally by the compiler when linking
 
29724
# a shared library.
 
29725
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
29726
 
 
29727
# Method to check whether dependent libraries are shared objects.
 
29728
deplibs_check_method=$lt_deplibs_check_method
 
29729
 
 
29730
# Command to use when deplibs_check_method == file_magic.
 
29731
file_magic_cmd=$lt_file_magic_cmd
 
29732
 
 
29733
# Flag that allows shared libraries with undefined symbols to be built.
 
29734
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
29735
 
 
29736
# Flag that forces no undefined symbols.
 
29737
no_undefined_flag=$lt_no_undefined_flag_RC
 
29738
 
 
29739
# Commands used to finish a libtool library installation in a directory.
 
29740
finish_cmds=$lt_finish_cmds
 
29741
 
 
29742
# Same as above, but a single script fragment to be evaled but not shown.
 
29743
finish_eval=$lt_finish_eval
 
29744
 
 
29745
# Take the output of nm and produce a listing of raw symbols and C names.
 
29746
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
29747
 
 
29748
# Transform the output of nm in a proper C declaration
 
29749
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
29750
 
 
29751
# Transform the output of nm in a C name address pair
 
29752
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
29753
 
 
29754
# This is the shared library runtime path variable.
 
29755
runpath_var=$runpath_var
 
29756
 
 
29757
# This is the shared library path variable.
 
29758
shlibpath_var=$shlibpath_var
 
29759
 
 
29760
# Is shlibpath searched before the hard-coded library search path?
 
29761
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
29762
 
 
29763
# How to hardcode a shared library path into an executable.
 
29764
hardcode_action=$hardcode_action_RC
 
29765
 
 
29766
# Whether we should hardcode library paths into libraries.
 
29767
hardcode_into_libs=$hardcode_into_libs
 
29768
 
 
29769
# Flag to hardcode \$libdir into a binary during linking.
 
29770
# This must work even if \$libdir does not exist.
 
29771
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
29772
 
 
29773
# If ld is used when linking, flag to hardcode \$libdir into
 
29774
# a binary during linking. This must work even if \$libdir does
 
29775
# not exist.
 
29776
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
29777
 
 
29778
# Whether we need a single -rpath flag with a separated argument.
 
29779
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
29780
 
 
29781
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
29782
# resulting binary.
 
29783
hardcode_direct=$hardcode_direct_RC
 
29784
 
 
29785
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
29786
# resulting binary.
 
29787
hardcode_minus_L=$hardcode_minus_L_RC
 
29788
 
 
29789
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
29790
# the resulting binary.
 
29791
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
29792
 
 
29793
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
29794
# and all subsequent libraries and executables linked against it.
 
29795
hardcode_automatic=$hardcode_automatic_RC
 
29796
 
 
29797
# Variables whose values should be saved in libtool wrapper scripts and
 
29798
# restored at relink time.
 
29799
variables_saved_for_relink="$variables_saved_for_relink"
 
29800
 
 
29801
# Whether libtool must link a program against all its dependency libraries.
 
29802
link_all_deplibs=$link_all_deplibs_RC
 
29803
 
 
29804
# Compile-time system search path for libraries
 
29805
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
29806
 
 
29807
# Run-time system search path for libraries
 
29808
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
29809
 
 
29810
# Fix the shell variable \$srcfile for the compiler.
 
29811
fix_srcfile_path="$fix_srcfile_path_RC"
 
29812
 
 
29813
# Set to yes if exported symbols are required.
 
29814
always_export_symbols=$always_export_symbols_RC
 
29815
 
 
29816
# The commands to list exported symbols.
 
29817
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
29818
 
 
29819
# The commands to extract the exported symbol list from a shared archive.
 
29820
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
29821
 
 
29822
# Symbols that should not be listed in the preloaded symbols.
 
29823
exclude_expsyms=$lt_exclude_expsyms_RC
 
29824
 
 
29825
# Symbols that must always be exported.
 
29826
include_expsyms=$lt_include_expsyms_RC
 
29827
 
 
29828
# ### END LIBTOOL TAG CONFIG: $tagname
 
29829
 
 
29830
__EOF__
 
29831
 
 
29832
 
 
29833
else
 
29834
  # If there is no Makefile yet, we rely on a make rule to execute
 
29835
  # `config.status --recheck' to rerun these tests and create the
 
29836
  # libtool script then.
 
29837
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
29838
  if test -f "$ltmain_in"; then
 
29839
    test -f Makefile && make "$ltmain"
 
29840
  fi
 
29841
fi
 
29842
 
 
29843
 
 
29844
ac_ext=c
 
29845
ac_cpp='$CPP $CPPFLAGS'
 
29846
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
29847
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
29848
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
29849
 
 
29850
CC="$lt_save_CC"
 
29851
 
 
29852
        ;;
12112
29853
 
12113
29854
      *)
12114
 
        { { echo "$as_me:12114: error: Unsupported tag name: $tagname" >&5
 
29855
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12115
29856
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12116
29857
   { (exit 1); exit 1; }; }
12117
 
        ;;
 
29858
        ;;
12118
29859
      esac
12119
29860
 
12120
29861
      # Append the new tag name to the list of available tags.
 
29862
      if test -n "$tagname" ; then
12121
29863
      available_tags="$available_tags $tagname"
12122
29864
    fi
 
29865
    fi
12123
29866
  done
12124
29867
  IFS="$lt_save_ifs"
12125
29868
 
12129
29872
    chmod +x "$ofile"
12130
29873
  else
12131
29874
    rm -f "${ofile}T"
12132
 
    { { echo "$as_me:12132: error: unable to update list of available tagged configurations." >&5
 
29875
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12133
29876
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12134
29877
   { (exit 1); exit 1; }; }
12135
29878
  fi
12136
29879
fi
12137
29880
 
 
29881
 
 
29882
 
12138
29883
# This can be used to rebuild libtool when needed
12139
29884
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12140
29885
 
12143
29888
 
12144
29889
# Prevent multiple expansion
12145
29890
 
12146
 
# Find a good install program.  We prefer a C program (faster),
12147
 
# so one script is as good as another.  But avoid the broken or
12148
 
# incompatible versions:
12149
 
# SysV /etc/install, /usr/sbin/install
12150
 
# SunOS /usr/etc/install
12151
 
# IRIX /sbin/install
12152
 
# AIX /bin/install
12153
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
12154
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12155
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12156
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12157
 
# ./install, which can be erroneously created by make from ./install.sh.
12158
 
echo "$as_me:12158: checking for a BSD compatible install" >&5
12159
 
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
12160
 
if test -z "$INSTALL"; then
12161
 
if test "${ac_cv_path_install+set}" = set; then
12162
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12163
 
else
12164
 
    ac_save_IFS=$IFS; IFS=$ac_path_separator
12165
 
  for ac_dir in $PATH; do
12166
 
    IFS=$ac_save_IFS
12167
 
    # Account for people who put trailing slashes in PATH elements.
12168
 
    case $ac_dir/ in
12169
 
    / | ./ | .// | /cC/* \
12170
 
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
12171
 
    | /usr/ucb/* ) ;;
12172
 
    *)
12173
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
12174
 
      # Don't use installbsd from OSF since it installs stuff as root
12175
 
      # by default.
12176
 
      for ac_prog in ginstall scoinst install; do
12177
 
        if $as_executable_p "$ac_dir/$ac_prog"; then
12178
 
          if test $ac_prog = install &&
12179
 
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
12180
 
            # AIX install.  It has an incompatible calling convention.
12181
 
            :
12182
 
          elif test $ac_prog = install &&
12183
 
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
12184
 
            # program-specific install script used by HP pwplus--don't use.
12185
 
            :
12186
 
          else
12187
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
12188
 
            break 2
12189
 
          fi
12190
 
        fi
12191
 
      done
12192
 
      ;;
12193
 
    esac
12194
 
  done
12195
 
 
12196
 
fi
12197
 
  if test "${ac_cv_path_install+set}" = set; then
12198
 
    INSTALL=$ac_cv_path_install
12199
 
  else
12200
 
    # As a last resort, use the slow shell script.  We don't cache a
12201
 
    # path for INSTALL within a source directory, because that will
12202
 
    # break other packages using the cache if that directory is
12203
 
    # removed, or if the path is relative.
12204
 
    INSTALL=$ac_install_sh
12205
 
  fi
12206
 
fi
12207
 
echo "$as_me:12207: result: $INSTALL" >&5
12208
 
echo "${ECHO_T}$INSTALL" >&6
12209
 
 
12210
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12211
 
# It thinks the first close brace ends the variable substitution.
12212
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12213
 
 
12214
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12215
 
 
12216
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12217
 
 
12218
 
echo "$as_me:12218: checking whether build environment is sane" >&5
12219
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
12220
 
# Just in case
12221
 
sleep 1
12222
 
echo timestamp > conftest.file
12223
 
# Do `set' in a subshell so we don't clobber the current shell's
12224
 
# arguments.  Must try -L first in case configure is actually a
12225
 
# symlink; some systems play weird games with the mod time of symlinks
12226
 
# (eg FreeBSD returns the mod time of the symlink's containing
12227
 
# directory).
12228
 
if (
12229
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
12230
 
   if test "$*" = "X"; then
12231
 
      # -L didn't work.
12232
 
      set X `ls -t $srcdir/configure conftest.file`
12233
 
   fi
12234
 
   rm -f conftest.file
12235
 
   if test "$*" != "X $srcdir/configure conftest.file" \
12236
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
12237
 
 
12238
 
      # If neither matched, then we have a broken ls.  This can happen
12239
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
12240
 
      # broken ls alias from the environment.  This has actually
12241
 
      # happened.  Such a system could not be considered "sane".
12242
 
      { { echo "$as_me:12242: error: ls -t appears to fail.  Make sure there is not a broken
12243
 
alias in your environment" >&5
12244
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
12245
 
alias in your environment" >&2;}
12246
 
   { (exit 1); exit 1; }; }
12247
 
   fi
12248
 
 
12249
 
   test "$2" = conftest.file
12250
 
   )
12251
 
then
12252
 
   # Ok.
12253
 
   :
12254
 
else
12255
 
   { { echo "$as_me:12255: error: newly created file is older than distributed files!
12256
 
Check your system clock" >&5
12257
 
echo "$as_me: error: newly created file is older than distributed files!
12258
 
Check your system clock" >&2;}
12259
 
   { (exit 1); exit 1; }; }
12260
 
fi
12261
 
echo "$as_me:12261: result: yes" >&5
12262
 
echo "${ECHO_T}yes" >&6
12263
 
test "$program_prefix" != NONE &&
12264
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
12265
 
# Use a double $ so make ignores it.
12266
 
test "$program_suffix" != NONE &&
12267
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12268
 
# Double any \ or $.  echo might interpret backslashes.
12269
 
# By default was `s,x,x', remove it if useless.
12270
 
cat <<\_ACEOF >conftest.sed
12271
 
s/[\\$]/&&/g;s/;s,x,x,$//
12272
 
_ACEOF
12273
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12274
 
rm conftest.sed
12275
 
 
12276
 
# expand $ac_aux_dir to an absolute path
12277
 
am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
12278
 
 
12279
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
12280
 
# Use eval to expand $SHELL
12281
 
if eval "$MISSING --run true"; then
12282
 
  am_missing_run="$MISSING --run "
12283
 
else
12284
 
  am_missing_run=
12285
 
  am_backtick='`'
12286
 
  { echo "$as_me:12286: WARNING: ${am_backtick}missing' script is too old or missing" >&5
12287
 
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
12288
 
fi
12289
 
 
12290
 
for ac_prog in mawk gawk nawk awk
12291
 
do
12292
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12293
 
set dummy $ac_prog; ac_word=$2
12294
 
echo "$as_me:12294: checking for $ac_word" >&5
12295
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12296
 
if test "${ac_cv_prog_AWK+set}" = set; then
12297
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12298
 
else
12299
 
  if test -n "$AWK"; then
12300
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
12301
 
else
12302
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
12303
 
ac_dummy="$PATH"
12304
 
for ac_dir in $ac_dummy; do
12305
 
  IFS=$ac_save_IFS
12306
 
  test -z "$ac_dir" && ac_dir=.
12307
 
  $as_executable_p "$ac_dir/$ac_word" || continue
12308
 
ac_cv_prog_AWK="$ac_prog"
12309
 
echo "$as_me:12309: found $ac_dir/$ac_word" >&5
12310
 
break
12311
 
done
12312
 
 
12313
 
fi
12314
 
fi
12315
 
AWK=$ac_cv_prog_AWK
12316
 
if test -n "$AWK"; then
12317
 
  echo "$as_me:12317: result: $AWK" >&5
12318
 
echo "${ECHO_T}$AWK" >&6
12319
 
else
12320
 
  echo "$as_me:12320: result: no" >&5
12321
 
echo "${ECHO_T}no" >&6
12322
 
fi
12323
 
 
12324
 
  test -n "$AWK" && break
12325
 
done
12326
 
 
12327
 
echo "$as_me:12327: checking whether ${MAKE-make} sets \${MAKE}" >&5
12328
 
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
12329
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
12330
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
12331
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12332
 
else
12333
 
  cat >conftest.make <<\EOF
12334
 
all:
12335
 
        @echo 'ac_maketemp="${MAKE}"'
12336
 
EOF
12337
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12338
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
12339
 
if test -n "$ac_maketemp"; then
12340
 
  eval ac_cv_prog_make_${ac_make}_set=yes
12341
 
else
12342
 
  eval ac_cv_prog_make_${ac_make}_set=no
12343
 
fi
12344
 
rm -f conftest.make
12345
 
fi
12346
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12347
 
  echo "$as_me:12347: result: yes" >&5
12348
 
echo "${ECHO_T}yes" >&6
12349
 
  SET_MAKE=
12350
 
else
12351
 
  echo "$as_me:12351: result: no" >&5
12352
 
echo "${ECHO_T}no" >&6
12353
 
  SET_MAKE="MAKE=${MAKE-make}"
12354
 
fi
12355
 
 
12356
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
12357
 
if test "${enable_dependency_tracking+set}" = set; then
12358
 
  enableval="$enable_dependency_tracking"
12359
 
 
12360
 
fi;
12361
 
if test "x$enable_dependency_tracking" != xno; then
12362
 
  am_depcomp="$ac_aux_dir/depcomp"
12363
 
  AMDEPBACKSLASH='\'
12364
 
fi
12365
 
 
12366
 
if test "x$enable_dependency_tracking" != xno; then
12367
 
  AMDEP_TRUE=
12368
 
  AMDEP_FALSE='#'
12369
 
else
12370
 
  AMDEP_TRUE='#'
12371
 
  AMDEP_FALSE=
12372
 
fi
12373
 
 
12374
 
rm -f .deps 2>/dev/null
12375
 
mkdir .deps 2>/dev/null
12376
 
if test -d .deps; then
12377
 
  DEPDIR=.deps
12378
 
else
12379
 
  # MS-DOS does not allow filenames that begin with a dot.
12380
 
  DEPDIR=_deps
12381
 
fi
12382
 
rmdir .deps 2>/dev/null
12383
 
 
12384
 
ac_config_commands="$ac_config_commands default-1"
12385
 
 
12386
 
am_make=${MAKE-make}
12387
 
cat > confinc << 'END'
12388
 
doit:
12389
 
        @echo done
12390
 
END
12391
 
# If we don't find an include directive, just comment out the code.
12392
 
echo "$as_me:12392: checking for style of include used by $am_make" >&5
12393
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
12394
 
am__include='#'
12395
 
am__quote=
12396
 
_am_result=none
12397
 
# First try GNU make style include.
12398
 
echo "include confinc" > confmf
12399
 
# We grep out `Entering directory' and `Leaving directory'
12400
 
# messages which can occur if `w' ends up in MAKEFLAGS.
12401
 
# In particular we don't look at `^make:' because GNU make might
12402
 
# be invoked under some other name (usually "gmake"), in which
12403
 
# case it prints its new name instead of `make'.
12404
 
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
12405
 
   am__include=include
12406
 
   am__quote=
12407
 
   _am_result=GNU
12408
 
fi
12409
 
# Now try BSD make style include.
12410
 
if test "$am__include" = "#"; then
12411
 
   echo '.include "confinc"' > confmf
12412
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
12413
 
      am__include=.include
12414
 
      am__quote='"'
12415
 
      _am_result=BSD
12416
 
   fi
12417
 
fi
12418
 
 
12419
 
echo "$as_me:12419: result: $_am_result" >&5
12420
 
echo "${ECHO_T}$_am_result" >&6
12421
 
rm -f confinc confmf
12422
 
 
12423
 
# test to see if srcdir already configured
12424
 
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
12425
 
   test -f $srcdir/config.status; then
12426
 
  { { echo "$as_me:12426: error: source directory already configured; run \"make distclean\" there first" >&5
12427
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
12428
 
   { (exit 1); exit 1; }; }
12429
 
fi
12430
 
 
12431
 
# Define the identity of the package.
12432
 
PACKAGE=$PACKAGE
12433
 
VERSION=$VERSION
12434
 
 
12435
 
cat >>confdefs.h <<EOF
12436
 
#define PACKAGE "$PACKAGE"
12437
 
EOF
12438
 
 
12439
 
cat >>confdefs.h <<EOF
12440
 
#define VERSION "$VERSION"
12441
 
EOF
12442
 
 
12443
 
# Autoconf 2.50 wants to disallow AM_ names.  We explicitly allow
12444
 
# the ones we care about.
12445
 
 
12446
 
# Autoconf 2.50 always computes EXEEXT.  However we need to be
12447
 
# compatible with 2.13, for now.  So we always define EXEEXT, but we
12448
 
# don't compute it.
12449
 
 
12450
 
# Similar for OBJEXT -- only we only use OBJEXT if the user actually
12451
 
# requests that it be used.  This is a bit dumb.
12452
 
: ${OBJEXT=o}
12453
 
 
12454
 
# Some tools Automake needs.
12455
 
 
12456
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
12457
 
 
12458
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
12459
 
 
12460
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
12461
 
 
12462
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
12463
 
 
12464
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
12465
 
 
12466
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
12467
 
 
12468
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
12469
 
 
12470
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
12471
 
 
12472
 
# We need awk for the "check" target.  The system "awk" is bad on
12473
 
# some platforms.
12474
 
 
12475
 
depcc="$CC"   am_compiler_list=
12476
 
 
12477
 
echo "$as_me:12477: checking dependency style of $depcc" >&5
12478
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12479
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12480
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12481
 
else
12482
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12483
 
  # We make a subdir and do the tests there.  Otherwise we can end up
12484
 
  # making bogus files that we don't know about and never remove.  For
12485
 
  # instance it was reported that on HP-UX the gcc test will end up
12486
 
  # making a dummy file named `D' -- because `-MD' means `put the output
12487
 
  # in D'.
12488
 
  mkdir conftest.dir
12489
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
12490
 
  # using a relative directory.
12491
 
  cp "$am_depcomp" conftest.dir
12492
 
  cd conftest.dir
12493
 
 
12494
 
  am_cv_CC_dependencies_compiler_type=none
12495
 
  if test "$am_compiler_list" = ""; then
12496
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12497
 
  fi
12498
 
  for depmode in $am_compiler_list; do
12499
 
    # We need to recreate these files for each test, as the compiler may
12500
 
    # overwrite some of them when testing with obscure command lines.
12501
 
    # This happens at least with the AIX C compiler.
12502
 
    echo '#include "conftest.h"' > conftest.c
12503
 
    echo 'int i;' > conftest.h
12504
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
12505
 
 
12506
 
    case $depmode in
12507
 
    nosideeffect)
12508
 
      # after this tag, mechanisms are not by side-effect, so they'll
12509
 
      # only be used when explicitly requested
12510
 
      if test "x$enable_dependency_tracking" = xyes; then
12511
 
        continue
12512
 
      else
12513
 
        break
12514
 
      fi
12515
 
      ;;
12516
 
    none) break ;;
12517
 
    esac
12518
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12519
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
12520
 
    # handle `-M -o', and we need to detect this.
12521
 
    if depmode=$depmode \
12522
 
       source=conftest.c object=conftest.o \
12523
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
12524
 
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
12525
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
12526
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12527
 
      am_cv_CC_dependencies_compiler_type=$depmode
12528
 
      break
12529
 
    fi
12530
 
  done
12531
 
 
12532
 
  cd ..
12533
 
  rm -rf conftest.dir
12534
 
else
12535
 
  am_cv_CC_dependencies_compiler_type=none
12536
 
fi
12537
 
 
12538
 
fi
12539
 
echo "$as_me:12539: result: $am_cv_CC_dependencies_compiler_type" >&5
12540
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
12541
 
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
12542
 
 
12543
 
depcc="$CXX"  am_compiler_list=
12544
 
 
12545
 
echo "$as_me:12545: checking dependency style of $depcc" >&5
12546
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
12547
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
12548
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12549
 
else
12550
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12551
 
  # We make a subdir and do the tests there.  Otherwise we can end up
12552
 
  # making bogus files that we don't know about and never remove.  For
12553
 
  # instance it was reported that on HP-UX the gcc test will end up
12554
 
  # making a dummy file named `D' -- because `-MD' means `put the output
12555
 
  # in D'.
12556
 
  mkdir conftest.dir
12557
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
12558
 
  # using a relative directory.
12559
 
  cp "$am_depcomp" conftest.dir
12560
 
  cd conftest.dir
12561
 
 
12562
 
  am_cv_CXX_dependencies_compiler_type=none
12563
 
  if test "$am_compiler_list" = ""; then
12564
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12565
 
  fi
12566
 
  for depmode in $am_compiler_list; do
12567
 
    # We need to recreate these files for each test, as the compiler may
12568
 
    # overwrite some of them when testing with obscure command lines.
12569
 
    # This happens at least with the AIX C compiler.
12570
 
    echo '#include "conftest.h"' > conftest.c
12571
 
    echo 'int i;' > conftest.h
12572
 
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
12573
 
 
12574
 
    case $depmode in
12575
 
    nosideeffect)
12576
 
      # after this tag, mechanisms are not by side-effect, so they'll
12577
 
      # only be used when explicitly requested
12578
 
      if test "x$enable_dependency_tracking" = xyes; then
12579
 
        continue
12580
 
      else
12581
 
        break
12582
 
      fi
12583
 
      ;;
12584
 
    none) break ;;
12585
 
    esac
12586
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
12587
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
12588
 
    # handle `-M -o', and we need to detect this.
12589
 
    if depmode=$depmode \
12590
 
       source=conftest.c object=conftest.o \
12591
 
       depfile=conftest.Po tmpdepfile=conftest.TPo \
12592
 
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
12593
 
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
12594
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12595
 
      am_cv_CXX_dependencies_compiler_type=$depmode
12596
 
      break
12597
 
    fi
12598
 
  done
12599
 
 
12600
 
  cd ..
12601
 
  rm -rf conftest.dir
12602
 
else
12603
 
  am_cv_CXX_dependencies_compiler_type=none
12604
 
fi
12605
 
 
12606
 
fi
12607
 
echo "$as_me:12607: result: $am_cv_CXX_dependencies_compiler_type" >&5
12608
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
12609
 
CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
12610
 
 
12611
 
                                                    ac_config_headers="$ac_config_headers config.h"
12612
 
 
12613
 
# Build time sanity check...
12614
 
echo "$as_me:12614: checking whether build environment is sane" >&5
12615
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
12616
 
# Just in case
12617
 
sleep 1
12618
 
echo timestamp > conftest.file
12619
 
# Do `set' in a subshell so we don't clobber the current shell's
12620
 
# arguments.  Must try -L first in case configure is actually a
12621
 
# symlink; some systems play weird games with the mod time of symlinks
12622
 
# (eg FreeBSD returns the mod time of the symlink's containing
12623
 
# directory).
12624
 
if (
12625
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
12626
 
   if test "$*" = "X"; then
12627
 
      # -L didn't work.
12628
 
      set X `ls -t $srcdir/configure conftest.file`
12629
 
   fi
12630
 
   rm -f conftest.file
12631
 
   if test "$*" != "X $srcdir/configure conftest.file" \
12632
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
12633
 
 
12634
 
      # If neither matched, then we have a broken ls.  This can happen
12635
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
12636
 
      # broken ls alias from the environment.  This has actually
12637
 
      # happened.  Such a system could not be considered "sane".
12638
 
      { { echo "$as_me:12638: error: ls -t appears to fail.  Make sure there is not a broken
12639
 
alias in your environment" >&5
12640
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
12641
 
alias in your environment" >&2;}
12642
 
   { (exit 1); exit 1; }; }
12643
 
   fi
12644
 
 
12645
 
   test "$2" = conftest.file
12646
 
   )
12647
 
then
12648
 
   # Ok.
12649
 
   :
12650
 
else
12651
 
   { { echo "$as_me:12651: error: newly created file is older than distributed files!
12652
 
Check your system clock" >&5
12653
 
echo "$as_me: error: newly created file is older than distributed files!
12654
 
Check your system clock" >&2;}
12655
 
   { (exit 1); exit 1; }; }
12656
 
fi
12657
 
echo "$as_me:12657: result: yes" >&5
12658
 
echo "${ECHO_T}yes" >&6
12659
 
 
12660
 
echo -n "checking for something to drink while compiling..."
12661
 
echo " err: no fridge found"
12662
 
 
12663
 
ac_ext=c
12664
 
ac_cpp='$CPP $CPPFLAGS'
12665
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12666
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12667
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12668
 
if test -n "$ac_tool_prefix"; then
12669
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12670
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
12671
 
echo "$as_me:12671: checking for $ac_word" >&5
12672
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12673
 
if test "${ac_cv_prog_CC+set}" = set; then
12674
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12675
 
else
12676
 
  if test -n "$CC"; then
12677
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
12678
 
else
12679
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
12680
 
ac_dummy="$PATH"
12681
 
for ac_dir in $ac_dummy; do
12682
 
  IFS=$ac_save_IFS
12683
 
  test -z "$ac_dir" && ac_dir=.
12684
 
  $as_executable_p "$ac_dir/$ac_word" || continue
12685
 
ac_cv_prog_CC="${ac_tool_prefix}gcc"
12686
 
echo "$as_me:12686: found $ac_dir/$ac_word" >&5
12687
 
break
12688
 
done
12689
 
 
12690
 
fi
12691
 
fi
12692
 
CC=$ac_cv_prog_CC
12693
 
if test -n "$CC"; then
12694
 
  echo "$as_me:12694: result: $CC" >&5
12695
 
echo "${ECHO_T}$CC" >&6
12696
 
else
12697
 
  echo "$as_me:12697: result: no" >&5
12698
 
echo "${ECHO_T}no" >&6
12699
 
fi
12700
 
 
12701
 
fi
12702
 
if test -z "$ac_cv_prog_CC"; then
12703
 
  ac_ct_CC=$CC
12704
 
  # Extract the first word of "gcc", so it can be a program name with args.
12705
 
set dummy gcc; ac_word=$2
12706
 
echo "$as_me:12706: checking for $ac_word" >&5
12707
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12708
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12709
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12710
 
else
12711
 
  if test -n "$ac_ct_CC"; then
12712
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12713
 
else
12714
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
12715
 
ac_dummy="$PATH"
12716
 
for ac_dir in $ac_dummy; do
12717
 
  IFS=$ac_save_IFS
12718
 
  test -z "$ac_dir" && ac_dir=.
12719
 
  $as_executable_p "$ac_dir/$ac_word" || continue
12720
 
ac_cv_prog_ac_ct_CC="gcc"
12721
 
echo "$as_me:12721: found $ac_dir/$ac_word" >&5
12722
 
break
12723
 
done
12724
 
 
12725
 
fi
12726
 
fi
12727
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12728
 
if test -n "$ac_ct_CC"; then
12729
 
  echo "$as_me:12729: result: $ac_ct_CC" >&5
12730
 
echo "${ECHO_T}$ac_ct_CC" >&6
12731
 
else
12732
 
  echo "$as_me:12732: result: no" >&5
12733
 
echo "${ECHO_T}no" >&6
12734
 
fi
12735
 
 
12736
 
  CC=$ac_ct_CC
12737
 
else
12738
 
  CC="$ac_cv_prog_CC"
12739
 
fi
12740
 
 
12741
 
if test -z "$CC"; then
12742
 
  if test -n "$ac_tool_prefix"; then
12743
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12744
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
12745
 
echo "$as_me:12745: checking for $ac_word" >&5
12746
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12747
 
if test "${ac_cv_prog_CC+set}" = set; then
12748
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12749
 
else
12750
 
  if test -n "$CC"; then
12751
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
12752
 
else
12753
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
12754
 
ac_dummy="$PATH"
12755
 
for ac_dir in $ac_dummy; do
12756
 
  IFS=$ac_save_IFS
12757
 
  test -z "$ac_dir" && ac_dir=.
12758
 
  $as_executable_p "$ac_dir/$ac_word" || continue
12759
 
ac_cv_prog_CC="${ac_tool_prefix}cc"
12760
 
echo "$as_me:12760: found $ac_dir/$ac_word" >&5
12761
 
break
12762
 
done
12763
 
 
12764
 
fi
12765
 
fi
12766
 
CC=$ac_cv_prog_CC
12767
 
if test -n "$CC"; then
12768
 
  echo "$as_me:12768: result: $CC" >&5
12769
 
echo "${ECHO_T}$CC" >&6
12770
 
else
12771
 
  echo "$as_me:12771: result: no" >&5
12772
 
echo "${ECHO_T}no" >&6
12773
 
fi
12774
 
 
12775
 
fi
12776
 
if test -z "$ac_cv_prog_CC"; then
12777
 
  ac_ct_CC=$CC
12778
 
  # Extract the first word of "cc", so it can be a program name with args.
12779
 
set dummy cc; ac_word=$2
12780
 
echo "$as_me:12780: checking for $ac_word" >&5
12781
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12782
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12783
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12784
 
else
12785
 
  if test -n "$ac_ct_CC"; then
12786
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12787
 
else
12788
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
12789
 
ac_dummy="$PATH"
12790
 
for ac_dir in $ac_dummy; do
12791
 
  IFS=$ac_save_IFS
12792
 
  test -z "$ac_dir" && ac_dir=.
12793
 
  $as_executable_p "$ac_dir/$ac_word" || continue
12794
 
ac_cv_prog_ac_ct_CC="cc"
12795
 
echo "$as_me:12795: found $ac_dir/$ac_word" >&5
12796
 
break
12797
 
done
12798
 
 
12799
 
fi
12800
 
fi
12801
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12802
 
if test -n "$ac_ct_CC"; then
12803
 
  echo "$as_me:12803: result: $ac_ct_CC" >&5
12804
 
echo "${ECHO_T}$ac_ct_CC" >&6
12805
 
else
12806
 
  echo "$as_me:12806: result: no" >&5
12807
 
echo "${ECHO_T}no" >&6
12808
 
fi
12809
 
 
12810
 
  CC=$ac_ct_CC
12811
 
else
12812
 
  CC="$ac_cv_prog_CC"
12813
 
fi
12814
 
 
12815
 
fi
12816
 
if test -z "$CC"; then
12817
 
  # Extract the first word of "cc", so it can be a program name with args.
12818
 
set dummy cc; ac_word=$2
12819
 
echo "$as_me:12819: checking for $ac_word" >&5
12820
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12821
 
if test "${ac_cv_prog_CC+set}" = set; then
12822
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12823
 
else
12824
 
  if test -n "$CC"; then
12825
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
12826
 
else
12827
 
  ac_prog_rejected=no
12828
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
12829
 
ac_dummy="$PATH"
12830
 
for ac_dir in $ac_dummy; do
12831
 
  IFS=$ac_save_IFS
12832
 
  test -z "$ac_dir" && ac_dir=.
12833
 
  $as_executable_p "$ac_dir/$ac_word" || continue
12834
 
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
12835
 
  ac_prog_rejected=yes
12836
 
  continue
12837
 
fi
12838
 
ac_cv_prog_CC="cc"
12839
 
echo "$as_me:12839: found $ac_dir/$ac_word" >&5
12840
 
break
12841
 
done
12842
 
 
12843
 
if test $ac_prog_rejected = yes; then
12844
 
  # We found a bogon in the path, so make sure we never use it.
12845
 
  set dummy $ac_cv_prog_CC
12846
 
  shift
12847
 
  if test $# != 0; then
12848
 
    # We chose a different compiler from the bogus one.
12849
 
    # However, it has the same basename, so the bogon will be chosen
12850
 
    # first if we set CC to just the basename; use the full file name.
12851
 
    shift
12852
 
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
12853
 
    shift
12854
 
    ac_cv_prog_CC="$@"
12855
 
  fi
12856
 
fi
12857
 
fi
12858
 
fi
12859
 
CC=$ac_cv_prog_CC
12860
 
if test -n "$CC"; then
12861
 
  echo "$as_me:12861: result: $CC" >&5
12862
 
echo "${ECHO_T}$CC" >&6
12863
 
else
12864
 
  echo "$as_me:12864: result: no" >&5
12865
 
echo "${ECHO_T}no" >&6
12866
 
fi
12867
 
 
12868
 
fi
12869
 
if test -z "$CC"; then
12870
 
  if test -n "$ac_tool_prefix"; then
12871
 
  for ac_prog in cl
12872
 
  do
12873
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12874
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12875
 
echo "$as_me:12875: checking for $ac_word" >&5
12876
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12877
 
if test "${ac_cv_prog_CC+set}" = set; then
12878
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12879
 
else
12880
 
  if test -n "$CC"; then
12881
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
12882
 
else
12883
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
12884
 
ac_dummy="$PATH"
12885
 
for ac_dir in $ac_dummy; do
12886
 
  IFS=$ac_save_IFS
12887
 
  test -z "$ac_dir" && ac_dir=.
12888
 
  $as_executable_p "$ac_dir/$ac_word" || continue
12889
 
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12890
 
echo "$as_me:12890: found $ac_dir/$ac_word" >&5
12891
 
break
12892
 
done
12893
 
 
12894
 
fi
12895
 
fi
12896
 
CC=$ac_cv_prog_CC
12897
 
if test -n "$CC"; then
12898
 
  echo "$as_me:12898: result: $CC" >&5
12899
 
echo "${ECHO_T}$CC" >&6
12900
 
else
12901
 
  echo "$as_me:12901: result: no" >&5
12902
 
echo "${ECHO_T}no" >&6
12903
 
fi
12904
 
 
12905
 
    test -n "$CC" && break
12906
 
  done
12907
 
fi
12908
 
if test -z "$CC"; then
12909
 
  ac_ct_CC=$CC
12910
 
  for ac_prog in cl
12911
 
do
12912
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
12913
 
set dummy $ac_prog; ac_word=$2
12914
 
echo "$as_me:12914: checking for $ac_word" >&5
12915
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12916
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12917
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12918
 
else
12919
 
  if test -n "$ac_ct_CC"; then
12920
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12921
 
else
12922
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
12923
 
ac_dummy="$PATH"
12924
 
for ac_dir in $ac_dummy; do
12925
 
  IFS=$ac_save_IFS
12926
 
  test -z "$ac_dir" && ac_dir=.
12927
 
  $as_executable_p "$ac_dir/$ac_word" || continue
12928
 
ac_cv_prog_ac_ct_CC="$ac_prog"
12929
 
echo "$as_me:12929: found $ac_dir/$ac_word" >&5
12930
 
break
12931
 
done
12932
 
 
12933
 
fi
12934
 
fi
12935
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
12936
 
if test -n "$ac_ct_CC"; then
12937
 
  echo "$as_me:12937: result: $ac_ct_CC" >&5
12938
 
echo "${ECHO_T}$ac_ct_CC" >&6
12939
 
else
12940
 
  echo "$as_me:12940: result: no" >&5
12941
 
echo "${ECHO_T}no" >&6
12942
 
fi
12943
 
 
12944
 
  test -n "$ac_ct_CC" && break
12945
 
done
12946
 
 
12947
 
  CC=$ac_ct_CC
12948
 
fi
12949
 
 
12950
 
fi
12951
 
 
12952
 
test -z "$CC" && { { echo "$as_me:12952: error: no acceptable cc found in \$PATH" >&5
12953
 
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
12954
 
   { (exit 1); exit 1; }; }
12955
 
 
12956
 
# Provide some information about the compiler.
12957
 
echo "$as_me:12957:" \
12958
 
     "checking for C compiler version" >&5
12959
 
ac_compiler=`set X $ac_compile; echo $2`
12960
 
{ (eval echo "$as_me:12960: \"$ac_compiler --version </dev/null >&5\"") >&5
12961
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
12962
 
  ac_status=$?
12963
 
  echo "$as_me:12963: \$? = $ac_status" >&5
12964
 
  (exit $ac_status); }
12965
 
{ (eval echo "$as_me:12965: \"$ac_compiler -v </dev/null >&5\"") >&5
12966
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
12967
 
  ac_status=$?
12968
 
  echo "$as_me:12968: \$? = $ac_status" >&5
12969
 
  (exit $ac_status); }
12970
 
{ (eval echo "$as_me:12970: \"$ac_compiler -V </dev/null >&5\"") >&5
12971
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
12972
 
  ac_status=$?
12973
 
  echo "$as_me:12973: \$? = $ac_status" >&5
12974
 
  (exit $ac_status); }
12975
 
 
12976
 
echo "$as_me:12976: checking whether we are using the GNU C compiler" >&5
12977
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12978
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
12979
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12980
 
else
12981
 
  cat >conftest.$ac_ext <<_ACEOF
12982
 
#line 12982 "configure"
12983
 
#include "confdefs.h"
12984
 
 
12985
 
int
12986
 
main ()
12987
 
{
12988
 
#ifndef __GNUC__
12989
 
       choke me
12990
 
#endif
12991
 
 
12992
 
  ;
12993
 
  return 0;
12994
 
}
12995
 
_ACEOF
12996
 
rm -f conftest.$ac_objext
12997
 
if { (eval echo "$as_me:12997: \"$ac_compile\"") >&5
12998
 
  (eval $ac_compile) 2>&5
12999
 
  ac_status=$?
13000
 
  echo "$as_me:13000: \$? = $ac_status" >&5
13001
 
  (exit $ac_status); } &&
13002
 
         { ac_try='test -s conftest.$ac_objext'
13003
 
  { (eval echo "$as_me:13003: \"$ac_try\"") >&5
13004
 
  (eval $ac_try) 2>&5
13005
 
  ac_status=$?
13006
 
  echo "$as_me:13006: \$? = $ac_status" >&5
13007
 
  (exit $ac_status); }; }; then
13008
 
  ac_compiler_gnu=yes
13009
 
else
13010
 
  echo "$as_me: failed program was:" >&5
13011
 
cat conftest.$ac_ext >&5
13012
 
ac_compiler_gnu=no
13013
 
fi
13014
 
rm -f conftest.$ac_objext conftest.$ac_ext
13015
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
13016
 
 
13017
 
fi
13018
 
echo "$as_me:13018: result: $ac_cv_c_compiler_gnu" >&5
13019
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
13020
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
13021
 
ac_test_CFLAGS=${CFLAGS+set}
13022
 
ac_save_CFLAGS=$CFLAGS
13023
 
CFLAGS="-g"
13024
 
echo "$as_me:13024: checking whether $CC accepts -g" >&5
13025
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13026
 
if test "${ac_cv_prog_cc_g+set}" = set; then
13027
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13028
 
else
13029
 
  cat >conftest.$ac_ext <<_ACEOF
13030
 
#line 13030 "configure"
13031
 
#include "confdefs.h"
13032
 
 
13033
 
int
13034
 
main ()
13035
 
{
13036
 
 
13037
 
  ;
13038
 
  return 0;
13039
 
}
13040
 
_ACEOF
13041
 
rm -f conftest.$ac_objext
13042
 
if { (eval echo "$as_me:13042: \"$ac_compile\"") >&5
13043
 
  (eval $ac_compile) 2>&5
13044
 
  ac_status=$?
13045
 
  echo "$as_me:13045: \$? = $ac_status" >&5
13046
 
  (exit $ac_status); } &&
13047
 
         { ac_try='test -s conftest.$ac_objext'
13048
 
  { (eval echo "$as_me:13048: \"$ac_try\"") >&5
13049
 
  (eval $ac_try) 2>&5
13050
 
  ac_status=$?
13051
 
  echo "$as_me:13051: \$? = $ac_status" >&5
13052
 
  (exit $ac_status); }; }; then
13053
 
  ac_cv_prog_cc_g=yes
13054
 
else
13055
 
  echo "$as_me: failed program was:" >&5
13056
 
cat conftest.$ac_ext >&5
13057
 
ac_cv_prog_cc_g=no
13058
 
fi
13059
 
rm -f conftest.$ac_objext conftest.$ac_ext
13060
 
fi
13061
 
echo "$as_me:13061: result: $ac_cv_prog_cc_g" >&5
13062
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13063
 
if test "$ac_test_CFLAGS" = set; then
13064
 
  CFLAGS=$ac_save_CFLAGS
13065
 
elif test $ac_cv_prog_cc_g = yes; then
13066
 
  if test "$GCC" = yes; then
13067
 
    CFLAGS="-g -O2"
13068
 
  else
13069
 
    CFLAGS="-g"
13070
 
  fi
13071
 
else
13072
 
  if test "$GCC" = yes; then
13073
 
    CFLAGS="-O2"
13074
 
  else
13075
 
    CFLAGS=
13076
 
  fi
13077
 
fi
13078
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
13079
 
# in C++ we need to declare it.  In case someone uses the same compiler
13080
 
# for both compiling C and C++ we need to have the C++ compiler decide
13081
 
# the declaration of exit, since it's the most demanding environment.
13082
 
cat >conftest.$ac_ext <<_ACEOF
13083
 
#ifndef __cplusplus
13084
 
  choke me
13085
 
#endif
13086
 
_ACEOF
13087
 
rm -f conftest.$ac_objext
13088
 
if { (eval echo "$as_me:13088: \"$ac_compile\"") >&5
13089
 
  (eval $ac_compile) 2>&5
13090
 
  ac_status=$?
13091
 
  echo "$as_me:13091: \$? = $ac_status" >&5
13092
 
  (exit $ac_status); } &&
13093
 
         { ac_try='test -s conftest.$ac_objext'
13094
 
  { (eval echo "$as_me:13094: \"$ac_try\"") >&5
13095
 
  (eval $ac_try) 2>&5
13096
 
  ac_status=$?
13097
 
  echo "$as_me:13097: \$? = $ac_status" >&5
13098
 
  (exit $ac_status); }; }; then
13099
 
  for ac_declaration in \
13100
 
   ''\
13101
 
   '#include <stdlib.h>' \
13102
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
13103
 
   'extern "C" void std::exit (int); using std::exit;' \
13104
 
   'extern "C" void exit (int) throw ();' \
13105
 
   'extern "C" void exit (int);' \
13106
 
   'void exit (int);'
13107
 
do
13108
 
  cat >conftest.$ac_ext <<_ACEOF
13109
 
#line 13109 "configure"
13110
 
#include "confdefs.h"
13111
 
#include <stdlib.h>
13112
 
$ac_declaration
13113
 
int
13114
 
main ()
13115
 
{
13116
 
exit (42);
13117
 
  ;
13118
 
  return 0;
13119
 
}
13120
 
_ACEOF
13121
 
rm -f conftest.$ac_objext
13122
 
if { (eval echo "$as_me:13122: \"$ac_compile\"") >&5
13123
 
  (eval $ac_compile) 2>&5
13124
 
  ac_status=$?
13125
 
  echo "$as_me:13125: \$? = $ac_status" >&5
13126
 
  (exit $ac_status); } &&
13127
 
         { ac_try='test -s conftest.$ac_objext'
13128
 
  { (eval echo "$as_me:13128: \"$ac_try\"") >&5
13129
 
  (eval $ac_try) 2>&5
13130
 
  ac_status=$?
13131
 
  echo "$as_me:13131: \$? = $ac_status" >&5
13132
 
  (exit $ac_status); }; }; then
13133
 
  :
13134
 
else
13135
 
  echo "$as_me: failed program was:" >&5
13136
 
cat conftest.$ac_ext >&5
13137
 
continue
13138
 
fi
13139
 
rm -f conftest.$ac_objext conftest.$ac_ext
13140
 
  cat >conftest.$ac_ext <<_ACEOF
13141
 
#line 13141 "configure"
13142
 
#include "confdefs.h"
13143
 
$ac_declaration
13144
 
int
13145
 
main ()
13146
 
{
13147
 
exit (42);
13148
 
  ;
13149
 
  return 0;
13150
 
}
13151
 
_ACEOF
13152
 
rm -f conftest.$ac_objext
13153
 
if { (eval echo "$as_me:13153: \"$ac_compile\"") >&5
13154
 
  (eval $ac_compile) 2>&5
13155
 
  ac_status=$?
13156
 
  echo "$as_me:13156: \$? = $ac_status" >&5
13157
 
  (exit $ac_status); } &&
13158
 
         { ac_try='test -s conftest.$ac_objext'
13159
 
  { (eval echo "$as_me:13159: \"$ac_try\"") >&5
13160
 
  (eval $ac_try) 2>&5
13161
 
  ac_status=$?
13162
 
  echo "$as_me:13162: \$? = $ac_status" >&5
13163
 
  (exit $ac_status); }; }; then
13164
 
  break
13165
 
else
13166
 
  echo "$as_me: failed program was:" >&5
13167
 
cat conftest.$ac_ext >&5
13168
 
fi
13169
 
rm -f conftest.$ac_objext conftest.$ac_ext
13170
 
done
13171
 
rm -f conftest*
13172
 
if test -n "$ac_declaration"; then
13173
 
  echo '#ifdef __cplusplus' >>confdefs.h
13174
 
  echo $ac_declaration      >>confdefs.h
13175
 
  echo '#endif'             >>confdefs.h
13176
 
fi
13177
 
 
13178
 
else
13179
 
  echo "$as_me: failed program was:" >&5
13180
 
cat conftest.$ac_ext >&5
13181
 
fi
13182
 
rm -f conftest.$ac_objext conftest.$ac_ext
13183
 
ac_ext=c
13184
 
ac_cpp='$CPP $CPPFLAGS'
13185
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13186
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13187
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13188
 
 
13189
 
# Find a good install program.  We prefer a C program (faster),
13190
 
# so one script is as good as another.  But avoid the broken or
13191
 
# incompatible versions:
13192
 
# SysV /etc/install, /usr/sbin/install
13193
 
# SunOS /usr/etc/install
13194
 
# IRIX /sbin/install
13195
 
# AIX /bin/install
13196
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
13197
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13198
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13199
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13200
 
# ./install, which can be erroneously created by make from ./install.sh.
13201
 
echo "$as_me:13201: checking for a BSD compatible install" >&5
13202
 
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
13203
 
if test -z "$INSTALL"; then
13204
 
if test "${ac_cv_path_install+set}" = set; then
13205
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13206
 
else
13207
 
    ac_save_IFS=$IFS; IFS=$ac_path_separator
13208
 
  for ac_dir in $PATH; do
13209
 
    IFS=$ac_save_IFS
13210
 
    # Account for people who put trailing slashes in PATH elements.
13211
 
    case $ac_dir/ in
13212
 
    / | ./ | .// | /cC/* \
13213
 
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
13214
 
    | /usr/ucb/* ) ;;
13215
 
    *)
13216
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
13217
 
      # Don't use installbsd from OSF since it installs stuff as root
13218
 
      # by default.
13219
 
      for ac_prog in ginstall scoinst install; do
13220
 
        if $as_executable_p "$ac_dir/$ac_prog"; then
13221
 
          if test $ac_prog = install &&
13222
 
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
13223
 
            # AIX install.  It has an incompatible calling convention.
13224
 
            :
13225
 
          elif test $ac_prog = install &&
13226
 
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
13227
 
            # program-specific install script used by HP pwplus--don't use.
13228
 
            :
13229
 
          else
13230
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
13231
 
            break 2
13232
 
          fi
13233
 
        fi
13234
 
      done
13235
 
      ;;
13236
 
    esac
13237
 
  done
13238
 
 
13239
 
fi
13240
 
  if test "${ac_cv_path_install+set}" = set; then
13241
 
    INSTALL=$ac_cv_path_install
13242
 
  else
13243
 
    # As a last resort, use the slow shell script.  We don't cache a
13244
 
    # path for INSTALL within a source directory, because that will
13245
 
    # break other packages using the cache if that directory is
13246
 
    # removed, or if the path is relative.
13247
 
    INSTALL=$ac_install_sh
13248
 
  fi
13249
 
fi
13250
 
echo "$as_me:13250: result: $INSTALL" >&5
13251
 
echo "${ECHO_T}$INSTALL" >&6
13252
 
 
13253
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13254
 
# It thinks the first close brace ends the variable substitution.
13255
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13256
 
 
13257
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13258
 
 
13259
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13260
 
 
13261
 
echo "$as_me:13261: checking whether ${MAKE-make} sets \${MAKE}" >&5
13262
 
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
13263
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
13264
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
13265
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13266
 
else
13267
 
  cat >conftest.make <<\EOF
13268
 
all:
13269
 
        @echo 'ac_maketemp="${MAKE}"'
13270
 
EOF
13271
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13272
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
13273
 
if test -n "$ac_maketemp"; then
13274
 
  eval ac_cv_prog_make_${ac_make}_set=yes
13275
 
else
13276
 
  eval ac_cv_prog_make_${ac_make}_set=no
13277
 
fi
13278
 
rm -f conftest.make
13279
 
fi
13280
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13281
 
  echo "$as_me:13281: result: yes" >&5
13282
 
echo "${ECHO_T}yes" >&6
13283
 
  SET_MAKE=
13284
 
else
13285
 
  echo "$as_me:13285: result: no" >&5
13286
 
echo "${ECHO_T}no" >&6
13287
 
  SET_MAKE="MAKE=${MAKE-make}"
13288
 
fi
13289
 
 
13290
 
echo "$as_me:13290: checking whether ln -s works" >&5
13291
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13292
 
LN_S=$as_ln_s
13293
 
if test "$LN_S" = "ln -s"; then
13294
 
  echo "$as_me:13294: result: yes" >&5
13295
 
echo "${ECHO_T}yes" >&6
13296
 
else
13297
 
  echo "$as_me:13297: result: no, using $LN_S" >&5
13298
 
echo "${ECHO_T}no, using $LN_S" >&6
13299
 
fi
13300
 
 
13301
 
        echo "$as_me:13301: checking for strerror in -lcposix" >&5
13302
 
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
13303
 
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
13304
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13305
 
else
13306
 
  ac_check_lib_save_LIBS=$LIBS
13307
 
LIBS="-lcposix  $LIBS"
13308
 
cat >conftest.$ac_ext <<_ACEOF
13309
 
#line 13309 "configure"
13310
 
#include "confdefs.h"
13311
 
 
13312
 
/* Override any gcc2 internal prototype to avoid an error.  */
13313
 
#ifdef __cplusplus
13314
 
extern "C"
13315
 
#endif
13316
 
/* We use char because int might match the return type of a gcc2
13317
 
   builtin and then its argument prototype would still apply.  */
13318
 
char strerror ();
13319
 
int
13320
 
main ()
13321
 
{
13322
 
strerror ();
13323
 
  ;
13324
 
  return 0;
13325
 
}
13326
 
_ACEOF
13327
 
rm -f conftest.$ac_objext conftest$ac_exeext
13328
 
if { (eval echo "$as_me:13328: \"$ac_link\"") >&5
13329
 
  (eval $ac_link) 2>&5
13330
 
  ac_status=$?
13331
 
  echo "$as_me:13331: \$? = $ac_status" >&5
13332
 
  (exit $ac_status); } &&
13333
 
         { ac_try='test -s conftest$ac_exeext'
13334
 
  { (eval echo "$as_me:13334: \"$ac_try\"") >&5
13335
 
  (eval $ac_try) 2>&5
13336
 
  ac_status=$?
13337
 
  echo "$as_me:13337: \$? = $ac_status" >&5
13338
 
  (exit $ac_status); }; }; then
13339
 
  ac_cv_lib_cposix_strerror=yes
13340
 
else
13341
 
  echo "$as_me: failed program was:" >&5
13342
 
cat conftest.$ac_ext >&5
13343
 
ac_cv_lib_cposix_strerror=no
13344
 
fi
13345
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13346
 
LIBS=$ac_check_lib_save_LIBS
13347
 
fi
13348
 
echo "$as_me:13348: result: $ac_cv_lib_cposix_strerror" >&5
13349
 
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
13350
 
if test $ac_cv_lib_cposix_strerror = yes; then
13351
 
  LIBS="$LIBS -lcposix"
13352
 
fi
13353
 
 
13354
 
echo "$as_me:13354: checking for dlopen in -ldl" >&5
13355
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13356
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13357
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13358
 
else
13359
 
  ac_check_lib_save_LIBS=$LIBS
13360
 
LIBS="-ldl  $LIBS"
13361
 
cat >conftest.$ac_ext <<_ACEOF
13362
 
#line 13362 "configure"
13363
 
#include "confdefs.h"
13364
 
 
13365
 
/* Override any gcc2 internal prototype to avoid an error.  */
13366
 
#ifdef __cplusplus
13367
 
extern "C"
13368
 
#endif
13369
 
/* We use char because int might match the return type of a gcc2
13370
 
   builtin and then its argument prototype would still apply.  */
13371
 
char dlopen ();
13372
 
int
13373
 
main ()
13374
 
{
13375
 
dlopen ();
13376
 
  ;
13377
 
  return 0;
13378
 
}
13379
 
_ACEOF
13380
 
rm -f conftest.$ac_objext conftest$ac_exeext
13381
 
if { (eval echo "$as_me:13381: \"$ac_link\"") >&5
13382
 
  (eval $ac_link) 2>&5
13383
 
  ac_status=$?
13384
 
  echo "$as_me:13384: \$? = $ac_status" >&5
13385
 
  (exit $ac_status); } &&
13386
 
         { ac_try='test -s conftest$ac_exeext'
13387
 
  { (eval echo "$as_me:13387: \"$ac_try\"") >&5
13388
 
  (eval $ac_try) 2>&5
13389
 
  ac_status=$?
13390
 
  echo "$as_me:13390: \$? = $ac_status" >&5
13391
 
  (exit $ac_status); }; }; then
13392
 
  ac_cv_lib_dl_dlopen=yes
13393
 
else
13394
 
  echo "$as_me: failed program was:" >&5
13395
 
cat conftest.$ac_ext >&5
13396
 
ac_cv_lib_dl_dlopen=no
13397
 
fi
13398
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13399
 
LIBS=$ac_check_lib_save_LIBS
13400
 
fi
13401
 
echo "$as_me:13401: result: $ac_cv_lib_dl_dlopen" >&5
13402
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13403
 
if test $ac_cv_lib_dl_dlopen = yes; then
13404
 
  cat >>confdefs.h <<EOF
13405
 
#define HAVE_LIBDL 1
13406
 
EOF
13407
 
 
13408
 
  LIBS="-ldl $LIBS"
13409
 
 
13410
 
fi
13411
 
 
13412
 
echo "$as_me:13412: checking for initscr in -lcurses" >&5
13413
 
echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
13414
 
if test "${ac_cv_lib_curses_initscr+set}" = set; then
13415
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13416
 
else
13417
 
  ac_check_lib_save_LIBS=$LIBS
13418
 
LIBS="-lcurses  $LIBS"
13419
 
cat >conftest.$ac_ext <<_ACEOF
13420
 
#line 13420 "configure"
13421
 
#include "confdefs.h"
13422
 
 
13423
 
/* Override any gcc2 internal prototype to avoid an error.  */
13424
 
#ifdef __cplusplus
13425
 
extern "C"
13426
 
#endif
13427
 
/* We use char because int might match the return type of a gcc2
13428
 
   builtin and then its argument prototype would still apply.  */
13429
 
char initscr ();
13430
 
int
13431
 
main ()
13432
 
{
13433
 
initscr ();
13434
 
  ;
13435
 
  return 0;
13436
 
}
13437
 
_ACEOF
13438
 
rm -f conftest.$ac_objext conftest$ac_exeext
13439
 
if { (eval echo "$as_me:13439: \"$ac_link\"") >&5
13440
 
  (eval $ac_link) 2>&5
13441
 
  ac_status=$?
13442
 
  echo "$as_me:13442: \$? = $ac_status" >&5
13443
 
  (exit $ac_status); } &&
13444
 
         { ac_try='test -s conftest$ac_exeext'
13445
 
  { (eval echo "$as_me:13445: \"$ac_try\"") >&5
13446
 
  (eval $ac_try) 2>&5
13447
 
  ac_status=$?
13448
 
  echo "$as_me:13448: \$? = $ac_status" >&5
13449
 
  (exit $ac_status); }; }; then
13450
 
  ac_cv_lib_curses_initscr=yes
13451
 
else
13452
 
  echo "$as_me: failed program was:" >&5
13453
 
cat conftest.$ac_ext >&5
13454
 
ac_cv_lib_curses_initscr=no
13455
 
fi
13456
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13457
 
LIBS=$ac_check_lib_save_LIBS
13458
 
fi
13459
 
echo "$as_me:13459: result: $ac_cv_lib_curses_initscr" >&5
13460
 
echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
13461
 
if test $ac_cv_lib_curses_initscr = yes; then
13462
 
  cat >>confdefs.h <<EOF
13463
 
#define HAVE_LIBCURSES 1
13464
 
EOF
13465
 
 
13466
 
  LIBS="-lcurses $LIBS"
13467
 
 
13468
 
fi
13469
 
 
13470
 
echo "$as_me:13470: checking for ticable_get_version in -lticables" >&5
13471
 
echo $ECHO_N "checking for ticable_get_version in -lticables... $ECHO_C" >&6
13472
 
if test "${ac_cv_lib_ticables_ticable_get_version+set}" = set; then
13473
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13474
 
else
13475
 
  ac_check_lib_save_LIBS=$LIBS
13476
 
LIBS="-lticables  $LIBS"
13477
 
cat >conftest.$ac_ext <<_ACEOF
13478
 
#line 13478 "configure"
13479
 
#include "confdefs.h"
13480
 
 
13481
 
/* Override any gcc2 internal prototype to avoid an error.  */
13482
 
#ifdef __cplusplus
13483
 
extern "C"
13484
 
#endif
13485
 
/* We use char because int might match the return type of a gcc2
13486
 
   builtin and then its argument prototype would still apply.  */
13487
 
char ticable_get_version ();
13488
 
int
13489
 
main ()
13490
 
{
13491
 
ticable_get_version ();
13492
 
  ;
13493
 
  return 0;
13494
 
}
13495
 
_ACEOF
13496
 
rm -f conftest.$ac_objext conftest$ac_exeext
13497
 
if { (eval echo "$as_me:13497: \"$ac_link\"") >&5
13498
 
  (eval $ac_link) 2>&5
13499
 
  ac_status=$?
13500
 
  echo "$as_me:13500: \$? = $ac_status" >&5
13501
 
  (exit $ac_status); } &&
13502
 
         { ac_try='test -s conftest$ac_exeext'
13503
 
  { (eval echo "$as_me:13503: \"$ac_try\"") >&5
13504
 
  (eval $ac_try) 2>&5
13505
 
  ac_status=$?
13506
 
  echo "$as_me:13506: \$? = $ac_status" >&5
13507
 
  (exit $ac_status); }; }; then
13508
 
  ac_cv_lib_ticables_ticable_get_version=yes
13509
 
else
13510
 
  echo "$as_me: failed program was:" >&5
13511
 
cat conftest.$ac_ext >&5
13512
 
ac_cv_lib_ticables_ticable_get_version=no
13513
 
fi
13514
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13515
 
LIBS=$ac_check_lib_save_LIBS
13516
 
fi
13517
 
echo "$as_me:13517: result: $ac_cv_lib_ticables_ticable_get_version" >&5
13518
 
echo "${ECHO_T}$ac_cv_lib_ticables_ticable_get_version" >&6
13519
 
if test $ac_cv_lib_ticables_ticable_get_version = yes; then
13520
 
  cat >>confdefs.h <<EOF
13521
 
#define HAVE_LIBTICABLES 1
13522
 
EOF
13523
 
 
13524
 
  LIBS="-lticables $LIBS"
13525
 
 
13526
 
fi
13527
 
 
13528
 
echo "$as_me:13528: checking for ticalc_get_version in -lticalcs" >&5
13529
 
echo $ECHO_N "checking for ticalc_get_version in -lticalcs... $ECHO_C" >&6
13530
 
if test "${ac_cv_lib_ticalcs_ticalc_get_version+set}" = set; then
13531
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13532
 
else
13533
 
  ac_check_lib_save_LIBS=$LIBS
13534
 
LIBS="-lticalcs  $LIBS"
13535
 
cat >conftest.$ac_ext <<_ACEOF
13536
 
#line 13536 "configure"
13537
 
#include "confdefs.h"
13538
 
 
13539
 
/* Override any gcc2 internal prototype to avoid an error.  */
13540
 
#ifdef __cplusplus
13541
 
extern "C"
13542
 
#endif
13543
 
/* We use char because int might match the return type of a gcc2
13544
 
   builtin and then its argument prototype would still apply.  */
13545
 
char ticalc_get_version ();
13546
 
int
13547
 
main ()
13548
 
{
13549
 
ticalc_get_version ();
13550
 
  ;
13551
 
  return 0;
13552
 
}
13553
 
_ACEOF
13554
 
rm -f conftest.$ac_objext conftest$ac_exeext
13555
 
if { (eval echo "$as_me:13555: \"$ac_link\"") >&5
13556
 
  (eval $ac_link) 2>&5
13557
 
  ac_status=$?
13558
 
  echo "$as_me:13558: \$? = $ac_status" >&5
13559
 
  (exit $ac_status); } &&
13560
 
         { ac_try='test -s conftest$ac_exeext'
13561
 
  { (eval echo "$as_me:13561: \"$ac_try\"") >&5
13562
 
  (eval $ac_try) 2>&5
13563
 
  ac_status=$?
13564
 
  echo "$as_me:13564: \$? = $ac_status" >&5
13565
 
  (exit $ac_status); }; }; then
13566
 
  ac_cv_lib_ticalcs_ticalc_get_version=yes
13567
 
else
13568
 
  echo "$as_me: failed program was:" >&5
13569
 
cat conftest.$ac_ext >&5
13570
 
ac_cv_lib_ticalcs_ticalc_get_version=no
13571
 
fi
13572
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13573
 
LIBS=$ac_check_lib_save_LIBS
13574
 
fi
13575
 
echo "$as_me:13575: result: $ac_cv_lib_ticalcs_ticalc_get_version" >&5
13576
 
echo "${ECHO_T}$ac_cv_lib_ticalcs_ticalc_get_version" >&6
13577
 
if test $ac_cv_lib_ticalcs_ticalc_get_version = yes; then
13578
 
  cat >>confdefs.h <<EOF
13579
 
#define HAVE_LIBTICALCS 1
13580
 
EOF
13581
 
 
13582
 
  LIBS="-lticalcs $LIBS"
13583
 
 
13584
 
fi
13585
 
 
13586
 
echo "$as_me:13586: checking for tiffep_get_version in -ltiffep" >&5
13587
 
echo $ECHO_N "checking for tiffep_get_version in -ltiffep... $ECHO_C" >&6
13588
 
if test "${ac_cv_lib_tiffep_tiffep_get_version+set}" = set; then
13589
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13590
 
else
13591
 
  ac_check_lib_save_LIBS=$LIBS
13592
 
LIBS="-ltiffep  $LIBS"
13593
 
cat >conftest.$ac_ext <<_ACEOF
13594
 
#line 13594 "configure"
13595
 
#include "confdefs.h"
13596
 
 
13597
 
/* Override any gcc2 internal prototype to avoid an error.  */
13598
 
#ifdef __cplusplus
13599
 
extern "C"
13600
 
#endif
13601
 
/* We use char because int might match the return type of a gcc2
13602
 
   builtin and then its argument prototype would still apply.  */
13603
 
char tiffep_get_version ();
13604
 
int
13605
 
main ()
13606
 
{
13607
 
tiffep_get_version ();
13608
 
  ;
13609
 
  return 0;
13610
 
}
13611
 
_ACEOF
13612
 
rm -f conftest.$ac_objext conftest$ac_exeext
13613
 
if { (eval echo "$as_me:13613: \"$ac_link\"") >&5
13614
 
  (eval $ac_link) 2>&5
13615
 
  ac_status=$?
13616
 
  echo "$as_me:13616: \$? = $ac_status" >&5
13617
 
  (exit $ac_status); } &&
13618
 
         { ac_try='test -s conftest$ac_exeext'
13619
 
  { (eval echo "$as_me:13619: \"$ac_try\"") >&5
13620
 
  (eval $ac_try) 2>&5
13621
 
  ac_status=$?
13622
 
  echo "$as_me:13622: \$? = $ac_status" >&5
13623
 
  (exit $ac_status); }; }; then
13624
 
  ac_cv_lib_tiffep_tiffep_get_version=yes
13625
 
else
13626
 
  echo "$as_me: failed program was:" >&5
13627
 
cat conftest.$ac_ext >&5
13628
 
ac_cv_lib_tiffep_tiffep_get_version=no
13629
 
fi
13630
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13631
 
LIBS=$ac_check_lib_save_LIBS
13632
 
fi
13633
 
echo "$as_me:13633: result: $ac_cv_lib_tiffep_tiffep_get_version" >&5
13634
 
echo "${ECHO_T}$ac_cv_lib_tiffep_tiffep_get_version" >&6
13635
 
if test $ac_cv_lib_tiffep_tiffep_get_version = yes; then
13636
 
  cat >>confdefs.h <<EOF
13637
 
#define HAVE_LIBTIFFEP 1
13638
 
EOF
13639
 
 
13640
 
  LIBS="-ltiffep $LIBS"
13641
 
 
13642
 
fi
13643
 
 
13644
 
echo "$as_me:13644: checking for jpeg_std_error in -ljpeg" >&5
13645
 
echo $ECHO_N "checking for jpeg_std_error in -ljpeg... $ECHO_C" >&6
13646
 
if test "${ac_cv_lib_jpeg_jpeg_std_error+set}" = set; then
13647
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13648
 
else
13649
 
  ac_check_lib_save_LIBS=$LIBS
13650
 
LIBS="-ljpeg  $LIBS"
13651
 
cat >conftest.$ac_ext <<_ACEOF
13652
 
#line 13652 "configure"
13653
 
#include "confdefs.h"
13654
 
 
13655
 
/* Override any gcc2 internal prototype to avoid an error.  */
13656
 
#ifdef __cplusplus
13657
 
extern "C"
13658
 
#endif
13659
 
/* We use char because int might match the return type of a gcc2
13660
 
   builtin and then its argument prototype would still apply.  */
13661
 
char jpeg_std_error ();
13662
 
int
13663
 
main ()
13664
 
{
13665
 
jpeg_std_error ();
13666
 
  ;
13667
 
  return 0;
13668
 
}
13669
 
_ACEOF
13670
 
rm -f conftest.$ac_objext conftest$ac_exeext
13671
 
if { (eval echo "$as_me:13671: \"$ac_link\"") >&5
13672
 
  (eval $ac_link) 2>&5
13673
 
  ac_status=$?
13674
 
  echo "$as_me:13674: \$? = $ac_status" >&5
13675
 
  (exit $ac_status); } &&
13676
 
         { ac_try='test -s conftest$ac_exeext'
13677
 
  { (eval echo "$as_me:13677: \"$ac_try\"") >&5
13678
 
  (eval $ac_try) 2>&5
13679
 
  ac_status=$?
13680
 
  echo "$as_me:13680: \$? = $ac_status" >&5
13681
 
  (exit $ac_status); }; }; then
13682
 
  ac_cv_lib_jpeg_jpeg_std_error=yes
13683
 
else
13684
 
  echo "$as_me: failed program was:" >&5
13685
 
cat conftest.$ac_ext >&5
13686
 
ac_cv_lib_jpeg_jpeg_std_error=no
13687
 
fi
13688
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13689
 
LIBS=$ac_check_lib_save_LIBS
13690
 
fi
13691
 
echo "$as_me:13691: result: $ac_cv_lib_jpeg_jpeg_std_error" >&5
13692
 
echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_std_error" >&6
13693
 
if test $ac_cv_lib_jpeg_jpeg_std_error = yes; then
13694
 
  cat >>confdefs.h <<EOF
13695
 
#define HAVE_LIBJPEG 1
13696
 
EOF
13697
 
 
13698
 
  LIBS="-ljpeg $LIBS"
13699
 
 
13700
 
fi
13701
 
 
13702
 
echo "$as_me:13702: checking for ICreateImage in -lIlib" >&5
13703
 
echo $ECHO_N "checking for ICreateImage in -lIlib... $ECHO_C" >&6
13704
 
if test "${ac_cv_lib_Ilib_ICreateImage+set}" = set; then
13705
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13706
 
else
13707
 
  ac_check_lib_save_LIBS=$LIBS
13708
 
LIBS="-lIlib  $LIBS"
13709
 
cat >conftest.$ac_ext <<_ACEOF
13710
 
#line 13710 "configure"
13711
 
#include "confdefs.h"
13712
 
 
13713
 
/* Override any gcc2 internal prototype to avoid an error.  */
13714
 
#ifdef __cplusplus
13715
 
extern "C"
13716
 
#endif
13717
 
/* We use char because int might match the return type of a gcc2
13718
 
   builtin and then its argument prototype would still apply.  */
13719
 
char ICreateImage ();
13720
 
int
13721
 
main ()
13722
 
{
13723
 
ICreateImage ();
13724
 
  ;
13725
 
  return 0;
13726
 
}
13727
 
_ACEOF
13728
 
rm -f conftest.$ac_objext conftest$ac_exeext
13729
 
if { (eval echo "$as_me:13729: \"$ac_link\"") >&5
13730
 
  (eval $ac_link) 2>&5
13731
 
  ac_status=$?
13732
 
  echo "$as_me:13732: \$? = $ac_status" >&5
13733
 
  (exit $ac_status); } &&
13734
 
         { ac_try='test -s conftest$ac_exeext'
13735
 
  { (eval echo "$as_me:13735: \"$ac_try\"") >&5
13736
 
  (eval $ac_try) 2>&5
13737
 
  ac_status=$?
13738
 
  echo "$as_me:13738: \$? = $ac_status" >&5
13739
 
  (exit $ac_status); }; }; then
13740
 
  ac_cv_lib_Ilib_ICreateImage=yes
13741
 
else
13742
 
  echo "$as_me: failed program was:" >&5
13743
 
cat conftest.$ac_ext >&5
13744
 
ac_cv_lib_Ilib_ICreateImage=no
13745
 
fi
13746
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13747
 
LIBS=$ac_check_lib_save_LIBS
13748
 
fi
13749
 
echo "$as_me:13749: result: $ac_cv_lib_Ilib_ICreateImage" >&5
13750
 
echo "${ECHO_T}$ac_cv_lib_Ilib_ICreateImage" >&6
13751
 
if test $ac_cv_lib_Ilib_ICreateImage = yes; then
13752
 
  cat >>confdefs.h <<EOF
13753
 
#define HAVE_LIBILIB 1
13754
 
EOF
13755
 
 
13756
 
  LIBS="-lIlib $LIBS"
13757
 
 
13758
 
fi
13759
 
 
13760
 
echo "$as_me:13760: checking for pow in -lm" >&5
13761
 
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
13762
 
if test "${ac_cv_lib_m_pow+set}" = set; then
13763
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13764
 
else
13765
 
  ac_check_lib_save_LIBS=$LIBS
13766
 
LIBS="-lm  $LIBS"
13767
 
cat >conftest.$ac_ext <<_ACEOF
13768
 
#line 13768 "configure"
13769
 
#include "confdefs.h"
13770
 
 
13771
 
/* Override any gcc2 internal prototype to avoid an error.  */
13772
 
#ifdef __cplusplus
13773
 
extern "C"
13774
 
#endif
13775
 
/* We use char because int might match the return type of a gcc2
13776
 
   builtin and then its argument prototype would still apply.  */
13777
 
char pow ();
13778
 
int
13779
 
main ()
13780
 
{
13781
 
pow ();
13782
 
  ;
13783
 
  return 0;
13784
 
}
13785
 
_ACEOF
13786
 
rm -f conftest.$ac_objext conftest$ac_exeext
13787
 
if { (eval echo "$as_me:13787: \"$ac_link\"") >&5
13788
 
  (eval $ac_link) 2>&5
13789
 
  ac_status=$?
13790
 
  echo "$as_me:13790: \$? = $ac_status" >&5
13791
 
  (exit $ac_status); } &&
13792
 
         { ac_try='test -s conftest$ac_exeext'
13793
 
  { (eval echo "$as_me:13793: \"$ac_try\"") >&5
13794
 
  (eval $ac_try) 2>&5
13795
 
  ac_status=$?
13796
 
  echo "$as_me:13796: \$? = $ac_status" >&5
13797
 
  (exit $ac_status); }; }; then
13798
 
  ac_cv_lib_m_pow=yes
13799
 
else
13800
 
  echo "$as_me: failed program was:" >&5
13801
 
cat conftest.$ac_ext >&5
13802
 
ac_cv_lib_m_pow=no
13803
 
fi
13804
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13805
 
LIBS=$ac_check_lib_save_LIBS
13806
 
fi
13807
 
echo "$as_me:13807: result: $ac_cv_lib_m_pow" >&5
13808
 
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
13809
 
if test $ac_cv_lib_m_pow = yes; then
13810
 
  cat >>confdefs.h <<EOF
13811
 
#define HAVE_LIBM 1
13812
 
EOF
13813
 
 
13814
 
  LIBS="-lm $LIBS"
13815
 
 
13816
 
fi
13817
 
 
13818
 
# Extract the first word of "ticables-config", so it can be a program name with args.
13819
 
set dummy ticables-config; ac_word=$2
13820
 
echo "$as_me:13820: checking for $ac_word" >&5
13821
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13822
 
if test "${ac_cv_prog_TICABLES_CONFIG+set}" = set; then
13823
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13824
 
else
13825
 
  if test -n "$TICABLES_CONFIG"; then
13826
 
  ac_cv_prog_TICABLES_CONFIG="$TICABLES_CONFIG" # Let the user override the test.
13827
 
else
13828
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
13829
 
ac_dummy="$PATH"
13830
 
for ac_dir in $ac_dummy; do
13831
 
  IFS=$ac_save_IFS
13832
 
  test -z "$ac_dir" && ac_dir=.
13833
 
  $as_executable_p "$ac_dir/$ac_word" || continue
13834
 
ac_cv_prog_TICABLES_CONFIG="yes"
13835
 
echo "$as_me:13835: found $ac_dir/$ac_word" >&5
13836
 
break
13837
 
done
13838
 
 
13839
 
  test -z "$ac_cv_prog_TICABLES_CONFIG" && ac_cv_prog_TICABLES_CONFIG="no"
13840
 
fi
13841
 
fi
13842
 
TICABLES_CONFIG=$ac_cv_prog_TICABLES_CONFIG
13843
 
if test -n "$TICABLES_CONFIG"; then
13844
 
  echo "$as_me:13844: result: $TICABLES_CONFIG" >&5
13845
 
echo "${ECHO_T}$TICABLES_CONFIG" >&6
13846
 
else
13847
 
  echo "$as_me:13847: result: no" >&5
13848
 
echo "${ECHO_T}no" >&6
13849
 
fi
13850
 
 
13851
 
if test "$TICABLES_CONFIG" = "no"; then
13852
 
        echo ;
13853
 
        echo "Error: cannot find ticables-config. Do you have libticables installed ?" ;
13854
 
        echo "You can download it from" ;
13855
 
        echo "<http://lpg.ticalc.org/prj_tilp/download-en.html> ..." ;
13856
 
        echo ;
13857
 
        exit
13858
 
else
13859
 
        TICABLES_LIBS=`ticables-config --libs`
13860
 
        TICABLES_CFLAGS=`ticables-config --cflags`
13861
 
        TICABLES_VERSION=`ticables-config --version`
13862
 
 
13863
 
        LIBS="$LIBS $TICABLES_LIBS"
13864
 
        CFLAGS="$CFLAGS $TICABLES_CFLAGS"
13865
 
fi
13866
 
 
13867
 
CFLAGS="$CFLAGS"
13868
 
 
13869
 
# Extract the first word of "ticalcs-config", so it can be a program name with args.
13870
 
set dummy ticalcs-config; ac_word=$2
13871
 
echo "$as_me:13871: checking for $ac_word" >&5
13872
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13873
 
if test "${ac_cv_prog_TICALCS_CONFIG+set}" = set; then
13874
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13875
 
else
13876
 
  if test -n "$TICALCS_CONFIG"; then
13877
 
  ac_cv_prog_TICALCS_CONFIG="$TICALCS_CONFIG" # Let the user override the test.
13878
 
else
13879
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
13880
 
ac_dummy="$PATH"
13881
 
for ac_dir in $ac_dummy; do
13882
 
  IFS=$ac_save_IFS
13883
 
  test -z "$ac_dir" && ac_dir=.
13884
 
  $as_executable_p "$ac_dir/$ac_word" || continue
13885
 
ac_cv_prog_TICALCS_CONFIG="yes"
13886
 
echo "$as_me:13886: found $ac_dir/$ac_word" >&5
13887
 
break
13888
 
done
13889
 
 
13890
 
  test -z "$ac_cv_prog_TICALCS_CONFIG" && ac_cv_prog_TICALCS_CONFIG="no"
13891
 
fi
13892
 
fi
13893
 
TICALCS_CONFIG=$ac_cv_prog_TICALCS_CONFIG
13894
 
if test -n "$TICALCS_CONFIG"; then
13895
 
  echo "$as_me:13895: result: $TICALCS_CONFIG" >&5
13896
 
echo "${ECHO_T}$TICALCS_CONFIG" >&6
13897
 
else
13898
 
  echo "$as_me:13898: result: no" >&5
13899
 
echo "${ECHO_T}no" >&6
13900
 
fi
13901
 
 
13902
 
if test "$TICALCS_CONFIG" = "no"; then
13903
 
        echo ;
13904
 
        echo "Error: cannot find ticables-config. Do you have libticables installed ?" ;
13905
 
        echo "You can download it from" ;
13906
 
        echo "<http://lpg.ticalc.org/prj_tilp/download-en.html> ..." ;
13907
 
        echo ;
13908
 
        exit
13909
 
else
13910
 
        TICALCS_LIBS=`ticalcs-config --libs`
13911
 
        TICALCS_CFLAGS=`ticalcs-config --cflags`
13912
 
        TICALCS_VERSION=`ticalcs-config --version`
13913
 
 
13914
 
        LIBS="$LIBS $TICALCS_LIBS"
13915
 
        CFLAGS="$CFLAGS $TICALCS_CFLAGS"
13916
 
fi
13917
 
 
13918
 
CFLAGS="$CFLAGS"
13919
 
 
13920
 
# Extract the first word of "tiffep-config", so it can be a program name with args.
13921
 
set dummy tiffep-config; ac_word=$2
13922
 
echo "$as_me:13922: checking for $ac_word" >&5
13923
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13924
 
if test "${ac_cv_prog_TIFFEP_CONFIG+set}" = set; then
13925
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13926
 
else
13927
 
  if test -n "$TIFFEP_CONFIG"; then
13928
 
  ac_cv_prog_TIFFEP_CONFIG="$TIFFEP_CONFIG" # Let the user override the test.
13929
 
else
13930
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
13931
 
ac_dummy="$PATH"
13932
 
for ac_dir in $ac_dummy; do
13933
 
  IFS=$ac_save_IFS
13934
 
  test -z "$ac_dir" && ac_dir=.
13935
 
  $as_executable_p "$ac_dir/$ac_word" || continue
13936
 
ac_cv_prog_TIFFEP_CONFIG="yes"
13937
 
echo "$as_me:13937: found $ac_dir/$ac_word" >&5
13938
 
break
13939
 
done
13940
 
 
13941
 
  test -z "$ac_cv_prog_TIFFEP_CONFIG" && ac_cv_prog_TIFFEP_CONFIG="no"
13942
 
fi
13943
 
fi
13944
 
TIFFEP_CONFIG=$ac_cv_prog_TIFFEP_CONFIG
13945
 
if test -n "$TIFFEP_CONFIG"; then
13946
 
  echo "$as_me:13946: result: $TIFFEP_CONFIG" >&5
13947
 
echo "${ECHO_T}$TIFFEP_CONFIG" >&6
13948
 
else
13949
 
  echo "$as_me:13949: result: no" >&5
13950
 
echo "${ECHO_T}no" >&6
13951
 
fi
13952
 
 
13953
 
if test "$TIFFEP_CONFIG" = "no"; then
13954
 
        echo ;
13955
 
        echo "Warning: cannot find tiffep-config. Do you have libtiffep installed ?" ;
13956
 
        echo "Some new functionnalities of TiLP (such as GFM) will not be available." ;
13957
 
        echo "You can download it from" ;
13958
 
        echo "<http://lpg.ticalc.org/prj_tiffep/index.html> ..." ;
13959
 
        echo ;
13960
 
else
13961
 
        TIFFEP_LIBS=`tiffep-config --libs`
13962
 
        TIFFEP_CFLAGS=`tiffep-config --cflags`
13963
 
        TIFFEP_VERSION=`tiffep-config --version`
13964
 
 
13965
 
        LIBS="$LIBS $TIFFEP_LIBS"
13966
 
        CFLAGS="$CFLAGS $TIFFEP_CFLAGS"
13967
 
fi
13968
 
 
13969
 
CFLAGS="$CFLAGS"
13970
 
 
13971
 
# Extract the first word of "gtk-config", so it can be a program name with args.
13972
 
set dummy gtk-config; ac_word=$2
13973
 
echo "$as_me:13973: checking for $ac_word" >&5
13974
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13975
 
if test "${ac_cv_prog_GTK_CONFIG+set}" = set; then
13976
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13977
 
else
13978
 
  if test -n "$GTK_CONFIG"; then
13979
 
  ac_cv_prog_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test.
13980
 
else
13981
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
13982
 
ac_dummy="$PATH"
13983
 
for ac_dir in $ac_dummy; do
13984
 
  IFS=$ac_save_IFS
13985
 
  test -z "$ac_dir" && ac_dir=.
13986
 
  $as_executable_p "$ac_dir/$ac_word" || continue
13987
 
ac_cv_prog_GTK_CONFIG="yes"
13988
 
echo "$as_me:13988: found $ac_dir/$ac_word" >&5
13989
 
break
13990
 
done
13991
 
 
13992
 
  test -z "$ac_cv_prog_GTK_CONFIG" && ac_cv_prog_GTK_CONFIG="no"
13993
 
fi
13994
 
fi
13995
 
GTK_CONFIG=$ac_cv_prog_GTK_CONFIG
13996
 
if test -n "$GTK_CONFIG"; then
13997
 
  echo "$as_me:13997: result: $GTK_CONFIG" >&5
13998
 
echo "${ECHO_T}$GTK_CONFIG" >&6
13999
 
else
14000
 
  echo "$as_me:14000: result: no" >&5
14001
 
echo "${ECHO_T}no" >&6
14002
 
fi
14003
 
 
14004
 
if test "$GTK_CONFIG" = "no"; then
14005
 
        echo ;
14006
 
        echo "Error: cannot find gtk-config. Do you have gtk installed ?";
14007
 
        echo "You can download it from ftp://ftp.gtk.org/pub/gtk/v1.2";
14008
 
        echo "Make sure to also download the same version" ;
14009
 
        echo "of glib too from that same directory" ;
14010
 
        echo ;
14011
 
        exit
14012
 
else
14013
 
        GTK_LIBS=`gtk-config --libs`
14014
 
        GTK_CFLAGS=`gtk-config --cflags`
14015
 
        GTK_VERSION=`gtk-config --version`
14016
 
 
14017
 
        LIBS="$LIBS $GTK_LIBS"
14018
 
        CFLAGS="$CFLAGS $GTK_CFLAGS"
14019
 
fi
14020
 
 
14021
 
CFLAGS="$CFLAGS"
14022
 
 
14023
 
echo "$as_me:14023: checking version of gtk+..." >&5
14024
 
echo $ECHO_N "checking version of gtk+...... $ECHO_C" >&6
14025
 
gtk_maj_rev=`echo $GTK_VERSION | cut -f1-2 -d.`
14026
 
if test "$gtk_maj_rev" = "1.2" ; then
14027
 
   echo "$as_me:14027: result: ($GTK_VERSION)" >&5
14028
 
echo "${ECHO_T}($GTK_VERSION)" >&6
14029
 
else
14030
 
   echo "$as_me:14030: result: ($GTK_VERSION)" >&5
14031
 
echo "${ECHO_T}($GTK_VERSION)" >&6
14032
 
   if test "$gtk_maj_rev" = "1.1" ; then
14033
 
        { echo "$as_me:14033: WARNING: You have gtk+ 1.1 installed on your machine. I would" >&5
14034
 
echo "$as_me: WARNING: You have gtk+ 1.1 installed on your machine. I would" >&2;}
14035
 
        { echo "$as_me:14035: WARNING: recommend upgrading to the stable 1.2 series" >&5
14036
 
echo "$as_me: WARNING: recommend upgrading to the stable 1.2 series" >&2;}
14037
 
        { echo "$as_me:14037: WARNING: You can download it from ftp://ftp.gtk.org/pub/gtk/v1.2" >&5
14038
 
echo "$as_me: WARNING: You can download it from ftp://ftp.gtk.org/pub/gtk/v1.2" >&2;}
14039
 
        { echo "$as_me:14039: WARNING: Make sure to also download the same version of glib too" >&5
14040
 
echo "$as_me: WARNING: Make sure to also download the same version of glib too" >&2;}
14041
 
   else
14042
 
        echo ;
14043
 
        echo "Error: You need gtk+ 1.1.x or higher to install tilp. You can dow\nload it from" ;
14044
 
        echo "ftp://ftp.gtk.org/pub/gtk/v1.2 I would recommend downloading the \stable 1.2" ;
14045
 
        echo "series. Make sure to also download the same version of glib too f\rom that same" ;
14046
 
        echo "directory" ;
14047
 
        echo ;
14048
 
        exit
14049
 
   fi
14050
 
fi
14051
 
 
14052
 
CFLAGS="$CFLAGS -Wall"
14053
 
 
14054
 
echo "$as_me:14054: checking for X" >&5
14055
 
echo $ECHO_N "checking for X... $ECHO_C" >&6
14056
 
 
14057
 
# Check whether --with-x or --without-x was given.
14058
 
if test "${with_x+set}" = set; then
14059
 
  withval="$with_x"
14060
 
 
14061
 
fi;
14062
 
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
14063
 
if test "x$with_x" = xno; then
14064
 
  # The user explicitly disabled X.
14065
 
  have_x=disabled
14066
 
else
14067
 
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
14068
 
    # Both variables are already set.
14069
 
    have_x=yes
14070
 
  else
14071
 
    if test "${ac_cv_have_x+set}" = set; then
14072
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14073
 
else
14074
 
  # One or both of the vars are not set, and there is no cached value.
14075
 
ac_x_includes=no ac_x_libraries=no
14076
 
rm -fr conftest.dir
14077
 
if mkdir conftest.dir; then
14078
 
  cd conftest.dir
14079
 
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
14080
 
  cat >Imakefile <<'EOF'
14081
 
acfindx:
14082
 
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
14083
 
EOF
14084
 
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
14085
 
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
14086
 
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
14087
 
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
14088
 
    for ac_extension in a so sl; do
14089
 
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
14090
 
         test -f $ac_im_libdir/libX11.$ac_extension; then
14091
 
        ac_im_usrlibdir=$ac_im_libdir; break
14092
 
      fi
14093
 
    done
14094
 
    # Screen out bogus values from the imake configuration.  They are
14095
 
    # bogus both because they are the default anyway, and because
14096
 
    # using them would break gcc on systems where it needs fixed includes.
14097
 
    case $ac_im_incroot in
14098
 
        /usr/include) ;;
14099
 
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
14100
 
    esac
14101
 
    case $ac_im_usrlibdir in
14102
 
        /usr/lib | /lib) ;;
14103
 
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
14104
 
    esac
14105
 
  fi
14106
 
  cd ..
14107
 
  rm -fr conftest.dir
14108
 
fi
14109
 
 
14110
 
# Standard set of common directories for X headers.
14111
 
# Check X11 before X11Rn because it is often a symlink to the current release.
14112
 
ac_x_header_dirs='
14113
 
/usr/X11/include
14114
 
/usr/X11R6/include
14115
 
/usr/X11R5/include
14116
 
/usr/X11R4/include
14117
 
 
14118
 
/usr/include/X11
14119
 
/usr/include/X11R6
14120
 
/usr/include/X11R5
14121
 
/usr/include/X11R4
14122
 
 
14123
 
/usr/local/X11/include
14124
 
/usr/local/X11R6/include
14125
 
/usr/local/X11R5/include
14126
 
/usr/local/X11R4/include
14127
 
 
14128
 
/usr/local/include/X11
14129
 
/usr/local/include/X11R6
14130
 
/usr/local/include/X11R5
14131
 
/usr/local/include/X11R4
14132
 
 
14133
 
/usr/X386/include
14134
 
/usr/x386/include
14135
 
/usr/XFree86/include/X11
14136
 
 
14137
 
/usr/include
14138
 
/usr/local/include
14139
 
/usr/unsupported/include
14140
 
/usr/athena/include
14141
 
/usr/local/x11r5/include
14142
 
/usr/lpp/Xamples/include
14143
 
 
14144
 
/usr/openwin/include
14145
 
/usr/openwin/share/include'
14146
 
 
14147
 
if test "$ac_x_includes" = no; then
14148
 
  # Guess where to find include files, by looking for Intrinsic.h.
14149
 
  # First, try using that file with no special directory specified.
14150
 
  cat >conftest.$ac_ext <<_ACEOF
14151
 
#line 14151 "configure"
14152
 
#include "confdefs.h"
14153
 
#include <X11/Intrinsic.h>
14154
 
_ACEOF
14155
 
if { (eval echo "$as_me:14155: \"$ac_cpp conftest.$ac_ext\"") >&5
14156
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14157
 
  ac_status=$?
14158
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
14159
 
  rm -f conftest.er1
14160
 
  cat conftest.err >&5
14161
 
  echo "$as_me:14161: \$? = $ac_status" >&5
14162
 
  (exit $ac_status); } >/dev/null; then
14163
 
  if test -s conftest.err; then
14164
 
    ac_cpp_err=$ac_c_preproc_warn_flag
14165
 
  else
14166
 
    ac_cpp_err=
14167
 
  fi
14168
 
else
14169
 
  ac_cpp_err=yes
14170
 
fi
14171
 
if test -z "$ac_cpp_err"; then
14172
 
  # We can compile using X headers with no special include directory.
14173
 
ac_x_includes=
14174
 
else
14175
 
  echo "$as_me: failed program was:" >&5
14176
 
  cat conftest.$ac_ext >&5
14177
 
  for ac_dir in $ac_x_header_dirs; do
14178
 
  if test -r "$ac_dir/X11/Intrinsic.h"; then
14179
 
    ac_x_includes=$ac_dir
14180
 
    break
14181
 
  fi
14182
 
done
14183
 
fi
14184
 
rm -f conftest.err conftest.$ac_ext
14185
 
fi # $ac_x_includes = no
14186
 
 
14187
 
if test "$ac_x_libraries" = no; then
14188
 
  # Check for the libraries.
14189
 
  # See if we find them without any special options.
14190
 
  # Don't add to $LIBS permanently.
14191
 
  ac_save_LIBS=$LIBS
14192
 
  LIBS="-lXt $LIBS"
14193
 
  cat >conftest.$ac_ext <<_ACEOF
14194
 
#line 14194 "configure"
14195
 
#include "confdefs.h"
14196
 
#include <X11/Intrinsic.h>
14197
 
int
14198
 
main ()
14199
 
{
14200
 
XtMalloc (0)
14201
 
  ;
14202
 
  return 0;
14203
 
}
14204
 
_ACEOF
14205
 
rm -f conftest.$ac_objext conftest$ac_exeext
14206
 
if { (eval echo "$as_me:14206: \"$ac_link\"") >&5
14207
 
  (eval $ac_link) 2>&5
14208
 
  ac_status=$?
14209
 
  echo "$as_me:14209: \$? = $ac_status" >&5
14210
 
  (exit $ac_status); } &&
14211
 
         { ac_try='test -s conftest$ac_exeext'
14212
 
  { (eval echo "$as_me:14212: \"$ac_try\"") >&5
14213
 
  (eval $ac_try) 2>&5
14214
 
  ac_status=$?
14215
 
  echo "$as_me:14215: \$? = $ac_status" >&5
14216
 
  (exit $ac_status); }; }; then
14217
 
  LIBS=$ac_save_LIBS
14218
 
# We can link X programs with no special library path.
14219
 
ac_x_libraries=
14220
 
else
14221
 
  echo "$as_me: failed program was:" >&5
14222
 
cat conftest.$ac_ext >&5
14223
 
LIBS=$ac_save_LIBS
14224
 
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
14225
 
do
14226
 
  # Don't even attempt the hair of trying to link an X program!
14227
 
  for ac_extension in a so sl; do
14228
 
    if test -r $ac_dir/libXt.$ac_extension; then
14229
 
      ac_x_libraries=$ac_dir
14230
 
      break 2
14231
 
    fi
14232
 
  done
14233
 
done
14234
 
fi
14235
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14236
 
fi # $ac_x_libraries = no
14237
 
 
14238
 
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
14239
 
  # Didn't find X anywhere.  Cache the known absence of X.
14240
 
  ac_cv_have_x="have_x=no"
14241
 
else
14242
 
  # Record where we found X for the cache.
14243
 
  ac_cv_have_x="have_x=yes \
14244
 
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
14245
 
fi
14246
 
fi
14247
 
 
14248
 
  fi
14249
 
  eval "$ac_cv_have_x"
14250
 
fi # $with_x != no
14251
 
 
14252
 
if test "$have_x" != yes; then
14253
 
  echo "$as_me:14253: result: $have_x" >&5
14254
 
echo "${ECHO_T}$have_x" >&6
14255
 
  no_x=yes
14256
 
else
14257
 
  # If each of the values was on the command line, it overrides each guess.
14258
 
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
14259
 
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
14260
 
  # Update the cache value to reflect the command line values.
14261
 
  ac_cv_have_x="have_x=yes \
14262
 
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
14263
 
  echo "$as_me:14263: result: libraries $x_libraries, headers $x_includes" >&5
14264
 
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
14265
 
fi
14266
 
 
14267
 
ac_header_dirent=no
14268
 
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14269
 
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14270
 
echo "$as_me:14270: checking for $ac_hdr that defines DIR" >&5
14271
 
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14272
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14273
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14274
 
else
14275
 
  cat >conftest.$ac_ext <<_ACEOF
14276
 
#line 14276 "configure"
14277
 
#include "confdefs.h"
14278
 
#include <sys/types.h>
14279
 
#include <$ac_hdr>
14280
 
 
14281
 
int
14282
 
main ()
14283
 
{
14284
 
if ((DIR *) 0)
14285
 
return 0;
14286
 
  ;
14287
 
  return 0;
14288
 
}
14289
 
_ACEOF
14290
 
rm -f conftest.$ac_objext
14291
 
if { (eval echo "$as_me:14291: \"$ac_compile\"") >&5
14292
 
  (eval $ac_compile) 2>&5
14293
 
  ac_status=$?
14294
 
  echo "$as_me:14294: \$? = $ac_status" >&5
14295
 
  (exit $ac_status); } &&
14296
 
         { ac_try='test -s conftest.$ac_objext'
14297
 
  { (eval echo "$as_me:14297: \"$ac_try\"") >&5
14298
 
  (eval $ac_try) 2>&5
14299
 
  ac_status=$?
14300
 
  echo "$as_me:14300: \$? = $ac_status" >&5
14301
 
  (exit $ac_status); }; }; then
14302
 
  eval "$as_ac_Header=yes"
14303
 
else
14304
 
  echo "$as_me: failed program was:" >&5
14305
 
cat conftest.$ac_ext >&5
14306
 
eval "$as_ac_Header=no"
14307
 
fi
14308
 
rm -f conftest.$ac_objext conftest.$ac_ext
14309
 
fi
14310
 
echo "$as_me:14310: result: `eval echo '${'$as_ac_Header'}'`" >&5
14311
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14312
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14313
 
  cat >>confdefs.h <<EOF
14314
 
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14315
 
EOF
14316
 
 
14317
 
ac_header_dirent=$ac_hdr; break
14318
 
fi
14319
 
 
14320
 
done
14321
 
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14322
 
if test $ac_header_dirent = dirent.h; then
14323
 
  echo "$as_me:14323: checking for opendir in -ldir" >&5
14324
 
echo $ECHO_N "checking for opendir in -ldir... $ECHO_C" >&6
14325
 
if test "${ac_cv_lib_dir_opendir+set}" = set; then
14326
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14327
 
else
14328
 
  ac_check_lib_save_LIBS=$LIBS
14329
 
LIBS="-ldir  $LIBS"
14330
 
cat >conftest.$ac_ext <<_ACEOF
14331
 
#line 14331 "configure"
14332
 
#include "confdefs.h"
14333
 
 
14334
 
/* Override any gcc2 internal prototype to avoid an error.  */
14335
 
#ifdef __cplusplus
14336
 
extern "C"
14337
 
#endif
14338
 
/* We use char because int might match the return type of a gcc2
14339
 
   builtin and then its argument prototype would still apply.  */
14340
 
char opendir ();
14341
 
int
14342
 
main ()
14343
 
{
14344
 
opendir ();
14345
 
  ;
14346
 
  return 0;
14347
 
}
14348
 
_ACEOF
14349
 
rm -f conftest.$ac_objext conftest$ac_exeext
14350
 
if { (eval echo "$as_me:14350: \"$ac_link\"") >&5
14351
 
  (eval $ac_link) 2>&5
14352
 
  ac_status=$?
14353
 
  echo "$as_me:14353: \$? = $ac_status" >&5
14354
 
  (exit $ac_status); } &&
14355
 
         { ac_try='test -s conftest$ac_exeext'
14356
 
  { (eval echo "$as_me:14356: \"$ac_try\"") >&5
14357
 
  (eval $ac_try) 2>&5
14358
 
  ac_status=$?
14359
 
  echo "$as_me:14359: \$? = $ac_status" >&5
14360
 
  (exit $ac_status); }; }; then
14361
 
  ac_cv_lib_dir_opendir=yes
14362
 
else
14363
 
  echo "$as_me: failed program was:" >&5
14364
 
cat conftest.$ac_ext >&5
14365
 
ac_cv_lib_dir_opendir=no
14366
 
fi
14367
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14368
 
LIBS=$ac_check_lib_save_LIBS
14369
 
fi
14370
 
echo "$as_me:14370: result: $ac_cv_lib_dir_opendir" >&5
14371
 
echo "${ECHO_T}$ac_cv_lib_dir_opendir" >&6
14372
 
if test $ac_cv_lib_dir_opendir = yes; then
14373
 
  LIBS="$LIBS -ldir"
14374
 
fi
14375
 
 
14376
 
else
14377
 
  echo "$as_me:14377: checking for opendir in -lx" >&5
14378
 
echo $ECHO_N "checking for opendir in -lx... $ECHO_C" >&6
14379
 
if test "${ac_cv_lib_x_opendir+set}" = set; then
14380
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14381
 
else
14382
 
  ac_check_lib_save_LIBS=$LIBS
14383
 
LIBS="-lx  $LIBS"
14384
 
cat >conftest.$ac_ext <<_ACEOF
14385
 
#line 14385 "configure"
14386
 
#include "confdefs.h"
14387
 
 
14388
 
/* Override any gcc2 internal prototype to avoid an error.  */
14389
 
#ifdef __cplusplus
14390
 
extern "C"
14391
 
#endif
14392
 
/* We use char because int might match the return type of a gcc2
14393
 
   builtin and then its argument prototype would still apply.  */
14394
 
char opendir ();
14395
 
int
14396
 
main ()
14397
 
{
14398
 
opendir ();
14399
 
  ;
14400
 
  return 0;
14401
 
}
14402
 
_ACEOF
14403
 
rm -f conftest.$ac_objext conftest$ac_exeext
14404
 
if { (eval echo "$as_me:14404: \"$ac_link\"") >&5
14405
 
  (eval $ac_link) 2>&5
14406
 
  ac_status=$?
14407
 
  echo "$as_me:14407: \$? = $ac_status" >&5
14408
 
  (exit $ac_status); } &&
14409
 
         { ac_try='test -s conftest$ac_exeext'
14410
 
  { (eval echo "$as_me:14410: \"$ac_try\"") >&5
14411
 
  (eval $ac_try) 2>&5
14412
 
  ac_status=$?
14413
 
  echo "$as_me:14413: \$? = $ac_status" >&5
14414
 
  (exit $ac_status); }; }; then
14415
 
  ac_cv_lib_x_opendir=yes
14416
 
else
14417
 
  echo "$as_me: failed program was:" >&5
14418
 
cat conftest.$ac_ext >&5
14419
 
ac_cv_lib_x_opendir=no
14420
 
fi
14421
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14422
 
LIBS=$ac_check_lib_save_LIBS
14423
 
fi
14424
 
echo "$as_me:14424: result: $ac_cv_lib_x_opendir" >&5
14425
 
echo "${ECHO_T}$ac_cv_lib_x_opendir" >&6
14426
 
if test $ac_cv_lib_x_opendir = yes; then
14427
 
  LIBS="$LIBS -lx"
14428
 
fi
14429
 
 
14430
 
fi
14431
 
 
14432
 
echo "$as_me:14432: checking for ANSI C header files" >&5
14433
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
14434
 
if test "${ac_cv_header_stdc+set}" = set; then
14435
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14436
 
else
14437
 
  cat >conftest.$ac_ext <<_ACEOF
14438
 
#line 14438 "configure"
14439
 
#include "confdefs.h"
14440
 
#include <stdlib.h>
14441
 
#include <stdarg.h>
14442
 
#include <string.h>
14443
 
#include <float.h>
14444
 
 
14445
 
_ACEOF
14446
 
if { (eval echo "$as_me:14446: \"$ac_cpp conftest.$ac_ext\"") >&5
14447
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14448
 
  ac_status=$?
14449
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
14450
 
  rm -f conftest.er1
14451
 
  cat conftest.err >&5
14452
 
  echo "$as_me:14452: \$? = $ac_status" >&5
14453
 
  (exit $ac_status); } >/dev/null; then
14454
 
  if test -s conftest.err; then
14455
 
    ac_cpp_err=$ac_c_preproc_warn_flag
14456
 
  else
14457
 
    ac_cpp_err=
14458
 
  fi
14459
 
else
14460
 
  ac_cpp_err=yes
14461
 
fi
14462
 
if test -z "$ac_cpp_err"; then
14463
 
  ac_cv_header_stdc=yes
14464
 
else
14465
 
  echo "$as_me: failed program was:" >&5
14466
 
  cat conftest.$ac_ext >&5
14467
 
  ac_cv_header_stdc=no
14468
 
fi
14469
 
rm -f conftest.err conftest.$ac_ext
14470
 
 
14471
 
if test $ac_cv_header_stdc = yes; then
14472
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14473
 
  cat >conftest.$ac_ext <<_ACEOF
14474
 
#line 14474 "configure"
14475
 
#include "confdefs.h"
14476
 
#include <string.h>
14477
 
 
14478
 
_ACEOF
14479
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14480
 
  egrep "memchr" >/dev/null 2>&1; then
14481
 
  :
14482
 
else
14483
 
  ac_cv_header_stdc=no
14484
 
fi
14485
 
rm -f conftest*
14486
 
 
14487
 
fi
14488
 
 
14489
 
if test $ac_cv_header_stdc = yes; then
14490
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14491
 
  cat >conftest.$ac_ext <<_ACEOF
14492
 
#line 14492 "configure"
14493
 
#include "confdefs.h"
14494
 
#include <stdlib.h>
14495
 
 
14496
 
_ACEOF
14497
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14498
 
  egrep "free" >/dev/null 2>&1; then
14499
 
  :
14500
 
else
14501
 
  ac_cv_header_stdc=no
14502
 
fi
14503
 
rm -f conftest*
14504
 
 
14505
 
fi
14506
 
 
14507
 
if test $ac_cv_header_stdc = yes; then
14508
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14509
 
  if test "$cross_compiling" = yes; then
14510
 
  :
14511
 
else
14512
 
  cat >conftest.$ac_ext <<_ACEOF
14513
 
#line 14513 "configure"
14514
 
#include "confdefs.h"
14515
 
#include <ctype.h>
14516
 
#if ((' ' & 0x0FF) == 0x020)
14517
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14518
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14519
 
#else
14520
 
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14521
 
                     || ('j' <= (c) && (c) <= 'r') \
14522
 
                     || ('s' <= (c) && (c) <= 'z'))
14523
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14524
 
#endif
14525
 
 
14526
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14527
 
int
14528
 
main ()
14529
 
{
14530
 
  int i;
14531
 
  for (i = 0; i < 256; i++)
14532
 
    if (XOR (islower (i), ISLOWER (i))
14533
 
        || toupper (i) != TOUPPER (i))
14534
 
      exit(2);
14535
 
  exit (0);
14536
 
}
14537
 
_ACEOF
14538
 
rm -f conftest$ac_exeext
14539
 
if { (eval echo "$as_me:14539: \"$ac_link\"") >&5
14540
 
  (eval $ac_link) 2>&5
14541
 
  ac_status=$?
14542
 
  echo "$as_me:14542: \$? = $ac_status" >&5
14543
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14544
 
  { (eval echo "$as_me:14544: \"$ac_try\"") >&5
14545
 
  (eval $ac_try) 2>&5
14546
 
  ac_status=$?
14547
 
  echo "$as_me:14547: \$? = $ac_status" >&5
14548
 
  (exit $ac_status); }; }; then
14549
 
  :
14550
 
else
14551
 
  echo "$as_me: program exited with status $ac_status" >&5
14552
 
echo "$as_me: failed program was:" >&5
14553
 
cat conftest.$ac_ext >&5
14554
 
ac_cv_header_stdc=no
14555
 
fi
14556
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14557
 
fi
14558
 
fi
14559
 
fi
14560
 
echo "$as_me:14560: result: $ac_cv_header_stdc" >&5
14561
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
14562
 
if test $ac_cv_header_stdc = yes; then
14563
 
 
14564
 
cat >>confdefs.h <<\EOF
14565
 
#define STDC_HEADERS 1
14566
 
EOF
14567
 
 
14568
 
fi
14569
 
 
14570
 
for ac_header in strings.h unistd.h malloc.h sys/file.h fcntl.h direct.h alloca.h errno.h sys/time.h utime.h
14571
 
do
14572
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14573
 
echo "$as_me:14573: checking for $ac_header" >&5
14574
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14575
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14576
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14577
 
else
14578
 
  cat >conftest.$ac_ext <<_ACEOF
14579
 
#line 14579 "configure"
14580
 
#include "confdefs.h"
14581
 
#include <$ac_header>
14582
 
_ACEOF
14583
 
if { (eval echo "$as_me:14583: \"$ac_cpp conftest.$ac_ext\"") >&5
14584
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14585
 
  ac_status=$?
14586
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
14587
 
  rm -f conftest.er1
14588
 
  cat conftest.err >&5
14589
 
  echo "$as_me:14589: \$? = $ac_status" >&5
14590
 
  (exit $ac_status); } >/dev/null; then
14591
 
  if test -s conftest.err; then
14592
 
    ac_cpp_err=$ac_c_preproc_warn_flag
14593
 
  else
14594
 
    ac_cpp_err=
14595
 
  fi
14596
 
else
14597
 
  ac_cpp_err=yes
14598
 
fi
14599
 
if test -z "$ac_cpp_err"; then
14600
 
  eval "$as_ac_Header=yes"
14601
 
else
14602
 
  echo "$as_me: failed program was:" >&5
14603
 
  cat conftest.$ac_ext >&5
14604
 
  eval "$as_ac_Header=no"
14605
 
fi
14606
 
rm -f conftest.err conftest.$ac_ext
14607
 
fi
14608
 
echo "$as_me:14608: result: `eval echo '${'$as_ac_Header'}'`" >&5
14609
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14610
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14611
 
  cat >>confdefs.h <<EOF
14612
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14613
 
EOF
14614
 
 
14615
 
fi
14616
 
done
14617
 
 
14618
 
for ac_header in tilp/macros.h tilp/typedefs.h tilp/export.h tilp/cabl_def.h tilp/cabl_int.h tilp/calc_def.h tilp/calc_int.h
14619
 
do
14620
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14621
 
echo "$as_me:14621: checking for $ac_header" >&5
14622
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14623
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14624
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14625
 
else
14626
 
  cat >conftest.$ac_ext <<_ACEOF
14627
 
#line 14627 "configure"
14628
 
#include "confdefs.h"
14629
 
#include <$ac_header>
14630
 
_ACEOF
14631
 
if { (eval echo "$as_me:14631: \"$ac_cpp conftest.$ac_ext\"") >&5
14632
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14633
 
  ac_status=$?
14634
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
14635
 
  rm -f conftest.er1
14636
 
  cat conftest.err >&5
14637
 
  echo "$as_me:14637: \$? = $ac_status" >&5
14638
 
  (exit $ac_status); } >/dev/null; then
14639
 
  if test -s conftest.err; then
14640
 
    ac_cpp_err=$ac_c_preproc_warn_flag
14641
 
  else
14642
 
    ac_cpp_err=
14643
 
  fi
14644
 
else
14645
 
  ac_cpp_err=yes
14646
 
fi
14647
 
if test -z "$ac_cpp_err"; then
14648
 
  eval "$as_ac_Header=yes"
14649
 
else
14650
 
  echo "$as_me: failed program was:" >&5
14651
 
  cat conftest.$ac_ext >&5
14652
 
  eval "$as_ac_Header=no"
14653
 
fi
14654
 
rm -f conftest.err conftest.$ac_ext
14655
 
fi
14656
 
echo "$as_me:14656: result: `eval echo '${'$as_ac_Header'}'`" >&5
14657
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14658
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14659
 
  cat >>confdefs.h <<EOF
14660
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14661
 
EOF
14662
 
 
14663
 
fi
14664
 
done
14665
 
 
14666
 
for ac_header in tiffep/tiffep.h
14667
 
do
14668
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14669
 
echo "$as_me:14669: checking for $ac_header" >&5
14670
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14671
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14672
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14673
 
else
14674
 
  cat >conftest.$ac_ext <<_ACEOF
14675
 
#line 14675 "configure"
14676
 
#include "confdefs.h"
14677
 
#include <$ac_header>
14678
 
_ACEOF
14679
 
if { (eval echo "$as_me:14679: \"$ac_cpp conftest.$ac_ext\"") >&5
14680
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14681
 
  ac_status=$?
14682
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
14683
 
  rm -f conftest.er1
14684
 
  cat conftest.err >&5
14685
 
  echo "$as_me:14685: \$? = $ac_status" >&5
14686
 
  (exit $ac_status); } >/dev/null; then
14687
 
  if test -s conftest.err; then
14688
 
    ac_cpp_err=$ac_c_preproc_warn_flag
14689
 
  else
14690
 
    ac_cpp_err=
14691
 
  fi
14692
 
else
14693
 
  ac_cpp_err=yes
14694
 
fi
14695
 
if test -z "$ac_cpp_err"; then
14696
 
  eval "$as_ac_Header=yes"
14697
 
else
14698
 
  echo "$as_me: failed program was:" >&5
14699
 
  cat conftest.$ac_ext >&5
14700
 
  eval "$as_ac_Header=no"
14701
 
fi
14702
 
rm -f conftest.err conftest.$ac_ext
14703
 
fi
14704
 
echo "$as_me:14704: result: `eval echo '${'$as_ac_Header'}'`" >&5
14705
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14706
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14707
 
  cat >>confdefs.h <<EOF
14708
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14709
 
EOF
14710
 
 
14711
 
fi
14712
 
done
14713
 
 
14714
 
for ac_header in locale.h libintl.h
14715
 
do
14716
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14717
 
echo "$as_me:14717: checking for $ac_header" >&5
14718
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14719
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14720
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14721
 
else
14722
 
  cat >conftest.$ac_ext <<_ACEOF
14723
 
#line 14723 "configure"
14724
 
#include "confdefs.h"
14725
 
#include <$ac_header>
14726
 
_ACEOF
14727
 
if { (eval echo "$as_me:14727: \"$ac_cpp conftest.$ac_ext\"") >&5
14728
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14729
 
  ac_status=$?
14730
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
14731
 
  rm -f conftest.er1
14732
 
  cat conftest.err >&5
14733
 
  echo "$as_me:14733: \$? = $ac_status" >&5
14734
 
  (exit $ac_status); } >/dev/null; then
14735
 
  if test -s conftest.err; then
14736
 
    ac_cpp_err=$ac_c_preproc_warn_flag
14737
 
  else
14738
 
    ac_cpp_err=
14739
 
  fi
14740
 
else
14741
 
  ac_cpp_err=yes
14742
 
fi
14743
 
if test -z "$ac_cpp_err"; then
14744
 
  eval "$as_ac_Header=yes"
14745
 
else
14746
 
  echo "$as_me: failed program was:" >&5
14747
 
  cat conftest.$ac_ext >&5
14748
 
  eval "$as_ac_Header=no"
14749
 
fi
14750
 
rm -f conftest.err conftest.$ac_ext
14751
 
fi
14752
 
echo "$as_me:14752: result: `eval echo '${'$as_ac_Header'}'`" >&5
14753
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14754
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14755
 
  cat >>confdefs.h <<EOF
14756
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14757
 
EOF
14758
 
 
14759
 
fi
14760
 
done
14761
 
 
14762
 
echo "$as_me:14762: checking for jpeglib.h" >&5
14763
 
echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
14764
 
if test "${ac_cv_header_jpeglib_h+set}" = set; then
14765
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14766
 
else
14767
 
  cat >conftest.$ac_ext <<_ACEOF
14768
 
#line 14768 "configure"
14769
 
#include "confdefs.h"
14770
 
#include <jpeglib.h>
14771
 
_ACEOF
14772
 
if { (eval echo "$as_me:14772: \"$ac_cpp conftest.$ac_ext\"") >&5
14773
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14774
 
  ac_status=$?
14775
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
14776
 
  rm -f conftest.er1
14777
 
  cat conftest.err >&5
14778
 
  echo "$as_me:14778: \$? = $ac_status" >&5
14779
 
  (exit $ac_status); } >/dev/null; then
14780
 
  if test -s conftest.err; then
14781
 
    ac_cpp_err=$ac_c_preproc_warn_flag
14782
 
  else
14783
 
    ac_cpp_err=
14784
 
  fi
14785
 
else
14786
 
  ac_cpp_err=yes
14787
 
fi
14788
 
if test -z "$ac_cpp_err"; then
14789
 
  ac_cv_header_jpeglib_h=yes
14790
 
else
14791
 
  echo "$as_me: failed program was:" >&5
14792
 
  cat conftest.$ac_ext >&5
14793
 
  ac_cv_header_jpeglib_h=no
14794
 
fi
14795
 
rm -f conftest.err conftest.$ac_ext
14796
 
fi
14797
 
echo "$as_me:14797: result: $ac_cv_header_jpeglib_h" >&5
14798
 
echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
14799
 
 
14800
 
echo "$as_me:14800: checking for Ilib.h" >&5
14801
 
echo $ECHO_N "checking for Ilib.h... $ECHO_C" >&6
14802
 
if test "${ac_cv_header_Ilib_h+set}" = set; then
14803
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14804
 
else
14805
 
  cat >conftest.$ac_ext <<_ACEOF
14806
 
#line 14806 "configure"
14807
 
#include "confdefs.h"
14808
 
#include <Ilib.h>
14809
 
_ACEOF
14810
 
if { (eval echo "$as_me:14810: \"$ac_cpp conftest.$ac_ext\"") >&5
14811
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14812
 
  ac_status=$?
14813
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
14814
 
  rm -f conftest.er1
14815
 
  cat conftest.err >&5
14816
 
  echo "$as_me:14816: \$? = $ac_status" >&5
14817
 
  (exit $ac_status); } >/dev/null; then
14818
 
  if test -s conftest.err; then
14819
 
    ac_cpp_err=$ac_c_preproc_warn_flag
14820
 
  else
14821
 
    ac_cpp_err=
14822
 
  fi
14823
 
else
14824
 
  ac_cpp_err=yes
14825
 
fi
14826
 
if test -z "$ac_cpp_err"; then
14827
 
  ac_cv_header_Ilib_h=yes
14828
 
else
14829
 
  echo "$as_me: failed program was:" >&5
14830
 
  cat conftest.$ac_ext >&5
14831
 
  ac_cv_header_Ilib_h=no
14832
 
fi
14833
 
rm -f conftest.err conftest.$ac_ext
14834
 
fi
14835
 
echo "$as_me:14835: result: $ac_cv_header_Ilib_h" >&5
14836
 
echo "${ECHO_T}$ac_cv_header_Ilib_h" >&6
14837
 
 
14838
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
14839
 
 
14840
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
14841
 
                  inttypes.h stdint.h unistd.h
14842
 
do
14843
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14844
 
echo "$as_me:14844: checking for $ac_header" >&5
14845
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14846
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14847
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14848
 
else
14849
 
  cat >conftest.$ac_ext <<_ACEOF
14850
 
#line 14850 "configure"
14851
 
#include "confdefs.h"
14852
 
$ac_includes_default
14853
 
#include <$ac_header>
14854
 
_ACEOF
14855
 
rm -f conftest.$ac_objext
14856
 
if { (eval echo "$as_me:14856: \"$ac_compile\"") >&5
14857
 
  (eval $ac_compile) 2>&5
14858
 
  ac_status=$?
14859
 
  echo "$as_me:14859: \$? = $ac_status" >&5
14860
 
  (exit $ac_status); } &&
14861
 
         { ac_try='test -s conftest.$ac_objext'
14862
 
  { (eval echo "$as_me:14862: \"$ac_try\"") >&5
14863
 
  (eval $ac_try) 2>&5
14864
 
  ac_status=$?
14865
 
  echo "$as_me:14865: \$? = $ac_status" >&5
14866
 
  (exit $ac_status); }; }; then
14867
 
  eval "$as_ac_Header=yes"
14868
 
else
14869
 
  echo "$as_me: failed program was:" >&5
14870
 
cat conftest.$ac_ext >&5
14871
 
eval "$as_ac_Header=no"
14872
 
fi
14873
 
rm -f conftest.$ac_objext conftest.$ac_ext
14874
 
fi
14875
 
echo "$as_me:14875: result: `eval echo '${'$as_ac_Header'}'`" >&5
14876
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14877
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14878
 
  cat >>confdefs.h <<EOF
14879
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14880
 
EOF
14881
 
 
14882
 
fi
14883
 
done
14884
 
 
14885
 
echo "$as_me:14885: checking for struct stat.st_blksize" >&5
14886
 
echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14887
 
if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14888
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14889
 
else
14890
 
  cat >conftest.$ac_ext <<_ACEOF
14891
 
#line 14891 "configure"
14892
 
#include "confdefs.h"
14893
 
$ac_includes_default
14894
 
int
14895
 
main ()
14896
 
{
14897
 
static struct stat ac_aggr;
14898
 
if (ac_aggr.st_blksize)
14899
 
return 0;
14900
 
  ;
14901
 
  return 0;
14902
 
}
14903
 
_ACEOF
14904
 
rm -f conftest.$ac_objext
14905
 
if { (eval echo "$as_me:14905: \"$ac_compile\"") >&5
14906
 
  (eval $ac_compile) 2>&5
14907
 
  ac_status=$?
14908
 
  echo "$as_me:14908: \$? = $ac_status" >&5
14909
 
  (exit $ac_status); } &&
14910
 
         { ac_try='test -s conftest.$ac_objext'
14911
 
  { (eval echo "$as_me:14911: \"$ac_try\"") >&5
14912
 
  (eval $ac_try) 2>&5
14913
 
  ac_status=$?
14914
 
  echo "$as_me:14914: \$? = $ac_status" >&5
14915
 
  (exit $ac_status); }; }; then
14916
 
  ac_cv_member_struct_stat_st_blksize=yes
14917
 
else
14918
 
  echo "$as_me: failed program was:" >&5
14919
 
cat conftest.$ac_ext >&5
14920
 
ac_cv_member_struct_stat_st_blksize=no
14921
 
fi
14922
 
rm -f conftest.$ac_objext conftest.$ac_ext
14923
 
fi
14924
 
echo "$as_me:14924: result: $ac_cv_member_struct_stat_st_blksize" >&5
14925
 
echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14926
 
if test $ac_cv_member_struct_stat_st_blksize = yes; then
14927
 
 
14928
 
cat >>confdefs.h <<EOF
14929
 
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14930
 
EOF
14931
 
 
14932
 
fi
14933
 
 
14934
 
echo "$as_me:14934: checking for $CC option to accept ANSI C" >&5
14935
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
14936
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
14937
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14938
 
else
14939
 
  ac_cv_prog_cc_stdc=no
14940
 
ac_save_CC=$CC
14941
 
cat >conftest.$ac_ext <<_ACEOF
14942
 
#line 14942 "configure"
14943
 
#include "confdefs.h"
14944
 
#include <stdarg.h>
14945
 
#include <stdio.h>
14946
 
#include <sys/types.h>
14947
 
#include <sys/stat.h>
14948
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
14949
 
struct buf { int x; };
14950
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
14951
 
static char *e (p, i)
14952
 
     char **p;
14953
 
     int i;
14954
 
{
14955
 
  return p[i];
14956
 
}
14957
 
static char *f (char * (*g) (char **, int), char **p, ...)
14958
 
{
14959
 
  char *s;
14960
 
  va_list v;
14961
 
  va_start (v,p);
14962
 
  s = g (p, va_arg (v,int));
14963
 
  va_end (v);
14964
 
  return s;
14965
 
}
14966
 
int test (int i, double x);
14967
 
struct s1 {int (*f) (int a);};
14968
 
struct s2 {int (*f) (double a);};
14969
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14970
 
int argc;
14971
 
char **argv;
14972
 
int
14973
 
main ()
14974
 
{
14975
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
14976
 
  ;
14977
 
  return 0;
14978
 
}
14979
 
_ACEOF
14980
 
# Don't try gcc -ansi; that turns off useful extensions and
14981
 
# breaks some systems' header files.
14982
 
# AIX                   -qlanglvl=ansi
14983
 
# Ultrix and OSF/1      -std1
14984
 
# HP-UX 10.20 and later -Ae
14985
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
14986
 
# SVR4                  -Xc -D__EXTENSIONS__
14987
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14988
 
do
14989
 
  CC="$ac_save_CC $ac_arg"
14990
 
  rm -f conftest.$ac_objext
14991
 
if { (eval echo "$as_me:14991: \"$ac_compile\"") >&5
14992
 
  (eval $ac_compile) 2>&5
14993
 
  ac_status=$?
14994
 
  echo "$as_me:14994: \$? = $ac_status" >&5
14995
 
  (exit $ac_status); } &&
14996
 
         { ac_try='test -s conftest.$ac_objext'
14997
 
  { (eval echo "$as_me:14997: \"$ac_try\"") >&5
14998
 
  (eval $ac_try) 2>&5
14999
 
  ac_status=$?
15000
 
  echo "$as_me:15000: \$? = $ac_status" >&5
15001
 
  (exit $ac_status); }; }; then
15002
 
  ac_cv_prog_cc_stdc=$ac_arg
15003
 
break
15004
 
else
15005
 
  echo "$as_me: failed program was:" >&5
15006
 
cat conftest.$ac_ext >&5
15007
 
fi
15008
 
rm -f conftest.$ac_objext
15009
 
done
15010
 
rm -f conftest.$ac_ext conftest.$ac_objext
15011
 
CC=$ac_save_CC
15012
 
 
15013
 
fi
15014
 
 
15015
 
case "x$ac_cv_prog_cc_stdc" in
15016
 
  x|xno)
15017
 
    echo "$as_me:15017: result: none needed" >&5
15018
 
echo "${ECHO_T}none needed" >&6 ;;
15019
 
  *)
15020
 
    echo "$as_me:15020: result: $ac_cv_prog_cc_stdc" >&5
15021
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
15022
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
15023
 
esac
15024
 
 
15025
 
echo "$as_me:15025: checking for an ANSI C-conforming const" >&5
15026
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
15027
 
if test "${ac_cv_c_const+set}" = set; then
15028
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15029
 
else
15030
 
  cat >conftest.$ac_ext <<_ACEOF
15031
 
#line 15031 "configure"
15032
 
#include "confdefs.h"
15033
 
 
15034
 
int
15035
 
main ()
15036
 
{
15037
 
/* FIXME: Include the comments suggested by Paul. */
15038
 
#ifndef __cplusplus
15039
 
  /* Ultrix mips cc rejects this.  */
15040
 
  typedef int charset[2];
15041
 
  const charset x;
15042
 
  /* SunOS 4.1.1 cc rejects this.  */
15043
 
  char const *const *ccp;
15044
 
  char **p;
15045
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
15046
 
  struct point {int x, y;};
15047
 
  static struct point const zero = {0,0};
15048
 
  /* AIX XL C 1.02.0.0 rejects this.
15049
 
     It does not let you subtract one const X* pointer from another in
15050
 
     an arm of an if-expression whose if-part is not a constant
15051
 
     expression */
15052
 
  const char *g = "string";
15053
 
  ccp = &g + (g ? g-g : 0);
15054
 
  /* HPUX 7.0 cc rejects these. */
15055
 
  ++ccp;
15056
 
  p = (char**) ccp;
15057
 
  ccp = (char const *const *) p;
15058
 
  { /* SCO 3.2v4 cc rejects this.  */
15059
 
    char *t;
15060
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
15061
 
 
15062
 
    *t++ = 0;
15063
 
  }
15064
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15065
 
    int x[] = {25, 17};
15066
 
    const int *foo = &x[0];
15067
 
    ++foo;
15068
 
  }
15069
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15070
 
    typedef const int *iptr;
15071
 
    iptr p = 0;
15072
 
    ++p;
15073
 
  }
15074
 
  { /* AIX XL C 1.02.0.0 rejects this saying
15075
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15076
 
    struct s { int j; const int *ap[3]; };
15077
 
    struct s *b; b->j = 5;
15078
 
  }
15079
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15080
 
    const int foo = 10;
15081
 
  }
15082
 
#endif
15083
 
 
15084
 
  ;
15085
 
  return 0;
15086
 
}
15087
 
_ACEOF
15088
 
rm -f conftest.$ac_objext
15089
 
if { (eval echo "$as_me:15089: \"$ac_compile\"") >&5
15090
 
  (eval $ac_compile) 2>&5
15091
 
  ac_status=$?
15092
 
  echo "$as_me:15092: \$? = $ac_status" >&5
15093
 
  (exit $ac_status); } &&
15094
 
         { ac_try='test -s conftest.$ac_objext'
15095
 
  { (eval echo "$as_me:15095: \"$ac_try\"") >&5
15096
 
  (eval $ac_try) 2>&5
15097
 
  ac_status=$?
15098
 
  echo "$as_me:15098: \$? = $ac_status" >&5
15099
 
  (exit $ac_status); }; }; then
15100
 
  ac_cv_c_const=yes
15101
 
else
15102
 
  echo "$as_me: failed program was:" >&5
15103
 
cat conftest.$ac_ext >&5
15104
 
ac_cv_c_const=no
15105
 
fi
15106
 
rm -f conftest.$ac_objext conftest.$ac_ext
15107
 
fi
15108
 
echo "$as_me:15108: result: $ac_cv_c_const" >&5
15109
 
echo "${ECHO_T}$ac_cv_c_const" >&6
15110
 
if test $ac_cv_c_const = no; then
15111
 
 
15112
 
cat >>confdefs.h <<\EOF
15113
 
#define const
15114
 
EOF
15115
 
 
15116
 
fi
15117
 
 
15118
 
echo "$as_me:15118: checking for uid_t in sys/types.h" >&5
15119
 
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15120
 
if test "${ac_cv_type_uid_t+set}" = set; then
15121
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15122
 
else
15123
 
  cat >conftest.$ac_ext <<_ACEOF
15124
 
#line 15124 "configure"
15125
 
#include "confdefs.h"
15126
 
#include <sys/types.h>
15127
 
 
15128
 
_ACEOF
15129
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15130
 
  egrep "uid_t" >/dev/null 2>&1; then
15131
 
  ac_cv_type_uid_t=yes
15132
 
else
15133
 
  ac_cv_type_uid_t=no
15134
 
fi
15135
 
rm -f conftest*
15136
 
 
15137
 
fi
15138
 
echo "$as_me:15138: result: $ac_cv_type_uid_t" >&5
15139
 
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15140
 
if test $ac_cv_type_uid_t = no; then
15141
 
 
15142
 
cat >>confdefs.h <<\EOF
15143
 
#define uid_t int
15144
 
EOF
15145
 
 
15146
 
cat >>confdefs.h <<\EOF
15147
 
#define gid_t int
15148
 
EOF
15149
 
 
15150
 
fi
15151
 
 
15152
 
echo "$as_me:15152: checking for inline" >&5
15153
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6
15154
 
if test "${ac_cv_c_inline+set}" = set; then
15155
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15156
 
else
15157
 
  ac_cv_c_inline=no
15158
 
for ac_kw in inline __inline__ __inline; do
15159
 
  cat >conftest.$ac_ext <<_ACEOF
15160
 
#line 15160 "configure"
15161
 
#include "confdefs.h"
15162
 
#ifndef __cplusplus
15163
 
static $ac_kw int static_foo () {return 0; }
15164
 
$ac_kw int foo () {return 0; }
15165
 
#endif
15166
 
 
15167
 
_ACEOF
15168
 
rm -f conftest.$ac_objext
15169
 
if { (eval echo "$as_me:15169: \"$ac_compile\"") >&5
15170
 
  (eval $ac_compile) 2>&5
15171
 
  ac_status=$?
15172
 
  echo "$as_me:15172: \$? = $ac_status" >&5
15173
 
  (exit $ac_status); } &&
15174
 
         { ac_try='test -s conftest.$ac_objext'
15175
 
  { (eval echo "$as_me:15175: \"$ac_try\"") >&5
15176
 
  (eval $ac_try) 2>&5
15177
 
  ac_status=$?
15178
 
  echo "$as_me:15178: \$? = $ac_status" >&5
15179
 
  (exit $ac_status); }; }; then
15180
 
  ac_cv_c_inline=$ac_kw; break
15181
 
else
15182
 
  echo "$as_me: failed program was:" >&5
15183
 
cat conftest.$ac_ext >&5
15184
 
fi
15185
 
rm -f conftest.$ac_objext conftest.$ac_ext
15186
 
done
15187
 
 
15188
 
fi
15189
 
echo "$as_me:15189: result: $ac_cv_c_inline" >&5
15190
 
echo "${ECHO_T}$ac_cv_c_inline" >&6
15191
 
case $ac_cv_c_inline in
15192
 
  inline | yes) ;;
15193
 
  no)
15194
 
cat >>confdefs.h <<\EOF
15195
 
#define inline
15196
 
EOF
15197
 
 ;;
15198
 
  *)  cat >>confdefs.h <<EOF
15199
 
#define inline $ac_cv_c_inline
15200
 
EOF
15201
 
 ;;
15202
 
esac
15203
 
 
15204
 
echo "$as_me:15204: checking for mode_t" >&5
15205
 
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15206
 
if test "${ac_cv_type_mode_t+set}" = set; then
15207
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15208
 
else
15209
 
  cat >conftest.$ac_ext <<_ACEOF
15210
 
#line 15210 "configure"
15211
 
#include "confdefs.h"
15212
 
$ac_includes_default
15213
 
int
15214
 
main ()
15215
 
{
15216
 
if ((mode_t *) 0)
15217
 
  return 0;
15218
 
if (sizeof (mode_t))
15219
 
  return 0;
15220
 
  ;
15221
 
  return 0;
15222
 
}
15223
 
_ACEOF
15224
 
rm -f conftest.$ac_objext
15225
 
if { (eval echo "$as_me:15225: \"$ac_compile\"") >&5
15226
 
  (eval $ac_compile) 2>&5
15227
 
  ac_status=$?
15228
 
  echo "$as_me:15228: \$? = $ac_status" >&5
15229
 
  (exit $ac_status); } &&
15230
 
         { ac_try='test -s conftest.$ac_objext'
15231
 
  { (eval echo "$as_me:15231: \"$ac_try\"") >&5
15232
 
  (eval $ac_try) 2>&5
15233
 
  ac_status=$?
15234
 
  echo "$as_me:15234: \$? = $ac_status" >&5
15235
 
  (exit $ac_status); }; }; then
15236
 
  ac_cv_type_mode_t=yes
15237
 
else
15238
 
  echo "$as_me: failed program was:" >&5
15239
 
cat conftest.$ac_ext >&5
15240
 
ac_cv_type_mode_t=no
15241
 
fi
15242
 
rm -f conftest.$ac_objext conftest.$ac_ext
15243
 
fi
15244
 
echo "$as_me:15244: result: $ac_cv_type_mode_t" >&5
15245
 
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15246
 
if test $ac_cv_type_mode_t = yes; then
15247
 
  :
15248
 
else
15249
 
 
15250
 
cat >>confdefs.h <<EOF
15251
 
#define mode_t int
15252
 
EOF
15253
 
 
15254
 
fi
15255
 
 
15256
 
echo "$as_me:15256: checking for off_t" >&5
15257
 
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15258
 
if test "${ac_cv_type_off_t+set}" = set; then
15259
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15260
 
else
15261
 
  cat >conftest.$ac_ext <<_ACEOF
15262
 
#line 15262 "configure"
15263
 
#include "confdefs.h"
15264
 
$ac_includes_default
15265
 
int
15266
 
main ()
15267
 
{
15268
 
if ((off_t *) 0)
15269
 
  return 0;
15270
 
if (sizeof (off_t))
15271
 
  return 0;
15272
 
  ;
15273
 
  return 0;
15274
 
}
15275
 
_ACEOF
15276
 
rm -f conftest.$ac_objext
15277
 
if { (eval echo "$as_me:15277: \"$ac_compile\"") >&5
15278
 
  (eval $ac_compile) 2>&5
15279
 
  ac_status=$?
15280
 
  echo "$as_me:15280: \$? = $ac_status" >&5
15281
 
  (exit $ac_status); } &&
15282
 
         { ac_try='test -s conftest.$ac_objext'
15283
 
  { (eval echo "$as_me:15283: \"$ac_try\"") >&5
15284
 
  (eval $ac_try) 2>&5
15285
 
  ac_status=$?
15286
 
  echo "$as_me:15286: \$? = $ac_status" >&5
15287
 
  (exit $ac_status); }; }; then
15288
 
  ac_cv_type_off_t=yes
15289
 
else
15290
 
  echo "$as_me: failed program was:" >&5
15291
 
cat conftest.$ac_ext >&5
15292
 
ac_cv_type_off_t=no
15293
 
fi
15294
 
rm -f conftest.$ac_objext conftest.$ac_ext
15295
 
fi
15296
 
echo "$as_me:15296: result: $ac_cv_type_off_t" >&5
15297
 
echo "${ECHO_T}$ac_cv_type_off_t" >&6
15298
 
if test $ac_cv_type_off_t = yes; then
15299
 
  :
15300
 
else
15301
 
 
15302
 
cat >>confdefs.h <<EOF
15303
 
#define off_t long
15304
 
EOF
15305
 
 
15306
 
fi
15307
 
 
15308
 
echo "$as_me:15308: checking for size_t" >&5
15309
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15310
 
if test "${ac_cv_type_size_t+set}" = set; then
15311
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15312
 
else
15313
 
  cat >conftest.$ac_ext <<_ACEOF
15314
 
#line 15314 "configure"
15315
 
#include "confdefs.h"
15316
 
$ac_includes_default
15317
 
int
15318
 
main ()
15319
 
{
15320
 
if ((size_t *) 0)
15321
 
  return 0;
15322
 
if (sizeof (size_t))
15323
 
  return 0;
15324
 
  ;
15325
 
  return 0;
15326
 
}
15327
 
_ACEOF
15328
 
rm -f conftest.$ac_objext
15329
 
if { (eval echo "$as_me:15329: \"$ac_compile\"") >&5
15330
 
  (eval $ac_compile) 2>&5
15331
 
  ac_status=$?
15332
 
  echo "$as_me:15332: \$? = $ac_status" >&5
15333
 
  (exit $ac_status); } &&
15334
 
         { ac_try='test -s conftest.$ac_objext'
15335
 
  { (eval echo "$as_me:15335: \"$ac_try\"") >&5
15336
 
  (eval $ac_try) 2>&5
15337
 
  ac_status=$?
15338
 
  echo "$as_me:15338: \$? = $ac_status" >&5
15339
 
  (exit $ac_status); }; }; then
15340
 
  ac_cv_type_size_t=yes
15341
 
else
15342
 
  echo "$as_me: failed program was:" >&5
15343
 
cat conftest.$ac_ext >&5
15344
 
ac_cv_type_size_t=no
15345
 
fi
15346
 
rm -f conftest.$ac_objext conftest.$ac_ext
15347
 
fi
15348
 
echo "$as_me:15348: result: $ac_cv_type_size_t" >&5
15349
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
15350
 
if test $ac_cv_type_size_t = yes; then
15351
 
  :
15352
 
else
15353
 
 
15354
 
cat >>confdefs.h <<EOF
15355
 
#define size_t unsigned
15356
 
EOF
15357
 
 
15358
 
fi
15359
 
 
15360
 
echo "$as_me:15360: checking for pid_t" >&5
15361
 
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15362
 
if test "${ac_cv_type_pid_t+set}" = set; then
15363
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15364
 
else
15365
 
  cat >conftest.$ac_ext <<_ACEOF
15366
 
#line 15366 "configure"
15367
 
#include "confdefs.h"
15368
 
$ac_includes_default
15369
 
int
15370
 
main ()
15371
 
{
15372
 
if ((pid_t *) 0)
15373
 
  return 0;
15374
 
if (sizeof (pid_t))
15375
 
  return 0;
15376
 
  ;
15377
 
  return 0;
15378
 
}
15379
 
_ACEOF
15380
 
rm -f conftest.$ac_objext
15381
 
if { (eval echo "$as_me:15381: \"$ac_compile\"") >&5
15382
 
  (eval $ac_compile) 2>&5
15383
 
  ac_status=$?
15384
 
  echo "$as_me:15384: \$? = $ac_status" >&5
15385
 
  (exit $ac_status); } &&
15386
 
         { ac_try='test -s conftest.$ac_objext'
15387
 
  { (eval echo "$as_me:15387: \"$ac_try\"") >&5
15388
 
  (eval $ac_try) 2>&5
15389
 
  ac_status=$?
15390
 
  echo "$as_me:15390: \$? = $ac_status" >&5
15391
 
  (exit $ac_status); }; }; then
15392
 
  ac_cv_type_pid_t=yes
15393
 
else
15394
 
  echo "$as_me: failed program was:" >&5
15395
 
cat conftest.$ac_ext >&5
15396
 
ac_cv_type_pid_t=no
15397
 
fi
15398
 
rm -f conftest.$ac_objext conftest.$ac_ext
15399
 
fi
15400
 
echo "$as_me:15400: result: $ac_cv_type_pid_t" >&5
15401
 
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15402
 
if test $ac_cv_type_pid_t = yes; then
15403
 
  :
15404
 
else
15405
 
 
15406
 
cat >>confdefs.h <<EOF
15407
 
#define pid_t int
15408
 
EOF
15409
 
 
15410
 
fi
15411
 
 
15412
 
echo "$as_me:15412: checking return type of signal handlers" >&5
15413
 
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15414
 
if test "${ac_cv_type_signal+set}" = set; then
15415
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15416
 
else
15417
 
  cat >conftest.$ac_ext <<_ACEOF
15418
 
#line 15418 "configure"
15419
 
#include "confdefs.h"
15420
 
#include <sys/types.h>
15421
 
#include <signal.h>
15422
 
#ifdef signal
15423
 
# undef signal
15424
 
#endif
15425
 
#ifdef __cplusplus
15426
 
extern "C" void (*signal (int, void (*)(int)))(int);
15427
 
#else
15428
 
void (*signal ()) ();
15429
 
#endif
15430
 
 
15431
 
int
15432
 
main ()
15433
 
{
15434
 
int i;
15435
 
  ;
15436
 
  return 0;
15437
 
}
15438
 
_ACEOF
15439
 
rm -f conftest.$ac_objext
15440
 
if { (eval echo "$as_me:15440: \"$ac_compile\"") >&5
15441
 
  (eval $ac_compile) 2>&5
15442
 
  ac_status=$?
15443
 
  echo "$as_me:15443: \$? = $ac_status" >&5
15444
 
  (exit $ac_status); } &&
15445
 
         { ac_try='test -s conftest.$ac_objext'
15446
 
  { (eval echo "$as_me:15446: \"$ac_try\"") >&5
15447
 
  (eval $ac_try) 2>&5
15448
 
  ac_status=$?
15449
 
  echo "$as_me:15449: \$? = $ac_status" >&5
15450
 
  (exit $ac_status); }; }; then
15451
 
  ac_cv_type_signal=void
15452
 
else
15453
 
  echo "$as_me: failed program was:" >&5
15454
 
cat conftest.$ac_ext >&5
15455
 
ac_cv_type_signal=int
15456
 
fi
15457
 
rm -f conftest.$ac_objext conftest.$ac_ext
15458
 
fi
15459
 
echo "$as_me:15459: result: $ac_cv_type_signal" >&5
15460
 
echo "${ECHO_T}$ac_cv_type_signal" >&6
15461
 
 
15462
 
cat >>confdefs.h <<EOF
15463
 
#define RETSIGTYPE $ac_cv_type_signal
15464
 
EOF
15465
 
 
15466
 
echo "$as_me:15466: checking for error_at_line" >&5
15467
 
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
15468
 
if test "${ac_cv_lib_error_at_line+set}" = set; then
15469
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15470
 
else
15471
 
  cat >conftest.$ac_ext <<_ACEOF
15472
 
#line 15472 "configure"
15473
 
#include "confdefs.h"
15474
 
 
15475
 
int
15476
 
main ()
15477
 
{
15478
 
error_at_line (0, 0, "", 0, "");
15479
 
  ;
15480
 
  return 0;
15481
 
}
15482
 
_ACEOF
15483
 
rm -f conftest.$ac_objext conftest$ac_exeext
15484
 
if { (eval echo "$as_me:15484: \"$ac_link\"") >&5
15485
 
  (eval $ac_link) 2>&5
15486
 
  ac_status=$?
15487
 
  echo "$as_me:15487: \$? = $ac_status" >&5
15488
 
  (exit $ac_status); } &&
15489
 
         { ac_try='test -s conftest$ac_exeext'
15490
 
  { (eval echo "$as_me:15490: \"$ac_try\"") >&5
15491
 
  (eval $ac_try) 2>&5
15492
 
  ac_status=$?
15493
 
  echo "$as_me:15493: \$? = $ac_status" >&5
15494
 
  (exit $ac_status); }; }; then
15495
 
  ac_cv_lib_error_at_line=yes
15496
 
else
15497
 
  echo "$as_me: failed program was:" >&5
15498
 
cat conftest.$ac_ext >&5
15499
 
ac_cv_lib_error_at_line=no
15500
 
fi
15501
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15502
 
fi
15503
 
echo "$as_me:15503: result: $ac_cv_lib_error_at_line" >&5
15504
 
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
15505
 
if test $ac_cv_lib_error_at_line = no; then
15506
 
  LIBOBJS="$LIBOBJS error.$ac_objext"
15507
 
fi
15508
 
 
15509
 
echo "$as_me:15509: checking whether sys/types.h defines makedev" >&5
15510
 
echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
15511
 
if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
15512
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15513
 
else
15514
 
  cat >conftest.$ac_ext <<_ACEOF
15515
 
#line 15515 "configure"
15516
 
#include "confdefs.h"
15517
 
#include <sys/types.h>
15518
 
 
15519
 
int
15520
 
main ()
15521
 
{
15522
 
return makedev(0, 0);
15523
 
  ;
15524
 
  return 0;
15525
 
}
15526
 
_ACEOF
15527
 
rm -f conftest.$ac_objext conftest$ac_exeext
15528
 
if { (eval echo "$as_me:15528: \"$ac_link\"") >&5
15529
 
  (eval $ac_link) 2>&5
15530
 
  ac_status=$?
15531
 
  echo "$as_me:15531: \$? = $ac_status" >&5
15532
 
  (exit $ac_status); } &&
15533
 
         { ac_try='test -s conftest$ac_exeext'
15534
 
  { (eval echo "$as_me:15534: \"$ac_try\"") >&5
15535
 
  (eval $ac_try) 2>&5
15536
 
  ac_status=$?
15537
 
  echo "$as_me:15537: \$? = $ac_status" >&5
15538
 
  (exit $ac_status); }; }; then
15539
 
  ac_cv_header_sys_types_h_makedev=yes
15540
 
else
15541
 
  echo "$as_me: failed program was:" >&5
15542
 
cat conftest.$ac_ext >&5
15543
 
ac_cv_header_sys_types_h_makedev=no
15544
 
fi
15545
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15546
 
 
15547
 
fi
15548
 
echo "$as_me:15548: result: $ac_cv_header_sys_types_h_makedev" >&5
15549
 
echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
15550
 
 
15551
 
if test $ac_cv_header_sys_types_h_makedev = no; then
15552
 
echo "$as_me:15552: checking for sys/mkdev.h" >&5
15553
 
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
15554
 
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
15555
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15556
 
else
15557
 
  cat >conftest.$ac_ext <<_ACEOF
15558
 
#line 15558 "configure"
15559
 
#include "confdefs.h"
15560
 
#include <sys/mkdev.h>
15561
 
_ACEOF
15562
 
if { (eval echo "$as_me:15562: \"$ac_cpp conftest.$ac_ext\"") >&5
15563
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15564
 
  ac_status=$?
15565
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
15566
 
  rm -f conftest.er1
15567
 
  cat conftest.err >&5
15568
 
  echo "$as_me:15568: \$? = $ac_status" >&5
15569
 
  (exit $ac_status); } >/dev/null; then
15570
 
  if test -s conftest.err; then
15571
 
    ac_cpp_err=$ac_c_preproc_warn_flag
15572
 
  else
15573
 
    ac_cpp_err=
15574
 
  fi
15575
 
else
15576
 
  ac_cpp_err=yes
15577
 
fi
15578
 
if test -z "$ac_cpp_err"; then
15579
 
  ac_cv_header_sys_mkdev_h=yes
15580
 
else
15581
 
  echo "$as_me: failed program was:" >&5
15582
 
  cat conftest.$ac_ext >&5
15583
 
  ac_cv_header_sys_mkdev_h=no
15584
 
fi
15585
 
rm -f conftest.err conftest.$ac_ext
15586
 
fi
15587
 
echo "$as_me:15587: result: $ac_cv_header_sys_mkdev_h" >&5
15588
 
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
15589
 
if test $ac_cv_header_sys_mkdev_h = yes; then
15590
 
 
15591
 
cat >>confdefs.h <<\EOF
15592
 
#define MAJOR_IN_MKDEV 1
15593
 
EOF
15594
 
 
15595
 
fi
15596
 
 
15597
 
  if test $ac_cv_header_sys_mkdev_h = no; then
15598
 
    echo "$as_me:15598: checking for sys/sysmacros.h" >&5
15599
 
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
15600
 
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
15601
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15602
 
else
15603
 
  cat >conftest.$ac_ext <<_ACEOF
15604
 
#line 15604 "configure"
15605
 
#include "confdefs.h"
15606
 
#include <sys/sysmacros.h>
15607
 
_ACEOF
15608
 
if { (eval echo "$as_me:15608: \"$ac_cpp conftest.$ac_ext\"") >&5
15609
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15610
 
  ac_status=$?
15611
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
15612
 
  rm -f conftest.er1
15613
 
  cat conftest.err >&5
15614
 
  echo "$as_me:15614: \$? = $ac_status" >&5
15615
 
  (exit $ac_status); } >/dev/null; then
15616
 
  if test -s conftest.err; then
15617
 
    ac_cpp_err=$ac_c_preproc_warn_flag
15618
 
  else
15619
 
    ac_cpp_err=
15620
 
  fi
15621
 
else
15622
 
  ac_cpp_err=yes
15623
 
fi
15624
 
if test -z "$ac_cpp_err"; then
15625
 
  ac_cv_header_sys_sysmacros_h=yes
15626
 
else
15627
 
  echo "$as_me: failed program was:" >&5
15628
 
  cat conftest.$ac_ext >&5
15629
 
  ac_cv_header_sys_sysmacros_h=no
15630
 
fi
15631
 
rm -f conftest.err conftest.$ac_ext
15632
 
fi
15633
 
echo "$as_me:15633: result: $ac_cv_header_sys_sysmacros_h" >&5
15634
 
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
15635
 
if test $ac_cv_header_sys_sysmacros_h = yes; then
15636
 
 
15637
 
cat >>confdefs.h <<\EOF
15638
 
#define MAJOR_IN_SYSMACROS 1
15639
 
EOF
15640
 
 
15641
 
fi
15642
 
 
15643
 
  fi
15644
 
fi
15645
 
 
15646
 
for ac_func in vprintf
15647
 
do
15648
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15649
 
echo "$as_me:15649: checking for $ac_func" >&5
15650
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15651
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
15652
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15653
 
else
15654
 
  cat >conftest.$ac_ext <<_ACEOF
15655
 
#line 15655 "configure"
15656
 
#include "confdefs.h"
15657
 
/* System header to define __stub macros and hopefully few prototypes,
15658
 
    which can conflict with char $ac_func (); below.  */
15659
 
#include <assert.h>
15660
 
/* Override any gcc2 internal prototype to avoid an error.  */
15661
 
#ifdef __cplusplus
15662
 
extern "C"
15663
 
#endif
15664
 
/* We use char because int might match the return type of a gcc2
15665
 
   builtin and then its argument prototype would still apply.  */
15666
 
char $ac_func ();
15667
 
char (*f) ();
15668
 
 
15669
 
int
15670
 
main ()
15671
 
{
15672
 
/* The GNU C library defines this for functions which it implements
15673
 
    to always fail with ENOSYS.  Some functions are actually named
15674
 
    something starting with __ and the normal name is an alias.  */
15675
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15676
 
choke me
15677
 
#else
15678
 
f = $ac_func;
15679
 
#endif
15680
 
 
15681
 
  ;
15682
 
  return 0;
15683
 
}
15684
 
_ACEOF
15685
 
rm -f conftest.$ac_objext conftest$ac_exeext
15686
 
if { (eval echo "$as_me:15686: \"$ac_link\"") >&5
15687
 
  (eval $ac_link) 2>&5
15688
 
  ac_status=$?
15689
 
  echo "$as_me:15689: \$? = $ac_status" >&5
15690
 
  (exit $ac_status); } &&
15691
 
         { ac_try='test -s conftest$ac_exeext'
15692
 
  { (eval echo "$as_me:15692: \"$ac_try\"") >&5
15693
 
  (eval $ac_try) 2>&5
15694
 
  ac_status=$?
15695
 
  echo "$as_me:15695: \$? = $ac_status" >&5
15696
 
  (exit $ac_status); }; }; then
15697
 
  eval "$as_ac_var=yes"
15698
 
else
15699
 
  echo "$as_me: failed program was:" >&5
15700
 
cat conftest.$ac_ext >&5
15701
 
eval "$as_ac_var=no"
15702
 
fi
15703
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15704
 
fi
15705
 
echo "$as_me:15705: result: `eval echo '${'$as_ac_var'}'`" >&5
15706
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15707
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
15708
 
  cat >>confdefs.h <<EOF
15709
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15710
 
EOF
15711
 
 
15712
 
echo "$as_me:15712: checking for _doprnt" >&5
15713
 
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15714
 
if test "${ac_cv_func__doprnt+set}" = set; then
15715
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15716
 
else
15717
 
  cat >conftest.$ac_ext <<_ACEOF
15718
 
#line 15718 "configure"
15719
 
#include "confdefs.h"
15720
 
/* System header to define __stub macros and hopefully few prototypes,
15721
 
    which can conflict with char _doprnt (); below.  */
15722
 
#include <assert.h>
15723
 
/* Override any gcc2 internal prototype to avoid an error.  */
15724
 
#ifdef __cplusplus
15725
 
extern "C"
15726
 
#endif
15727
 
/* We use char because int might match the return type of a gcc2
15728
 
   builtin and then its argument prototype would still apply.  */
15729
 
char _doprnt ();
15730
 
char (*f) ();
15731
 
 
15732
 
int
15733
 
main ()
15734
 
{
15735
 
/* The GNU C library defines this for functions which it implements
15736
 
    to always fail with ENOSYS.  Some functions are actually named
15737
 
    something starting with __ and the normal name is an alias.  */
15738
 
#if defined (__stub__doprnt) || defined (__stub____doprnt)
15739
 
choke me
15740
 
#else
15741
 
f = _doprnt;
15742
 
#endif
15743
 
 
15744
 
  ;
15745
 
  return 0;
15746
 
}
15747
 
_ACEOF
15748
 
rm -f conftest.$ac_objext conftest$ac_exeext
15749
 
if { (eval echo "$as_me:15749: \"$ac_link\"") >&5
15750
 
  (eval $ac_link) 2>&5
15751
 
  ac_status=$?
15752
 
  echo "$as_me:15752: \$? = $ac_status" >&5
15753
 
  (exit $ac_status); } &&
15754
 
         { ac_try='test -s conftest$ac_exeext'
15755
 
  { (eval echo "$as_me:15755: \"$ac_try\"") >&5
15756
 
  (eval $ac_try) 2>&5
15757
 
  ac_status=$?
15758
 
  echo "$as_me:15758: \$? = $ac_status" >&5
15759
 
  (exit $ac_status); }; }; then
15760
 
  ac_cv_func__doprnt=yes
15761
 
else
15762
 
  echo "$as_me: failed program was:" >&5
15763
 
cat conftest.$ac_ext >&5
15764
 
ac_cv_func__doprnt=no
15765
 
fi
15766
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15767
 
fi
15768
 
echo "$as_me:15768: result: $ac_cv_func__doprnt" >&5
15769
 
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15770
 
if test $ac_cv_func__doprnt = yes; then
15771
 
 
15772
 
cat >>confdefs.h <<\EOF
15773
 
#define HAVE_DOPRNT 1
15774
 
EOF
15775
 
 
15776
 
fi
15777
 
 
15778
 
fi
15779
 
done
15780
 
 
15781
 
for ac_header in stdlib.h
15782
 
do
15783
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15784
 
echo "$as_me:15784: checking for $ac_header" >&5
15785
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15786
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
15787
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15788
 
else
15789
 
  cat >conftest.$ac_ext <<_ACEOF
15790
 
#line 15790 "configure"
15791
 
#include "confdefs.h"
15792
 
#include <$ac_header>
15793
 
_ACEOF
15794
 
if { (eval echo "$as_me:15794: \"$ac_cpp conftest.$ac_ext\"") >&5
15795
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15796
 
  ac_status=$?
15797
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
15798
 
  rm -f conftest.er1
15799
 
  cat conftest.err >&5
15800
 
  echo "$as_me:15800: \$? = $ac_status" >&5
15801
 
  (exit $ac_status); } >/dev/null; then
15802
 
  if test -s conftest.err; then
15803
 
    ac_cpp_err=$ac_c_preproc_warn_flag
15804
 
  else
15805
 
    ac_cpp_err=
15806
 
  fi
15807
 
else
15808
 
  ac_cpp_err=yes
15809
 
fi
15810
 
if test -z "$ac_cpp_err"; then
15811
 
  eval "$as_ac_Header=yes"
15812
 
else
15813
 
  echo "$as_me: failed program was:" >&5
15814
 
  cat conftest.$ac_ext >&5
15815
 
  eval "$as_ac_Header=no"
15816
 
fi
15817
 
rm -f conftest.err conftest.$ac_ext
15818
 
fi
15819
 
echo "$as_me:15819: result: `eval echo '${'$as_ac_Header'}'`" >&5
15820
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15821
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
15822
 
  cat >>confdefs.h <<EOF
15823
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15824
 
EOF
15825
 
 
15826
 
fi
15827
 
done
15828
 
 
15829
 
echo "$as_me:15829: checking for working malloc" >&5
15830
 
echo $ECHO_N "checking for working malloc... $ECHO_C" >&6
15831
 
if test "${ac_cv_func_malloc_works+set}" = set; then
15832
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15833
 
else
15834
 
  if test "$cross_compiling" = yes; then
15835
 
  ac_cv_func_malloc_works=no
15836
 
else
15837
 
  cat >conftest.$ac_ext <<_ACEOF
15838
 
#line 15838 "configure"
15839
 
#include "confdefs.h"
15840
 
#if STDC_HEADERS || HAVE_STDLIB_H
15841
 
# include <stdlib.h>
15842
 
#else
15843
 
char *malloc ();
15844
 
#endif
15845
 
 
15846
 
int
15847
 
main ()
15848
 
{
15849
 
exit (malloc (0) ? 0 : 1);
15850
 
  ;
15851
 
  return 0;
15852
 
}
15853
 
_ACEOF
15854
 
rm -f conftest$ac_exeext
15855
 
if { (eval echo "$as_me:15855: \"$ac_link\"") >&5
15856
 
  (eval $ac_link) 2>&5
15857
 
  ac_status=$?
15858
 
  echo "$as_me:15858: \$? = $ac_status" >&5
15859
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15860
 
  { (eval echo "$as_me:15860: \"$ac_try\"") >&5
15861
 
  (eval $ac_try) 2>&5
15862
 
  ac_status=$?
15863
 
  echo "$as_me:15863: \$? = $ac_status" >&5
15864
 
  (exit $ac_status); }; }; then
15865
 
  ac_cv_func_malloc_works=yes
15866
 
else
15867
 
  echo "$as_me: program exited with status $ac_status" >&5
15868
 
echo "$as_me: failed program was:" >&5
15869
 
cat conftest.$ac_ext >&5
15870
 
ac_cv_func_malloc_works=no
15871
 
fi
15872
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15873
 
fi
15874
 
fi
15875
 
echo "$as_me:15875: result: $ac_cv_func_malloc_works" >&5
15876
 
echo "${ECHO_T}$ac_cv_func_malloc_works" >&6
15877
 
if test $ac_cv_func_malloc_works = yes; then
15878
 
 
15879
 
cat >>confdefs.h <<\EOF
15880
 
#define HAVE_MALLOC 1
15881
 
EOF
15882
 
 
15883
 
fi
15884
 
 
15885
 
echo "$as_me:15885: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
15886
 
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
15887
 
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
15888
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15889
 
else
15890
 
  rm -f conftest.sym conftest.file
15891
 
echo >conftest.file
15892
 
if ln -s conftest.file conftest.sym; then
15893
 
  if test "$cross_compiling" = yes; then
15894
 
  ac_cv_func_lstat_dereferences_slashed_symlink=no
15895
 
else
15896
 
  cat >conftest.$ac_ext <<_ACEOF
15897
 
#line 15897 "configure"
15898
 
#include "confdefs.h"
15899
 
$ac_includes_default
15900
 
int
15901
 
main ()
15902
 
{
15903
 
struct stat sbuf;
15904
 
     /* Linux will dereference the symlink and fail.
15905
 
        That is better in the sense that it means we will not
15906
 
        have to compile and use the lstat wrapper.  */
15907
 
     exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
15908
 
  ;
15909
 
  return 0;
15910
 
}
15911
 
_ACEOF
15912
 
rm -f conftest$ac_exeext
15913
 
if { (eval echo "$as_me:15913: \"$ac_link\"") >&5
15914
 
  (eval $ac_link) 2>&5
15915
 
  ac_status=$?
15916
 
  echo "$as_me:15916: \$? = $ac_status" >&5
15917
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15918
 
  { (eval echo "$as_me:15918: \"$ac_try\"") >&5
15919
 
  (eval $ac_try) 2>&5
15920
 
  ac_status=$?
15921
 
  echo "$as_me:15921: \$? = $ac_status" >&5
15922
 
  (exit $ac_status); }; }; then
15923
 
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
15924
 
else
15925
 
  echo "$as_me: program exited with status $ac_status" >&5
15926
 
echo "$as_me: failed program was:" >&5
15927
 
cat conftest.$ac_ext >&5
15928
 
ac_cv_func_lstat_dereferences_slashed_symlink=no
15929
 
fi
15930
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15931
 
fi
15932
 
else
15933
 
  # If the `ln -s' command failed, then we probably don't even
15934
 
  # have an lstat function.
15935
 
  ac_cv_func_lstat_dereferences_slashed_symlink=no
15936
 
fi
15937
 
rm -f conftest.sym conftest.file
15938
 
 
15939
 
fi
15940
 
echo "$as_me:15940: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
15941
 
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
15942
 
 
15943
 
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
15944
 
 
15945
 
cat >>confdefs.h <<EOF
15946
 
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
15947
 
EOF
15948
 
 
15949
 
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
15950
 
  LIBOBJS="$LIBOBJS lstat.$ac_objext"
15951
 
fi
15952
 
 
15953
 
echo "$as_me:15953: checking whether stat accepts an empty string" >&5
15954
 
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
15955
 
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
15956
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
15957
 
else
15958
 
  if test "$cross_compiling" = yes; then
15959
 
  ac_cv_func_stat_empty_string_bug=yes
15960
 
else
15961
 
  cat >conftest.$ac_ext <<_ACEOF
15962
 
#line 15962 "configure"
15963
 
#include "confdefs.h"
15964
 
$ac_includes_default
15965
 
int
15966
 
main ()
15967
 
{
15968
 
struct stat sbuf;
15969
 
  exit (stat ("", &sbuf) ? 1 : 0);
15970
 
  ;
15971
 
  return 0;
15972
 
}
15973
 
_ACEOF
15974
 
rm -f conftest$ac_exeext
15975
 
if { (eval echo "$as_me:15975: \"$ac_link\"") >&5
15976
 
  (eval $ac_link) 2>&5
15977
 
  ac_status=$?
15978
 
  echo "$as_me:15978: \$? = $ac_status" >&5
15979
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15980
 
  { (eval echo "$as_me:15980: \"$ac_try\"") >&5
15981
 
  (eval $ac_try) 2>&5
15982
 
  ac_status=$?
15983
 
  echo "$as_me:15983: \$? = $ac_status" >&5
15984
 
  (exit $ac_status); }; }; then
15985
 
  ac_cv_func_stat_empty_string_bug=yes
15986
 
else
15987
 
  echo "$as_me: program exited with status $ac_status" >&5
15988
 
echo "$as_me: failed program was:" >&5
15989
 
cat conftest.$ac_ext >&5
15990
 
ac_cv_func_stat_empty_string_bug=no
15991
 
fi
15992
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15993
 
fi
15994
 
fi
15995
 
echo "$as_me:15995: result: $ac_cv_func_stat_empty_string_bug" >&5
15996
 
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
15997
 
if test $ac_cv_func_stat_empty_string_bug = yes; then
15998
 
  LIBOBJS="$LIBOBJS stat.$ac_objext"
15999
 
 
16000
 
cat >>confdefs.h <<EOF
16001
 
#define HAVE_STAT_EMPTY_STRING_BUG 1
16002
 
EOF
16003
 
 
16004
 
fi
16005
 
 
16006
 
for ac_func in getcwd mkdir strstr strtol dup2 getwd memchr memset strrchr pow
16007
 
do
16008
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16009
 
echo "$as_me:16009: checking for $ac_func" >&5
16010
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16011
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
16012
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16013
 
else
16014
 
  cat >conftest.$ac_ext <<_ACEOF
16015
 
#line 16015 "configure"
16016
 
#include "confdefs.h"
16017
 
/* System header to define __stub macros and hopefully few prototypes,
16018
 
    which can conflict with char $ac_func (); below.  */
16019
 
#include <assert.h>
16020
 
/* Override any gcc2 internal prototype to avoid an error.  */
16021
 
#ifdef __cplusplus
16022
 
extern "C"
16023
 
#endif
16024
 
/* We use char because int might match the return type of a gcc2
16025
 
   builtin and then its argument prototype would still apply.  */
16026
 
char $ac_func ();
16027
 
char (*f) ();
16028
 
 
16029
 
int
16030
 
main ()
16031
 
{
16032
 
/* The GNU C library defines this for functions which it implements
16033
 
    to always fail with ENOSYS.  Some functions are actually named
16034
 
    something starting with __ and the normal name is an alias.  */
16035
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16036
 
choke me
16037
 
#else
16038
 
f = $ac_func;
16039
 
#endif
16040
 
 
16041
 
  ;
16042
 
  return 0;
16043
 
}
16044
 
_ACEOF
16045
 
rm -f conftest.$ac_objext conftest$ac_exeext
16046
 
if { (eval echo "$as_me:16046: \"$ac_link\"") >&5
16047
 
  (eval $ac_link) 2>&5
16048
 
  ac_status=$?
16049
 
  echo "$as_me:16049: \$? = $ac_status" >&5
16050
 
  (exit $ac_status); } &&
16051
 
         { ac_try='test -s conftest$ac_exeext'
16052
 
  { (eval echo "$as_me:16052: \"$ac_try\"") >&5
16053
 
  (eval $ac_try) 2>&5
16054
 
  ac_status=$?
16055
 
  echo "$as_me:16055: \$? = $ac_status" >&5
16056
 
  (exit $ac_status); }; }; then
16057
 
  eval "$as_ac_var=yes"
16058
 
else
16059
 
  echo "$as_me: failed program was:" >&5
16060
 
cat conftest.$ac_ext >&5
16061
 
eval "$as_ac_var=no"
16062
 
fi
16063
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16064
 
fi
16065
 
echo "$as_me:16065: result: `eval echo '${'$as_ac_var'}'`" >&5
16066
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16067
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
16068
 
  cat >>confdefs.h <<EOF
16069
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16070
 
EOF
16071
 
 
16072
 
fi
16073
 
done
16074
 
 
16075
 
ALL_LINGUAS="fr de it es nl"
16076
 
if test -n "$ac_tool_prefix"; then
16077
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16078
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16079
 
echo "$as_me:16079: checking for $ac_word" >&5
16080
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16081
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
16082
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16083
 
else
16084
 
  if test -n "$RANLIB"; then
16085
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16086
 
else
16087
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
16088
 
ac_dummy="$PATH"
16089
 
for ac_dir in $ac_dummy; do
16090
 
  IFS=$ac_save_IFS
16091
 
  test -z "$ac_dir" && ac_dir=.
16092
 
  $as_executable_p "$ac_dir/$ac_word" || continue
16093
 
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16094
 
echo "$as_me:16094: found $ac_dir/$ac_word" >&5
16095
 
break
16096
 
done
16097
 
 
16098
 
fi
16099
 
fi
16100
 
RANLIB=$ac_cv_prog_RANLIB
16101
 
if test -n "$RANLIB"; then
16102
 
  echo "$as_me:16102: result: $RANLIB" >&5
16103
 
echo "${ECHO_T}$RANLIB" >&6
16104
 
else
16105
 
  echo "$as_me:16105: result: no" >&5
16106
 
echo "${ECHO_T}no" >&6
16107
 
fi
16108
 
 
16109
 
fi
16110
 
if test -z "$ac_cv_prog_RANLIB"; then
16111
 
  ac_ct_RANLIB=$RANLIB
16112
 
  # Extract the first word of "ranlib", so it can be a program name with args.
16113
 
set dummy ranlib; ac_word=$2
16114
 
echo "$as_me:16114: checking for $ac_word" >&5
16115
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16116
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
16117
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16118
 
else
16119
 
  if test -n "$ac_ct_RANLIB"; then
16120
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16121
 
else
16122
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
16123
 
ac_dummy="$PATH"
16124
 
for ac_dir in $ac_dummy; do
16125
 
  IFS=$ac_save_IFS
16126
 
  test -z "$ac_dir" && ac_dir=.
16127
 
  $as_executable_p "$ac_dir/$ac_word" || continue
16128
 
ac_cv_prog_ac_ct_RANLIB="ranlib"
16129
 
echo "$as_me:16129: found $ac_dir/$ac_word" >&5
16130
 
break
16131
 
done
16132
 
 
16133
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
16134
 
fi
16135
 
fi
16136
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16137
 
if test -n "$ac_ct_RANLIB"; then
16138
 
  echo "$as_me:16138: result: $ac_ct_RANLIB" >&5
16139
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
16140
 
else
16141
 
  echo "$as_me:16141: result: no" >&5
16142
 
echo "${ECHO_T}no" >&6
16143
 
fi
16144
 
 
16145
 
  RANLIB=$ac_ct_RANLIB
16146
 
else
16147
 
  RANLIB="$ac_cv_prog_RANLIB"
16148
 
fi
16149
 
 
16150
 
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16151
 
# for constant arguments.  Useless!
16152
 
echo "$as_me:16152: checking for working alloca.h" >&5
16153
 
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16154
 
if test "${ac_cv_working_alloca_h+set}" = set; then
16155
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16156
 
else
16157
 
  cat >conftest.$ac_ext <<_ACEOF
16158
 
#line 16158 "configure"
16159
 
#include "confdefs.h"
16160
 
#include <alloca.h>
16161
 
int
16162
 
main ()
16163
 
{
16164
 
char *p = (char *) alloca (2 * sizeof (int));
16165
 
  ;
16166
 
  return 0;
16167
 
}
16168
 
_ACEOF
16169
 
rm -f conftest.$ac_objext conftest$ac_exeext
16170
 
if { (eval echo "$as_me:16170: \"$ac_link\"") >&5
16171
 
  (eval $ac_link) 2>&5
16172
 
  ac_status=$?
16173
 
  echo "$as_me:16173: \$? = $ac_status" >&5
16174
 
  (exit $ac_status); } &&
16175
 
         { ac_try='test -s conftest$ac_exeext'
16176
 
  { (eval echo "$as_me:16176: \"$ac_try\"") >&5
16177
 
  (eval $ac_try) 2>&5
16178
 
  ac_status=$?
16179
 
  echo "$as_me:16179: \$? = $ac_status" >&5
16180
 
  (exit $ac_status); }; }; then
16181
 
  ac_cv_working_alloca_h=yes
16182
 
else
16183
 
  echo "$as_me: failed program was:" >&5
16184
 
cat conftest.$ac_ext >&5
16185
 
ac_cv_working_alloca_h=no
16186
 
fi
16187
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16188
 
fi
16189
 
echo "$as_me:16189: result: $ac_cv_working_alloca_h" >&5
16190
 
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16191
 
if test $ac_cv_working_alloca_h = yes; then
16192
 
 
16193
 
cat >>confdefs.h <<\EOF
16194
 
#define HAVE_ALLOCA_H 1
16195
 
EOF
16196
 
 
16197
 
fi
16198
 
 
16199
 
echo "$as_me:16199: checking for alloca" >&5
16200
 
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16201
 
if test "${ac_cv_func_alloca_works+set}" = set; then
16202
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16203
 
else
16204
 
  cat >conftest.$ac_ext <<_ACEOF
16205
 
#line 16205 "configure"
16206
 
#include "confdefs.h"
16207
 
#ifdef __GNUC__
16208
 
# define alloca __builtin_alloca
16209
 
#else
16210
 
# ifdef _MSC_VER
16211
 
#  include <malloc.h>
16212
 
#  define alloca _alloca
16213
 
# else
16214
 
#  if HAVE_ALLOCA_H
16215
 
#   include <alloca.h>
16216
 
#  else
16217
 
#   ifdef _AIX
16218
 
 #pragma alloca
16219
 
#   else
16220
 
#    ifndef alloca /* predefined by HP cc +Olibcalls */
16221
 
char *alloca ();
16222
 
#    endif
16223
 
#   endif
16224
 
#  endif
16225
 
# endif
16226
 
#endif
16227
 
 
16228
 
int
16229
 
main ()
16230
 
{
16231
 
char *p = (char *) alloca (1);
16232
 
  ;
16233
 
  return 0;
16234
 
}
16235
 
_ACEOF
16236
 
rm -f conftest.$ac_objext conftest$ac_exeext
16237
 
if { (eval echo "$as_me:16237: \"$ac_link\"") >&5
16238
 
  (eval $ac_link) 2>&5
16239
 
  ac_status=$?
16240
 
  echo "$as_me:16240: \$? = $ac_status" >&5
16241
 
  (exit $ac_status); } &&
16242
 
         { ac_try='test -s conftest$ac_exeext'
16243
 
  { (eval echo "$as_me:16243: \"$ac_try\"") >&5
16244
 
  (eval $ac_try) 2>&5
16245
 
  ac_status=$?
16246
 
  echo "$as_me:16246: \$? = $ac_status" >&5
16247
 
  (exit $ac_status); }; }; then
16248
 
  ac_cv_func_alloca_works=yes
16249
 
else
16250
 
  echo "$as_me: failed program was:" >&5
16251
 
cat conftest.$ac_ext >&5
16252
 
ac_cv_func_alloca_works=no
16253
 
fi
16254
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16255
 
fi
16256
 
echo "$as_me:16256: result: $ac_cv_func_alloca_works" >&5
16257
 
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16258
 
 
16259
 
if test $ac_cv_func_alloca_works = yes; then
16260
 
 
16261
 
cat >>confdefs.h <<\EOF
16262
 
#define HAVE_ALLOCA 1
16263
 
EOF
16264
 
 
16265
 
else
16266
 
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16267
 
# that cause trouble.  Some versions do not even contain alloca or
16268
 
# contain a buggy version.  If you still want to use their alloca,
16269
 
# use ar to extract alloca.o from them instead of compiling alloca.c.
16270
 
 
16271
 
ALLOCA=alloca.$ac_objext
16272
 
 
16273
 
cat >>confdefs.h <<\EOF
16274
 
#define C_ALLOCA 1
16275
 
EOF
16276
 
 
16277
 
echo "$as_me:16277: checking whether \`alloca.c' needs Cray hooks" >&5
16278
 
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16279
 
if test "${ac_cv_os_cray+set}" = set; then
16280
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16281
 
else
16282
 
  cat >conftest.$ac_ext <<_ACEOF
16283
 
#line 16283 "configure"
16284
 
#include "confdefs.h"
16285
 
#if defined(CRAY) && ! defined(CRAY2)
16286
 
webecray
16287
 
#else
16288
 
wenotbecray
16289
 
#endif
16290
 
 
16291
 
_ACEOF
16292
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16293
 
  egrep "webecray" >/dev/null 2>&1; then
16294
 
  ac_cv_os_cray=yes
16295
 
else
16296
 
  ac_cv_os_cray=no
16297
 
fi
16298
 
rm -f conftest*
16299
 
 
16300
 
fi
16301
 
echo "$as_me:16301: result: $ac_cv_os_cray" >&5
16302
 
echo "${ECHO_T}$ac_cv_os_cray" >&6
16303
 
if test $ac_cv_os_cray = yes; then
16304
 
  for ac_func in _getb67 GETB67 getb67; do
16305
 
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16306
 
echo "$as_me:16306: checking for $ac_func" >&5
16307
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16308
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
16309
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16310
 
else
16311
 
  cat >conftest.$ac_ext <<_ACEOF
16312
 
#line 16312 "configure"
16313
 
#include "confdefs.h"
16314
 
/* System header to define __stub macros and hopefully few prototypes,
16315
 
    which can conflict with char $ac_func (); below.  */
16316
 
#include <assert.h>
16317
 
/* Override any gcc2 internal prototype to avoid an error.  */
16318
 
#ifdef __cplusplus
16319
 
extern "C"
16320
 
#endif
16321
 
/* We use char because int might match the return type of a gcc2
16322
 
   builtin and then its argument prototype would still apply.  */
16323
 
char $ac_func ();
16324
 
char (*f) ();
16325
 
 
16326
 
int
16327
 
main ()
16328
 
{
16329
 
/* The GNU C library defines this for functions which it implements
16330
 
    to always fail with ENOSYS.  Some functions are actually named
16331
 
    something starting with __ and the normal name is an alias.  */
16332
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16333
 
choke me
16334
 
#else
16335
 
f = $ac_func;
16336
 
#endif
16337
 
 
16338
 
  ;
16339
 
  return 0;
16340
 
}
16341
 
_ACEOF
16342
 
rm -f conftest.$ac_objext conftest$ac_exeext
16343
 
if { (eval echo "$as_me:16343: \"$ac_link\"") >&5
16344
 
  (eval $ac_link) 2>&5
16345
 
  ac_status=$?
16346
 
  echo "$as_me:16346: \$? = $ac_status" >&5
16347
 
  (exit $ac_status); } &&
16348
 
         { ac_try='test -s conftest$ac_exeext'
16349
 
  { (eval echo "$as_me:16349: \"$ac_try\"") >&5
16350
 
  (eval $ac_try) 2>&5
16351
 
  ac_status=$?
16352
 
  echo "$as_me:16352: \$? = $ac_status" >&5
16353
 
  (exit $ac_status); }; }; then
16354
 
  eval "$as_ac_var=yes"
16355
 
else
16356
 
  echo "$as_me: failed program was:" >&5
16357
 
cat conftest.$ac_ext >&5
16358
 
eval "$as_ac_var=no"
16359
 
fi
16360
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16361
 
fi
16362
 
echo "$as_me:16362: result: `eval echo '${'$as_ac_var'}'`" >&5
16363
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16364
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
16365
 
 
16366
 
cat >>confdefs.h <<EOF
16367
 
#define CRAY_STACKSEG_END $ac_func
16368
 
EOF
16369
 
 
16370
 
    break
16371
 
fi
16372
 
 
16373
 
  done
16374
 
fi
16375
 
 
16376
 
echo "$as_me:16376: checking stack direction for C alloca" >&5
16377
 
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16378
 
if test "${ac_cv_c_stack_direction+set}" = set; then
16379
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16380
 
else
16381
 
  if test "$cross_compiling" = yes; then
16382
 
  ac_cv_c_stack_direction=0
16383
 
else
16384
 
  cat >conftest.$ac_ext <<_ACEOF
16385
 
#line 16385 "configure"
16386
 
#include "confdefs.h"
16387
 
int
16388
 
find_stack_direction ()
16389
 
{
16390
 
  static char *addr = 0;
16391
 
  auto char dummy;
16392
 
  if (addr == 0)
16393
 
    {
16394
 
      addr = &dummy;
16395
 
      return find_stack_direction ();
16396
 
    }
16397
 
  else
16398
 
    return (&dummy > addr) ? 1 : -1;
16399
 
}
16400
 
 
16401
 
int
16402
 
main ()
16403
 
{
16404
 
  exit (find_stack_direction () < 0);
16405
 
}
16406
 
_ACEOF
16407
 
rm -f conftest$ac_exeext
16408
 
if { (eval echo "$as_me:16408: \"$ac_link\"") >&5
16409
 
  (eval $ac_link) 2>&5
16410
 
  ac_status=$?
16411
 
  echo "$as_me:16411: \$? = $ac_status" >&5
16412
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16413
 
  { (eval echo "$as_me:16413: \"$ac_try\"") >&5
16414
 
  (eval $ac_try) 2>&5
16415
 
  ac_status=$?
16416
 
  echo "$as_me:16416: \$? = $ac_status" >&5
16417
 
  (exit $ac_status); }; }; then
16418
 
  ac_cv_c_stack_direction=1
16419
 
else
16420
 
  echo "$as_me: program exited with status $ac_status" >&5
16421
 
echo "$as_me: failed program was:" >&5
16422
 
cat conftest.$ac_ext >&5
16423
 
ac_cv_c_stack_direction=-1
16424
 
fi
16425
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16426
 
fi
16427
 
fi
16428
 
echo "$as_me:16428: result: $ac_cv_c_stack_direction" >&5
16429
 
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16430
 
 
16431
 
cat >>confdefs.h <<EOF
16432
 
#define STACK_DIRECTION $ac_cv_c_stack_direction
16433
 
EOF
16434
 
 
16435
 
fi
16436
 
 
16437
 
for ac_header in stdlib.h unistd.h
16438
 
do
16439
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16440
 
echo "$as_me:16440: checking for $ac_header" >&5
16441
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16442
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
16443
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16444
 
else
16445
 
  cat >conftest.$ac_ext <<_ACEOF
16446
 
#line 16446 "configure"
16447
 
#include "confdefs.h"
16448
 
#include <$ac_header>
16449
 
_ACEOF
16450
 
if { (eval echo "$as_me:16450: \"$ac_cpp conftest.$ac_ext\"") >&5
16451
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16452
 
  ac_status=$?
16453
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
16454
 
  rm -f conftest.er1
16455
 
  cat conftest.err >&5
16456
 
  echo "$as_me:16456: \$? = $ac_status" >&5
16457
 
  (exit $ac_status); } >/dev/null; then
16458
 
  if test -s conftest.err; then
16459
 
    ac_cpp_err=$ac_c_preproc_warn_flag
16460
 
  else
16461
 
    ac_cpp_err=
16462
 
  fi
16463
 
else
16464
 
  ac_cpp_err=yes
16465
 
fi
16466
 
if test -z "$ac_cpp_err"; then
16467
 
  eval "$as_ac_Header=yes"
16468
 
else
16469
 
  echo "$as_me: failed program was:" >&5
16470
 
  cat conftest.$ac_ext >&5
16471
 
  eval "$as_ac_Header=no"
16472
 
fi
16473
 
rm -f conftest.err conftest.$ac_ext
16474
 
fi
16475
 
echo "$as_me:16475: result: `eval echo '${'$as_ac_Header'}'`" >&5
16476
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16477
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
16478
 
  cat >>confdefs.h <<EOF
16479
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16480
 
EOF
16481
 
 
16482
 
fi
16483
 
done
16484
 
 
16485
 
for ac_func in getpagesize
16486
 
do
16487
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16488
 
echo "$as_me:16488: checking for $ac_func" >&5
16489
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16490
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
16491
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16492
 
else
16493
 
  cat >conftest.$ac_ext <<_ACEOF
16494
 
#line 16494 "configure"
16495
 
#include "confdefs.h"
16496
 
/* System header to define __stub macros and hopefully few prototypes,
16497
 
    which can conflict with char $ac_func (); below.  */
16498
 
#include <assert.h>
16499
 
/* Override any gcc2 internal prototype to avoid an error.  */
16500
 
#ifdef __cplusplus
16501
 
extern "C"
16502
 
#endif
16503
 
/* We use char because int might match the return type of a gcc2
16504
 
   builtin and then its argument prototype would still apply.  */
16505
 
char $ac_func ();
16506
 
char (*f) ();
16507
 
 
16508
 
int
16509
 
main ()
16510
 
{
16511
 
/* The GNU C library defines this for functions which it implements
16512
 
    to always fail with ENOSYS.  Some functions are actually named
16513
 
    something starting with __ and the normal name is an alias.  */
16514
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16515
 
choke me
16516
 
#else
16517
 
f = $ac_func;
16518
 
#endif
16519
 
 
16520
 
  ;
16521
 
  return 0;
16522
 
}
16523
 
_ACEOF
16524
 
rm -f conftest.$ac_objext conftest$ac_exeext
16525
 
if { (eval echo "$as_me:16525: \"$ac_link\"") >&5
16526
 
  (eval $ac_link) 2>&5
16527
 
  ac_status=$?
16528
 
  echo "$as_me:16528: \$? = $ac_status" >&5
16529
 
  (exit $ac_status); } &&
16530
 
         { ac_try='test -s conftest$ac_exeext'
16531
 
  { (eval echo "$as_me:16531: \"$ac_try\"") >&5
16532
 
  (eval $ac_try) 2>&5
16533
 
  ac_status=$?
16534
 
  echo "$as_me:16534: \$? = $ac_status" >&5
16535
 
  (exit $ac_status); }; }; then
16536
 
  eval "$as_ac_var=yes"
16537
 
else
16538
 
  echo "$as_me: failed program was:" >&5
16539
 
cat conftest.$ac_ext >&5
16540
 
eval "$as_ac_var=no"
16541
 
fi
16542
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16543
 
fi
16544
 
echo "$as_me:16544: result: `eval echo '${'$as_ac_var'}'`" >&5
16545
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16546
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
16547
 
  cat >>confdefs.h <<EOF
16548
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16549
 
EOF
16550
 
 
16551
 
fi
16552
 
done
16553
 
 
16554
 
echo "$as_me:16554: checking for working mmap" >&5
16555
 
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
16556
 
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
16557
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16558
 
else
16559
 
  if test "$cross_compiling" = yes; then
16560
 
  ac_cv_func_mmap_fixed_mapped=no
16561
 
else
16562
 
  cat >conftest.$ac_ext <<_ACEOF
16563
 
#line 16563 "configure"
16564
 
#include "confdefs.h"
16565
 
$ac_includes_default
16566
 
/* Thanks to Mike Haertel and Jim Avera for this test.
16567
 
   Here is a matrix of mmap possibilities:
16568
 
        mmap private not fixed
16569
 
        mmap private fixed at somewhere currently unmapped
16570
 
        mmap private fixed at somewhere already mapped
16571
 
        mmap shared not fixed
16572
 
        mmap shared fixed at somewhere currently unmapped
16573
 
        mmap shared fixed at somewhere already mapped
16574
 
   For private mappings, we should verify that changes cannot be read()
16575
 
   back from the file, nor mmap's back from the file at a different
16576
 
   address.  (There have been systems where private was not correctly
16577
 
   implemented like the infamous i386 svr4.0, and systems where the
16578
 
   VM page cache was not coherent with the file system buffer cache
16579
 
   like early versions of FreeBSD and possibly contemporary NetBSD.)
16580
 
   For shared mappings, we should conversely verify that changes get
16581
 
   propogated back to all the places they're supposed to be.
16582
 
 
16583
 
   Grep wants private fixed already mapped.
16584
 
   The main things grep needs to know about mmap are:
16585
 
   * does it exist and is it safe to write into the mmap'd area
16586
 
   * how to use it (BSD variants)  */
16587
 
 
16588
 
#include <fcntl.h>
16589
 
#include <sys/mman.h>
16590
 
 
16591
 
#if !STDC_HEADERS && !HAVE_STDLIB_H
16592
 
char *malloc ();
16593
 
#endif
16594
 
 
16595
 
/* This mess was copied from the GNU getpagesize.h.  */
16596
 
#if !HAVE_GETPAGESIZE
16597
 
/* Assume that all systems that can run configure have sys/param.h.  */
16598
 
# if !HAVE_SYS_PARAM_H
16599
 
#  define HAVE_SYS_PARAM_H 1
16600
 
# endif
16601
 
 
16602
 
# ifdef _SC_PAGESIZE
16603
 
#  define getpagesize() sysconf(_SC_PAGESIZE)
16604
 
# else /* no _SC_PAGESIZE */
16605
 
#  if HAVE_SYS_PARAM_H
16606
 
#   include <sys/param.h>
16607
 
#   ifdef EXEC_PAGESIZE
16608
 
#    define getpagesize() EXEC_PAGESIZE
16609
 
#   else /* no EXEC_PAGESIZE */
16610
 
#    ifdef NBPG
16611
 
#     define getpagesize() NBPG * CLSIZE
16612
 
#     ifndef CLSIZE
16613
 
#      define CLSIZE 1
16614
 
#     endif /* no CLSIZE */
16615
 
#    else /* no NBPG */
16616
 
#     ifdef NBPC
16617
 
#      define getpagesize() NBPC
16618
 
#     else /* no NBPC */
16619
 
#      ifdef PAGESIZE
16620
 
#       define getpagesize() PAGESIZE
16621
 
#      endif /* PAGESIZE */
16622
 
#     endif /* no NBPC */
16623
 
#    endif /* no NBPG */
16624
 
#   endif /* no EXEC_PAGESIZE */
16625
 
#  else /* no HAVE_SYS_PARAM_H */
16626
 
#   define getpagesize() 8192   /* punt totally */
16627
 
#  endif /* no HAVE_SYS_PARAM_H */
16628
 
# endif /* no _SC_PAGESIZE */
16629
 
 
16630
 
#endif /* no HAVE_GETPAGESIZE */
16631
 
 
16632
 
int
16633
 
main ()
16634
 
{
16635
 
  char *data, *data2, *data3;
16636
 
  int i, pagesize;
16637
 
  int fd;
16638
 
 
16639
 
  pagesize = getpagesize ();
16640
 
 
16641
 
  /* First, make a file with some known garbage in it. */
16642
 
  data = (char *) malloc (pagesize);
16643
 
  if (!data)
16644
 
    exit (1);
16645
 
  for (i = 0; i < pagesize; ++i)
16646
 
    *(data + i) = rand ();
16647
 
  umask (0);
16648
 
  fd = creat ("conftest.mmap", 0600);
16649
 
  if (fd < 0)
16650
 
    exit (1);
16651
 
  if (write (fd, data, pagesize) != pagesize)
16652
 
    exit (1);
16653
 
  close (fd);
16654
 
 
16655
 
  /* Next, try to mmap the file at a fixed address which already has
16656
 
     something else allocated at it.  If we can, also make sure that
16657
 
     we see the same garbage.  */
16658
 
  fd = open ("conftest.mmap", O_RDWR);
16659
 
  if (fd < 0)
16660
 
    exit (1);
16661
 
  data2 = (char *) malloc (2 * pagesize);
16662
 
  if (!data2)
16663
 
    exit (1);
16664
 
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
16665
 
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16666
 
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
16667
 
    exit (1);
16668
 
  for (i = 0; i < pagesize; ++i)
16669
 
    if (*(data + i) != *(data2 + i))
16670
 
      exit (1);
16671
 
 
16672
 
  /* Finally, make sure that changes to the mapped area do not
16673
 
     percolate back to the file as seen by read().  (This is a bug on
16674
 
     some variants of i386 svr4.0.)  */
16675
 
  for (i = 0; i < pagesize; ++i)
16676
 
    *(data2 + i) = *(data2 + i) + 1;
16677
 
  data3 = (char *) malloc (pagesize);
16678
 
  if (!data3)
16679
 
    exit (1);
16680
 
  if (read (fd, data3, pagesize) != pagesize)
16681
 
    exit (1);
16682
 
  for (i = 0; i < pagesize; ++i)
16683
 
    if (*(data + i) != *(data3 + i))
16684
 
      exit (1);
16685
 
  close (fd);
16686
 
  exit (0);
16687
 
}
16688
 
_ACEOF
16689
 
rm -f conftest$ac_exeext
16690
 
if { (eval echo "$as_me:16690: \"$ac_link\"") >&5
16691
 
  (eval $ac_link) 2>&5
16692
 
  ac_status=$?
16693
 
  echo "$as_me:16693: \$? = $ac_status" >&5
16694
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16695
 
  { (eval echo "$as_me:16695: \"$ac_try\"") >&5
16696
 
  (eval $ac_try) 2>&5
16697
 
  ac_status=$?
16698
 
  echo "$as_me:16698: \$? = $ac_status" >&5
16699
 
  (exit $ac_status); }; }; then
16700
 
  ac_cv_func_mmap_fixed_mapped=yes
16701
 
else
16702
 
  echo "$as_me: program exited with status $ac_status" >&5
16703
 
echo "$as_me: failed program was:" >&5
16704
 
cat conftest.$ac_ext >&5
16705
 
ac_cv_func_mmap_fixed_mapped=no
16706
 
fi
16707
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16708
 
fi
16709
 
fi
16710
 
echo "$as_me:16710: result: $ac_cv_func_mmap_fixed_mapped" >&5
16711
 
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16712
 
if test $ac_cv_func_mmap_fixed_mapped = yes; then
16713
 
 
16714
 
cat >>confdefs.h <<\EOF
16715
 
#define HAVE_MMAP 1
16716
 
EOF
16717
 
 
16718
 
fi
16719
 
rm -f conftest.mmap
16720
 
 
16721
 
    echo "$as_me:16721: checking whether we are using the GNU C Library 2.1 or newer" >&5
16722
 
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
16723
 
if test "${ac_cv_gnu_library_2_1+set}" = set; then
16724
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16725
 
else
16726
 
  cat >conftest.$ac_ext <<_ACEOF
16727
 
#line 16727 "configure"
16728
 
#include "confdefs.h"
16729
 
 
16730
 
#include <features.h>
16731
 
#ifdef __GNU_LIBRARY__
16732
 
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
16733
 
  Lucky GNU user
16734
 
 #endif
16735
 
#endif
16736
 
 
16737
 
_ACEOF
16738
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16739
 
  egrep "Lucky GNU user" >/dev/null 2>&1; then
16740
 
  ac_cv_gnu_library_2_1=yes
16741
 
else
16742
 
  ac_cv_gnu_library_2_1=no
16743
 
fi
16744
 
rm -f conftest*
16745
 
 
16746
 
fi
16747
 
echo "$as_me:16747: result: $ac_cv_gnu_library_2_1" >&5
16748
 
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
16749
 
 
16750
 
    GLIBC21="$ac_cv_gnu_library_2_1"
16751
 
 
16752
 
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
16753
 
stdlib.h string.h unistd.h sys/param.h
16754
 
do
16755
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16756
 
echo "$as_me:16756: checking for $ac_header" >&5
16757
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16758
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
16759
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16760
 
else
16761
 
  cat >conftest.$ac_ext <<_ACEOF
16762
 
#line 16762 "configure"
16763
 
#include "confdefs.h"
16764
 
#include <$ac_header>
16765
 
_ACEOF
16766
 
if { (eval echo "$as_me:16766: \"$ac_cpp conftest.$ac_ext\"") >&5
16767
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16768
 
  ac_status=$?
16769
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
16770
 
  rm -f conftest.er1
16771
 
  cat conftest.err >&5
16772
 
  echo "$as_me:16772: \$? = $ac_status" >&5
16773
 
  (exit $ac_status); } >/dev/null; then
16774
 
  if test -s conftest.err; then
16775
 
    ac_cpp_err=$ac_c_preproc_warn_flag
16776
 
  else
16777
 
    ac_cpp_err=
16778
 
  fi
16779
 
else
16780
 
  ac_cpp_err=yes
16781
 
fi
16782
 
if test -z "$ac_cpp_err"; then
16783
 
  eval "$as_ac_Header=yes"
16784
 
else
16785
 
  echo "$as_me: failed program was:" >&5
16786
 
  cat conftest.$ac_ext >&5
16787
 
  eval "$as_ac_Header=no"
16788
 
fi
16789
 
rm -f conftest.err conftest.$ac_ext
16790
 
fi
16791
 
echo "$as_me:16791: result: `eval echo '${'$as_ac_Header'}'`" >&5
16792
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16793
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
16794
 
  cat >>confdefs.h <<EOF
16795
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16796
 
EOF
16797
 
 
16798
 
fi
16799
 
done
16800
 
 
16801
 
for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
16802
 
getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
16803
 
strdup strtoul tsearch __argz_count __argz_stringify __argz_next
16804
 
do
16805
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16806
 
echo "$as_me:16806: checking for $ac_func" >&5
16807
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16808
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
16809
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16810
 
else
16811
 
  cat >conftest.$ac_ext <<_ACEOF
16812
 
#line 16812 "configure"
16813
 
#include "confdefs.h"
16814
 
/* System header to define __stub macros and hopefully few prototypes,
16815
 
    which can conflict with char $ac_func (); below.  */
16816
 
#include <assert.h>
16817
 
/* Override any gcc2 internal prototype to avoid an error.  */
16818
 
#ifdef __cplusplus
16819
 
extern "C"
16820
 
#endif
16821
 
/* We use char because int might match the return type of a gcc2
16822
 
   builtin and then its argument prototype would still apply.  */
16823
 
char $ac_func ();
16824
 
char (*f) ();
16825
 
 
16826
 
int
16827
 
main ()
16828
 
{
16829
 
/* The GNU C library defines this for functions which it implements
16830
 
    to always fail with ENOSYS.  Some functions are actually named
16831
 
    something starting with __ and the normal name is an alias.  */
16832
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16833
 
choke me
16834
 
#else
16835
 
f = $ac_func;
16836
 
#endif
16837
 
 
16838
 
  ;
16839
 
  return 0;
16840
 
}
16841
 
_ACEOF
16842
 
rm -f conftest.$ac_objext conftest$ac_exeext
16843
 
if { (eval echo "$as_me:16843: \"$ac_link\"") >&5
16844
 
  (eval $ac_link) 2>&5
16845
 
  ac_status=$?
16846
 
  echo "$as_me:16846: \$? = $ac_status" >&5
16847
 
  (exit $ac_status); } &&
16848
 
         { ac_try='test -s conftest$ac_exeext'
16849
 
  { (eval echo "$as_me:16849: \"$ac_try\"") >&5
16850
 
  (eval $ac_try) 2>&5
16851
 
  ac_status=$?
16852
 
  echo "$as_me:16852: \$? = $ac_status" >&5
16853
 
  (exit $ac_status); }; }; then
16854
 
  eval "$as_ac_var=yes"
16855
 
else
16856
 
  echo "$as_me: failed program was:" >&5
16857
 
cat conftest.$ac_ext >&5
16858
 
eval "$as_ac_var=no"
16859
 
fi
16860
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16861
 
fi
16862
 
echo "$as_me:16862: result: `eval echo '${'$as_ac_var'}'`" >&5
16863
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16864
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
16865
 
  cat >>confdefs.h <<EOF
16866
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16867
 
EOF
16868
 
 
16869
 
fi
16870
 
done
16871
 
 
16872
 
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16873
 
if test "${with_libiconv_prefix+set}" = set; then
16874
 
  withval="$with_libiconv_prefix"
16875
 
 
16876
 
    for dir in `echo "$withval" | tr : ' '`; do
16877
 
      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16878
 
      if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16879
 
    done
16880
 
 
16881
 
fi;
16882
 
 
16883
 
  echo "$as_me:16883: checking for iconv" >&5
16884
 
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
16885
 
if test "${am_cv_func_iconv+set}" = set; then
16886
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16887
 
else
16888
 
 
16889
 
    am_cv_func_iconv="no, consider installing GNU libiconv"
16890
 
    am_cv_lib_iconv=no
16891
 
    cat >conftest.$ac_ext <<_ACEOF
16892
 
#line 16892 "configure"
16893
 
#include "confdefs.h"
16894
 
#include <stdlib.h>
16895
 
#include <iconv.h>
16896
 
int
16897
 
main ()
16898
 
{
16899
 
iconv_t cd = iconv_open("","");
16900
 
       iconv(cd,NULL,NULL,NULL,NULL);
16901
 
       iconv_close(cd);
16902
 
  ;
16903
 
  return 0;
16904
 
}
16905
 
_ACEOF
16906
 
rm -f conftest.$ac_objext conftest$ac_exeext
16907
 
if { (eval echo "$as_me:16907: \"$ac_link\"") >&5
16908
 
  (eval $ac_link) 2>&5
16909
 
  ac_status=$?
16910
 
  echo "$as_me:16910: \$? = $ac_status" >&5
16911
 
  (exit $ac_status); } &&
16912
 
         { ac_try='test -s conftest$ac_exeext'
16913
 
  { (eval echo "$as_me:16913: \"$ac_try\"") >&5
16914
 
  (eval $ac_try) 2>&5
16915
 
  ac_status=$?
16916
 
  echo "$as_me:16916: \$? = $ac_status" >&5
16917
 
  (exit $ac_status); }; }; then
16918
 
  am_cv_func_iconv=yes
16919
 
else
16920
 
  echo "$as_me: failed program was:" >&5
16921
 
cat conftest.$ac_ext >&5
16922
 
fi
16923
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16924
 
    if test "$am_cv_func_iconv" != yes; then
16925
 
      am_save_LIBS="$LIBS"
16926
 
      LIBS="$LIBS -liconv"
16927
 
      cat >conftest.$ac_ext <<_ACEOF
16928
 
#line 16928 "configure"
16929
 
#include "confdefs.h"
16930
 
#include <stdlib.h>
16931
 
#include <iconv.h>
16932
 
int
16933
 
main ()
16934
 
{
16935
 
iconv_t cd = iconv_open("","");
16936
 
         iconv(cd,NULL,NULL,NULL,NULL);
16937
 
         iconv_close(cd);
16938
 
  ;
16939
 
  return 0;
16940
 
}
16941
 
_ACEOF
16942
 
rm -f conftest.$ac_objext conftest$ac_exeext
16943
 
if { (eval echo "$as_me:16943: \"$ac_link\"") >&5
16944
 
  (eval $ac_link) 2>&5
16945
 
  ac_status=$?
16946
 
  echo "$as_me:16946: \$? = $ac_status" >&5
16947
 
  (exit $ac_status); } &&
16948
 
         { ac_try='test -s conftest$ac_exeext'
16949
 
  { (eval echo "$as_me:16949: \"$ac_try\"") >&5
16950
 
  (eval $ac_try) 2>&5
16951
 
  ac_status=$?
16952
 
  echo "$as_me:16952: \$? = $ac_status" >&5
16953
 
  (exit $ac_status); }; }; then
16954
 
  am_cv_lib_iconv=yes
16955
 
        am_cv_func_iconv=yes
16956
 
else
16957
 
  echo "$as_me: failed program was:" >&5
16958
 
cat conftest.$ac_ext >&5
16959
 
fi
16960
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16961
 
      LIBS="$am_save_LIBS"
16962
 
    fi
16963
 
 
16964
 
fi
16965
 
echo "$as_me:16965: result: $am_cv_func_iconv" >&5
16966
 
echo "${ECHO_T}$am_cv_func_iconv" >&6
16967
 
  if test "$am_cv_func_iconv" = yes; then
16968
 
 
16969
 
cat >>confdefs.h <<\EOF
16970
 
#define HAVE_ICONV 1
16971
 
EOF
16972
 
 
16973
 
    echo "$as_me:16973: checking for iconv declaration" >&5
16974
 
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
16975
 
    if test "${am_cv_proto_iconv+set}" = set; then
16976
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16977
 
else
16978
 
 
16979
 
      cat >conftest.$ac_ext <<_ACEOF
16980
 
#line 16980 "configure"
16981
 
#include "confdefs.h"
16982
 
 
16983
 
#include <stdlib.h>
16984
 
#include <iconv.h>
16985
 
extern
16986
 
#ifdef __cplusplus
16987
 
"C"
16988
 
#endif
16989
 
#if defined(__STDC__) || defined(__cplusplus)
16990
 
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16991
 
#else
16992
 
size_t iconv();
16993
 
#endif
16994
 
 
16995
 
int
16996
 
main ()
16997
 
{
16998
 
 
16999
 
  ;
17000
 
  return 0;
17001
 
}
17002
 
_ACEOF
17003
 
rm -f conftest.$ac_objext
17004
 
if { (eval echo "$as_me:17004: \"$ac_compile\"") >&5
17005
 
  (eval $ac_compile) 2>&5
17006
 
  ac_status=$?
17007
 
  echo "$as_me:17007: \$? = $ac_status" >&5
17008
 
  (exit $ac_status); } &&
17009
 
         { ac_try='test -s conftest.$ac_objext'
17010
 
  { (eval echo "$as_me:17010: \"$ac_try\"") >&5
17011
 
  (eval $ac_try) 2>&5
17012
 
  ac_status=$?
17013
 
  echo "$as_me:17013: \$? = $ac_status" >&5
17014
 
  (exit $ac_status); }; }; then
17015
 
  am_cv_proto_iconv_arg1=""
17016
 
else
17017
 
  echo "$as_me: failed program was:" >&5
17018
 
cat conftest.$ac_ext >&5
17019
 
am_cv_proto_iconv_arg1="const"
17020
 
fi
17021
 
rm -f conftest.$ac_objext conftest.$ac_ext
17022
 
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
17023
 
fi
17024
 
 
17025
 
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
17026
 
    echo "$as_me:17026: result: ${ac_t:-
17027
 
         }$am_cv_proto_iconv" >&5
17028
 
echo "${ECHO_T}${ac_t:-
17029
 
         }$am_cv_proto_iconv" >&6
17030
 
 
17031
 
cat >>confdefs.h <<EOF
17032
 
#define ICONV_CONST $am_cv_proto_iconv_arg1
17033
 
EOF
17034
 
 
17035
 
  fi
17036
 
  LIBICONV=
17037
 
  if test "$am_cv_lib_iconv" = yes; then
17038
 
    LIBICONV="-liconv"
17039
 
  fi
17040
 
 
17041
 
  echo "$as_me:17041: checking for nl_langinfo and CODESET" >&5
17042
 
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17043
 
if test "${am_cv_langinfo_codeset+set}" = set; then
17044
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17045
 
else
17046
 
  cat >conftest.$ac_ext <<_ACEOF
17047
 
#line 17047 "configure"
17048
 
#include "confdefs.h"
17049
 
#include <langinfo.h>
17050
 
int
17051
 
main ()
17052
 
{
17053
 
char* cs = nl_langinfo(CODESET);
17054
 
  ;
17055
 
  return 0;
17056
 
}
17057
 
_ACEOF
17058
 
rm -f conftest.$ac_objext conftest$ac_exeext
17059
 
if { (eval echo "$as_me:17059: \"$ac_link\"") >&5
17060
 
  (eval $ac_link) 2>&5
17061
 
  ac_status=$?
17062
 
  echo "$as_me:17062: \$? = $ac_status" >&5
17063
 
  (exit $ac_status); } &&
17064
 
         { ac_try='test -s conftest$ac_exeext'
17065
 
  { (eval echo "$as_me:17065: \"$ac_try\"") >&5
17066
 
  (eval $ac_try) 2>&5
17067
 
  ac_status=$?
17068
 
  echo "$as_me:17068: \$? = $ac_status" >&5
17069
 
  (exit $ac_status); }; }; then
17070
 
  am_cv_langinfo_codeset=yes
17071
 
else
17072
 
  echo "$as_me: failed program was:" >&5
17073
 
cat conftest.$ac_ext >&5
17074
 
am_cv_langinfo_codeset=no
17075
 
fi
17076
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17077
 
 
17078
 
fi
17079
 
echo "$as_me:17079: result: $am_cv_langinfo_codeset" >&5
17080
 
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
17081
 
  if test $am_cv_langinfo_codeset = yes; then
17082
 
 
17083
 
cat >>confdefs.h <<\EOF
17084
 
#define HAVE_LANGINFO_CODESET 1
17085
 
EOF
17086
 
 
17087
 
  fi
17088
 
 
17089
 
   if test $ac_cv_header_locale_h = yes; then
17090
 
    echo "$as_me:17090: checking for LC_MESSAGES" >&5
17091
 
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
17092
 
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
17093
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17094
 
else
17095
 
  cat >conftest.$ac_ext <<_ACEOF
17096
 
#line 17096 "configure"
17097
 
#include "confdefs.h"
17098
 
#include <locale.h>
17099
 
int
17100
 
main ()
17101
 
{
17102
 
return LC_MESSAGES
17103
 
  ;
17104
 
  return 0;
17105
 
}
17106
 
_ACEOF
17107
 
rm -f conftest.$ac_objext conftest$ac_exeext
17108
 
if { (eval echo "$as_me:17108: \"$ac_link\"") >&5
17109
 
  (eval $ac_link) 2>&5
17110
 
  ac_status=$?
17111
 
  echo "$as_me:17111: \$? = $ac_status" >&5
17112
 
  (exit $ac_status); } &&
17113
 
         { ac_try='test -s conftest$ac_exeext'
17114
 
  { (eval echo "$as_me:17114: \"$ac_try\"") >&5
17115
 
  (eval $ac_try) 2>&5
17116
 
  ac_status=$?
17117
 
  echo "$as_me:17117: \$? = $ac_status" >&5
17118
 
  (exit $ac_status); }; }; then
17119
 
  am_cv_val_LC_MESSAGES=yes
17120
 
else
17121
 
  echo "$as_me: failed program was:" >&5
17122
 
cat conftest.$ac_ext >&5
17123
 
am_cv_val_LC_MESSAGES=no
17124
 
fi
17125
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17126
 
fi
17127
 
echo "$as_me:17127: result: $am_cv_val_LC_MESSAGES" >&5
17128
 
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
17129
 
    if test $am_cv_val_LC_MESSAGES = yes; then
17130
 
 
17131
 
cat >>confdefs.h <<\EOF
17132
 
#define HAVE_LC_MESSAGES 1
17133
 
EOF
17134
 
 
17135
 
    fi
17136
 
  fi
17137
 
   echo "$as_me:17137: checking whether NLS is requested" >&5
17138
 
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
17139
 
        # Check whether --enable-nls or --disable-nls was given.
17140
 
if test "${enable_nls+set}" = set; then
17141
 
  enableval="$enable_nls"
17142
 
  USE_NLS=$enableval
17143
 
else
17144
 
  USE_NLS=yes
17145
 
fi;
17146
 
    echo "$as_me:17146: result: $USE_NLS" >&5
17147
 
echo "${ECHO_T}$USE_NLS" >&6
17148
 
 
17149
 
    BUILD_INCLUDED_LIBINTL=no
17150
 
    USE_INCLUDED_LIBINTL=no
17151
 
    INTLLIBS=
17152
 
 
17153
 
        if test "$USE_NLS" = "yes"; then
17154
 
 
17155
 
cat >>confdefs.h <<\EOF
17156
 
#define ENABLE_NLS 1
17157
 
EOF
17158
 
 
17159
 
      echo "$as_me:17159: checking whether included gettext is requested" >&5
17160
 
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
17161
 
 
17162
 
# Check whether --with-included-gettext or --without-included-gettext was given.
17163
 
if test "${with_included_gettext+set}" = set; then
17164
 
  withval="$with_included_gettext"
17165
 
  nls_cv_force_use_gnu_gettext=$withval
17166
 
else
17167
 
  nls_cv_force_use_gnu_gettext=no
17168
 
fi;
17169
 
      echo "$as_me:17169: result: $nls_cv_force_use_gnu_gettext" >&5
17170
 
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
17171
 
 
17172
 
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
17173
 
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
17174
 
                                CATOBJEXT=NONE
17175
 
 
17176
 
        echo "$as_me:17176: checking for libintl.h" >&5
17177
 
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
17178
 
if test "${ac_cv_header_libintl_h+set}" = set; then
17179
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17180
 
else
17181
 
  cat >conftest.$ac_ext <<_ACEOF
17182
 
#line 17182 "configure"
17183
 
#include "confdefs.h"
17184
 
#include <libintl.h>
17185
 
_ACEOF
17186
 
if { (eval echo "$as_me:17186: \"$ac_cpp conftest.$ac_ext\"") >&5
17187
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17188
 
  ac_status=$?
17189
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
17190
 
  rm -f conftest.er1
17191
 
  cat conftest.err >&5
17192
 
  echo "$as_me:17192: \$? = $ac_status" >&5
17193
 
  (exit $ac_status); } >/dev/null; then
17194
 
  if test -s conftest.err; then
17195
 
    ac_cpp_err=$ac_c_preproc_warn_flag
17196
 
  else
17197
 
    ac_cpp_err=
17198
 
  fi
17199
 
else
17200
 
  ac_cpp_err=yes
17201
 
fi
17202
 
if test -z "$ac_cpp_err"; then
17203
 
  ac_cv_header_libintl_h=yes
17204
 
else
17205
 
  echo "$as_me: failed program was:" >&5
17206
 
  cat conftest.$ac_ext >&5
17207
 
  ac_cv_header_libintl_h=no
17208
 
fi
17209
 
rm -f conftest.err conftest.$ac_ext
17210
 
fi
17211
 
echo "$as_me:17211: result: $ac_cv_header_libintl_h" >&5
17212
 
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
17213
 
if test $ac_cv_header_libintl_h = yes; then
17214
 
  echo "$as_me:17214: checking for GNU gettext in libc" >&5
17215
 
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
17216
 
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17217
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17218
 
else
17219
 
  cat >conftest.$ac_ext <<_ACEOF
17220
 
#line 17220 "configure"
17221
 
#include "confdefs.h"
17222
 
#include <libintl.h>
17223
 
extern int _nl_msg_cat_cntr;
17224
 
int
17225
 
main ()
17226
 
{
17227
 
bindtextdomain ("", "");
17228
 
return (int) gettext ("") + _nl_msg_cat_cntr
17229
 
  ;
17230
 
  return 0;
17231
 
}
17232
 
_ACEOF
17233
 
rm -f conftest.$ac_objext conftest$ac_exeext
17234
 
if { (eval echo "$as_me:17234: \"$ac_link\"") >&5
17235
 
  (eval $ac_link) 2>&5
17236
 
  ac_status=$?
17237
 
  echo "$as_me:17237: \$? = $ac_status" >&5
17238
 
  (exit $ac_status); } &&
17239
 
         { ac_try='test -s conftest$ac_exeext'
17240
 
  { (eval echo "$as_me:17240: \"$ac_try\"") >&5
17241
 
  (eval $ac_try) 2>&5
17242
 
  ac_status=$?
17243
 
  echo "$as_me:17243: \$? = $ac_status" >&5
17244
 
  (exit $ac_status); }; }; then
17245
 
  gt_cv_func_gnugettext1_libc=yes
17246
 
else
17247
 
  echo "$as_me: failed program was:" >&5
17248
 
cat conftest.$ac_ext >&5
17249
 
gt_cv_func_gnugettext1_libc=no
17250
 
fi
17251
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17252
 
fi
17253
 
echo "$as_me:17253: result: $gt_cv_func_gnugettext1_libc" >&5
17254
 
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
17255
 
 
17256
 
           if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17257
 
             echo "$as_me:17257: checking for GNU gettext in libintl" >&5
17258
 
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
17259
 
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
17260
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17261
 
else
17262
 
  gt_save_LIBS="$LIBS"
17263
 
                LIBS="$LIBS -lintl $LIBICONV"
17264
 
                cat >conftest.$ac_ext <<_ACEOF
17265
 
#line 17265 "configure"
17266
 
#include "confdefs.h"
17267
 
#include <libintl.h>
17268
 
extern int _nl_msg_cat_cntr;
17269
 
int
17270
 
main ()
17271
 
{
17272
 
bindtextdomain ("", "");
17273
 
return (int) gettext ("") + _nl_msg_cat_cntr
17274
 
  ;
17275
 
  return 0;
17276
 
}
17277
 
_ACEOF
17278
 
rm -f conftest.$ac_objext conftest$ac_exeext
17279
 
if { (eval echo "$as_me:17279: \"$ac_link\"") >&5
17280
 
  (eval $ac_link) 2>&5
17281
 
  ac_status=$?
17282
 
  echo "$as_me:17282: \$? = $ac_status" >&5
17283
 
  (exit $ac_status); } &&
17284
 
         { ac_try='test -s conftest$ac_exeext'
17285
 
  { (eval echo "$as_me:17285: \"$ac_try\"") >&5
17286
 
  (eval $ac_try) 2>&5
17287
 
  ac_status=$?
17288
 
  echo "$as_me:17288: \$? = $ac_status" >&5
17289
 
  (exit $ac_status); }; }; then
17290
 
  gt_cv_func_gnugettext1_libintl=yes
17291
 
else
17292
 
  echo "$as_me: failed program was:" >&5
17293
 
cat conftest.$ac_ext >&5
17294
 
gt_cv_func_gnugettext1_libintl=no
17295
 
fi
17296
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17297
 
                LIBS="$gt_save_LIBS"
17298
 
fi
17299
 
echo "$as_me:17299: result: $gt_cv_func_gnugettext1_libintl" >&5
17300
 
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
17301
 
           fi
17302
 
 
17303
 
                                           if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17304
 
              || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17305
 
                   && test "$PACKAGE" != gettext; }; then
17306
 
 
17307
 
cat >>confdefs.h <<\EOF
17308
 
#define HAVE_GETTEXT 1
17309
 
EOF
17310
 
 
17311
 
             if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17312
 
                                       INTLLIBS="-lintl $LIBICONV"
17313
 
             fi
17314
 
 
17315
 
             gt_save_LIBS="$LIBS"
17316
 
             LIBS="$LIBS $INTLLIBS"
17317
 
 
17318
 
for ac_func in dcgettext
17319
 
do
17320
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17321
 
echo "$as_me:17321: checking for $ac_func" >&5
17322
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17323
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
17324
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17325
 
else
17326
 
  cat >conftest.$ac_ext <<_ACEOF
17327
 
#line 17327 "configure"
17328
 
#include "confdefs.h"
17329
 
/* System header to define __stub macros and hopefully few prototypes,
17330
 
    which can conflict with char $ac_func (); below.  */
17331
 
#include <assert.h>
17332
 
/* Override any gcc2 internal prototype to avoid an error.  */
17333
 
#ifdef __cplusplus
17334
 
extern "C"
17335
 
#endif
17336
 
/* We use char because int might match the return type of a gcc2
17337
 
   builtin and then its argument prototype would still apply.  */
17338
 
char $ac_func ();
17339
 
char (*f) ();
17340
 
 
17341
 
int
17342
 
main ()
17343
 
{
17344
 
/* The GNU C library defines this for functions which it implements
17345
 
    to always fail with ENOSYS.  Some functions are actually named
17346
 
    something starting with __ and the normal name is an alias.  */
17347
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17348
 
choke me
17349
 
#else
17350
 
f = $ac_func;
17351
 
#endif
17352
 
 
17353
 
  ;
17354
 
  return 0;
17355
 
}
17356
 
_ACEOF
17357
 
rm -f conftest.$ac_objext conftest$ac_exeext
17358
 
if { (eval echo "$as_me:17358: \"$ac_link\"") >&5
17359
 
  (eval $ac_link) 2>&5
17360
 
  ac_status=$?
17361
 
  echo "$as_me:17361: \$? = $ac_status" >&5
17362
 
  (exit $ac_status); } &&
17363
 
         { ac_try='test -s conftest$ac_exeext'
17364
 
  { (eval echo "$as_me:17364: \"$ac_try\"") >&5
17365
 
  (eval $ac_try) 2>&5
17366
 
  ac_status=$?
17367
 
  echo "$as_me:17367: \$? = $ac_status" >&5
17368
 
  (exit $ac_status); }; }; then
17369
 
  eval "$as_ac_var=yes"
17370
 
else
17371
 
  echo "$as_me: failed program was:" >&5
17372
 
cat conftest.$ac_ext >&5
17373
 
eval "$as_ac_var=no"
17374
 
fi
17375
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17376
 
fi
17377
 
echo "$as_me:17377: result: `eval echo '${'$as_ac_var'}'`" >&5
17378
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17379
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
17380
 
  cat >>confdefs.h <<EOF
17381
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17382
 
EOF
17383
 
 
17384
 
fi
17385
 
done
17386
 
 
17387
 
             LIBS="$gt_save_LIBS"
17388
 
 
17389
 
                     # Extract the first word of "msgfmt", so it can be a program name with args.
17390
 
set dummy msgfmt; ac_word=$2
17391
 
echo "$as_me:17391: checking for $ac_word" >&5
17392
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17393
 
if test "${ac_cv_path_MSGFMT+set}" = set; then
17394
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17395
 
else
17396
 
  case "$MSGFMT" in
17397
 
  /*)
17398
 
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17399
 
  ;;
17400
 
  *)
17401
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17402
 
  for ac_dir in $PATH; do
17403
 
    test -z "$ac_dir" && ac_dir=.
17404
 
    if test -f $ac_dir/$ac_word; then
17405
 
      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
17406
 
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
17407
 
        break
17408
 
      fi
17409
 
    fi
17410
 
  done
17411
 
  IFS="$ac_save_ifs"
17412
 
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17413
 
  ;;
17414
 
esac
17415
 
fi
17416
 
MSGFMT="$ac_cv_path_MSGFMT"
17417
 
if test "$MSGFMT" != ":"; then
17418
 
  echo "$as_me:17418: result: $MSGFMT" >&5
17419
 
echo "${ECHO_T}$MSGFMT" >&6
17420
 
else
17421
 
  echo "$as_me:17421: result: no" >&5
17422
 
echo "${ECHO_T}no" >&6
17423
 
fi
17424
 
 
17425
 
             # Extract the first word of "gmsgfmt", so it can be a program name with args.
17426
 
set dummy gmsgfmt; ac_word=$2
17427
 
echo "$as_me:17427: checking for $ac_word" >&5
17428
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17429
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then
17430
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17431
 
else
17432
 
  case $GMSGFMT in
17433
 
  [\\/]* | ?:[\\/]*)
17434
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17435
 
  ;;
17436
 
  *)
17437
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
17438
 
ac_dummy="$PATH"
17439
 
for ac_dir in $ac_dummy; do
17440
 
  IFS=$ac_save_IFS
17441
 
  test -z "$ac_dir" && ac_dir=.
17442
 
  if $as_executable_p "$ac_dir/$ac_word"; then
17443
 
   ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
17444
 
   echo "$as_me:17444: found $ac_dir/$ac_word" >&5
17445
 
   break
17446
 
fi
17447
 
done
17448
 
 
17449
 
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17450
 
  ;;
17451
 
esac
17452
 
fi
17453
 
GMSGFMT=$ac_cv_path_GMSGFMT
17454
 
 
17455
 
if test -n "$GMSGFMT"; then
17456
 
  echo "$as_me:17456: result: $GMSGFMT" >&5
17457
 
echo "${ECHO_T}$GMSGFMT" >&6
17458
 
else
17459
 
  echo "$as_me:17459: result: no" >&5
17460
 
echo "${ECHO_T}no" >&6
17461
 
fi
17462
 
 
17463
 
                     # Extract the first word of "xgettext", so it can be a program name with args.
17464
 
set dummy xgettext; ac_word=$2
17465
 
echo "$as_me:17465: checking for $ac_word" >&5
17466
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17467
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then
17468
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17469
 
else
17470
 
  case "$XGETTEXT" in
17471
 
  /*)
17472
 
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17473
 
  ;;
17474
 
  *)
17475
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17476
 
  for ac_dir in $PATH; do
17477
 
    test -z "$ac_dir" && ac_dir=.
17478
 
    if test -f $ac_dir/$ac_word; then
17479
 
      if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
17480
 
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
17481
 
        break
17482
 
      fi
17483
 
    fi
17484
 
  done
17485
 
  IFS="$ac_save_ifs"
17486
 
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17487
 
  ;;
17488
 
esac
17489
 
fi
17490
 
XGETTEXT="$ac_cv_path_XGETTEXT"
17491
 
if test "$XGETTEXT" != ":"; then
17492
 
  echo "$as_me:17492: result: $XGETTEXT" >&5
17493
 
echo "${ECHO_T}$XGETTEXT" >&6
17494
 
else
17495
 
  echo "$as_me:17495: result: no" >&5
17496
 
echo "${ECHO_T}no" >&6
17497
 
fi
17498
 
 
17499
 
             CATOBJEXT=.gmo
17500
 
           fi
17501
 
 
17502
 
fi
17503
 
 
17504
 
        if test "$CATOBJEXT" = "NONE"; then
17505
 
                          nls_cv_use_gnu_gettext=yes
17506
 
        fi
17507
 
      fi
17508
 
 
17509
 
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
17510
 
                INTLOBJS="\$(GETTOBJS)"
17511
 
        # Extract the first word of "msgfmt", so it can be a program name with args.
17512
 
set dummy msgfmt; ac_word=$2
17513
 
echo "$as_me:17513: checking for $ac_word" >&5
17514
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17515
 
if test "${ac_cv_path_MSGFMT+set}" = set; then
17516
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17517
 
else
17518
 
  case "$MSGFMT" in
17519
 
  /*)
17520
 
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17521
 
  ;;
17522
 
  *)
17523
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17524
 
  for ac_dir in $PATH; do
17525
 
    test -z "$ac_dir" && ac_dir=.
17526
 
    if test -f $ac_dir/$ac_word; then
17527
 
      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
17528
 
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
17529
 
        break
17530
 
      fi
17531
 
    fi
17532
 
  done
17533
 
  IFS="$ac_save_ifs"
17534
 
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17535
 
  ;;
17536
 
esac
17537
 
fi
17538
 
MSGFMT="$ac_cv_path_MSGFMT"
17539
 
if test "$MSGFMT" != ":"; then
17540
 
  echo "$as_me:17540: result: $MSGFMT" >&5
17541
 
echo "${ECHO_T}$MSGFMT" >&6
17542
 
else
17543
 
  echo "$as_me:17543: result: no" >&5
17544
 
echo "${ECHO_T}no" >&6
17545
 
fi
17546
 
 
17547
 
        # Extract the first word of "gmsgfmt", so it can be a program name with args.
17548
 
set dummy gmsgfmt; ac_word=$2
17549
 
echo "$as_me:17549: checking for $ac_word" >&5
17550
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17551
 
if test "${ac_cv_path_GMSGFMT+set}" = set; then
17552
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17553
 
else
17554
 
  case $GMSGFMT in
17555
 
  [\\/]* | ?:[\\/]*)
17556
 
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17557
 
  ;;
17558
 
  *)
17559
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
17560
 
ac_dummy="$PATH"
17561
 
for ac_dir in $ac_dummy; do
17562
 
  IFS=$ac_save_IFS
17563
 
  test -z "$ac_dir" && ac_dir=.
17564
 
  if $as_executable_p "$ac_dir/$ac_word"; then
17565
 
   ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
17566
 
   echo "$as_me:17566: found $ac_dir/$ac_word" >&5
17567
 
   break
17568
 
fi
17569
 
done
17570
 
 
17571
 
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17572
 
  ;;
17573
 
esac
17574
 
fi
17575
 
GMSGFMT=$ac_cv_path_GMSGFMT
17576
 
 
17577
 
if test -n "$GMSGFMT"; then
17578
 
  echo "$as_me:17578: result: $GMSGFMT" >&5
17579
 
echo "${ECHO_T}$GMSGFMT" >&6
17580
 
else
17581
 
  echo "$as_me:17581: result: no" >&5
17582
 
echo "${ECHO_T}no" >&6
17583
 
fi
17584
 
 
17585
 
        # Extract the first word of "xgettext", so it can be a program name with args.
17586
 
set dummy xgettext; ac_word=$2
17587
 
echo "$as_me:17587: checking for $ac_word" >&5
17588
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17589
 
if test "${ac_cv_path_XGETTEXT+set}" = set; then
17590
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17591
 
else
17592
 
  case "$XGETTEXT" in
17593
 
  /*)
17594
 
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17595
 
  ;;
17596
 
  *)
17597
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
17598
 
  for ac_dir in $PATH; do
17599
 
    test -z "$ac_dir" && ac_dir=.
17600
 
    if test -f $ac_dir/$ac_word; then
17601
 
      if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
17602
 
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
17603
 
        break
17604
 
      fi
17605
 
    fi
17606
 
  done
17607
 
  IFS="$ac_save_ifs"
17608
 
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17609
 
  ;;
17610
 
esac
17611
 
fi
17612
 
XGETTEXT="$ac_cv_path_XGETTEXT"
17613
 
if test "$XGETTEXT" != ":"; then
17614
 
  echo "$as_me:17614: result: $XGETTEXT" >&5
17615
 
echo "${ECHO_T}$XGETTEXT" >&6
17616
 
else
17617
 
  echo "$as_me:17617: result: no" >&5
17618
 
echo "${ECHO_T}no" >&6
17619
 
fi
17620
 
 
17621
 
        BUILD_INCLUDED_LIBINTL=yes
17622
 
        USE_INCLUDED_LIBINTL=yes
17623
 
        CATOBJEXT=.gmo
17624
 
        INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
17625
 
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
17626
 
      fi
17627
 
 
17628
 
                  if test "$GMSGFMT" != ":"; then
17629
 
                        if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
17630
 
          : ;
17631
 
        else
17632
 
          echo "$as_me:17632: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
17633
 
echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
17634
 
          GMSGFMT=":"
17635
 
        fi
17636
 
      fi
17637
 
 
17638
 
                  if test "$XGETTEXT" != ":"; then
17639
 
                        if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
17640
 
          : ;
17641
 
        else
17642
 
          echo "$as_me:17642: result: found xgettext program is not GNU xgettext; ignore it" >&5
17643
 
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
17644
 
          XGETTEXT=":"
17645
 
        fi
17646
 
      fi
17647
 
 
17648
 
            POSUB=po
17649
 
    fi
17650
 
    ac_config_commands="$ac_config_commands default-2"
17651
 
 
17652
 
            if test "$PACKAGE" = gettext; then
17653
 
      BUILD_INCLUDED_LIBINTL=yes
17654
 
    fi
17655
 
 
17656
 
                                            for ac_prog in bison
17657
 
do
17658
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
17659
 
set dummy $ac_prog; ac_word=$2
17660
 
echo "$as_me:17660: checking for $ac_word" >&5
17661
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17662
 
if test "${ac_cv_prog_INTLBISON+set}" = set; then
17663
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17664
 
else
17665
 
  if test -n "$INTLBISON"; then
17666
 
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
17667
 
else
17668
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
17669
 
ac_dummy="$PATH"
17670
 
for ac_dir in $ac_dummy; do
17671
 
  IFS=$ac_save_IFS
17672
 
  test -z "$ac_dir" && ac_dir=.
17673
 
  $as_executable_p "$ac_dir/$ac_word" || continue
17674
 
ac_cv_prog_INTLBISON="$ac_prog"
17675
 
echo "$as_me:17675: found $ac_dir/$ac_word" >&5
17676
 
break
17677
 
done
17678
 
 
17679
 
fi
17680
 
fi
17681
 
INTLBISON=$ac_cv_prog_INTLBISON
17682
 
if test -n "$INTLBISON"; then
17683
 
  echo "$as_me:17683: result: $INTLBISON" >&5
17684
 
echo "${ECHO_T}$INTLBISON" >&6
17685
 
else
17686
 
  echo "$as_me:17686: result: no" >&5
17687
 
echo "${ECHO_T}no" >&6
17688
 
fi
17689
 
 
17690
 
  test -n "$INTLBISON" && break
17691
 
done
17692
 
 
17693
 
    if test -z "$INTLBISON"; then
17694
 
      ac_verc_fail=yes
17695
 
    else
17696
 
            echo "$as_me:17696: checking version of bison" >&5
17697
 
echo $ECHO_N "checking version of bison... $ECHO_C" >&6
17698
 
      ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison .* \([0-9]*\.[0-9.]*\).*$/\1/p'`
17699
 
      case $ac_prog_version in
17700
 
        '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
17701
 
        1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
17702
 
           ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
17703
 
        *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
17704
 
      esac
17705
 
      echo "$as_me:17705: result: $ac_prog_version" >&5
17706
 
echo "${ECHO_T}$ac_prog_version" >&6
17707
 
    fi
17708
 
    if test $ac_verc_fail = yes; then
17709
 
      INTLBISON=:
17710
 
    fi
17711
 
 
17712
 
                for lang in $ALL_LINGUAS; do
17713
 
      GMOFILES="$GMOFILES $lang.gmo"
17714
 
      POFILES="$POFILES $lang.po"
17715
 
    done
17716
 
 
17717
 
        nls_cv_header_intl=
17718
 
    nls_cv_header_libgt=
17719
 
 
17720
 
        DATADIRNAME=share
17721
 
 
17722
 
        INSTOBJEXT=.mo
17723
 
 
17724
 
        GENCAT=gencat
17725
 
 
17726
 
   if test "x$CATOBJEXT" != "x"; then
17727
 
     if test "x$ALL_LINGUAS" = "x"; then
17728
 
       LINGUAS=
17729
 
     else
17730
 
       echo "$as_me:17730: checking for catalogs to be installed" >&5
17731
 
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
17732
 
       NEW_LINGUAS=
17733
 
       for presentlang in $ALL_LINGUAS; do
17734
 
         useit=no
17735
 
         for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
17736
 
           # Use the presentlang catalog if desiredlang is
17737
 
           #   a. equal to presentlang, or
17738
 
           #   b. a variant of presentlang (because in this case,
17739
 
           #      presentlang can be used as a fallback for messages
17740
 
           #      which are not translated in the desiredlang catalog).
17741
 
           case "$desiredlang" in
17742
 
             "$presentlang"*) useit=yes;;
17743
 
           esac
17744
 
         done
17745
 
         if test $useit = yes; then
17746
 
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
17747
 
         fi
17748
 
       done
17749
 
       LINGUAS=$NEW_LINGUAS
17750
 
       echo "$as_me:17750: result: $LINGUAS" >&5
17751
 
echo "${ECHO_T}$LINGUAS" >&6
17752
 
     fi
17753
 
 
17754
 
          if test -n "$LINGUAS"; then
17755
 
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
17756
 
     fi
17757
 
   fi
17758
 
 
17759
 
            MKINSTALLDIRS=
17760
 
   if test -n "$ac_aux_dir"; then
17761
 
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
17762
 
   fi
17763
 
   if test -z "$MKINSTALLDIRS"; then
17764
 
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17765
 
   fi
17766
 
 
17767
 
      INTL_LIBTOOL_SUFFIX_PREFIX=
17768
 
 
17769
 
PACKAGE_LOCALE_DIR=${datadir}/locale
17770
 
 
17771
 
ENABLE_EXIT_HOMEDIR=no
17772
 
   # Check whether --enable-exit-homedir or --disable-exit-homedir was given.
 
29891
 
 
29892
 
 
29893
 
 
29894
 
 
29895
 
 
29896
 
 
29897
 
 
29898
 
 
29899
 
 
29900
 
 
29901
 
 
29902
 
 
29903
 
 
29904
 
 
29905
 
 
29906
 
 
29907
 
 
29908
 
 
29909
 
 
29910
 
 
29911
 
 
29912
# pass some variables to  plugins
 
29913
tilp_plugin_dir=$libdir/$PACKAGE
 
29914
 
 
29915
tilp_help_dir=$datadir/$PACKAGE/help
 
29916
 
 
29917
tilp_pixmap_dir=$datadir/$PACKAGE/pixmaps
 
29918
 
 
29919
tilp_icon_dir=$datadir/$PACKAGE/icons
 
29920
 
 
29921
tilp_glade_dir=$datadir/$PACKAGE/glade
 
29922
 
 
29923
 
 
29924
# exit HOME dir facility
 
29925
# Check whether --enable-exit_homedir or --disable-exit_homedir was given.
17773
29926
if test "${enable_exit_homedir+set}" = set; then
17774
29927
  enableval="$enable_exit_homedir"
17775
 
  case "x${enableval}" in
17776
 
                 xyes)         ENABLE_EXIT_HOMEDIR=yes ;;
17777
 
                 xno)          ENABLE_EXIT_HOMEDIR=no ;;
17778
 
                 *)            ENABLE_EXIT_HOMEDIR=no ;;
17779
 
             esac
 
29928
 
 
29929
else
 
29930
  enable_exit_homedir=yes
17780
29931
fi;
17781
 
if test "x$ENABLE_EXIT_HOMEDIR" = "xyes" ;
17782
 
then
17783
 
        cat >>confdefs.h <<\EOF
 
29932
 
 
29933
echo "$as_me:$LINENO: checking whether authorizing user to go outside the HOME dir" >&5
 
29934
echo $ECHO_N "checking whether authorizing user to go outside the HOME dir... $ECHO_C" >&6
 
29935
if test "x$enable_exit_homedir" = "xyes"; then
 
29936
 
 
29937
cat >>confdefs.h <<\_ACEOF
17784
29938
#define ALLOW_EXIT_HOMEDIR 1
17785
 
EOF
17786
 
 
17787
 
fi
17788
 
 
17789
 
ENABLE_TIFFEP_SERVER=no
17790
 
   # Check whether --enable-tiffep-server or --disable-tiffep-server was given.
17791
 
if test "${enable_tiffep_server+set}" = set; then
17792
 
  enableval="$enable_tiffep_server"
17793
 
  case "x${enableval}" in
17794
 
                 xyes)         ENABLE_TIFFEP_SERVER=yes ;;
17795
 
                 xno)          ENABLE_TIFFEP_SERVER=no ;;
17796
 
                 *)            ENABLE_TIFFEP_SERVER=no ;;
17797
 
             esac
17798
 
fi;
17799
 
if test "x$ENABLE_TIFFEP_SERVER" = "xyes" ;
17800
 
then
17801
 
        cat >>confdefs.h <<\EOF
17802
 
#define ALLOW_TIFFEP_SERVER 1
17803
 
EOF
17804
 
 
17805
 
fi
17806
 
 
17807
 
ac_config_files="$ac_config_files Makefile fonts/Makefile help/Makefile intl/Makefile man/Makefile misc/Makefile pixmaps/Makefile po/Makefile.in src/Makefile win32/Makefile tilp.lsm tilp.spec"
 
29939
_ACEOF
 
29940
 
 
29941
 
 
29942
  echo "$as_me:$LINENO: result: yes" >&5
 
29943
echo "${ECHO_T}yes" >&6
 
29944
else
 
29945
  echo "$as_me:$LINENO: result: no" >&5
 
29946
echo "${ECHO_T}no" >&6
 
29947
fi
 
29948
 
 
29949
locale_dir='${prefix}/share/locale'
 
29950
 
 
29951
 
 
29952
# some extra flags
 
29953
CFLAGS="$CFLAGS $ARCH -Wall"
 
29954
LDFLAGS="$LDFLAGS $INTLLIBS -g"
 
29955
 
 
29956
# pass flags
 
29957
 
 
29958
 
 
29959
 
 
29960
                                                                                                                                                                                              ac_config_files="$ac_config_files Makefile build/Makefile desktop/Makefile glade/Makefile help/Makefile icons/Makefile man/Makefile misc/Makefile pixmaps/Makefile registry/Makefile src/Makefile plugins/Makefile plugins/test/Makefile plugins/nv82/Makefile plugins/gfv/Makefile tilp.lsm tilp.spec intl/Makefile po/Makefile.in"
17808
29961
cat >confcache <<\_ACEOF
17809
29962
# This file is a shell script that caches the results of configure
17810
29963
# tests run on this system so they can be shared between configure
17815
29968
# config.status only pays attention to the cache file if you give it
17816
29969
# the --recheck option to rerun configure.
17817
29970
#
17818
 
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
29971
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17819
29972
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17820
29973
# following values.
17821
29974
 
17833
29986
      # `set' does not quote correctly, so add quotes (double-quote
17834
29987
      # substitution turns \\\\ into \\, and sed turns \\ into \).
17835
29988
      sed -n \
17836
 
        "s/'/'\\\\''/g;
17837
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
29989
        "s/'/'\\\\''/g;
 
29990
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17838
29991
      ;;
17839
29992
    *)
17840
29993
      # `set' quotes correctly as required by POSIX, so do not add quotes.
17841
29994
      sed -n \
17842
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
29995
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17843
29996
      ;;
17844
29997
    esac;
17845
29998
} |
17850
30003
     t end
17851
30004
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17852
30005
     : end' >>confcache
17853
 
if cmp -s $cache_file confcache; then :; else
 
30006
if diff $cache_file confcache >/dev/null 2>&1; then :; else
17854
30007
  if test -w $cache_file; then
17855
30008
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17856
30009
    cat confcache >$cache_file
17869
30022
# trailing colons and then remove the whole line if VPATH becomes empty
17870
30023
# (actually we leave an empty line to preserve line numbers).
17871
30024
if test "x$srcdir" = x.; then
17872
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
30025
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
17873
30026
s/:*\$(srcdir):*/:/;
17874
30027
s/:*\${srcdir}:*/:/;
17875
30028
s/:*@srcdir@:*/:/;
17876
 
s/^\([^=]*=[    ]*\):*/\1/;
 
30029
s/^\([^=]*=[     ]*\):*/\1/;
17877
30030
s/:*$//;
17878
 
s/^[^=]*=[      ]*$//;
 
30031
s/^[^=]*=[       ]*$//;
17879
30032
}'
17880
30033
fi
17881
30034
 
17882
30035
DEFS=-DHAVE_CONFIG_H
17883
30036
 
 
30037
ac_libobjs=
 
30038
ac_ltlibobjs=
 
30039
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
30040
  # 1. Remove the extension, and $U if already installed.
 
30041
  ac_i=`echo "$ac_i" |
 
30042
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
30043
  # 2. Add them.
 
30044
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
30045
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
30046
done
 
30047
LIBOBJS=$ac_libobjs
 
30048
 
 
30049
LTLIBOBJS=$ac_ltlibobjs
 
30050
 
 
30051
 
 
30052
 
17884
30053
: ${CONFIG_STATUS=./config.status}
17885
30054
ac_clean_files_save=$ac_clean_files
17886
30055
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17887
 
{ echo "$as_me:17887: creating $CONFIG_STATUS" >&5
 
30056
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17888
30057
echo "$as_me: creating $CONFIG_STATUS" >&6;}
17889
30058
cat >$CONFIG_STATUS <<_ACEOF
17890
30059
#! $SHELL
17891
 
# Generated automatically by configure.
 
30060
# Generated by $as_me.
17892
30061
# Run this file to recreate the current configuration.
17893
30062
# Compiler output produced by configure, useful for debugging
17894
30063
# configure, is in config.log if it exists.
17895
30064
 
17896
30065
debug=false
 
30066
ac_cs_recheck=false
 
30067
ac_cs_silent=false
17897
30068
SHELL=\${CONFIG_SHELL-$SHELL}
17898
 
ac_cs_invocation="\$0 \$@"
17899
 
 
17900
30069
_ACEOF
17901
30070
 
17902
30071
cat >>$CONFIG_STATUS <<\_ACEOF
 
30072
## --------------------- ##
 
30073
## M4sh Initialization.  ##
 
30074
## --------------------- ##
 
30075
 
17903
30076
# Be Bourne compatible
17904
30077
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17905
30078
  emulate sh
17906
30079
  NULLCMD=:
 
30080
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
30081
  # is contrary to our usage.  Disable this feature.
 
30082
  alias -g '${1+"$@"}'='"$@"'
17907
30083
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17908
30084
  set -o posix
17909
30085
fi
 
30086
DUALCASE=1; export DUALCASE # for MKS sh
 
30087
 
 
30088
# Support unset when possible.
 
30089
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
30090
  as_unset=unset
 
30091
else
 
30092
  as_unset=false
 
30093
fi
 
30094
 
 
30095
 
 
30096
# Work around bugs in pre-3.0 UWIN ksh.
 
30097
$as_unset ENV MAIL MAILPATH
 
30098
PS1='$ '
 
30099
PS2='> '
 
30100
PS4='+ '
 
30101
 
 
30102
# NLS nuisances.
 
30103
for as_var in \
 
30104
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
30105
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
30106
  LC_TELEPHONE LC_TIME
 
30107
do
 
30108
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
30109
    eval $as_var=C; export $as_var
 
30110
  else
 
30111
    $as_unset $as_var
 
30112
  fi
 
30113
done
 
30114
 
 
30115
# Required to use basename.
 
30116
if expr a : '\(a\)' >/dev/null 2>&1; then
 
30117
  as_expr=expr
 
30118
else
 
30119
  as_expr=false
 
30120
fi
 
30121
 
 
30122
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
30123
  as_basename=basename
 
30124
else
 
30125
  as_basename=false
 
30126
fi
 
30127
 
17910
30128
 
17911
30129
# Name of the executable.
17912
 
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
30130
as_me=`$as_basename "$0" ||
 
30131
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
30132
         X"$0" : 'X\(//\)$' \| \
 
30133
         X"$0" : 'X\(/\)$' \| \
 
30134
         .     : '\(.\)' 2>/dev/null ||
 
30135
echo X/"$0" |
 
30136
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
30137
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
30138
          /^X\/\(\/\).*/{ s//\1/; q; }
 
30139
          s/.*/./; q'`
 
30140
 
 
30141
 
 
30142
# PATH needs CR, and LINENO needs CR and PATH.
 
30143
# Avoid depending upon Character Ranges.
 
30144
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
30145
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
30146
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
30147
as_cr_digits='0123456789'
 
30148
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
30149
 
 
30150
# The user is always right.
 
30151
if test "${PATH_SEPARATOR+set}" != set; then
 
30152
  echo "#! /bin/sh" >conf$$.sh
 
30153
  echo  "exit 0"   >>conf$$.sh
 
30154
  chmod +x conf$$.sh
 
30155
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
30156
    PATH_SEPARATOR=';'
 
30157
  else
 
30158
    PATH_SEPARATOR=:
 
30159
  fi
 
30160
  rm -f conf$$.sh
 
30161
fi
 
30162
 
 
30163
 
 
30164
  as_lineno_1=$LINENO
 
30165
  as_lineno_2=$LINENO
 
30166
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
30167
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
30168
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
30169
  # Find who we are.  Look in the path if we contain no path at all
 
30170
  # relative or not.
 
30171
  case $0 in
 
30172
    *[\\/]* ) as_myself=$0 ;;
 
30173
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
30174
for as_dir in $PATH
 
30175
do
 
30176
  IFS=$as_save_IFS
 
30177
  test -z "$as_dir" && as_dir=.
 
30178
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
30179
done
 
30180
 
 
30181
       ;;
 
30182
  esac
 
30183
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
30184
  # in which case we are not to be found in the path.
 
30185
  if test "x$as_myself" = x; then
 
30186
    as_myself=$0
 
30187
  fi
 
30188
  if test ! -f "$as_myself"; then
 
30189
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
30190
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
30191
   { (exit 1); exit 1; }; }
 
30192
  fi
 
30193
  case $CONFIG_SHELL in
 
30194
  '')
 
30195
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
30196
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
30197
do
 
30198
  IFS=$as_save_IFS
 
30199
  test -z "$as_dir" && as_dir=.
 
30200
  for as_base in sh bash ksh sh5; do
 
30201
         case $as_dir in
 
30202
         /*)
 
30203
           if ("$as_dir/$as_base" -c '
 
30204
  as_lineno_1=$LINENO
 
30205
  as_lineno_2=$LINENO
 
30206
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
30207
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
30208
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
30209
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
30210
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
30211
             CONFIG_SHELL=$as_dir/$as_base
 
30212
             export CONFIG_SHELL
 
30213
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
30214
           fi;;
 
30215
         esac
 
30216
       done
 
30217
done
 
30218
;;
 
30219
  esac
 
30220
 
 
30221
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
30222
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
30223
  # line-number line before each line; the second 'sed' does the real
 
30224
  # work.  The second script uses 'N' to pair each line-number line
 
30225
  # with the numbered line, and appends trailing '-' during
 
30226
  # substitution so that $LINENO is not a special case at line end.
 
30227
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
30228
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
30229
  sed '=' <$as_myself |
 
30230
    sed '
 
30231
      N
 
30232
      s,$,-,
 
30233
      : loop
 
30234
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
30235
      t loop
 
30236
      s,-$,,
 
30237
      s,^['$as_cr_digits']*\n,,
 
30238
    ' >$as_me.lineno &&
 
30239
  chmod +x $as_me.lineno ||
 
30240
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
30241
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
30242
   { (exit 1); exit 1; }; }
 
30243
 
 
30244
  # Don't try to exec as it changes $[0], causing all sort of problems
 
30245
  # (the dirname of $[0] is not the place where we might find the
 
30246
  # original and so on.  Autoconf is especially sensible to this).
 
30247
  . ./$as_me.lineno
 
30248
  # Exit status is that of the last command.
 
30249
  exit
 
30250
}
 
30251
 
 
30252
 
 
30253
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
30254
  *c*,-n*) ECHO_N= ECHO_C='
 
30255
' ECHO_T='      ' ;;
 
30256
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
30257
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
30258
esac
17913
30259
 
17914
30260
if expr a : '\(a\)' >/dev/null 2>&1; then
17915
30261
  as_expr=expr
17935
30281
fi
17936
30282
rm -f conf$$ conf$$.exe conf$$.file
17937
30283
 
 
30284
if mkdir -p . 2>/dev/null; then
 
30285
  as_mkdir_p=:
 
30286
else
 
30287
  test -d ./-p && rmdir ./-p
 
30288
  as_mkdir_p=false
 
30289
fi
 
30290
 
17938
30291
as_executable_p="test -f"
17939
30292
 
17940
 
# Support unset when possible.
17941
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17942
 
  as_unset=unset
17943
 
else
17944
 
  as_unset=false
17945
 
fi
17946
 
 
17947
 
# NLS nuisances.
17948
 
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
17949
 
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
17950
 
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
17951
 
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
17952
 
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
17953
 
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
17954
 
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
17955
 
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
30293
# Sed expression to map a string onto a valid CPP name.
 
30294
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
30295
 
 
30296
# Sed expression to map a string onto a valid variable name.
 
30297
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
30298
 
17956
30299
 
17957
30300
# IFS
17958
30301
# We need space, tab and new line, in precisely that order.
17961
30304
IFS="   $as_nl"
17962
30305
 
17963
30306
# CDPATH.
17964
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
30307
$as_unset CDPATH
17965
30308
 
17966
30309
exec 6>&1
17967
30310
 
 
30311
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
30312
# report actual input values of CONFIG_FILES etc. instead of their
 
30313
# values after options handling.  Logging --version etc. is OK.
 
30314
exec 5>>config.log
 
30315
{
 
30316
  echo
 
30317
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
30318
## Running $as_me. ##
 
30319
_ASBOX
 
30320
} >&5
 
30321
cat >&5 <<_CSEOF
 
30322
 
 
30323
This file was extended by $as_me, which was
 
30324
generated by GNU Autoconf 2.59.  Invocation command line was
 
30325
 
 
30326
  CONFIG_FILES    = $CONFIG_FILES
 
30327
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
30328
  CONFIG_LINKS    = $CONFIG_LINKS
 
30329
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
30330
  $ $0 $@
 
30331
 
 
30332
_CSEOF
 
30333
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
30334
echo >&5
17968
30335
_ACEOF
17969
30336
 
17970
30337
# Files that config.status was made for.
17984
30351
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17985
30352
fi
17986
30353
 
17987
 
cat >>$CONFIG_STATUS <<\EOF
 
30354
cat >>$CONFIG_STATUS <<\_ACEOF
17988
30355
 
17989
30356
ac_cs_usage="\
17990
30357
\`$as_me' instantiates files from templates according to the
17994
30361
 
17995
30362
  -h, --help       print this help, then exit
17996
30363
  -V, --version    print version number, then exit
 
30364
  -q, --quiet      do not print progress messages
17997
30365
  -d, --debug      don't remove temporary files
17998
30366
      --recheck    update $as_me by reconfiguring in the same conditions
17999
30367
  --file=FILE[:TEMPLATE]
18000
 
                   instantiate the configuration file FILE
 
30368
                   instantiate the configuration file FILE
18001
30369
  --header=FILE[:TEMPLATE]
18002
 
                   instantiate the configuration header FILE
 
30370
                   instantiate the configuration header FILE
18003
30371
 
18004
30372
Configuration files:
18005
30373
$config_files
18011
30379
$config_commands
18012
30380
 
18013
30381
Report bugs to <bug-autoconf@gnu.org>."
18014
 
EOF
 
30382
_ACEOF
18015
30383
 
18016
 
cat >>$CONFIG_STATUS <<EOF
 
30384
cat >>$CONFIG_STATUS <<_ACEOF
18017
30385
ac_cs_version="\\
18018
30386
config.status
18019
 
configured by $0, generated by GNU Autoconf 2.52,
 
30387
configured by $0, generated by GNU Autoconf 2.59,
18020
30388
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18021
30389
 
18022
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18023
 
Free Software Foundation, Inc.
 
30390
Copyright (C) 2003 Free Software Foundation, Inc.
18024
30391
This config.status script is free software; the Free Software Foundation
18025
30392
gives unlimited permission to copy, distribute and modify it."
18026
30393
srcdir=$srcdir
18027
30394
INSTALL="$INSTALL"
18028
 
EOF
 
30395
_ACEOF
18029
30396
 
18030
 
cat >>$CONFIG_STATUS <<\EOF
 
30397
cat >>$CONFIG_STATUS <<\_ACEOF
18031
30398
# If no file are specified by the user, then we need to provide default
18032
30399
# value.  By we need to know if files were specified by the user.
18033
30400
ac_need_defaults=:
18037
30404
  --*=*)
18038
30405
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
18039
30406
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18040
 
    shift
18041
 
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
18042
 
    shift
18043
 
    ;;
18044
 
  -*);;
 
30407
    ac_shift=:
 
30408
    ;;
 
30409
  -*)
 
30410
    ac_option=$1
 
30411
    ac_optarg=$2
 
30412
    ac_shift=shift
 
30413
    ;;
18045
30414
  *) # This is not an option, so the user has probably given explicit
18046
30415
     # arguments.
 
30416
     ac_option=$1
18047
30417
     ac_need_defaults=false;;
18048
30418
  esac
18049
30419
 
18050
 
  case $1 in
 
30420
  case $ac_option in
18051
30421
  # Handling of the options.
18052
 
EOF
18053
 
cat >>$CONFIG_STATUS <<EOF
 
30422
_ACEOF
 
30423
cat >>$CONFIG_STATUS <<\_ACEOF
18054
30424
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18055
 
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
18056
 
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
18057
 
EOF
18058
 
cat >>$CONFIG_STATUS <<\EOF
 
30425
    ac_cs_recheck=: ;;
18059
30426
  --version | --vers* | -V )
18060
30427
    echo "$ac_cs_version"; exit 0 ;;
18061
30428
  --he | --h)
18062
30429
    # Conflict between --help and --header
18063
 
    { { echo "$as_me:18063: error: ambiguous option: $1
 
30430
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
18064
30431
Try \`$0 --help' for more information." >&5
18065
30432
echo "$as_me: error: ambiguous option: $1
18066
30433
Try \`$0 --help' for more information." >&2;}
18070
30437
  --debug | --d* | -d )
18071
30438
    debug=: ;;
18072
30439
  --file | --fil | --fi | --f )
18073
 
    shift
18074
 
    CONFIG_FILES="$CONFIG_FILES $1"
 
30440
    $ac_shift
 
30441
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18075
30442
    ac_need_defaults=false;;
18076
30443
  --header | --heade | --head | --hea )
18077
 
    shift
18078
 
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
30444
    $ac_shift
 
30445
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18079
30446
    ac_need_defaults=false;;
 
30447
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
30448
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
30449
    ac_cs_silent=: ;;
18080
30450
 
18081
30451
  # This is an error.
18082
 
  -*) { { echo "$as_me:18082: error: unrecognized option: $1
 
30452
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18083
30453
Try \`$0 --help' for more information." >&5
18084
30454
echo "$as_me: error: unrecognized option: $1
18085
30455
Try \`$0 --help' for more information." >&2;}
18091
30461
  shift
18092
30462
done
18093
30463
 
18094
 
exec 5>>config.log
18095
 
cat >&5 << _ACEOF
18096
 
 
18097
 
## ----------------------- ##
18098
 
## Running config.status.  ##
18099
 
## ----------------------- ##
18100
 
 
18101
 
This file was extended by $as_me 2.52, executed with
18102
 
  CONFIG_FILES    = $CONFIG_FILES
18103
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
18104
 
  CONFIG_LINKS    = $CONFIG_LINKS
18105
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
18106
 
  > $ac_cs_invocation
18107
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
18108
 
 
18109
 
_ACEOF
18110
 
EOF
18111
 
 
18112
 
cat >>$CONFIG_STATUS <<EOF
 
30464
ac_configure_extra_args=
 
30465
 
 
30466
if $ac_cs_silent; then
 
30467
  exec 6>/dev/null
 
30468
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
30469
fi
 
30470
 
 
30471
_ACEOF
 
30472
cat >>$CONFIG_STATUS <<_ACEOF
 
30473
if \$ac_cs_recheck; then
 
30474
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
30475
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
30476
fi
 
30477
 
 
30478
_ACEOF
 
30479
 
 
30480
cat >>$CONFIG_STATUS <<_ACEOF
18113
30481
#
18114
30482
# INIT-COMMANDS section.
18115
30483
#
18116
30484
 
18117
 
AMDEP_TRUE="$AMDEP_TRUE"
18118
 
ac_aux_dir="$ac_aux_dir"
18119
 
 
18120
 
EOF
18121
 
 
18122
 
cat >>$CONFIG_STATUS <<\EOF
 
30485
 
 
30486
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
30487
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
30488
    # from automake.
 
30489
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
30490
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
30491
    LINGUAS="${LINGUAS-%UNSET%}"
 
30492
 
 
30493
 
 
30494
_ACEOF
 
30495
 
 
30496
 
 
30497
 
 
30498
cat >>$CONFIG_STATUS <<\_ACEOF
18123
30499
for ac_config_target in $ac_config_targets
18124
30500
do
18125
30501
  case "$ac_config_target" in
18126
30502
  # Handling of arguments.
18127
30503
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18128
 
  "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
 
30504
  "build/Makefile" ) CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
 
30505
  "desktop/Makefile" ) CONFIG_FILES="$CONFIG_FILES desktop/Makefile" ;;
 
30506
  "glade/Makefile" ) CONFIG_FILES="$CONFIG_FILES glade/Makefile" ;;
18129
30507
  "help/Makefile" ) CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
18130
 
  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
 
30508
  "icons/Makefile" ) CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;;
18131
30509
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
18132
30510
  "misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
18133
30511
  "pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
18134
 
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
30512
  "registry/Makefile" ) CONFIG_FILES="$CONFIG_FILES registry/Makefile" ;;
18135
30513
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18136
 
  "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
 
30514
  "plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
 
30515
  "plugins/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/test/Makefile" ;;
 
30516
  "plugins/nv82/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/nv82/Makefile" ;;
 
30517
  "plugins/gfv/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/gfv/Makefile" ;;
18137
30518
  "tilp.lsm" ) CONFIG_FILES="$CONFIG_FILES tilp.lsm" ;;
18138
30519
  "tilp.spec" ) CONFIG_FILES="$CONFIG_FILES tilp.spec" ;;
 
30520
  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
 
30521
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18139
30522
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18140
30523
  "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
18141
30524
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18142
 
  *) { { echo "$as_me:18142: error: invalid argument: $ac_config_target" >&5
 
30525
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18143
30526
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18144
30527
   { (exit 1); exit 1; }; };;
18145
30528
  esac
18155
30538
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18156
30539
fi
18157
30540
 
 
30541
# Have a temporary directory for convenience.  Make it in the build tree
 
30542
# simply because there is no reason to put it here, and in addition,
 
30543
# creating and moving files from /tmp can sometimes cause problems.
18158
30544
# Create a temporary directory, and hook for its removal unless debugging.
18159
30545
$debug ||
18160
30546
{
18163
30549
}
18164
30550
 
18165
30551
# Create a (secure) tmp directory for tmp files.
18166
 
: ${TMPDIR=/tmp}
 
30552
 
18167
30553
{
18168
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
30554
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18169
30555
  test -n "$tmp" && test -d "$tmp"
18170
30556
}  ||
18171
30557
{
18172
 
  tmp=$TMPDIR/cs$$-$RANDOM
 
30558
  tmp=./confstat$$-$RANDOM
18173
30559
  (umask 077 && mkdir $tmp)
18174
30560
} ||
18175
30561
{
18176
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
30562
   echo "$me: cannot create a temporary directory in ." >&2
18177
30563
   { (exit 1); exit 1; }
18178
30564
}
18179
30565
 
18180
 
EOF
 
30566
_ACEOF
18181
30567
 
18182
 
cat >>$CONFIG_STATUS <<EOF
 
30568
cat >>$CONFIG_STATUS <<_ACEOF
18183
30569
 
18184
30570
#
18185
30571
# CONFIG_FILES section.
18192
30578
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18193
30579
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18194
30580
s,@SHELL@,$SHELL,;t t
 
30581
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
30582
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
30583
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
30584
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
30585
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
30586
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18195
30587
s,@exec_prefix@,$exec_prefix,;t t
18196
30588
s,@prefix@,$prefix,;t t
18197
30589
s,@program_transform_name@,$program_transform_name,;t t
18207
30599
s,@oldincludedir@,$oldincludedir,;t t
18208
30600
s,@infodir@,$infodir,;t t
18209
30601
s,@mandir@,$mandir,;t t
18210
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18211
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18212
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18213
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18214
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18215
30602
s,@build_alias@,$build_alias,;t t
18216
30603
s,@host_alias@,$host_alias,;t t
18217
30604
s,@target_alias@,$target_alias,;t t
 
30605
s,@DEFS@,$DEFS,;t t
18218
30606
s,@ECHO_C@,$ECHO_C,;t t
18219
30607
s,@ECHO_N@,$ECHO_N,;t t
18220
30608
s,@ECHO_T@,$ECHO_T,;t t
18221
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18222
 
s,@DEFS@,$DEFS,;t t
18223
30609
s,@LIBS@,$LIBS,;t t
18224
30610
s,@VERSION@,$VERSION,;t t
18225
30611
s,@PACKAGE@,$PACKAGE,;t t
18226
 
s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t
18227
 
s,@MINOR_VERSION@,$MINOR_VERSION,;t t
18228
 
s,@MICRO_VERSION@,$MICRO_VERSION,;t t
18229
 
s,@LT_RELEASE@,$LT_RELEASE,;t t
18230
 
s,@LT_CURRENT@,$LT_CURRENT,;t t
18231
 
s,@LT_REVISION@,$LT_REVISION,;t t
18232
 
s,@LT_AGE@,$LT_AGE,;t t
 
30612
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
30613
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
30614
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
30615
s,@ACLOCAL@,$ACLOCAL,;t t
 
30616
s,@AUTOCONF@,$AUTOCONF,;t t
 
30617
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
30618
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
30619
s,@MAKEINFO@,$MAKEINFO,;t t
 
30620
s,@SET_MAKE@,$SET_MAKE,;t t
 
30621
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
30622
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
30623
s,@MAINT@,$MAINT,;t t
18233
30624
s,@build@,$build,;t t
18234
30625
s,@build_cpu@,$build_cpu,;t t
18235
30626
s,@build_vendor@,$build_vendor,;t t
18238
30629
s,@host_cpu@,$host_cpu,;t t
18239
30630
s,@host_vendor@,$host_vendor,;t t
18240
30631
s,@host_os@,$host_os,;t t
18241
 
s,@target@,$target,;t t
18242
 
s,@target_cpu@,$target_cpu,;t t
18243
 
s,@target_vendor@,$target_vendor,;t t
18244
 
s,@target_os@,$target_os,;t t
18245
30632
s,@CC@,$CC,;t t
18246
30633
s,@CFLAGS@,$CFLAGS,;t t
18247
30634
s,@LDFLAGS@,$LDFLAGS,;t t
18249
30636
s,@ac_ct_CC@,$ac_ct_CC,;t t
18250
30637
s,@EXEEXT@,$EXEEXT,;t t
18251
30638
s,@OBJEXT@,$OBJEXT,;t t
18252
 
s,@LN_S@,$LN_S,;t t
18253
 
s,@ECHO@,$ECHO,;t t
18254
 
s,@RANLIB@,$RANLIB,;t t
18255
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18256
 
s,@STRIP@,$STRIP,;t t
18257
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
18258
 
s,@CPP@,$CPP,;t t
18259
30639
s,@CXX@,$CXX,;t t
18260
30640
s,@CXXFLAGS@,$CXXFLAGS,;t t
18261
30641
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18262
 
s,@CXXCPP@,$CXXCPP,;t t
18263
 
s,@LIBTOOL@,$LIBTOOL,;t t
18264
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18265
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18266
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18267
 
s,@ACLOCAL@,$ACLOCAL,;t t
18268
 
s,@AUTOCONF@,$AUTOCONF,;t t
18269
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
18270
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
18271
 
s,@MAKEINFO@,$MAKEINFO,;t t
18272
 
s,@AMTAR@,$AMTAR,;t t
18273
 
s,@install_sh@,$install_sh,;t t
18274
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
30642
s,@LN_S@,$LN_S,;t t
18275
30643
s,@AWK@,$AWK,;t t
18276
 
s,@SET_MAKE@,$SET_MAKE,;t t
18277
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
18278
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
18279
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
18280
 
s,@DEPDIR@,$DEPDIR,;t t
18281
 
s,@am__include@,$am__include,;t t
18282
 
s,@am__quote@,$am__quote,;t t
18283
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
18284
 
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
18285
 
s,@TICABLES_CONFIG@,$TICABLES_CONFIG,;t t
18286
 
s,@TICALCS_CONFIG@,$TICALCS_CONFIG,;t t
18287
 
s,@TIFFEP_CONFIG@,$TIFFEP_CONFIG,;t t
18288
 
s,@GTK_CONFIG@,$GTK_CONFIG,;t t
18289
 
s,@LIBOBJS@,$LIBOBJS,;t t
18290
 
s,@ALLOCA@,$ALLOCA,;t t
18291
 
s,@GLIBC21@,$GLIBC21,;t t
18292
 
s,@LIBICONV@,$LIBICONV,;t t
 
30644
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
18293
30645
s,@USE_NLS@,$USE_NLS,;t t
18294
30646
s,@MSGFMT@,$MSGFMT,;t t
18295
30647
s,@GMSGFMT@,$GMSGFMT,;t t
18296
30648
s,@XGETTEXT@,$XGETTEXT,;t t
 
30649
s,@MSGMERGE@,$MSGMERGE,;t t
 
30650
s,@RANLIB@,$RANLIB,;t t
 
30651
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
30652
s,@CPP@,$CPP,;t t
 
30653
s,@EGREP@,$EGREP,;t t
 
30654
s,@ALLOCA@,$ALLOCA,;t t
 
30655
s,@GLIBC21@,$GLIBC21,;t t
 
30656
s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
 
30657
s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
 
30658
s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
 
30659
s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
 
30660
s,@LIBICONV@,$LIBICONV,;t t
 
30661
s,@LTLIBICONV@,$LTLIBICONV,;t t
18297
30662
s,@INTLBISON@,$INTLBISON,;t t
18298
30663
s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
18299
30664
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
18300
 
s,@CATALOGS@,$CATALOGS,;t t
18301
30665
s,@CATOBJEXT@,$CATOBJEXT,;t t
18302
 
s,@GMOFILES@,$GMOFILES,;t t
18303
 
s,@INTLLIBS@,$INTLLIBS,;t t
18304
 
s,@INTLOBJS@,$INTLOBJS,;t t
18305
 
s,@POFILES@,$POFILES,;t t
18306
 
s,@POSUB@,$POSUB,;t t
18307
30666
s,@DATADIRNAME@,$DATADIRNAME,;t t
18308
30667
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
18309
30668
s,@GENCAT@,$GENCAT,;t t
18310
 
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
 
30669
s,@INTLOBJS@,$INTLOBJS,;t t
18311
30670
s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
18312
 
s,@PACKAGE_LOCALE_DIR@,$PACKAGE_LOCALE_DIR,;t t
 
30671
s,@INTLLIBS@,$INTLLIBS,;t t
 
30672
s,@LIBINTL@,$LIBINTL,;t t
 
30673
s,@LTLIBINTL@,$LTLIBINTL,;t t
 
30674
s,@POSUB@,$POSUB,;t t
 
30675
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
30676
s,@LIBOBJS@,$LIBOBJS,;t t
 
30677
s,@OS_WIN32_TRUE@,$OS_WIN32_TRUE,;t t
 
30678
s,@OS_WIN32_FALSE@,$OS_WIN32_FALSE,;t t
 
30679
s,@TICABLES_CFLAGS@,$TICABLES_CFLAGS,;t t
 
30680
s,@TICABLES_LIBS@,$TICABLES_LIBS,;t t
 
30681
s,@TIFILES_CFLAGS@,$TIFILES_CFLAGS,;t t
 
30682
s,@TIFILES_LIBS@,$TIFILES_LIBS,;t t
 
30683
s,@TICALCS_CFLAGS@,$TICALCS_CFLAGS,;t t
 
30684
s,@TICALCS_LIBS@,$TICALCS_LIBS,;t t
 
30685
s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
 
30686
s,@GLIB_LIBS@,$GLIB_LIBS,;t t
 
30687
s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
 
30688
s,@GTK_LIBS@,$GTK_LIBS,;t t
 
30689
s,@ECHO@,$ECHO,;t t
 
30690
s,@AR@,$AR,;t t
 
30691
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
30692
s,@STRIP@,$STRIP,;t t
 
30693
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
30694
s,@DLLTOOL@,$DLLTOOL,;t t
 
30695
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
 
30696
s,@AS@,$AS,;t t
 
30697
s,@ac_ct_AS@,$ac_ct_AS,;t t
 
30698
s,@OBJDUMP@,$OBJDUMP,;t t
 
30699
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
 
30700
s,@CXXCPP@,$CXXCPP,;t t
 
30701
s,@F77@,$F77,;t t
 
30702
s,@FFLAGS@,$FFLAGS,;t t
 
30703
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
30704
s,@LIBTOOL@,$LIBTOOL,;t t
 
30705
s,@tilp_plugin_dir@,$tilp_plugin_dir,;t t
 
30706
s,@tilp_help_dir@,$tilp_help_dir,;t t
 
30707
s,@tilp_pixmap_dir@,$tilp_pixmap_dir,;t t
 
30708
s,@tilp_icon_dir@,$tilp_icon_dir,;t t
 
30709
s,@tilp_glade_dir@,$tilp_glade_dir,;t t
 
30710
s,@ALLOW_EXIT_HOMEDIR@,$ALLOW_EXIT_HOMEDIR,;t t
 
30711
s,@locale_dir@,$locale_dir,;t t
 
30712
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18313
30713
CEOF
18314
30714
 
18315
 
EOF
 
30715
_ACEOF
18316
30716
 
18317
 
  cat >>$CONFIG_STATUS <<\EOF
 
30717
  cat >>$CONFIG_STATUS <<\_ACEOF
18318
30718
  # Split the substitutions into bite-sized pieces for seds with
18319
30719
  # small command number limits, like on Digital OSF/1 and HP-UX.
18320
30720
  ac_max_sed_lines=48
18339
30739
      (echo ':t
18340
30740
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18341
30741
      if test -z "$ac_sed_cmds"; then
18342
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
30742
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18343
30743
      else
18344
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
30744
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18345
30745
      fi
18346
30746
      ac_sed_frag=`expr $ac_sed_frag + 1`
18347
30747
      ac_beg=$ac_end
18353
30753
  fi
18354
30754
fi # test -n "$CONFIG_FILES"
18355
30755
 
18356
 
EOF
18357
 
cat >>$CONFIG_STATUS <<\EOF
 
30756
_ACEOF
 
30757
cat >>$CONFIG_STATUS <<\_ACEOF
18358
30758
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18359
30759
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18360
30760
  case $ac_file in
18361
30761
  - | *:- | *:-:* ) # input from stdin
18362
 
        cat >$tmp/stdin
18363
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18364
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
30762
        cat >$tmp/stdin
 
30763
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
30764
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18365
30765
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18366
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
30766
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18367
30767
  * )   ac_file_in=$ac_file.in ;;
18368
30768
  esac
18369
30769
 
18370
30770
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18371
 
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18372
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
18373
 
         X"$ac_file" : 'X\(//\)$' \| \
18374
 
         X"$ac_file" : 'X\(/\)' \| \
18375
 
         .     : '\(.\)' 2>/dev/null ||
 
30771
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
30772
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
30773
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
30774
         X"$ac_file" : 'X\(//\)$' \| \
 
30775
         X"$ac_file" : 'X\(/\)' \| \
 
30776
         .     : '\(.\)' 2>/dev/null ||
18376
30777
echo X"$ac_file" |
18377
30778
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18378
30779
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18379
30780
          /^X\(\/\/\)$/{ s//\1/; q; }
18380
30781
          /^X\(\/\).*/{ s//\1/; q; }
18381
30782
          s/.*/./; q'`
18382
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18383
 
    { case "$ac_dir" in
18384
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18385
 
  *)                      as_incr_dir=.;;
18386
 
esac
18387
 
as_dummy="$ac_dir"
18388
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18389
 
  case $as_mkdir_dir in
18390
 
    # Skip DOS drivespec
18391
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
18392
 
    *)
18393
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
18394
 
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18395
 
    ;;
18396
 
  esac
18397
 
done; }
18398
 
 
18399
 
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
18400
 
    # A "../" for each directory in $ac_dir_suffix.
18401
 
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
 
30783
  { if $as_mkdir_p; then
 
30784
    mkdir -p "$ac_dir"
18402
30785
  else
18403
 
    ac_dir_suffix= ac_dots=
18404
 
  fi
18405
 
 
18406
 
  case $srcdir in
18407
 
  .)  ac_srcdir=.
18408
 
      if test -z "$ac_dots"; then
18409
 
         ac_top_srcdir=.
18410
 
      else
18411
 
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
18412
 
      fi ;;
18413
 
  [\\/]* | ?:[\\/]* )
18414
 
      ac_srcdir=$srcdir$ac_dir_suffix;
18415
 
      ac_top_srcdir=$srcdir ;;
 
30786
    as_dir="$ac_dir"
 
30787
    as_dirs=
 
30788
    while test ! -d "$as_dir"; do
 
30789
      as_dirs="$as_dir $as_dirs"
 
30790
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
30791
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
30792
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
30793
         X"$as_dir" : 'X\(//\)$' \| \
 
30794
         X"$as_dir" : 'X\(/\)' \| \
 
30795
         .     : '\(.\)' 2>/dev/null ||
 
30796
echo X"$as_dir" |
 
30797
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
30798
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
30799
          /^X\(\/\/\)$/{ s//\1/; q; }
 
30800
          /^X\(\/\).*/{ s//\1/; q; }
 
30801
          s/.*/./; q'`
 
30802
    done
 
30803
    test ! -n "$as_dirs" || mkdir $as_dirs
 
30804
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
30805
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
30806
   { (exit 1); exit 1; }; }; }
 
30807
 
 
30808
  ac_builddir=.
 
30809
 
 
30810
if test "$ac_dir" != .; then
 
30811
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
30812
  # A "../" for each directory in $ac_dir_suffix.
 
30813
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
30814
else
 
30815
  ac_dir_suffix= ac_top_builddir=
 
30816
fi
 
30817
 
 
30818
case $srcdir in
 
30819
  .)  # No --srcdir option.  We are building in place.
 
30820
    ac_srcdir=.
 
30821
    if test -z "$ac_top_builddir"; then
 
30822
       ac_top_srcdir=.
 
30823
    else
 
30824
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
30825
    fi ;;
 
30826
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
30827
    ac_srcdir=$srcdir$ac_dir_suffix;
 
30828
    ac_top_srcdir=$srcdir ;;
18416
30829
  *) # Relative path.
18417
 
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
18418
 
    ac_top_srcdir=$ac_dots$srcdir ;;
18419
 
  esac
 
30830
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
30831
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
30832
esac
 
30833
 
 
30834
# Do not use `cd foo && pwd` to compute absolute paths, because
 
30835
# the directories may not exist.
 
30836
case `pwd` in
 
30837
.) ac_abs_builddir="$ac_dir";;
 
30838
*)
 
30839
  case "$ac_dir" in
 
30840
  .) ac_abs_builddir=`pwd`;;
 
30841
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
30842
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
30843
  esac;;
 
30844
esac
 
30845
case $ac_abs_builddir in
 
30846
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
30847
*)
 
30848
  case ${ac_top_builddir}. in
 
30849
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
30850
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
30851
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
30852
  esac;;
 
30853
esac
 
30854
case $ac_abs_builddir in
 
30855
.) ac_abs_srcdir=$ac_srcdir;;
 
30856
*)
 
30857
  case $ac_srcdir in
 
30858
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
30859
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
30860
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
30861
  esac;;
 
30862
esac
 
30863
case $ac_abs_builddir in
 
30864
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
30865
*)
 
30866
  case $ac_top_srcdir in
 
30867
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
30868
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
30869
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
30870
  esac;;
 
30871
esac
 
30872
 
18420
30873
 
18421
30874
  case $INSTALL in
18422
30875
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18423
 
  *) ac_INSTALL=$ac_dots$INSTALL ;;
 
30876
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18424
30877
  esac
18425
30878
 
 
30879
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
30880
  # use $as_me), people would be surprised to read:
 
30881
  #    /* config.h.  Generated by config.status.  */
 
30882
  if test x"$ac_file" = x-; then
 
30883
    configure_input=
 
30884
  else
 
30885
    configure_input="$ac_file.  "
 
30886
  fi
 
30887
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
30888
                                     sed 's,.*/,,'` by configure."
 
30889
 
 
30890
  # First look for the input files in the build tree, otherwise in the
 
30891
  # src tree.
 
30892
  ac_file_inputs=`IFS=:
 
30893
    for f in $ac_file_in; do
 
30894
      case $f in
 
30895
      -) echo $tmp/stdin ;;
 
30896
      [\\/$]*)
 
30897
         # Absolute (can't be DOS-style, as IFS=:)
 
30898
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
30899
echo "$as_me: error: cannot find input file: $f" >&2;}
 
30900
   { (exit 1); exit 1; }; }
 
30901
         echo "$f";;
 
30902
      *) # Relative
 
30903
         if test -f "$f"; then
 
30904
           # Build tree
 
30905
           echo "$f"
 
30906
         elif test -f "$srcdir/$f"; then
 
30907
           # Source tree
 
30908
           echo "$srcdir/$f"
 
30909
         else
 
30910
           # /dev/null tree
 
30911
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
30912
echo "$as_me: error: cannot find input file: $f" >&2;}
 
30913
   { (exit 1); exit 1; }; }
 
30914
         fi;;
 
30915
      esac
 
30916
    done` || { (exit 1); exit 1; }
 
30917
 
18426
30918
  if test x"$ac_file" != x-; then
18427
 
    { echo "$as_me:18427: creating $ac_file" >&5
 
30919
    { echo "$as_me:$LINENO: creating $ac_file" >&5
18428
30920
echo "$as_me: creating $ac_file" >&6;}
18429
30921
    rm -f "$ac_file"
18430
30922
  fi
18431
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
18432
 
  # use $as_me), people would be surprised to read:
18433
 
  #    /* config.h.  Generated automatically by config.status.  */
18434
 
  configure_input="Generated automatically from `echo $ac_file_in |
18435
 
                                                 sed 's,.*/,,'` by configure."
18436
 
 
18437
 
  # First look for the input files in the build tree, otherwise in the
18438
 
  # src tree.
18439
 
  ac_file_inputs=`IFS=:
18440
 
    for f in $ac_file_in; do
18441
 
      case $f in
18442
 
      -) echo $tmp/stdin ;;
18443
 
      [\\/$]*)
18444
 
         # Absolute (can't be DOS-style, as IFS=:)
18445
 
         test -f "$f" || { { echo "$as_me:18445: error: cannot find input file: $f" >&5
18446
 
echo "$as_me: error: cannot find input file: $f" >&2;}
18447
 
   { (exit 1); exit 1; }; }
18448
 
         echo $f;;
18449
 
      *) # Relative
18450
 
         if test -f "$f"; then
18451
 
           # Build tree
18452
 
           echo $f
18453
 
         elif test -f "$srcdir/$f"; then
18454
 
           # Source tree
18455
 
           echo $srcdir/$f
18456
 
         else
18457
 
           # /dev/null tree
18458
 
           { { echo "$as_me:18458: error: cannot find input file: $f" >&5
18459
 
echo "$as_me: error: cannot find input file: $f" >&2;}
18460
 
   { (exit 1); exit 1; }; }
18461
 
         fi;;
18462
 
      esac
18463
 
    done` || { (exit 1); exit 1; }
18464
 
EOF
18465
 
cat >>$CONFIG_STATUS <<EOF
 
30923
_ACEOF
 
30924
cat >>$CONFIG_STATUS <<_ACEOF
18466
30925
  sed "$ac_vpsub
18467
30926
$extrasub
18468
 
EOF
18469
 
cat >>$CONFIG_STATUS <<\EOF
 
30927
_ACEOF
 
30928
cat >>$CONFIG_STATUS <<\_ACEOF
18470
30929
:t
18471
30930
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18472
30931
s,@configure_input@,$configure_input,;t t
18473
30932
s,@srcdir@,$ac_srcdir,;t t
 
30933
s,@abs_srcdir@,$ac_abs_srcdir,;t t
18474
30934
s,@top_srcdir@,$ac_top_srcdir,;t t
 
30935
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
30936
s,@builddir@,$ac_builddir,;t t
 
30937
s,@abs_builddir@,$ac_abs_builddir,;t t
 
30938
s,@top_builddir@,$ac_top_builddir,;t t
 
30939
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18475
30940
s,@INSTALL@,$ac_INSTALL,;t t
18476
30941
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18477
30942
  rm -f $tmp/stdin
18483
30948
  fi
18484
30949
 
18485
30950
done
18486
 
EOF
18487
 
cat >>$CONFIG_STATUS <<\EOF
 
30951
_ACEOF
 
30952
cat >>$CONFIG_STATUS <<\_ACEOF
18488
30953
 
18489
30954
#
18490
30955
# CONFIG_HEADER section.
18494
30959
# NAME is the cpp macro being defined and VALUE is the value it is being given.
18495
30960
#
18496
30961
# ac_d sets the value in "#define NAME VALUE" lines.
18497
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
18498
 
ac_dB='[        ].*$,\1#\2'
 
30962
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
30963
ac_dB='[         ].*$,\1#\2'
18499
30964
ac_dC=' '
18500
30965
ac_dD=',;t'
18501
30966
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18502
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
30967
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18503
30968
ac_uB='$,\1#\2define\3'
18504
30969
ac_uC=' '
18505
30970
ac_uD=',;t'
18508
30973
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18509
30974
  case $ac_file in
18510
30975
  - | *:- | *:-:* ) # input from stdin
18511
 
        cat >$tmp/stdin
18512
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18513
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
30976
        cat >$tmp/stdin
 
30977
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
30978
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18514
30979
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18515
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
30980
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18516
30981
  * )   ac_file_in=$ac_file.in ;;
18517
30982
  esac
18518
30983
 
18519
 
  test x"$ac_file" != x- && { echo "$as_me:18519: creating $ac_file" >&5
 
30984
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18520
30985
echo "$as_me: creating $ac_file" >&6;}
18521
30986
 
18522
30987
  # First look for the input files in the build tree, otherwise in the
18526
30991
      case $f in
18527
30992
      -) echo $tmp/stdin ;;
18528
30993
      [\\/$]*)
18529
 
         # Absolute (can't be DOS-style, as IFS=:)
18530
 
         test -f "$f" || { { echo "$as_me:18530: error: cannot find input file: $f" >&5
 
30994
         # Absolute (can't be DOS-style, as IFS=:)
 
30995
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18531
30996
echo "$as_me: error: cannot find input file: $f" >&2;}
18532
30997
   { (exit 1); exit 1; }; }
18533
 
         echo $f;;
 
30998
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
30999
         echo "$f";;
18534
31000
      *) # Relative
18535
 
         if test -f "$f"; then
18536
 
           # Build tree
18537
 
           echo $f
18538
 
         elif test -f "$srcdir/$f"; then
18539
 
           # Source tree
18540
 
           echo $srcdir/$f
18541
 
         else
18542
 
           # /dev/null tree
18543
 
           { { echo "$as_me:18543: error: cannot find input file: $f" >&5
 
31001
         if test -f "$f"; then
 
31002
           # Build tree
 
31003
           echo "$f"
 
31004
         elif test -f "$srcdir/$f"; then
 
31005
           # Source tree
 
31006
           echo "$srcdir/$f"
 
31007
         else
 
31008
           # /dev/null tree
 
31009
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18544
31010
echo "$as_me: error: cannot find input file: $f" >&2;}
18545
31011
   { (exit 1); exit 1; }; }
18546
 
         fi;;
 
31012
         fi;;
18547
31013
      esac
18548
31014
    done` || { (exit 1); exit 1; }
18549
31015
  # Remove the trailing spaces.
18550
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
31016
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
18551
31017
 
18552
 
EOF
 
31018
_ACEOF
18553
31019
 
18554
31020
# Transform confdefs.h into two sed scripts, `conftest.defines' and
18555
31021
# `conftest.undefs', that substitutes the proper values into
18565
31031
# `end' is used to avoid that the second main sed command (meant for
18566
31032
# 0-ary CPP macros) applies to n-ary macro definitions.
18567
31033
# See the Autoconf documentation for `clear'.
18568
 
cat >confdef2sed.sed <<\EOF
 
31034
cat >confdef2sed.sed <<\_ACEOF
18569
31035
s/[\\&,]/\\&/g
18570
31036
s,[\\$`],\\&,g
18571
31037
t clear
18572
31038
: clear
18573
 
s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
 
31039
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18574
31040
t end
18575
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
31041
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18576
31042
: end
18577
 
EOF
 
31043
_ACEOF
18578
31044
# If some macros were called several times there might be several times
18579
31045
# the same #defines, which is useless.  Nevertheless, we may not want to
18580
31046
# sort them, since we want the *last* AC-DEFINE to be honored.
18585
31051
# This sed command replaces #undef with comments.  This is necessary, for
18586
31052
# example, in the case of _POSIX_SOURCE, which is predefined and required
18587
31053
# on some systems where configure will not decide to define it.
18588
 
cat >>conftest.undefs <<\EOF
18589
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18590
 
EOF
 
31054
cat >>conftest.undefs <<\_ACEOF
 
31055
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
31056
_ACEOF
18591
31057
 
18592
31058
# Break up conftest.defines because some shells have a limit on the size
18593
31059
# of here documents, and old seds have small limits too (100 cmds).
18594
31060
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18595
 
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
31061
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18596
31062
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18597
31063
echo '  :' >>$CONFIG_STATUS
18598
31064
rm -f conftest.tail
18601
31067
  # Write a limited-size here document to $tmp/defines.sed.
18602
31068
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18603
31069
  # Speed up: don't consider the non `#define' lines.
18604
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
31070
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
18605
31071
  # Work around the forget-to-reset-the-flag bug.
18606
31072
  echo 't clr' >>$CONFIG_STATUS
18607
31073
  echo ': clr' >>$CONFIG_STATUS
18616
31082
  mv conftest.tail conftest.defines
18617
31083
done
18618
31084
rm -f conftest.defines
18619
 
echo '  fi # egrep' >>$CONFIG_STATUS
 
31085
echo '  fi # grep' >>$CONFIG_STATUS
18620
31086
echo >>$CONFIG_STATUS
18621
31087
 
18622
31088
# Break up conftest.undefs because some shells have a limit on the size
18628
31094
  # Write a limited-size here document to $tmp/undefs.sed.
18629
31095
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18630
31096
  # Speed up: don't consider the non `#undef'
18631
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
31097
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
18632
31098
  # Work around the forget-to-reset-the-flag bug.
18633
31099
  echo 't clr' >>$CONFIG_STATUS
18634
31100
  echo ': clr' >>$CONFIG_STATUS
18644
31110
done
18645
31111
rm -f conftest.undefs
18646
31112
 
18647
 
cat >>$CONFIG_STATUS <<\EOF
 
31113
cat >>$CONFIG_STATUS <<\_ACEOF
18648
31114
  # Let's still pretend it is `configure' which instantiates (i.e., don't
18649
31115
  # use $as_me), people would be surprised to read:
18650
 
  #    /* config.h.  Generated automatically by config.status.  */
 
31116
  #    /* config.h.  Generated by config.status.  */
18651
31117
  if test x"$ac_file" = x-; then
18652
 
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
 
31118
    echo "/* Generated by configure.  */" >$tmp/config.h
18653
31119
  else
18654
 
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
 
31120
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
18655
31121
  fi
18656
31122
  cat $tmp/in >>$tmp/config.h
18657
31123
  rm -f $tmp/in
18658
31124
  if test x"$ac_file" != x-; then
18659
 
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
18660
 
      { echo "$as_me:18660: $ac_file is unchanged" >&5
 
31125
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
31126
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18661
31127
echo "$as_me: $ac_file is unchanged" >&6;}
18662
31128
    else
18663
 
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18664
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
18665
 
         X"$ac_file" : 'X\(//\)$' \| \
18666
 
         X"$ac_file" : 'X\(/\)' \| \
18667
 
         .     : '\(.\)' 2>/dev/null ||
 
31129
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
31130
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
31131
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
31132
         X"$ac_file" : 'X\(//\)$' \| \
 
31133
         X"$ac_file" : 'X\(/\)' \| \
 
31134
         .     : '\(.\)' 2>/dev/null ||
18668
31135
echo X"$ac_file" |
18669
31136
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18670
31137
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18671
31138
          /^X\(\/\/\)$/{ s//\1/; q; }
18672
31139
          /^X\(\/\).*/{ s//\1/; q; }
18673
31140
          s/.*/./; q'`
18674
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18675
 
        { case "$ac_dir" in
18676
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
18677
 
  *)                      as_incr_dir=.;;
18678
 
esac
18679
 
as_dummy="$ac_dir"
18680
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
18681
 
  case $as_mkdir_dir in
18682
 
    # Skip DOS drivespec
18683
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
18684
 
    *)
18685
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
18686
 
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
18687
 
    ;;
18688
 
  esac
18689
 
done; }
 
31141
      { if $as_mkdir_p; then
 
31142
    mkdir -p "$ac_dir"
 
31143
  else
 
31144
    as_dir="$ac_dir"
 
31145
    as_dirs=
 
31146
    while test ! -d "$as_dir"; do
 
31147
      as_dirs="$as_dir $as_dirs"
 
31148
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
31149
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
31150
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
31151
         X"$as_dir" : 'X\(//\)$' \| \
 
31152
         X"$as_dir" : 'X\(/\)' \| \
 
31153
         .     : '\(.\)' 2>/dev/null ||
 
31154
echo X"$as_dir" |
 
31155
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
31156
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
31157
          /^X\(\/\/\)$/{ s//\1/; q; }
 
31158
          /^X\(\/\).*/{ s//\1/; q; }
 
31159
          s/.*/./; q'`
 
31160
    done
 
31161
    test ! -n "$as_dirs" || mkdir $as_dirs
 
31162
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
31163
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
31164
   { (exit 1); exit 1; }; }; }
18690
31165
 
18691
 
      fi
18692
31166
      rm -f $ac_file
18693
31167
      mv $tmp/config.h $ac_file
18694
31168
    fi
18696
31170
    cat $tmp/config.h
18697
31171
    rm -f $tmp/config.h
18698
31172
  fi
18699
 
  # Run the commands associated with the file.
18700
 
  case $ac_file in
18701
 
    config.h ) # update the timestamp
18702
 
echo timestamp >"./stamp-h1"
18703
 
 ;;
18704
 
  esac
18705
31173
done
18706
 
EOF
18707
 
cat >>$CONFIG_STATUS <<\EOF
 
31174
_ACEOF
 
31175
cat >>$CONFIG_STATUS <<\_ACEOF
18708
31176
 
18709
31177
#
18710
31178
# CONFIG_COMMANDS section.
18712
31180
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18713
31181
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18714
31182
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18715
 
 
 
31183
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
31184
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
31185
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
31186
         X"$ac_dest" : 'X\(//\)$' \| \
 
31187
         X"$ac_dest" : 'X\(/\)' \| \
 
31188
         .     : '\(.\)' 2>/dev/null ||
 
31189
echo X"$ac_dest" |
 
31190
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
31191
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
31192
          /^X\(\/\/\)$/{ s//\1/; q; }
 
31193
          /^X\(\/\).*/{ s//\1/; q; }
 
31194
          s/.*/./; q'`
 
31195
  { if $as_mkdir_p; then
 
31196
    mkdir -p "$ac_dir"
 
31197
  else
 
31198
    as_dir="$ac_dir"
 
31199
    as_dirs=
 
31200
    while test ! -d "$as_dir"; do
 
31201
      as_dirs="$as_dir $as_dirs"
 
31202
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
31203
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
31204
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
31205
         X"$as_dir" : 'X\(//\)$' \| \
 
31206
         X"$as_dir" : 'X\(/\)' \| \
 
31207
         .     : '\(.\)' 2>/dev/null ||
 
31208
echo X"$as_dir" |
 
31209
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
31210
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
31211
          /^X\(\/\/\)$/{ s//\1/; q; }
 
31212
          /^X\(\/\).*/{ s//\1/; q; }
 
31213
          s/.*/./; q'`
 
31214
    done
 
31215
    test ! -n "$as_dirs" || mkdir $as_dirs
 
31216
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
31217
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
31218
   { (exit 1); exit 1; }; }; }
 
31219
 
 
31220
  ac_builddir=.
 
31221
 
 
31222
if test "$ac_dir" != .; then
 
31223
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
31224
  # A "../" for each directory in $ac_dir_suffix.
 
31225
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
31226
else
 
31227
  ac_dir_suffix= ac_top_builddir=
 
31228
fi
 
31229
 
 
31230
case $srcdir in
 
31231
  .)  # No --srcdir option.  We are building in place.
 
31232
    ac_srcdir=.
 
31233
    if test -z "$ac_top_builddir"; then
 
31234
       ac_top_srcdir=.
 
31235
    else
 
31236
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
31237
    fi ;;
 
31238
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
31239
    ac_srcdir=$srcdir$ac_dir_suffix;
 
31240
    ac_top_srcdir=$srcdir ;;
 
31241
  *) # Relative path.
 
31242
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
31243
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
31244
esac
 
31245
 
 
31246
# Do not use `cd foo && pwd` to compute absolute paths, because
 
31247
# the directories may not exist.
 
31248
case `pwd` in
 
31249
.) ac_abs_builddir="$ac_dir";;
 
31250
*)
 
31251
  case "$ac_dir" in
 
31252
  .) ac_abs_builddir=`pwd`;;
 
31253
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
31254
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
31255
  esac;;
 
31256
esac
 
31257
case $ac_abs_builddir in
 
31258
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
31259
*)
 
31260
  case ${ac_top_builddir}. in
 
31261
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
31262
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
31263
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
31264
  esac;;
 
31265
esac
 
31266
case $ac_abs_builddir in
 
31267
.) ac_abs_srcdir=$ac_srcdir;;
 
31268
*)
 
31269
  case $ac_srcdir in
 
31270
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
31271
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
31272
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
31273
  esac;;
 
31274
esac
 
31275
case $ac_abs_builddir in
 
31276
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
31277
*)
 
31278
  case $ac_top_srcdir in
 
31279
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
31280
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
31281
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
31282
  esac;;
 
31283
esac
 
31284
 
 
31285
 
 
31286
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
31287
echo "$as_me: executing $ac_dest commands" >&6;}
18716
31288
  case $ac_dest in
18717
 
    default-1 )
18718
 
test x"$AMDEP_TRUE" != x"" ||
18719
 
for mf in $CONFIG_FILES; do
18720
 
  case "$mf" in
18721
 
  Makefile) dirpart=.;;
18722
 
  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
18723
 
  *) continue;;
18724
 
  esac
18725
 
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
18726
 
  # Extract the definition of DEP_FILES from the Makefile without
18727
 
  # running `make'.
18728
 
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
18729
 
  test -z "$DEPDIR" && continue
18730
 
  # When using ansi2knr, U may be empty or an underscore; expand it
18731
 
  U=`sed -n -e '/^U = / s///p' < "$mf"`
18732
 
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
18733
 
  # We invoke sed twice because it is the simplest approach to
18734
 
  # changing $(DEPDIR) to its actual value in the expansion.
18735
 
  for file in `sed -n -e '
18736
 
    /^DEP_FILES = .*\\\\$/ {
18737
 
      s/^DEP_FILES = //
18738
 
      :loop
18739
 
        s/\\\\$//
18740
 
        p
18741
 
        n
18742
 
        /\\\\$/ b loop
18743
 
      p
18744
 
    }
18745
 
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
18746
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18747
 
    # Make sure the directory exists.
18748
 
    test -f "$dirpart/$file" && continue
18749
 
    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
18750
 
    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
18751
 
    # echo "creating $dirpart/$file"
18752
 
    echo '# dummy' > "$dirpart/$file"
18753
 
  done
18754
 
done
18755
 
 ;;
18756
 
    default-2 ) for ac_file in $CONFIG_FILES; do
18757
 
        # Support "outfile[:infile[:infile...]]"
18758
 
        case "$ac_file" in
18759
 
          *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
31289
    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
 
31290
    default-2 )
 
31291
    for ac_file in $CONFIG_FILES; do
 
31292
      # Support "outfile[:infile[:infile...]]"
 
31293
      case "$ac_file" in
 
31294
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
31295
      esac
 
31296
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
31297
      case "$ac_file" in */Makefile.in)
 
31298
        # Adjust a relative srcdir.
 
31299
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
31300
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
31301
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
31302
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
31303
        # In autoconf-2.50 it is called $srcdir.
 
31304
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
31305
        case "$ac_given_srcdir" in
 
31306
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
31307
          /*) top_srcdir="$ac_given_srcdir" ;;
 
31308
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18760
31309
        esac
18761
 
        # PO directories have a Makefile.in generated from Makefile.in.in.
18762
 
        case "$ac_file" in */Makefile.in)
18763
 
          # Adjust a relative srcdir.
18764
 
          ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18765
 
          ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18766
 
          ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18767
 
          # In autoconf-2.13 it is called $ac_given_srcdir.
18768
 
          # In autoconf-2.50 it is called $srcdir.
18769
 
          test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
31310
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
31311
          rm -f "$ac_dir/POTFILES"
 
31312
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
31313
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
31314
          POMAKEFILEDEPS="POTFILES.in"
 
31315
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
31316
          # on $ac_dir but don't depend on user-specified configuration
 
31317
          # parameters.
 
31318
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
31319
            # The LINGUAS file contains the set of available languages.
 
31320
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
31321
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
31322
            fi
 
31323
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
31324
            # Hide the ALL_LINGUAS assigment from automake.
 
31325
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
31326
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
31327
          else
 
31328
            # The set of available languages was given in configure.in.
 
31329
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
31330
          fi
 
31331
          # Compute POFILES
 
31332
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
31333
          # Compute UPDATEPOFILES
 
31334
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
31335
          # Compute DUMMYPOFILES
 
31336
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
31337
          # Compute GMOFILES
 
31338
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
18770
31339
          case "$ac_given_srcdir" in
18771
 
            .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18772
 
            /*) top_srcdir="$ac_given_srcdir" ;;
18773
 
            *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
31340
            .) srcdirpre= ;;
 
31341
            *) srcdirpre='$(srcdir)/' ;;
18774
31342
          esac
18775
 
          if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18776
 
            rm -f "$ac_dir/POTFILES"
18777
 
            test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18778
 
            sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
18779
 
            test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18780
 
            sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18781
 
          fi
18782
 
          ;;
18783
 
        esac
18784
 
      done ;;
 
31343
          POFILES=
 
31344
          UPDATEPOFILES=
 
31345
          DUMMYPOFILES=
 
31346
          GMOFILES=
 
31347
          for lang in $ALL_LINGUAS; do
 
31348
            POFILES="$POFILES $srcdirpre$lang.po"
 
31349
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
31350
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
31351
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
31352
          done
 
31353
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
31354
          # environment variable.
 
31355
          INST_LINGUAS=
 
31356
          if test -n "$ALL_LINGUAS"; then
 
31357
            for presentlang in $ALL_LINGUAS; do
 
31358
              useit=no
 
31359
              if test "%UNSET%" != "$LINGUAS"; then
 
31360
                desiredlanguages="$LINGUAS"
 
31361
              else
 
31362
                desiredlanguages="$ALL_LINGUAS"
 
31363
              fi
 
31364
              for desiredlang in $desiredlanguages; do
 
31365
                # Use the presentlang catalog if desiredlang is
 
31366
                #   a. equal to presentlang, or
 
31367
                #   b. a variant of presentlang (because in this case,
 
31368
                #      presentlang can be used as a fallback for messages
 
31369
                #      which are not translated in the desiredlang catalog).
 
31370
                case "$desiredlang" in
 
31371
                  "$presentlang"*) useit=yes;;
 
31372
                esac
 
31373
              done
 
31374
              if test $useit = yes; then
 
31375
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
31376
              fi
 
31377
            done
 
31378
          fi
 
31379
          CATALOGS=
 
31380
          if test -n "$INST_LINGUAS"; then
 
31381
            for lang in $INST_LINGUAS; do
 
31382
              CATALOGS="$CATALOGS $lang.gmo"
 
31383
            done
 
31384
          fi
 
31385
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
31386
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
31387
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
31388
            if test -f "$f"; then
 
31389
              case "$f" in
 
31390
                *.orig | *.bak | *~) ;;
 
31391
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
31392
              esac
 
31393
            fi
 
31394
          done
 
31395
        fi
 
31396
        ;;
 
31397
      esac
 
31398
    done ;;
18785
31399
  esac
18786
31400
done
18787
 
EOF
 
31401
_ACEOF
18788
31402
 
18789
 
cat >>$CONFIG_STATUS <<\EOF
 
31403
cat >>$CONFIG_STATUS <<\_ACEOF
18790
31404
 
18791
31405
{ (exit 0); exit 0; }
18792
 
EOF
 
31406
_ACEOF
18793
31407
chmod +x $CONFIG_STATUS
18794
31408
ac_clean_files=$ac_clean_files_save
18795
31409
 
 
31410
 
18796
31411
# configure is writing to config.log, and then calls config.status.
18797
31412
# config.status does its own redirection, appending to config.log.
18798
31413
# Unfortunately, on DOS this fails, as config.log is still kept open
18803
31418
# need to make the FD available again.
18804
31419
if test "$no_create" != yes; then
18805
31420
  ac_cs_success=:
 
31421
  ac_config_status_args=
 
31422
  test "$silent" = yes &&
 
31423
    ac_config_status_args="$ac_config_status_args --quiet"
18806
31424
  exec 5>/dev/null
18807
 
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
31425
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18808
31426
  exec 5>>config.log
18809
31427
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18810
31428
  # would make configure fail if this is the last instruction.
18811
31429
  $ac_cs_success || { (exit 1); exit 1; }
18812
31430
fi
18813
31431
 
18814
 
echo ;
18815
 
echo "If you are a single user and you want be able to move in your filesystem, " ;
18816
 
echo "you can choose to add the '--enable-exit-homedir' option on the 'configure'" ;
18817
 
echo "command line. By default, it is disabled for security reasons !" ;
18818
 
echo ;
18819
 
echo "If you want some applications to be able to use TiLP trough the TIFFEP server " ;
18820
 
echo "(experimental), you can add the '--enable-tiffep-server' options on the" ;
18821
 
echo "'configure' command line. By default, this option is disabled !" ;
18822
 
echo "Nevertheless, if the TIFFEP library (libtiffep) is available, it will be used." ;
18823
 
echo ;
 
31432
 
 
31433
if test "x$enable_exit_homedir" = "xno"; then
 
31434
 echo ;
 
31435
 echo "If you are a single user and you want to move in your filesystem, " ;
 
31436
 echo "you can choose to add the '--enable-exit-homedir' option on the" ;
 
31437
 echo 'configure'" command line." ;
 
31438
 echo "By default, it is disabled for security reasons !" ;
 
31439
else
 
31440
 echo ;
 
31441
 echo "The 'exit HOME dir' facility is now enabled as default behaviour. "
 
31442
 echo "Please keep in mind tha this is not secure..." ;
 
31443
fi
 
31444
 
 
31445
echo ;
 
31446
 
 
31447
 
 
31448
 
 
31449
 
 
31450
 
 
31451
 
 
31452
 
 
31453
 
18824
31454